/* MindPop design system — see docs/DESIGN_SYSTEM.md. Mobile (iPhone) first. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Pretendard", "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Pretendard", "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Apple Garamond", Georgia, "Noto Serif KR", "Nanum Myeongjo", "Hiragino Mincho ProN", "Songti SC", serif;

  /* brand */
  --brand-50: #f4f1ff; --brand-100: #e9e3ff; --brand-200: #d4c8ff; --brand-300: #b5a1ff; --brand-400: #9478ff;
  --brand-500: #7656ff; --brand-600: #6440f0; --brand-700: #5232cc; --brand-900: #2a1a73;
  --pink: #ff5c8a; --gold: #f6c445;

  /* neutrals (violet-tinted) */
  --bg: #f7f6fb; --surface: #ffffff; --surface-2: #f2f0f8; --surface-3: #e9e6f3;
  --ink: #1b1630; --ink-2: #4a4560; --ink-3: #777190; --line: #e6e2ef; --line-2: #d9d4e6;

  /* radius / space / shadow */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-2xl: 34px; --r-pill: 999px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --sh-1: 0 1px 2px rgba(27, 22, 48, .06), 0 1px 1px rgba(27, 22, 48, .03);
  --sh-2: 0 6px 16px -6px rgba(27, 22, 48, .14), 0 2px 4px rgba(27, 22, 48, .04);
  --sh-3: 0 22px 44px -18px rgba(52, 30, 140, .32), 0 6px 14px -6px rgba(27, 22, 48, .1);
  --sh-glow: 0 10px 30px -8px rgba(118, 86, 255, .55);

  --ease: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --topbar-h: 58px; --tabbar-h: 64px; --maxw: 1160px;

  /* category defaults (overridden inline per card/page) */
  --c1: var(--brand-500); --c2: var(--brand-200); --cbg: var(--brand-50); --cink: var(--brand-900); --cdeep: var(--brand-700);
  color-scheme: light;
}
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; --font-display: var(--font); --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif; --font-display: var(--font); --font-serif: "Songti SC", "Noto Serif SC", serif; }
:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Source Han Sans TC", system-ui, sans-serif; --font-display: var(--font); --font-serif: "Songti TC", "Noto Serif TC", serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) body, body:lang(ja), :lang(zh-Hans) body, :lang(zh-Hant) body { word-break: normal; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.i { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.booting #main { visibility: hidden; }

/* ---------- type ---------- */
h1 { font-family: var(--font-display); font-size: clamp(28px, 7.4vw, 44px); line-height: 1.2; letter-spacing: -.035em; font-weight: 800; }
h2 { font-family: var(--font-display); font-size: clamp(20px, 5vw, 26px); line-height: 1.3; letter-spacing: -.03em; font-weight: 750; }
h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.02em; font-weight: 700; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -.025em; }
.lead { font-size: 17px; color: var(--ink-2); line-height: 1.6; margin-top: var(--s-3); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); display: inline-flex; gap: 8px; align-items: center; }
.fine { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; margin-top: var(--s-4); }
.fine .i { margin-top: 2px; width: 14px; height: 14px; }
.fine.center { justify-content: center; text-align: center; margin: var(--s-10) auto 0; }
em { font-style: normal; background: linear-gradient(100deg, var(--brand-500), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: #fff7e6; color: #7a4b00; font-size: 14px; margin: var(--s-4) 0; }

/* ---------- buttons ---------- */
.btn { --bh: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--bh); padding: 0 20px; border-radius: var(--r-md); border: 0; font-weight: 700; font-size: 16px; letter-spacing: -.01em; line-height: 1.2; text-align: center; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; }
.btn-lg { --bh: 56px; font-size: 17px; border-radius: 18px; padding: 0 26px; }
.btn-sm { --bh: 40px; font-size: 14px; padding: 0 14px; border-radius: var(--r-sm); }
.btn-block { display: flex; width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(180deg, #8a6dff 0%, var(--brand-500) 55%, var(--brand-600) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--sh-glow); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 34px -8px rgba(118, 86, 255, .65); }
.btn-tonal { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-100); }
.btn-quiet { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--sh-2); }
.btn-danger { background: #fff0f0; color: #b42335; box-shadow: inset 0 0 0 1px #ffd1d6; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; border: 0; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); color: var(--ink-2); }
.linkish { border: 0; background: none; color: var(--ink-2); font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; padding: 10px 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.chip .i { width: 14px; height: 14px; }
.chip-cat { background: color-mix(in srgb, var(--c1) 12%, white); color: var(--cdeep); }
.chip-sm { height: 24px; padding: 0 9px; font-size: 11px; }
.is-dark .chip-cat, .chip-on.is-dark { background: rgba(255, 255, 255, .12); color: var(--c2); }

/* ---------- shell ---------- */
#topbar { position: sticky; top: 0; z-index: 30; background: rgba(247, 246, 251, .82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid rgba(217, 212, 230, .6); padding-top: env(safe-area-inset-top); }
.topbar-in { max-width: var(--maxw); margin: 0 auto; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 max(16px, env(safe-area-inset-left)); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; font-size: 22px; letter-spacing: -.05em; }
.brand-word { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; font-weight: 850; letter-spacing: -.05em; }
.brand-word b { color: var(--brand-500); font-weight: 850; }
.brand-mark { width: 32px; height: 32px; border-radius: 11px; background: radial-gradient(circle at 30% 25%, #c9b8ff 0, #8a6dff 40%, #5a36e8 100%); box-shadow: inset 0 -3px 6px rgba(30, 10, 90, .35), inset 0 2px 3px rgba(255, 255, 255, .6), 0 4px 10px -2px rgba(118, 86, 255, .6); position: relative; }
.brand-mark i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #fff; right: 6px; bottom: 6px; box-shadow: -9px -7px 0 -3px rgba(255, 255, 255, .85); }
.topnav { display: none; gap: 4px; margin-left: 18px; }
.topnav a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; color: var(--ink-2); }
.topnav a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.dex-pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.dex-pill b { color: var(--brand-600); }
.dex-pill .i { width: 16px; height: 16px; color: var(--brand-500); }
.lang-pill { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); color: var(--ink-2); }
.lang-pill .i { width: 16px; height: 16px; }
.lang-pill select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-size: 13px; font-weight: 700; padding: 0 16px 0 2px; height: 100%; cursor: pointer; max-width: 104px; }
.lang-pill .lang-caret { position: absolute; right: 8px; width: 14px; height: 14px; pointer-events: none; }
main { max-width: var(--maxw); margin: 0 auto; padding: var(--s-5) 16px calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); min-height: 70vh; outline: none; }
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
#tabbar a { flex: 1; max-width: 120px; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 650; color: var(--ink-3); border-radius: var(--r-sm); }
#tabbar a .i { width: 22px; height: 22px; }
#tabbar a[aria-current] { color: var(--brand-600); }
#site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 16px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom)); }
.foot-in { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 12px; color: var(--ink-3); font-size: 13px; }
.foot-brand .brand-word { font-size: 20px; color: var(--ink); }
.foot-brand p { margin-top: 2px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
body[data-route="play"] #tabbar, body[data-route="play"] #site-foot { display: none; }
body[data-route="play"] main { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
body[data-tone="dark"] { background: #120e22; color: #efeaff; }
body[data-tone="dark"] #topbar { background: rgba(18, 14, 34, .78); border-color: rgba(255, 255, 255, .08); }
body[data-tone="dark"] .brand-word, body[data-tone="dark"] .topnav a { color: #efeaff; }
body[data-tone="dark"] .topnav a[aria-current], body[data-tone="dark"] .dex-pill, body[data-tone="dark"] .lang-pill, body[data-tone="dark"] .icon-btn { background: rgba(255, 255, 255, .08); color: #e6defe; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
body[data-tone="dark"] #tabbar { background: rgba(18, 14, 34, .9); border-color: rgba(255, 255, 255, .08); }
body[data-tone="dark"] #site-foot { background: #0d0a19; border-color: rgba(255, 255, 255, .08); }
body[data-tone="dark"] .lang-pill select option { color: #1b1630; }

/* ---------- home hero ---------- */
.hero { position: relative; display: grid; gap: var(--s-4); padding: var(--s-6) var(--s-5) 0; border-radius: var(--r-2xl); overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 100% 0%, #ffd9ec 0, transparent 50%), radial-gradient(90% 80% at 0% 100%, #d9f3ff 0, transparent 55%), linear-gradient(160deg, #f1ecff 0%, #e7dfff 60%, #efe6ff 100%); box-shadow: var(--sh-2), inset 0 0 0 1px rgba(255, 255, 255, .7); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(82, 50, 204, .12) 1px, transparent 1.4px); background-size: 18px 18px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.hero h1 { margin-top: var(--s-3); font-size: clamp(32px, 9vw, 58px); }
.hero .lead { max-width: 34em; }
.eyebrow-brand { color: var(--brand-700); background: rgba(255, 255, 255, .7); padding: 6px 12px; border-radius: var(--r-pill); letter-spacing: .08em; box-shadow: inset 0 0 0 1px rgba(118, 86, 255, .15); text-transform: none; font-size: 13px; }
.spark { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 92, 138, .2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-6); }
.cta-row .btn-primary { flex: 1 1 220px; }
.cta-row .btn-quiet { background: rgba(255, 255, 255, .6); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: var(--s-5); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hero-points li { display: inline-flex; gap: 6px; align-items: center; }
.hero-points .i { width: 16px; height: 16px; color: var(--brand-500); }
.hero-art { position: relative; height: 230px; margin: 0 -20px; }
.hero-stage { position: absolute; inset: 0; }
.hero-fig { position: absolute; width: 38%; bottom: -6px; filter: drop-shadow(0 18px 18px rgba(52, 30, 140, .18)); animation: bob 6s var(--ease) infinite; }
.hero-fig-0 { left: 31%; width: 40%; z-index: 3; bottom: -4px; }
.hero-fig-1 { left: 2%; bottom: 14px; width: 33%; animation-delay: -1.5s; }
.hero-fig-2 { right: 1%; bottom: 18px; width: 33%; animation-delay: -3s; z-index: 2; }
.hero-fig-3 { left: 20%; bottom: 96px; width: 22%; opacity: .95; animation-delay: -4.5s; display: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1.5deg); } }

/* ---------- sections ---------- */
.section { margin-top: var(--s-10); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: var(--s-4); }
.sec-head h2 { display: inline-flex; gap: 8px; align-items: center; }
.sec-head h2 .i { color: var(--brand-500); }
.sec-head p { color: var(--ink-3); font-size: 14px; }
.page-head { margin: var(--s-4) 0 var(--s-6); }

/* continue */
.cont-list { display: grid; gap: 10px; }
.cont-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.cont-art { width: 56px; height: 56px; border-radius: var(--r-md); background: linear-gradient(160deg, var(--cbg), var(--c2)); display: grid; place-items: center; overflow: hidden; flex: none; }
.cont-art svg { width: 54px; }
.cont-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cont-body b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-body small { font-size: 12px; color: var(--ink-3); }
.mini-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c2), var(--c1)); border-radius: inherit; }

/* collection strip on home */
.dex-card { position: relative; display: grid; gap: 16px; padding: var(--s-6); border-radius: var(--r-xl); color: #fff; background: radial-gradient(100% 120% at 100% 0%, #ff7aa8 0, transparent 45%), linear-gradient(135deg, #3b1fb0 0%, #6440f0 55%, #8a5cff 100%); box-shadow: var(--sh-3); overflow: hidden; }
.dex-card .eyebrow { color: #e5dcff; }
.dex-card h2 { color: #fff; margin-top: 4px; }
.dex-sub { color: #ddd3ff; font-size: 14px; margin-top: 6px; }
.dex-bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .2); margin-top: 14px; overflow: hidden; }
.dex-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd5e5, #fff); border-radius: inherit; }
.dex-faces { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.dex-face { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); display: grid; place-items: center; overflow: hidden; }
.dex-face:nth-child(n+9) { display: none; }
.dex-face.is-got { background: rgba(255, 255, 255, .92); }
.dex-face svg { width: 92%; }
.dex-go { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }

/* filters */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 10px; margin: 0 -16px; scroll-snap-type: x proximity; }
.filters::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 650; color: var(--ink-2); white-space: nowrap; scroll-snap-align: start; }
.fchip .i { width: 16px; height: 16px; color: var(--c1); }
.fchip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.fchip.is-on .i { color: var(--c2); }
.cat-intro { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--cdeep); background: color-mix(in srgb, var(--c1) 9%, white); padding: 10px 14px; border-radius: var(--r-md); margin-bottom: 14px; }
.cat-intro:empty { display: none; }

/* ---------- test cards ---------- */
.tgrid, .fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fgrid { grid-template-columns: 1fr; }
.tcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); isolation: isolate; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.tcard:active { transform: scale(.985); }
.tcard-art { position: relative; aspect-ratio: 1 / .86; display: grid; place-items: end center; background: radial-gradient(80% 70% at 50% 35%, rgba(255, 255, 255, .85), transparent 70%), linear-gradient(165deg, var(--cbg) 0%, var(--c2) 140%); overflow: hidden; }
.tcard.is-dark .tcard-art { background: radial-gradient(70% 60% at 50% 40%, rgba(138, 107, 255, .45), transparent 70%), linear-gradient(165deg, #2a2147, #120e22); }
.tcard-art svg { width: 82%; margin-bottom: -6%; transition: transform .4s var(--ease-spring); }
.tcard:hover .tcard-art svg { transform: translateY(-4px) rotate(-2deg) scale(1.03); }
.tcard-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; top: 10%; left: 20%; background: var(--c1); filter: blur(40px); opacity: .18; }
.tcard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.tcard-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tcard-title { font-size: 15.5px; line-height: 1.35; letter-spacing: -.025em; font-weight: 750; }
.tcard-hook { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.tcard-meta { margin-top: auto; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); padding-top: 4px; }
.tcard-meta .i { width: 13px; height: 13px; }
.tcard-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); margin: 0 4px; }
.tstat { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 750; padding: 0 8px; height: 24px; border-radius: var(--r-pill); }
.tstat .i { width: 12px; height: 12px; }
.tstat-draft { background: #fff3da; color: #8a5200; }
.tstat-done { background: #e3f8ee; color: #0b6a48; }
.tcard-feature .tcard-title { font-size: 19px; }
.tcard-feature .tcard-art { aspect-ratio: 16 / 10; }
.tcard-feature .tcard-art svg { width: 54%; }
.tcard-compact { flex-direction: row; align-items: center; }
.tcard-compact .tcard-art { width: 96px; flex: none; aspect-ratio: 1; }
.tcard-compact .tcard-art svg { width: 92%; }
.tcard-compact .tcard-body { padding: 10px 14px; }

/* ---------- intro ---------- */
.page-intro { position: relative; }
.intro-hero { position: relative; display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-2xl); background: radial-gradient(80% 70% at 50% 20%, rgba(255, 255, 255, .9), transparent 70%), linear-gradient(170deg, var(--cbg), var(--c2) 160%); overflow: hidden; box-shadow: var(--sh-2); }
.page-intro.is-dark .intro-hero { background: radial-gradient(70% 60% at 50% 25%, rgba(138, 107, 255, .4), transparent 70%), linear-gradient(170deg, #2a2147, #161127); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.intro-art { position: relative; width: min(64%, 290px); margin: 0 auto; }
.intro-glow { position: absolute; inset: 15% 10%; border-radius: 50%; background: var(--c1); filter: blur(50px); opacity: .28; }
.intro-art svg { position: relative; animation: bob 6s var(--ease) infinite; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.crumbs .i { width: 14px; height: 14px; }
.crumbs a:hover { color: var(--ink); }
.intro-copy h1 { margin-top: 6px; font-size: clamp(27px, 7.4vw, 42px); }
.intro-hook { font-size: 17px; color: var(--ink-2); margin-top: 8px; }
.intro-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.intro-meta li { display: inline-flex; gap: 6px; align-items: center; height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 650; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8); }
.intro-meta .i { width: 15px; height: 15px; color: var(--c1); }
.page-intro.is-dark .intro-copy h1, .page-intro.is-dark h2 { color: #f4efff; }
.page-intro.is-dark .intro-hook, .page-intro.is-dark .intro-desc, .page-intro.is-dark .crumbs { color: #cfc6ef; }
.page-intro.is-dark .intro-meta li { background: rgba(255, 255, 255, .08); color: #e6defe; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.intro-body { max-width: 680px; margin: var(--s-6) auto 0; }
.intro-actions { display: grid; gap: 10px; }
.intro-desc { margin-top: var(--s-6); font-size: 16px; color: var(--ink-2); line-height: 1.75; }
.possible { margin-top: var(--s-8); }
.possible h2 { font-size: 18px; }
.poss-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.poss { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.poss svg { width: 72px; }
.poss span { font-size: 12px; font-weight: 700; color: var(--ink-3); line-height: 1.3; }
.poss.is-got span { color: var(--ink); }
.page-intro.is-dark .poss { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.page-intro.is-dark .poss span { color: #bdb2e6; }
.page-intro.is-dark .fine { color: #a99fd0; }
.shared-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; margin-top: var(--s-5); padding: 16px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-3), inset 0 0 0 2px color-mix(in srgb, var(--c1) 35%, white); }
.page-intro.is-dark .shared-card { background: #221a3a; }
.shared-art svg { width: 110px; }
.shared-copy h2 { font-size: 22px; margin-top: 2px; }
.shared-line { font-weight: 650; color: var(--ink-2); margin-top: 6px; }
.page-intro.is-dark .shared-line { color: #ddd3ff; }
.score-pill, .rcard-score { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--c1); color: #fff; font-weight: 800; font-size: 14px; }

/* ---------- play ---------- */
.page-play { max-width: 1040px; margin: 0 auto; }
.play-bar { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top)); z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 0 12px; background: linear-gradient(var(--bg) 70%, transparent); }
.page-play.is-dark .play-bar { background: linear-gradient(#120e22 70%, transparent); }
.play-progress { flex: 1; display: flex; align-items: center; gap: 10px; }
.pbar { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.page-play.is-dark .pbar { background: rgba(255, 255, 255, .12); }
.pbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c2), var(--c1)); transition: width .4s var(--ease); min-width: 8px; }
.pcount { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; }
.pcount span { color: var(--ink-3); font-weight: 600; }
.page-play.is-dark .pcount span { color: #9f95c7; }
.play-name { display: none; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.play-layout { display: grid; gap: 20px; }
.play-aside { display: none; }
.play-main { max-width: 640px; width: 100%; margin: 0 auto; }
.play-main.is-enter .stage { animation: enter .38s var(--ease) both; }
.play-main.is-enter .choice { animation: enter .38s var(--ease) both; }
.play-main.is-enter .choice:nth-child(2) { animation-delay: .04s; } .play-main.is-enter .choice:nth-child(3) { animation-delay: .08s; } .play-main.is-enter .choice:nth-child(4) { animation-delay: .12s; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cdeep); background: color-mix(in srgb, var(--c1) 12%, white); padding: 5px 11px; border-radius: var(--r-pill); }
.q-kicker .i { width: 14px; height: 14px; }
.q-prompt { font-size: clamp(22px, 5.8vw, 30px); line-height: 1.38; letter-spacing: -.03em; margin-top: 14px; font-weight: 780; outline: none; }
.choices { display: grid; gap: 10px; margin-top: 22px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 14px 16px; text-align: left; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--line); font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s; -webkit-tap-highlight-color: transparent; }
.choice:hover { box-shadow: var(--sh-2), inset 0 0 0 1.5px color-mix(in srgb, var(--c1) 45%, white); }
.choice:active { transform: scale(.98); }
.choice[aria-pressed="true"] { background: color-mix(in srgb, var(--c1) 9%, white); box-shadow: 0 8px 20px -10px var(--c1), inset 0 0 0 2.5px var(--c1); }
.ckey { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--ink-3); }
.choice[aria-pressed="true"] .ckey { background: var(--c1); color: #fff; }
.clabel { flex: 1; }
.choices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices-grid .choice { justify-content: flex-start; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; min-height: 64px; }
.choices-visual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices-visual .choice { flex-direction: column; justify-content: center; text-align: center; gap: 8px; min-height: 108px; padding: 14px 10px; }
.cicon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--ic) 14%, white); color: var(--ic); }
.cicon .i { width: 28px; height: 28px; }
.cswatch { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .15), 0 2px 6px rgba(0, 0, 0, .12); }
.choices-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choices-cells .choice { justify-content: center; padding: 10px; min-height: 76px; }
.choices-cells .ccell { color: var(--ink); }
.choices-cells .clabel { display: none; }
.play-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.autosave { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--ink-3); }
.autosave .i { width: 13px; height: 13px; color: #12b886; }
.page-play.is-dark .q-prompt { color: #f4efff; }
.page-play.is-dark .choice { background: rgba(255, 255, 255, .06); color: #efeaff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1); }
.page-play.is-dark .choice:hover { box-shadow: inset 0 0 0 1.5px rgba(199, 182, 255, .5); }
.page-play.is-dark .choice[aria-pressed="true"] { background: rgba(138, 107, 255, .22); box-shadow: 0 8px 24px -10px #8a6bff, inset 0 0 0 2.5px #a98fff; }
.page-play.is-dark .ckey { background: rgba(255, 255, 255, .1); color: #cfc6ef; }
.page-play.is-dark .q-kicker { background: rgba(255, 255, 255, .1); color: #d9ceff; }
.page-play.is-dark .btn-quiet { color: #cfc6ef; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.page-play.is-dark .autosave { color: #9f95c7; }

/* puzzle visuals */
.vis-seq { display: flex; gap: 6px; margin-top: 18px; }
.vis-seq span { flex: 1 1 0; min-width: 0; max-width: 72px; height: 56px; padding: 0 4px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; font-weight: 800; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.vis-seq span.is-q, .vis-grid span.is-q, .vis-row span.is-q { background: color-mix(in srgb, var(--c1) 12%, white); color: var(--cdeep); box-shadow: inset 0 0 0 2px var(--c1); }
.vis-grid { display: grid; grid-template-columns: repeat(var(--cols), 72px); gap: 8px; margin-top: 18px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); width: max-content; max-width: 100%; }
.vis-grid span { width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); }
.vis-row { display: flex; align-items: center; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.vis-row span { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.vis-row i { font-style: normal; color: var(--ink-3); }
.vis-boxes { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.vis-boxes span { min-width: 56px; height: 72px; padding: 0 14px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-size: 26px; font-weight: 800; }
.inline-cell { display: inline-block; vertical-align: middle; }

/* memory */
.mem-hint { font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.mem-board { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; margin-top: 16px; padding: 12px; border-radius: var(--r-xl); background: linear-gradient(160deg, #fff, var(--cbg)); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); max-width: 420px; }
.mem-board.is-after { background: linear-gradient(160deg, #fff, #fff6e8); }
.mem-cell { aspect-ratio: 1; border-radius: 16px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.mem-item { width: 70%; aspect-ratio: 1; border-radius: 30%; display: grid; place-items: center; color: var(--ic); background: color-mix(in srgb, var(--ic) 14%, white); }
.mem-item .i { width: 62%; height: 62%; stroke-width: 2.2; }
.mem-seq { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; counter-reset: s; }
.mem-seq li { counter-increment: s; position: relative; width: 70px; height: 70px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); display: grid; place-items: center; animation: enter .4s var(--ease) both; animation-delay: calc(var(--d) * .35s); }
.mem-seq li::after { content: counter(s); position: absolute; top: -8px; left: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.mem-seq .mem-item { width: 80%; }
.mem-timer { height: 6px; border-radius: 6px; background: var(--surface-3); margin: 16px 0; overflow: hidden; max-width: 420px; }
.mem-timer i { display: block; height: 100%; background: var(--c1); transform-origin: left; animation: timer linear both; }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* detect mocks */
.mock { margin-top: 16px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); padding: 16px; position: relative; }
.mock-chart svg { width: 100%; height: auto; color: var(--ink); }
.mock-chart figcaption { font-weight: 750; font-size: 15px; margin-bottom: 8px; }
.mock-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.mock-ad { background: linear-gradient(150deg, #fffbe9, #ffe9f1); padding: 20px 18px; }
.mock-tag { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(27, 22, 48, .08); color: var(--ink-2); }
.mock-head { font-size: 22px; font-weight: 850; letter-spacing: -.03em; line-height: 1.3; padding-right: 30px; }
.mock-body { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }
.mock-fine { font-size: 11px; color: var(--ink-3); margin-top: 12px; line-height: 1.4; }
.mock-cta { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 14px; font-weight: 750; }
.mock-user { display: flex; align-items: center; gap: 8px; }
.mock-user small { color: var(--ink-3); font-size: 12px; }
.mock-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.mock-ava .i { width: 18px; height: 18px; }
.mock-stats { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.mock-stats .i { width: 14px; height: 14px; color: var(--pink); }
.mock-news { border-left: 4px solid var(--ink); border-radius: 6px var(--r-lg) var(--r-lg) 6px; }
.mock-src { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 750; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.mock-src .i { width: 14px; height: 14px; }
.mock-msg { background: #eef1f7; display: grid; gap: 6px; }

/* chat */
.chat { border-radius: var(--r-xl); background: linear-gradient(180deg, #fff 0, color-mix(in srgb, var(--c1) 5%, white) 100%); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .9); }
.chat-head b { display: block; font-size: 15px; line-height: 1.2; }
.chat-head small { font-size: 12px; color: #12a874; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--c2), var(--c1)); color: #fff; }
.chat-ava .i { width: 20px; height: 20px; }
.chat-log { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 18px; min-height: 150px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 15.5px; line-height: 1.45; }
.bubble.in { align-self: flex-start; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; animation: pop .35s var(--ease-spring) both; animation-delay: calc(var(--d, 0) * .32s + .1s); }
.bubble.out { align-self: flex-end; background: linear-gradient(160deg, var(--c1), var(--cdeep)); color: #fff; border-bottom-right-radius: 6px; }
.bubble.is-past { opacity: .55; font-size: 14px; }
.bubble.is-sending { animation: pop .3s var(--ease-spring) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.94); } to { opacity: 1; transform: none; } }
.chat-sys { align-self: center; font-size: 12px; color: var(--ink-3); background: rgba(27, 22, 48, .05); padding: 4px 12px; border-radius: var(--r-pill); text-align: center; }
.q-prompt-chat { font-size: clamp(18px, 4.8vw, 22px); color: var(--ink-2); }
.choices-reply .choice { border-radius: 20px 20px 6px 20px; }
.choices-reply .ckey { border-radius: 50%; }

/* scene */
.scene-card { position: relative; padding: 22px 20px 24px; border-radius: var(--r-xl); background: radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 60%), linear-gradient(160deg, #fff, var(--cbg)); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); overflow: hidden; }
.page-play.is-dark .scene-card { background: radial-gradient(90% 80% at 100% 0%, rgba(138, 107, 255, .35), transparent 60%), linear-gradient(160deg, #2a2147, #1a1430); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.scene-no { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--cdeep); }
.page-play.is-dark .scene-no { color: #b9a8ff; }
.scene-ic { position: absolute; right: -10px; top: -10px; width: 110px; height: 110px; color: var(--c1); opacity: .16; }
.scene-ic .i { width: 100%; height: 100%; stroke-width: 1.4; }
.scene-ctx { margin-top: 10px; font-size: 17px; line-height: 1.65; color: var(--ink-2); position: relative; }
.page-play.is-dark .scene-ctx { color: #d8cff5; }

/* sim */
.hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hud-item { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); min-width: 0; }
.hud-item b { display: block; font-size: 17px; font-weight: 850; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-item small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-item > span:last-child { min-width: 0; }
.hud-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c1) 14%, white); color: var(--cdeep); flex: none; }
.hud-ic .i { width: 17px; height: 17px; }
.event-card { margin-top: 12px; padding: 18px; border-radius: var(--r-xl); background: linear-gradient(160deg, #fff, var(--cbg)); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.event-tag { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--c1); padding: 4px 10px; border-radius: var(--r-pill); }
.event-tag .i { width: 14px; height: 14px; }
.event-card p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* story */
.paper { padding: 26px 22px; border-radius: 6px var(--r-lg) var(--r-lg) 6px; background: linear-gradient(90deg, #efe6d6 0, #fbf6ec 6%, #fffdf8 100%); box-shadow: var(--sh-2), inset 4px 0 0 #e2d4bb; color: #3b2f22; }
.chapter { font-family: var(--font-serif); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #9a7b4f; font-weight: 700; }
.story-text { font-family: var(--font-serif); font-size: 18px; line-height: 1.85; margin-top: 12px; }
.mode-story .q-prompt { font-family: var(--font-serif); font-weight: 700; }

/* ---------- result ---------- */
.result-grid { display: grid; gap: var(--s-6); }
.rcard { position: relative; text-align: center; padding: 22px 20px 28px; border-radius: var(--r-2xl); background: radial-gradient(70% 50% at 50% 38%, rgba(255, 255, 255, .95), transparent 70%), linear-gradient(170deg, #fff 0%, var(--cbg) 40%, var(--c2) 140%); box-shadow: var(--sh-3), inset 0 0 0 1px rgba(255, 255, 255, .8); overflow: hidden; isolation: isolate; }
.rcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(27, 22, 48, .07) 1.2px, transparent 1.6px); background-size: 20px 20px; }
.rcard.is-dark { background: radial-gradient(70% 50% at 50% 40%, rgba(138, 107, 255, .45), transparent 70%), linear-gradient(170deg, #2a2147, #120e22); color: #f4efff; box-shadow: var(--sh-3), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.rcard.is-dark::before { background-image: radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.6px); }
.rcard-top { display: flex; align-items: center; justify-content: space-between; }
.rcard-brand { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; font-weight: 850; font-size: 19px; letter-spacing: -.05em; }
.rcard-brand b { color: var(--c1); }
.rcard.is-dark .rcard-brand b { color: var(--c2); }
.rcard-test { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-top: 14px; }
.rcard.is-dark .rcard-test, .rcard.is-dark .rcard-line { color: #cfc6ef; }
.rcard-art { position: relative; width: min(78%, 330px); margin: 4px auto 0; }
.rcard-glow { position: absolute; inset: 18% 12%; border-radius: 50%; background: var(--c1); filter: blur(46px); opacity: .3; }
.rcard-art svg { position: relative; }
.rcard-name { font-size: clamp(30px, 8.6vw, 44px); margin-top: 8px; letter-spacing: -.04em; line-height: 1.15; }
.rcard-line { font-size: 18px; font-weight: 650; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
.share-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.share-row .btn { padding: 0 8px; font-size: 14px; flex-direction: column; gap: 2px; min-height: 60px; border-radius: var(--r-md); }
.page-result .linkish { margin: 6px auto 0; display: flex; }
.status { min-height: 1.4em; font-size: 14px; color: var(--brand-600); text-align: center; margin-top: 6px; opacity: 0; transition: opacity .2s; overflow-wrap: anywhere; }
.status.is-on { opacity: 1; }
.rsec { padding: 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.rsec + .rsec, .rsec-pair, .rsec-pair + .rsec, .result-body > * + * { margin-top: 12px; }
.rsec h2 { font-size: 19px; display: flex; gap: 8px; align-items: center; }
.rsec h2 .i, .rsec h3 .i { color: var(--c1); }
.rsec h3 { display: flex; gap: 8px; align-items: center; }
.rsec > p { margin-top: 10px; color: var(--ink-2); line-height: 1.75; }
.evidence { display: grid; gap: 10px; margin-top: 14px; }
.evidence li { padding: 14px; border-radius: var(--r-md); background: color-mix(in srgb, var(--c1) 7%, white); display: grid; gap: 6px; }
.ev-scene { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.ev-choice { display: flex; gap: 8px; font-weight: 700; line-height: 1.45; }
.ev-choice .i { color: var(--c1); margin-top: 3px; width: 16px; height: 16px; }
.pattern { margin-top: 14px !important; font-weight: 600; color: var(--ink) !important; }
.rsec-pair { display: grid; gap: 12px; }
.rsec-pair ul { display: grid; gap: 8px; margin-top: 10px; }
.rsec-pair li { position: relative; padding-left: 16px; color: var(--ink-2); line-height: 1.6; }
.rsec-pair li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--c1); }
.rsec-snag li::before { background: #ffb020; }
.rsec-tip { background: linear-gradient(160deg, #fff, var(--cbg)); }
.rsec-tip p { margin-top: 8px; color: var(--ink-2); line-height: 1.7; }
.areas { display: grid; gap: 10px; margin-top: 14px; }
.areas li { display: grid; grid-template-columns: 6.5em 1fr auto; gap: 10px; align-items: center; font-size: 14px; font-weight: 650; }
.abar, .tbar { height: 10px; border-radius: 10px; background: var(--surface-3); overflow: hidden; }
.abar i, .tbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c2), var(--c1)); }
.explains { display: grid; margin-top: 10px; }
.explain { border-top: 1px solid var(--line); }
.explain summary { display: flex; gap: 10px; align-items: flex-start; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 650; font-size: 15px; line-height: 1.45; }
.explain summary::-webkit-details-marker { display: none; }
.ex-mark .i { width: 20px; height: 20px; }
.is-ok .ex-mark { color: #12a874; } .is-bad .ex-mark { color: #e5484d; }
.ex-q { flex: 1; }
.ex-caret { color: var(--ink-3); transition: transform .2s; }
.explain[open] .ex-caret { transform: rotate(180deg); }
.ex-body { padding: 0 0 16px 30px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.ex-k { font-weight: 750; color: var(--ink); margin-right: 8px; }
.ex-why { background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-sm); line-height: 1.6; }
.rsec-next { background: transparent; box-shadow: none; padding: 20px 0 0; }
.next-grid { display: grid; gap: 10px; margin-top: 14px; }
.collect-cta { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-xl); color: #fff; background: linear-gradient(135deg, #3b1fb0, #7656ff); box-shadow: var(--sh-3); }
.collect-cta b { display: block; }
.collect-cta small { color: #ddd3ff; font-size: 13px; }
.collect-cta > span:nth-child(2) { flex: 1; }
.collect-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.result-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 18px; }
.prev { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); }
.prev-chip { padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-2); font-weight: 650; }
.page-result.is-dark .rsec { background: #1d1733; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.page-result.is-dark .rsec > p, .page-result.is-dark .rsec-pair li, .page-result.is-dark .rsec-tip p { color: #cfc6ef; }
.page-result.is-dark .pattern { color: #f4efff !important; }
.page-result.is-dark .evidence li { background: rgba(138, 107, 255, .12); }
.page-result.is-dark .ev-scene, .page-result.is-dark .fine, .page-result.is-dark .prev { color: #a99fd0; }
.page-result.is-dark .rsec-tip { background: linear-gradient(160deg, #241c40, #1d1733); }
.page-result.is-dark .rsec-next { background: transparent; box-shadow: none; }
.page-result.is-dark .btn-tonal { background: rgba(255, 255, 255, .08); color: #e6defe; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.page-result.is-dark .btn-quiet, .page-result.is-dark .linkish { color: #cfc6ef; }
.page-result.is-dark .prev-chip { background: rgba(255, 255, 255, .08); }

/* ---------- reveal overlay ---------- */
.has-overlay { overflow: hidden; }
.reveal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; align-content: center; gap: 22px; padding: 24px; background: radial-gradient(60% 50% at 50% 45%, color-mix(in srgb, var(--c1) 55%, #120e22), #0d0a19 75%); color: #fff; perspective: 1200px; }
.reveal-rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .07) 0 8deg, transparent 8deg 20deg); opacity: 0; }
.reveal-stage { position: relative; perspective: 1200px; }
.reveal-card { position: relative; width: min(82vw, 340px, 52vh); aspect-ratio: 3 / 4.1; transform-style: preserve-3d; }
.reveal-face { position: absolute; inset: 0; border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; text-align: center; overflow: hidden; }
.reveal-back { background: radial-gradient(70% 60% at 30% 20%, #b39cff, transparent 60%), linear-gradient(150deg, #6440f0, #2a1a73); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .25); }
.reveal-logo { position: absolute; top: 22px; left: 0; right: 0; font-family: -apple-system, sans-serif; font-weight: 850; font-size: 20px; letter-spacing: -.05em; opacity: .9; }
.reveal-q { font-size: 120px; font-weight: 900; opacity: .9; text-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.reveal-front { transform: rotateY(180deg); background: radial-gradient(70% 45% at 50% 38%, #fff, transparent 75%), linear-gradient(170deg, #fff, color-mix(in srgb, var(--c2) 30%, #fff) 50%, var(--c2)); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); align-content: start; padding: 22px 18px; gap: 4px; }
.reveal-front h2 { font-size: 26px; line-height: 1.2; }
.reveal-front p { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.reveal-art { width: 74%; margin: 6px auto 0; }
.reveal-badge { display: inline-flex; gap: 6px; align-items: center; justify-self: center; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.reveal-badge .i { width: 14px; height: 14px; color: var(--gold); }
.reveal-go { position: relative; opacity: 0; }
.reveal.is-play .reveal-stage { animation: cardIn .5s var(--ease-spring) both; }
.reveal.is-play .reveal-card { animation: flip .7s .55s var(--ease) both; }
.reveal.is-play .reveal-back { animation: faceOut .7s .55s linear both; }
.reveal.is-play .reveal-front { animation: faceIn .7s .55s linear both; }
.reveal.is-play .reveal-rays { animation: rays 1s .9s var(--ease) both, spin 30s linear infinite; }
.reveal.is-play .reveal-go { animation: enter .4s 1.2s var(--ease) both; }
.reveal.is-play .reveal-art svg { animation: popIn .6s 1.05s var(--ease-spring) both; }
.reveal.is-static .reveal-card { transform: rotateY(180deg); }
.reveal.is-static .reveal-back { visibility: hidden; }
.reveal.is-static .reveal-go, .reveal.is-static .reveal-rays { opacity: 1; }
.reveal.is-out { animation: fadeOut .22s var(--ease) both; }
@keyframes cardIn { from { transform: translateY(40px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes faceOut { 0%, 49.9% { visibility: visible; } 50%, 100% { visibility: hidden; } }
@keyframes faceIn { 0%, 49.9% { visibility: hidden; } 50%, 100% { visibility: visible; } }
@keyframes flip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
@keyframes rays { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes popIn { from { transform: scale(.4) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(13, 10, 25, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: enter .2s var(--ease); }
.modal-card { position: relative; width: min(100%, 420px); max-height: 92vh; overflow: auto; background: var(--surface); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--sh-3); color: var(--ink); }
.modal-title { font-weight: 800; font-size: 17px; margin-bottom: 12px; padding-right: 48px; }
.modal-x { position: absolute; top: 10px; right: 10px; }
.modal-img { width: 100%; border-radius: var(--r-md); box-shadow: var(--sh-2); max-height: 60vh; object-fit: contain; background: var(--surface-2); }
.modal-actions { display: grid; gap: 8px; margin-top: 14px; }

/* ---------- collection ---------- */
.dex-head { display: flex; align-items: center; gap: 18px; margin: 8px 0 20px; }
.ring { --p: 0; flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand-500) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg); }
.ring span { position: relative; font-weight: 700; color: var(--ink-3); font-size: 14px; }
.ring b { font-size: 26px; color: var(--ink); font-weight: 900; }
.dex-head h1 { font-size: clamp(26px, 7vw, 38px); }
.dex-head .lead { margin-top: 4px; font-size: 15px; }
.profile { padding: 20px; border-radius: var(--r-2xl); background: radial-gradient(100% 120% at 100% 0%, #ffe0ee 0, transparent 50%), linear-gradient(150deg, #f6f2ff, #ebe4ff); box-shadow: var(--sh-2), inset 0 0 0 1px rgba(255, 255, 255, .8); }
.profile-l2, .profile-l3 { background: radial-gradient(100% 120% at 100% 0%, #ff7aa8 0, transparent 45%), linear-gradient(135deg, #2a1a73, #6440f0); color: #fff; }
.profile-l2 p, .profile-l3 p { color: #ddd3ff; }
.profile h2 { margin-top: 10px; font-size: clamp(24px, 6.4vw, 32px); }
.profile p { margin-top: 8px; color: var(--ink-2); line-height: 1.7; }
.profile-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.profile-level { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(118, 86, 255, .12); color: var(--brand-700); }
.profile-l2 .profile-level, .profile-l3 .profile-level { background: rgba(255, 255, 255, .16); color: #fff; }
.profile-next { font-size: 12px; font-weight: 650; opacity: .8; }
.kws { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.kw { padding: 6px 12px; border-radius: var(--r-pill); background: #fff; color: var(--brand-700); font-weight: 750; font-size: 13px; }
.tbars { display: grid; gap: 6px; margin-top: 16px; }
.tbars li { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; align-items: center; font-size: 13px; font-weight: 650; opacity: .9; }
.tbars .tbar { background: rgba(255, 255, 255, .16); height: 8px; }
.tbars .tbar i { background: linear-gradient(90deg, #ffd5e5, #fff); }
.tbars li.is-top { opacity: 1; font-weight: 800; }
.selves { display: grid; gap: 8px; margin-top: 16px; }
.self { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .1); }
.self-cat { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; color: var(--c2); }
.self-cat .i { width: 14px; height: 14px; }
.self-names { font-weight: 700; font-size: 14px; }
.profile-actions { margin-top: 16px; }
.profile-l2 .btn-primary, .profile-l3 .btn-primary { background: #fff; color: var(--brand-700); box-shadow: none; }
.profile-locked { display: flex; gap: 14px; align-items: flex-start; }
.profile-lock { width: 48px; height: 48px; border-radius: 16px; flex: none; display: grid; place-items: center; background: #fff; color: var(--brand-500); box-shadow: var(--sh-1); }
.profile-locked h2 { margin-top: 4px; font-size: 20px; }
.steps { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.steps span { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px 5px 5px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 650; color: var(--ink-2); }
.steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; }
.steps .is-on b { background: var(--brand-500); color: #fff; }
.dex-group { margin-top: 28px; }
.dex-ghead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dex-ghead h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.dex-ghead h2 .i { color: var(--c1); }
.dex-ghead span { font-weight: 750; color: var(--ink-3); font-size: 14px; }
.dex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slot { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 12px 10px 14px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); border: 1.5px dashed transparent; height: 100%; transition: transform .2s var(--ease); }
.slot:not(.is-got) { background: var(--surface-2); box-shadow: none; border-color: var(--line-2); }
.slot.is-got { background: radial-gradient(70% 55% at 50% 35%, #fff, transparent 70%), linear-gradient(170deg, #fff, var(--cbg) 60%, var(--c2) 160%); box-shadow: var(--sh-1), inset 0 0 0 1px rgba(255, 255, 255, .9); }
.slot.is-got.is-dark { background: radial-gradient(70% 55% at 50% 35%, rgba(138, 107, 255, .45), transparent 70%), linear-gradient(170deg, #2a2147, #161127); color: #f4efff; }
.slot:active { transform: scale(.97); }
.slot-art { width: 86%; }
.slot-name { font-weight: 800; font-size: 15px; line-height: 1.3; letter-spacing: -.02em; }
.slot-test { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--ink-3); }
.slot.is-dark .slot-test { color: #b9add9; }
.slot-test .i { width: 12px; height: 12px; }
.dex-data { margin-top: 32px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.dex-data p { display: flex; gap: 6px; align-items: center; }

/* ---------- docs / empty ---------- */
.page-doc .doc { max-width: 720px; display: grid; gap: 16px; }
.doc section { padding: 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.doc h2 { font-size: 18px; }
.doc p { margin-top: 8px; color: var(--ink-2); line-height: 1.75; }
.danger-zone { box-shadow: inset 0 0 0 1px #ffd1d6 !important; }
.danger-zone .btn { margin-top: 14px; }
.page-empty { text-align: center; padding: 40px 0; display: grid; justify-items: center; gap: 10px; }
.empty-art { width: 160px; }

/* ---------- ads (only rendered when enabled/preview) ---------- */
.ad-slot { position: relative; display: grid; place-items: center; margin: 16px 0; border-radius: var(--r-lg); background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; contain: layout paint; }
.tgrid .ad-slot { grid-column: 1 / -1; margin: 0; }
.ad-label { position: absolute; top: 6px; left: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ad-ph { font-size: 12px; color: var(--ink-3); font-family: ui-monospace, monospace; }

/* ---------- responsive ---------- */
@media (max-width: 359px) {
  main { padding-left: 12px; padding-right: 12px; }
  .tgrid { gap: 8px; }
  .tcard-title { font-size: 14px; }
  .brand-word { font-size: 20px; }
  .dex-pill span { display: none; }
  .choices-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hud-item { padding: 8px; gap: 6px; } .hud-ic { display: none; }
}
@media (min-width: 600px) {
  .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rsec-pair { grid-template-columns: 1fr 1fr; }
  .rsec-pair .rsec + .rsec { margin-top: 0; }
  .dex-card { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 28px 32px; }
  .dex-face:nth-child(n+9) { display: grid; }
  .dex-faces { grid-template-columns: repeat(5, 1fr); padding-right: 40px; }
  .hero-fig-3 { display: block; }
  .next-grid { grid-template-columns: 1.4fr 1fr; }
  .next-grid .tcard-next { grid-row: span 2; }
}
@media (min-width: 900px) {
  :root { --topbar-h: 66px; }
  .topnav { display: flex; }
  #tabbar { display: none; }
  main { padding: 28px 24px 64px; }
  #site-foot { padding-bottom: 40px; }
  .foot-in { grid-template-columns: 1fr 1.4fr auto; align-items: start; gap: 24px; }
  .hero { grid-template-columns: 1.05fr 1fr; padding: 56px 0 0 56px; min-height: 460px; align-items: center; }
  .hero-copy { padding-bottom: 56px; }
  .hero-art { height: 100%; min-height: 420px; margin: 0; }
  .hero-fig-0 { width: 46%; left: 26%; } .hero-fig-1 { width: 36%; bottom: 40px; } .hero-fig-2 { width: 34%; bottom: 60px; } .hero-fig-3 { width: 24%; left: 34%; bottom: 300px; }
  .fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .tcard-feature .tcard-art { aspect-ratio: 1 / .95; }
  .tcard-feature .tcard-art svg { width: 74%; }
  .tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .intro-hero { grid-template-columns: 1fr 1.15fr; align-items: center; padding: 40px 48px; }
  .intro-art { width: 100%; max-width: 340px; order: 2; }
  .intro-body { margin-top: 32px; }
  .intro-actions { grid-template-columns: 1fr 1fr; }
  .intro-actions .btn-primary:only-child { grid-column: 1 / -1; }
  .play-layout { grid-template-columns: 260px 1fr; align-items: start; gap: 40px; }
  .play-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar-h) + 80px); padding: 20px; border-radius: var(--r-xl); background: linear-gradient(170deg, var(--cbg), var(--c2) 170%); text-align: center; font-weight: 700; font-size: 14px; color: var(--cink); }
  .page-play.is-dark .play-aside { background: linear-gradient(170deg, #2a2147, #161127); color: #e6defe; }
  .play-aside-art { width: 80%; margin: 0 auto; }
  .pdots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
  .pdots li { width: 9px; height: 9px; border-radius: 50%; background: rgba(27, 22, 48, .14); }
  .page-play.is-dark .pdots li { background: rgba(255, 255, 255, .16); }
  .pdots li.is-done { background: var(--c1); } .pdots li.is-cur { background: var(--ink); transform: scale(1.3); }
  .page-play.is-dark .pdots li.is-cur { background: #fff; }
  .play-main { margin: 0; }
  .play-name { display: block; }
  .choices-list .choice { min-height: 64px; }
  .result-grid { grid-template-columns: minmax(340px, 420px) 1fr; align-items: start; gap: 32px; }
  .result-hero { position: sticky; top: calc(var(--topbar-h) + 20px); }
  .dex-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .collection-wrap { display: grid; }
  .page-collection .profile { max-width: none; }
}
@media (hover: none) { .tcard:hover { transform: none; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); } .choice:hover { box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--line); } .page-play.is-dark .choice:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .mem-timer i { animation: none !important; }
}


/* v0.3 — editorial toy-store visual system. Shared across all five locales. */
:root {
 --bg:#f9f8f5; --surface:#fff; --surface-2:#f4f2ef; --surface-3:#eae7e2;
 --ink:#201c2d; --ink-2:#4e485a; --ink-3:#706a7b; --line:#e6e1e6;
 --brand-500:#704ce5; --brand-600:#6038d4; --brand-700:#512cb6;
 --r-lg:20px; --r-xl:24px; --r-2xl:30px;
 --sh-1:0 2px 6px #2a203009; --sh-2:0 10px 24px -12px #30213b2b; --sh-3:0 20px 45px -24px #32204d50;
}
.topbar-in {min-height:58px}
.brand-word {letter-spacing:-.065em}
.brand-mark {box-shadow:0 3px 0 #4926a8,0 5px 12px #5831c633}
.hero {background:#e9e3ff;box-shadow:none;border:1px solid #d8ccf7;padding:25px 20px 0;gap:0}
.hero::after {background-image:none;background:radial-gradient(ellipse at 76% 67%,#faf7ff 0,transparent 55%);mask-image:none;-webkit-mask-image:none}
.hero-copy {position:relative;z-index:2}
.hero h1 {font-size:clamp(32px,8.2vw,64px);line-height:1.08;letter-spacing:-.055em;max-width:15ch}
.hero .lead {font-size:15px;max-width:32em;line-height:1.55}
.hero .eyebrow {font-size:10px;letter-spacing:.12em}
.hero .cta-row {margin-top:20px}
.hero .btn-primary {background:#262033;color:#fff;box-shadow:0 4px 0 #100d18}
.hero .btn-primary:active {transform:translateY(2px);box-shadow:0 2px 0 #100d18}
.hero .hero-points {font-size:11px;gap:7px 11px;margin-top:16px}
.hero-art {height:172px;margin:0 -20px}
.hero-stage::before {content:"";position:absolute;width:72%;height:35%;left:14%;bottom:0;border-radius:50%;background:#c8b8f2;filter:blur(14px);opacity:.65}
.hero-fig {animation:none}
.hero-fig-0 {width:43%;left:28%;bottom:-8px}
.hero-fig-1 {left:1%;bottom:4px;width:34%;transform:rotate(-9deg)}
.hero-fig-2 {right:0;bottom:6px;width:34%;transform:rotate(8deg)}
.hero-fig-3 {display:none}
.page-home .section {margin-top:30px}
.sec-head h2 {font-size:clamp(21px,5.3vw,30px);font-weight:800;letter-spacing:-.045em}
.sec-head p {font-size:13px;line-height:1.5}
.fgrid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tcard {border:1px solid var(--line);box-shadow:none;border-radius:20px}
.tcard:hover {box-shadow:var(--sh-2)}
.tcard-art {aspect-ratio:1.15;isolation:isolate;background:radial-gradient(ellipse at 35% 20%,#ffffffb3 0,transparent 58%),linear-gradient(145deg,var(--cbg),var(--c2));}
.tcard-art::after {content:"";position:absolute;bottom:-12%;left:8%;right:8%;height:36%;border-radius:50%;background:#ffffff55;z-index:-1}
.tcard.is-dark .tcard-art {background:radial-gradient(ellipse at 50% 35%,#675292,transparent 75%),#21182e}
.tcard.is-dark .tcard-art::after {background:#9b88bf33}
.tcard-art svg,.tcard-art .char-img {position:relative;width:78%;height:auto;max-height:100%;object-fit:contain;margin-bottom:0}
.tcard-feature .tcard-art {aspect-ratio:1.08}
.tcard-feature .tcard-art svg,.tcard-feature .tcard-art .char-img {width:78%}
.tcard-body {padding:12px;gap:8px}
.tcard-feature .tcard-title {font-size:16px;line-height:1.38}
.tcard-feature .tcard-hook {font-size:12px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tcard-meta {font-size:11px;flex-wrap:wrap}
.tcard-compact .tcard-art {width:92px}
.tcard-compact .tcard-art svg,.tcard-compact .tcard-art .char-img {width:85%}
.tcard-index {position:absolute;z-index:2;top:10px;left:11px;font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--cink);opacity:.8}
.tcard-art .art-stamp {position:absolute;bottom:10px;right:10px;width:24px;height:24px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;color:var(--cink);opacity:.6}
.art-stamp .i {width:13px;height:13px}
.tcard.is-dark .tcard-index,.tcard.is-dark .art-stamp {color:#eee5ff}
.dex-card {background:#272039;border-radius:24px;box-shadow:none;padding:21px}
.dex-card .eyebrow {color:#bfb0eb}
.dex-sub {color:#d9d1e6}
.dex-faces {grid-template-columns:repeat(4,minmax(0,1fr));padding-right:0}
.dex-face {background:#ffffff0d;border-radius:14px}
.dex-face:not(.is-got)::after {content:"?";font-size:23px;font-weight:800;color:#c7b5e6}
.dex-go {width:32px;height:32px;right:16px;top:16px}
.dex-copy {padding-right:20px}
.intro-hero {border-radius:26px;box-shadow:none;border:1px solid #e3dce9}
.intro-actions .btn-primary,.play-footer .btn-primary {min-height:54px}
.choice {border-radius:16px;min-height:62px;box-shadow:inset 0 0 0 1px var(--line)}
.choice[aria-pressed="true"] {box-shadow:inset 0 0 0 2px var(--c1)}
.rcard {padding:20px 20px 24px;border-radius:24px;border:1px solid #ffffffb0;box-shadow:var(--sh-3);background:radial-gradient(ellipse at 50% 38%,white 0,transparent 60%),linear-gradient(165deg,var(--cbg),var(--c2))}
.rcard::before {background-image:none;inset:10px;border:1px solid #ffffff9c;border-radius:17px}
.rcard.is-dark {background:radial-gradient(ellipse at 50% 42%,#594178 0,transparent 65%),linear-gradient(155deg,#352943,#191321);border-color:#6b577b}
.rcard.is-dark::before {background-image:none;border-color:#ffffff26}
.rcard-test {font-size:12px;line-height:1.4;margin-top:18px}
.rcard-art {width:min(86%,330px);margin:0 auto}
.rcard-art .char-img {position:relative;width:100%;object-fit:contain}
.rcard-name {font-size:clamp(27px,7.5vw,43px);line-height:1.16;letter-spacing:-.045em}
.rcard-line {font-size:16px;line-height:1.5}
.rcard-edition {display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:20px;border-top:1px solid #201b3020;padding-top:10px;font-size:9px;font-weight:800;letter-spacing:.13em;color:var(--cink)}
.rcard.is-dark .rcard-edition {border-color:#ffffff25;color:#d9c9f3}
.share-row {gap:8px}
.share-row .btn {min-height:48px}
.slot {border-radius:18px;box-shadow:none;border:1px solid var(--line)}
.slot-art .char-img,.poss .char-img,.dex-face .char-img,.intro-art .char-img,.hero-fig .char-img,.cont-art .char-img,.shared-art .char-img,.reveal-art .char-img {width:100%;height:auto;object-fit:contain}
#tabbar {background:#fffefbf5;border-top:1px solid #eae4e7}
#tabbar a[aria-current] .i {stroke-width:2.6}
#tabbar a[aria-current] {color:var(--brand-600)}
@media(min-width:600px){
 .hero-art {height:250px}
 .hero-fig-3 {display:block;width:23%;left:20%;bottom:94px}
 .fgrid {grid-template-columns:repeat(4,minmax(0,1fr))}
 .dex-faces {grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(min-width:900px){
 .hero {grid-template-columns:1.06fr .94fr;padding:42px 22px 0 45px;min-height:385px}
 .hero-copy {padding-bottom:42px}
 .hero-art {height:100%;min-height:340px;margin:0}
 .hero-fig-0 {width:48%;left:25%}
 .hero-fig-1 {bottom:28px}.hero-fig-2 {bottom:35px}
 .hero-fig-3 {bottom:210px;left:38%}
 .tcard-feature .tcard-title {font-size:18px}
}
@media(max-width:359px){
 .hero {padding:20px 14px 0}.hero h1{font-size:30px}
 .hero-art{height:145px}.tcard-body{padding:10px}
 .tcard-feature .tcard-title{font-size:14px}
 .tcard-feature .tcard-hook{display:none}
}
@media(prefers-reduced-motion:reduce){.hero-fig,.tcard,.choice{animation:none!important;transition:none!important}}


/* v0.6 — editorial discovery / collectible poster system. */
:root{--bg:#f8f7fb;--surface:#fff;--surface-2:#f1eef5;--ink:#211d2b;--ink-2:#494253;--ink-3:#6f687b;--line:#e6e2eb;--brand-500:#7957e8;--brand-600:#6744ce;--r-md:13px;--r-lg:18px;--r-xl:22px;--r-2xl:26px}
#topbar{background:var(--bg)}
.brand-mark{border-radius:10px;background:#7957e8;box-shadow:none}
.brand-mark i{border-radius:40% 60% 55% 45%;transform:rotate(-25deg)}
.brand-word{font-weight:850;letter-spacing:-.075em}
.topbar-in{min-height:62px}
.dex-pill,.lang-pill{min-height:44px}
.btn{border-radius:13px;box-shadow:none;min-height:48px}
.btn-primary{background:#292238;color:#fff;box-shadow:none}
.btn-primary:hover{background:#403258;box-shadow:none}
.discovery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:8px 0 22px}
.discovery-head>div{min-width:0}
.discovery-kicker{font-size:11px;font-weight:800;color:var(--brand-600);letter-spacing:.09em;margin-bottom:9px}
.discovery-head h1{font-size:clamp(30px,8vw,56px);line-height:1.16;letter-spacing:-.055em}
.discovery-head h1 em{background:none;color:#7957e8}
.discovery-head .lead{font-size:14px;line-height:1.55;max-width:40em;margin-top:8px}
.discovery-count{flex:none;display:grid;justify-items:center;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:white}
.discovery-count>span{color:#7957e8;font-size:17px}
.discovery-count>b{font-size:20px;line-height:1.2;font-variant-numeric:tabular-nums}
.discovery-count small{color:var(--ink-3);font-size:11px}
.resume-band{margin:0 0 15px}
.lead-feature{display:grid;grid-template-columns:1fr;position:relative;isolation:isolate;overflow:hidden;border-radius:22px;background:#21182f;color:#fff;min-width:0}
.lead-visual{height:190px;position:relative;display:grid;place-items:center;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 70% 35%,#69548f 0,#362749 50%,#21182f 85%)}
.lead-visual>svg,.lead-visual>.char-img{position:relative;width:auto;height:100%;max-width:83%;object-fit:contain;z-index:1}
.lead-number{font-size:clamp(86px,24vw,150px);font-weight:900;line-height:1;position:absolute;left:8px;bottom:3px;color:#fff0; -webkit-text-stroke:1px #ffffff30;letter-spacing:-.09em}
.lead-orbit{position:absolute;border:1px solid #ffffff30;width:78%;aspect-ratio:1;border-radius:50%;transform:rotate(-25deg) scaleY(.6);z-index:-1}
.lead-orbit.orbit-two{width:95%;transform:rotate(30deg) scaleY(.65)}
.lead-copy{padding:18px 20px 22px;position:relative;min-width:0}
.lead-label{font-size:10px;font-weight:750;color:#d8c8ff;letter-spacing:.08em}
.lead-copy h2{font-size:clamp(25px,6.4vw,40px);line-height:1.17;color:#fff;margin:7px 0}
.lead-copy p{font-size:14px;color:#e1d7ee;line-height:1.6;max-width:38em}
.lead-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;padding:0 17px;min-height:48px;background:#e9deff;color:#21182f;font-weight:800;font-size:14px;border-radius:11px;margin-top:16px}
.lead-time{display:inline-flex;align-items:center;gap:5px;margin-left:10px;color:#dfd5ee;font-size:12px}
.discovery .section{margin-top:29px}
.discovery .sec-head{align-items:center;flex-wrap:nowrap}
.discovery .sec-head>div{min-width:0}
.discovery .sec-head h2{font-size:23px;letter-spacing:-.04em}
.discovery .sec-head p{font-size:12px;margin-top:3px}
.section-link{display:inline-flex;align-items:center;gap:5px;flex:none;min-height:44px;color:var(--brand-600);font-size:12px;font-weight:750}
.discovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.discovery-grid:not(.more-grid)>.tcard:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr)}
.discovery-grid:not(.more-grid)>.tcard:last-child:nth-child(odd) .tcard-art{height:100%;aspect-ratio:auto;min-height:150px}
.more-grid:has(>.tcard:only-child){grid-template-columns:1fr}
.more-grid>.tcard:only-child{display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr)}
.more-grid>.tcard:only-child .tcard-art{height:100%;aspect-ratio:auto;min-height:150px}
.tcard{border:1px solid #e6e2eb;border-radius:17px;box-shadow:none;background:#fff;min-width:0}
.tcard-art,.tcard-feature .tcard-art{aspect-ratio:1.1;position:relative;isolation:isolate;display:grid;place-items:center;background:var(--c2);min-width:0}
.tcard-art::after{content:none}
.tcard[data-cat="brain"] .tcard-art{background:#cdd7ff}
.tcard[data-cat="love"] .tcard-art{background:#ffd4df}
.tcard[data-cat="ambition"] .tcard-art{background:#b8ead6}
.tcard[data-cat="identity"] .tcard-art{background:#ffdfb7}
.tcard.is-dark .tcard-art{background:#3c2a50}
.tcard-art>svg,.tcard-art>.char-img,.tcard-feature .tcard-art>svg,.tcard-feature .tcard-art>.char-img{width:83%;max-height:93%;height:auto;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 7px 7px #2d24452a)}
.poster-orbit{position:absolute;width:82%;aspect-ratio:1;border-radius:50%;border:1px solid #ffffffb0;transform:rotate(-23deg) scaleY(.65)}
.poster-orbit-2{width:105%;transform:rotate(35deg) scaleY(.7);opacity:.55}
.poster-no{position:absolute;left:10px;top:7px;font-size:38px;line-height:1.1;font-weight:900;letter-spacing:-.1em;color:#ffffffa8;z-index:0}
.tcard.is-dark .poster-no{color:#ffffff40}
.tcard-art .art-stamp{top:9px;right:9px;bottom:auto;border:0;opacity:.9;background:#ffffffa0;color:#292238;z-index:2}
.tcard.is-dark .art-stamp{background:#ffffff15;color:#eee3ff}
.tcard-body{gap:6px;padding:12px;min-width:0}
.poster-category{font-size:10px;font-weight:850;letter-spacing:.07em;color:var(--cdeep)}
.tcard.is-dark .poster-category{color:#7353bb}
.tcard-title,.tcard-feature .tcard-title{font-size:16px;font-weight:800;line-height:1.35;letter-spacing:-.035em;color:var(--ink)}
.tcard-hook,.tcard-feature .tcard-hook{font-size:12px;line-height:1.45;color:var(--ink-2);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.poster-bottom{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-top:auto}
.poster-arrow{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#f1eef6;color:#382d4d;flex:none}
.poster-arrow .i{width:15px;height:15px}
.tcard-meta{margin:0;padding:0;color:var(--ink-3);font-size:12px}
.tcard-compact{display:flex}
.tcard-compact .tcard-art{width:100px;aspect-ratio:1;flex:none}
.tcard-compact .poster-orbit{display:none}
.tcard-compact .poster-arrow{width:22px;height:22px}
.dex-card{background:#292238;color:#fff;border-radius:21px}
.dex-card .eyebrow{font-size:11px;letter-spacing:.06em}
.dex-faces{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.dex-face{background:#ffffff0c;border:1px solid #ffffff1c;border-radius:10px}
.dex-face:not(.is-got)::after{content:none}
.dex-face:not(.is-got)>svg{opacity:.42}
.dex-face.is-got{background:#fff}
.intro-hero{display:grid;background:var(--cbg);border:0;box-shadow:none;padding:22px}
.intro-art{width:min(100%,330px);aspect-ratio:1.35;display:grid;place-items:center;isolation:isolate}
.intro-art>svg,.intro-art>.char-img{height:100%;width:auto;max-width:88%;animation:none;object-fit:contain}
.cover-edition{position:absolute;top:0;left:0;font-size:11px;letter-spacing:.09em;font-weight:800;color:var(--cink)}
.intro-copy h1{font-size:clamp(29px,7.5vw,44px);line-height:1.2}
.intro-actions .btn-primary{min-height:56px}
.possible{border-top:1px solid var(--line);padding-top:16px}
.play-bar{padding-top:12px;padding-bottom:12px}
.pbar{height:6px}
.play-main .stage{min-width:0}
.q-prompt{font-size:clamp(23px,6vw,34px);font-weight:800;line-height:1.37}
.choice{border-radius:13px;font-size:15px;padding:14px;min-height:62px;box-shadow:inset 0 0 0 1px #e3dfe9}
.choice[aria-pressed="true"]{background:color-mix(in srgb,var(--c1) 11%,white);box-shadow:inset 0 0 0 2px var(--c1)}
.ckey{border-radius:8px}
.mode-chat .chat{border-radius:19px;box-shadow:none;border:1px solid #e6e2eb}
.mode-chat .chat-head{background:#fff}
.mode-chat .chat-log{background:#f8f6fa;min-height:140px}
.mode-chat .choices-reply .choice{border-radius:15px 15px 4px 15px}
.mode-detect .mock{border-radius:15px;box-shadow:none;border:1px solid #dedbe5}
.mode-sim .hud{gap:8px}
.mode-sim .event-card{border-radius:16px}
.page-result .result-hero{min-width:0}
.rcard{border-radius:20px;background:var(--c2);box-shadow:none;border:1px solid #ffffff80;padding:22px 20px 20px;isolation:isolate}
.rcard::before{inset:9px;border:1px solid #ffffffb0;border-radius:13px;z-index:-1}
.rcard.is-dark{background:#312140;border:1px solid #68547f;box-shadow:none}
.rcard-top{gap:8px}
.rcard-brand{font-size:22px;letter-spacing:-.07em}
.rcard-test{margin-top:14px;font-size:12px;color:#423855}
.rcard-art{width:min(82%,290px);aspect-ratio:1;display:grid;place-items:center;isolation:isolate}
.rcard-art>svg,.rcard-art>.char-img{width:100%;max-height:100%;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 10px 10px #30234026)}
.result-orbit{position:absolute;inset:6%;border:1px solid #ffffffb0;border-radius:50%;transform:rotate(-25deg) scaleY(.75);z-index:-1}
.result-orbit-inner{inset:-2%;transform:rotate(32deg) scaleY(.65);opacity:.55}
.rcard-name{font-size:clamp(28px,7.5vw,45px);line-height:1.17;font-weight:900;letter-spacing:-.05em}
.rcard-line{font-size:16px;color:#40364d;line-height:1.55;margin-top:10px}
.rcard.is-dark .rcard-line{color:#eee3ff}
.rcard-edition{margin-top:19px;font-size:9px;letter-spacing:.09em}
.result-share-panel{padding:8px 0 0}
.result-share-panel .share-row{margin-top:5px}
.share-row .btn{min-height:58px;border-radius:12px;font-size:12px;line-height:1.3}
.share-row .btn-tonal{background:#fff;color:#2d253b;border:1px solid #e2dce8}
.result-share-panel .linkish{min-height:44px}
.rsec{border:0;border-radius:0;background:transparent;box-shadow:none;padding:20px 0;border-bottom:1px solid var(--line)}
.rsec + .rsec,.rsec-pair,.rsec-pair+.rsec,.result-body>*+*{margin-top:5px}
.rsec h2,.rsec h3{font-size:19px}
.rsec-summary>p{font-size:17px;color:var(--ink);line-height:1.8}
.rsec-pair .rsec{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px}
.rsec-next{padding-top:20px}
.rsec-tip{background:#f0ebfb;padding:16px;border-radius:14px;border:0}
.page-result.is-dark .rsec{background:transparent;box-shadow:none;border-color:#ffffff20}
.page-result.is-dark .rsec-pair .rsec,.page-result.is-dark .rsec-tip{background:#21192f;border-color:#ffffff20}
.page-result.is-dark .rsec-summary>p{color:#f3edff}
.collect-cta{background:#292238;border-radius:15px;box-shadow:none}
.dex-head{align-items:center;background:#292238;color:#fff;border-radius:20px;padding:20px;gap:16px}
.dex-head .eyebrow,.dex-head .lead{color:#ddd2f2}
.dex-head h1{color:#fff}
.dex-head .ring{background:conic-gradient(#c6b0ff calc(var(--p)*1%),#ffffff22 0)}
.dex-head .ring>span{background:#292238;color:#fff}
.profile{border-radius:17px}
.dex-group .dex-grid{gap:10px}
.slot{background:#fff;border:1px solid #e3dfe9;border-radius:15px;padding:12px 9px;position:relative}
.slot-art{width:100%;aspect-ratio:1;display:grid;place-items:center;background:#f2eff6;border-radius:11px;overflow:hidden}
.slot-art>svg,.slot-art>.char-img{width:95%;max-height:100%;object-fit:contain}
.slot.is-got .slot-art{background:var(--c2)}
.slot.is-got{background:#fff;box-shadow:none;color:var(--ink)}
.slot.is-got.is-dark{background:#312140;color:#fff}
.slot.is-got.is-dark .slot-art{background:#51406a}
.slot-name{margin-top:7px;font-size:14px}
.slot-test{margin-top:4px}
#tabbar{padding-top:5px;background:#fffffff5}
#tabbar a{min-height:48px;align-content:center;gap:3px}
#tabbar a[aria-current] .i{color:#7957e8}
body[data-tone="dark"] .btn-primary{background:#d9c9ff;color:#241934}
body[data-tone="dark"] .share-row .btn-tonal{background:#21192f;color:#f3edff;border-color:#ffffff25}
@media(min-width:600px){.discovery-head{margin-bottom:26px}.discovery-head .lead{font-size:16px}.lead-feature{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.lead-visual{height:100%;min-height:285px;order:2}.lead-copy{padding:32px;align-self:center}.discovery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.discovery-grid:not(.more-grid)>.tcard:last-child:nth-child(odd){grid-column:auto;display:flex}.discovery-grid:not(.more-grid)>.tcard:last-child:nth-child(odd) .tcard-art{height:auto;aspect-ratio:1.1}.more-grid:has(>.tcard:only-child){grid-template-columns:repeat(2,minmax(0,1fr))}.tcard-title,.tcard-feature .tcard-title{font-size:18px}.dex-faces{grid-template-columns:repeat(5,minmax(0,1fr));padding-right:28px}}
@media(min-width:900px){.discovery-head{margin-top:20px}.lead-copy{padding:46px}.lead-visual{min-height:330px}.lead-feature{border-radius:26px}.discovery .section{margin-top:40px}.discovery-grid{gap:20px}.tcard-body{padding:16px}.rcard-art{width:min(83%,320px)}.intro-hero{grid-template-columns:1fr 1fr;padding:35px 40px}.intro-art{order:2;max-width:380px}.result-grid{gap:40px}.result-hero{top:calc(var(--topbar-h) + 12px)}}
@media(max-width:359px){.discovery-count{padding:8px}.discovery-head h1{font-size:28px}.lead-copy{padding:16px}.lead-time{margin-left:6px}.tcard-body{padding:10px}.tcard-title,.tcard-feature .tcard-title{font-size:14px}}
@media(prefers-reduced-motion:reduce){.lead-visual>svg,.tcard,.choice,.rcard{animation:none!important;transition:none!important}}

/* Original 512px transparent art: prioritize character readability on editorial covers. */
.lead-visual>.char-img{height:100%;max-width:94%;filter:drop-shadow(0 8px 12px #160d2650)}
.tcard-art>.char-img{width:94%;max-height:96%;filter:drop-shadow(0 4px 8px #30213b20)}
.intro-art>.char-img{max-width:98%;height:100%;object-fit:contain}

/* v0.8 — mobile-first art direction and final spacing. Keep raster and SVG fallback
   inside identical, bounded art frames; do not stretch or crop the characters. */
:root {
  --bg:#faf9f6;
  --line:#e8e4e7;
  --ink:#24202e;
  --ink-2:#504958;
  --ink-3:#6a6472;
  --brand-600:#6543c4;
  --topbar-h:62px;
}
:lang(ko) { --font:-apple-system,BlinkMacSystemFont,"Pretendard","Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",system-ui,sans-serif; --font-display:var(--font); }
.discovery-head { gap:12px; margin:12px 0 20px; align-items:center; }
.discovery-head h1 { font-size:clamp(29px,7.7vw,52px); line-height:1.19; letter-spacing:-.04em; text-wrap:balance; }
.discovery-head .lead { font-size:14px; line-height:1.65; }
.discovery-kicker { font-size:11px; letter-spacing:.08em; margin-bottom:7px; }
.discovery-count { padding:10px; min-width:54px; border-radius:12px; }
.lead-feature { border-radius:22px; background:#241b32; }
.lead-visual { height:clamp(190px,56vw,250px); background:radial-gradient(ellipse at 50% 45%,#79638f 0%,#443255 45%,#241b32 85%); }
.lead-visual > svg,.lead-visual > .char-img { position:absolute; inset:0; margin:auto; width:92%; height:92%; max-width:none; max-height:none; object-fit:contain; }
.lead-number { left:12px; bottom:4px; opacity:.65; pointer-events:none; }
.lead-orbit { opacity:.45; pointer-events:none; }
.lead-copy { padding:18px 20px 22px; }
.lead-copy h2 { font-size:clamp(24px,6.6vw,38px); line-height:1.23; letter-spacing:-.025em; text-wrap:balance; }
.lead-copy p { line-height:1.65; }
.lead-cta { margin-top:15px; min-height:48px; }
.lead-time { vertical-align:middle; }
.discovery .section { margin-top:32px; }
.discovery .sec-head { margin-bottom:12px; gap:8px; }
.discovery .sec-head h2 { line-height:1.3; }
.discovery .sec-head p { font-size:13px; line-height:1.5; }
.discovery-grid { gap:12px; }
.tcard { border-radius:16px; }
.tcard:not(.tcard-compact) .tcard-art { aspect-ratio:1.05; }
.tcard:not(.tcard-compact) .tcard-art > svg,
.tcard:not(.tcard-compact) .tcard-art > .char-img {
  position:absolute; inset:0; margin:auto; width:90%; height:90%; max-width:none;
  max-height:none; object-fit:contain; filter:drop-shadow(0 5px 7px #30213b22);
}
.tcard[data-cat="brain"] .tcard-art { background:radial-gradient(ellipse at 50% 28%,#e6ebff,#bdc9f4 100%); }
.tcard[data-cat="love"] .tcard-art { background:radial-gradient(ellipse at 50% 28%,#ffedf1,#f5bacd 100%); }
.tcard[data-cat="ambition"] .tcard-art { background:radial-gradient(ellipse at 50% 28%,#e5f6eb,#a7d9c6 100%); }
.tcard[data-cat="identity"] .tcard-art { background:radial-gradient(ellipse at 50% 28%,#fff0db,#f5c995 100%); }
.tcard.is-dark .tcard-art { background:radial-gradient(ellipse at 50% 35%,#79648e,#382846 100%); }
.poster-orbit { opacity:.38; pointer-events:none; }
.poster-no { font-size:30px; opacity:.72; }
.tcard-body { padding:12px 12px 13px; gap:7px; }
.tcard-title,.tcard-feature .tcard-title { font-size:16px; line-height:1.35; letter-spacing:-.02em; overflow-wrap:anywhere; }
.tcard-hook,.tcard-feature .tcard-hook { font-size:13px; line-height:1.48; }
.poster-category { font-size:11px; letter-spacing:.025em; }
.poster-arrow { width:27px; height:27px; }
.tcard-compact .tcard-art > .char-img,.tcard-compact .tcard-art > svg { width:88%; max-height:88%; object-fit:contain; margin:0; }
.intro-hero { gap:16px; padding:20px; }
.intro-art { width:min(100%,320px); aspect-ratio:1.3; }
.intro-art > svg,.intro-art > .char-img { position:absolute; inset:0; margin:auto; width:92%; height:92%; max-width:none; max-height:none; object-fit:contain; }
.cover-edition { z-index:2; }
.intro-copy h1 { line-height:1.24; letter-spacing:-.035em; text-wrap:balance; }
.poss > .char-img,.poss > svg { width:100%; max-width:72px; aspect-ratio:1; object-fit:contain; }
.choice { line-height:1.5; padding:14px 15px; }
.rcard { padding:20px 20px 22px; background:radial-gradient(ellipse at 50% 37%,#ffffff9c,transparent 65%),linear-gradient(160deg,var(--cbg),var(--c2)); }
.rcard.is-dark { background:radial-gradient(ellipse at 50% 39%,#6f5685,#30213f 72%); }
.rcard.is-dark .rcard-test { color:#e4d9f3; }
.rcard-art { width:min(96%,310px); aspect-ratio:1; margin:8px auto 2px; }
.rcard-art > svg,.rcard-art > .char-img { position:absolute; inset:0; margin:auto; width:94%; height:94%; max-width:none; max-height:none; object-fit:contain; }
.result-orbit { opacity:.45; }
.rcard-name { font-size:clamp(27px,7.3vw,43px); line-height:1.24; letter-spacing:-.025em; text-wrap:balance; }
.rcard-line { font-size:16px; line-height:1.65; }
.rcard-edition { gap:12px; letter-spacing:.04em; }
.result-share-panel .share-row { gap:8px; }
.share-row .btn { min-width:0; padding:6px 5px; line-height:1.35; overflow-wrap:anywhere; }
.slot-art { position:relative; }
.slot-art > svg,.slot-art > .char-img { position:absolute; inset:0; margin:auto; width:90%; height:90%; max-width:none; max-height:none; object-fit:contain; }
.slot-name { line-height:1.35; overflow-wrap:anywhere; }
.dex-card { padding:20px; }
.dex-face { overflow:hidden; }
.dex-face > .char-img,.dex-face > svg { width:92%; max-height:100%; object-fit:contain; margin:auto; }
@media(min-width:600px) {
  .lead-visual { height:100%; min-height:285px; }
  .lead-copy { padding:30px; }
  .discovery-grid { gap:16px; }
  .tcard-title,.tcard-feature .tcard-title { font-size:18px; }
}
@media(min-width:900px) {
  .lead-visual { min-height:330px; }
  .lead-copy { padding:40px; }
  .discovery-grid { gap:20px; }
  .tcard-body { padding:16px; }
  .intro-hero { padding:34px 40px; }
  .intro-art { width:min(100%,380px); }
  .rcard-art { width:min(94%,330px); }
}
@media(max-width:359px) {
  .discovery-head h1 { font-size:27px; }
  .discovery-count { min-width:44px; padding:7px; }
  .lead-copy { padding:16px; }
  .tcard-body { padding:10px; }
  .tcard-title,.tcard-feature .tcard-title { font-size:14px; }
  .tcard-hook,.tcard-feature .tcard-hook { font-size:12px; }
  .rcard { padding:16px; }
}
