@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600&display=swap');

:root {
  --ink: #030914;
  --ink-soft: #071426;
  --silver: #d9e5f8;
  --silver-dim: rgba(217, 229, 248, .66);
  --gold: #b99a5b;
  --line: rgba(187, 209, 241, .18);
  --line-bright: rgba(205, 224, 250, .46);
  --sans: 'Manrope', Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--silver); font-family: var(--sans); }
body.journey-locked { overflow: hidden; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.site-shell { min-width: 320px; overflow: hidden; background: linear-gradient(180deg, #020711 0%, #040914 46%, #02050b 100%); }
.journey-gate { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto; background: rgba(1, 5, 14, .72); backdrop-filter: blur(16px); }
.journey-gate[hidden] { display: none; }
.journey-gate-glow { position: absolute; inset: 0; background: radial-gradient(circle at 68% 30%, rgba(192, 218, 255, .18), transparent 32%), linear-gradient(120deg, rgba(2, 7, 18, .88), rgba(7, 18, 36, .62)); pointer-events: none; }
.journey-card { position: relative; width: min(560px, 100%); padding: clamp(26px, 5vw, 54px); border: 1px solid rgba(206, 225, 252, .28); border-radius: 22px; background: linear-gradient(145deg, rgba(10, 24, 46, .9), rgba(2, 8, 18, .94)); box-shadow: 0 28px 100px rgba(0, 0, 0, .5), 0 0 60px rgba(196, 220, 255, .1); }
.journey-brand { display: grid; gap: 5px; margin-bottom: 52px; color: var(--silver); font: 500 11px/1 var(--mono); letter-spacing: .18em; }
.journey-brand small { color: rgba(217, 229, 248, .46); font: 400 8px/1 var(--mono); letter-spacing: .24em; }
.journey-card h1 { max-width: 500px; font-size: clamp(44px, 7vw, 78px); line-height: .86; }
.journey-intro { max-width: 460px; margin: 24px 0 28px; color: rgba(229, 238, 250, .68); font-size: 12px; line-height: 1.65; }
.journey-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.journey-fields[hidden] { display: none; }
.auth-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.journey-card label { display: grid; gap: 8px; color: rgba(220, 232, 249, .54); font: 500 9px/1.4 var(--mono); letter-spacing: .12em; }
.journey-card input:not([type=file]), .journey-card select { width: 100%; border: 1px solid rgba(201, 220, 248, .2); border-radius: 9px; padding: 12px; color: var(--silver); background: rgba(2, 8, 18, .52); font: 400 12px/1.2 var(--sans); outline: none; white-space: nowrap; text-overflow: ellipsis; }
.journey-card input:focus, .journey-card select:focus { border-color: rgba(217, 229, 248, .58); box-shadow: 0 0 0 3px rgba(217, 229, 248, .08); }
.country-identity-preview { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 13px 14px; border: 1px solid rgba(201, 220, 248, .14); border-radius: 12px; background: rgba(4, 13, 28, .46); }
.country-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(217, 229, 248, .24); border-radius: 50%; background: radial-gradient(circle, rgba(210, 230, 255, .2), rgba(91, 127, 184, .08)); font-size: 22px; }
.country-identity-preview strong, .country-identity-preview small { display: block; }
.country-identity-preview strong { color: var(--silver); font: 500 10px/1.3 var(--mono); letter-spacing: .1em; }
.country-identity-preview small { margin-top: 5px; color: rgba(217, 229, 248, .4); font: 400 8px/1.2 var(--mono); letter-spacing: .08em; }
.journey-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-top: 12px; }
.journey-submit { width: 100%; }
.journey-close { border: 0; padding: 12px 8px; color: rgba(217, 229, 248, .48); background: transparent; font: 500 9px/1 var(--mono); letter-spacing: .08em; cursor: pointer; }
.journey-close:hover { color: var(--silver); }
.auth-toggle { display: block; margin: 14px auto 0; border: 0; padding: 5px 8px; color: rgba(217, 229, 248, .5); background: transparent; font: 500 8px/1.2 var(--mono); letter-spacing: .08em; cursor: pointer; }
.auth-toggle:hover { color: var(--silver); }
.journey-email-hint { margin: 12px auto 0; max-width: 430px; color: rgba(216, 196, 134, .82); font: 600 8px/1.45 var(--mono); letter-spacing: .07em; text-align: center; }
.journey-status { min-height: 18px; margin: 14px 0 0; color: rgba(217, 229, 248, .4); font: 400 8px/1.4 var(--mono); letter-spacing: .06em; }
.page-progress { position: fixed; z-index: 30; top: 0; right: 12px; bottom: 0; width: 1px; background: rgba(217, 229, 248, .14); pointer-events: none; }
.page-progress span { display: block; width: 100%; height: 100%; transform: scaleY(var(--page-progress, 0)); transform-origin: top; background: linear-gradient(180deg, rgba(231, 239, 255, .95), rgba(185, 154, 91, .84)); box-shadow: 0 0 12px rgba(219, 231, 255, .48); }

.topbar { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(24px, 6vw, 92px); border-bottom: 1px solid rgba(202, 220, 247, .14); background: linear-gradient(180deg, rgba(2, 7, 17, .64), rgba(2, 7, 17, .04)); backdrop-filter: blur(12px); }
.brand { display: grid; gap: 5px; }
.brand-mark { font: 500 12px/1 var(--mono); letter-spacing: .18em; }
.brand-sub { color: rgba(217, 229, 248, .52); font: 400 8px/1 var(--mono); letter-spacing: .24em; }
.identity-chip { display: flex; align-items: center; gap: 8px; margin-left: auto; margin-right: clamp(14px, 3vw, 42px); padding: 9px 11px; border: 1px solid rgba(217, 229, 248, .18); border-radius: 999px; color: rgba(217, 229, 248, .66); background: rgba(4, 13, 28, .3); font: 500 8px/1 var(--mono); letter-spacing: .08em; cursor: pointer; transition: border-color .25s ease, color .25s ease, background .25s ease, box-shadow .25s ease; }
.identity-chip:hover, .identity-chip:focus-visible { border-color: rgba(217, 229, 248, .48); color: #eef4ff; background: rgba(13, 27, 51, .72); box-shadow: 0 0 20px rgba(174, 204, 244, .12); outline: none; }
.identity-chip[hidden] { display: none; }
.identity-chip span:last-child { font-size: 18px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); color: rgba(217, 229, 248, .66); font: 400 10px/1 var(--mono); letter-spacing: .08em; }
.nav a { transition: color .25s ease; }
.nav a:hover { color: #fff; }
.nav-pill { padding: 11px 16px; border: 1px solid rgba(217, 229, 248, .32); border-radius: 999px; color: #08111e; background: var(--silver); }

.hero { position: relative; isolation: isolate; min-height: min(100vh, 980px); height: 900px; overflow: hidden; }
.hero::before { content: ''; position: absolute; z-index: -2; inset: 0; opacity: .58; background-image: radial-gradient(circle at 7% 15%, rgba(255,255,255,.82) 0 1px, transparent 1.7px), radial-gradient(circle at 17% 28%, rgba(226,239,255,.72) 0 1px, transparent 1.8px), radial-gradient(circle at 29% 10%, rgba(255,255,255,.8) 0 1px, transparent 1.7px), radial-gradient(circle at 42% 22%, rgba(209,229,255,.7) 0 1px, transparent 1.8px), radial-gradient(circle at 55% 9%, rgba(255,255,255,.74) 0 1px, transparent 1.8px), radial-gradient(circle at 78% 13%, rgba(255,255,255,.76) 0 1px, transparent 1.8px), radial-gradient(circle at 91% 25%, rgba(221,237,255,.72) 0 1px, transparent 1.8px); background-size: 280px 210px, 330px 280px, 370px 250px, 440px 300px, 390px 270px, 420px 310px, 360px 260px; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 72%); mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 72%); mix-blend-mode: screen; pointer-events: none; }
.hero-image { position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.95) contrast(1.02) brightness(.95); transform: scale(1.04) translate3d(var(--deck-sway-x, 0px), calc(var(--hero-shift, 0px) * -.55 + var(--deck-sway-y, 0px)), 0) rotate(var(--deck-sway-rot, 0deg)); transform-origin: center center; will-change: transform; }
.hero-motion-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .92; pointer-events: none; mix-blend-mode: screen; }
.hero-motion-ocean::after { content: ''; position: absolute; z-index: -1; inset: 42% 0 0; pointer-events: none; opacity: .26; mix-blend-mode: screen; background-image: linear-gradient(180deg, transparent 0%, rgba(5, 20, 40, .04) 26%, rgba(2, 10, 22, .18) 100%), repeating-linear-gradient(168deg, transparent 0 19px, rgba(204, 229, 255, .17) 20px 22px, transparent 23px 64px), repeating-linear-gradient(8deg, transparent 0 31px, rgba(137, 187, 241, .12) 32px 34px, transparent 35px 88px); background-size: 100% 100%, 170% 100%, 145% 100%; background-position: 0 0, 0 0, 0 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 72%, transparent 100%); filter: blur(1.2px); animation: oceanSurfaceDrift 10s linear infinite; }
.hero-motion-ocean .hero-motion-canvas { opacity: 1; }
@keyframes oceanSurfaceDrift { 0% { background-position: 0 0, 0 0, 0 0; } 50% { background-position: 0 0, -110px 14px, 90px -10px; } 100% { background-position: 0 0, -220px 28px, 180px -20px; } }
.hero-grade { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(1, 5, 14, .54) 0%, rgba(1, 5, 14, .16) 41%, rgba(1, 5, 14, .01) 78%), linear-gradient(180deg, rgba(1, 4, 12, .04) 0%, transparent 42%, rgba(1, 4, 12, .36) 100%); }
.moon-origin-glow { position: absolute; z-index: -2; top: 9%; right: 22%; width: clamp(140px, 18vw, 260px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(235, 244, 255, .28) 0, rgba(206, 227, 255, .13) 30%, transparent 70%); filter: blur(10px); mix-blend-mode: screen; pointer-events: none; }
.moon-origin-ray { position: absolute; z-index: 1; top: 15%; left: 58%; width: clamp(150px, 14vw, 230px); height: 64%; transform: rotate(-19deg); transform-origin: 50% 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, rgba(250, 253, 255, .34) 0, rgba(229, 241, 255, .2) 19%, rgba(205, 227, 255, .08) 47%, transparent 80%), linear-gradient(180deg, rgba(235, 246, 255, .11), transparent 82%); filter: blur(22px); mix-blend-mode: screen; opacity: .58; pointer-events: none; }
.moon-origin-ray::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .28), rgba(225, 239, 255, .08) 38%, transparent 74%); filter: blur(12px); opacity: .74; }
.moon-origin-glow, .moon-origin-ray { display: none; }
.hero-motion-ready .moon-origin-ray { display: block; top: 25%; left: clamp(72.2%, calc(322px + 49.8vw), 88%); width: clamp(84px, 8vw, 118px); height: 55%; transform: translateX(-50%) rotate(43deg); transform-origin: 50% 0; border-radius: 999px; background: linear-gradient(180deg, rgba(244,250,255,.28), rgba(220,238,255,.08) 36%, transparent 90%); filter: blur(18px); mix-blend-mode: screen; opacity: .62; animation: moonbeamBreath 5.8s ease-in-out infinite; }
.hero-motion-ready .moon-origin-ray::before { content: ''; position: absolute; top: -14px; left: 50%; width: 34px; height: 34px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.52), rgba(225,240,255,.2) 38%, transparent 74%); filter: blur(7px); opacity: .78; }
.hero-motion-audition .hero-motion-canvas { opacity: 1; }
.hero-motion-audition .moon-origin-ray { width: clamp(110px, 10vw, 150px); filter: blur(6px); opacity: .98; background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(220,238,255,.34) 38%, transparent 90%); animation-name: moonbeamAudition; }
@keyframes moonbeamBreath { 0%, 100% { opacity: .42; } 50% { opacity: .68; } }
@keyframes moonbeamAudition { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }
.hero-stars { position: absolute; inset: 0; z-index: -2; opacity: .65; background-image: radial-gradient(circle at 8% 22%, rgba(255,255,255,.8) 0 1px, transparent 1.5px), radial-gradient(circle at 19% 35%, rgba(255,255,255,.65) 0 1px, transparent 1.5px), radial-gradient(circle at 34% 14%, rgba(255,255,255,.7) 0 1px, transparent 1.5px), radial-gradient(circle at 58% 21%, rgba(255,255,255,.78) 0 1px, transparent 1.5px), radial-gradient(circle at 76% 12%, rgba(255,255,255,.8) 0 1px, transparent 1.5px), radial-gradient(circle at 88% 29%, rgba(255,255,255,.58) 0 1px, transparent 1.5px); background-size: 290px 210px, 330px 280px, 370px 250px, 440px 300px, 390px 270px, 420px 310px; mix-blend-mode: screen; }
.hero-copy { position: absolute; left: clamp(24px, 7vw, 104px); bottom: 13%; max-width: 500px; transform: translateY(calc(var(--hero-shift, 0px) * -0.15)); will-change: transform; }
.hero-copy::before { content: ''; position: absolute; z-index: -2; inset: -34px -72px -42px -42px; border-radius: 30px; background: radial-gradient(ellipse at 34% 52%, rgba(1, 5, 14, .48), rgba(1, 5, 14, .18) 52%, transparent 78%); filter: blur(16px); pointer-events: none; }
.hero-copy::after { content: ''; position: absolute; z-index: -1; top: 28px; left: -30px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(141, 178, 231, .12), transparent 67%); filter: blur(18px); pointer-events: none; }
.hero-ornament { display: flex; align-items: center; gap: 9px; width: min(340px, 80%); margin: -10px 0 18px; color: var(--gold); font: 500 8px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.hero-ornament i { display: block; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(207, 181, 117, .72)); }
.hero-ornament i:nth-of-type(2), .hero-ornament i:nth-of-type(4) { background: linear-gradient(90deg, rgba(207, 181, 117, .72), transparent); }
.hero-ornament span { font-size: 13px; text-shadow: 0 0 15px rgba(224, 195, 125, .6); }
.hero-ornament b { font-weight: 500; white-space: nowrap; }
.eyebrow, .section-index, .panel-topline, .hero-meta, .hero-scroll, .arrival-note, .strip-caption, .table-head, .step-list, .footer { font: 500 9px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { margin: 0 0 24px; color: var(--gold); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h1 { max-width: 500px; color: #f1f6ff; font-size: clamp(46px, 5.6vw, 92px); line-height: .86; text-wrap: balance; }
.hero-copy h1 { background: none; -webkit-text-fill-color: #eef4ff; color: #eef4ff; text-shadow: 0 0 28px rgba(189, 215, 249, .12); }
.hero-title-word { display: inline-block; font-family: inherit; font-weight: inherit; letter-spacing: inherit; background: none; -webkit-text-fill-color: #eef4ff; color: #eef4ff; animation: moonlightShimmer 5.8s ease-in-out infinite; }
.hero-title-fate { display: inline-block; font-family: inherit; font-weight: inherit; letter-spacing: inherit; background: none; -webkit-text-fill-color: #eef4ff; color: #eef4ff; text-shadow: 0 0 28px rgba(189, 215, 249, .12); }
@keyframes moonlightShimmer { 0%, 100% { opacity: .82; filter: brightness(.92); text-shadow: 0 0 18px rgba(207, 228, 255, .08); } 48% { opacity: 1; filter: brightness(1.14); text-shadow: 0 0 30px rgba(207, 228, 255, .3), 0 0 70px rgba(143, 190, 255, .1); } 58% { opacity: .9; filter: brightness(1); } }
.hero-body { max-width: 470px; margin: 28px 0 0; color: rgba(229, 238, 250, .72); font-size: 13px; line-height: 1.65; }
.hero-body::before { content: '◦'; display: inline-block; margin-right: 9px; color: var(--gold); text-shadow: 0 0 12px rgba(217, 185, 103, .7); }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 30px; }
.primary-button, .panel-button { cursor: pointer; border: 1px solid rgba(222, 235, 255, .6); border-radius: 999px; padding: 14px 21px; color: #06101c; background: #eef4ff; font: 600 10px/1 var(--mono); letter-spacing: .08em; transition: transform .25s ease, box-shadow .25s ease; }
.primary-button:hover, .panel-button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(190, 217, 255, .18); }
.quiet-link { color: rgba(222, 234, 252, .56); font: 400 9px/1 var(--mono); letter-spacing: .1em; }
.hero-meta { position: absolute; right: clamp(24px, 7vw, 104px); bottom: 28%; display: grid; gap: 9px; color: rgba(222, 234, 252, .54); text-align: right; }
.arrival-stage { position: absolute; z-index: 3; top: 56%; left: 54%; width: 300px; height: 500px; transform: translate3d(calc(-50% + var(--deck-sway-x, 0px)), calc(-50% + var(--hero-shift, 0px) * .2 + var(--deck-sway-y, 0px)), 0) rotate(var(--deck-sway-rot, 0deg)); display: grid; place-items: center; pointer-events: none; will-change: transform; }
.moonbeam { display: none; }
.arrival-card-wrap { position: relative; z-index: 4; width: 160px; padding: 9px; border: 1px solid rgba(220, 233, 255, .7); border-radius: 12px; background: linear-gradient(135deg, rgba(199, 220, 251, .22), rgba(8, 16, 31, .38)); box-shadow: 0 18px 50px rgba(1, 5, 16, .54), 0 0 42px rgba(214, 231, 255, .25); transform: perspective(900px) rotateY(-7deg) rotateX(3deg) translateZ(14px); transition: transform .22s ease-out; }
.hero-motion-ready .arrival-card-wrap { animation: fateArrives 3.4s cubic-bezier(.18,.72,.2,1) 1.2s both; }
.hero-motion-ready .arrival-card-wrap.arrival-arrived { animation: none; }
@keyframes fateArrives { 0% { opacity: 0; transform: perspective(900px) translate3d(116px,-184px,-90px) scale(.56) rotateY(-14deg) rotateX(7deg); filter: blur(3px); } 42% { opacity: .52; filter: blur(1px); } 100% { opacity: 1; transform: perspective(900px) rotateY(-7deg) rotateX(3deg) translateZ(14px); filter: blur(0); } }
.arrival-card { display: block; width: 100%; height: auto; border: 1px solid rgba(232, 239, 249, .55); }
.arrival-glint { position: absolute; top: 8px; left: 18px; right: 18px; height: 1px; background: linear-gradient(90deg, transparent, rgba(211, 180, 105, .95), transparent); }
.arrival-note { position: absolute; bottom: -28px; color: rgba(218, 231, 250, .62); white-space: nowrap; }
.receiving-hands { position: absolute; z-index: 2; left: 50%; bottom: -34%; width: min(440px, 56vw); max-width: none; transform: translate3d(calc(-50% + var(--deck-sway-x, 0px)), var(--deck-sway-y, 0px), 0) rotate(var(--deck-sway-rot, 0deg)); opacity: .82; filter: saturate(.72) contrast(1.06) brightness(.86); mix-blend-mode: normal; pointer-events: none; }
.deck-line { position: absolute; z-index: 2; bottom: 9%; width: 33%; height: 1px; background: linear-gradient(90deg, transparent, rgba(211, 225, 248, .48)); }
.deck-line-left { left: -2%; transform: rotate(-7deg); transform-origin: right; }
.deck-line-right { right: -2%; transform: rotate(7deg); transform-origin: left; background: linear-gradient(90deg, rgba(211, 225, 248, .48), transparent); }
.hero-scroll { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); color: rgba(220, 233, 252, .55); white-space: nowrap; }
.hero-handoff { position: absolute; z-index: 5; left: 50%; bottom: 5.5%; display: flex; align-items: center; gap: 13px; transform: translateX(-50%); padding: 9px 14px; border: 1px solid rgba(196, 218, 249, .17); border-radius: 999px; color: rgba(220, 233, 252, .58); background: rgba(3, 10, 22, .28); font: 500 8px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(8px); transition: border-color .35s cubic-bezier(.32,.72,0,1), color .35s cubic-bezier(.32,.72,0,1), transform .35s cubic-bezier(.32,.72,0,1); }
.hero-handoff:hover { border-color: rgba(217, 229, 248, .52); color: var(--silver); transform: translateX(-50%) translateY(-3px); }
.hero-handoff-line { width: 38px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 174, 105, .72)); }
.hero-handoff b { color: var(--gold); font-size: 14px; font-weight: 400; text-shadow: 0 0 12px rgba(217, 185, 103, .6); }

.section-shell { position: relative; padding: clamp(110px, 14vw, 190px) clamp(24px, 7vw, 104px); border-top: 1px solid rgba(201, 220, 248, .11); }
.section-shell[data-story-section] .section-heading,
.section-shell[data-story-section] .trials-grid,
.section-shell[data-story-section] .fates-window,
.section-shell[data-story-section] .strip-caption { opacity: 0; transform: translateY(28px); filter: blur(7px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1), filter 1s ease; }
.section-shell[data-story-section] .section-heading.is-visible,
.section-shell[data-story-section] .trials-grid.is-visible,
.section-shell[data-story-section] .fates-window.is-visible,
.section-shell[data-story-section] .strip-caption.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.section-shell[data-story-section] .trials-grid { transition-delay: .12s; }
.section-shell[data-story-section] .fates-window { transition-delay: .12s; }
.section-shell[data-story-section] .strip-caption { transition-delay: .22s; }
.section-heading { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 50px; padding-top: 32px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.section-heading::before { content: '✦  ·  ◦  ·  ✦'; position: absolute; top: 0; left: 50%; transform: translateX(-50%); color: rgba(201, 174, 105, .78); font: 500 10px/1 var(--mono); letter-spacing: .35em; text-shadow: 0 0 16px rgba(217, 185, 103, .52); }
.section-heading::after { content: ''; position: absolute; top: 4px; left: 37%; right: 37%; height: 1px; background: linear-gradient(90deg, transparent, rgba(198, 222, 255, .18), transparent); }
h2 { color: #e8f0fc; font-size: clamp(42px, 5vw, 76px); line-height: .92; }
.section-heading h2, .ranking-lead h3 { background: linear-gradient(180deg, #f5f8ff 5%, #d7e5fa 58%, #a3b3cb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 24px rgba(189, 215, 249, .1); }
.section-intro { max-width: 720px; margin: 20px 0 0; color: rgba(219, 231, 247, .58); font-size: 12px; line-height: 1.7; }
.section-index { color: rgba(217, 229, 248, .42); }
.trials, .fates { isolation: isolate; }
.trials::before, .fates::before { content: ''; position: absolute; z-index: -2; inset: 0; background-position: center top; background-size: cover; opacity: .78; filter: saturate(.86) contrast(1.02) brightness(.92); }
.trials::after, .fates::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(2, 7, 16, .62), rgba(2, 7, 16, .12) 52%, rgba(2, 7, 16, .44)), linear-gradient(180deg, rgba(2, 7, 16, .02), rgba(2, 7, 16, .4) 76%, rgba(2, 7, 16, .62)); pointer-events: none; }
.trials::before { background-image: radial-gradient(circle at 5% 56%, rgba(103, 149, 218, .16), transparent 18%), radial-gradient(circle at 96% 44%, rgba(188, 157, 87, .14), transparent 17%), url('assets/trials-world-v2.png'); }
.fates::before { background-image: radial-gradient(circle at 8% 26%, rgba(114, 157, 220, .14), transparent 20%), radial-gradient(circle at 92% 28%, rgba(194, 161, 94, .14), transparent 20%), url('assets/fates-world-v2.png'); }
.section-voyage-silhouette { position: absolute; z-index: 0; top: 38px; right: 14%; width: 156px; height: 112px; opacity: .28; filter: drop-shadow(0 0 14px rgba(188, 211, 242, .2)); pointer-events: none; }
.voyage-mast { position: absolute; left: 54%; top: 0; width: 1px; height: 91px; background: linear-gradient(180deg, rgba(219, 231, 248, .08), rgba(219, 231, 248, .56) 42%, rgba(219, 231, 248, .08)); }
.voyage-sail { position: absolute; top: 14px; background: linear-gradient(145deg, rgba(214, 229, 249, .34), rgba(130, 160, 200, .04)); filter: blur(.2px); }
.voyage-sail-a { left: 20%; width: 50%; height: 56px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.voyage-sail-b { left: 54%; width: 29%; height: 42px; clip-path: polygon(0 0, 100% 100%, 0 100%); opacity: .7; }
.voyage-hull { position: absolute; left: 18%; bottom: 13px; width: 70%; height: 14px; border-bottom: 1px solid rgba(209, 225, 247, .5); border-radius: 0 0 50% 50%; transform: skewX(-18deg); }
.trials { background: radial-gradient(circle at 75% 42%, rgba(72, 111, 181, .16), transparent 34%), linear-gradient(180deg, #050b16, #030813); }
.trials-grid { display: grid; grid-template-columns: minmax(260px, 386px) minmax(0, 1fr); gap: clamp(26px, 4vw, 54px); margin-top: 54px; }
.fate-panel, .ranking-panel { position: relative; overflow: hidden; border: 1px solid rgba(164, 194, 238, .26); background: linear-gradient(145deg, rgba(11, 24, 46, .74), rgba(2, 8, 18, .82)); box-shadow: 0 18px 60px rgba(0,0,0,.18), inset 0 1px 0 rgba(236, 245, 255, .1), inset 0 0 0 1px rgba(196, 218, 249, .05); }
.fate-panel::before, .ranking-panel::before { content: ''; position: absolute; z-index: 0; inset: 9px; border: 1px solid rgba(196, 218, 249, .08); border-radius: 12px; pointer-events: none; }
.fate-panel::after, .ranking-panel::after { content: '✦'; position: absolute; z-index: 0; top: 11px; right: 16px; color: rgba(204, 177, 107, .56); font-size: 11px; text-shadow: 0 0 14px rgba(217, 185, 103, .6); pointer-events: none; }
.fate-panel > *, .ranking-panel > * { position: relative; z-index: 1; }
.fate-panel { padding: 24px; border-radius: 18px; text-align: center; }
.ranking-panel { padding: 24px; border-radius: 18px; }
.panel-topline { display: flex; justify-content: space-between; color: rgba(220, 232, 249, .72); }
.muted { color: rgba(220, 232, 249, .38); }
.card-stage { display: grid; place-items: center; min-height: 452px; margin: 0 0 12px; border: 1px solid rgba(201, 220, 248, .12); border-radius: 14px; background: radial-gradient(circle, rgba(94, 139, 210, .16), transparent 60%); }
.card-stage img { width: min(240px, 76%); filter: drop-shadow(0 18px 24px rgba(0,0,0,.32)); }
.panel-caption { color: rgba(220, 232, 249, .45); font: 500 8px/1.65 var(--mono); letter-spacing: .08em; }
.workflow-orbit { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 25px 0 -8px; color: rgba(201, 174, 105, .72); font: 500 8px/1 var(--mono); letter-spacing: .1em; }
.workflow-orbit i { width: 18px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 174, 105, .7), transparent); }
.workflow-orbit b { color: rgba(220, 232, 249, .58); font-weight: 500; }
.step-list { display: grid; gap: 0; margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); color: rgba(220, 232, 249, .5); text-align: left; scroll-margin-top: 110px; }
.step-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(190, 213, 247, .08); }
.step-item > span { color: var(--gold); font: 500 9px/1.4 var(--mono); }
.step-item > div { display: grid; gap: 6px; }
.step-item strong, .step-item .workflow-link { color: rgba(231, 239, 252, .9); font: 600 9px/1.35 var(--mono); letter-spacing: .09em; }
.step-item small { color: rgba(220, 232, 249, .42); font: 400 10px/1.45 var(--sans); letter-spacing: 0; }
.relay-warning { display: block; margin-top: 2px; padding: 7px 10px; border: 1px solid rgba(215, 165, 137, .34); border-left: 2px solid rgba(231, 177, 143, .9); border-radius: 6px; color: #f0c5ad; background: rgba(143, 77, 58, .12); font: 600 8px/1.45 var(--mono); letter-spacing: .045em; }
.workflow-link { padding: 0; border: 0; color: rgba(220, 232, 249, .72); background: transparent; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.workflow-link:hover { color: var(--silver); }
.workflow-note { margin: 12px 0 14px; color: rgba(220, 232, 249, .38); font: 400 10px/1.5 var(--sans); }
.result-input { display: block; width: 100%; resize: vertical; min-height: 86px; border: 1px solid rgba(201, 220, 248, .18); border-radius: 10px; padding: 12px; color: var(--silver); background: rgba(2, 8, 18, .42); font: 400 11px/1.55 var(--sans); outline: none; }
.result-input:focus { border-color: rgba(217, 229, 248, .58); box-shadow: 0 0 0 3px rgba(217, 229, 248, .08); }
.relay-return-warning { margin: 10px 0 0; padding: 10px 12px; border: 1px solid rgba(215, 165, 137, .34); border-left: 2px solid rgba(231, 177, 143, .9); border-radius: 9px; color: #f0c5ad; background: linear-gradient(135deg, rgba(143, 77, 58, .14), rgba(7, 17, 32, .42)); font: 600 8px/1.55 var(--mono); letter-spacing: .045em; text-align: left; }
.workflow-status { min-height: 28px; margin: 12px 0 16px; color: rgba(220, 232, 249, .42); font: 500 8px/1.5 var(--mono); letter-spacing: .08em; }
.panel-button { width: 100%; }
.panel-button:disabled { cursor: not-allowed; opacity: .42; transform: none; box-shadow: none; }
.result-share-reopen { display: block; width: 100%; margin-top: 10px; padding: 13px 16px; border: 1px solid rgba(201, 174, 105, .58); border-radius: 999px; color: #e7d7aa; background: linear-gradient(135deg, rgba(88, 67, 31, .28), rgba(5, 15, 30, .68)); font: 600 9px/1 var(--mono); letter-spacing: .09em; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.result-share-reopen[hidden] { display: none; }
.result-share-reopen:hover, .result-share-reopen:focus-visible { border-color: rgba(238, 244, 255, .82); color: #fff; background: linear-gradient(135deg, rgba(118, 90, 39, .38), rgba(8, 21, 41, .82)); box-shadow: 0 0 22px rgba(201, 174, 105, .14); outline: none; transform: translateY(-1px); }
.score-receipt { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 14px; align-items: baseline; margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(201, 174, 105, .28); border-radius: 10px; background: linear-gradient(135deg, rgba(112, 83, 34, .2), rgba(7, 17, 32, .52)); text-align: left; }
.score-receipt span, .score-receipt small { grid-column: 1 / -1; color: rgba(220, 232, 249, .42); font: 500 8px/1.3 var(--mono); letter-spacing: .1em; }
.score-receipt strong { color: var(--silver); font: 400 25px/1 var(--serif); }
.score-receipt b { color: var(--gold); font: 400 25px/1 var(--serif); }
.share-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-panel[hidden] { display: none; }
.share-panel-topline, .share-status { color: rgba(220, 232, 249, .42); font: 500 8px/1.4 var(--mono); letter-spacing: .08em; }
.share-panel-topline { display: flex; justify-content: space-between; gap: 10px; }
.share-canvas { display: block; width: min(100%, 280px); height: auto; margin: 16px auto; border: 1px solid rgba(201, 220, 248, .18); border-radius: 10px; background: #020711; }
.share-actions { display: grid; gap: 10px; }
.share-actions .panel-button { font-size: 9px; }
.share-actions .panel-button { min-height: 48px; }
.share-status { min-height: 28px; margin: 12px 0 0; text-align: center; }
.result-share-modal { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 22px; overflow-y: auto; }
.result-share-modal[hidden] { display: none; }
.result-share-scrim { position: fixed; inset: 0; background: rgba(1, 5, 14, .78); backdrop-filter: blur(15px); }
.result-share-modal .share-panel { position: relative; width: min(700px, 100%); max-height: min(94vh, 920px); overflow-y: auto; margin: 0; padding: 28px clamp(20px, 4vw, 42px) 26px; border: 1px solid rgba(201, 174, 105, .42); border-radius: 18px; background: linear-gradient(145deg, rgba(22, 22, 27, .98), rgba(5, 6, 10, .99)); box-shadow: 0 30px 100px rgba(0, 0, 0, .68), 0 0 60px rgba(201, 174, 105, .08); text-align: center; }
.result-share-modal .share-panel-topline { color: rgba(220, 232, 249, .5); }
.result-share-modal h2 { margin: 22px 0 0; color: var(--silver); font-size: clamp(30px, 5vw, 48px); line-height: .9; }
.share-modal-close { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border: 1px solid rgba(217, 229, 248, .2); border-radius: 50%; color: rgba(217, 229, 248, .66); background: rgba(4, 13, 28, .62); font-size: 20px; line-height: 1; cursor: pointer; }
.share-modal-close:hover { color: var(--silver); border-color: rgba(217, 229, 248, .56); }
.result-share-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 16px; }
.result-share-stats > div { display: grid; gap: 6px; padding: 12px 8px; border: 1px solid rgba(190, 213, 247, .13); border-radius: 9px; background: rgba(5, 15, 30, .42); }
.result-share-stats span { color: rgba(217, 229, 248, .42); font: 500 8px/1.2 var(--mono); letter-spacing: .08em; }
.result-share-stats strong { color: var(--silver); font: 400 27px/1 var(--serif); }
.result-share-stats > div:first-child strong { color: #d8c486; }
.result-share-modal .share-canvas { width: min(100%, 520px); margin: 8px auto 18px; border-color: rgba(201, 174, 105, .34); background: #08090d; }
.result-share-modal .share-actions { max-width: 520px; margin: 0 auto; }
.result-share-modal .share-status { color: rgba(217, 229, 248, .48); }
.share-chooser { max-width: 520px; margin: 14px auto 0; padding: 16px; border: 1px solid rgba(201, 174, 105, .34); border-radius: 12px; background: linear-gradient(145deg, rgba(45, 38, 27, .36), rgba(7, 12, 20, .72)); }
.share-chooser[hidden] { display: none; }
.share-chooser-title { margin: 0; color: #d8c486; font: 500 9px/1 var(--mono); letter-spacing: .12em; }
.share-chooser-copy { margin: 12px 0 8px; color: rgba(238, 244, 255, .72); font-size: 11px; line-height: 1.5; }
.share-format-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 10px; color: rgba(217, 229, 248, .48); font: 500 8px/1.2 var(--mono); letter-spacing: .08em; }
.share-format-select { min-width: 150px; padding: 8px 10px; border: 1px solid rgba(217, 229, 248, .2); border-radius: 7px; color: rgba(238, 244, 255, .84); background: rgba(4, 13, 28, .72); font: 500 8px/1.2 var(--mono); letter-spacing: .04em; }
.share-format-select:focus-visible { outline: 2px solid rgba(216, 196, 134, .8); outline-offset: 2px; }
.share-chooser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-target { min-height: 34px; border: 1px solid rgba(217, 229, 248, .2); border-radius: 7px; color: rgba(238, 244, 255, .78); background: rgba(4, 13, 28, .62); font: 500 8px/1.2 var(--mono); letter-spacing: .05em; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.share-target:hover, .share-target:focus-visible { border-color: rgba(217, 229, 248, .54); color: #fff; background: rgba(22, 41, 70, .8); outline: none; }
.share-chooser-url { margin: 12px 0 0; overflow: hidden; color: rgba(217, 229, 248, .42); font: 400 8px/1.3 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.result-share-open { overflow: hidden; }
.ranking-lead { display: flex; justify-content: space-between; align-items: end; margin: 32px 0 20px; }
.ranking-lead h3 { font-size: 44px; line-height: .9; }
.ranking-lead p { margin: 8px 0 0; color: rgba(220, 232, 249, .42); font: 400 9px/1.4 var(--mono); }
.your-rank { display: grid; gap: 6px; text-align: right; color: rgba(220, 232, 249, .44); font: 500 9px/1 var(--mono); letter-spacing: .08em; }
.your-rank strong { color: var(--silver); font: 400 32px/1 var(--serif); }
.tabs { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tab { border: 1px solid rgba(217, 229, 248, .25); border-radius: 999px; padding: 8px 12px; color: rgba(217, 229, 248, .52); background: transparent; font: 500 9px/1 var(--mono); }
.tab.active { color: #07111f; background: var(--silver); }
.rank-country-select { max-width: 144px; border: 1px solid rgba(201, 220, 248, .24); border-radius: 999px; padding: 8px 25px 8px 11px; color: rgba(217, 229, 248, .7); background: linear-gradient(135deg, rgba(32, 54, 91, .74), rgba(6, 15, 29, .82)); font: 500 9px/1 var(--mono); letter-spacing: .04em; outline: none; }
.rank-country-select::placeholder { color: rgba(217, 229, 248, .7); opacity: 1; }
.rank-country-select:focus { border-color: rgba(217, 229, 248, .68); box-shadow: 0 0 0 3px rgba(217, 229, 248, .08); }
.rank-fate-select { max-width: 164px; border: 1px solid rgba(201, 220, 248, .24); border-radius: 999px; padding: 8px 25px 8px 11px; color: rgba(217, 229, 248, .7); background: linear-gradient(135deg, rgba(53, 43, 27, .74), rgba(6, 15, 29, .82)); font: 500 9px/1 var(--mono); letter-spacing: .04em; outline: none; }
.rank-fate-select:focus { border-color: rgba(217, 229, 248, .68); box-shadow: 0 0 0 3px rgba(217, 229, 248, .08); }
.rank-country-select, .rank-fate-select { color-scheme: dark; color: #d9e5f8; }
.rank-country-select option, .rank-fate-select option { background-color: #0d1b2e; color: #d9e5f8; }
.rank-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 30px; }
.rank-podium > div { display: grid; gap: 8px; padding: 16px; border: 1px solid rgba(190, 213, 247, .12); border-radius: 10px; background: rgba(5, 15, 30, .46); }
.rank-podium .selected { border-color: rgba(201, 176, 101, .62); background: linear-gradient(145deg, rgba(113, 87, 39, .28), rgba(8, 16, 31, .54)); }
.rank-podium span, .rank-podium small { color: rgba(217, 229, 248, .45); font: 500 9px/1 var(--mono); }
.rank-podium b { font-size: 11px; font-weight: 500; }
.rank-podium strong { font: 400 30px/1 var(--serif); }
.table-head, .rank-table > div { display: grid; grid-template-columns: 70px 1.4fr 1fr 90px; gap: 12px; align-items: center; }
.table-head { padding: 15px 0 11px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: rgba(217, 229, 248, .35); }
.rank-table.has-rows { min-height: 228px; }
.rank-table > div { min-height: 38px; border-bottom: 1px solid rgba(190, 213, 247, .10); color: rgba(220, 232, 249, .66); font-size: 10px; }
.rank-table > div.current { color: #f1f6ff; background: linear-gradient(90deg, rgba(188, 160, 93, .15), transparent); }
.ranking-empty { position: relative; display: grid; gap: 8px; place-items: center; min-height: 220px; border: 1px dashed rgba(201, 220, 248, .2); border-radius: 12px; background: radial-gradient(circle at 50% 35%, rgba(112, 153, 214, .14), transparent 48%); color: rgba(220, 232, 249, .46); text-align: center; overflow: hidden; }
.ranking-empty[hidden], .rank-podium[hidden], .table-head[hidden] { display: none; }
.ranking-empty::before { content: '✦  ◦  ✦'; position: absolute; top: 28px; color: rgba(201, 174, 105, .64); font: 500 10px/1 var(--mono); letter-spacing: .4em; text-shadow: 0 0 14px rgba(217, 185, 103, .5); }
.ranking-empty strong { color: var(--silver); font: 400 26px/1 var(--serif); }
.ranking-empty span { max-width: 280px; font: 400 9px/1.5 var(--mono); letter-spacing: .06em; }
.ranking-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(190, 213, 247, .1); color: rgba(217, 229, 248, .48); font: 500 8px/1 var(--mono); letter-spacing: .08em; }
.ranking-pagination[hidden] { display: none; }
.dimension-panel { margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(190, 213, 247, .12); }
.dimension-panel[hidden] { display: none; }
.dimension-panel-topline { display: flex; justify-content: space-between; gap: 12px; color: rgba(217, 229, 248, .52); font: 500 8px/1.3 var(--mono); letter-spacing: .1em; }
.dimension-chart-wrap { position: relative; display: grid; place-items: center; width: min(100%, 840px); min-height: 420px; margin: 18px auto 0; overflow: hidden; border: 1px solid rgba(190, 213, 247, .16); border-radius: 16px; background: radial-gradient(circle at 50% 48%, rgba(139, 169, 211, .11), transparent 36%), radial-gradient(circle at 50% 48%, rgba(201, 174, 105, .045), transparent 58%), linear-gradient(145deg, rgba(7, 22, 43, .86), rgba(2, 7, 17, .9)); box-shadow: inset 0 0 55px rgba(2, 8, 19, .8), 0 18px 42px rgba(0, 0, 0, .16); }
.dimension-chart-wrap::before { content: ''; position: absolute; top: 20px; left: 50%; width: 48px; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(201, 174, 105, .72), transparent); box-shadow: 0 0 12px rgba(201, 174, 105, .36); pointer-events: none; }
.dimension-chart { position: relative; z-index: 1; display: block; width: min(100%, 540px); height: auto; overflow: visible; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .3)); }
.dimension-grid .dimension-ring { fill: none; stroke: rgba(190, 213, 247, .13); stroke-width: 1; }
.dimension-grid .ring-100 { stroke: rgba(221, 232, 248, .3); stroke-width: 1.2; }
.dimension-grid .ring-60 { stroke: rgba(201, 174, 105, .22); stroke-width: 1; }
.dimension-grid line { stroke: rgba(190, 213, 247, .2); stroke-width: 1; stroke-dasharray: 2 5; }
.dimension-scale-label { fill: rgba(217, 229, 248, .26); font: 500 8px var(--mono); letter-spacing: 0; }
.dimension-area-glow { fill: none; stroke: rgba(220, 232, 249, .44); stroke-width: 7; stroke-linejoin: round; filter: url(#dimension-moon-glow); opacity: .36; }
.dimension-area { fill: url(#dimension-moon-fill); stroke: rgba(238, 244, 255, .94); stroke-width: 2.2; stroke-linejoin: round; }
.dimension-center { fill: #d8c486; stroke: rgba(238, 244, 255, .72); stroke-width: 1.2; filter: drop-shadow(0 0 6px rgba(216, 196, 134, .8)); }
.dimension-point-halo { fill: rgba(216, 196, 134, .14); stroke: rgba(216, 196, 134, .42); stroke-width: 1; }
.dimension-point { fill: #f3f6fb; stroke: #c7a963; stroke-width: 2; filter: drop-shadow(0 0 5px rgba(238, 244, 255, .72)); }
.dimension-labels { fill: rgba(232, 239, 249, .82); font: 500 10px var(--mono); letter-spacing: .08em; }
.dimension-labels .dimension-label { fill: rgba(232, 239, 249, .82); }
.dimension-labels .dimension-value { fill: #d8c486; font-size: 10px; letter-spacing: .02em; }
.dimension-note { margin: 12px 0 0; color: rgba(217, 229, 248, .38); text-align: center; font: 500 8px/1.4 var(--mono); letter-spacing: .07em; }

.fates { background: radial-gradient(circle at 50% 52%, rgba(75, 114, 182, .14), transparent 34%), #020711; }
.fates-window { position: relative; height: clamp(280px, 33vw, 390px); margin-top: 56px; overflow: hidden; border-top: 1px solid var(--line-bright); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(9, 21, 42, .66), rgba(1, 7, 16, .88)); }
.fates-strip { position: absolute; inset: 0; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); width: max-content; padding: 24px 44px; cursor: grab; transform: translateX(-42px); transition: transform .16s ease-out; }
.fates-strip:active { cursor: grabbing; }
.fate-strip-card { position: relative; display: grid; place-items: center; height: 100%; padding: 7px; border: 1px solid rgba(220, 233, 255, .52); border-radius: 10px; background: linear-gradient(135deg, rgba(205, 224, 251, .15), rgba(8, 16, 31, .4)); box-shadow: 0 14px 34px rgba(0, 0, 0, .28), 0 0 24px rgba(214, 231, 255, .12); }
.fate-strip-card::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(211, 180, 105, .28); border-radius: 7px; pointer-events: none; }
.fate-strip-card img { display: block; height: 100%; width: auto; max-width: 220px; object-fit: contain; filter: saturate(.84) contrast(1.04) brightness(.82); }
.strip-rail { position: absolute; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, transparent, rgba(214, 229, 251, .55), transparent); pointer-events: none; }
.strip-rail.top { top: 16px; }
.strip-rail.bottom { bottom: 16px; opacity: .55; }
.strip-caption { margin: 18px 0 0; color: rgba(217, 229, 248, .42); text-align: center; }
.footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; padding: 36px clamp(24px, 7vw, 104px); border-top: 1px solid var(--line); color: rgba(217, 229, 248, .42); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title-word { animation: none; }
  .hero-image, .hero-copy, .arrival-stage, .receiving-hands { transform: none; }
  .hero-motion-canvas { display: none; }
  .hero-motion-ready .moon-origin-ray { display: none; }
  .section-shell[data-story-section] .section-heading,
  .section-shell[data-story-section] .trials-grid,
  .section-shell[data-story-section] .fates-window,
  .section-shell[data-story-section] .strip-caption { opacity: 1; transform: none; filter: none; transition: none; }
}

@media (max-width: 820px) {
  .topbar { padding: 18px 20px; }
  .nav a:not(.nav-pill) { display: none; }
  .hero { height: 820px; }
  .moon-origin-glow { right: 8%; }
  .hero-motion-ready .moon-origin-ray { top: 25%; left: 88%; width: 170px; transform: translateX(-50%) rotate(38deg); }
  .hero-copy { bottom: 13%; }
  .hero-meta { right: 22px; bottom: 23%; font-size: 8px; }
  .arrival-stage { top: 54%; left: 67%; transform: translate3d(calc(-50% + var(--deck-sway-x, 0px)), calc(-50% + var(--deck-sway-y, 0px)), 0) scale(.72) rotate(var(--deck-sway-rot, 0deg)); transform-origin: center; }
  .hero-copy { max-width: 58%; }
  h1 { font-size: clamp(46px, 11vw, 78px); }
  .hero-body { font-size: 11px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .trials-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; gap: 24px; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .journey-fields { grid-template-columns: 1fr; }
  .auth-fields { grid-template-columns: 1fr; }
  .journey-brand { margin-bottom: 36px; }
  .hero-image { object-position: 62% center; }
  .hero-copy { left: 20px; bottom: 11%; max-width: 76%; }
  .hero-meta { display: none; }
  .arrival-stage { top: 40%; left: 78%; transform: translate3d(calc(-50% + var(--deck-sway-x, 0px)), calc(-50% + var(--deck-sway-y, 0px)), 0) scale(.64) rotate(var(--deck-sway-rot, 0deg)); }
  .hero-scroll { left: 20px; transform: none; font-size: 8px; }
  .hero-handoff { left: 20px; right: 20px; justify-content: center; transform: none; font-size: 7px; }
  .hero-handoff:hover { transform: translateY(-3px); }
  .rank-podium { grid-template-columns: 1fr; }
  .rank-podium > div:nth-child(3) { display: none; }
  .tabs { justify-content: flex-start; }
  .rank-country-select, .rank-fate-select { max-width: 100%; }
  .share-chooser-grid { grid-template-columns: repeat(2, 1fr); }
  .share-format-label { align-items: stretch; flex-direction: column; }
  .share-format-select { width: 100%; }
  .table-head, .rank-table > div { grid-template-columns: 42px 1.3fr 1fr 58px; gap: 8px; font-size: 8px; }
  .fates-strip { gap: 12px; padding-inline: 24px; }
  .fate-strip-card img { max-width: 146px; }
}
