/* SatAsoon Recruit — applicant site */
:root {
  --primary: #8b5cf6; --primary-rgb: 139 92 246;
  --accent: #f43f5e; --accent-rgb: 244 63 94;
  --gold: #f5c38b; --gold-rgb: 245 195 139;
  --bg: #0b0616; --bg-rgb: 11 6 22;
  --text: #f5f0ff; --text-rgb: 245 240 255;
  --font: 'Kanit'; --heading-font: 'Cinzel';
  --radius: 22px;
  --muted: rgb(var(--text-rgb) / .66);
  --line: rgb(255 255 255 / .09);
  --card: rgb(var(--bg-rgb) / .62);
  --bg-overlay: .55; --bg-blur: 0px; --bg-pos: center;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font), 'Kanit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400; line-height: 1.65; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgb(var(--primary-rgb) / .5); color: #fff; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ───────── background ───────── */
#bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; contain: strict; background:
  radial-gradient(120% 80% at 50% -10%, rgb(var(--primary-rgb) / .35), transparent 60%),
  radial-gradient(90% 60% at 100% 100%, rgb(var(--accent-rgb) / .18), transparent 60%),
  radial-gradient(80% 60% at 0% 90%, rgb(var(--primary-rgb) / .22), transparent 60%),
  var(--bg); }
.bg-image, .bg-video { position: absolute; inset: calc(var(--bg-blur) * -2); background: var(--bg-img, none) var(--bg-pos) / cover no-repeat; filter: blur(var(--bg-blur)); width: calc(100% + var(--bg-blur) * 4); height: calc(100% + var(--bg-blur) * 4); object-fit: cover; }
.bg-video { display: none; }
.has-video .bg-video { display: block; }
@media (max-width: 720px) { .bg-image { background-image: var(--bg-img-m, var(--bg-img, none)); } }
.bg-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--bg-rgb) / calc(var(--bg-overlay) * .7)), rgb(var(--bg-rgb) / var(--bg-overlay)) 60%, rgb(var(--bg-rgb) / calc(var(--bg-overlay) + .2))); display: none; }
.has-bg .bg-overlay { display: block; }
.has-bg .bg-aurora, .has-bg .stars { display: none; } /* painted art already has sky + stars: fewer GPU layers */
.has-bg .moon, .has-bg .scenery, .has-bg .pattern { display: none; }

.bg-aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5;
  background: radial-gradient(closest-side, rgb(var(--primary-rgb) / .35), transparent); animation: drift 26s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(1) { left: -20vmax; top: -25vmax; }
.bg-aurora i:nth-child(2) { right: -25vmax; top: 10vh; background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .22), transparent); animation-duration: 32s; animation-delay: -8s; }
.bg-aurora i:nth-child(3) { left: 20vw; bottom: -40vmax; background: radial-gradient(closest-side, rgb(var(--gold-rgb) / .10), transparent); animation-duration: 38s; }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
.stars { position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1.2px 1.2px at 23px 41px, #fff, transparent), radial-gradient(1px 1px at 117px 83px, #fff, transparent),
    radial-gradient(1.4px 1.4px at 201px 167px, #ffe9f5, transparent), radial-gradient(1px 1px at 61px 211px, #fff, transparent),
    radial-gradient(1.6px 1.6px at 171px 23px, #f5e6ff, transparent), radial-gradient(1px 1px at 241px 251px, #fff, transparent);
  background-size: 260px 260px; animation: twinkle 5s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(#000 0 45%, transparent 85%); mask-image: linear-gradient(#000 0 45%, transparent 85%); }
.stars.s2 { background-size: 390px 390px; background-position: 90px 130px; animation-duration: 7s; animation-delay: -3s; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .85; } }
.no-stars .stars { display: none; }
.moon { position: absolute; top: 9vh; right: 11vw; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff8f0, #ffd9e8 45%, rgb(var(--gold-rgb) / .9) 70%);
  box-shadow: 0 0 60px 20px rgb(255 214 232 / .25), 0 0 160px 60px rgb(var(--primary-rgb) / .25); opacity: .85; }
.scenery { position: absolute; left: 0; right: 0; bottom: 0; height: 42vh; min-height: 220px; pointer-events: none; }
.scenery .m { position: absolute; left: -3%; width: 106%; bottom: 0; height: 100%; }
.m-back path { fill: rgb(var(--primary-rgb) / .16); }
.m-mid path { fill: rgb(28 14 52 / .78); }
.m-mid .snow { fill: rgb(255 240 250 / .55); }
.m-front { height: 60% !important; }
.m-front path, .m-front rect { fill: rgb(14 7 28 / .96); }
.m-front .torii path, .m-front .torii rect { fill: rgb(var(--accent-rgb) / .55); }
.no-scenery .scenery, .no-scenery .moon { display: none; }
.pattern { position: absolute; inset: auto 0 0 0; height: 30vh; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M0 40a40 40 0 0 1 80 0M8 40a32 32 0 0 1 64 0M16 40a24 24 0 0 1 48 0M24 40a16 16 0 0 1 32 0M-40 20a40 40 0 0 1 80 0M40 20a40 40 0 0 1 80 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 40px; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
#fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
#glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgb(var(--primary-rgb) / .16), rgb(var(--accent-rgb) / .05) 55%, transparent); will-change: transform; opacity: 0; transition: opacity .6s; }
.glow-on #glow { opacity: 1; }

/* ───────── intro ───────── */
#intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgb(var(--primary-rgb) / .25), var(--bg) 60%); transition: opacity .7s var(--ease), visibility .7s; animation: introSafety .6s 4.5s forwards; }
#intro > * { grid-area: 1 / 1; }
.intro-logo { width: min(520px, 78vw); opacity: 0; transform: scale(.88); filter: drop-shadow(0 10px 40px rgb(var(--primary-rgb) / .6)); animation: introLogo 1.1s .1s var(--ease) forwards; }
.intro-ring { width: min(560px, 86vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgb(var(--gold-rgb) / .35); opacity: 0; animation: ring 1.8s .2s var(--ease) forwards; }
.intro-ring.r2 { border-color: rgb(var(--accent-rgb) / .3); animation-delay: .45s; }
.intro-bar { align-self: end; margin-bottom: 14vh; width: 160px; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .1); overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold)); transform-origin: left; transform: scaleX(0); animation: bar 1.3s var(--ease) forwards; }
#intro.out { opacity: 0; visibility: hidden; }
.skip-intro #intro { display: none; }
@keyframes introLogo { to { opacity: 1; transform: none; } }
@keyframes ring { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes introSafety { to { opacity: 0; visibility: hidden; } }

/* ───────── nav ───────── */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 10px; border-radius: 999px; background: rgb(var(--bg-rgb) / .55); border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgb(0 0 0 / .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), opacity .5s; }
.nav.hide { transform: translate(-50%, -140%); }
.nav-brand img { height: 34px; width: auto; filter: drop-shadow(0 2px 8px rgb(var(--primary-rgb) / .5)); transition: transform .3s var(--spring); }
.nav-brand:hover img { transform: scale(1.06) rotate(-2deg); }
.nav-links { position: relative; display: flex; gap: 2px; }
.nav-links a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .25s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-ink { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: linear-gradient(135deg, rgb(var(--primary-rgb) / .9), rgb(var(--accent-rgb) / .8));
  box-shadow: 0 6px 20px rgb(var(--primary-rgb) / .45); transition: transform .45s var(--spring), width .45s var(--spring), opacity .3s; opacity: 0; }
.music-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgb(255 255 255 / .05); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.music-btn[hidden] { display: none; }
.music-btn:hover { background: rgb(255 255 255 / .12); transform: scale(1.06); }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--gold); transition: height .3s; }
.music-btn.playing .eq i { animation: eq .9s ease-in-out infinite alternate; }
.music-btn.playing .eq i:nth-child(2) { animation-delay: -.3s; } .music-btn.playing .eq i:nth-child(3) { animation-delay: -.6s; } .music-btn.playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* ───────── layout ───────── */
main { display: block; min-height: 100dvh; outline: none; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 28px); margin-inline: auto; }
.page { padding: 104px 0 70px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ───────── hero ───────── */
.hero { position: relative; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 96px 18px 64px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 980px; }
.hero-logo-wrap { position: relative; width: min(720px, 94vw); will-change: transform; perspective: 900px; }
.hero-tilt { transition: transform .4s var(--ease); transform-style: preserve-3d; will-change: transform; }
.hero-logo { width: 100%; height: auto; filter: drop-shadow(0 18px 50px rgb(var(--primary-rgb) / .5)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.sparkle { position: absolute; width: 18px; height: 18px; pointer-events: none; color: #fff; animation: spark 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.sparkle::before { content: ''; position: absolute; inset: 0; background: currentColor; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 6px rgb(var(--primary-rgb))); }
@keyframes spark { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }
.eyebrow { font-family: var(--heading-font), var(--font), serif; letter-spacing: .32em; font-size: 13px; text-transform: uppercase; color: var(--gold); opacity: .9; }
.state-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgb(var(--bg-rgb) / .72); border: 1px solid var(--line); }
.state-chip .dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #34d399; }
.state-chip .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s ease-out infinite; }
.state-chip .dot.closed, .state-chip .dot.full { background: #fb7185; }
.state-chip .dot.closed::after, .state-chip .dot.full::after { display: none; }
.state-chip .dot.upcoming { background: var(--gold); }
@keyframes ping { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.hero-title { margin: 0; font-family: var(--heading-font), var(--font), serif; font-weight: 700; line-height: 1.12; font-size: clamp(28px, 4.6vw, 54px); letter-spacing: .02em;
  background: linear-gradient(100deg, #fff 20%, var(--gold) 40%, #fff 55%, rgb(var(--primary-rgb) / 1) 80%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear 2; text-wrap: balance; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero-sub { margin: 0; max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.7vw, 18px); font-weight: 300; }
.hero-sub p { margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: stretch; margin-top: 14px; }

/* countdown + counters */
.panel { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 18px; background: rgb(var(--bg-rgb) / .72); border: 1px solid var(--line); }
.panel-label { font-size: 13px; color: var(--muted); text-align: left; line-height: 1.3; }
.cd { display: flex; gap: 8px; }
.cd-u { min-width: 52px; text-align: center; }
.cd-n { display: block; font-family: var(--heading-font), var(--font); font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.cd-n.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-l { font-size: 11px; color: var(--muted); }
.count-n { font-family: var(--heading-font), var(--font); font-size: 28px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ───────── buttons ───────── */
.btn { --bx: 0px; --by: 0px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; min-height: 50px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font-weight: 500; font-size: 16px; letter-spacing: .01em; overflow: hidden; isolation: isolate;
  transform: translate3d(var(--bx), var(--by), 0); transition: transform .35s var(--ease), box-shadow .3s, background-color .3s, opacity .2s; user-select: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 10px 30px -6px rgb(var(--primary-rgb) / .7), inset 0 1px 0 rgb(255 255 255 / .25); }
.btn-primary:hover { box-shadow: 0 16px 44px -8px rgb(var(--accent-rgb) / .75), inset 0 1px 0 rgb(255 255 255 / .3); }
.btn-primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { color: var(--text); background: rgb(var(--bg-rgb) / .55); border: 1px solid rgb(255 255 255 / .18); }
.btn-ghost:hover { background: rgb(var(--bg-rgb) / .75); border-color: rgb(var(--gold-rgb) / .5); }
.btn-gold { color: #2a1405; background: linear-gradient(135deg, #ffe8c7, var(--gold)); box-shadow: 0 10px 30px -8px rgb(var(--gold-rgb) / .8); }
.btn-sm { padding: 9px 18px; min-height: 40px; font-size: 14px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.ripple { position: absolute; border-radius: 50%; background: rgb(255 255 255 / .45); transform: scale(0); animation: ripple .7s var(--ease) forwards; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ───────── cards / sections ───────── */
/* Cards are tinted, not blurred: backdrop blur over the moving petal canvas must be recomputed every
   frame and is the #1 cause of jank on phones. Frosted glass is opt-in (admin "glass") and desktop-only. */
.card { position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgb(var(--bg-rgb) / .9), rgb(var(--bg-rgb) / .78));
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .06); }
@media (min-width: 1024px) and (pointer: fine) {
  .glass:not(.lite) .card { background: var(--card); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.lite .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(var(--bg-rgb) / .92); }
.section { content-visibility: auto; contain-intrinsic-size: auto 640px; }
.ornate::before, .ornate::after { content: ''; position: absolute; width: 38px; height: 38px; pointer-events: none; border: 2px solid rgb(var(--gold-rgb) / .55); }
.ornate::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: calc(var(--radius) - 8px); }
.ornate::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: calc(var(--radius) - 8px); }
.section { padding: 70px 0; }
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-head h2 { margin: 6px 0 0; font-family: var(--heading-font), var(--font), serif; font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); }
.divider::before, .divider::after { content: ''; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, rgb(var(--gold-rgb) / .7)); }
.divider::after { transform: scaleX(-1); }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; position: relative; }
.tl-item { padding: 28px 24px; text-align: center; transition: transform .4s var(--ease), border-color .3s; }
.tl-item:hover { transform: translateY(-6px); border-color: rgb(var(--primary-rgb) / .5); }
.tl-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff;
  background: radial-gradient(circle at 30% 30%, rgb(var(--accent-rgb) / .9), rgb(var(--primary-rgb) / .9)); box-shadow: 0 8px 30px rgb(var(--primary-rgb) / .5), 0 0 0 6px rgb(var(--primary-rgb) / .12); }
.tl-step { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.tl-item h3 { margin: 4px 0 6px; font-size: 19px; font-weight: 600; }
.tl-item p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tl-date { display: inline-block; margin-top: 12px; font-size: 13px; padding: 3px 12px; border-radius: 999px; background: rgb(var(--gold-rgb) / .12); color: var(--gold); }
.about { padding: 38px clamp(22px, 5vw, 56px); }
.md p { margin: 0 0 .5em; }
.md ul { margin: .4em 0 .8em; padding-left: 0; list-style: none; }
.md li { position: relative; padding-left: 26px; margin: 6px 0; }
.md li::before { content: '❀'; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 14px; }
.md a { color: var(--gold); }
.md strong { color: #fff; font-weight: 600; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 28px; margin-bottom: 30px;
  background: linear-gradient(120deg, rgb(var(--gold-rgb) / .2), rgb(var(--primary-rgb) / .25)); border-color: rgb(var(--gold-rgb) / .4); }
.banner b { font-size: 19px; }

/* ───────── form ───────── */
.form-card { padding: clamp(22px, 4.5vw, 44px); }
.form-head { text-align: center; margin-bottom: 22px; }
.form-head img { width: 220px; margin: 0 auto 10px; filter: drop-shadow(0 8px 24px rgb(var(--primary-rgb) / .5)); }
.form-head h1 { margin: 0; font-size: clamp(22px, 3.4vw, 32px); font-weight: 600; }
.form-head .md { color: var(--muted); margin-top: 6px; }
.progress { margin: 6px 0 26px; }
.progress-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress-top b { color: var(--text); font-weight: 500; }
.track { position: relative; height: 6px; border-radius: 6px; background: rgb(255 255 255 / .08); overflow: hidden; }
.track span { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold)); transition: transform .7s var(--ease); border-radius: 6px; }
.dots { display: flex; justify-content: space-between; margin-top: 10px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .12); transition: background .4s, transform .4s var(--spring); }
.dots i.done { background: var(--accent); }
.dots i.cur { background: var(--gold); transform: scale(1.4); box-shadow: 0 0 12px rgb(var(--gold-rgb) / .8); }
.sec-title { margin: 0 0 4px; font-size: 21px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ''; width: 6px; height: 22px; border-radius: 4px; background: linear-gradient(var(--primary), var(--accent)); }
.sec-desc { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.qs { display: grid; gap: 14px; }
.step-anim { animation: stepIn .55s var(--ease); }
.step-anim.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
.q { position: relative; padding: 20px clamp(16px, 3vw, 24px); border-radius: calc(var(--radius) - 6px); background: rgb(255 255 255 / .03); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, background .3s; }
.q:focus-within { border-color: rgb(var(--primary-rgb) / .6); box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / .12); background: rgb(255 255 255 / .045); }
.q.err { border-color: rgb(var(--accent-rgb) / .8); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .12); animation: shake .45s; }
.q.hidden { display: none; }
.q.appear { animation: appear .45s var(--ease); }
@keyframes appear { from { opacity: 0; transform: translateY(-8px); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.q-title { display: block; font-weight: 500; font-size: 16.5px; margin-bottom: 2px; }
.q-title .req { color: var(--accent); margin-left: 4px; }
.q-title .key { display: inline-block; margin-left: 8px; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgb(var(--gold-rgb) / .14); color: var(--gold); vertical-align: 2px; font-weight: 400; }
.q-desc { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.q-body { margin-top: 10px; }
.q-error { display: flex; align-items: center; gap: 6px; color: #fda4af; font-size: 13.5px; margin-top: 8px; }
.q-error:empty { display: none; }
.inp { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .12); background: rgb(0 0 0 / .25); color: var(--text); outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s; font-size: 16px; }
.inp::placeholder { color: rgb(var(--text-rgb) / .35); }
.inp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / .25); background: rgb(0 0 0 / .35); }
textarea.inp { min-height: 130px; resize: vertical; line-height: 1.6; }
select.inp { appearance: none; cursor: pointer; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d8c8ff' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
select.inp option { background: #1a0f2e; }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.opts { display: grid; gap: 9px; }
.opts.cols { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .1); background: rgb(0 0 0 / .18);
  cursor: pointer; transition: border-color .2s, background .2s, transform .15s; user-select: none; }
.opt:hover { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .2); }
.opt:active { transform: scale(.985); }
.opt:has(input:checked) { border-color: var(--primary); background: rgb(var(--primary-rgb) / .16); }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / .35); }
.mark { flex: none; width: 21px; height: 21px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); display: grid; place-items: center; transition: border-color .2s, background .2s; }
.mark::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .3s var(--spring); }
.opt input:checked + .mark { border-color: var(--primary); background: var(--primary); }
.opt input:checked + .mark::after { transform: scale(1); }
.mark.sq { border-radius: 6px; }
.mark.sq::after { width: 11px; height: 6px; border-radius: 0; background: none; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); margin-top: -3px; }
.opt input:checked + .mark.sq::after { transform: rotate(-45deg) scale(1); }
.opt .other { flex: 1; padding: 6px 10px; font-size: 15px; }
.scale { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scale-l { font-size: 13px; color: var(--muted); }
.scale-btns { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: center; }
.scale-btn { position: relative; }
.scale-btn span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .15); background: rgb(0 0 0 / .2); cursor: pointer; font-weight: 500; transition: all .25s var(--spring); }
.scale-btn span:hover { border-color: var(--primary); transform: translateY(-2px); }
.scale-btn input:checked + span { background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; color: #fff; transform: scale(1.12); box-shadow: 0 6px 20px rgb(var(--primary-rgb) / .5); }
.scale-btn input:focus-visible + span { box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / .4); }
.rating { display: flex; gap: 6px; flex-wrap: wrap; }
.rating label { cursor: pointer; }
.rating svg { width: 38px; height: 38px; fill: rgb(255 255 255 / .12); transition: fill .2s, transform .25s var(--spring); }
.rating label.on svg, .rating label.hov svg { fill: #ff8fab; filter: drop-shadow(0 0 8px rgb(255 143 171 / .6)); }
.rating label:hover svg { transform: scale(1.18) rotate(12deg); }
.info-box { padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, rgb(var(--gold-rgb) / .08), rgb(var(--primary-rgb) / .08)); border: 1px dashed rgb(var(--gold-rgb) / .35); }
.info-box h3 { margin: 0 0 8px; font-size: 17px; color: var(--gold); font-weight: 500; }
.q-img img { border-radius: 14px; width: 100%; height: auto; }
.q-img figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.yt { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000 center/cover; cursor: pointer; }
.yt::after { content: ''; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgb(255 0 0 / .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat; transition: transform .2s; }
.yt:hover::after { transform: scale(1.1); }
.yt.playing::after { display: none; }
.q-plain, .q-plain:focus-within { padding: 0; background: none; border: 0; box-shadow: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.drop { display: grid; place-items: center; gap: 6px; padding: 24px; border-radius: 14px; border: 1.5px dashed rgb(255 255 255 / .2); text-align: center; color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--primary); background: rgb(var(--primary-rgb) / .08); }
.drop svg { width: 30px; height: 30px; color: var(--gold); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.thumb { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: rgb(0 0 0 / .3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgb(0 0 0 / .7); color: #fff; cursor: pointer; line-height: 1; }
.thumb .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--gold); transition: width .2s; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.form-nav .grow { flex: 1; }
.draft-note { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.draft-note i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.review { display: grid; gap: 18px; }
.review-sec h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-size: 16px; color: var(--gold); font-weight: 500; }
.review-sec button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.review-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.review-row:last-child { border-bottom: 0; }
.review-row span:first-child { color: var(--muted); }
.review-row span:last-child { white-space: pre-wrap; word-break: break-word; }
.ts-box { display: flex; justify-content: center; margin-top: 18px; min-height: 0; }
.preview-banner { text-align: center; font-size: 13px; padding: 8px 14px; border-radius: 12px; margin-bottom: 14px; background: rgb(var(--gold-rgb) / .12); color: var(--gold); border: 1px dashed rgb(var(--gold-rgb) / .4); }

/* ───────── state / success / result ───────── */
.center-card { padding: clamp(28px, 5vw, 52px); text-align: center; }
.center-card h1, .center-card h2 { margin: 8px 0; font-size: clamp(24px, 3.6vw, 34px); font-weight: 600; }
.center-card .md { color: var(--muted); max-width: 520px; margin: 0 auto; }
.center-card .cta { margin-top: 26px; }
.big-icon { width: 96px; height: 96px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; font-size: 42px;
  background: radial-gradient(circle at 30% 30%, rgb(var(--primary-rgb) / .5), rgb(var(--accent-rgb) / .25)); box-shadow: 0 0 0 10px rgb(var(--primary-rgb) / .08), 0 20px 50px rgb(var(--primary-rgb) / .4); }
.check-svg { width: 110px; height: 110px; margin: 0 auto 8px; display: block; }
.check-svg circle { fill: none; stroke: url(#gradOk); stroke-width: 5; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1s var(--ease) forwards; }
.check-svg path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw .6s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref-chip { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 10px 12px 10px 20px; border-radius: 16px; background: rgb(0 0 0 / .3); border: 1px dashed rgb(var(--gold-rgb) / .5); }
.ref-chip small { color: var(--muted); display: block; font-size: 12px; text-align: left; }
.ref-chip b { font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 20px; letter-spacing: .12em; color: var(--gold); }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgb(255 255 255 / .06); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgb(255 255 255 / .14); }
.icon-btn svg { width: 18px; height: 18px; }
.check-card { padding: clamp(24px, 5vw, 48px); }
.check-head { text-align: center; margin-bottom: 24px; }
.emblem { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; border: 2px solid rgb(var(--gold-rgb) / .6); color: var(--gold);
  background: radial-gradient(circle, rgb(var(--gold-rgb) / .12), transparent 70%); box-shadow: 0 0 40px rgb(var(--gold-rgb) / .2); font-family: 'Shippori Mincho', 'Yu Mincho', serif; }
.check-head h1 { margin: 0; font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; }
.check-head p { margin: 4px 0 0; color: var(--muted); }
.check-form { display: grid; gap: 14px; }
.check-form label b { display: block; font-weight: 500; margin-bottom: 6px; }
.result { margin-top: 26px; }
.searching { display: grid; place-items: center; gap: 14px; padding: 30px 0; color: var(--muted); }
.seal-spin { width: 70px; height: 70px; border-radius: 50%; border: 3px solid rgb(var(--gold-rgb) / .2); border-top-color: var(--gold); border-right-color: var(--accent); animation: rot .9s linear infinite; position: relative; }
.seal-spin::after { content: '⛩'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; animation: rot .9s linear infinite reverse; }
.res-card { position: relative; padding: 30px clamp(18px, 4vw, 36px); border-radius: calc(var(--radius) - 4px); text-align: center; overflow: hidden;
  background: linear-gradient(160deg, rgb(var(--c-rgb, 167 139 250) / .16), rgb(0 0 0 / .25)); border: 1px solid rgb(var(--c-rgb, 167 139 250) / .45); animation: appear .5s var(--ease); }
.res-card::before { content: ''; position: absolute; inset: -40% -10% auto; height: 80%; background: radial-gradient(closest-side, rgb(var(--c-rgb, 167 139 250) / .3), transparent); pointer-events: none; }
.stamp { position: relative; width: 150px; height: 150px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; color: var(--c, #a78bfa);
  border: 5px double currentColor; font-family: 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif; font-weight: 700; line-height: 1;
  transform: rotate(-14deg) scale(2.4); opacity: 0; animation: stamp .55s .15s cubic-bezier(.3, 1.4, .5, 1) forwards; text-shadow: 0 0 20px currentColor; }
.stamp::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .6; }
.stamp span { font-size: var(--fs, 44px); writing-mode: horizontal-tb; letter-spacing: .04em; }
@keyframes stamp { 60% { opacity: 1; transform: rotate(-14deg) scale(.92); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }
.res-label { display: inline-block; padding: 5px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: #160b25; background: var(--c, #a78bfa); }
.res-card h2 { margin: 12px 0 6px; font-size: clamp(20px, 3vw, 26px); font-weight: 600; }
.res-card .md { color: rgb(var(--text-rgb) / .8); }
.note-box { margin: 18px auto 0; max-width: 520px; text-align: left; padding: 14px 18px; border-radius: 14px; background: rgb(0 0 0 / .28); border-left: 3px solid var(--c, var(--gold)); }
.note-box small { display: block; color: var(--gold); font-size: 12.5px; margin-bottom: 4px; }
.meta-line { margin-top: 14px; font-size: 13px; color: var(--muted); }
.res-card .cta { margin-top: 20px; }

/* ───────── search box ───────── */
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--gold); pointer-events: none; }
.search-inp { padding-left: 48px; height: 56px; font-size: 17px; border-radius: 16px; }

/* ───────── reveal mini-games ───────── */
.twist { display: inline-block; margin: -6px auto 12px; padding: 8px 20px; border-radius: 999px; font-weight: 600; font-size: clamp(16px, 2.6vw, 21px); color: #2a1405;
  background: linear-gradient(100deg, #ffe8c7, var(--gold), #ffd1e3, var(--gold)); background-size: 250% 100%; animation: shimmer 3s linear 3, bounceIn .7s var(--spring); box-shadow: 0 10px 30px -8px rgb(var(--gold-rgb) / .8); }
@keyframes bounceIn { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } }
.twist-in { animation: twistIn .8s var(--spring); }
@keyframes twistIn { from { transform: scale(.85) rotate(-2deg); opacity: 0; } }
.wait-what { margin-top: 14px; font-size: 18px; color: var(--gold); animation: bounceIn .5s var(--spring); }
.glitch { animation: glitch .35s steps(2) infinite; }
.glitch .stamp { animation: stampFall 1.3s cubic-bezier(.5, 0, .75, 0) forwards !important; }
@keyframes glitch { 0% { transform: translate(0); filter: none; } 25% { transform: translate(-3px, 1px); filter: hue-rotate(40deg); clip-path: inset(10% 0 30% 0); } 50% { transform: translate(3px, -2px); clip-path: inset(40% 0 5% 0); } 75% { transform: translate(-2px, 2px); filter: hue-rotate(-30deg); clip-path: none; } }
@keyframes stampFall { 0% { opacity: 1; transform: rotate(-14deg); } 30% { transform: rotate(-30deg) translateY(-10px); } 100% { opacity: 0; transform: rotate(40deg) translateY(260px); } }
.err-card { --c: #94a3b8; --c-rgb: 148 163 184; background: repeating-linear-gradient(0deg, rgb(255 255 255 / .03) 0 2px, transparent 2px 4px), linear-gradient(160deg, rgb(251 113 133 / .12), rgb(0 0 0 / .4)); border-color: rgb(251 113 133 / .45); }
.err-code { font-family: ui-monospace, monospace; font-size: clamp(56px, 12vw, 96px); font-weight: 800; line-height: 1; color: #fb7185; text-shadow: 3px 0 #60a5fa, -3px 0 #f472b6; animation: errFlick 2.2s infinite; }
@keyframes errFlick { 0%, 92%, 100% { opacity: 1; transform: none; } 93% { opacity: .4; transform: skewX(12deg); } 95% { opacity: 1; transform: skewX(-8deg) translateX(4px); } }
.scratch-wrap { position: relative; border-radius: calc(var(--radius) - 4px); }
.scratch-cv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; cursor: grab; touch-action: none; box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / .6), 0 20px 50px rgb(0 0 0 / .4); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.scratch-cv.done { opacity: 0; transform: scale(1.04); pointer-events: none; }
.scratch-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgb(0 0 0 / .55); font-size: 14px; pointer-events: none; animation: hintBob 1.6s ease-in-out infinite; transition: opacity .3s; }
.scratch-hint.hide { opacity: 0; }
@keyframes hintBob { 50% { transform: translate(-50%, -6px); } }
.omikuji { display: grid; justify-items: center; gap: 14px; padding: 20px 0 6px; }
.omi-hint { margin: 0; color: var(--muted); animation: hintBob2 1.8s ease-in-out infinite; }
@keyframes hintBob2 { 50% { transform: translateY(-4px); } }
.omi-box { position: relative; width: 130px; height: 190px; border: 0; cursor: pointer; border-radius: 16px 16px 12px 12px; display: grid; place-items: center; overflow: visible;
  background: linear-gradient(90deg, #7f1d1d, #c2213a 30%, #e04558 50%, #c2213a 70%, #7f1d1d); box-shadow: inset 0 0 0 4px rgb(245 195 139 / .7), 0 20px 40px rgb(0 0 0 / .5); transition: transform .2s; }
.omi-box:hover { transform: translateY(-4px) rotate(-2deg); }
.omi-box span { writing-mode: vertical-rl; font-family: 'Shippori Mincho', 'Yu Mincho', serif; font-size: 28px; font-weight: 700; color: #ffe8c7; letter-spacing: .1em; text-shadow: 0 2px 0 #5b0f1a; }
.omi-box::before { content: ''; position: absolute; top: -10px; left: 50%; width: 24px; height: 14px; margin-left: -12px; border-radius: 50%; background: #2a0b12; box-shadow: inset 0 0 0 3px rgb(245 195 139 / .6); }
.omi-stick { position: absolute; top: -4px; left: 50%; width: 8px; height: 90px; margin-left: -4px; border-radius: 3px; background: linear-gradient(#fff4dc, #e9cfa3); transform: translateY(0) scaleY(.1); transform-origin: top; opacity: 0; z-index: -1; }
.omi-box.shake { animation: omiShake .25s ease-in-out infinite; }
.omi-box.drawn .omi-stick { opacity: 1; animation: stickUp .7s var(--spring) forwards; }
@keyframes omiShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg) translateY(-6px); } 75% { transform: rotate(14deg) translateY(-6px); } }
@keyframes stickUp { from { transform: translateY(0) scaleY(.1); } to { transform: translateY(-80px) scaleY(1); } }
.unroll { transform-origin: top; animation: unroll .8s var(--ease); }
@keyframes unroll { from { transform: scaleY(.05); opacity: .4; } }
.tcards { display: flex; gap: clamp(10px, 3vw, 22px); justify-content: center; perspective: 1000px; }
.tcard { width: clamp(88px, 22vw, 130px); aspect-ratio: 2/3; border: 0; padding: 0; background: none; cursor: pointer; animation: dealIn .6s var(--spring) both; animation-delay: var(--d); }
@keyframes dealIn { from { opacity: 0; transform: translateY(40px) rotate(-8deg); } }
.tc-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.tcard:hover .tc-in { transform: translateY(-10px) rotate(-2deg); }
.tcard.flip .tc-in { transform: rotateY(180deg); }
.tcard.other { opacity: .55; }
.tcard.chosen .tc-in { transform: rotateY(180deg) scale(1.08); }
.tc-face { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tc-back { background: radial-gradient(circle at 50% 40%, rgb(var(--accent-rgb) / .5), transparent 60%), linear-gradient(160deg, #3b1a6e, #1b0b33); box-shadow: inset 0 0 0 3px rgb(var(--gold-rgb) / .7), inset 0 0 0 8px rgb(0 0 0 / .2), 0 14px 30px rgb(0 0 0 / .45); }
.tc-back b { font-size: 40px; color: var(--gold); text-shadow: 0 0 20px rgb(var(--gold-rgb) / .6); }
.tc-front { transform: rotateY(180deg); background: linear-gradient(160deg, #fff8ef, #f3e6ff); color: #2a1440; box-shadow: inset 0 0 0 3px rgb(var(--c-rgb, 245 195 139) / .9), 0 14px 30px rgb(0 0 0 / .45); }
.tc-front b { font-size: 34px; color: #7c3aed; }
.tc-front .tc-stamp { font-family: 'Shippori Mincho', 'Yu Mincho', serif; color: var(--c, #7c3aed); font-size: clamp(22px, 5vw, 32px); }
.tc-front small { font-size: 13px; font-weight: 600; }

/* terminal */
.term { width: min(560px, 100%); min-height: 210px; padding: 18px 20px; border-radius: 14px; background: #05020b; border: 1px solid rgb(52 211 153 / .35);
  font: 500 14px/1.7 ui-monospace, 'Cascadia Code', Consolas, monospace; color: #6ee7b7; text-align: left; box-shadow: 0 0 40px rgb(52 211 153 / .12) inset; white-space: pre-wrap; word-break: break-all; }
.term div:last-child::after { content: '▌'; animation: blink2 .8s steps(1) infinite; }
@keyframes blink2 { 50% { opacity: 0; } }
/* gacha */
.gacha { display: grid; justify-items: center; }
.g-globe { position: relative; width: 170px; height: 170px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / .35), rgb(255 255 255 / .06) 45%, rgb(var(--primary-rgb) / .15)); border: 3px solid rgb(255 255 255 / .35); box-shadow: inset 0 -10px 30px rgb(0 0 0 / .3); }
.g-globe i { position: absolute; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset -4px -6px 0 rgb(0 0 0 / .18), inset 4px 4px 0 rgb(255 255 255 / .35); }
.g-globe.shake i { animation: tumble .5s ease-in-out; }
.g-globe.shake i:nth-child(2n) { animation-direction: reverse; }
@keyframes tumble { 30% { transform: translate(8px, -14px) rotate(60deg); } 70% { transform: translate(-8px, 6px) rotate(-40deg); } }
.g-body { position: relative; width: 190px; height: 120px; margin-top: -14px; border-radius: 16px 16px 22px 22px; background: linear-gradient(160deg, var(--accent), #9f1239); display: flex; align-items: center; justify-content: space-around; box-shadow: inset 0 4px 0 rgb(255 255 255 / .25), 0 18px 40px rgb(0 0 0 / .45); }
.g-knob { width: 58px; height: 58px; border-radius: 50%; border: 4px solid #fff3; background: radial-gradient(circle, #ffe8c7, var(--gold)); color: #7c2d12; font-size: 26px; font-weight: 700; cursor: pointer; transition: transform .45s var(--spring); }
.g-knob:active { filter: brightness(.95); }
.g-slot { width: 64px; height: 56px; border-radius: 10px; background: #2a0812; box-shadow: inset 0 6px 12px rgb(0 0 0 / .6); display: grid; place-items: center; }
.g-cap { position: relative; width: 46px; height: 46px; border: 0; padding: 0; background: none; cursor: pointer; animation: capDrop .7s var(--spring); }
.g-cap i { position: absolute; left: 0; width: 46px; height: 23px; transition: transform .6s var(--ease), opacity .6s; }
.g-cap .top { top: 0; border-radius: 23px 23px 0 0; background: var(--cc); }
.g-cap .bot { bottom: 0; border-radius: 0 0 23px 23px; background: #fff; }
.g-cap:not(.open) { animation: capDrop .7s var(--spring), capWiggle 1.4s 1s ease-in-out infinite; }
.g-cap.open .top { transform: translate(-30px, -40px) rotate(-40deg); opacity: 0; }
.g-cap.open .bot { transform: translate(30px, 30px) rotate(30deg); opacity: 0; }
@keyframes capDrop { from { transform: translateY(-90px); opacity: 0; } }
@keyframes capWiggle { 50% { transform: rotate(8deg) scale(1.06); } }
/* slot */
.slot-m { padding: 14px; border-radius: 20px; background: linear-gradient(160deg, #3b1a6e, #160a2c); box-shadow: inset 0 0 0 3px rgb(var(--gold-rgb) / .6), 0 18px 40px rgb(0 0 0 / .5); }
.reels { display: flex; gap: 10px; }
.reel { width: 78px; height: 96px; border-radius: 12px; background: linear-gradient(#fff8ef, #f3e6ff 50%, #fff8ef); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 8px 14px rgb(0 0 0 / .25), inset 0 -8px 14px rgb(0 0 0 / .25); }
.reel span { font-family: 'Shippori Mincho', 'Yu Mincho', serif; font-size: 48px; font-weight: 700; color: #4c1d95; }
.reel.spin span { filter: blur(1.5px); transform: translateY(4px); }
.reel.hit { animation: hit .4s var(--spring); }
@keyframes hit { 40% { transform: scale(1.12); } }
.slot-m.win { box-shadow: inset 0 0 0 3px var(--gold), 0 0 50px rgb(var(--gold-rgb) / .6); }
/* wheel */
.wheel { position: relative; width: min(280px, 80vw); aspect-ratio: 1; }
.wheel-svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 30px rgb(0 0 0 / .5)); }
.wheel-svg text { font: 600 13px var(--font), sans-serif; fill: #1a0f2e; }
.wheel-pin { position: absolute; top: -6px; left: 50%; z-index: 2; width: 0; height: 0; margin-left: -14px; border: 14px solid transparent; border-top: 26px solid var(--gold); filter: drop-shadow(0 3px 4px rgb(0 0 0 / .5)); }
/* janken */
.jk { display: flex; align-items: center; gap: 22px; }
.jk > div { display: grid; justify-items: center; gap: 6px; }
.jk-fox { font-size: 34px; }
.jk-hand { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; background: rgb(var(--bg-rgb) / .6); border: 2px solid rgb(var(--gold-rgb) / .4); }
.jk-hand.shake { animation: jkShake .33s ease-in-out infinite; }
@keyframes jkShake { 50% { transform: translateY(-14px) rotate(-8deg); } }
.jk-vs { font-family: var(--heading-font), serif; color: var(--gold); font-size: 22px; }
.jk-btn { font-size: 30px; min-width: 76px; }
/* charge */
.ch-btn { position: relative; width: 150px; height: 150px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 40% 35%, rgb(var(--accent-rgb) / .9), rgb(var(--primary-rgb) / .9)); color: #fff; font-size: 20px; font-weight: 600;
  box-shadow: 0 0 calc(20px + var(--s, 0) * 60px) rgb(var(--gold-rgb) / calc(.2 + var(--s, 0) * .6)); transform: scale(calc(1 + var(--s, 0) * .08)); }
.ch-btn > * { grid-area: 1 / 1; }
.ch-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.ch-ring circle { fill: none; stroke-width: 8; }
.ch-ring .bg { stroke: rgb(255 255 255 / .15); }
.ch-ring .fg { stroke: var(--gold); stroke-linecap: round; }
.charging .ch-btn { animation: jitter .09s linear infinite; }
@keyframes jitter { 25% { translate: calc(var(--s, 0) * 4px) calc(var(--s, 0) * -3px); } 75% { translate: calc(var(--s, 0) * -4px) calc(var(--s, 0) * 3px); } }
.boom .ch-btn { animation: boom .5s var(--ease) forwards; }
@keyframes boom { to { transform: scale(1.6); opacity: 0; filter: brightness(2); } }
/* catch petals */
.catch { position: relative; width: min(560px, 100%); height: 250px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, rgb(var(--primary-rgb) / .18), rgb(var(--bg-rgb) / .5)); border: 1px dashed rgb(var(--gold-rgb) / .35); overflow: hidden; }
.catch-p { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 0; border-radius: 50%; background: none; font-size: 40px; cursor: pointer; touch-action: manipulation;
  transition: left .45s var(--ease), top .45s var(--ease); animation: petalBob 1s ease-in-out infinite; filter: drop-shadow(0 0 10px rgb(255 143 171 / .8)); }
@keyframes petalBob { 50% { transform: rotate(18deg) scale(1.1); } }
.catch-n { font-size: 20px; color: var(--gold); }
/* cups */
.cups { position: relative; width: min(380px, 100%); height: 170px; }
.cup, .orb { position: absolute; left: 50%; transition: transform .38s var(--ease); }
.cup { bottom: 20px; width: 90px; height: 100px; margin-left: -45px; border: 0; cursor: pointer; z-index: 2;
  background: linear-gradient(90deg, #7c2d12, #c2410c 40%, #ea580c 55%, #7c2d12); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); border-radius: 6px;
  transform: translate(var(--x, 0), 0); }
.cup::after { content: ''; position: absolute; left: 10%; right: 10%; top: 14px; height: 6px; border-radius: 4px; background: rgb(var(--gold-rgb) / .7); }
.cup.up { transform: translate(var(--x, 0), -70px); }
.cup[disabled] { cursor: default; }
.cups:not(.picked) .cup:not([disabled]):hover { transform: translate(var(--x, 0), -8px); }
.orb { bottom: 24px; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; display: grid; place-items: center; z-index: 1; font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 26px; color: #1a0f2e;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c)); transform: translate(var(--x, 0), 0); }
.orb.glow { box-shadow: 0 0 30px var(--c), 0 0 70px rgb(var(--c-rgb) / .6); }

/* ───────── story / news ───────── */
.story-hero { padding: 120px 0 30px; text-align: center; }
.story-title { font-size: clamp(34px, 6.5vw, 78px); margin-top: 8px; }
.story-banner { margin: 34px auto 0; aspect-ratio: 21/9; max-width: 1000px; background: center/cover no-repeat; }
.story-trailer { margin: 24px auto 0; max-width: 860px; padding: 8px; }
.chapters { position: relative; display: grid; gap: 56px; }
.ch-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgb(255 255 255 / .08); }
.ch-line span { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--gold), var(--accent), var(--primary)); box-shadow: 0 0 12px rgb(var(--gold-rgb) / .6); }
.chapter { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.chapter.flip .ch-media { order: 2; }
.ch-media { display: grid; place-items: center; }
.ch-img { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); background: center/cover no-repeat; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .7), 0 0 0 1px rgb(var(--gold-rgb) / .3); }
.ch-glyph { width: min(220px, 60vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: 'Shippori Mincho', 'Yu Mincho', serif; font-size: clamp(70px, 10vw, 110px); font-weight: 700; color: var(--gold);
  background: radial-gradient(circle, rgb(var(--primary-rgb) / .35), rgb(var(--bg-rgb) / .6) 70%); box-shadow: 0 0 0 2px rgb(var(--gold-rgb) / .4), 0 0 0 14px rgb(var(--gold-rgb) / .06), 0 0 80px rgb(var(--primary-rgb) / .5); text-shadow: 0 0 30px rgb(var(--gold-rgb) / .5); }
.ch-text { padding: 30px 32px; }
.ch-kicker { font-size: 13px; letter-spacing: .24em; color: var(--gold); }
.ch-text h3 { margin: 4px 0 10px; font-size: clamp(21px, 2.6vw, 28px); font-weight: 600; }
.ch-text .md { color: rgb(var(--text-rgb) / .82); }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.role { padding: 26px 22px; text-align: center; transition: transform .4s var(--ease), border-color .3s; }
.role:hover { transform: translateY(-6px); border-color: rgb(var(--gold-rgb) / .5); }
.role h3 { margin: 6px 0 6px; font-size: 19px; font-weight: 600; }
.role p { margin: 0; color: var(--muted); font-size: 14.5px; }
.role-img { width: 100%; aspect-ratio: 16/10; border-radius: calc(var(--radius) - 8px); background: center/cover no-repeat; margin-bottom: 12px; }
.gallery { columns: 3 260px; column-gap: 14px; }
.gal { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: rgb(0 0 0 / .3); break-inside: avoid; }
.gal img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.gal:hover img { transform: scale(1.05); }
.faq { display: grid; gap: 10px; }
.faq-i { padding: 0; }
.faq-i summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 500; position: relative; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gold); transition: transform .3s var(--ease); }
.faq-i[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-i .md { padding: 0 22px 18px; color: var(--muted); animation: appear .35s var(--ease); }
.story-cta h2 { margin-top: 6px; }
.lb { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgb(5 2 12 / .9); animation: fadeIn .25s; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgb(255 255 255 / .08); color: #fff; font-size: 26px; cursor: pointer; }
.lb-btn.l { left: 18px; top: 50%; } .lb-btn.r { right: 18px; top: 50%; } .lb-btn.x { right: 18px; top: 18px; }
@keyframes fadeIn { from { opacity: 0; } }
.muted-sub { color: var(--muted); margin: 6px 0 0; }
.news-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.news-card { display: block; padding: 20px 22px; text-decoration: none; transition: transform .35s var(--ease), border-color .3s; overflow: hidden; }
.news-card:hover { transform: translateY(-5px); border-color: rgb(var(--primary-rgb) / .5); }
.news-card h3 { margin: 8px 0 6px; font-size: 18px; font-weight: 600; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }
.news-thumb { margin: -20px -22px 14px; aspect-ratio: 16/8; background: center/cover no-repeat; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.news-tag { padding: 2px 10px; border-radius: 999px; background: rgb(var(--primary-rgb) / .2); color: #ddd0ff; }
.news-pin { padding: 2px 10px; border-radius: 999px; background: rgb(var(--gold-rgb) / .15); color: var(--gold); }
.news-list { display: grid; gap: 18px; }
.news-item { overflow: hidden; }
.news-item.pinned { border-color: rgb(var(--gold-rgb) / .4); }
.news-item.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgb(var(--gold-rgb) / .6); } }
.news-img { width: 100%; max-height: 380px; object-fit: cover; cursor: zoom-in; }
.news-body { padding: 22px 26px 24px; }
.news-body h3 { margin: 8px 0 10px; font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; }
.news-body .md { color: rgb(var(--text-rgb) / .84); }
@media (max-width: 760px) {
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 20px; }
  .chapter.flip .ch-media { order: 0; }
  .ch-line { display: none; }
  .ch-text { padding: 22px; }
  .nav-brand { display: none; }
  .nav-links { max-width: calc(100vw - 70px); overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 7px 10px; font-size: 13.5px; }
}

/* ───────── footer / toast ───────── */
#footer { position: relative; padding: 36px 16px 44px; text-align: center; color: var(--muted); font-size: 14px; }
#footer .links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
#footer .links a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: rgb(255 255 255 / .04); transition: background .2s, border-color .2s; }
#footer .links a:hover { background: rgb(255 255 255 / .1); border-color: rgb(var(--gold-rgb) / .5); }
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 300; display: grid; gap: 10px; justify-items: center; pointer-events: none; width: min(460px, 92vw); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: rgb(20 12 36 / .95); border: 1px solid var(--line); box-shadow: 0 16px 40px rgb(0 0 0 / .5); font-size: 14.5px; animation: toastIn .45s var(--spring); }
.toast.err { border-color: rgb(var(--accent-rgb) / .6); }
.toast.ok { border-color: rgb(52 211 153 / .5); }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast button { margin-left: 6px; background: none; border: 0; color: var(--gold); cursor: pointer; text-decoration: underline; font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* view transitions */
::view-transition-old(root) { animation: vtOut .28s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .42s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; transform: scale(1.01); } }

/* responsive */
@media (max-width: 640px) {
  .nav { top: 10px; gap: 4px; padding: 5px 6px; width: max-content; max-width: calc(100% - 16px); }
  .nav-brand img { height: 28px; }
  .nav-links a { padding: 7px 11px; font-size: 14px; }
  .moon { width: 70px; height: 70px; right: 8vw; }
  .cd-u { min-width: 40px; }
  .cd-n { font-size: 21px; }
  .panel { padding: 10px 14px; gap: 10px; }
  .review-row { grid-template-columns: 1fr; gap: 2px; }
  .scale-btn span { width: 40px; height: 40px; }
  .form-nav .btn { flex: 1; }
  .hero { padding-top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.lite .bg-aurora i, .lite .stars { animation: none; }
.lite .hero-title { animation: none; }
