/* Sakura Gate - world journey (world3d.html, world3d.js): black space, sakura pink, white type. */
:root { --pink: #FF7AA8; --pink2: #FFB3CF; --ink: #F5F6FB; --mut: #AEB6CC; --bg: #05060D; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); background: radial-gradient(1200px 800px at 70% 20%, #121a3a 0%, #070912 55%, #04050A 100%) fixed; font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; overflow-x: hidden; }
a { color: inherit; }
#wglobe { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
body.wlite-on #wglobe { display: none; }
.wflash { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff 0%, #ffe9f2 45%, #e8f0ff 100%); }

/* top bar */
.wtop { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(14px, 3vw, 34px); background: linear-gradient(180deg, rgba(4,5,10,.75), rgba(4,5,10,0)); }
.wlogo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }
.wlogo em { font-style: normal; color: var(--pink); }
.wtop-r { display: flex; align-items: center; gap: 10px; }
.wfrom { display: flex; flex-direction: column; padding: 4px 12px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.wfrom small { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pink2); font-weight: 700; }
.wfrom select { background: transparent; color: var(--ink); border: 0; font: inherit; font-weight: 700; padding: 0; cursor: pointer; }
.wfrom option { color: #111; }
.wlite { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--ink); font: inherit; font-weight: 700; font-size: .8125rem; cursor: pointer; }
.wlite[aria-pressed=true] { background: var(--ink); color: #111; }
.wplan { padding: 10px 18px; border-radius: 999px; background: linear-gradient(135deg, #FF8FB8, #E8508A); color: #fff; text-decoration: none; font-weight: 800; font-size: .875rem; box-shadow: 0 8px 24px rgba(232,80,138,.35); }

/* hero */
main { position: relative; z-index: 10; }
.whero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 18vh 20px 8vh; position: relative; }
.wkicker { margin: 0 0 14px; font-size: .75rem; letter-spacing: .32em; color: var(--pink2); font-weight: 700; }
.wbig { margin: 0; font-family: "Arial Black", "Segoe UI", sans-serif; font-weight: 900; line-height: .9; font-size: clamp(3.4rem, 12.5vw, 11rem); letter-spacing: -.02em; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.wbig span { display: block; background: linear-gradient(180deg, #fff 30%, #FFD1E2); -webkit-background-clip: text; background-clip: text; color: transparent; animation: wrise 1s cubic-bezier(.2,.8,.2,1) both; }
.wbig span:nth-child(2) { animation-delay: .12s; }
@keyframes wrise { from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.wsub { max-width: 560px; margin: 18px auto 0; color: var(--mut); font-size: 1.05rem; animation: wrise 1s .25s both; }
.whero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; animation: wrise 1s .35s both; }
.wbtn { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); text-decoration: none; font-weight: 700; backdrop-filter: blur(8px); transition: transform .2s, background .2s; }
.wbtn:hover { transform: translateY(-2px); background: rgba(255,255,255,.12); }
.wbtn.p { border: 0; background: linear-gradient(135deg, #FF8FB8, #E8508A); color: #fff; box-shadow: 0 10px 30px rgba(232,80,138,.4); }
.wsak { position: absolute; left: clamp(14px, 4vw, 60px); bottom: 7vh; display: flex; align-items: center; gap: 10px; animation: wrise 1s .6s both; }
.wsak img { animation: wfloat 3s ease-in-out infinite; }
.wsak span { padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: #fff; color: #1B1F3B; font-weight: 800; }
@keyframes wfloat { 50% { transform: translateY(-8px); } }

/* left rail */
.wrail { position: fixed; z-index: 35; left: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity .4s; pointer-events: none; }
body.wrail-on .wrail { opacity: 1; pointer-events: auto; }
.wrail a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; color: var(--mut); font-size: .8125rem; padding: 4px 0; transition: color .2s; }
.wrail a span { font-variant-numeric: tabular-nums; opacity: .7; }
.wrail a.on { color: #fff; } .wrail a.on b { color: var(--pink); }

/* chapters: tall section, sticky stage */
.wch { height: 320vh; position: relative; }
.wstage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.winfo { position: absolute; left: clamp(120px, 12vw, 200px); top: 50%; transform: translateY(calc(-50% + (1 - var(--info, 0)) * 30px)); opacity: var(--info, 0); width: min(460px, 40vw); }
.wnum { margin: 0; color: var(--pink2); letter-spacing: .25em; font-size: .75rem; font-weight: 700; }
.wcountry { margin: 6px 0 18px; font-family: "Arial Black", "Segoe UI", sans-serif; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .95; letter-spacing: .02em; }
.wstats { display: grid; grid-template-columns: repeat(3, auto); gap: 18px; margin-bottom: 18px; }
.wstats small { display: block; font-size: .625rem; letter-spacing: .14em; color: var(--mut); }
.wstats b { font-size: 1rem; }
.wsee { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.wsee li { display: flex; align-items: center; gap: 10px; } .wsee li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.wfly { margin: 0; color: var(--mut); font-size: .875rem; }
.wphoto { position: absolute; inset: 0; opacity: var(--photo, 0); pointer-events: none; }
.wimg { position: absolute; inset: -4%; background-size: cover; background-position: center; transform: scale(calc(1.12 - var(--photo, 0) * .08 - var(--pp, 0) * .04)); }
.wphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.75) 100%); }
.wword { position: absolute; z-index: 2; left: 0; right: 0; top: 16vh; margin: 0; text-align: center; font-family: "Arial Black", "Segoe UI", sans-serif; font-size: min(20vw, calc(115vw / var(--n))); line-height: .9; letter-spacing: .02em; color: #fff; text-shadow: 0 12px 40px rgba(0,0,0,.45); transform: translateY(calc((1 - var(--photo, 0)) * 60px)) scale(calc(.94 + var(--photo, 0) * .06)); }
.wcard { position: absolute; z-index: 2; left: 50%; bottom: 7vh; transform: translateX(-50%); width: min(620px, 92vw); padding: 18px 20px; border-radius: 22px; background: rgba(8,10,20,.55); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); text-align: center; }
.wcard p { margin: 0 0 12px; font-size: 1.05rem; }
.wcard-b { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wph { display: block; margin-top: 10px; color: var(--mut); font-size: .6875rem; }

/* end */
.wend { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12vh 20px; position: relative; z-index: 10; background: radial-gradient(800px 500px at 50% 40%, rgba(255,122,168,.14), transparent); }
.wend h2 { margin: 0; font-family: "Arial Black", "Segoe UI", sans-serif; font-size: clamp(2.2rem, 6vw, 4.5rem); }
.wend > p { color: var(--mut); }
.wend-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; margin: 18px 0 6px; }
.wchip { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); text-decoration: none; font-weight: 700; transition: border-color .2s, transform .2s; }
.wchip:hover { border-color: var(--pink); transform: translateY(-2px); }
.wcred { margin-top: 30px; color: var(--mut); font-size: .75rem; max-width: 640px; }

/* lite: no globe; a soft glow instead and the info panel centred */
body.wlite-on .wch .winfo { left: 50%; transform: translate(-50%, -50%); text-align: center; width: min(560px, 90vw); }
body.wlite-on .wsee { align-items: center; } body.wlite-on .wstats { justify-content: center; }
body.wlite-on .whero::before { content: ""; position: absolute; width: 60vmin; height: 60vmin; left: 50%; top: 55%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a5bb8, #0b1440 60%, transparent 70%); box-shadow: 0 0 120px rgba(90,140,255,.35); z-index: -1; }

/* phones: globe below, info at the top */
@media (max-width: 760px) {
  .wtop { flex-wrap: wrap; } .wfrom { padding: 3px 10px; } .wlogo span { display: none; }
  .wplan { padding: 9px 14px; font-size: .8125rem; }
  .whero { padding-top: 15vh; } .wsak { bottom: 4vh; } .wsak img { width: 64px; height: 64px; }
  .wrail { display: none; }
  .winfo { left: 50%; top: 13vh; width: 90vw; transform: translate(-50%, calc((1 - var(--info, 0)) * 30px)); text-align: center; }
  .wstats { grid-template-columns: repeat(2, auto); justify-content: center; } .wsee { align-items: center; } .wsee li { font-size: .9375rem; }
  .wcountry { font-size: 3rem; margin-bottom: 12px; }
  .winfo { padding: 14px; border-radius: 20px; background: rgba(5,6,13,.62); backdrop-filter: blur(10px); }
  .wtop { flex-wrap: nowrap; padding: 10px 12px; gap: 8px; } .wtop-r { gap: 6px; } .wlogo img { width: 28px; height: 28px; }
  .wword { top: 20vh; }
  body.wlite-on .wch .winfo { top: 50%; }
}
@media (prefers-reduced-motion: reduce) { .wbig span, .wsub, .whero-cta, .wsak, .wsak img { animation: none; } }

/* phones: keep the header button on one line */
.wplan { white-space: nowrap; }
@media (max-width: 420px) { .wplan { padding: 9px 12px; font-size: .75rem; } .wlite { padding: 8px 10px; } }
