/* ggum.css — 꿈랩 랜딩 v4 (비비드 · 플레이풀, 카테고리 4개) */
:root {
  --paper: #F6F1E7; --paper2: #EEE6D6; --card: #FFFDF8;
  --ink: #17140F; --ink2: #3E382F; --mute: #7A7265; --line: rgba(23, 20, 15, .12);
  --tomato: #FF4D2E; --sun: #FFB000; --mint: #14C38E; --sky: #2F86FF; --grape: #7A5CFF; --pink: #FF6FB5;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --pixel: "Press Start 2P", "Courier New", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; word-break: keep-all; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
::selection { background: var(--tomato); color: #fff; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 95; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── 인트로 ── */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--tomato); display: grid; place-items: center; clip-path: circle(150% at 50% 50%); pointer-events: none; }
.intro.go { transition: clip-path .75s cubic-bezier(.7, 0, .2, 1); }
.intro-word { display: flex; font-weight: 900; font-size: clamp(90px, 22vw, 300px); letter-spacing: -.06em; color: var(--paper); line-height: 1; }
.intro-word span { display: inline-block; animation: introPop .55s var(--spring) both; }
.intro-word span:nth-child(2) { animation-delay: .08s; }
@keyframes introPop { from { transform: translateY(40%) scale(.6) rotate(-8deg); opacity: 0; } }

/* ── 커서 ── */
.cur { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; display: none; }
.has-cur .cur { display: block; }
.has-cur, .has-cur a, .has-cur button { cursor: none; }
.cur i { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1.5px solid var(--ink); transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), background .25s, border-color .25s; }
.cur span { position: absolute; transform: translate(-50%, -50%); font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cur.big i { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--ink); }
.cur.big span { opacity: 1; }
.cur.inv i { border-color: var(--paper); }
.cur.inv.big i { background: var(--paper); }
.cur.inv.big span { color: var(--ink); }
.cur::after { content: ""; position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--tomato); left: var(--dx, 0); top: var(--dy, 0); }

/* ── 내비 ── */
.nav { position: fixed; top: 14px; left: 50%; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px;
  background: rgba(255, 253, 248, .76); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(23, 20, 15, .25); transition: transform .5s var(--ease); width: max-content; max-width: calc(100% - 24px); }
.nav.away { transform: translate(-50%, -140%); }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: -.03em; margin-right: 10px; }
.logo small { font-size: 10px; letter-spacing: .14em; color: var(--mute); font-weight: 700; }
.logo-mark { position: relative; width: 22px; height: 22px; }
.logo-mark i { position: absolute; bottom: 0; width: 6px; border-radius: 3px 3px 1px 1px; }
.logo-mark i:nth-child(1) { left: 0; height: 14px; background: var(--mint); }
.logo-mark i:nth-child(2) { left: 8px; height: 22px; background: var(--tomato); }
.logo-mark i:nth-child(3) { left: 16px; height: 17px; background: var(--sky); }
.nav-links { display: flex; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--ink2); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--ink); color: var(--paper); }
.nav-cta { padding: 9px 16px; border-radius: 999px; background: var(--tomato); color: #fff; font-weight: 800; font-size: 14px; margin-left: 4px; }
@media (max-width: 780px) { .nav-links { display: none; } .logo small { display: none; } }

/* ── 공용 ── */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--tomato); margin-bottom: 14px; }
.h2 { font-size: clamp(38px, 6.4vw, 92px); line-height: 1; letter-spacing: -.05em; font-weight: 880; }
.h2 em { font-style: normal; color: var(--tomato); }
.sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink2); margin-top: 16px; max-width: 36em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 26px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 17px; letter-spacing: -.02em; border: 0; cursor: pointer; transition: transform .35s var(--spring), background .2s, color .2s, box-shadow .3s; will-change: transform; }
.btn .arr { display: inline-block; transition: transform .35s var(--spring); }
.btn:hover .arr { transform: translateX(5px); }
.btn-main { background: var(--tomato); color: #fff; box-shadow: 0 14px 30px -12px rgba(255, 77, 46, .7), inset 0 -3px 0 rgba(0, 0, 0, .15); }
.btn-ghost { background: var(--card); border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--tomato); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 0 rgba(255, 77, 46, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 77, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0); } }
.rv { overflow: hidden; }
.rv > span { display: inline-block; transform: translateY(105%) rotate(3deg); transition: transform .9s var(--ease); }
p.rv { transform: translateY(30px); opacity: 0; transition: transform .9s var(--ease), opacity .9s; overflow: visible; }
.rv.in > span, p.rv.in { transform: none; opacity: 1; }

/* ── 히어로 ── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: clamp(110px, 16vh, 150px) var(--gut) clamp(60px, 9vh, 110px); overflow: hidden; }
.hero-in { position: relative; z-index: 2; max-width: 1400px; pointer-events: none; }
.hero-in a, .hero-in .ch { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--paper2); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.live b { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); }
.live.on { background: var(--ink); color: var(--paper); }
.live.on b { background: #3BFF9A; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.h1 { margin: 26px 0 26px; font-size: clamp(66px, 12.4vw, 212px); line-height: .9; letter-spacing: -.065em; font-weight: 900; }
.ln { display: block; position: relative; overflow: hidden; padding: .02em .04em .08em 0; margin-bottom: -.06em; width: max-content; }
.risen .ln { overflow: visible; }
.w { display: inline-block; transform-origin: 50% 100%; }
.w.hl { color: var(--tomato); }
.ch { display: inline-block; transform: translateY(112%) rotate(10deg); transition: transform .8s var(--spring); transition-delay: var(--d, 0s); }
.in .ch { transform: none; }
.risen .ch { transition: transform .45s var(--spring); transition-delay: 0s; }
.risen .ch:hover { transform: translateY(-.12em) rotate(-4deg); }
.squig { position: absolute; left: 0; bottom: -.04em; width: 100%; height: .2em; overflow: visible; }
.squig path { fill: none; stroke: var(--sun); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset 1s .9s var(--ease); }
.in .squig path { stroke-dashoffset: 0; }
.lede { max-width: 30em; font-size: clamp(16px, 1.45vw, 20px); color: var(--ink2); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; width: max-content; max-width: 100%; }
/* v3 숫자 줄: 카테고리별 개수 */
.facts { display: flex; gap: clamp(20px, 3vw, 40px); margin-top: 34px; width: max-content; max-width: 100%; }
.facts a { display: block; transition: transform .4s var(--spring); }
.facts a:hover { transform: translateY(-4px) rotate(-2deg); }
.facts b { display: block; font-size: clamp(30px, 3vw, 44px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.facts span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--mute); font-weight: 700; }
.facts i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fade { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.in .fade { opacity: 1; transform: none; }
.play { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hint { position: absolute; right: var(--gut); top: clamp(96px, 14vh, 130px); z-index: 2; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--mute); opacity: 0; transition: opacity .6s 1.8s; line-height: 1.35; }
.in .hint { opacity: 1; }
.hint svg { width: 42px; height: 28px; transform: rotate(70deg); }
.hint path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* 코인 */
.coin { position: absolute; left: 0; top: 0; pointer-events: auto; touch-action: none; will-change: transform; cursor: grab; user-select: none; -webkit-user-select: none; visibility: hidden; perspective: 600px; }
.coin.on { visibility: visible; }
.coarse .coin { touch-action: pan-y; }
.coin.grab { cursor: grabbing; z-index: 5; }
.coin-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.coin.flip .coin-in { transform: rotateY(180deg); }
/* v3 스티커 모양 (그림자는 면에 줘야 3D 뒤집기가 유지됨) */
.cf { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; text-align: center; box-shadow: 0 12px 16px -6px rgba(23, 20, 15, .3); }
.cf svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cf .ring { transform-origin: 100px 100px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cf.deco { box-shadow: none; filter: drop-shadow(0 12px 12px rgba(23, 20, 15, .25)); }
.front .em { position: relative; font-family: var(--emoji); line-height: 1; }
.back { transform: rotateY(180deg); background: var(--c); color: var(--on); box-shadow: inset 0 0 0 calc(var(--rw, 3px) + 1px) #fff, 0 12px 16px -6px rgba(23, 20, 15, .3); padding: 16%; align-content: center; gap: 2px; }
.back small { position: relative; font-size: 10px; font-weight: 800; letter-spacing: .08em; opacity: .85; }
.back b { position: relative; font-weight: 900; line-height: 1.12; letter-spacing: -.03em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.back i { position: relative; font-style: normal; font-size: 9px; font-weight: 800; opacity: .8; margin-top: 2px; }

/* 뽑기함 (230×360 기준, JS가 크기·위치 조정) */
.gacha { position: absolute; left: 0; top: 0; width: 230px; height: 360px; transform-origin: 0 0; pointer-events: none; z-index: 1; }
.gacha.shake .g-dome, .gacha.shake .g-body { animation: gshake .12s linear infinite; }
.gacha.shake .g-caps i { animation: gjig .18s ease-in-out infinite alternate; }
@keyframes gshake { 25% { transform: translate(-3px, 1px) rotate(-1deg); } 75% { transform: translate(3px, -1px) rotate(1deg); } }
@keyframes gjig { to { transform: translate(var(--jx, 6px), -14px) rotate(40deg); } }
.g-hop { position: absolute; left: 14px; top: 10px; width: 202px; height: 58px; background: linear-gradient(#FF6B4F, #E23A1E); clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%); display: grid; place-items: start center; padding-top: 9px; transition: filter .2s; }
.g-hop span { font-size: 14px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.g-hop::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 70px; height: 12px; margin-left: -35px; border-radius: 50%; background: #3A0F05; }
.gacha.ready .g-hop { filter: brightness(1.25) drop-shadow(0 0 18px #FFD84D); animation: hopPulse .5s ease-in-out infinite alternate; }
@keyframes hopPulse { to { transform: scale(1.06); } }
.g-dome { position: absolute; left: 20px; top: 56px; width: 190px; height: 170px; border-radius: 50% 50% 18px 18px / 60% 60% 18px 18px; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), rgba(220, 240, 255, .35) 40%, rgba(160, 200, 230, .3)); border: 5px solid var(--ink); overflow: hidden; }
.g-caps i { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0 48%, var(--c) 48%); border: 3px solid var(--ink); animation-delay: var(--d); }
.g-caps i:nth-child(odd) { --jx: -6px; }
.g-shine { position: absolute; left: 22px; top: 18px; width: 30px; height: 70px; border-radius: 20px; background: rgba(255, 255, 255, .6); transform: rotate(20deg); }
.g-body { position: absolute; left: 10px; top: 214px; width: 210px; height: 146px; border-radius: 18px 18px 10px 10px; background: var(--tomato); border: 5px solid var(--ink); box-shadow: inset 0 -12px 0 rgba(0, 0, 0, .15); }
.g-label { position: absolute; left: 14px; top: 12px; padding: 3px 12px; border-radius: 999px; background: #FFD84D; border: 3px solid var(--ink); font-weight: 900; font-size: 17px; }
.g-crank { position: absolute; right: 18px; top: 14px; width: 56px; height: 56px; border-radius: 50%; background: #FFF3B0; border: 4px solid var(--ink); }
.g-crank i { position: absolute; left: 50%; top: 50%; width: 46px; height: 12px; margin: -6px 0 0 -23px; border-radius: 6px; background: var(--ink); }
.g-chute { position: absolute; left: 70px; bottom: 14px; width: 74px; height: 50px; border-radius: 14px 14px 6px 6px; background: #2A0E07; border: 4px solid var(--ink); }
.g-capsule { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: 0; transform-origin: 50% 50%; z-index: 4; pointer-events: none; }
.g-capsule i { position: absolute; left: 0; width: 64px; height: 32px; border: 4px solid var(--ink); transition: transform .5s var(--spring); }
.cap-top { top: 0; border-radius: 32px 32px 0 0; background: rgba(255, 255, 255, .92); }
.cap-bot { top: 30px; border-radius: 0 0 32px 32px; background: var(--c, var(--tomato)); }
.g-capsule.open .cap-top { transform: translate(-30px, -60px) rotate(-70deg); }

/* 뽑기 결과 */
.pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(23, 20, 15, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.pop.on { opacity: 1; }
.pop[hidden] { display: none; }
.pop-card { position: relative; z-index: 2; width: min(420px, 100%); padding: 34px 28px 26px; border-radius: 34px; background: var(--card); text-align: center; border: 4px solid var(--ink); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5), 0 0 0 10px var(--c, var(--tomato)); transform: scale(.6) rotate(-6deg); transition: transform .6s var(--spring); }
.pop.on .pop-card { transform: none; }
.pop-em { width: 108px; height: 108px; margin: -90px auto 12px; border-radius: 50%; display: grid; place-items: center; font-family: var(--emoji); font-size: 58px; background: radial-gradient(circle at 34% 28%, #FFF3B0, #FFD84D 35%, #F2A900); border: 4px solid var(--ink); }
.pop-cat { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--c, var(--tomato)); color: #fff; font-size: 13px; font-weight: 800; }
.pop-name { font-size: clamp(26px, 6vw, 34px); font-weight: 900; letter-spacing: -.04em; line-height: 1.15; margin: 12px 0 18px; }
.pop-bar { height: 8px; border-radius: 4px; background: var(--paper2); overflow: hidden; margin-bottom: 18px; }
.pop-bar i { display: block; height: 100%; width: 0; background: var(--c, var(--tomato)); }
.pop-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pop-acts .btn { height: 52px; }
.pop-conf { position: absolute; left: 50%; top: 50%; z-index: 1; pointer-events: none; }
.pop-conf i { position: absolute; font-style: normal; font-family: var(--emoji); font-size: 30px; opacity: 0; }
.pop.on .pop-conf i { animation: conf 1.4s var(--d) cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes conf { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 260px)) rotate(var(--r)) scale(1); } }

/* ── 테이프 마키 ── */
.tapes { position: relative; height: clamp(150px, 15vw, 210px); margin: -40px 0 -20px; z-index: 5; pointer-events: none; }
.tape { position: absolute; left: -5%; width: 110%; top: 50%; padding: 14px 0; overflow: hidden; white-space: nowrap; box-shadow: 0 16px 30px -18px rgba(23, 20, 15, .5); }
.t1 { background: var(--tomato); color: #fff; transform: translateY(-50%) rotate(-4deg); }
.t2 { background: var(--sun); color: var(--ink); transform: translateY(-50%) rotate(3deg); }
.tape-track { display: inline-flex; align-items: center; will-change: transform; }
.tape-track span { display: inline-flex; align-items: center; gap: .6em; padding-right: .6em; font-size: clamp(22px, 3vw, 40px); font-weight: 900; letter-spacing: -.03em; }
.tape-track svg { width: .8em; height: .8em; }

/* ── 섹션 공통 ── */
.sec { padding: clamp(90px, 13vw, 170px) var(--gut) 0; max-width: 1480px; margin: 0 auto; }
.sec-head { margin-bottom: clamp(30px, 4vw, 54px); }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.slot { position: relative; border-radius: 32px; padding: 30px; background: var(--c); color: var(--on, #fff); overflow: hidden; isolation: isolate; box-shadow: 0 30px 50px -30px var(--c); }
.slot::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; background: rgba(255, 255, 255, .18); z-index: -1; animation: morph 9s ease-in-out infinite; }
.slot .g { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .16); font-size: 13px; font-weight: 800; }
.slot .n { font-size: clamp(28px, 3vw, 40px); font-weight: 880; letter-spacing: -.045em; line-height: 1.1; margin: 16px 0 18px; }
.slot .code { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.slot .code span { font-size: 52px; font-weight: 900; letter-spacing: .08em; font-variant-numeric: tabular-nums; line-height: 1; }
.slot .code small { font-size: 13px; font-weight: 700; opacity: .85; }
.slot .note { font-size: 15px; font-weight: 600; margin-bottom: 18px; opacity: .92; }
.slot .btn { background: var(--ink); color: #fff; }
.empty { grid-column: 1 / -1; display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: var(--card); border: 2px dashed var(--line); }
.empty b { display: block; font-size: clamp(20px, 2.2vw, 28px); font-weight: 850; letter-spacing: -.03em; }
.empty span { display: block; color: var(--ink2); margin-top: 6px; }
.blobby { flex: none; position: relative; width: clamp(90px, 10vw, 130px); aspect-ratio: 1; border-radius: 46% 54% 52% 48% / 55% 50% 50% 45%; background: var(--sun); animation: morph 6s ease-in-out infinite, bob 3s ease-in-out infinite; }
.blobby::before, .blobby::after { content: ""; position: absolute; top: 42%; width: 12%; height: 4%; border-radius: 4px; background: var(--ink); }
.blobby::before { left: 30%; } .blobby::after { right: 30%; }
.blobby i { position: absolute; right: -6%; top: -10%; font-style: normal; font-weight: 900; font-size: clamp(16px, 2vw, 22px); color: var(--ink2); animation: zz 2.4s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 58% 42% 40% 60% / 42% 60% 40% 58%; } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -12px); } }

/* ── 카테고리 섹션 ── */
.scn { position: relative; margin-top: clamp(90px, 12vw, 160px); --acc: var(--tomato); }
.scn-pin { position: relative; height: 320vh; }
.scn-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 60px); align-items: center; padding: 90px var(--gut) 40px; overflow: hidden; }
/* 네 카테고리 공통 톤: 같은 종이 배경 · 같은 액자(잉크 테두리 + 단단한 그림자) · 액자 안은 카테고리 색의 옅은 틴트 */
.scn .h2 em { color: var(--acc); }
.scn .kicker { color: var(--acc); }
.jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 12px 18px; border-radius: 999px; font-weight: 800; background: var(--ink); color: var(--paper); transition: transform .4s var(--spring); }
.jump::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.jump:hover { transform: translateY(-3px) rotate(-2deg); }
.stage { position: relative; width: 100%; }
.stage-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.frame { position: absolute; inset: 0; border-radius: 32px; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; background: var(--tint); }
.scn-list { padding: 30px var(--gut) clamp(90px, 10vw, 140px); max-width: 1480px; margin: 0 auto; }
.scn { border-top: 2px dashed var(--line); padding-top: 0; }
.scn.game { --acc: #6A4BF0; --dot: var(--grape); --tint: #EEE9FF; }
.scn.novel { --acc: #1F6FE0; --dot: var(--sky); --tint: #E6F0FF; }
.scn.class { --acc: #D97F00; --dot: var(--sun); --tint: #FFF2CF; }
.scn.lab { --acc: #0B9E6E; --dot: var(--mint); --tint: #DDF6EC; }
@media (max-width: 900px) {
  .scn-pin { height: 360vh; }
  .scn-sticky { grid-template-columns: 1fr; align-content: center; gap: 16px; padding-top: 76px; padding-bottom: 20px; }
  .scn .h2 { font-size: clamp(30px, 8.4vw, 46px); }
  .scn .sub { font-size: 15px; margin-top: 8px; }
  .scn .kicker { margin-bottom: 8px; }
  .scn-copy { order: 2; }
  .jump { margin-top: 14px; padding: 10px 16px; font-size: 14px; }
}

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.ca { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 22px; border-radius: 30px; background: var(--card); border: 1.5px solid var(--line); overflow: hidden; isolation: isolate; color: var(--ink); transition: transform .5s var(--spring), border-color .3s, color .3s; }
.ca.pre { opacity: 0; }
.ca::before { content: ""; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 50%); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform .6s var(--ease); }
.ca:hover, .ca:focus-visible { transform: translateY(-6px) rotate(-.6deg); border-color: var(--c); color: var(--on); }
.ca:hover::before, .ca:focus-visible::before { transform: scale(140); }
.ca-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ca-blob { flex: none; width: 84px; height: 84px; display: grid; place-items: center; background: var(--c); border-radius: 30px; font-family: var(--emoji); font-size: 42px; transition: border-radius .6s var(--spring), transform .6s var(--spring), background .3s; }
.ca:hover .ca-blob { border-radius: 58% 42% 40% 60% / 42% 60% 40% 58%; transform: rotate(-10deg) scale(1.08); background: var(--card); }
.ca-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ca-chips span { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .75; }
.ca h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 880; letter-spacing: -.045em; line-height: 1.15; margin-top: 26px; }
.ca .ca-sub { font-size: 14px; font-weight: 700; opacity: .65; margin-top: 4px; }
.ca .ca-desc { font-size: 15.5px; margin-top: 12px; opacity: .9; }
.ca-go { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; font-weight: 850; font-size: 16px; }
.ca-go span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: transform .45s var(--spring), background .3s; }
.ca:hover .ca-go span { transform: rotate(-45deg) scale(1.1); background: var(--on); color: var(--c); }
.ca-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: 44px 20px; border-radius: 30px; border: 2px dashed currentColor; opacity: .7; text-align: center; }
.ca-empty span { font-family: var(--emoji); font-size: 44px; }
.ca-empty b { font-size: 20px; font-weight: 850; }
.ca-empty small { font-size: 14px; }

/* ── 장면 공통: 모든 무대는 .frame(잉크 테두리 4px · 단단한 그림자 · 카테고리 틴트) 안에서, 잉크 외곽선 + 브랜드 팔레트로 그림 ── */

/* ── 장면: 게임 ── */
.gm-screen { font-family: var(--pixel); background: linear-gradient(#F3EFFF, #DCD2FF 78%); }
.gm-world { position: absolute; inset: 0; transform-origin: 50% 50%; }
.gm-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(23, 20, 15, .035) 0 2px, transparent 2px 4px); }
.gm-stars i { position: absolute; width: 6px; height: 6px; background: #B9A8FF; animation: twinkle 1.6s steps(2) infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
.gm-moon { position: absolute; right: 90px; top: 112px; width: 64px; height: 64px; background: var(--sun); border: 4px solid var(--ink); box-shadow: inset -10px -8px 0 #E09400; }
.gm-hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.gm-cloud { position: absolute; left: 0; width: 120px; height: 28px; background: #fff; box-shadow: 24px -16px 0 #fff, 56px -8px 0 #fff; }
.gm-cloud.c1 { top: 130px; } .gm-cloud.c2 { top: 210px; transform: scale(.7); opacity: .8; }
.gm-ground { position: absolute; left: 0; right: 0; top: 520px; bottom: 0; border-top: 4px solid var(--ink); background-color: #FF7A59; background-image: linear-gradient(var(--mint) 0 16px, var(--ink) 16px 20px, transparent 20px), linear-gradient(90deg, rgba(23, 20, 15, .55) 3px, transparent 3px), linear-gradient(rgba(23, 20, 15, .55) 3px, transparent 3px); background-size: 100% 100%, 40px 40px, 40px 40px; background-position: 0 0, 0 20px, 0 20px; }
.gm-coin, .gm-hero, .gm-star, .gm-deb, .gm-conf i, .gm-q, .gm-brick, .gm-pop { position: absolute; }
.gm-hero, .gm-star { left: 0; top: 0; transform-origin: 50% 100%; }
.gm-hero { transform-origin: 36px 84px; }
.gm-pop { color: var(--ink); font-size: 18px; text-shadow: 2px 2px 0 #fff; opacity: 0; }
.gm-pop.b { color: var(--tomato); font-size: 22px; text-shadow: 3px 3px 0 var(--ink); }
.gm-q { width: 64px; height: 64px; background: var(--sun); border: 4px solid var(--ink); box-shadow: inset -6px -6px 0 #E09400, inset 6px 6px 0 #FFE08A; display: grid; place-items: center; color: #fff; font-size: 30px; text-shadow: 3px 3px 0 var(--ink); }
.gm-q.used { background: #C9A27A; box-shadow: inset -6px -6px 0 #A57E58; color: transparent; text-shadow: none; }
.gm-brick { width: 64px; height: 128px; background-color: #FF7A59; background-image: linear-gradient(rgba(23, 20, 15, .6) 4px, transparent 4px), linear-gradient(90deg, rgba(23, 20, 15, .6) 4px, transparent 4px); background-size: 64px 32px, 32px 32px; background-position: 0 0, 16px 0; border: 4px solid var(--ink); }
.gm-deb { left: 0; top: 0; width: 14px; height: 14px; background: #FF7A59; border: 3px solid var(--ink); opacity: 0; }
.gm-combo { position: absolute; left: 760px; top: 230px; color: var(--pink); font-size: 34px; text-shadow: 4px 4px 0 var(--ink); opacity: 0; white-space: nowrap; }
.gm-lv { position: absolute; left: 490px; top: 250px; font-size: 92px; color: var(--sun); white-space: nowrap; opacity: 0; letter-spacing: -.02em; }
.gm-conf i { left: 0; top: 0; width: 14px; height: 14px; opacity: 0; border: 2px solid var(--ink); }
.gm-hud { position: absolute; left: 24px; right: 24px; top: 22px; display: flex; gap: 30px; align-items: center; color: var(--ink); font-size: 16px; flex-wrap: wrap; }
.gm-hud b { color: var(--grape); font-weight: 400; }
.gm-cc { display: inline-flex; align-items: center; gap: 6px; }
.gm-lvl { margin-left: auto; }
.gm-xp { flex-basis: 100%; height: 14px; border: 3px solid var(--ink); background: #fff; }
.gm-xp i { display: block; height: 100%; width: 0; background: var(--mint); }
.gm-press, .gm-clear { position: absolute; left: 0; right: 0; text-align: center; color: var(--ink); text-shadow: 3px 3px 0 #fff; opacity: 0; }
.gm-press { top: 290px; font-size: 32px; }
.gm-clear { top: 380px; font-family: var(--font); font-weight: 900; font-size: 30px; }
.gm-flash { position: absolute; inset: 0; background: #FFFDF8; opacity: 0; pointer-events: none; }

/* ── 장면: 소설 ── */
.nv-book { position: absolute; left: 100px; top: 44px; width: 800px; height: 530px; transform-origin: 50% 100%; }
.nv-floor { position: absolute; left: 500px; top: 566px; width: 820px; height: 40px; border-radius: 50%; background: rgba(23, 20, 15, .12); transform: translateX(-50%); }
.nv-base, .nv-leaf { position: absolute; left: 400px; top: 0; width: 400px; height: 530px; }
.nv-edge { position: absolute; left: 404px; top: 8px; width: 404px; height: 528px; border-radius: 0 14px 14px 0; border: 4px solid var(--ink); background: repeating-linear-gradient(0deg, #FFFDF8 0 4px, #E9E0CF 4px 5px); z-index: 1; }
.nv-base { z-index: 2; }
.nv-leaf { transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.nv-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.nv-b { transform: rotateY(180deg); }
.nv-sh { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(23, 20, 15, .4), transparent 60%); }
.nv-b .nv-sh { background: linear-gradient(270deg, rgba(23, 20, 15, .4), transparent 60%); }
.nv-pg { position: absolute; inset: 0; background: #FFFDF8; padding: 46px 42px; color: var(--ink); border: 4px solid var(--ink); font-family: var(--font); }
.nv-b .nv-pg { border-radius: 14px 0 0 14px; }
.nv-f .nv-pg { border-radius: 0 14px 14px 0; }
.nv-cover { position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; background: var(--sky); border: 4px solid var(--ink); box-shadow: inset 14px 0 0 rgba(23, 20, 15, .18); display: grid; place-items: center; }
.nv-cv-in { width: 80%; height: 84%; border: 4px solid var(--ink); border-radius: 18px; background: #FFFDF8; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--ink); text-align: center; }
.nv-cv-em { font-family: var(--emoji); font-size: 96px; line-height: 1; }
.nv-cv-in b { font-size: 46px; font-weight: 900; letter-spacing: -.04em; }
.nv-cv-in small { font-size: 13px; letter-spacing: .3em; font-weight: 700; color: var(--mute); }
.nv-cv-in i { font-style: normal; margin-top: 30px; padding: 8px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; }
.nv-ch { display: block; font-size: 14px; font-weight: 800; letter-spacing: .2em; color: #1F6FE0; }
.nv-txt b { display: block; font-size: 38px; font-weight: 900; letter-spacing: -.045em; line-height: 1.15; margin: 18px 0 8px; }
.nv-txt em { display: block; font-style: normal; font-weight: 700; color: var(--mute); font-size: 18px; }
.nv-txt p { margin-top: 20px; font-size: 20px; line-height: 1.7; color: var(--ink2); }
.nv-go { position: absolute; left: 42px; bottom: 50px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 18px; }
.nv-no { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--mute); font-weight: 700; }
.nv-art { display: grid; place-items: center; align-content: center; gap: 18px; }
.nv-art::before { content: ""; position: absolute; left: 50%; top: 47%; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; background: var(--c); opacity: .22; }
.nv-art .nv-ch { position: absolute; top: 40px; left: 0; right: 0; text-align: center; font-size: 20px; letter-spacing: .1em; color: var(--ink); }
.nv-big { position: relative; font-family: var(--emoji); font-size: 170px; line-height: 1; }
.nv-lines { position: relative; display: grid; gap: 10px; width: 60%; }
.nv-lines i { height: 6px; border-radius: 3px; background: rgba(23, 20, 15, .14); }
.nv-lines i:nth-child(2) { width: 80%; } .nv-lines i:nth-child(3) { width: 55%; }
.nv-end, .nv-wait { display: grid; place-items: center; align-content: center; text-align: center; gap: 12px; }
.nv-end b { font-size: 90px; font-weight: 900; letter-spacing: -.05em; }
.nv-end span, .nv-wait small { color: var(--mute); font-weight: 700; font-size: 18px; }
.nv-wait span { font-family: var(--emoji); font-size: 80px; }
.nv-wait b { font-size: 32px; font-weight: 900; line-height: 1.2; }
.nv-words span { position: absolute; left: 0; top: 0; font-weight: 900; font-size: 30px; color: #1F6FE0; opacity: 0; white-space: nowrap; pointer-events: none; }

/* ── 장면: 수업 ── */
.cl-ghost { position: absolute; left: 0; top: 0; width: 1000px; height: 640px; opacity: 0; }
.cl-floor { position: absolute; left: 30px; right: 30px; top: 596px; height: 6px; border-radius: 3px; background: var(--ink); opacity: .85; }
.cl-items span { position: absolute; left: 0; top: 0; font-family: var(--emoji); line-height: 1; will-change: transform; transform-origin: 50% 100%; }
.cl-cap { position: absolute; left: 50%; top: 576px; padding: 10px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 24px; font-weight: 800; white-space: nowrap; opacity: 0; }
.cl-cap b { color: var(--sun); font-size: 28px; }

/* ── 장면: 실험실 ── */
.lb-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-pow { position: absolute; left: 640px; top: 250px; width: 420px; height: 300px; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.lb-pow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lb-pow b { position: relative; font-size: 130px; font-weight: 900; color: var(--ink); letter-spacing: -.05em; text-shadow: 6px 6px 0 #fff; }

/* ── 푸터 ── */
.foot { background: var(--tomato); color: var(--ink); padding: clamp(70px, 9vw, 120px) var(--gut) 26px; overflow: hidden; }
.foot-cta { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.foot .ctas { margin-top: 0; }
.giant { margin: clamp(40px, 6vw, 80px) 0 10px; font-size: clamp(64px, 19.5vw, 340px); line-height: .82; letter-spacing: -.06em; white-space: nowrap; text-align: center; color: var(--paper); user-select: none; }
.giant span { display: inline-block; font-weight: 300; }
.foot-line { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1.5px solid rgba(23, 20, 15, .25); font-size: 14px; font-weight: 700; }
.foot-line a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .hero { padding-bottom: 250px; }
  .btn { height: 52px; padding: 0 22px; font-size: 16px; }
  .ctas { width: auto; }
  .hint { left: var(--gut); right: auto; top: auto; bottom: 14px; }
  .slot .code span { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch, .rv > span, p.rv, .fade { transition: none !important; transform: none !important; opacity: 1 !important; }
  .squig path { transition: none; stroke-dashoffset: 0; }
  .slot::before, .blobby, .blobby i, .gm-stars i { animation: none; }
}
