/* ============================================================
   重生點 RESPAWN — main stylesheet
   1 tokens · 2 base · 3 shared UI · 4 overlays · 5 home
   6 quiz · 7 report · 8 responsive · 9 reduced motion
   ============================================================ */

/* ---------- 1. tokens ---------- */
:root {
  --ink: #07080c;
  --ink2: #0e1118;
  --ink3: #161a24;
  --line: rgba(255, 255, 255, .1);
  --paper: #f4f1e8;
  --soft: #c3cad6;
  --mute: #8f98a8;

  --lime: #8cff3f;
  --lime-d: #2f7a0a;
  --diamond: #3cf2e4;
  --red: #ff3b47;
  --gold: #ffd23f;
  --purple: #b98cff;
  --copper: #ff8a4c;
  --pink: #ff9ecb;

  --f-zh: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --f-px: "Jersey 15", "Noto Sans TC", monospace;
  --f-wide: "Unbounded", "Noto Sans TC", sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --hud-h: 64px;
  --pad: clamp(18px, 5vw, 80px);
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-zh);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
img.px, canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; }
::selection { background: var(--lime); color: #07130a; }
:focus-visible { outline: 3px solid var(--diamond); outline-offset: 3px; }
[hidden] { display: none !important; }
.noscript { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 16px 20px; background: #ff3b47; color: #fff; font-weight: 700; text-align: center; }

html { scrollbar-color: var(--lime) var(--ink2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink2); }
::-webkit-scrollbar-thumb { background: var(--lime); }

/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 78; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main { overflow-x: clip; }
.scene { display: none; position: relative; min-height: 100vh; min-height: 100svh; }
.scene.is-active { display: block; }

/* ---------- 3. shared UI ---------- */
/* chunky "pressable block" button */
.btn {
  --btn-bg: var(--lime); --btn-fg: #07130a; --btn-shade: var(--lime-d);
  position: relative; display: inline-block;
  filter: drop-shadow(0 7px 0 var(--btn-shade)) drop-shadow(0 16px 22px rgba(0, 0, 0, .5));
  transition: filter .12s, transform .3s var(--ease-back);
  -webkit-tap-highlight-color: transparent;
}
.btn-face {
  --n: 6px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 15px 26px 16px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 900; font-size: 18px; letter-spacing: .06em; white-space: nowrap;
  clip-path: polygon(0 var(--n), var(--n) var(--n), var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)));
  transition: transform .12s;
}
.btn-face::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: rgba(255, 255, 255, .5); }
.btn-face::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn:hover { transform: translateY(-4px) scale(1.03); }
.btn:active { filter: drop-shadow(0 1px 0 var(--btn-shade)) drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); transform: none; }
.btn:active .btn-face { transform: translateY(6px); }
.btn-xl .btn-face { font-size: clamp(19px, 1.7vw, 24px); padding: 19px 34px 20px; --n: 8px; }
.btn.alt { --btn-bg: #f4f1e8; --btn-shade: #7d8494; }
.btn kbd {
  font-family: var(--f-px); font-size: 16px; font-weight: 400; letter-spacing: .06em; line-height: 1;
  padding: 3px 7px 2px; background: rgba(7, 19, 10, .16); border: 2px solid rgba(7, 19, 10, .45);
}
.btn-ghost {
  padding: 12px 6px; font-weight: 700; font-size: 15px; color: var(--paper);
  border-bottom: 2px solid rgba(255, 255, 255, .35); transition: color .2s, border-color .2s, letter-spacing .3s var(--ease);
}
.btn-ghost:hover { color: var(--lime); border-color: var(--lime); letter-spacing: .06em; }
.link { color: var(--mute); text-decoration: underline; text-underline-offset: 5px; font-size: 14px; font-weight: 700; transition: color .2s; }
.link:hover { color: #fff; }

.sec-head { max-width: 1280px; margin: 0 auto; }
.sec-kicker { font-family: var(--f-wide); color: var(--lime); letter-spacing: .2em; font-size: 12px; font-weight: 700; }
.sec-head h2 { font-size: clamp(34px, 5.6vw, 84px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; margin-top: 8px; }
.sec-head .lead { color: var(--soft); margin-top: 14px; font-size: clamp(15px, 1.4vw, 19px); max-width: 40em; }

[data-reveal] { opacity: 0; transform: translateY(44px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
/* [data-io] elements get .in from JS with an automatic stagger */
[data-io="up"]:not(.in) { opacity: 0; transform: translateY(40px); }

.rise { opacity: 0; transform: translateY(28px); }
.is-live .rise { animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@keyframes blink { 50% { opacity: .15; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { padding: 28px var(--pad) 64px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; text-align: center; }
.foot b { color: var(--paper); }
.foot-en { font-family: var(--f-wide); font-size: 9.5px; letter-spacing: .1em; margin-top: 8px; opacity: .7; }

/* ---------- 4. overlays ---------- */
#boot { position: fixed; inset: 0; z-index: 85; background: var(--ink); display: grid; place-items: center; }
.boot-in { text-align: center; }
.boot-in .bed { width: 120px; margin: 0 auto; animation: bob 1.1s steps(3) infinite; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .6)); }
.boot-name { font-weight: 900; font-size: 30px; letter-spacing: .5em; margin: 22px 0 20px .5em; }
.boot-bar { width: 252px; height: 18px; border: 3px solid var(--paper); padding: 3px; margin: 0 auto; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--lime); animation: bootFill 1s steps(12) forwards; }
@keyframes bootFill { to { width: 100%; } }
.boot-txt { margin-top: 16px; font-size: 13px; color: var(--mute); letter-spacing: .16em; }
.dots::after { content: ""; animation: dots 1.2s steps(1) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

#wipe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; display: none; }
#fxAmb { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; mix-blend-mode: screen; display: none; }
#fxTop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 75; pointer-events: none; }
#flash { position: fixed; inset: 0; z-index: 88; background: #fff; opacity: 0; pointer-events: none; }
#flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
body.shake main { animation: shake .5s steps(8); }
@keyframes shake {
  0%, 100% { transform: none; }
  12% { transform: translate(-10px, 6px); } 25% { transform: translate(9px, -7px); }
  37% { transform: translate(-7px, -5px); } 50% { transform: translate(6px, 6px); }
  62% { transform: translate(-4px, 3px); } 75% { transform: translate(3px, -3px); } 87% { transform: translate(-2px, 1px); }
}

/* custom cursor (fine pointers only) */
#cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: none; mix-blend-mode: difference; }
.has-cursor #cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.c-ring, .c-dot { position: absolute; left: 0; top: 0; will-change: transform; }
.c-dot i { position: absolute; width: 8px; height: 8px; margin: -4px; background: #fff; }
.c-ring b {
  position: absolute; width: 34px; height: 34px; margin: -17px; border: 2px solid #fff;
  transition: width .3s var(--ease-back), height .3s var(--ease-back), margin .3s var(--ease-back), transform .35s var(--ease), background .2s;
}
#cursor.hot .c-ring b { width: 60px; height: 60px; margin: -30px; transform: rotate(45deg); background: rgba(255, 255, 255, .18); }
#cursor.down .c-ring b { width: 20px; height: 20px; margin: -10px; }

/* achievement-style toasts */
#toasts { position: fixed; right: 16px; top: calc(var(--hud-h) + 8px); z-index: 70; display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: flex; gap: 12px; align-items: center; padding: 10px 18px 10px 12px; min-width: 232px;
  background: #171a22; border: 2px solid #000; box-shadow: inset 0 0 0 2px #4b5160, 0 12px 30px rgba(0, 0, 0, .55);
  transform: translateX(125%); transition: transform .55s var(--ease-back);
}
.toast.in { transform: none; }
.toast img { width: 38px; height: 38px; flex: none; }
.toast b { display: block; color: var(--gold); font-size: 12.5px; letter-spacing: .08em; line-height: 1.3; }
.toast span { font-weight: 700; font-size: 15px; line-height: 1.3; }

/* HUD */
#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--hud-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(14px, 3vw, 36px); pointer-events: none;
}
#hud > * { pointer-events: auto; }
#hud::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(rgba(7, 8, 12, .94), rgba(7, 8, 12, .7)); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
body.scrolled #hud::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .bed { width: 40px; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .65)); transition: transform .4s var(--ease-back); }
.brand:hover .bed { transform: rotate(-8deg) scale(1.15); }
.brand b { display: block; font-size: 18px; font-weight: 900; letter-spacing: .12em; line-height: 1.1; text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.brand small { display: block; font-family: var(--f-wide); font-size: 8.5px; font-weight: 700; letter-spacing: .34em; color: var(--lime); line-height: 1.2; }
.hud-right { display: flex; gap: 8px; }
.hud-btn {
  height: 40px; min-width: 40px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(10, 12, 18, .66); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700; transition: background .2s, border-color .2s, color .2s;
}
.hud-btn:hover { background: var(--lime); color: #07130a; border-color: var(--lime); }
.snd-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.snd-bars i { width: 3px; background: currentColor; height: 30%; animation: eq 1s steps(4) infinite; }
.snd-bars i:nth-child(2) { animation-delay: -.3s; } .snd-bars i:nth-child(3) { animation-delay: -.6s; } .snd-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 25% { height: 100%; } 50% { height: 45%; } 75% { height: 80%; } }
.hud-snd[aria-pressed="false"] .snd-bars i { animation: none; height: 3px; opacity: .5; }

/* version picker sheet */
.picker { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
.picker-back { position: absolute; inset: 0; background: rgba(4, 5, 8, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .3s; }
.picker-panel {
  position: relative; width: min(1040px, 100%); max-height: min(88vh, 860px); display: flex; flex-direction: column;
  background: var(--ink2); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .6);
  animation: sheetUp .55s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.picker-panel header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.picker-panel h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 900; margin-top: 2px; }
.picker-list { overflow: auto; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 10px; overscroll-behavior: contain; }
.pick {
  text-align: left; padding: 13px 16px 14px; display: grid; gap: 2px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-left: 5px solid var(--c);
  transition: transform .25s var(--ease), background .2s;
}
.pick:hover { background: color-mix(in srgb, var(--c) 24%, transparent); transform: translateY(-3px); }
.pick b { font-family: var(--f-px); font-weight: 400; font-size: 38px; line-height: .9; color: var(--c); }
.pick span { font-weight: 700; font-size: 14.5px; }
.pick small { color: var(--mute); font-size: 12px; }
.pick.cur { outline: 2px solid var(--lime); outline-offset: 2px; }

/* XP bar = report scroll progress */
#xpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 14px 10px; pointer-events: none; }
#xpbar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: -1; background: linear-gradient(rgba(7, 8, 12, 0), rgba(7, 8, 12, .92) 62%); }
.xp-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.xp-track { flex: 1; height: 13px; background: #0b0d12; border: 2px solid #000; box-shadow: inset 0 0 0 2px #2a2f3a, 0 6px 18px rgba(0, 0, 0, .6); overflow: hidden; }
.xp-track i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--lime) 0 16px, #63d426 16px 18px); box-shadow: 0 0 14px rgba(140, 255, 63, .8); }
.xp-lv { font-family: var(--f-px); font-weight: 400; font-size: 30px; line-height: 1; color: var(--lime); text-shadow: 2px 2px 0 #000; min-width: 2ch; text-align: center; }
.xp-lv.pop { animation: lvPop .4s var(--ease-back); }
@keyframes lvPop { 40% { transform: scale(1.7); color: #fff; } }
.xp-label { font-size: 11px; letter-spacing: .16em; color: var(--soft); font-weight: 700; text-shadow: 1px 1px 0 #000; }

/* ---------- 5. home ---------- */
#home { background: var(--ink); }
.hero-wrap { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; touch-action: pan-y; }
.sky, .sky > * { position: absolute; inset: 0; }
.sky-night { background: linear-gradient(180deg, #04050b 0%, #0a0f24 50%, #15113a 100%); }
.sky-dawn {
  background: linear-gradient(180deg, #0a0e2c 0%, #1f1850 34%, #56297a 58%, #c14d7c 77%, #ff8f5c 91%, #ffd08a 100%);
  opacity: 0; transition: opacity 4.5s ease;
}
.is-dawn .sky-dawn { opacity: 1; }
#stars { width: 100%; height: 100%; transition: opacity 5s ease; animation: twinkle 4s ease-in-out infinite; }
.is-dawn #stars { opacity: .5; }
@keyframes twinkle { 50% { filter: brightness(.65); } }
.sun {
  left: 57%; top: 66%; right: auto; bottom: auto; width: clamp(96px, 11vw, 176px); height: auto; aspect-ratio: 1;
  background: #fff4cc;
  box-shadow: 0 0 0 12px rgba(255, 224, 160, .28), 0 0 0 30px rgba(255, 190, 120, .14), 0 0 140px 50px rgba(255, 150, 90, .5);
  transform: translate(-50%, 260%); transition: transform 5.5s var(--ease);
}
.is-dawn .sun { transform: translate(-50%, -50%); }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, .86) 0%, rgba(7, 8, 12, .6) 30%, rgba(7, 8, 12, 0) 58%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7, 8, 12, .55) 12%, rgba(7, 8, 12, 0) 30%);
}
.hero {
  position: absolute; z-index: 3; left: clamp(20px, 6vw, 96px);
  top: calc(var(--hud-h) + (100% - var(--hud-h) - 46px) / 2); transform: translateY(-50%);
  width: min(700px, 88vw); pointer-events: none;
}
.hero > * { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--lime);
  background: rgba(140, 255, 63, .1); border: 1px solid rgba(140, 255, 63, .4);
}
.eyebrow i { width: 8px; height: 8px; background: var(--lime); animation: blink 1.1s steps(1) infinite; }
.hero-title {
  font-weight: 900; font-size: clamp(54px, min(7.6vw, 15vh), 128px); line-height: 1.02; letter-spacing: -.02em;
  margin: 20px 0 22px; text-shadow: 0 6px 40px rgba(7, 8, 12, .7);
}
.hero-title .ln { display: block; white-space: nowrap; }
.hero-title .afk {
  font-family: var(--f-wide); font-weight: 900; letter-spacing: -.045em; color: var(--lime); margin-right: .16em;
  text-shadow: .045em .045em 0 #1c5a00, .09em .09em 0 rgba(0, 0, 0, .6);
}
.ch { display: inline-block; opacity: 0; transform: translateY(-120%) rotate(-10deg) scale(.6); }
.is-live .ch { animation: chIn .75s var(--ease-back) forwards; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes chIn { 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.hero-title:hover .afk .ch { animation: chWave .6s var(--ease-back); animation-delay: calc(var(--j) * 60ms); opacity: 1; transform: none; }
@keyframes chWave { 40% { transform: translateY(-.16em) rotate(-6deg); color: #fff; } }
.hero-sub { font-size: clamp(15px, 1.35vw, 19px); color: #dfe4ee; max-width: 31em; text-wrap: balance; text-shadow: 0 2px 16px rgba(7, 8, 12, .9); }
.hero-sub b { color: var(--lime); font-weight: 900; }
.hero-cta { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(18px, 3vw, 44px); margin-top: 34px; }
.hero-stats li { display: grid; gap: 4px; }
.hero-stats b { font-family: var(--f-px); font-weight: 400; font-size: clamp(48px, 4.6vw, 72px); line-height: .8; color: #fff; text-shadow: 3px 3px 0 rgba(0, 0, 0, .55); }
.hero-stats b small { font-family: var(--f-zh); font-weight: 900; font-size: .28em; margin-left: 4px; color: var(--lime); }
.hero-stats li > span { font-size: 12px; line-height: 1.5; color: #aeb6c4; font-weight: 500; }
.drag-hint {
  position: absolute; z-index: 3; right: clamp(14px, 3vw, 36px); bottom: 62px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; color: rgba(255, 255, 255, .75);
  padding: 5px 12px; background: rgba(7, 8, 12, .45); pointer-events: none; opacity: 0; transition: opacity .8s;
}
.is-live .drag-hint { opacity: 1; transition-delay: 3.5s; }
.drag-hint.gone { opacity: 0 !important; transition-delay: 0s !important; }
.drag-hint span { display: inline-block; animation: nudge 1.2s ease-in-out infinite; }
.drag-hint span:last-child { animation-direction: reverse; }
@keyframes nudge { 50% { transform: translateX(-5px); } }

.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 46px; display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7, 8, 12, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ticker-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 46s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; font-weight: 700; font-size: 13.5px; letter-spacing: .14em; padding: 0 22px; }
.ticker-track span::after { content: ""; width: 9px; height: 9px; background: var(--lime); transform: rotate(45deg); margin-left: 44px; }
.ticker-track span:nth-child(3n)::after { background: var(--diamond); }
.ticker-track span:nth-child(3n+1)::after { background: var(--gold); }
.ticker-track em { font-style: normal; font-family: var(--f-wide); color: var(--lime); margin: 0 .4em; }

/* giant outlined version marquee */
.bigmq { padding: clamp(36px, 6vw, 90px) 0 clamp(10px, 2vw, 30px); overflow: hidden; }
.bigmq-row { display: flex; width: max-content; white-space: nowrap; animation: marquee 80s linear infinite; }
.bigmq-row.rev { animation-direction: reverse; animation-duration: 95s; }
.bigmq:hover .bigmq-row { animation-play-state: paused; }
.bigmq-row span {
  font-weight: 900; font-size: clamp(46px, 8.6vw, 136px); line-height: 1.18; padding: 0 .28em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244, 241, 232, .26); transition: color .25s, -webkit-text-stroke-color .25s, text-shadow .25s;
}
.bigmq-row span b { font-family: var(--f-px); font-weight: 400; font-size: 1.22em; line-height: 1; margin-right: .16em; }
.bigmq-row span:hover { color: var(--c); -webkit-text-stroke-color: var(--c); text-shadow: 0 0 60px color-mix(in srgb, var(--c) 60%, transparent); }

.how { padding: clamp(50px, 8vw, 120px) var(--pad); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1280px; margin: 44px auto 0; }
.how-card {
  position: relative; padding: 30px 28px 32px; overflow: hidden;
  background: linear-gradient(160deg, #151a27, #0d1018); border: 1px solid var(--line); border-bottom: 4px solid var(--c);
  transition: transform .4s var(--ease), border-color .3s, opacity .9s var(--ease);
}
.how-card.in:hover { transform: translateY(-10px); border-color: var(--c); }
.how-n { position: absolute; right: 16px; top: 20px; font-family: var(--f-wide); font-weight: 900; font-size: 100px; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--c); opacity: .55; }
.how-card img { width: 92px; height: 92px; filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .5)); transition: transform .5s var(--ease-back); }
.how-card:hover img { transform: rotate(-8deg) scale(1.15); }
.how-card h3 { font-size: 27px; font-weight: 900; margin: 20px 0 8px; }
.how-card p { color: var(--soft); font-size: 15px; }

.home-cta { text-align: center; padding: clamp(70px, 12vw, 180px) 20px; background: radial-gradient(60% 70% at 50% 100%, rgba(140, 255, 63, .17), transparent 70%); }
.home-cta h2 { font-size: clamp(44px, 8.5vw, 140px); font-weight: 900; line-height: 1.06; letter-spacing: -.02em; margin: 10px 0 40px; }
.home-cta h2 em { font-style: normal; color: var(--lime); text-shadow: .04em .04em 0 #1c5a00; }

/* ---------- 6. quiz ---------- */
#quiz { background: radial-gradient(110% 70% at 50% 0%, #17203a 0%, var(--ink) 62%); overflow: hidden; }
.quiz-grid {
  position: absolute; inset: -2px; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  animation: gridMove 14s linear infinite;
}
@keyframes gridMove { to { background-position: 0 48px, 48px 0; } }
.quiz-wrap {
  position: relative; min-height: 100vh; min-height: 100svh; max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  padding: calc(var(--hud-h) + 6px) clamp(16px, 4vw, 40px) 22px;
}
.quiz-head { grid-row: 1; text-align: center; min-height: 92px; }
.quiz-kicker { font-family: var(--f-wide); color: var(--lime); letter-spacing: .16em; font-size: 12px; font-weight: 700; }
.quiz-q { font-size: clamp(24px, 4vw, 44px); font-weight: 900; line-height: 1.2; margin-top: 4px; text-wrap: balance; }
.quiz-hint { color: var(--mute); font-size: 14px; margin-top: 4px; }
.quiz-head.swap > * { animation: rise .5s var(--ease) both; }
.quiz-stage { grid-row: 2; position: relative; display: grid; place-items: center; align-content: center; }

.eras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(780px, 100%); }
.era {
  position: relative; overflow: hidden; text-align: left; padding: 18px 46px 18px 20px; display: grid; gap: 3px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line); border-left: 5px solid var(--lime);
  opacity: 0; transform: translateY(26px); animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * 65ms + 120ms);
  transition: background .2s, color .2s, border-color .2s, box-shadow .25s;
}
.era::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translate(-12px, -50%); opacity: 0; transition: all .25s var(--ease); font-weight: 900; font-size: 20px; }
.era:hover { background: var(--lime); color: #07130a; border-color: var(--lime); box-shadow: 0 14px 34px -10px rgba(140, 255, 63, .6); }
.era:hover::after { opacity: 1; transform: translate(0, -50%); }
.era-y { font-family: var(--f-px); font-size: clamp(32px, 3.6vw, 42px); font-weight: 400; line-height: .95; letter-spacing: .02em; }
.era-y.zh { font-family: var(--f-zh); font-weight: 900; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.35; letter-spacing: 0; }
.era-c { font-size: 13.5px; opacity: .78; font-weight: 500; }
.era:last-child { grid-column: 1 / -1; border-left-color: var(--mute); }
.eras.out .era { animation: eraOut .4s var(--ease) forwards; animation-delay: calc(var(--i) * 30ms); }
.eras.out .era.picked { animation: eraPick .55s var(--ease) forwards; background: var(--lime); color: #07130a; }
@keyframes eraOut { to { opacity: 0; transform: translateY(-18px) scale(.96); } }
@keyframes eraPick { 0% { opacity: 1; transform: none; } 40% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.12); } }

.deck-wrap { display: grid; justify-items: center; gap: 18px; width: 100%; }
.deck { position: relative; width: min(84vw, 390px); height: clamp(250px, calc(100vh - 480px), 440px); perspective: 1200px; }
.qcard {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 26px 24px 30px; user-select: none; -webkit-user-select: none; touch-action: pan-y; will-change: transform;
  background: linear-gradient(160deg, #1d2538, #10141f); border: 2px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .8), 10px 10px 0 rgba(0, 0, 0, .4);
}
.qcard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.qcard.g1 { transform: translateY(12px) scale(.95); opacity: .55; }
.qcard.g2 { transform: translateY(24px) scale(.9); opacity: .28; }
.qcard.live { cursor: grab; animation: cardIn .5s var(--ease-back) both; }
.qcard.live.drag { cursor: grabbing; animation: none; }
.qcard.live.back { transition: transform .45s var(--ease-back); animation: none; }
.qcard.live.fly { transition: transform .5s cubic-bezier(.5, 0, .8, .4), opacity .5s; animation: none; pointer-events: none; }
@keyframes cardIn { from { transform: translateY(40px) scale(.86) rotateX(24deg); opacity: 0; } }
.qcard .ico { position: relative; width: clamp(92px, 16vh, 176px); height: auto; aspect-ratio: 1; filter: drop-shadow(7px 7px 0 rgba(0, 0, 0, .45)); animation: bob 2.6s ease-in-out infinite; pointer-events: none; }
.qcard h3 { position: relative; font-size: clamp(24px, 4.4vw, 34px); font-weight: 900; margin-top: 12px; }
.qcard p { position: relative; color: var(--soft); font-size: 15px; margin-top: 8px; max-width: 24em; line-height: 1.55; }
.stamp {
  position: absolute; top: 20px; z-index: 2; font-weight: 900; font-size: 22px; letter-spacing: .08em; padding: 4px 12px; border: 4px solid; opacity: 0;
  background: rgba(7, 8, 12, .7);
}
.stamp.yes { left: 16px; color: var(--lime); transform: rotate(-12deg); }
.stamp.no { right: 16px; color: var(--red); transform: rotate(12deg); }
.answers { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ans .btn-face { font-size: 16px; padding: 13px 20px 14px; }
.ans.no { --btn-bg: var(--red); --btn-fg: #fff; --btn-shade: #9b1620; }
.ans.maybe { --btn-bg: #3a4359; --btn-fg: #fff; --btn-shade: #1d2231; }
.ans .btn-face::after { display: none; }
.ans kbd { background: rgba(0, 0, 0, .2); border-color: rgba(0, 0, 0, .35); }

.radar { grid-row: 3; border: 1px solid var(--line); background: rgba(7, 8, 12, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 12px 16px 12px; animation: rise .7s var(--ease) both; }
.radar-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-wide); font-weight: 600; font-size: 10.5px; letter-spacing: .12em; color: var(--mute); }
#radarConf { color: var(--lime); }
.radar-bars { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin-top: 8px; }
.radar-bars i { flex: 1; min-width: 0; height: 6%; background: #46506a; transition: height .7s var(--ease), background-color .5s, box-shadow .5s; }
.radar-bars i.warm { background: #7fae5a; }
.radar-bars i.hot { background: var(--lime); box-shadow: 0 0 14px rgba(140, 255, 63, .7); }
.radar-axis { display: flex; gap: 3px; margin-top: 5px; height: 14px; }
.radar-axis span { flex: 1; min-width: 0; font-family: var(--f-px); font-size: 16px; color: var(--mute); white-space: nowrap; overflow: visible; line-height: 14px; }
.radar-read { margin-top: 6px; font-size: 14px; color: var(--soft); }
.radar-read b { color: var(--lime); font-family: var(--f-px); font-weight: 400; font-size: 27px; line-height: 1; margin: 0 3px; vertical-align: -2px; }

.lock { text-align: center; }
.lock-num {
  font-family: var(--f-px); font-weight: 400; font-size: clamp(120px, 28vw, 320px); line-height: .9; color: #fff;
  text-shadow: 5px 0 0 var(--red), -5px 0 0 var(--diamond); animation: jit .12s steps(2) infinite;
}
@keyframes jit { 50% { transform: translate(3px, -2px) skewX(-3deg); } }
.lock-txt { font-family: var(--f-px); font-size: 24px; letter-spacing: .24em; color: var(--lime); margin-top: 8px; }

.result { text-align: center; width: 100%; padding: 8px 0 12px; }
.res-kicker { display: inline-block; font-size: 14px; letter-spacing: .3em; font-weight: 900; color: #07130a; background: var(--lime); padding: 4px 14px; animation: rise .5s var(--ease) both; }
.res-lead { font-size: clamp(20px, 3vw, 30px); font-weight: 900; margin-top: 14px; animation: rise .6s var(--ease) .1s both; }
.res-num {
  display: inline-block; font-family: var(--f-px); font-weight: 400; font-size: clamp(120px, min(40vw, 30vh), 340px); line-height: .8; letter-spacing: 0;
  color: var(--c); text-shadow: .035em .035em 0 #000, .075em .075em 0 color-mix(in srgb, var(--c) 40%, #000);
  animation: slam .7s var(--ease-back) both;
}
@keyframes slam { from { transform: scale(3.2) rotate(-6deg); opacity: 0; filter: blur(14px); } }
.res-name { font-size: clamp(18px, 2.6vw, 28px); margin-top: 4px; animation: rise .6s var(--ease) .45s both; }
.res-name b { font-weight: 900; }
.res-name span { display: block; color: var(--mute); font-size: .58em; font-family: var(--f-wide); font-weight: 500; letter-spacing: .06em; margin-top: 4px; }
.res-stats { display: flex; justify-content: center; gap: clamp(16px, 4vw, 60px); margin: 24px 0 28px; flex-wrap: wrap; animation: rise .6s var(--ease) .6s both; }
.res-stats b { display: block; font-family: var(--f-px); font-weight: 400; font-size: clamp(54px, 7.6vw, 92px); line-height: .82; }
.res-stats span { font-size: 13px; color: var(--mute); font-weight: 700; letter-spacing: .08em; }
.res-actions { display: grid; gap: 16px; justify-items: center; animation: rise .6s var(--ease) .8s both; }

/* ---------- 7. report ---------- */
.rp-head {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden;
  padding: calc(var(--hud-h) + 28px) var(--pad) 96px;
  background:
    radial-gradient(70% 70% at 88% 12%, color-mix(in srgb, var(--c) 38%, transparent) 0%, transparent 62%),
    radial-gradient(55% 50% at 0% 100%, rgba(140, 255, 63, .13), transparent 62%);
}
.rp-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
}
.rp-head-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1280px; margin: 0 auto; width: 100%; }
.rp-kicker { font-family: var(--f-wide); font-size: 12px; letter-spacing: .18em; color: var(--lime); font-weight: 700; }
.rp-title { font-weight: 900; font-size: clamp(40px, 6.6vw, 108px); line-height: 1.04; letter-spacing: -.02em; margin: 12px 0 22px; }
.rp-title em { font-style: normal; font-family: var(--f-px); font-weight: 400; font-size: 1.3em; line-height: .7; color: var(--c); padding: 0 .04em; text-shadow: .05em .05em 0 rgba(0, 0, 0, .65); white-space: nowrap; }
.rp-sub { font-size: clamp(16px, 1.5vw, 20px); color: #d3d9e3; max-width: 34em; }
.rp-sub b { color: #fff; font-family: var(--f-px); font-weight: 400; font-size: 1.8em; line-height: 1; margin: 0 .08em; vertical-align: -.06em; }
.rp-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.rp-cats span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; }
.rp-cats img { width: 22px; height: 22px; }
.rp-cats b { font-family: var(--f-px); font-weight: 400; color: var(--lime); font-size: 25px; line-height: .8; }

.rp-card {
  position: relative; overflow: hidden; padding: 26px 26px 24px;
  background: linear-gradient(150deg, #1b2132, #0f131d); border: 2px solid rgba(255, 255, 255, .18); box-shadow: 14px 14px 0 rgba(0, 0, 0, .5);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out;
}
.rp-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 32%, rgba(140, 255, 63, .22) 43%, rgba(60, 242, 228, .22) 50%, rgba(185, 140, 255, .22) 57%, transparent 68%);
  background-size: 260% 260%; background-position: var(--mx, 30%) var(--my, 30%);
}
.rp-card-id { display: flex; justify-content: space-between; font-family: var(--f-px); font-size: 17px; letter-spacing: .14em; color: var(--mute); margin-bottom: 8px; }
.rp-card-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); font-size: 15px; }
.rp-card-row span { color: var(--mute); flex: none; }
.rp-card-row b { text-align: right; }
.rp-gauge { margin-top: 18px; }
.rp-gauge-top { display: flex; justify-content: space-between; align-items: flex-end; font-weight: 700; }
.rp-gauge-top b { font-family: var(--f-px); font-weight: 400; font-size: 66px; line-height: .78; color: var(--c); text-shadow: 3px 3px 0 #000; }
.rp-gauge-bar { height: 20px; background: #07080c; border: 2px solid #000; box-shadow: inset 0 0 0 2px #2a2f3a; margin-top: 8px; overflow: hidden; }
.rp-gauge-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--c) 0 12px, color-mix(in srgb, var(--c) 62%, #000) 12px 14px); transition: width 1.8s var(--ease) .5s; }
.rp-head.in .rp-gauge-bar i { width: var(--w); }
.rp-rank { margin-top: 12px; font-size: 14px; color: var(--mute); }
.rp-rank b { color: #fff; font-size: 20px; font-weight: 900; margin-left: 4px; }
.rp-scroll { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); font-weight: 700; letter-spacing: .2em; font-size: 13px; color: var(--soft); white-space: nowrap; }
.rp-scroll i { display: block; width: 14px; height: 14px; margin: 8px auto 0; background: var(--lime); animation: drop 1.2s steps(4) infinite; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.rp-head .rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rp-head.in .rv { opacity: 1; transform: none; }

/* --- top-5 posters (sticky stack) --- */
.rp-top-head { padding: clamp(60px, 9vw, 130px) var(--pad) clamp(30px, 4vw, 60px); }
.posters { position: relative; }
.poster { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.poster-in {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 4vw;
  padding: calc(var(--hud-h) + 2vh) clamp(20px, 6vw, 96px) 9vh;
  background: radial-gradient(85% 85% at 80% 42%, color-mix(in srgb, var(--c) 44%, #07080c) 0%, #0a0c12 66%), #0a0c12;
  border-top: 2px solid color-mix(in srgb, var(--c) 60%, transparent);
  transform-origin: 50% 0; transform: scale(calc(1 - var(--p, 0) * .08)); will-change: transform;
}
.poster-in::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.poster-in::after { content: ""; position: absolute; inset: 0; background: #04050a; opacity: calc(var(--p, 0) * .75); pointer-events: none; z-index: 5; }
.poster-rank {
  position: absolute; right: 2vw; bottom: -5vh; font-family: var(--f-wide); font-weight: 900; font-size: clamp(190px, 36vw, 560px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 60%, transparent); opacity: .3; pointer-events: none; letter-spacing: -.06em;
  transform: translateX(20%); transition: transform 1.4s var(--ease), opacity 1.2s;
}
.poster.in .poster-rank { transform: none; opacity: .34; }
.poster-body { position: relative; z-index: 2; max-width: 46em; }
.poster-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; letter-spacing: .06em; font-size: 14px; color: var(--soft); }
.pm-ver { font-family: var(--f-px); font-weight: 400; font-size: 28px; line-height: .8; color: #fff; letter-spacing: .04em; }
.tier-badge { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; background: var(--tc); color: #07080c; font-family: var(--f-wide); font-weight: 900; font-size: 20px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .5); }
.poster-no { font-family: var(--f-wide); font-weight: 900; color: var(--c); font-size: 15px; letter-spacing: .1em; }
.poster-hook { font-weight: 900; font-size: clamp(38px, 6.2vw, 104px); line-height: 1.06; letter-spacing: -.02em; margin: 16px 0 14px; text-wrap: balance; }
.nb { display: inline-block; }
.poster-name { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: clamp(20px, 2.2vw, 32px); font-weight: 900; color: var(--c); }
.poster-name small { font-family: var(--f-wide); font-weight: 500; font-size: .5em; letter-spacing: .08em; color: var(--soft); }
.poster-desc { font-size: clamp(15px, 1.4vw, 19px); color: #dde2ea; margin-top: 14px; max-width: 34em; }
.poster-tip { display: inline-flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 12px 16px; background: rgba(7, 8, 12, .6); border-left: 4px solid var(--lime); font-size: 15px; max-width: 34em; }
.poster-tip b { flex: none; font-weight: 900; color: var(--lime); letter-spacing: .1em; font-size: 13px; padding-top: 2px; }
.poster-art { position: relative; z-index: 2; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 52vh); justify-self: center; transform: translate3d(calc(var(--ax, 0) * 26px), calc(var(--ay, 0) * 26px), 0); transition: transform .5s var(--ease); }
.poster-art .rings { transform: translate3d(calc(var(--ax, 0) * -22px), calc(var(--ay, 0) * -22px), 0); transition: transform .5s var(--ease); }
.poster-ico { position: relative; width: 62%; height: auto; aspect-ratio: 1; filter: drop-shadow(12px 12px 0 rgba(0, 0, 0, .45)); transform: scale(0) rotate(-30deg); transition: transform 1s var(--ease-back) .25s; }
.poster.in .poster-ico { transform: none; }
.poster-float { display: grid; place-items: center; width: 100%; height: 100%; animation: bob 4s ease-in-out infinite; }
.rings { position: absolute; inset: 0; }
.rings i { position: absolute; inset: 6%; border: 3px solid color-mix(in srgb, var(--c) 75%, transparent); animation: spin 26s linear infinite; }
.rings i:nth-child(2) { inset: 16%; border-style: dashed; border-color: rgba(255, 255, 255, .28); animation-duration: 38s; animation-direction: reverse; }
.rings i:nth-child(3) { inset: 27%; border-width: 0; background: color-mix(in srgb, var(--c) 22%, transparent); animation-duration: 50s; }
.poster .rv { opacity: 0; transform: translateY(46px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.poster.in .rv { opacity: 1; transform: none; }
.poster .poster-hook { clip-path: inset(0 0 100% 0); transform: translateY(40px); transition: clip-path .9s var(--ease) .1s, transform .9s var(--ease) .1s; }
.poster.in .poster-hook { clip-path: inset(-10% -10% -10% -10%); transform: none; }

/* --- notices --- */
.rp-notes { padding: clamp(70px, 10vw, 140px) var(--pad) clamp(30px, 5vw, 60px); }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px 16px; max-width: 1280px; margin: 48px auto 0; }
.note { position: relative; padding: 26px 22px 22px; background: #12161f; border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s, opacity .9s var(--ease); }
.note.in:hover { transform: translateY(-6px); border-color: var(--gold); }
.note::before { content: "!"; position: absolute; top: -15px; left: 18px; width: 30px; height: 30px; background: var(--gold); color: #000; font-family: var(--f-px); font-weight: 400; font-size: 30px; line-height: 1; display: grid; place-items: center; box-shadow: 3px 3px 0 rgba(0, 0, 0, .5); }
.note img { width: 48px; height: 48px; float: right; margin: -4px 0 6px 12px; }
.note h4 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.note p { font-size: 14.5px; color: var(--soft); }

/* --- tier list --- */
.rp-tiers { padding: clamp(60px, 9vw, 130px) var(--pad); }
.rp-tiers-in { max-width: 1400px; margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 30px; position: sticky; top: calc(var(--hud-h) - 4px); z-index: 6; padding: 10px 0 14px; background: linear-gradient(var(--ink) 78%, transparent); }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px 8px 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .045); font-weight: 700; font-size: 14px; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease-back); }
.chip:hover { transform: translateY(-2px); border-color: var(--lime); }
.chip img { width: 20px; height: 20px; }
.chip small { font-family: var(--f-px); opacity: .7; font-size: 19px; line-height: .8; }
.chip.on { background: var(--lime); color: #07130a; border-color: var(--lime); }
.tier { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; margin-bottom: 34px; align-items: start; }
.tier.empty { display: none; }
.tier-tag { position: sticky; top: calc(var(--hud-h) + 70px); background: var(--tc); color: #07080c; padding: 14px 8px 12px; text-align: center; box-shadow: 7px 7px 0 rgba(0, 0, 0, .55); }
.tier-tag b { display: block; font-family: var(--f-wide); font-weight: 900; font-size: 58px; line-height: 1; }
.tier-tag span { display: block; font-weight: 900; font-size: 13.5px; margin-top: 6px; }
.tier-tag small { display: block; font-size: 11px; font-weight: 700; opacity: .72; margin-top: 2px; line-height: 1.4; }
.tier-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.fcard {
  position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 16px 16px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-top: 3px solid var(--c);
  opacity: 0; transform: translateY(26px) scale(.97);
  transition: transform .5s var(--ease), opacity .5s var(--ease), background .25s, box-shadow .25s;
}
.fcard.in { opacity: 1; transform: none; }
.fcard.in:hover { transform: translateY(-5px); background: color-mix(in srgb, var(--c) 13%, #10131b); box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--c) 70%, transparent); z-index: 1; }
.fcard.hide { display: none; }
.fcard-ico { width: 58px; height: 58px; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .45)); transition: transform .45s var(--ease-back); }
.fcard:hover .fcard-ico { transform: scale(1.18) rotate(-8deg); }
.fcard h4 { font-size: 17px; font-weight: 900; line-height: 1.35; padding-right: 54px; }
.fcard .en { font-size: 10.5px; color: var(--mute); letter-spacing: .05em; font-family: var(--f-wide); font-weight: 500; margin-top: 2px; }
.fcard .d { font-size: 13.5px; color: var(--soft); margin-top: 7px; line-height: 1.7; }
.fcard .tip { font-size: 13px; margin-top: 9px; padding: 7px 10px; background: rgba(140, 255, 63, .08); border-left: 3px solid var(--lime); color: #e2ffd2; line-height: 1.6; }
.fcard .ver { position: absolute; top: 12px; right: 12px; font-family: var(--f-px); font-size: 18px; line-height: 1; padding: 2px 7px 1px; background: color-mix(in srgb, var(--c) 24%, transparent); color: var(--c); }
.fcard .cat { display: inline-block; font-size: 11px; font-weight: 700; color: var(--mute); margin-top: 8px; letter-spacing: .1em; }
.tier[data-t="S"] .tier-cards { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
.tier[data-t="S"] .fcard { grid-template-columns: 76px minmax(0, 1fr); padding: 20px; background: color-mix(in srgb, var(--c) 8%, #10131b); }
.tier[data-t="S"] .fcard-ico { width: 76px; height: 76px; }
.tier[data-t="S"] .fcard h4 { font-size: 21px; }
.tier[data-t="S"] .fcard .d { font-size: 14.5px; }
.tier[data-t="C"] .fcard, .tier[data-t="D"] .fcard { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 14px; }
.tier[data-t="C"] .fcard-ico, .tier[data-t="D"] .fcard-ico { width: 40px; height: 40px; }
.tier[data-t="C"] .fcard h4, .tier[data-t="D"] .fcard h4 { font-size: 15.5px; }
.tier[data-t="C"] .tier-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tier[data-t="D"] .tier-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tier.compact .fcard { cursor: pointer; }
.tier.compact .fcard .d, .tier.compact .fcard .cat { display: none; }
.tier.compact .fcard.open .d { display: block; }
.tier.compact .fcard h4 { padding-right: 58px; }
.tier.compact .fcard::after { content: "+"; position: absolute; right: 12px; bottom: 5px; font-family: var(--f-px); font-size: 26px; line-height: 1; color: var(--mute); transition: transform .3s var(--ease-back), color .2s; }
.tier.compact .fcard.open::after { transform: rotate(45deg); color: var(--lime); }
.tier.compact .fcard.open { background: color-mix(in srgb, var(--c) 10%, #10131b); }

/* --- timeline --- */
.rp-tl { padding: clamp(60px, 9vw, 130px) var(--pad); overflow: hidden; }
.tl { position: relative; max-width: 1000px; margin: 50px auto 0; }
.tl::before { content: ""; position: absolute; left: 108px; top: 0; bottom: 0; width: 4px; background: rgba(255, 255, 255, .08); }
.tl-prog { position: absolute; left: 108px; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--lime), var(--diamond)); transform-origin: top; transform: scaleY(var(--tp, 0)); box-shadow: 0 0 16px rgba(140, 255, 63, .6); }
.tl-item { position: relative; display: grid; grid-template-columns: 88px 44px minmax(0, 1fr); align-items: start; padding-bottom: 20px; }
.tl-year { font-family: var(--f-px); font-size: 34px; font-weight: 400; line-height: 1; color: var(--mute); text-align: right; padding-top: 12px; }
.tl-node { width: 20px; height: 20px; margin: 17px auto 0; position: relative; z-index: 1; background: var(--c); box-shadow: 0 0 0 6px var(--ink), 0 0 20px var(--c); transform: rotate(45deg) scale(0); transition: transform .6s var(--ease-back); }
.tl-item.in .tl-node { transform: rotate(45deg) scale(1); }
.tl-card { padding: 14px 18px 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-left: 5px solid var(--c); opacity: 0; transform: translateX(46px); transition: opacity .7s var(--ease), transform .7s var(--ease), background .25s; }
.tl-item.in .tl-card { opacity: 1; transform: none; }
.tl-card:hover { background: color-mix(in srgb, var(--c) 10%, #10131b); }
.tl-card header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tl-ver { font-family: var(--f-px); font-size: 46px; line-height: .75; font-weight: 400; color: var(--c); }
.tl-card h4 { font-size: 19px; font-weight: 900; }
.tl-card .en { font-size: 11.5px; color: var(--mute); font-family: var(--f-wide); font-weight: 500; letter-spacing: .04em; width: 100%; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tl-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px 4px 5px; background: rgba(255, 255, 255, .07); }
.tl-chips img { width: 22px; height: 22px; }
.tl-chips .more { color: var(--mute); padding-left: 10px; }

/* --- upcoming --- */
.rp-next { position: relative; text-align: center; overflow: hidden; padding: clamp(80px, 11vw, 160px) var(--pad); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c) 16%, transparent) 45%, transparent); }
.rp-next h2 { font-size: clamp(42px, 7.4vw, 120px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; margin-top: 8px; }
.next-name { font-family: var(--f-wide); font-weight: 900; font-size: clamp(34px, 7.6vw, 124px); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 2px var(--c); margin: 26px 0 8px; }
.next-when { font-weight: 700; letter-spacing: .14em; color: var(--c); font-size: 16px; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1000px; margin: 40px auto 0; text-align: left; }
.next-card { padding: 20px; background: rgba(7, 8, 12, .6); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); transition: transform .35s var(--ease), opacity .9s var(--ease); }
.next-card.in:hover { transform: translateY(-6px); }
.next-card img { width: 60px; height: 60px; margin-bottom: 12px; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .5)); }
.next-card h4 { font-size: 19px; font-weight: 900; }
.next-card .en { font-size: 10.5px; color: var(--mute); font-family: var(--f-wide); font-weight: 500; letter-spacing: .05em; }
.next-card p { font-size: 14px; color: var(--soft); margin-top: 8px; }
.next-note { margin-top: 26px; color: var(--mute); font-size: 13px; }

/* --- final CTA --- */
.rp-final { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 120px 20px 150px; background: radial-gradient(75% 60% at 50% 100%, rgba(140, 255, 63, .24), transparent 70%); }
.final-title { font-weight: 900; font-size: clamp(46px, 9.4vw, 160px); line-height: 1.04; letter-spacing: -.02em; }
.final-title span { display: block; opacity: 0; transform: translateY(70px) scale(.88); transition: opacity .9s var(--ease), transform .9s var(--ease-back); }
.final-title span:nth-child(2) { transition-delay: .35s; }
.final-title span:nth-child(3) { transition-delay: .7s; color: var(--lime); text-shadow: .04em .04em 0 #1c5a00; }
.rp-final.in .final-title span { opacity: 1; transform: none; }
.final-sub { color: var(--soft); font-size: clamp(15px, 1.5vw, 20px); margin: 22px auto 0; max-width: 30em; }
.final-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.final-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* up-to-date state */
.rp-fresh { text-align: center; min-height: 86vh; display: grid; place-items: center; padding: calc(var(--hud-h) + 40px) 20px 60px; background: radial-gradient(60% 60% at 50% 30%, rgba(140, 255, 63, .2), transparent 70%); }
.rp-fresh img { width: 150px; height: 150px; margin: 0 auto 20px; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(8px 8px 0 rgba(0, 0, 0, .5)); }
.rp-fresh h1 { font-size: clamp(40px, 7.6vw, 116px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; }
.rp-fresh h1 em { font-style: normal; color: var(--lime); }
.rp-fresh p:not(.sec-kicker) { color: var(--soft); max-width: 32em; margin: 18px auto 30px; font-size: clamp(15px, 1.5vw, 19px); }

/* ---------- 8. responsive ---------- */
@media (max-width: 1000px) {
  .how-grid { grid-template-columns: 1fr; }
  .rp-head-in { grid-template-columns: 1fr; }
  .next-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  :root { --hud-h: 56px; }
  .brand .bed { width: 34px; }
  .brand b { font-size: 16px; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(7, 8, 12, .94) 34%, rgba(7, 8, 12, .5) 52%, rgba(7, 8, 12, 0) 66%); }
  .hero { left: 20px; right: 20px; top: auto; bottom: 68px; transform: none; width: auto; }
  .hero-title { font-size: clamp(50px, 16.5vw, 92px); margin: 14px 0 14px; line-height: 1; }
  .hero-title .rest { display: block; }
  .hero-sub br { display: none; }
  .hero-cta { margin-top: 20px; gap: 12px 18px; }
  .hero-stats { display: none; }
  .drag-hint { display: none; }
  .sun { left: 17%; top: 15%; width: 72px; }
  .eras { grid-template-columns: 1fr; gap: 8px; }
  .era { padding: 12px 42px 12px 16px; }
  .era-c { font-size: 12.5px; }
  .quiz-head { min-height: 0; }
  .answers { gap: 8px; }
  .ans .btn-face { font-size: 15px; padding: 12px 14px 13px; }
  .ans kbd { display: none; }
  .radar-bars { height: 44px; gap: 2px; }
  .radar-axis { gap: 2px; }
  .radar-top span:first-child { display: none; }
  .poster-in { grid-template-columns: 1fr; grid-template-rows: minmax(0, 34%) 1fr; align-items: start; gap: 8px; padding: calc(var(--hud-h) + 8px) 20px 48px; }
  .poster-art { order: -1; height: 100%; width: auto; }
  .poster-hook { font-size: clamp(34px, 10.5vw, 60px); margin: 10px 0 10px; }
  .poster-desc { margin-top: 10px; }
  .poster-tip { margin-top: 12px; padding: 9px 12px; font-size: 14px; }
  .tier { grid-template-columns: 1fr; gap: 12px; }
  .tier-tag { position: static; display: flex; align-items: center; gap: 14px; text-align: left; padding: 8px 14px; }
  .tier-tag b { font-size: 38px; }
  .tier-tag span { margin: 0; font-size: 15px; }
  .tier-cards, .tier[data-t] .tier-cards { grid-template-columns: 1fr; }
  .tl::before, .tl-prog { left: 9px; }
  .tl-item { grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; }
  .tl-year { grid-column: 2; text-align: left; padding: 0 0 4px; font-size: 26px; }
  .tl-year:empty { display: none; }
  .tl-node { grid-column: 1; grid-row: 1 / span 2; margin: 14px 0 0; width: 18px; height: 18px; }
  .tl-card { grid-column: 2; }
  .filters { top: calc(var(--hud-h) - 2px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .rp-card { box-shadow: 8px 8px 0 rgba(0, 0, 0, .5); padding: 20px; }
  .rp-scroll { display: none; }
  .picker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .pick b { font-size: 32px; }
  #toasts { right: 8px; left: 8px; top: 6px; justify-items: end; }
  .toast { padding: 6px 14px 6px 8px; gap: 10px; min-width: 0; }
  .toast img { width: 30px; height: 30px; }
  .toast b { font-size: 11.5px; }
  .toast span { font-size: 14px; }
}
@media (max-height: 700px) and (min-width: 761px) {
  .hero-stats { margin-top: 22px; }
  .hero-cta { margin-top: 20px; }
  .eras { gap: 8px; }
  .era { padding: 12px 46px 12px 18px; }
}

/* ---------- 9. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track, .bigmq-row { animation: none !important; }
}
