/* 언젠가 창업가들의 밤 — 화이트 테마, 모바일 앱형 */
:root {
  --ink: #050810;          /* Stage Black */
  --indigo: #1E1B4B;       /* Deep Indigo */
  --purple: #7C3AED;       /* Stage Purple — 파운더, 투자 */
  --magenta: #C026D3;      /* Cloud Magenta */
  --cyan: #0891B2;         /* Beam Cyan 의 텍스트용 짙은 톤 — 구매 */
  --cyan-bright: #22D3EE;
  --bg: #F6F5FB;
  --surface: #FFFFFF;
  --line: #E7E5F0;
  --muted: #5B5872;
  --faint: #8C89A3;
  --danger: #DC2626;
  --ok: #059669;
  --purple-soft: #F1EAFE;
  --cyan-soft: #E3F7FB;
  --pink: #DB2777;         /* 투표 */
  --pink-soft: #FCE7F3;

  --r-sm: 12px; --r-md: 18px; --r-lg: 26px;
  --shadow-1: 0 1px 2px rgba(30, 27, 75, .06), 0 2px 8px rgba(30, 27, 75, .05);
  --shadow-2: 0 8px 28px rgba(30, 27, 75, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --t-fast: 160ms; --t: 260ms;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.5; word-break: keep-all;
  min-height: 100dvh; overflow-x: clip; /* 화면 전환 슬라이드가 가로 스크롤을 만들지 않게 */
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-t) + 10px) 20px 10px;
  display: flex; align-items: center; gap: 10px; min-height: 56px;
  background: rgba(246, 245, 251, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.topbar img { width: 32px; height: 32px; border-radius: 50%; }
.topbar .t { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.topbar .back { width: 44px; height: 44px; margin-left: -12px; display: grid; place-items: center; border-radius: 50%; }
.topbar .back:active { background: var(--line); }
.topbar .spacer { flex: 1; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); }
.chip.closed { background: #FEE2E2; color: var(--danger); }
.chip.live { background: #D1FAE5; color: var(--ok); }
.chip.pink { background: var(--pink-soft); color: var(--pink); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 화면 ---------- */
main { padding: 4px 20px calc(var(--tab-h) + var(--safe-b) + 28px); max-width: 560px; margin: 0 auto; outline: none; }
.view-enter { animation: enter var(--t) var(--ease) both; }
.view-back { animation: enterBack var(--t) var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateX(18px); } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-18px); } }
h1 { font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 28px 0 12px; }
.lead { color: var(--muted); margin-top: 8px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 14px; }

/* ---------- 투표권 ---------- */
.hrt path { fill: var(--line); transition: fill var(--t-fast); }
.hrt.on path { fill: var(--pink); }
.heart-card {
  position: relative; overflow: hidden; margin-top: 8px;
  border-radius: var(--r-lg); padding: 20px 22px 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #9D174D 0%, var(--indigo) 52%, var(--ink) 100%);
  box-shadow: var(--shadow-2);
}
.heart-card .label { font-size: 13px; opacity: .72; }
.num { font-variant-numeric: tabular-nums; }
.budget { margin: 6px 0 10px; }
.budget b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.budget span { opacity: .6; font-size: 15px; }
.meter { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-bottom: 12px; }
.meter i { display: block; height: 100%; background: #F472B6; transition: width var(--t) var(--ease); }
.heart-card .sub { font-size: 14px; opacity: .86; }
.eyebrow { color: var(--pink); font-weight: 700; font-size: 14px; margin: 8px 0 6px; }
.steps { list-style: none; display: grid; gap: 14px; margin-top: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--pink-soft); color: var(--pink); }
.steps b { font-size: 15px; }
.steps p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.steps.compact { gap: 10px; }
.guide .steps { margin-top: 0; }
details.guide { margin-top: 28px; }
.guide summary { display: flex; justify-content: space-between; align-items: center; min-height: 28px; font-weight: 700; cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--faint); transition: transform var(--t-fast) var(--ease); }
.guide[open] summary::after { transform: rotate(45deg); }
.guide[open] .steps { margin-top: 14px; }
.join-budget { margin: 14px 0 2px; font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--pink); animation: pop 520ms var(--spring) both; }
.voted { display: inline-flex; align-items: center; gap: 4px; color: var(--pink); font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.icon-btn { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.icon-btn:active { background: var(--line); }
.link { color: var(--purple); font-weight: 600; }
.center { text-align: center; margin-top: 12px; }

/* ---------- 카드 · 리스트 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.pressable { transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.pressable:active { transform: scale(.975); box-shadow: none; }
.products { display: grid; gap: 12px; }
.product { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px; text-decoration: none; align-items: center; }
.product .thumb { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--purple-soft); }
.thumb.ph { display: grid; place-items: center; font-weight: 800; font-size: 26px; color: var(--purple); background: linear-gradient(135deg, var(--purple-soft), var(--cyan-soft)); }
.product .title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.product .tag { font-size: 14px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--faint); }
.product .meta .done { color: var(--ok); font-weight: 700; }
.stagger > * { animation: rise var(--t) var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: 40ms; } .stagger > *:nth-child(3) { animation-delay: 80ms; }
.stagger > *:nth-child(4) { animation-delay: 120ms; } .stagger > *:nth-child(5) { animation-delay: 160ms; }
.stagger > *:nth-child(n+6) { animation-delay: 200ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty svg { margin: 0 auto 12px; color: var(--faint); }

/* ---------- 제품 상세 ---------- */
.hero-img { width: calc(100% + 40px); margin: 0 -20px; aspect-ratio: 16 / 10; object-fit: cover; background: var(--purple-soft); }
.hero-img.ph { display: grid; place-items: center; font-size: 64px; font-weight: 800; color: var(--purple); background: linear-gradient(135deg, var(--purple-soft), var(--cyan-soft)); }
.detail { padding-top: 18px; }
.founder-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 10px; }
.block { padding: 16px; margin-top: 16px; }
.block h3 { font-size: 14px; color: var(--faint); font-weight: 600; margin-bottom: 6px; }
.block p { white-space: pre-line; }
.did { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- 하단 고정 CTA ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px 20px calc(var(--safe-b) + 12px);
  background: linear-gradient(to top, var(--bg) 70%, rgba(246, 245, 251, 0));
  display: flex; gap: 10px; max-width: 560px; margin: 0 auto;
}
.btn {
  min-height: 52px; padding: 0 20px; border-radius: 16px; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; text-decoration: none;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast), background var(--t-fast);
}
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .42; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.vote { background: var(--pink); color: #fff; }
.btn.vote .hrt path { fill: #fff; }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn.block-btn { width: 100%; margin-top: 20px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 폼 ---------- */
.field { margin-top: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .help { font-size: 13px; color: var(--faint); margin-top: 6px; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
.input[aria-invalid='true'] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; margin-top: 6px; min-height: 1em; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--purple); flex: none; }
.check span { font-size: 14px; color: var(--muted); }
.check b { color: var(--ink); }

/* ---------- 시트 ---------- */
.sheet-scrim { position: fixed; inset: 0; background: rgba(5, 8, 16, .45); z-index: 40; animation: fade var(--t) var(--ease) both; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto;
  background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-2);
  padding: 10px 20px calc(var(--safe-b) + 20px); max-height: 92dvh; overflow-y: auto;
  animation: sheetUp 320ms var(--ease) both; touch-action: pan-y;
}
.sheet.closing { animation: sheetDown 200ms ease-in both; }
.sheet-scrim.closing { animation: fadeOut 200ms ease-in both; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { margin: 0 0 4px; font-size: 21px; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.q { font-weight: 700; margin-top: 22px; }
.q small { display: block; font-weight: 500; color: var(--faint); font-size: 13px; margin-top: 2px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.stepper output { min-width: 150px; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stepper button { width: 52px; height: 52px; border-radius: 50%; font-size: 26px; font-weight: 700; background: var(--pink-soft); color: var(--pink); transition: transform var(--t-fast) var(--spring); }
.stepper button:active { transform: scale(.86); }
.stepper button[disabled], .presets button[disabled] { opacity: .3; cursor: not-allowed; }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.presets button { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; }
.presets button[aria-pressed='true'] { background: var(--pink); border-color: var(--pink); color: #fff; }
.pick-note { text-align: center; color: var(--pink); font-weight: 700; font-size: 14px; min-height: 1.5em; margin-top: 4px; }
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.scores button {
  min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 800; font-size: 17px;
  transition: transform var(--t-fast) var(--spring), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.scores button:active { transform: scale(.9); }
.scores button[aria-checked='true'] { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.04); }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; transition: background var(--t), color var(--t); }
.notice.keep { background: #F3F4F6; color: var(--muted); }
.scores button.hi[aria-checked='true'] { background: var(--pink); border-color: var(--pink); }
.notice.share { background: var(--pink-soft); color: #9D174D; }

/* 결과 */
.result { text-align: center; padding: 24px 0 6px; }
.burst { font-size: 40px; font-weight: 800; color: var(--pink); margin-bottom: 8px; animation: pop 520ms var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(.3) translateY(12px); } }

/* ---------- 탭 바 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--faint); font-size: 11px; font-weight: 600;
  transition: color var(--t-fast);
}
.tabbar a svg { transition: transform var(--t-fast) var(--spring); }
.tabbar a:active svg { transform: scale(.86); }
.tabbar a[aria-current='page'] { color: var(--ink); }
.tabbar a[aria-current='page'] svg { color: var(--purple); }
.tabbar[hidden], .cta-bar[hidden] { display: none; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 600;
  max-width: calc(100% - 40px); box-shadow: var(--shadow-2);
  transition: transform var(--t) var(--spring), opacity var(--t) var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 내 투표 · 파운더 ---------- */
.list { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; }
a.row:active { background: var(--bg); }
.row:first-child { border-top: 0; }
.row .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.row .ic { background: var(--pink-soft); color: var(--pink); }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .grow span { font-size: 13px; color: var(--faint); }
.row .amt { font-weight: 800; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 14px; }
.stat span { font-size: 13px; color: var(--faint); }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.stat small { font-size: 12px; color: var(--faint); }
.contact a { color: var(--purple); font-weight: 600; text-decoration: none; }
.qr-box { padding: 20px; text-align: center; }
.qr-box #qr { display: inline-block; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qr-box #qr img, .qr-box #qr canvas { width: 200px; height: 200px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 관리 ---------- */
body.wide main { max-width: 1100px; }
.board { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.award { padding: 18px; }
.award h3 { font-size: 14px; color: var(--faint); }
.award .win { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.award ol { margin: 10px 0 0 18px; color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { padding: 6px 10px; font-size: 13px; min-height: 36px; }
.seg button[aria-pressed='true'] { background: var(--ink); color: #fff; }
body.stage { background: var(--ink); }
body.stage .topbar, body.stage .tabbar { display: none; }
body.stage main { max-width: none; padding: 0; }
body.stage main:has(#key-form) { max-width: 420px; padding: 48px 20px; background: var(--bg); border-radius: var(--r-lg); margin-top: 10vh; }

/* ---------- 무대 시상 쇼 ---------- */
.show {
  position: fixed; inset: 0; overflow: hidden; color: #fff; cursor: pointer; user-select: none;
  background: radial-gradient(90% 70% at 50% 110%, #3B0764 0%, var(--indigo) 45%, var(--ink) 100%);
  --glow: rgba(192, 38, 211, .55);
}
.beams { position: absolute; inset: -50%; pointer-events: none; transition: opacity 600ms var(--ease);
  background:
    conic-gradient(from 200deg at 30% 100%, transparent 0 8deg, rgba(34, 211, 238, .16) 10deg 16deg, transparent 18deg 360deg),
    conic-gradient(from 140deg at 70% 100%, transparent 0 8deg, rgba(192, 38, 211, .18) 10deg 16deg, transparent 18deg 360deg);
  animation: sway 9s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.show::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 600ms var(--ease);
  background: radial-gradient(60% 50% at 50% 50%, transparent 30%, rgba(0, 0, 0, .85) 100%); }
.show.tense::after { opacity: 1; }
.show.tense .beams { animation-duration: 1.2s; opacity: .6; }
.show.hit::before { content: ''; position: absolute; inset: 0; z-index: 3; background: #fff; pointer-events: none; animation: flash 700ms ease-out both; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.scene-wrap { position: relative; z-index: 2; height: 100%; overflow-y: auto; display: grid; place-items: center;
  padding: calc(var(--safe-t) + 64px) 20px calc(var(--safe-b) + 72px); }
.scene { text-align: center; width: min(1200px, 100%); animation: sceneIn 700ms var(--spring) both; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(24px) scale(.96); filter: blur(6px); } }
.show-eyebrow { font-size: clamp(14px, 1.6vw, 24px); font-weight: 700; letter-spacing: .14em; color: var(--cyan-bright); margin-bottom: 14px; }
.show-title { font-size: clamp(40px, 8vw, 128px); line-height: 1.08; font-weight: 900; letter-spacing: -.04em; margin: 0; }
.show-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(16px, 4vw, 64px); margin: clamp(24px, 4vh, 48px) 0; }
.show-stats b { display: block; font-size: clamp(28px, 4.4vw, 64px); font-weight: 800; font-variant-numeric: tabular-nums; }
.show-stats span { font-size: clamp(13px, 1.3vw, 20px); opacity: .6; }
.show-warn { display: inline-block; margin-bottom: 20px; padding: 10px 16px; border-radius: 12px; background: rgba(220, 38, 38, .22); color: #FECACA; font-weight: 600; }
.show-start { display: block; margin: 0 auto; min-height: 60px; padding: 0 44px; border-radius: 999px; font-size: clamp(18px, 2vw, 26px); font-weight: 800; color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--magenta)); box-shadow: 0 0 0 0 var(--glow); animation: beckon 2s ease-out infinite; }
.show-start:active { transform: scale(.96); }
@keyframes beckon { 70% { box-shadow: 0 0 0 22px rgba(192, 38, 211, 0); } }
.show-foot { margin-top: 18px; opacity: .55; font-size: clamp(13px, 1.2vw, 18px); }
.show-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; opacity: .8; }
.show-qr #qr { padding: 10px; background: #fff; border-radius: 14px; }
.show-qr #qr img, .show-qr #qr canvas { width: 120px; height: 120px; }

.award-name { font-size: clamp(44px, 9vw, 150px); line-height: 1.05; font-weight: 900; letter-spacing: -.04em; margin: 0;
  background: linear-gradient(90deg, #fff, #F0ABFC 50%, var(--cyan-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.award-name.small { font-size: clamp(32px, 5vw, 72px); }
.award-blurb { margin-top: 18px; font-size: clamp(16px, 2vw, 28px); opacity: .75; }
.roll-q { margin: 0 0 clamp(20px, 4vh, 48px); font-size: clamp(28px, 4vw, 60px); font-weight: 800; animation: beat 1s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.06); } }
.cands { display: grid; gap: clamp(12px, 2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cand { padding: clamp(18px, 3vw, 40px) 18px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .12);
  transition: transform 160ms var(--ease), background 160ms, border-color 160ms, box-shadow 160ms, opacity 500ms; }
.cand b { display: block; font-size: clamp(22px, 2.8vw, 44px); font-weight: 800; line-height: 1.2; }
.cand span { display: block; margin-top: 6px; font-size: clamp(14px, 1.4vw, 22px); opacity: .6; }
.cand.lit { transform: scale(1.05); background: rgba(192, 38, 211, .28); border-color: #F0ABFC; box-shadow: 0 0 60px var(--glow); }
.cand.out { opacity: .12; transform: scale(.92); }
.cand.won { transform: scale(1.12); background: rgba(192, 38, 211, .45); border-color: #fff; box-shadow: 0 0 120px var(--glow); }

.win-title { font-size: clamp(44px, 9vw, 150px); line-height: 1.05; font-weight: 900; letter-spacing: -.04em; margin: 0; text-shadow: 0 0 60px var(--glow);
  animation: winIn 900ms var(--spring) both; }
@keyframes winIn { from { opacity: 0; transform: scale(.4); letter-spacing: .3em; filter: blur(12px); } }
.win-founder { margin-top: 12px; font-size: clamp(20px, 2.6vw, 40px); font-weight: 700; color: #F0ABFC; animation: rise 500ms 400ms var(--ease) both; }
.win-metric { margin-top: clamp(16px, 3vh, 36px); font-size: clamp(36px, 6vw, 96px); font-weight: 900; color: var(--cyan-bright); }
.win-sub { font-size: clamp(14px, 1.6vw, 24px); opacity: .65; }

.final-grid { display: grid; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(24px, 4vh, 48px); text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.final-card { padding: clamp(16px, 2vw, 28px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  animation: rise 600ms var(--spring) both; }
.final-card:nth-child(2) { animation-delay: 120ms; } .final-card:nth-child(3) { animation-delay: 240ms; } .final-card:nth-child(4) { animation-delay: 360ms; }
.final-card span { font-size: clamp(13px, 1.2vw, 18px); color: var(--cyan-bright); font-weight: 700; }
.final-card b { display: block; margin: 6px 0 4px; font-size: clamp(22px, 2.4vw, 38px); line-height: 1.2; font-weight: 800; }
.final-card em { font-style: normal; opacity: .7; font-size: clamp(13px, 1.2vw, 18px); }
.final-card.none { opacity: .45; }

.show-ctl { position: absolute; z-index: 5; top: calc(var(--safe-t) + 12px); right: 12px; display: flex; gap: 6px; }
.show-ctl button { min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.show-ctl button:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.show-ctl button[aria-pressed='false'] { color: #FCA5A5; }
.show-hint { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(var(--safe-b) + 14px); text-align: center; font-size: 13px; opacity: .4; pointer-events: none; }

/* ---------- 제출 ---------- */
.tally-frame { width: calc(100% + 40px); margin: 12px -20px 0; border: 0; min-height: 70dvh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
/* 좁은 폰 (iPhone SE 1세대 · 갤럭시 폴드 접힘 320px) */
@media (max-width: 360px) {
  main { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 24px; }
  .stepper { gap: 10px; }
  .stepper output { min-width: 0; flex: 1; font-size: 26px; }
  .stepper button { width: 46px; height: 46px; }
  .presets, .scores { gap: 6px; }
  .presets button { font-size: 14px; }
  .hero-img, .tally-frame { width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; }
  .show-ctl button { padding: 0 8px; }
}

/* 태블릿 · PC */
@media (min-width: 720px) {
  main { max-width: 760px; padding-left: 32px; padding-right: 32px; }
  h1 { font-size: 34px; }
  .product { grid-template-columns: 96px 1fr; }
  .product .thumb { width: 96px; height: 96px; }
  .hero-img { width: 100%; margin: 12px 0 0; border-radius: var(--r-lg); }
  .tally-frame { width: 100%; margin: 12px 0 0; }
  .pressable:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .btn:hover:not([disabled]) { filter: brightness(1.08); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  /* 탭 바 · 하단 CTA 를 화면 가운데 떠 있는 바로 */
  .tabbar { left: 50%; right: auto; bottom: 16px; width: 440px; transform: translateX(-50%); height: var(--tab-h); padding: 0;
    border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); }
  .cta-bar { max-width: 760px; padding-left: 32px; padding-right: 32px; }
  .toast { bottom: calc(var(--tab-h) + 40px); }
  /* 바텀 시트 → 가운데 모달 */
  .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: min(520px, calc(100% - 48px)); max-height: 86dvh;
    transform: translate(-50%, -50%); border-radius: var(--r-lg); padding: 28px 28px 24px; animation-name: modalIn; }
  .sheet.closing { animation-name: modalOut; }
  .grab { display: none; }
  @keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
  @keyframes modalOut { to { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
}
@media (min-width: 1024px) {
  main { max-width: 1040px; }
  .cta-bar { max-width: 560px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* 아이디어 상세: 이미지 왼쪽, 글 오른쪽 */
  .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .detail-grid .hero-img { position: sticky; top: 80px; }
  body.wide main { max-width: 1200px; }
}
