/* ===== 더더 기본 토큰 ===== */
:root {
  --text: #f6f1e8;
  --text-soft: rgba(246,241,232,.8);
  --text-faint: rgba(246,241,232,.58);
  --glass: rgba(255,255,255,.075);
  --glass-strong: rgba(255,255,255,.12);
  --glass-line: rgba(255,255,255,.16);
  --danger: #ffb4a4;
  --ok: #a9e0c4;
  --serif: "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", "Pretendard", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --tap: 48px;
}
/* ===== 추석 테마 토큰 (시즌마다 교체) ===== */
:root {
  --stage-top: #26305e;
  --stage-mid: #121a3c;
  --stage-bottom: #070b1a;
  --accent: #f3d39a;
  --on-accent: #1b1f33;
  --accent-soft: rgba(243,211,154,.15);
  --glow: 255,221,160;
  --sheet: rgba(28,34,66,.98);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { min-width: 320px; background: var(--stage-bottom); color: var(--text); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
p, h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== 무대 ===== */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 60% at 72% 6%, var(--stage-top), var(--stage-mid) 48%, var(--stage-bottom)); }
.stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff4dc; animation: tw 3.4s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .15; } }
.moon { position: fixed; z-index: 0; pointer-events: none; }
.moon[hidden] { display: none; }
.moon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.moon::before { content: ""; position: absolute; inset: -45%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--glow),.3), rgba(var(--glow),.07) 55%, transparent); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }
.moon.hero { width: 150px; height: 150px; left: 50%; top: 22px; margin-left: -75px; }
.moon-slot { position: relative; height: 0; }
.moon-slot .moon { position: absolute; }
.moon.corner { width: 76px; height: 76px; right: -38px; top: -40px; left: auto; margin: 0; opacity: .4; }

/* ===== 레이아웃 ===== */
#app { position: relative; z-index: 1; }
.page { width: min(560px, 100%); margin: 0 auto; min-height: 100vh; min-height: 100svh; padding: calc(12px + env(safe-area-inset-top)) 16px calc(120px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 8px; }
.topright { display: flex; gap: 6px; align-items: center; }
.logo { font-weight: 800; letter-spacing: -.04em; font-size: 19px; }
.logo em { font-style: normal; color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--glass); font-size: 14px; color: var(--text-soft); white-space: nowrap; }
.pill.invite { border: 1px solid rgba(var(--glow),.4); color: var(--text); }
.pill.small { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--glass); color: var(--text-soft); font-size: 18px; }
.code { font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.h-display { font-family: var(--serif); font-weight: 800; font-size: 30px; line-height: 1.25; letter-spacing: -.045em; text-shadow: 0 2px 16px rgba(7,11,26,.7); }
.h-page { font-family: var(--serif); font-weight: 800; font-size: 26px; letter-spacing: -.04em; margin-top: 12px; }
.lead { margin-top: 6px; font-size: 15px; color: var(--text-soft); line-height: 1.55; }
.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 22px 2px 8px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.sec small { font-weight: 500; font-size: 12.5px; color: var(--text-faint); }
.note { font-size: 13px; color: var(--text-faint); line-height: 1.55; }
.center { text-align: center; }

/* ===== 버튼 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 700; transition: transform .15s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px rgba(var(--glow),.25); }
.btn-secondary { background: var(--glass-strong); border: 1px solid var(--glass-line); }
.btn-text { min-height: 40px; padding: 0 10px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.btn-danger { color: var(--danger); }
.btn-wide { width: 100%; }
.btn.busy { opacity: .6; pointer-events: none; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(7,11,26,.95) 32%); }
.dock-in { width: min(528px, 100%); margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.dock .btn-primary { flex: 1; }
.dock .status { flex: 1; font-size: 13px; color: var(--text-soft); line-height: 1.35; min-width: 0; }
.dock .status b { display: block; font-size: 15px; color: var(--text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* ===== 표면 ===== */
.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.block { padding: 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.block-head h4 { font-size: 16px; }
.block-head small { display: block; font-size: 12.5px; color: var(--text-faint); font-weight: 500; margin-top: 2px; }
.empty { margin-top: 6px; padding: 26px 18px; text-align: center; border-radius: 20px; border: 1px dashed var(--glass-line); }
.empty .mini-moon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #fffaf0, #f6e3b8 62%, #e3c083); box-shadow: 0 0 40px rgba(var(--glow),.35); }
.empty b { font-family: var(--serif); font-size: 18px; }
.empty p { margin-top: 6px; font-size: 14px; color: var(--text-soft); line-height: 1.55; }
.banner { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,180,164,.12); border: 1px solid rgba(255,180,164,.35); font-size: 14px; line-height: 1.5; display: flex; gap: 10px; align-items: center; }
.banner span { flex: 1; }

/* ===== 추석 말 · 사람 ===== */
.tok { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.09); flex: none; }
.tok svg { width: 25px; height: 25px; }
.tok.big { width: 96px; height: 96px; background: rgba(255,255,255,.1); box-shadow: 0 0 0 6px rgba(var(--glow),.16), 0 0 60px rgba(var(--glow),.45); }
.tok.big svg { width: 74px; height: 74px; }
.tok.sm { width: 24px; height: 24px; }
.tok.sm svg { width: 19px; height: 19px; }
.duo { display: inline-flex; }
.duo .tok + .tok { margin-left: -10px; box-shadow: 0 0 0 2px #1a2146; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.person { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 15px; }
.person.off { opacity: .45; }
.person .tag { font-size: 11px; color: var(--accent); }
.person.me { border-color: rgba(var(--glow),.45); }

/* ===== 메인 ===== */
.home-copy { margin-top: 196px; text-align: center; }
.menu { display: grid; gap: 10px; margin-top: 22px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 16px 18px; text-align: left; width: 100%; }
.row h3, .spot h3 { font-family: var(--serif); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.row p { margin-top: 4px; font-size: 14px; color: var(--text-soft); }
.soon { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--glass-strong); color: var(--text-faint); white-space: nowrap; }
.spot { padding: 16px 18px 14px; text-align: left; width: 100%; touch-action: pan-y; }
.spot-head { display: flex; justify-content: space-between; align-items: baseline; }
.spot-head span { font-size: 13px; color: var(--text-faint); }
.spot-body { display: flex; gap: 14px; align-items: center; margin-top: 14px; transition: opacity .3s, transform .3s; }
.spot-body.out { opacity: 0; transform: translateX(-10px); }
.glyph { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.glyph svg { width: 28px; height: 28px; }
.spot-body b { display: block; font-size: 17px; }
.spot-body small { display: block; margin-top: 3px; font-size: 14px; color: var(--text-soft); }
.spot-body em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--text-faint); border: 1px solid var(--glass-line); border-radius: 999px; padding: 1px 8px; }
.dots { display: flex; gap: 4px; margin-top: 12px; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); transition: width .4s, background .4s; }
.dots i.on { width: 16px; background: var(--accent); }
.join { width: min(528px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(28,34,66,.9); border: 1px dashed rgba(var(--glow),.45); }
.join span { flex: 1; font-size: 15px; color: var(--text-soft); }
.join .btn, .dock .join .btn-primary { flex: none; min-height: 42px; padding: 0 22px; font-size: 15px; }

/* ===== 놀이터 ===== */
.shelf { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.sec-big { font-family: var(--serif, inherit); font-size: 20px; font-weight: 800; color: var(--text); margin-top: 28px; }
.sec-big small { font-family: var(--sans); }
.shelf-wrap { position: relative; }
.shelf-nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .shelf { cursor: grab; }
  .shelf.dragging { cursor: grabbing; scroll-snap-type: none; }
  .shelf.dragging .poster { pointer-events: none; }
  .shelf-nav { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--text); background: rgba(10,12,28,.72); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); cursor: pointer; transition: opacity .2s; }
  .shelf-nav.prev { left: -6px; }
  .shelf-nav.next { right: -6px; }
  .shelf-nav:disabled { opacity: 0; pointer-events: none; }
}
.poster { flex: none; width: 62%; max-width: 250px; scroll-snap-align: start; border-radius: 20px; padding: 12px; display: grid; gap: 8px; text-align: left; border: 1px solid rgba(255,255,255,.08); position: relative; }
.poster .art { height: 96px; border-radius: 14px; display: grid; place-items: center; }
.poster .art svg { height: 60px; }
.poster b { font-size: 16px; }
.poster small { display: block; font-size: 12.5px; opacity: .8; margin-top: 2px; }
.poster .soon { position: absolute; top: 18px; right: 18px; background: rgba(0,0,0,.45); color: #fff; }
.c-garden { background: #e3eddd; color: #34443a; } .c-garden .art { background: #cbdac6; }
.c-omok { background: #2d2520; color: #f6eddd; } .c-omok .art { background: #deb070; }
.c-tank { background: #272e28; color: #ebe6d0; } .c-tank .art { background: #c9d3c3; }
.c-stack { background: #2b2f4a; color: #eef0ff; } .c-stack .art { background: #1d2138; }
a.poster { text-decoration: none; }
/* 도전하기 게임으로 들어가고 나올 때 카드 색이 화면을 채웠다 줄어든다 */
.launch-cover { position: fixed; z-index: 100; border-radius: 20px; pointer-events: none; transition: left .38s var(--ease), top .38s var(--ease), width .38s var(--ease), height .38s var(--ease), border-radius .38s var(--ease), background-color .38s var(--ease), opacity .2s ease .3s; }
.c-sokpuri { background: #dce8f1; color: #1f2a44; } .c-sokpuri .art { background: #fff; border: 2px solid #1f2a44; }
.list { border-top: 1px solid rgba(255,255,255,.09); }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid rgba(255,255,255,.09); width: 100%; text-align: left; font-size: 15px; }
.li .gl { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); flex: none; }
.li .gl svg { width: 22px; height: 22px; }
.li .main { flex: 1; min-width: 0; }
.li .main b { display: block; font-size: 16px; }
.li .main small { display: block; margin-top: 3px; font-size: 13px; color: var(--text-soft); line-height: 1.4; }
.li .side { font-size: 12.5px; color: var(--text-faint); text-align: right; white-space: nowrap; }
.li.off { opacity: .45; }
.photo-banner { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(243,211,154,.1); border: 1px solid rgba(243,211,154,.3); }
.photo-banner .glyph { width: 44px; height: 44px; }

/* ===== 시트 ===== */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4,6,16,.6); animation: fade .25s ease; }
.sheet { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 41; max-height: calc(100svh - 60px); overflow-y: auto; padding: 10px 18px 18px; border-radius: 28px; background: var(--sheet); border: 1px solid var(--glass-line); animation: rise .3s var(--ease); width: min(560px, calc(100% - 16px)); margin: 0 auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.28); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.sheet .note { margin-top: 6px; }
.bigcode { display: flex; gap: 6px; margin-top: 16px; }
.bigcode span { flex: 1; display: grid; place-items: center; height: 58px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 26px; font-weight: 800; color: var(--accent); }
.qr { width: 180px; height: 180px; margin: 16px auto 0; border-radius: 16px; background: #fff; padding: 10px; }
.qr img, .qr canvas, .qr svg { width: 100%; height: 100%; display: block; }
.meta { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.meta span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--glass); color: var(--text-soft); }
.setting { display: flex; align-items: center; gap: 10px; padding: 13px 14px; margin-top: 6px; border-radius: 16px; background: var(--glass); font-size: 15px; }
.setting > span { flex: 1; }
.setting small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-faint); line-height: 1.4; }
.switch { width: 48px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.2); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }

/* ===== 입력 ===== */
.field { margin-top: 14px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--text-soft); margin: 0 2px 7px; }
.field label small { font-weight: 500; color: var(--text-faint); }
.field input, .field textarea { width: 100%; border-radius: 16px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.06); padding: 13px 15px; font-size: 16px; outline: none; resize: none; }
.field textarea { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.45; min-height: 90px; }
.field input:focus, .field textarea:focus { border-color: rgba(var(--glow),.65); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field .codein { text-transform: uppercase; letter-spacing: .3em; font-size: 24px; font-weight: 800; text-align: center; color: var(--accent); }
.err { margin-top: 8px; font-size: 13.5px; color: var(--danger); }
.optrows { display: grid; gap: 7px; }
.optrow { display: grid; grid-template-columns: 18px 1fr 34px; gap: 8px; align-items: center; }
.optrow span { font-size: 12px; font-weight: 800; color: var(--text-faint); text-align: center; }
.optrow input { padding: 12px 14px; font-size: 15px; border-radius: 14px; }
.optrow button { width: 34px; height: 34px; border-radius: 50%; color: var(--text-faint); font-size: 18px; }
.addopt { width: 100%; height: 44px; border-radius: 14px; border: 1px dashed var(--glass-line); color: var(--text-faint); font-size: 14px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 14px; color: var(--text-soft); }
.chip.on { background: var(--accent-soft); border-color: rgba(var(--glow),.6); color: var(--accent); font-weight: 700; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--glass); }
.seg button { flex: 1; min-height: 38px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--text-soft); transition: background .25s, color .25s; }
.seg button.on { background: var(--text); color: #141a33; }
.segs { display: flex; gap: 6px; margin-top: 14px; }
.segs .seg { flex: 1; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; background: var(--glass-strong); font-size: 18px; }
.stepper b { min-width: 46px; text-align: center; font-size: 16px; }

/* ===== 게임 준비 ===== */
.mtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 16px; background: var(--glass); }
.mtabs button { min-height: 42px; border-radius: 13px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.mtabs button.on { background: var(--text); color: #141a33; }
.mbody { margin-top: 6px; }
.method-copy { font-size: 14px; line-height: 1.6; color: var(--text-soft); margin-bottom: 12px; }
.qrow { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 14px 6px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; line-height: 1.5; cursor: pointer; border-radius: 12px; width: 100%; text-align: left; }
.qrow.open { background: var(--glass); border-bottom-color: transparent; }
.qrow .num { font-size: 12px; font-weight: 800; color: var(--text-faint); padding-top: 3px; text-align: center; }
.qrow .src { font-size: 12px; color: var(--text-faint); white-space: nowrap; padding-top: 2px; display: inline-flex; align-items: center; gap: 4px; }
.qrow .src.person-src { color: var(--accent); }
.optcount { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-faint); }
.optlist { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--text-soft); display: grid; gap: 4px; }
.rowacts { display: flex; gap: 6px; padding: 6px 6px 14px 38px; border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.rowacts .btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.writing { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 21; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(28,34,66,.97); border: 1px solid rgba(var(--glow),.4); font-size: 14px; white-space: nowrap; }
.dotpulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.teams { display: grid; gap: 6px; margin-top: 10px; }
.teamrow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 15px; }
.teamrow .tname { width: 34px; font-size: 12px; font-weight: 800; color: var(--accent); }
.teamrow .mem { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; }
.teamrow .mem span { display: inline-flex; align-items: center; gap: 6px; }
.linkrow { display: flex; gap: 8px; margin-top: 12px; }
.linkrow .btn { flex: 1; min-height: 44px; font-size: 14px; }

/* ===== 게임 ===== */
.progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.progress .track { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress .track i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .5s var(--ease); }
.progress span { font-size: 13px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.qcard { margin-top: 16px; padding: 24px 20px 26px; text-align: center; }
.qcard .lbl { font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.qcard .by { display: block; margin-top: 6px; font-size: 13px; color: var(--text-faint); letter-spacing: 0; }
.qcard h2 { margin-top: 12px; font-family: var(--serif); font-weight: 800; font-size: 25px; line-height: 1.4; letter-spacing: -.04em; word-break: keep-all; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--glass); border: 1.5px solid var(--glass-line); text-align: left; font-size: 16px; font-weight: 600; transition: border-color .2s, background .2s, box-shadow .4s; }
.pick .tok { width: 40px; height: 40px; }
.pick .tok svg { width: 31px; height: 31px; }
.pick.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 24px rgba(var(--glow),.22); }
.pick:disabled { opacity: .4; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; border-radius: 18px; background: var(--glass); border: 1.5px solid var(--glass-line); text-align: left; font-size: 17px; font-weight: 600; width: 100%; }
.opt .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255,255,255,.1); flex: none; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 24px rgba(var(--glow),.22); }
.opt.sel .n { background: var(--accent); color: var(--on-accent); }
.opt .cnt { margin-left: auto; font-size: 14px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.opt.win { border-color: var(--accent); }
.opt .bar { position: absolute; }
.waiting-note { margin-top: 14px; text-align: center; font-size: 14px; color: var(--text-soft); }
.hints { display: grid; gap: 8px; margin-top: 14px; }
.hint { padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); animation: rise .4s var(--ease); }
.hint small { display: block; font-size: 13px; color: var(--text-faint); }
.hint b { display: block; margin-top: 4px; font-family: var(--serif); font-size: 19px; }
.hint .n { font-size: 12px; color: var(--accent); font-weight: 800; }
.answered { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; justify-content: center; }
.answered .tok { opacity: .3; transition: opacity .3s; }
.answered .tok.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }

/* 공개 */
.beam { position: fixed; left: 50%; top: -40px; width: 360px; height: 480px; margin-left: -180px; pointer-events: none; z-index: 0;
  background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(var(--glow),0) 6deg, rgba(var(--glow),.24) 20deg, rgba(var(--glow),0) 34deg, transparent 40deg);
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); animation: beamIn 1.2s var(--ease) both; }
@keyframes beamIn { from { opacity: 0; transform: scaleY(.6); } }
.winner { position: relative; margin-top: 30px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.winner .tok.big { animation: popIn .8s cubic-bezier(.3,1.5,.5,1) both .4s; }
.winner p { font-size: 13px; letter-spacing: .12em; color: var(--accent); }
.winner h2 { font-family: var(--serif); font-weight: 800; font-size: 32px; letter-spacing: -.04em; animation: riseIn .7s var(--ease) both .9s; }
.winner small { font-size: 14px; color: var(--text-soft); animation: riseIn .7s var(--ease) both 1.2s; }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } }
.thead { display: grid; gap: 8px; padding: 0 2px 7px; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--text-faint); border-bottom: 1px solid rgba(255,255,255,.09); }
.thead > span:nth-child(n+3) { text-align: right; }
.trow { display: grid; gap: 8px; align-items: center; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; }
.cols4 { grid-template-columns: 26px 1fr 84px 72px; }
.trow .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trow .who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow > span:nth-child(n+3) { text-align: right; }
.rank { text-align: center; font-size: 14px; font-weight: 800; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.rank.gold { color: var(--accent); }
.raw { font-weight: 700; font-variant-numeric: tabular-nums; }
.plus { display: inline-block; min-width: 40px; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 3px 8px; }
.plus.zero { background: var(--glass-strong); color: var(--text-faint); }
.explain { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--glass); font-size: 13.5px; line-height: 1.55; color: var(--text-soft); }
.explain b { color: var(--text); }
.teamres { display: grid; gap: 8px; margin-top: 16px; }
.teamres .glass { padding: 12px 14px; }
.teamres .glass.hit { border-color: rgba(var(--glow),.6); box-shadow: 0 0 24px rgba(var(--glow),.18); }
.teamres .top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.teamres .ans { display: grid; gap: 4px; margin-top: 8px; font-size: 14px; color: var(--text-soft); }
.teamres .ans span { display: flex; align-items: center; gap: 8px; }

/* 로비 점수판 */
.board-title { margin: 18px 2px 0; font-family: var(--serif); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brow { display: grid; grid-template-columns: 24px 1fr 60px 84px; gap: 4px 8px; align-items: center; padding: 5px 0; font-size: 15px; }
.brow .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brow .who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .sub { text-align: right; font-size: 12.5px; color: var(--text-faint); }
.brow .pts { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.brow .bar { grid-column: 2 / 5; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.brow .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .6s var(--ease); }
.brow.lead .who b { color: var(--accent); }
.board-head { grid-template-columns: 24px 1fr 60px 84px; margin-top: 8px; }
.board-note { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-faint); }
.tl { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; }
.tl .n { font-size: 12px; color: var(--text-faint); text-align: center; }
.tl small { display: block; font-size: 12px; color: var(--text-faint); }
.tl .who { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--text-soft); }
.mvp { margin-top: 22px; display: grid; gap: 6px; }
.mvp div { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 14px; background: var(--glass); font-size: 14px; }
.mvp div span:first-child { flex: 1; color: var(--text-soft); }

/* ===== 알림 ===== */
.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 60; transform: translate(-50%, -20px); padding: 11px 16px; border-radius: 999px; background: rgba(246,241,232,.96); color: #1b1f33; font-size: 14px; font-weight: 600; opacity: 0; transition: .35s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.conn { position: fixed; left: 50%; top: calc(62px + env(safe-area-inset-top)); z-index: 55; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(255,180,164,.95); color: #3a1810; font-size: 13px; font-weight: 700; }
.devbar { display: flex; gap: 6px; margin-top: 10px; }
.devbar .pill { border: 1px dashed rgba(127,209,255,.6); color: #9fdcff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
}

/* ===== v2: 참여자 · 직접 고르기 · 질문 만들기 · 평가 ===== */
.people-head { align-items: center; }
.people-head .count { font-size: 14px; color: var(--text-soft); font-weight: 600; }
.people-head .count b { font-size: 24px; color: var(--accent); margin-right: 2px; font-variant-numeric: tabular-nums; }
.field select { width: 100%; min-height: 50px; border-radius: 16px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.06) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f6f1e8' stroke-width='2.2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 16px center; padding: 0 42px 0 15px; font: inherit; font-size: 16px; color: var(--text); appearance: none; -webkit-appearance: none; outline: none; }
.field select:focus { border-color: rgba(var(--glow),.65); }
.field select:disabled { opacity: .5; }
.field select option { background: #1c2244; color: #f6f1e8; }
.qitem-block { margin-top: 14px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); }
.qitem-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: var(--accent); }
.qitem-block .field { margin-top: 8px; }
.acc { border-bottom: 1px solid rgba(255,255,255,.08); }
.acc.sub { border-bottom: 0; margin-left: 12px; border-left: 2px solid rgba(255,255,255,.08); padding-left: 8px; }
.acc-head { display: grid; grid-template-columns: 1fr auto 22px; gap: 8px; align-items: center; width: 100%; min-height: 52px; padding: 8px 4px; text-align: left; }
.acc-head b { font-size: 15.5px; }
.acc-head small { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }
.acc-head > span { font-size: 18px; color: var(--text-soft); text-align: center; }
.acc-body { padding-bottom: 6px; }
.pickq { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15px; line-height: 1.45; }
.pickq .check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--glass-line); display: grid; place-items: center; font-size: 12px; color: transparent; margin-top: 1px; }
.pickq.sel .check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 800; }
.pickq.used { opacity: .5; }
.pickq .qt { flex: 1; }
.pickq .qt small { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--text-faint); }
.badge { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pickbar { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(28,34,66,.97); border: 1px solid rgba(var(--glow),.4); font-size: 14px; }
.pickbar span { flex: 1; }
.pickbar b { color: var(--accent); }
.pickbar .btn { min-height: 42px; flex: none; }
.qfeed { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--text-faint); }
.qfeed span { margin-right: 4px; }
.qfeed button { min-width: 44px; min-height: 38px; padding: 0 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 15px; color: var(--text-soft); }
.qfeed button:last-child { font-size: 13px; }
.qfeed button.on { background: var(--accent-soft); border-color: rgba(var(--glow),.6); }
.btn[aria-disabled="true"] { opacity: .45; }
.optrow input { width: 100%; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.06); padding: 12px 14px; font-size: 15px; outline: none; color: var(--text); }
.optrow input:focus { border-color: rgba(var(--glow),.65); }
.optrow input::placeholder { color: var(--text-faint); }

/* ===== v3 ===== */
.qsrc { display: block; margin-top: 4px; font-size: 12px; color: var(--text-faint); }
.how { font-weight: 700; }
.how-auto { color: #9fd0e8; } .how-pick { color: #b7e0c4; } .how-make { color: var(--accent); }
.mtabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.tabcount { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.additem { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 50px; margin-top: 16px; border-radius: 999px; background: var(--accent-soft); border: 1.5px solid rgba(var(--glow),.55); color: var(--accent); font-size: 15px; font-weight: 800; }
.qitem-block { background: rgba(255,255,255,.06); border-color: rgba(var(--glow),.25); }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 17px; font-weight: 800; }
.mark.o { color: var(--accent); background: var(--accent-soft); }
.mark.x { color: rgba(246,241,232,.55); background: rgba(255,255,255,.06); }
.teamres .mark { width: 36px; height: 36px; font-size: 20px; }
.qfeed { opacity: .8; }

/* ===== v4 ===== */
.qcard-sm { margin-top: 14px; padding: 16px 18px 18px; }
.qcard-sm h2 { font-size: 19px; margin-top: 8px; }
.qcard-sm + .beam + .winner { margin-top: 18px; }
.checkrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; margin-top: 12px; padding: 0 4px; font-size: 15px; font-weight: 600; color: var(--text-soft); text-align: left; }
.checkrow .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--glass-line); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.checkrow.on { color: var(--text); }
.checkrow.on .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ===== 결과 공개 부품 ===== */
.answer-block { position: relative; margin-top: 22px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.answer-label { font-size: 13px; letter-spacing: .14em; color: var(--accent); }
.nameplate { display: inline-flex; align-items: center; gap: 12px; padding: 10px 24px 10px 12px; border-radius: 999px; background: rgba(243,211,154,.12); border: 2px solid rgba(var(--glow),.7); box-shadow: 0 0 40px rgba(var(--glow),.3); animation: popIn .7s cubic-bezier(.3,1.5,.5,1) both .3s; }
.nameplate .tok { width: 46px; height: 46px; }
.nameplate .tok svg { width: 36px; height: 36px; }
.nameplate b { font-family: var(--serif); font-weight: 800; font-size: 28px; letter-spacing: -.03em; }
.nameplate:not(:has(.tok)) { padding: 12px 24px; }
.nameplate:not(:has(.tok)) b { font-size: 22px; }
.answer-sub { font-size: 14px; color: var(--text-soft); animation: riseIn .6s var(--ease) both .7s; }
.myres { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px auto 0; width: fit-content; max-width: 100%; padding: 10px 20px 10px 12px; border-radius: 999px; font-size: 17px; font-weight: 800; animation: riseIn .6s var(--ease) both .9s; }
.myres.o { background: var(--accent-soft); color: var(--accent); border: 1.5px solid rgba(var(--glow),.55); }
.myres.x { background: rgba(255,255,255,.06); color: var(--text-soft); border: 1.5px solid var(--glass-line); }
.picks { display: grid; gap: 2px; }
.pickrow { display: grid; grid-template-columns: 30px minmax(0,1fr) 18px minmax(0,1fr); gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15px; }
.pickrow.me { background: rgba(255,255,255,.05); border-radius: 12px; }
.pickrow .who, .pickrow .choice { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pickrow b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pickrow .arrow { color: var(--text-faint); text-align: center; }
.pickrow .choice { color: var(--text-soft); overflow: hidden; }
.pickrow .choice i { color: var(--text-faint); font-style: normal; }
.pickrow .mark { width: 26px; height: 26px; font-size: 14px; }
.cols3 { grid-template-columns: 26px 1fr 72px; }

/* ===== 도장 · 달 진행 ===== */
.stamp-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; }
.stamp { display: inline-grid; place-items: center; min-width: 88px; height: 88px; padding: 0 14px; border-radius: 999px; white-space: nowrap; font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: .02em; transform: rotate(-10deg); animation: stampIn .5s cubic-bezier(.3,1.6,.5,1) both .9s; }
.stamp.o { color: #7fd8b4; border: 4px double #7fd8b4; background: rgba(127,216,180,.1); box-shadow: 0 0 30px rgba(127,216,180,.18); }
.stamp.x { color: rgba(246,241,232,.62); border: 4px double rgba(246,241,232,.45); background: rgba(255,255,255,.04); transform: rotate(8deg); }
.stamp-note { font-size: 14px; color: var(--text-soft); animation: riseIn .5s var(--ease) both 1.2s; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(1.9) rotate(-18deg); } 60% { opacity: 1; } 100% { opacity: 1; } }
.gamebar { display: grid; grid-template-columns: auto 1fr auto; }
.gamebar-mid { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.gamebar-mid small { font-size: 12.5px; font-weight: 700; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.moons { display: flex; gap: 5px; }
.moons i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(var(--glow),.55); transition: background .4s; }
.moons i.full { background: radial-gradient(circle at 38% 34%, #fffaf0, #f6e3b8 62%, #e3c083); border-color: #e3c083; }
.moons i.now { background: rgba(var(--glow),.35); box-shadow: 0 0 10px rgba(var(--glow),.8); animation: pulse 1.6s ease-in-out infinite; }

.desc-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; color: var(--text-soft); word-break: keep-all; }
.desc-lines li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.desc-lines li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.sheet-head { display: flex; align-items: center; gap: 14px; }
.sheet-head h3 { margin: 0; }
.alone { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.18); color: var(--text-soft); font-size: 14px; }

/* ===== 사진 시상식 ===== */
.ph { position: relative; overflow: hidden; border-radius: 14px; background: rgba(255,255,255,.06); aspect-ratio: 4 / 3; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame .ph { aspect-ratio: auto; max-height: 62vh; }
.frame .ph img { object-fit: contain; max-height: 62vh; background: #0b0f22; }
.photo-banner .side { font-size: 12.5px; color: var(--text-faint); white-space: nowrap; }

/* 준비 */
.aw-themes { display: grid; gap: 6px; }
.aw-opt { display: grid; gap: 2px; text-align: left; padding: 11px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
.aw-opt b { font-size: 15.5px; }
.aw-opt small { font-size: 12.5px; color: var(--text-faint); line-height: 1.4; }
.aw-opt.sel { border-color: rgba(var(--glow),.7); background: rgba(243,211,154,.1); box-shadow: 0 0 0 1px rgba(var(--glow),.4) inset; }
.aw-opt.sel b { color: var(--accent); }
.soon-tag { margin-left: 4px; font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--glass-strong); color: var(--text-faint); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ptile { position: relative; }
.ptile .ph { border-radius: 12px; aspect-ratio: 1; }
.ptile-img { display: block; width: 100%; }
.ptile.out .ph { opacity: .35; filter: grayscale(.6); }
.ptile-by { position: absolute; left: 5px; bottom: 5px; pointer-events: none; }
.ptile-by .tok { background: rgba(7,11,26,.7); }
.ptile-tag { position: absolute; left: 5px; top: 5px; padding: 2px 8px; border-radius: 999px; background: rgba(7,11,26,.75); font-size: 11.5px; font-weight: 700; pointer-events: none; }
.ptile-tag.gold { background: #f3d39a; color: var(--on-accent); }
.ptile-del { position: absolute; right: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: rgba(7,11,26,.72); color: #fff; font-size: 17px; line-height: 1; display: grid; place-items: center; }
.ptile.add { display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed rgba(var(--glow),.55); background: rgba(243,211,154,.06); color: var(--accent); cursor: pointer; }
.ptile.add b { font-size: 26px; line-height: 1; font-weight: 400; }
.ptile.add small { font-size: 12.5px; font-weight: 700; }
.ptile.add.busy { pointer-events: none; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(var(--glow),.25); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 주제 제목 */
.aw-theme { text-align: center; margin-top: 16px; }
.aw-theme h2 { font-family: var(--serif); font-weight: 800; font-size: 28px; letter-spacing: -.03em; }
.aw-theme p { font-size: 14px; color: var(--text-soft); margin-top: 6px; word-break: keep-all; }

/* 투표 */
.aw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.aw-cand { position: relative; }
.aw-pick { display: block; width: 100%; border-radius: 14px; transition: transform .15s; }
.aw-pick:active { transform: scale(.97); }
.aw-cand .ph { border-radius: 14px; }
.aw-cand.sel .ph { outline: 3px solid #f3d39a; outline-offset: 2px; }
.aw-check { position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: rgba(7,11,26,.55); border: 1.5px solid rgba(255,255,255,.5); color: transparent; }
.aw-cand.sel .aw-check { background: #f3d39a; border-color: #f3d39a; color: var(--on-accent); }
.aw-zoom { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(7,11,26,.6); color: #fff; font-size: 15px; display: grid; place-items: center; }
.waiting { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--text-soft); word-break: keep-all; }

/* 두구두구 */
.drum { display: grid; place-items: center; align-content: center; gap: 14px; height: 250px; margin-top: 18px; }
.drum b { font-family: var(--serif); font-size: 22px; color: var(--accent); letter-spacing: .08em; animation: shake .18s linear infinite; }
.drum .dots { display: flex; gap: 8px; }
.drum .dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: hop .5s ease-in-out infinite; }
.drum .dots i:nth-child(2) { animation-delay: .1s; } .drum .dots i:nth-child(3) { animation-delay: .2s; }
@keyframes shake { 25% { transform: translateX(-1.5px) rotate(-1deg); } 75% { transform: translateX(1.5px) rotate(1deg); } }
@keyframes hop { 50% { transform: translateY(-8px); opacity: .5; } }

/* 수상작 */
.winners { position: relative; display: grid; gap: 12px; margin-top: 18px; }
.winners.two { grid-template-columns: 1fr 1fr; }
.frame { position: relative; display: block; width: 100%; padding: 8px; border-radius: 20px; background: linear-gradient(145deg, #f6e3b8, #b98d4a 45%, #f3d39a 70%, #8a6532); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 18px 60px rgba(var(--glow),.35); animation: frameIn .9s cubic-bezier(.2,1.3,.4,1) both; cursor: zoom-in; }
.frame .ph { border-radius: 13px; }
.frame::after { content: ""; position: absolute; inset: 8px; border-radius: 13px; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255,250,235,.55) 48%, transparent 62%); background-size: 250% 100%; background-position: 130% 0; animation: sweep 1.3s ease-out .8s both; }
.winners.two .frame { padding: 6px; border-radius: 16px; }
.winners.two .frame .ph, .winners.two .frame .ph img { aspect-ratio: 3 / 4; object-fit: cover; max-height: none; }
.winners.two .frame:nth-child(2) { animation-delay: .25s; }
@keyframes frameIn { from { opacity: 0; transform: scale(.82) translateY(16px); filter: blur(6px); } }
@keyframes sweep { to { background-position: -60% 0; } }
.savechip { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px 6px 9px; border-radius: 999px; background: rgba(7,11,26,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 13px; font-weight: 700; animation: riseIn .5s var(--ease) both 1.5s; }
.savechip svg { width: 15px; height: 15px; }
.winners.two .savechip { top: 12px; right: 12px; padding: 5px 8px; font-size: 12px; }
.winners.two .savechip span { display: none; }
.tally { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 16px; animation: riseIn .5s var(--ease) both 1.1s; }
.tally b { font-family: var(--serif); font-weight: 800; font-size: 34px; color: #f3d39a; letter-spacing: -.02em; }
.tally small { font-size: 14px; color: var(--text-soft); }
.tally .co { margin-left: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(var(--glow),.5); font-size: 12.5px; font-weight: 700; color: #f3d39a; align-self: center; }
.ticket { position: relative; display: grid; grid-template-columns: 64px 1fr; margin: 14px auto 0; width: min(320px, 92%); border-radius: 14px; background: #f6ecd6; color: #2b2233; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: tearIn .7s cubic-bezier(.2,1.3,.4,1) both 1.3s; -webkit-mask: radial-gradient(circle 9px at 64px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at 64px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 9px at 64px 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at 64px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.ticket .stub { display: grid; place-items: center; border-right: 2px dashed rgba(43,34,51,.25); font-size: 26px; }
.ticket .body { padding: 12px 16px 13px; text-align: left; }
.ticket .v { font-family: var(--serif); font-weight: 800; font-size: 20px; }
.ticket .by { font-size: 12.5px; color: rgba(43,34,51,.6); margin-top: 3px; }
@keyframes tearIn { from { opacity: 0; transform: translateY(14px) rotate(-4deg); } }
.after { animation: riseIn .6s var(--ease) both 1.6s; }
.all { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.all button { position: relative; text-align: left; }
.all .ph { border-radius: 10px; }
.all .cnt { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(7,11,26,.78); font-size: 12.5px; font-weight: 700; }
.all .win .ph { outline: 2px solid #f3d39a; outline-offset: 2px; }
.all .win .cnt { background: #f3d39a; color: var(--on-accent); }
.all .zero { opacity: .55; }
.vrow { display: grid; grid-template-columns: minmax(0,1fr) 72px; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15px; }
.vrow.me { background: rgba(255,255,255,.05); border-radius: 12px; }
.vrow .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vrow .who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow .ph { border-radius: 8px; }
.vrow.hit .ph { outline: 2px solid #f3d39a; outline-offset: 1px; }

/* 크게 보기 */
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(4,6,14,.92); animation: fade .25s both; }
.lightbox img { max-width: min(560px, 100%); max-height: 80vh; border-radius: 12px; object-fit: contain; }
.lightbox p { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 16px; right: 16px; text-align: center; color: var(--text-soft); font-size: 13.5px; }

/* 시상 모음 · 로비 · 끝내기 */
.gallery { display: grid; gap: 16px; margin-top: 16px; }
.gitem { padding: 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); animation: riseIn .5s var(--ease) both; }
.gitem .gh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.gitem .gh b { font-family: var(--serif); font-weight: 800; font-size: 18px; }
.gitem .gh small { font-size: 12.5px; color: var(--text-faint); text-align: right; }
.gitem .gp { display: grid; gap: 8px; }
.gitem .gp.two { grid-template-columns: 1fr 1fr; }
.strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: none; width: 42%; max-width: 200px; text-align: left; }
.strip .ph { border-radius: 12px; outline: 2px solid rgba(243,211,154,.55); outline-offset: 2px; }
.strip small, .fgrid small { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fgrid button { text-align: left; }
.fgrid .ph { border-radius: 12px; }
.keep { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(243,211,154,.08); border: 1px solid rgba(var(--glow),.3); font-size: 13.5px; color: var(--text-soft); line-height: 1.5; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.keep button { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; text-decoration: none; }
.keep svg { width: 15px; height: 15px; }
.aw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 14px; font-weight: 600; color: var(--text-soft); }
.aw-chip.sel { background: rgba(243,211,154,.14); border-color: rgba(var(--glow),.75); color: var(--accent); }
.aw-prompt { margin-top: 10px; font-size: 13.5px; color: var(--text-soft); word-break: keep-all; }
.waiting b { font-weight: 700; color: #f0a98f; }
.close-room { display: grid; justify-items: center; gap: 2px; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.close-room small { font-size: 12.5px; color: var(--text-faint); }
.scrim.still, .sheet.still { animation: none; }
.aw-field { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-line); }
.aw-field-main { flex: 1; display: grid; gap: 3px; min-width: 0; }
.aw-field-main b { font-size: 17px; color: var(--accent); }
.aw-field-main small { font-size: 13px; color: var(--text-soft); line-height: 1.4; word-break: keep-all; }
.aw-change { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(var(--glow),.6); background: rgba(243,211,154,.08); color: var(--accent); font-size: 13.5px; font-weight: 700; }
.aw-list { display: grid; gap: 4px; margin-top: 12px; }
.aw-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 11px 10px; border-radius: 14px; }
.aw-row.sel { background: rgba(243,211,154,.1); }
.aw-row > span:last-child { display: grid; gap: 2px; }
.aw-row b { font-size: 15.5px; }
.aw-row.sel b { color: var(--accent); }
.aw-row small { font-size: 12.5px; color: var(--text-faint); line-height: 1.4; word-break: keep-all; }
.aw-row .radio { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.aw-row.sel .radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.aw-row .pen { flex: none; width: 20px; text-align: center; color: var(--accent); }
.aw-custom { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.08); }
/* ===== 의견 ===== */
.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 28px; padding: 14px 4px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: var(--text-faint); }
.fb-foot button { flex: none; color: var(--accent); font-weight: 700; font-size: 14px; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fb-kinds button { min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: 14px; font-weight: 600; color: var(--text-soft); }
.fb-kinds button.on { background: rgba(243,211,154,.14); border-color: rgba(var(--glow),.75); color: var(--accent); }
.field textarea { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.rate { margin-top: 26px; padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-line); text-align: center; }
.rate > b { font-size: 15px; }
.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.faces button { display: grid; justify-items: center; gap: 4px; padding: 10px 2px; border-radius: 14px; transition: background .2s, transform .15s; }
.faces button span { font-size: 30px; line-height: 1; filter: grayscale(.35); transition: filter .2s, transform .2s; }
.faces button small { font-size: 12px; color: var(--text-faint); }
.faces button.on { background: rgba(243,211,154,.14); }
.faces button.on span { filter: none; transform: scale(1.15); }
.faces button.on small { color: var(--accent); font-weight: 700; }
.rate-more { display: flex; gap: 8px; margin-top: 12px; }
.rate-more input { flex: 1; min-width: 0; }
.rate-more .btn { flex: none; min-height: 44px; padding: 0 16px; font-size: 14px; }
/* ===== AI 심사 ===== */
.judging { margin-top: 18px; display: grid; gap: 16px; justify-items: center; }
.scan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.scan > div { animation: scanPulse 2.4s ease-in-out infinite; }
.scan .ph { border-radius: 8px; }
@keyframes scanPulse { 0%, 100% { opacity: .35; transform: scale(.96); filter: grayscale(.6); } 40% { opacity: 1; transform: scale(1.03); filter: none; box-shadow: 0 0 0 2px #f3d39a; border-radius: 8px; } }
.judging-t { display: grid; gap: 4px; text-align: center; }
.judging-t b { font-family: var(--serif); font-size: 19px; color: var(--accent); }
.judging-t span { font-size: 13.5px; color: var(--text-soft); }
.verdict { position: relative; margin: 18px auto 0; width: min(420px, 100%); padding: 16px 18px 18px; border-radius: 18px; background: rgba(243,211,154,.08); border: 1px solid rgba(var(--glow),.4); animation: riseIn .6s var(--ease) both 1.1s; }
.verdict .lab { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.verdict p { margin-top: 8px; font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.6; word-break: keep-all; }
.gcomment { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--text-soft); word-break: keep-all; }
