:root {
  --ink: #0c0a17;
  --ink-2: #16122a;
  --ink-3: #221c3d;
  --line: #2f2850;
  --text: #f3f0ff;
  --muted: #a49fc2;
  --pink: #ff4f8e;
  --pink-soft: #ff8fb6;
  --lime: #c8ff42;
  --violet: #8a6bff;
  --radius: 20px;
  --display: 'Black Han Sans', 'Noto Sans KR', sans-serif;
  --body: 'Noto Sans KR', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .22em; color: var(--lime); margin-bottom: .8rem; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--lime)); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 48px); transition: background .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(12, 10, 23, .72); backdrop-filter: blur(14px); }
.logo { font-family: var(--display); font-size: 1.6rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--pink); }
.nav nav { display: flex; gap: clamp(12px, 2.5vw, 28px); align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--text); }
.nav-cta { background: var(--pink); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.nav-cta:hover { background: var(--pink-soft); }
@media (max-width: 560px) { .nav nav a { display: none; } }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(138, 107, 255, .28), transparent 70%),
    radial-gradient(40% 35% at 80% 80%, rgba(255, 79, 142, .18), transparent 70%); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .25;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent); }
.hero-inner { position: relative; z-index: 2; padding: 0 16px; will-change: transform, opacity; }
.hero-title { font-size: clamp(3.4rem, 13vw, 9.5rem); margin: .2em 0 .35em; }
.hero-title .line { display: block; opacity: 0; transform: translateY(40px); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-title .line:nth-child(2) { animation-delay: .15s; }
.hero-title .accent { color: var(--pink); }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); opacity: 0; animation: rise .9s .35s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-float span { position: absolute; font-size: clamp(2rem, 5vw, 3.4rem); z-index: 1; will-change: transform;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: .75rem; letter-spacing: .3em; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue span { width: 22px; height: 36px; border: 2px solid var(--muted); border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--lime); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* sticky helper */
.sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }

/* STORY */
.story { height: 320vh; position: relative; }
.story .sticky { display: grid; place-items: center; padding: 0 16px; }
.story-heart { position: absolute; font-size: 60vmin; color: var(--pink); opacity: 0; transform: scale(.3);
  filter: blur(2px); will-change: transform, opacity; }
.story-lines { position: relative; font-family: var(--display); font-size: clamp(2.2rem, 7vw, 5.4rem); line-height: 1.25; text-align: center; }
.story-lines span { display: inline-block; opacity: .08; transform: translateY(12px); transition: opacity .25s, transform .25s, color .25s; }
.story-lines span.on { opacity: 1; transform: none; }
.story-lines .hl.on { color: var(--pink); }
.story-lines .big { font-size: 1.3em; }
.story-lines .big.on { color: var(--lime); }

/* GAMES (horizontal) */
.games { position: relative; }
.games .sticky { display: flex; flex-direction: column; justify-content: center; gap: 36px; }
.games-head { padding: 0 clamp(16px, 6vw, 80px); }
.games-head b { color: var(--lime); }
.games-track { display: flex; gap: 22px; padding: 0 clamp(16px, 6vw, 80px); will-change: transform; width: max-content; }
.game-card { position: relative; width: clamp(220px, 26vw, 300px); aspect-ratio: 3 / 4; border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left; overflow: hidden;
  background: var(--g, var(--ink-3)); border: 2px solid transparent;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .3s; }
.game-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55)); }
.game-card > * { position: relative; }
.game-card .gi { font-size: 4.2rem; line-height: 1; }
.game-card .gn { font-family: var(--display); font-size: 1.55rem; line-height: 1.2; }
.game-card .gt { font-size: .8rem; opacity: .8; }
.game-card .check { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .5); font-weight: 900; transition: .2s; }
.game-card:hover { transform: translateY(-8px) rotate(-1deg); }
.game-card[aria-pressed='true'] { border-color: var(--lime); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.game-card[aria-pressed='true'] .check { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* HOW */
.how { padding: 18vh clamp(16px, 6vw, 80px); }
.how-inner { max-width: 880px; margin: 0 auto; }
.how-steps { position: relative; margin-top: 64px; padding-left: 64px; display: grid; gap: 72px; }
.how-line { position: absolute; left: 18px; top: 0; width: 10px; height: 100%; overflow: visible; }
.how-line path { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 600; stroke-dashoffset: 600; }
.step { position: relative; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { content: ''; position: absolute; left: -53px; top: 32px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--pink); }
.step-num { font-family: var(--display); color: var(--lime); font-size: 1.1rem; }
.step h3 { font-size: 1.7rem; margin: 4px 0 8px; }
.step p { color: var(--muted); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8vh clamp(16px, 6vw, 80px); max-width: 1200px; margin: 0 auto; }
.stat { background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 400; color: var(--lime); line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); }
.stat:nth-child(2) b { color: var(--pink); }
.stat:nth-child(3) b { color: var(--violet); }
.top-games { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.top-games::before { content: '지금 인기 게임'; color: var(--muted); font-size: .9rem; margin-right: 6px; }
.top-games span { background: var(--ink-2); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .9rem; }
.top-games span b { color: var(--lime); margin-left: 6px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* FEED */
.feed { padding: 14vh clamp(16px, 6vw, 80px) 8vh; max-width: 1280px; margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); font-size: .9rem; color: var(--muted);
  transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed='true'], .chip[aria-selected='true'] { background: var(--text); color: var(--ink); border-color: var(--text); font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 36px; min-height: 200px; }
.pcard { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s, border-color .3s; }
.pcard:hover { transform: translateY(-4px); border-color: var(--violet); }
.pcard-top { display: flex; align-items: center; gap: 14px; }
.ava { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; background: var(--ink-3); flex-shrink: 0; }
.pcard h3 { font-size: 1.3rem; }
.pcard .meta { color: var(--muted); font-size: .85rem; }
.pcard .intro { font-size: .95rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--ink-3); color: var(--pink-soft); }
.tag.alt { color: var(--lime); }
.like { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700;
  background: rgba(255, 79, 142, .12); color: var(--pink); border: 1px solid rgba(255, 79, 142, .35); transition: .2s; }
.like:hover { background: rgba(255, 79, 142, .22); }
.like[aria-pressed='true'] { background: var(--pink); color: var(--ink); }
.like.pop { animation: pop .45s; }
@keyframes pop { 40% { transform: scale(1.18); } }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

/* SIGNUP */
.signup { padding: 10vh 16px 16vh; }
.signup-card { max-width: 720px; margin: 0 auto; background: var(--ink-2); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.signup-card h2 { margin-bottom: 28px; }
form { display: grid; gap: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label, legend { display: grid; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--muted); }
legend { margin-bottom: 8px; }
legend small { font-weight: 400; }
fieldset { border: 0; min-width: 0; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-size: 1rem; font-weight: 400; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(138, 107, 255, .25); }
textarea { resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1; min-width: 56px; padding: 10px 8px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); color: var(--muted);
  font-size: .92rem; transition: .15s; }
.seg button[aria-pressed='true'] { background: var(--violet); border-color: var(--violet); color: #fff; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-pick button { width: 52px; height: 52px; border-radius: 14px; font-size: 1.6rem; background: var(--ink); border: 2px solid var(--line); transition: .15s; }
.avatar-pick button[aria-checked='true'] { border-color: var(--lime); transform: scale(1.08); background: var(--ink-3); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--text); font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 46px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--lime); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--ink); }
.switch input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.auth-tabs { display: flex; gap: 6px; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; padding: 10px; border-radius: 10px; color: var(--muted); font-weight: 700; }
.auth-tabs button[aria-selected='true'] { background: var(--ink-3); color: var(--text); }
.hint { font-size: .82rem; color: var(--muted); margin-top: -8px; }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.more { position: relative; }
.pcard { position: relative; }
.pcard:has(.more-btn[aria-expanded='true']) { z-index: 3; }
.more-btn { width: 36px; height: 36px; border-radius: 10px; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.more-btn:hover, .more-btn[aria-expanded='true'] { background: var(--ink-3); color: var(--text); }
.more-menu { position: absolute; right: 0; top: 40px; z-index: 5; min-width: 132px; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; display: grid; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.more-menu[hidden] { display: none; }
.more-menu button { text-align: left; padding: 9px 12px; border-radius: 8px; font-size: .9rem; }
.more-menu button:hover { background: var(--ink-2); }
.more-menu .danger { color: var(--pink-soft); }
.report-form { display: grid; gap: 14px; text-align: left; }
.report-form .reasons { display: grid; gap: 6px; }
.report-form .reasons label { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; font-size: .95rem;
  background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.report-form .reasons label:has(input:checked) { border-color: var(--pink); }
.report-form .reasons input { accent-color: var(--pink); }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); border-radius: 16px; padding: 10px 12px; }
.block-row .pcard-top { background: none; padding: 0; }
.btn-sm { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.btn-sm:hover { color: var(--text); border-color: var(--muted); }
.me-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; }
.inline-field .btn-sm { flex-shrink: 0; }
.code-timer { color: var(--lime); font-weight: 700; margin-left: 6px; font-variant-numeric: tabular-nums; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-left: 6px; vertical-align: middle; }
.live-dot.on { background: var(--lime); }
.link-btn { color: var(--muted); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; justify-self: center; }
.link-btn:hover { color: var(--text); }
.verify-banner { display: grid; gap: 6px; justify-items: center; text-align: center; background: rgba(200, 255, 66, .08);
  border: 1px solid rgba(200, 255, 66, .35); border-radius: 16px; padding: 16px; font-size: .9rem; }
.verify-banner b { color: var(--lime); }
.verify-banner span { color: var(--muted); }
a.btn-ghost { text-decoration: none; display: inline-block; }

/* ADMIN */
.admin { max-width: 1180px; margin: 0 auto; padding: 96px clamp(16px, 4vw, 40px) 60px; }
.admin h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0; }
.admin-kpis div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.admin-kpis b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--lime); font-variant-numeric: tabular-nums; }
.admin-kpis span { color: var(--muted); font-size: .85rem; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.admin-bar input { max-width: 280px; }
.admin-list { display: grid; gap: 10px; }
.arow { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.arow-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.arow .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.arow .who .ava { width: 44px; height: 44px; font-size: 1.5rem; border-radius: 12px; }
.arow .who b { display: block; }
.arow .who small { color: var(--muted); word-break: break-all; }
.arow .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.arow .reason { font-size: .92rem; }
.arow .reason b { color: var(--pink-soft); }
.arow .detail { color: var(--muted); font-size: .9rem; white-space: pre-wrap; background: var(--ink); border-radius: 10px; padding: 10px 12px; }
.badge { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--ink-3); color: var(--muted); margin-left: 6px; vertical-align: middle; }
.badge.warn { color: var(--ink); background: var(--pink); }
.badge.ok { color: var(--ink); background: var(--lime); }
.btn-sm.danger { color: var(--pink-soft); border-color: rgba(255, 79, 142, .4); }
.admin-denied { text-align: center; padding: 30vh 16px; color: var(--muted); }
/* location */
.loc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.dist { color: var(--lime); }

/* chat */
.nav-chat { position: relative; width: 40px; height: 40px; border-radius: 50%; font-size: 1.15rem; background: var(--ink-2); border: 1px solid var(--line); }
.nav-chat:hover { border-color: var(--muted); }
.badge-dot { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--pink);
  color: var(--ink); font-size: .75rem; font-weight: 900; display: grid; place-items: center; }
.chat { position: fixed; z-index: 55; right: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 96px));
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: chatIn .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes chatIn { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 560px) { .chat { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; } }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.chat-title { flex: 1; font-weight: 700; display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-title .ava { width: 34px; height: 34px; font-size: 1.2rem; border-radius: 10px; }
.chat-title small { color: var(--muted); font-weight: 400; }
.chat-icon { width: 36px; height: 36px; border-radius: 10px; color: var(--muted); font-size: 1.05rem; }
.chat-icon:hover { background: var(--ink-3); color: var(--text); }
.chat-list { flex: 1; overflow-y: auto; padding: 8px; }
.chat-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-align: left; }
.chat-item:hover { background: var(--ink-3); }
.chat-item .ava { width: 48px; height: 48px; font-size: 1.6rem; border-radius: 14px; }
.chat-item .txt { flex: 1; min-width: 0; }
.chat-item .txt b { display: block; }
.chat-item .txt span { display: block; color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .meta { display: grid; justify-items: end; gap: 4px; font-size: .75rem; color: var(--muted); }
.chat-item .meta .badge-dot { position: static; }
.chat-empty { color: var(--muted); text-align: center; padding: 48px 20px; font-size: .92rem; }
.chat-room { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 78%; display: flex; align-items: flex-end; gap: 6px; }
.msg p { padding: 9px 13px; border-radius: 18px; background: var(--ink-3); white-space: pre-wrap; word-break: break-word; font-size: .95rem; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine p { background: var(--violet); color: #fff; border-bottom-right-radius: 6px; }
.msg:not(.mine) p { border-bottom-left-radius: 6px; }
.msg time { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.msg .read { color: var(--lime); }
.day-sep { align-self: center; font-size: .75rem; color: var(--muted); background: var(--ink); padding: 3px 12px; border-radius: 99px; margin: 8px 0; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; max-height: 120px; border-radius: 18px; padding: 10px 14px; }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; background: var(--pink); color: var(--ink); font-size: 1.05rem; flex-shrink: 0; }
.chat-form button:disabled { opacity: .5; }
.chat-safety { font-size: .75rem; color: var(--muted); text-align: center; padding: 6px 12px 0; }

/* voice call */
.call { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 4, 12, .78); backdrop-filter: blur(10px); }
.call-card { width: min(360px, 100%); background: var(--ink-2); border: 1px solid var(--line); border-radius: 28px; padding: 36px 24px 22px;
  display: grid; justify-items: center; gap: 8px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.call-ava { width: 104px; height: 104px; border-radius: 32px; font-size: 3.4rem; margin-bottom: 8px; }
.call[data-state='incoming'] .call-ava, .call[data-state='outgoing'] .call-ava { animation: ringPulse 1.4s infinite; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 66, .45); } 100% { box-shadow: 0 0 0 26px rgba(200, 255, 66, 0); } }
.call-name { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }
.call[data-state='active'] #callStatus { color: var(--lime); font-variant-numeric: tabular-nums; font-weight: 700; }
.call-actions { display: flex; gap: 28px; justify-content: center; margin: 22px 0 10px; min-height: 64px; }
.call-btn { display: grid; justify-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.call-btn span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: var(--ink-3); color: var(--text); transition: transform .15s; }
.call-btn:hover span { transform: scale(1.06); }
.call-btn.accept span { background: var(--lime); color: var(--ink); }
.call-btn.decline span { background: var(--pink); color: var(--ink); }
.call-btn[aria-pressed='true'] span { background: var(--text); color: var(--ink); }
.call-note { font-size: .78rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .call-ava { animation: none !important; } }

/* profile photo */
.ava { overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick { display: flex; gap: 16px; align-items: center; }
.photo-pick-body { display: grid; gap: 8px; }
.photo-pick-body b { font-size: .88rem; color: var(--muted); }
.photo-preview { width: 88px; height: 88px; border-radius: 24px; font-size: 2rem; flex-shrink: 0; border: 2px dashed var(--line); }
.photo-preview:has(img) { border-style: solid; border-color: var(--lime); }
.me-photo { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.me-photo label { cursor: pointer; }
.photo-pick .me-photo { justify-content: flex-start; }

/* admin 2FA */
.mfa { max-width: 560px; }
.mfa-card h2 { margin-bottom: 10px; }
.mfa-card form { margin-top: 18px; }
.mfa-steps { color: var(--muted); font-size: .92rem; line-height: 1.7; padding-left: 1.2em; margin: 10px 0 16px; }
.mfa-secret { font-family: ui-monospace, Consolas, monospace; font-size: 1.15rem; letter-spacing: .12em; background: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; text-align: center; word-break: break-all; user-select: all; }
.mfa-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 4px; }
.mfa-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; font-family: ui-monospace, Consolas, monospace;
  font-size: 1.05rem; text-align: center; }
.recovery-grid span { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.mfa-warn { color: var(--pink-soft); font-size: .9rem; }
.mfa-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* terms */
.terms { max-width: 760px; margin: 0 auto; padding: 100px clamp(16px, 4vw, 32px) 60px; line-height: 1.8; }
.terms h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 6px; }
.terms h2 { font-size: 1.35rem; margin: 40px 0 12px; scroll-margin-top: 80px; }
.terms ol, .terms ul { padding-left: 1.3em; display: grid; gap: 6px; }
.terms b { color: var(--text); }
.terms section { color: #d6d2ea; }
.terms-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 24px 0; padding: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; }
.terms-toc a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.terms-toc a:hover { color: var(--text); }
.terms-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 12px 0; }
.terms-table th, .terms-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.terms-table th { background: var(--ink-2); color: var(--text); }
@media (max-width: 560px) { .terms-table { display: block; overflow-x: auto; } }
.terms-foot { margin-top: 40px; text-align: center; }
.foot a { color: var(--muted); }
.handle { color: var(--lime); font-weight: 500; font-size: .85em; }
.handle-status { font-size: .82rem; margin-left: 6px; font-weight: 500; }
.handle-status.ok { color: var(--lime); }
.handle-status.bad { color: var(--pink-soft); }
.terms-agree { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-weight: 500; font-size: .92rem; cursor: pointer; }
.terms-agree input { margin-top: 4px; accent-color: var(--pink); width: 18px; height: 18px; }
.terms-agree a { color: var(--lime); }
.me-handle { display: grid; gap: 8px; justify-items: center; }

.guardian-box { display: grid; gap: 10px; background: rgba(200, 255, 66, .06); border: 1px solid rgba(200, 255, 66, .35); border-radius: 16px; padding: 16px; }
.guardian-box b { color: var(--lime); }
.guardian-wait { display: grid; gap: 8px; justify-items: center; text-align: center; background: rgba(200, 255, 66, .06);
  border: 1px solid rgba(200, 255, 66, .35); border-radius: 16px; padding: 16px; font-size: .92rem; }
.guardian-wait b { color: var(--lime); }
.guardian-page { max-width: 640px; margin: 0 auto; padding: 100px clamp(16px, 4vw, 32px) 60px; }
.guardian-page .signup-card { line-height: 1.7; }
.guardian-page ul { padding-left: 1.2em; display: grid; gap: 4px; color: #d6d2ea; margin: 8px 0 16px; }
.guardian-child { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 14px 0; }
.guardian-child dt { color: var(--muted); }
.guardian-child dd { color: var(--text); font-weight: 700; }

.form-error { color: var(--pink-soft); min-height: 1.4em; font-size: .9rem; }
.btn-primary { background: linear-gradient(90deg, var(--pink), var(--violet)); color: var(--ink); font-weight: 900; font-size: 1.1rem; padding: 16px; border-radius: 14px;
  transition: transform .15s, box-shadow .2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.btn-primary:disabled { opacity: .5; transform: none; }
.btn-ghost { padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.me-card { display: grid; gap: 14px; text-align: center; justify-items: center; }
.me-card .ava { width: 88px; height: 88px; font-size: 3rem; border-radius: 24px; }

/* modal */
.modal { margin: auto; border: 1px solid var(--line); border-radius: 28px; background: var(--ink-2); color: var(--text); padding: 36px 28px 24px;
  width: min(440px, calc(100vw - 32px)); text-align: center; }
.modal::backdrop { background: rgba(5, 4, 12, .75); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .45s cubic-bezier(.2, .9, .2, 1.2); }
@keyframes modalIn { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.modal-body { margin-bottom: 20px; }
.modal h2 { font-size: 2.4rem; margin-bottom: 8px; }
.match-pair { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 22px 0; }
.match-pair .ava { width: 76px; height: 76px; font-size: 2.6rem; border-radius: 22px; }
.match-pair .heart { color: var(--pink); font-size: 2rem; animation: beat 1s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }
.match-list { display: grid; gap: 10px; text-align: left; max-height: 50vh; overflow: auto; }
.match-list .pcard-top { background: var(--ink); border-radius: 16px; padding: 12px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); background: var(--text); color: var(--ink); font-weight: 700;
  padding: 12px 22px; border-radius: 999px; z-index: 60; transition: transform .35s cubic-bezier(.2, .8, .2, 1); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* burst hearts */
.burst { position: fixed; pointer-events: none; z-index: 70; font-size: 1.4rem; animation: burst .9s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }

.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 40px 16px; border-top: 1px solid var(--line); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .story { height: auto; }
  .story .sticky { position: static; height: auto; padding: 20vh 16px; }
  .story-lines span { opacity: 1; transform: none; }
  .story-heart { display: none; }
  .games .sticky { position: static; height: auto; padding: 12vh 0; }
  .games-track { width: auto; overflow-x: auto; }
  .reveal { opacity: 1; transform: none; }
  .how-line path { stroke-dashoffset: 0; }
}
