/* ===== Design tokens (change brand here) ===== */
:root {
  --brand: #ff5a36;
  --brand-ink: #e0401d;
  --brand-act: #d23a17; /* button fill: white label passes 4.5:1, unlike --brand */
  --pixel: 'Galmuri11', 'Galmuri9', monospace;
  --pixel-b: 'Galmuri11 Bold', 'Galmuri11', monospace;
  --brand-soft: #fff0eb;
  --gold: #ffc531;
  --gold-soft: #fff6d9;
  --ink: #16131f;
  --ink-2: #4a4659;
  --ink-3: #8a869a;
  --line: #ebe8f2;
  --bg: #f7f6fb;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  /* reaction colors: hot -> cold */
  --r-interest: #ff5a36;
  --r-consider: #ffc531;
  --r-indifferent: #8b8fa3;
  --r-reject: #4c6fff;
  /* simulation (dark) */
  --sim-bg: #0f0d17;
  --sim-panel: #191624;
  --sim-line: #2a2638;
  --sim-ink: #f2f0f7;
  --sim-ink-2: #a19db3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 19, 31, .04), 0 8px 24px rgba(22, 19, 31, .06);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; letter-spacing: -0.04em; white-space: nowrap; }
.logo .crown { --icon: 26px; }
.lang-link { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 6px 10px; border-radius: 999px; }
.lang-link:hover { background: var(--bg); }
/* Wordmark: 광고왕! in the pixel face, 고! in the brand color */
.logo-word { display: inline-flex; align-items: center; gap: 0; font-family: var(--pixel-b); font-weight: 400; font-size: 20px; letter-spacing: 0; color: var(--ink); }
.logo-word b { font-weight: 400; color: var(--brand-act); }
.px-icon { display: block; width: var(--icon, 22px); height: var(--icon, 22px); background: currentColor; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; image-rendering: pixelated; }
.px-icon[data-color] { background: none; }
.px-icon canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav-links a:hover { background: var(--bg); }
.nav-links a.active { color: var(--ink); background: var(--bg); }
.nav-user { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.lv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: var(--gold-soft); font-weight: 700; }
.lv-chip b { background: var(--gold); border-radius: 999px; padding: 1px 7px; font-size: 12px; }
.tabbar { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .wrap { justify-content: space-between; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); font-weight: 600; padding: 4px 0; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .tabbar a.active { color: var(--brand-act); }
  main { padding-bottom: 80px; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: 15px; background: var(--ink); color: #fff; transition: transform .12s ease, box-shadow .12s ease, background .12s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand-act); box-shadow: 0 6px 18px rgba(255, 90, 54, .28); }
.btn.primary:hover { background: #b8320f; }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 197, 49, .4); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: #fff; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.link { color: var(--brand); font-weight: 700; cursor: pointer; background: none; border: 0; padding: 0; }

/* ===== Common ===== */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.pad { padding: 22px; }
.section { padding: 28px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title h2 { font-size: 22px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.chip.live { background: #e8f8ee; color: var(--ok); }
.chip.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.chip.soon { background: #eef1ff; color: #3b5bdb; }
.chip.ended { background: #f1f0f5; color: var(--ink-3); }
.chip.brand { background: var(--brand-soft); color: var(--brand-ink); }
.chip.gold { background: var(--gold-soft); color: #8a6100; }
@keyframes pulse { 50% { opacity: .35; } }
.grid { display: grid; gap: 18px; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; background: var(--bg); color: var(--ink-2); }
.notice.warn { background: #fff7e6; color: #8a5300; }
.notice.err { background: #fdecec; color: #a11d1d; }
.notice.ok { background: #e8f8ee; color: #136c36; }
.notice.info { background: #eef1ff; color: #2c3e9e; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; }
ul.clean { list-style: none; padding: 0; margin: 0; }
.bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 100; box-shadow: var(--shadow); animation: up .25s ease; max-width: calc(100vw - 32px); }
@keyframes up { from { opacity: 0; transform: translate(-50%, 10px); } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 13px; color: var(--ink-2); }
.input, textarea.input, select.input { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; outline: none; }
.input:focus { border-color: var(--brand); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--brand); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-weight: 600; font-size: 14px; margin: 18px 0 6px; }

/* ===== Hero / lobby ===== */
.hero, .targets, .playbook, .lobby-cta { word-break: keep-all; overflow-wrap: anywhere; }
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 24px; margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero-copy { padding: 48px 8px 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: #c9c5d8; max-width: 30em; margin: 16px 0 22px; font-size: 16px; }
.hero p b { color: #fff; }
.hero .cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.ghost-d { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }
/* Pixel scene of the ad running in a social feed (lobbyScene.js) */
.hero-arena { position: relative; min-height: 440px; background: linear-gradient(#211b38 0 78%, #3a2c22 78% 79.5%, #2a2018 79.5%); }
.hero-arena canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-arena .arena-hud { position: absolute; left: 16px; right: 16px; top: 14px; z-index: 1; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--sim-ink-2); }
.hero-arena .arena-hud b { color: var(--gold); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } .hero-copy { padding: 34px 24px 8px; } .hero-arena { min-height: 380px; margin-top: 16px; } }
@media (max-width: 760px) { .hero { border-radius: 18px; } }
@media (max-width: 520px) {
  .hero-arena { order: -1; min-height: 392px; margin: 0; }
  .hero-copy { padding: 24px 20px 26px; }
  .hero p { margin: 12px 0 18px; font-size: 15px; }
  .hero .cta-row .btn.lg { padding: 14px 18px; font-size: 16px; }
  .hero-arena .arena-hud { font-size: 12px; } .hero-arena .arena-hud .where { display: none; }
}

/* Target customers: the one lobby section set in pixel type */
.targets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.target { padding: 16px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.target .ava { width: 64px; height: 72px; border-radius: 12px; display: grid; place-items: end center; padding-bottom: 6px; background: var(--tint); --px-h: 56px; }
.target b { font-family: var(--pixel-b); font-weight: 400; font-size: 18px; display: block; }
.target .trait { font-family: var(--pixel); font-size: 13px; color: var(--ink-3); }
.target .need { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
.target .say { grid-column: 1 / -1; font-family: var(--pixel); font-size: 13px; line-height: 1.6; background: var(--bg); border-radius: 10px; padding: 9px 11px; margin: 0; color: var(--ink-2); position: relative; }
.target .say::before { content: ''; position: absolute; left: 26px; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--bg); }
@media (max-width: 960px) { .targets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .target { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .target .ava { width: 100%; height: 66px; --px-h: 50px; }
  .target .need { display: none; }
  .target .say { font-size: 12px; }
  .target .say::before { left: 50%; margin-left: -6px; }
}

/* How to play + example result */
.playbook { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.playbook .levels { padding: 22px; display: grid; gap: 4px; }
.playbook .lv { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.playbook .lv:last-child { border-bottom: 0; }
.playbook .lv span { font-weight: 800; color: var(--brand-ink); font-size: 14px; padding-top: 1px; }
.playbook .lv h3 { font-size: 16px; }
.playbook .lv p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.hiscore { background: var(--sim-bg); color: var(--sim-ink); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.hiscore h3 { font-family: var(--pixel-b); font-weight: 400; color: var(--gold); font-size: 18px; letter-spacing: .04em; }
.hiscore table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.hiscore td { padding: 7px 0; border-bottom: 1px dashed var(--sim-line); }
.hiscore td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.hiscore tr.buy td { color: var(--gold); }
/* The 10,000-dot result replay runs behind the score as a dimmed background */
.hiscore { position: relative; overflow: hidden; isolation: isolate; }
.hiscore > *:not(.hs-bg) { position: relative; z-index: 1; }
.hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hiscore::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: rgba(15,13,23,.15); }
.hiscore .won, .hiscore h3, .hiscore td, .hiscore p { text-shadow: 0 1px 3px rgba(15,13,23,.95), 0 0 12px rgba(15,13,23,.8); }
.hiscore tr td { transition: background .2s, color .2s; }
.hiscore tr.on td { background: rgba(255,255,255,.07); }
.hiscore tr.on td:first-child { padding-left: 8px; }
.hiscore .won { display: block; text-align: left; font-weight: 900; font-size: 28px; letter-spacing: -0.02em; color: var(--gold); }
.hiscore p { margin: 6px 0 0; color: var(--sim-ink-2); font-size: 13px; }
@media (max-width: 960px) { .playbook { grid-template-columns: 1fr; } }

/* Closing CTA: what one ad gets you */
.lobby-cta { margin: 44px 0 56px; background: var(--ink); color: #fff; border-radius: 24px; padding: 36px 40px; display: grid; grid-template-columns: 1fr auto; gap: 26px 32px; align-items: end; }
.lobby-cta h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.035em; }
.lobby-cta h2 em { font-style: normal; color: var(--gold); }
.lobby-cta .lead { margin: 8px 0 0; color: #c9c5d8; }
.lobby-cta .go { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.lobby-cta .go small { color: var(--sim-ink-2); font-size: 12px; }
.benefits { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefits li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px; display: grid; gap: 6px; align-content: start; --icon: 28px; }
.benefits b { font-size: 17px; letter-spacing: -0.02em; }
.benefits li > span:last-child { color: #c9c5d8; font-size: 14px; }
@media (max-width: 960px) { .lobby-cta { grid-template-columns: 1fr; } .lobby-cta .go { align-items: flex-start; grid-row: 3; } }
@media (max-width: 760px) { .benefits { grid-template-columns: 1fr; } .lobby-cta { padding: 26px 22px; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--ink); color: #fff; }

.cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ccard { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.ccard:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(22,19,31,.10); }
.cover { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.cover .emoji { font-size: 66px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); transform: rotate(-6deg); }
/* Product photo as a faint wash over the whole gradient; the emoji stays on top. */
.cover .product-wash, .bd-cover .product-wash { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; pointer-events: none; }
.cover .emoji { position: relative; }
.bd-cover { position: relative; overflow: hidden; }
.bd-cover .emoji { position: relative; font-size: inherit; }
.cover .brandmark { position: absolute; left: 16px; bottom: 12px; font-weight: 900; font-size: 13px; letter-spacing: .02em; background: rgba(255,255,255,.92); color: var(--ink); padding: 3px 9px; border-radius: 999px; }
.cover .brandmark img { display: block; height: 18px; width: auto; max-width: 96px; object-fit: contain; }
.cover .brandmark:has(img) { padding: 5px 10px; border-radius: 8px; }
.cover .state { position: absolute; left: 14px; top: 12px; }
.cover .deadline { position: absolute; right: 14px; top: 12px; background: rgba(22,19,31,.6); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ccard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ccard h3 { font-size: 17px; }
.ccard .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; color: var(--ink-2); }
.ccard .meta b { color: var(--ink); }
.ccard .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.mystate { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.mystate.on { color: var(--brand-ink); }

/* ===== Brief ===== */
.brief-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: stretch; }
.brief-head .cover { height: auto; min-height: 240px; border-radius: var(--radius); }
.brief-head .cover .emoji { font-size: 110px; }
.brief-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; margin-top: 22px; }
.brief-grid h3 { font-size: 16px; margin-bottom: 12px; }
.brief-rules { grid-column: 1 / -1; }
.brief-rules ul { grid-template-columns: 1fr 1fr; column-gap: 56px; }
@media (max-width: 760px) { .brief-rules ul { grid-template-columns: 1fr; } }
.mission { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; margin: 8px 0 12px; }
.goalbox { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.goalbox .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.goalbox .row span { color: #a19db3; flex: none; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-ok, .tag-no { padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.tag-ok { background: #e8f8ee; color: #136c36; }
.tag-no { background: #fdecec; color: #a11d1d; }
.judge { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.judge li { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.judge .tier { grid-row: 1 / 3; justify-self: start; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.judge b { font-size: 14px; }
.judge small { font-size: 12px; color: var(--ink-3); }
.judge li.top { background: var(--gold-soft); }
.judge li.top .tier { background: var(--gold); color: var(--ink); }
.judge li.mid .tier { background: var(--brand-soft); color: var(--brand-ink); }
.weights { display: grid; gap: 8px; }
.weights .w { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.weights .w.primary { font-weight: 800; }
.weights .w.primary .bar > i { background: var(--gold); }
.sticky-cta { position: sticky; bottom: 16px; z-index: 5; margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 860px) { .brief-head, .brief-grid { grid-template-columns: 1fr; } .sticky-cta { bottom: 84px; } }

/* ===== Submit ===== */
.submit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
@media (max-width: 860px) { .submit-grid { grid-template-columns: 1fr; } }
.drop { border: 2px dashed #d6d2e2; border-radius: var(--radius); background: #fff; min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; position: relative; overflow: hidden; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .hint .ico { font-size: 44px; }
.drop img { max-height: 520px; width: auto; margin: 0 auto; border-radius: 8px; }
.drop.has { border-style: solid; border-color: var(--line); padding: 14px; }
.lock { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.statrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--bg); border-radius: 12px; padding: 12px; }
.stat .k { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.stat .v { font-size: 20px; font-weight: 800; }
.go-btn { font-size: 20px; padding: 18px; letter-spacing: -0.02em; }
.prev-box { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.prev-box img { border-radius: 10px; width: 110px; height: 110px; object-fit: cover; background: var(--bg); }

/* ===== Simulation (dark) ===== */
.sim { background: var(--sim-bg); color: var(--sim-ink); min-height: calc(100vh - 62px); padding: 20px 0 40px; }
.sim .wrap { max-width: 1320px; }
.sim-grid { display: grid; grid-template-columns: 250px 1fr 270px; gap: 16px; }
@media (max-width: 1100px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-panel { background: var(--sim-panel); border: 1px solid var(--sim-line); border-radius: var(--radius); padding: 16px; }
.sim-panel h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sim-ink-2); margin-bottom: 10px; }
.sim-ad img { border-radius: 10px; width: 100%; max-height: 320px; object-fit: contain; background: #000; }
.sim-ad .t { font-weight: 800; margin-top: 12px; }
.sim-ad .s { color: var(--sim-ink-2); font-size: 13px; }
.sim-stage { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.sim-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--sim-line); gap: 10px; flex-wrap: wrap; }
.sim-phase { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.sim-phase .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1s infinite; }
.sim-phase.done .dot { background: #22c55e; animation: none; }
.sim canvas { display: block; width: 100%; aspect-ratio: 16 / 10; cursor: pointer; }
.sim-controls { display: flex; gap: 8px; }
.sim .btn.ghost { color: var(--sim-ink); box-shadow: inset 0 0 0 1.5px var(--sim-line); }
.sim .btn.ghost:hover { background: var(--sim-line); }
.sim-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--sim-line); font-size: 12px; color: var(--sim-ink-2); }
.sim-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.counter { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--sim-line); }
.counter:last-child { border: 0; }
.counter .lab { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.counter .lab i { width: 10px; height: 10px; border-radius: 3px; }
.counter .val { font-size: 22px; font-weight: 800; }
.counter .pct { grid-column: 1 / -1; font-size: 12px; color: var(--sim-ink-2); }
.intent { margin-top: 14px; }
.intent .big { font-size: 34px; font-weight: 900; color: var(--gold); }
.analysis-steps { display: grid; gap: 6px; font-size: 13px; color: var(--sim-ink-2); }
.analysis-steps .st { display: flex; gap: 8px; align-items: center; }
.analysis-steps .st.on { color: var(--sim-ink); }
.analysis-steps .st.ok { color: #86efac; }
.overlay { position: absolute; inset: 52px 0 40px; display: flex; align-items: center; justify-content: center; background: rgba(15,13,23,.82); flex-direction: column; gap: 18px; text-align: center; padding: 20px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--sim-line); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.segpop { position: absolute; z-index: 4; width: 280px; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.4); font-size: 13px; pointer-events: auto; }
.segpop h5 { margin: 0 0 4px; font-size: 15px; }
.segpop .pos { font-size: 22px; font-weight: 900; color: var(--brand); }
.segpop .x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink-3); }
.honesty { font-size: 12px; color: var(--sim-ink-2); margin-top: 12px; line-height: 1.5; }

/* ===== Result ===== */
.reveal { text-align: center; padding: 40px 20px 28px; position: relative; }
.reveal .score { font-size: clamp(64px, 12vw, 120px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(180deg, var(--gold), #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal .score small { font-size: .32em; letter-spacing: -0.02em; }
.reveal .lines { display: grid; gap: 6px; margin-top: 14px; font-size: 18px; font-weight: 700; }
.reveal .delta-up { color: #4ade80; }
.reveal .delta-down { color: #f87171; }
.pb { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 900; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.fade-in { animation: fadein .5s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .res-grid { grid-template-columns: 1fr; } }
.dims { display: grid; gap: 10px; }
.dim { display: grid; grid-template-columns: 120px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; }
.dim .bar { background: var(--sim-line); }
.dim.key { font-weight: 800; }
.dim.key .bar > i { background: var(--gold); }
.dim .w { font-size: 11px; color: var(--sim-ink-2); font-weight: 600; }
.distbar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; }
.distbar i { display: block; height: 100%; }
.ins { display: grid; gap: 10px; }
.ins li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: 14px; word-break: keep-all; }
.ins b { display: block; font-size: 12px; color: var(--sim-ink-2); }
.seglist { display: grid; gap: 8px; }
.segrow { display: grid; grid-template-columns: 1fr 60px; gap: 10px; align-items: center; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.segrow .n { font-weight: 700; }
.segrow .note { color: var(--sim-ink-2); font-size: 12px; }
.segrow .p { text-align: right; font-weight: 800; font-size: 16px; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 26px 0 8px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--sim-line); }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp .up { color: #4ade80; font-weight: 800; }
.cmp .down { color: #f87171; font-weight: 800; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* ===== Ranking ===== */
.me-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: linear-gradient(120deg, var(--ink), #2b2340); color: #fff; }
.me-banner .r { font-size: 40px; font-weight: 900; color: var(--gold); line-height: 1; }
.me-banner .facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: #c9c5d8; }
.me-banner .facts b { color: #fff; }
@media (max-width: 700px) { .me-banner { grid-template-columns: 1fr; } }
.rivals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.rival { padding: 14px 16px; }
.rival .k { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.rtable { width: 100%; border-collapse: collapse; }
.rtable th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rtable td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.rtable tr.me td { background: var(--gold-soft); font-weight: 700; }
.rtable .rk { font-weight: 900; font-size: 16px; width: 56px; }
.rtable .sc { font-weight: 900; font-size: 16px; text-align: right; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ink-3); }
/* Podium: who holds each place and the bounty share it pays; stands step up to 1st. */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: 18px; word-break: keep-all; }
.podium .p { display: flex; flex-direction: column; min-width: 0; }
.podium .top { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 0 6px 12px; }
.podium .pm { --icon: 34px; margin-bottom: 4px; }
.podium .r1 .pm { --icon: 44px; }
.podium .who-n { font-weight: 800; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .who-n.open { color: var(--ink-3); font-weight: 700; }
.podium .s { font-size: 22px; font-weight: 900; }
.podium .prize { margin-top: 4px; font-size: 12px; font-weight: 800; color: #8a6100; background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; }
.podium .stand { background: var(--ink); color: var(--gold); border-radius: 14px 14px 6px 6px; display: grid; place-items: center; font-weight: 900; font-size: 26px; }
.podium .r1 .stand { height: 96px; font-size: 34px; }
.podium .r2 .stand { height: 66px; color: #d9dde5; }
.podium .r3 .stand { height: 48px; color: #e3b48a; }
.podium .empty .stand { background: #e9e6f1; color: var(--ink-3); }
@media (max-width: 600px) { .podium .s { font-size: 17px; } .podium .who-n { font-size: 13px; } .podium .prize { font-size: 11px; padding: 2px 7px; } .podium .r1 .stand { height: 72px; } .podium .r2 .stand { height: 50px; } .podium .r3 .stand { height: 36px; } }
.row-medal { display: inline-block; vertical-align: -4px; --icon: 18px; }
@media (max-width: 600px) { .rtable .hide-sm { display: none; } .rivals { grid-template-columns: 1fr; } }

/* ===== My page ===== */
.profile { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(135deg, var(--brand), var(--gold)); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; color: #fff; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.statgrid .stat { background: #fff; border: 1px solid var(--line); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--gold-soft); font-weight: 700; font-size: 13px; }
.badge.off { background: var(--bg); color: var(--ink-3); filter: grayscale(1); }
.chart svg { width: 100%; height: 180px; }
.mission { margin: 0; }
.mrow { display: grid; grid-template-columns: 48px 1fr 120px; gap: 14px; align-items: center; padding: 16px 18px; }
.mrow .ic { font-size: 30px; text-align: center; }
.mrow.done { background: var(--gold-soft); }
@media (max-width: 600px) { .profile { grid-template-columns: auto 1fr; } .profile > :last-child { grid-column: 1 / -1; } .mrow { grid-template-columns: 40px 1fr; } .mrow > :last-child { grid-column: 2; } }

/* ===== Admin ===== */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.scroll-x { overflow-x: auto; }

/* ===== Modal ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(22,19,31,.5); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadein .2s; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 420px; padding: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.modal h3 { font-size: 20px; margin-bottom: 6px; }

/* ===== Funnel / revenue / characters ===== */
.reveal .score.money { font-size: clamp(48px, 9vw, 92px); background: linear-gradient(180deg, #fff3b0, var(--gold) 55%, #ff8a3d); -webkit-background-clip: text; background-clip: text; }
.rv-sub { margin-top: 10px; font-size: 18px; font-weight: 700; }
.rv-sub b { color: var(--gold); }
.rv-score { margin-top: 8px; font-size: 15px; color: var(--sim-ink-2); }
.rv-score b { color: var(--sim-ink); font-size: 20px; }
.muted-d { color: var(--sim-ink-2); font-weight: 500; font-size: 13px; }
.funnel { display: grid; gap: 2px; }
.fstep { display: grid; grid-template-columns: 30px 110px 1fr 84px 56px; gap: 10px; align-items: center; padding: 8px 4px; opacity: .25; transition: opacity .35s ease; }
.fstep.on { opacity: 1; }
.fic { font-size: 22px; text-align: center; }
.flab { font-weight: 700; font-size: 14px; }
.fbar { height: 22px; background: var(--sim-line); border-radius: 6px; overflow: hidden; }
.fbar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--r-reject), var(--r-interest)); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.fstep.on .fbar i { width: var(--w); }
.fstep.last .fbar i { background: linear-gradient(90deg, var(--r-interest), var(--gold)); }
.fstep.last .fnum { color: var(--gold); font-size: 22px; }
.fnum { text-align: right; font-size: 18px; }
.fpct { text-align: right; font-size: 12px; color: var(--sim-ink-2); }
.drop-line { font-size: 11px; color: var(--sim-ink-2); padding-left: 44px; }
.receipt { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; display: inline-block; font-size: 15px; box-shadow: 0 6px 0 rgba(255,197,49,.35); }
.receipt b { color: var(--brand-ink); font-size: 18px; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.char { background: rgba(255,255,255,.04); border: 1px solid var(--sim-line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; animation: fadein .45s ease both; }
.char.mood-love { border-color: rgba(255,197,49,.55); background: rgba(255,197,49,.08); }
.char-top { display: flex; gap: 10px; align-items: center; }
.char .av { font-size: 34px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: rgba(255,255,255,.07); }
.char.mood-love .av { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.char .nm { font-weight: 800; }
.char .ty { font-size: 12px; color: var(--sim-ink-2); }
.bubble { position: relative; background: #fff; color: var(--ink); border-radius: 12px; padding: 9px 11px; font-size: 13px; line-height: 1.45; }
.bubble::before { content: ''; position: absolute; left: 18px; top: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #fff; }
.cstat { font-size: 12px; color: var(--sim-ink-2); }
.cstat b { color: var(--sim-ink); }
.cdots { display: flex; gap: 4px; }
.cdots i { flex: 1; height: 6px; border-radius: 3px; background: var(--gold); }
@media (max-width: 600px) { .fstep { grid-template-columns: 26px 1fr 70px; } .fstep .fbar { grid-column: 1 / -1; grid-row: 2; } .fpct { display: none; } .drop-line { padding-left: 0; } }

/* ---------- game arena (post-upload replay) ---------- */
.arena-wrap { overflow: visible; }
.arena-hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 6px; }
.hud-ad { display: flex; gap: 10px; align-items: center; min-width: 0; }
.hud-ad > div { min-width: 0; }
.hud-ad img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; background: #000; flex: none; }
.hud-ad .t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-ad .s { font-size: 12px; color: var(--sim-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-money { text-align: right; flex: none; }
.hud-money .k { font-size: 12px; color: var(--sim-ink-2); font-weight: 700; }
.hud-money .v { font-size: clamp(24px, 4vw, 38px); font-weight: 900; color: var(--gold); line-height: 1.1; display: inline-block; }
.hud-money .v.bump { animation: hudbump .25s; }
.hud-money .s { font-size: 12px; color: var(--sim-ink-2); }
@keyframes hudbump { 50% { transform: scale(1.08); } }
.arena-box { position: relative; }
.sim canvas.arena { aspect-ratio: 2.1 / 1; cursor: default; }
@media (max-width: 640px) { .sim canvas.arena { aspect-ratio: 1 / 1.05; } .hud-ad img { width: 38px; height: 38px; } }
.coin { position: absolute; font-size: 18px; pointer-events: none; z-index: 5; }
/* Result popup over the finished run show: dimmed backdrop + a solid card */
.stamp { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,13,23,.74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.stamp.hidden { display: none; }
.stamp-in { position: relative; width: min(560px, 100%); text-align: center; display: grid; gap: 8px; justify-items: center; padding: 28px 28px 22px; background: #1b1730; border: 1px solid rgba(255,197,49,.35); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.55); animation: stampin .55s cubic-bezier(.2,1.6,.4,1); }
.stamp .st-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--sim-ink); font-size: 20px; cursor: pointer; }
.stamp .st-x:hover { background: rgba(255,255,255,.16); }
.stamp .st-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.stamp .btn.ghost { color: var(--sim-ink); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.2); }
@keyframes stampin { from { transform: scale(1.6) rotate(-6deg); opacity: 0; } }
.stamp .st-k { font-size: clamp(15px, 2.4vw, 20px); font-weight: 800; }
.stamp .st-v { font-size: clamp(40px, 7vw, 68px); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--gold); }
.stamp .st-r { font-weight: 800; color: var(--gold); }
.mascots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding: 8px 16px 0; }
@media (max-width: 900px) { .mascots { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .mascots { grid-template-columns: repeat(2, 1fr); } }
.mascot { background: rgba(255,255,255,.03); border: 1px solid var(--sim-line); border-radius: 12px; padding: 10px 8px; text-align: center; transition: border-color .3s, background .3s; }
.mascot .m-av { width: 44px; height: 44px; margin: 0 auto 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #221e30; box-shadow: 0 0 0 3px var(--c); }
.mascot.bump .m-av { animation: hop .3s; }
@keyframes hop { 40% { transform: translateY(-8px) scale(1.12); } }
.mascot .m-nm { font-weight: 800; font-size: 13px; }
.mascot .m-ct { font-size: 12px; color: var(--sim-ink-2); }
.mascot .m-ct b { color: var(--sim-ink); }
.mascot .m-bubble { margin-top: 9px; font-size: 12px; line-height: 1.4; background: #fff; color: #16131f; border-radius: 10px; padding: 6px 8px; position: relative; min-height: 3.4em; display: flex; align-items: center; justify-content: center; }
.mascot .m-bubble::before { content: ''; position: absolute; top: -5px; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom-color: #fff; }
.mascot .wait { color: #8b8fa3; }
.mascot .say { display: none; }
.mascots.talk .wait { display: none; }
.mascots.talk .say { display: block; animation: sayin .4s var(--d) both; }
@keyframes sayin { from { transform: scale(.6); opacity: 0; } }
.mascots.talk .mood-love { border-color: var(--gold); background: rgba(255,197,49,.08); }
.arena-note { padding: 0 16px 14px; }

/* ---------- sample persona interviews ---------- */
.iv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 14px 16px 0; }
.iv-head h4 { margin: 0; }
.iv-head .small { color: var(--sim-ink-2); }
.interviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px 16px 0; }
@media (max-width: 900px) { .interviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .interviews { grid-template-columns: 1fr; } }
.iv { background: rgba(255,255,255,.03); border: 1px solid var(--sim-line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; transition: border-color .3s, background .3s; }
.iv.show.love { border-color: var(--gold); background: rgba(255,197,49,.07); }
.iv-top { display: flex; gap: 10px; align-items: center; }
.iv-av { width: 42px; height: 56px; flex: none; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; background: #221e30; border-radius: 8px; box-shadow: inset 0 -3px 0 var(--c); }
.px-avatar { width: 30px; height: 42px; image-rendering: pixelated; }
.iv-nm { font-weight: 800; }
.iv-nm span { font-weight: 500; font-size: 12px; color: var(--sim-ink-2); }
.iv-ty { font-size: 12px; font-weight: 700; color: var(--c); }
.iv-path { display: flex; gap: 4px; }
.iv-path i { font-style: normal; font-size: 14px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: #221e30; opacity: .35; filter: grayscale(1); transition: opacity .3s, filter .3s, background .3s; }
.iv.show .iv-path i.ok { opacity: 1; filter: none; background: rgba(255,255,255,.08); }
.iv.show .iv-path i.x { opacity: 1; filter: none; background: rgba(248,113,113,.18); box-shadow: inset 0 0 0 1.5px #f87171; }
.iv-q { font-size: 13px; line-height: 1.5; min-height: 3em; }
.iv-q .wait { color: var(--sim-ink-2); }
.iv-q .say { display: none; }
.iv.show .iv-q .wait { display: none; }
.iv.show .iv-q .say { display: block; animation: sayin .4s both; }
.iv-out { font-size: 12px; font-weight: 800; color: var(--sim-ink-2); opacity: 0; transition: opacity .3s; }
.iv.show .iv-out { opacity: 1; }
.iv.love .iv-out { color: var(--gold); }

/* ---------- AI ad challenge: tools & prompts ---------- */
.hero-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; }
.hero-steps span { font-size: 13px; font-weight: 600; color: #e7e4f2; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 5px 11px; border-radius: 999px; }
.hero-steps span b { color: var(--gold); margin-right: 3px; }
.chip.tool { background: #ece9ff; color: #3b2fa8; margin: 2px 4px 2px 0; }
.sim .chip.tool { background: rgba(124,108,255,.18); color: #cfc8ff; }
.chip.tool.sm { font-size: 11px; padding: 2px 7px; }
.tool-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-pick button { border: 1.5px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.tool-pick button.on { border-color: #5b4bff; background: #ece9ff; color: #3b2fa8; }
textarea.input { resize: vertical; min-height: 92px; font: inherit; line-height: 1.5; }
.ptip { display: block; margin-top: 4px; font-size: 12px; color: #cfc8ff; background: rgba(124,108,255,.12); border-radius: 8px; padding: 6px 8px; }
.prompt-box { margin: 8px 0 4px; font-size: 13px; line-height: 1.55; background: rgba(255,255,255,.05); border: 1px dashed var(--sim-line); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; }
.row-tools { margin-top: 3px; }
.row-prompt { margin-top: 4px; font-size: 12px; }
.row-prompt summary { cursor: pointer; color: #5b4bff; font-weight: 700; }
.row-prompt div { margin-top: 4px; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); max-width: 420px; }

/* ---------- admin console ---------- */
.admin-tabs { margin-bottom: 18px; flex-wrap: wrap; }
.admin-tabs button { white-space: nowrap; }
.badge-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #ff5a36; color: #fff; font-size: 11px; line-height: 18px; text-align: center; margin-left: 2px; }
.admin-link { margin-right: 6px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi .k { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.kpi .v { font-size: 26px; font-weight: 900; margin-top: 2px; }
.kpi .v small { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.kpi.warn { border-color: #ffd58a; background: #fff8e8; }
.admin-2 { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .admin-2 { grid-template-columns: 1fr; } }
.ah { font-size: 16px; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.tool-table td, .tool-table th { white-space: nowrap; }
.tbar { position: relative; background: var(--bg); border-radius: 6px; height: 22px; min-width: 120px; overflow: hidden; }
.tbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #8f84ff, #5b4bff); border-radius: 6px; }
.tbar span { position: relative; font-size: 12px; font-weight: 800; padding-left: 8px; line-height: 22px; color: var(--ink); mix-blend-mode: normal; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.mini-stats b { color: var(--ink); }
.eng-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; gap: 8px; }
.todo { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-filters { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.admin-filters select { width: auto; min-width: 220px; }
.code { background: var(--ink); color: #f2f0f7; border-radius: 10px; padding: 10px 12px; font-size: 13px; overflow-x: auto; }
.test-grid { display: grid; grid-template-columns: 140px 1fr; gap: 16px; margin-top: 10px; align-items: start; }
.test-grid img { width: 140px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 560px) { .test-grid { grid-template-columns: 1fr; } }
.test-funnel { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; font-size: 13px; font-weight: 700; }
.test-funnel span { background: var(--bg); border-radius: 8px; padding: 3px 8px; }
.test-funnel i { font-style: normal; color: var(--ink-2); }
.test-personas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 700px) { .test-personas { grid-template-columns: 1fr; } }
.test-personas > div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.scroll-x > .admin-table { min-width: 880px; }
.admin-table td .acts .btn { white-space: nowrap; }
.dot-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px 0; font-size: 12px; color: var(--sim-ink-2); }
.dot-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.dot-legend b { color: var(--sim-ink); margin-left: 2px; }
.iv-ty .stars { color: var(--gold); letter-spacing: 1px; margin-left: 4px; font-size: 12px; }
.iv-ty .stars i { font-style: normal; color: #4a4560; }
.stamp .st-q { font-size: clamp(14px, 2vw, 17px); font-weight: 700; background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 14px; max-width: 520px; }
.stamp .st-q span { color: var(--sim-ink-2); font-weight: 500; }

/* ---------- report card & sharing ---------- */
.report { display: grid; grid-template-columns: auto 1fr 200px; gap: 22px; align-items: center; max-width: 920px; margin: 26px auto 0; padding: 20px 22px; border-radius: 20px; background: linear-gradient(135deg, rgba(255,197,49,.12), rgba(124,108,255,.12)); border: 1px solid rgba(255,197,49,.35); }
@media (max-width: 760px) { .report { grid-template-columns: auto 1fr; } .rp-preview { grid-column: 1 / -1; justify-self: center; } }
.rp-grade, .st-grade { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 900; color: #16131F; }
.rp-grade { width: 104px; height: 104px; font-size: 56px; line-height: 1; }
.rp-grade small { font-size: 12px; letter-spacing: .1em; display: block; margin-bottom: -18px; }
.st-grade { width: 40px; height: 40px; font-size: 22px; vertical-align: middle; margin-right: 6px; }
.g-S { background: linear-gradient(180deg, #FFD54A, #FF8A3D); } .g-A { background: linear-gradient(180deg, #7CF29A, #22C55E); }
.g-B { background: linear-gradient(180deg, #7DD3FC, #3B82F6); } .g-C { background: linear-gradient(180deg, #C4B5FD, #8B5CF6); } .g-D { background: linear-gradient(180deg, #CBD5E1, #64748B); }
.rp-title { font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: var(--gold); }
.rp-sub { color: var(--sim-ink-2); margin-top: 4px; }
.rp-sub b { color: var(--sim-ink); }
.rp-dare { display: grid; gap: 2px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); word-break: keep-all; }
.rp-dare b { font-family: var(--pixel-b); font-weight: 400; color: var(--gold); font-size: 15px; }
.rp-dare span { font-size: 13px; color: var(--sim-ink-2); line-height: 1.55; }
.rp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rp-preview { width: 320px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); background: #16131F; }
.stamp .st-k .st-grade { width: 46px; height: 46px; font-size: 26px; }
.verdict { margin-top: 0; font-weight: 600; line-height: 1.6; }
.rv-k { font-size: 13px; font-weight: 800; margin: 14px 0 4px; color: var(--sim-ink); }
/* 광고왕 host: the review and the tips are his lines */
.king-head { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-bottom: 12px; word-break: keep-all; }
.king-av { --king-h: 44px; display: block; }
.king-name { font-family: var(--pixel-b); color: var(--gold); font-size: 16px; letter-spacing: .02em; }
.king-open { margin: 2px 0 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--sim-ink); }
.rv-k.good { color: #7ce3a4; } .rv-k.bad { color: #ff9c86; } .rv-k.warn { color: var(--gold); }

.pip { width: 8px; height: 8px; margin-top: 7px; background: currentColor; }
.pip.good { color: #7ce3a4; } .pip.bad { color: #ff9c86; } .pip.warn { color: var(--gold); }
.tips { display: grid; gap: 10px; }
.tips li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: rgba(255,255,255,.04); border: 1px solid var(--sim-line); border-radius: 12px; padding: 12px 14px; word-break: keep-all; }
.tip-n { font-weight: 800; font-size: 12px; color: #16131f; background: var(--gold); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.tips b { font-size: 13px; color: var(--sim-ink-2); font-weight: 700; }
.tips p { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--sim-ink); line-height: 1.55; }
.tips .ptip { margin-top: 8px; }
.tips .ptip span { display: block; font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.eval-info { max-width: 920px; margin: 24px auto 0; font-size: 12px; color: var(--sim-ink-2); line-height: 1.6; }
.eval-info summary { cursor: pointer; }
.share-page { padding-top: 28px; }
.share-grid { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .share-grid { grid-template-columns: 1fr; } }
.share-card { width: 100%; border-radius: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.share-reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .share-reviews { grid-template-columns: 1fr; } }

/* ---------- consumer-type review cards ---------- */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 8px 16px 0; }
@media (max-width: 1000px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .types { grid-template-columns: 1fr; } }
.tc { background: rgba(255,255,255,.03); border: 1px solid var(--sim-line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.types.revealed .tc.love { border-color: var(--gold); background: rgba(255,197,49,.07); }
.tc-top { display: flex; gap: 10px; align-items: center; }
.tc-id { flex: 1; min-width: 0; }
.tc-nm { font-weight: 800; color: var(--c); }
.tc-num { font-size: 12px; color: var(--sim-ink-2); }
.tc-num b { color: var(--sim-ink); }
.tc-top .stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; white-space: nowrap; }
.tc-top .stars i { font-style: normal; color: #4a4560; }
.tc-reach { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: 26px; align-items: end; }
.tc-reach i { display: flex; align-items: flex-end; height: 100%; background: rgba(255,255,255,.05); border-radius: 3px; overflow: hidden; }
.tc-reach b { display: block; width: 100%; background: var(--c); opacity: .75; }
.tc-line, .tc-sub { margin: 0; font-size: 13px; line-height: 1.5; }
.tc-sub { font-size: 12px; color: var(--sim-ink-2); }
.tc .say { display: none; }
.tc .wait { color: var(--sim-ink-2); }
.types.revealed .tc .wait { display: none; }
.types.revealed .tc .say { display: inline; animation: sayin .4s both; }
.tc-nm .tc-ty { font-size: 12px; font-weight: 600; color: var(--sim-ink-2); margin-left: 4px; }

/* ---------- campaign leaderboards ---------- */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.board { display: grid; gap: 12px; padding: 16px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.board:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,19,31,.08); }
.board-head { display: flex; gap: 12px; align-items: center; }
.board-cover { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 26px; }
.board-title { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board-top li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.board-top li:first-child { background: var(--gold-soft); }
.board-top .rk { font-weight: 900; text-align: center; }
.board-top .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-top .v { font-weight: 800; color: var(--ink-2); }

/* ---------- campaign board v2 ---------- */
.lb-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.lb-hero h2 { margin: 0 0 4px; }
.lb-hero p { margin: 0; }
.lb-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.lb-stats > div { background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 16px; min-width: 120px; }
.lb-stats b { display: block; font-size: 22px; font-weight: 900; color: var(--gold); }
.lb-stats span { font-size: 12px; color: #c9c5d8; }
.lb-sec { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.lb-sec h3 { margin: 0; font-size: 18px; }
.boards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.board { min-width: 0; padding: 16px; display: grid; gap: 12px; align-content: start; }
.board:hover { transform: none; }
.board-head { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.bh-txt { display: grid; min-width: 0; }
.board-brand { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.board-title { font-weight: 800; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink-2); align-items: center; }
.board-meta b { color: var(--ink); }
.cd { font-weight: 800; color: #b91c1c; background: #fef2f2; border-radius: 999px; padding: 3px 10px; }
.cd.soon { color: #1d4ed8; background: #eff6ff; }
.cd.done { color: var(--ink-2); background: var(--bg); }
.bounty { border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, #fff7db, #ffe9b8); border: 1px solid #ffd978; }
.b-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.b-k { font-size: 12px; font-weight: 800; color: #8a6100; }
.b-total { font-size: 24px; font-weight: 900; color: #16131f; }
.b-split { font-size: 12px; color: #6b4e00; margin-top: 2px; }
.b-perk { font-size: 12px; color: #6b4e00; margin-top: 2px; font-weight: 700; }
.winner { font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--ink); color: #fff; }
.winner b { color: var(--gold); }
.board-top li { grid-template-columns: 24px minmax(0, 1fr) auto; }
.board-top li .pay { grid-column: 2 / -1; font-size: 12px; color: #8a6100; font-weight: 700; margin-top: -2px; }
.board-top li.lead { background: var(--gold-soft); }
.board-top li.empty-slot { background: transparent; border: 1px dashed var(--line); color: var(--ink-3); }
.board-top li.empty-slot .pay { color: #b45309; }
.g-chip { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 900; color: #16131f; vertical-align: 1px; margin-left: 2px; }
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bounty-txt { color: #b45309; }
.prize-item { grid-column: 1 / -1; }
.card-mission { grid-column: 1 / -1; font-weight: 700; color: var(--ink); line-height: 1.45; }
.board-top li.empty-slot .v { font-size: 12px; color: #b45309; font-weight: 700; }

/* ---------- campaign board v3 (prize-centric) ---------- */
.lb-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: 22px; background: var(--ink); color: #fff; word-break: keep-all; }
.lb-icon { --icon: 48px; flex: none; }
.lb-copy { flex: 1; min-width: 220px; }
.lb-copy h2 { margin: 0 0 6px; color: #fff; }
.lb-copy p { margin: 0; color: #c9c5d8; max-width: 440px; }
.lb-total { display: grid; text-align: left; }
@media (min-width: 900px) { .lb-total { text-align: right; } }
.lb-total span { font-size: 13px; color: #c9c5d8; font-weight: 700; }
.lb-total b { font-size: clamp(30px, 4vw, 42px); font-weight: 900; color: var(--gold); line-height: 1.15; }
.lb-total small { color: #a19db3; font-size: 12px; }
.bds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.bd { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 14px; align-content: start; box-shadow: 0 2px 10px rgba(22,19,31,.04); }
.bd.ended, .bd.closed { background: #fbfaff; }
.bd-head { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.bd-cover { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 24px; }
.bd-ttl { display: grid; min-width: 0; }
.bd-brand { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.bd-title { font-weight: 800; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd-prize { border-radius: 16px; padding: 14px 16px; background: linear-gradient(135deg, #fff6d6, #ffe3a3); }
.bd-prize > div { display: grid; }
.bd-prize .k { font-size: 12px; font-weight: 800; color: #8a6100; }
.bd-prize b { font-size: 28px; font-weight: 900; color: #16131f; line-height: 1.2; }
.bd-prize b.item { font-size: 20px; letter-spacing: -0.01em; word-break: keep-all; }
.bd-prize .perk { font-size: 12px; font-weight: 700; color: #6b4e00; margin-top: 2px; }
.bd-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink-2); align-items: center; }
.bd-meta b { color: var(--ink); }
.bd-places { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.place { display: grid; grid-template-columns: 26px 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--bg); }
.place.p1 { background: #fff8e1; box-shadow: inset 0 0 0 1.5px #ffd978; }
.place.open { background: transparent; box-shadow: inset 0 0 0 1.5px #ece8f5; }
.medal { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; color: #16131f; }
.m1 { background: linear-gradient(180deg, #ffe37a, #f5b301); } .m2 { background: linear-gradient(180deg, #eef1f6, #b9c0cc); } .m3 { background: linear-gradient(180deg, #f5d0b0, #c98a55); }
.thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #ece8f5; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb i { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.thumb.plus { background: transparent; border: 1.5px dashed #cfc8e3; color: #a99fcb; font-size: 22px; font-weight: 300; }
.who { display: grid; min-width: 0; }
.who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.won { display: grid; text-align: right; }
.won b { font-size: 16px; font-weight: 900; color: #b45309; }
.won small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.place.open .won b { color: #7c3aed; }
.bd-split { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-split span { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: 14px; padding: 6px 10px; border-radius: 999px; background: var(--bg); }
.bd-split .medal { width: 20px; height: 20px; font-size: 11px; }
.bd-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.who .cvr { color: var(--ink-2); font-weight: 800; }
.payout { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12px; }
.payout.paid { color: var(--ink-2); }
.m4, .m5 { background: #ece8f5; }
.won.none small { color: var(--ink-3); }

/* ---------- retry: look back at my best entry ---------- */
.retro { margin-bottom: 18px; display: grid; gap: 14px; }
.retro-head { display: grid; gap: 2px; }
.retro-head h3 { margin: 0; font-size: 17px; }
.retro-title { font-weight: 800; font-size: 16px; }
.retro-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 14px; color: var(--ink-2); align-items: center; }
.retro-stats b { color: var(--ink); }
.retro-tips { display: grid; gap: 8px; }
.retro-k { font-size: 13px; font-weight: 800; }
.tip { border-radius: 12px; background: var(--bg); padding: 10px 12px; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; }
.tip-why b { margin-right: 4px; }
.tip-how { color: #5b4bff; font-weight: 600; }

/* ---------- portfolio ---------- */
.pf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-bar h2 { margin: 0; }
.pf-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.switch { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; cursor: pointer; }
.switch input { width: 38px; height: 22px; appearance: none; background: #d9d4e7; border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch input:checked { background: #22c55e; }
.switch input:checked::after { left: 19px; }
.pf-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 26px; border-radius: 22px; background: var(--ink); color: #fff; word-break: keep-all; }
.pf-ava { width: 72px; height: 80px; flex: none; border-radius: 16px; background: rgba(255,255,255,.08); display: grid; place-items: end center; padding-bottom: 6px; --px-h: 62px; }
.pf-best { font-size: 13px; color: #c9c5d8; margin-top: 4px; }
.pf-best b { font-family: var(--pixel-b); font-weight: 400; color: #fff; }
.pf-empty { display: grid; justify-items: center; gap: 10px; }
.pf-crowd { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; justify-content: center; margin-bottom: 6px; --px-h: 44px; }
.pf-id { display: flex; gap: 14px; align-items: center; }
.pf-id .avatar { width: 64px; height: 64px; font-size: 26px; }
.pf-name { font-size: 22px; font-weight: 900; }
.pf-headline { color: var(--gold); font-weight: 800; margin-top: 2px; }
.pf-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-stats > div { min-width: 86px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.08); display: grid; }
.pf-stats b { font-size: 20px; font-weight: 900; }
.pf-stats span { font-size: 11px; color: #c9c5d8; }
.pf-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-dims { display: grid; gap: 8px; }
.pf-dim { display: grid; grid-template-columns: 92px 1fr 34px 70px; gap: 10px; align-items: center; font-size: 14px; }
.pf-dim .bar { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.pf-dim .bar i { display: block; height: 100%; background: #8f84ff; border-radius: 99px; }
.pf-dim.top .bar i { background: linear-gradient(90deg, #ffd54a, #ff8a3d); }
.pf-dim.top span { font-weight: 800; }
.pf-dim em { font-style: normal; font-size: 12px; color: var(--ink-2); text-align: right; font-weight: 700; }
.pf-types { display: grid; gap: 8px; }
.pf-type { display: grid; grid-template-columns: 40px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: #f0fdf4; }
.pf-type .ava { --px-h: 36px; display: grid; place-items: center; }
.pf-type b { font-family: var(--pixel-b); font-weight: 400; font-size: 15px; }
.pf-type.weak { background: #fef2f2; }
.pf-type span { font-size: 12px; color: var(--ink-2); }
.pf-type em { font-style: normal; font-weight: 800; font-size: 13px; color: #15803d; }
.pf-type.weak em { color: #b91c1c; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.pf-chips .muted { min-width: 60px; }
.pf-chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg); font-weight: 700; }
.pf-chip b { color: #5b4bff; }
.recs { display: grid; gap: 14px; }
.rec { display: grid; grid-template-columns: 180px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
@media (max-width: 640px) { .rec { grid-template-columns: 1fr; } }
.rec-img { border-radius: 12px; overflow: hidden; background: #ece8f5; aspect-ratio: 1; display: grid; place-items: center; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; }
.rec-img i { font-style: normal; color: var(--ink-3); font-weight: 700; font-size: 13px; }
.rec-body { min-width: 0; display: grid; gap: 8px; align-content: start; }
.rec-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rbadge { font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px; }
.b-win { background: linear-gradient(180deg, #ffe37a, #f5b301); color: #3b2a00; } .b-top3 { background: #fde68a; color: #6b4e00; }
.b-top10 { background: #ede9fe; color: #5b21b6; } .b-top30 { background: #e0f2fe; color: #075985; } .b-fin { background: var(--bg); color: var(--ink-2); }
.rec-state { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.rec-prize { font-size: 12px; font-weight: 800; color: #b45309; }
.rec-title { margin: 0; font-size: 17px; }
.rec-brief { font-size: 13px; color: var(--ink-2); }
.rec-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rec-kpis > div { background: var(--bg); border-radius: 12px; padding: 8px 10px; display: grid; }
.rec-kpis b { font-size: 18px; font-weight: 900; }
.rec-kpis span { font-size: 11px; color: var(--ink-2); }
.rec-summary { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-3); }
.rec-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; color: #5b4bff; background: #ece9ff; padding: 3px 8px; border-radius: 6px; text-decoration: none; }
.rec-cond { font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.rec-cond summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.verify { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; margin-bottom: 14px; }
.verify b { font-size: 18px; }
.verify.ok { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.verify.bad { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }

/* Analysis wait: the uploaded ad on stage, consumer types pacing in front of it and muttering */
/* LED board scrolling bounties and tips across the top of the wait screen */
.led { position: absolute; left: 0; right: 0; top: 0; height: 40px; overflow: hidden; display: flex; align-items: center; background-color: #0b0814; background-image: radial-gradient(rgba(255,197,49,.12) 1px, transparent 1.4px); background-size: 4px 4px; border-bottom: 2px solid #2a2340; z-index: 2; }
.led-track { display: inline-flex; gap: 48px; white-space: nowrap; padding-right: 48px; animation: led-run 30s linear infinite; font-family: var(--pixel); font-size: 17px; color: var(--gold); text-shadow: 0 0 6px rgba(255,197,49,.7); }
.led-track span:nth-child(even) { color: #7ce3a4; text-shadow: 0 0 6px rgba(124,227,164,.6); }
@keyframes led-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .led-track { animation: none; padding-left: 16px; } }
.led-track span { flex: none; }
.wait-dots { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; pointer-events: none; }
#overlay > *:not(.wait-dots):not(.led) { position: relative; z-index: 1; }
.wait-stage { position: relative; width: min(460px, 92%); height: 290px; flex: none; }
#overlay .analysis-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.wait-ad { position: absolute; left: 50%; top: 0; transform: translateX(-50%); height: 250px; max-width: 80%; border: 4px solid var(--gold); background: #000; box-shadow: 0 0 0 4px #0b0620, 0 0 40px rgba(255,197,49,.25); overflow: hidden; }
.wait-ad img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
/* scan line sweeping over the ad while it is being read */
.wait-ad .scan { position: absolute; left: 0; right: 0; top: 0; height: 26%; background: linear-gradient(180deg, transparent, rgba(255,197,49,.28) 80%, rgba(255,214,102,.9)); border-bottom: 2px solid #ffd666; animation: wait-scan 1.8s ease-in-out infinite alternate; pointer-events: none; }
@keyframes wait-scan { from { transform: translateY(-100%); } to { transform: translateY(290%); } }
.wc { position: absolute; left: var(--x); bottom: var(--y); animation: wc-walk var(--t) ease-in-out infinite alternate; }
.wf { display: block; animation: wc-face calc(var(--t) * 2) steps(1) infinite; animation-delay: inherit; }
.wf canvas { display: block; height: 24px; width: auto; image-rendering: pixelated; animation: wc-bob .45s steps(2) infinite; }
.wb { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #16131f; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; box-shadow: 0 0 0 2px #16131f; z-index: 2; }
.wb::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: #fff; }
@keyframes wc-walk { to { transform: translateX(var(--d)); } }
@keyframes wc-face { 50% { transform: scaleX(-1); } }
@keyframes wc-bob { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .wc, .wf, .wf canvas, .wait-ad .scan { animation: none; } }

/* Logged-out portfolio tab: an ideal example account, dimmed, under a sign-in card */
.pf-preview { position: relative; }
.pf-sample { opacity: .45; filter: saturate(.8) blur(1px); pointer-events: none; user-select: none; }
.pf-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,246,251,0) 0%, rgba(247,246,251,.35) 40%, var(--bg) 100%); pointer-events: none; }
.pf-cta { position: absolute; z-index: 2; top: 150px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(22,19,31,.18); padding: 26px 26px 22px; display: grid; justify-items: center; gap: 8px; text-align: center; word-break: keep-all; }
.pf-cta-king { --king-h: 56px; }
.pf-cta b { font-size: 21px; letter-spacing: -0.03em; }
.pf-cta p { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.pf-cta small { color: var(--ink-3); font-size: 12px; }

/* ----- record room (#/hall): hand-picked best / worst / fun records ----- */
.hall-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 16px; }
.hall-card { display: grid; grid-template-columns: 168px 1fr; gap: 18px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); word-break: keep-all; }
.hall-card.k-best { border-color: #f3d27a; box-shadow: inset 0 3px 0 var(--gold), var(--shadow); }
.hall-card.k-worst { box-shadow: inset 0 3px 0 #8b8fa3, var(--shadow); }
.hall-card.k-fun { box-shadow: inset 0 3px 0 #a78bfa, var(--shadow); }
.hall-ad { position: relative; align-self: start; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sim-bg); }
.hall-ad img { width: 100%; height: 100%; object-fit: contain; display: block; }
.k-worst .hall-ad img { filter: grayscale(.55); }
.hall-grade { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 900 18px/1 var(--font); color: var(--ink); }
.hall-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.hall-label { font-family: var(--pixel-b); font-size: 20px; line-height: 1.3; color: var(--ink); }
.hall-meta { font-size: 13px; color: var(--ink-3); }
.hall-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--ink-2); }
.hall-stats b { font-size: 22px; font-weight: 900; color: var(--ink); }
.k-best .hall-stats b { color: var(--brand-ink); }
.hall-title { padding: 2px 8px; border-radius: 999px; background: var(--bg); font-weight: 700; color: var(--ink-2); }
.hall-voice { display: flex; gap: 10px; align-items: center; }
.hall-voice .iv-av { --c: var(--line); width: 36px; height: 48px; }
.hall-voice p { margin: 0; font-size: 14px; color: var(--ink-2); }
.hall-voice b { color: var(--ink); margin-right: 4px; }
.hall-note { margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--gold-soft); font-size: 13px; color: var(--ink-2); }
.hall-foot { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.hall-prompt summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.hall-prompt div { margin-top: 6px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg); font-size: 13px; white-space: pre-wrap; }
@media (max-width: 560px) { .hall-card { grid-template-columns: 1fr; } .hall-ad { max-width: 260px; } }
.hl-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hl-form .input { width: auto; flex: 1 1 180px; }
.hl-form select.input { flex: 0 0 auto; }
.hall-ex { font-family: var(--font); font-size: 12px; vertical-align: 3px; background: var(--bg); color: var(--ink-3); }
.hall-sample-note { margin: 16px 0 0; }
.hall-ad img[src^="data:image/svg"] { image-rendering: pixelated; }

/* case library (fan-made example campaigns) */
.ex-chip { font-style: normal; display: inline-block; font-size: 11px; font-weight: 800; color: #6d28d9; background: #ede9fe; border-radius: 999px; padding: 2px 8px; }
.cases { display: grid; gap: 18px; }
.case { padding: 18px; display: grid; gap: 14px; }
.case-head { display: flex; gap: 12px; align-items: center; }
.case-head h3 { margin: 2px 0 0; font-size: 18px; }
.case-vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.case-entry { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; background: var(--card); }
.case-entry.hit { border-color: #86efac; }
.case-entry.flop, .case-entry.blocked { border-color: #fca5a5; }
.ce-img { position: relative; aspect-ratio: 1; background: #ece8f5; }
.ce-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ce-tag { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 900; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; color: #fff; background: #16a34a; }
.flop .ce-tag, .blocked .ce-tag { background: #dc2626; }
.ce-blocked { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: #b91c1c; background: repeating-linear-gradient(45deg, #fef2f2, #fef2f2 16px, #fee2e2 16px, #fee2e2 32px); }
.ce-body { padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.ce-title { font-size: 18px; font-weight: 900; }
.ce-kpis { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink-2); }
.ce-kpis b { color: var(--ink); }
.ce-sum { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ce-prob { font-size: 12px; font-weight: 700; color: #b91c1c; }
.hit .ce-prob { color: var(--ink-3); font-weight: 600; }
.ce-by { font-size: 12px; color: var(--ink-3); }
