/* One stylesheet for everything: marketing site, TV screen, phone, control panel. */

:root {
  --ink: #1d1b16;
  --ink-2: #4a463d;
  --muted: #6b665c;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --line: #e3dccd;
  --accent: #e8442e;
  --accent-ink: #fff;
  --accent-2: #f5b82e;
  --good: #1f9d55;
  --bad: #d23c2a;
  --navy: #14213d;
  --navy-2: #1d2d52;
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0.3em 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 1.6em 0 0.5em; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.center.lede { margin-inline: auto; }
.error { color: var(--bad); font-weight: 600; }
.notice { background: #e7f6ec; border: 1px solid #b9e3c6; padding: 12px 16px; border-radius: 10px; margin: 16px 0; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- buttons & forms ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
  font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 10px;
  text-decoration: none; cursor: pointer; transition: transform .06s, filter .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 6px 12px; font-size: .9rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1.1rem; }
.btn-good { background: var(--good); border-color: var(--good); }
.btn-bad { background: var(--bad); border-color: var(--bad); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 16px 0 8px; }
form { margin: 0; }
.stack { display: grid; gap: 14px; max-width: 460px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, select, textarea {
  font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }

/* ---------- site chrome ---------- */

.site main { padding: 0 16px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1120px; margin: 0 auto; }
.nav nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a:not(.btn) { text-decoration: none; font-weight: 600; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.03em; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1.3rem; transform: rotate(-6deg); }
.foot { max-width: 1120px; margin: 80px auto 0; padding: 32px 20px 48px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.narrow { max-width: 720px; margin: 0 auto; }
.narrow-wide { max-width: 1040px; margin: 0 auto; }
.wide { max-width: 1040px; margin: 0 auto; }
@media (max-width: 560px) { .nav nav a:not(.btn):not(:first-child) { display: none; } }

/* ---------- home ---------- */

.hero { max-width: 1120px; margin: 24px auto 0; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: .8rem; color: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

.hero-art { position: relative; padding: 10px 40px 40px 0; }
.tv { background: #111; padding: 12px; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.tv-screen { background: var(--navy); color: #fff; border-radius: 6px; padding: 22px; aspect-ratio: 16/9; display: flex; flex-direction: column; gap: 12px; }
.tv-round { color: var(--accent-2); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.tv-q { font-weight: 800; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.25; }
.tv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-weight: 700; font-size: .9rem; }
.tv-opts span { background: var(--navy-2); padding: 8px 10px; border-radius: 6px; }
.tv-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: .8rem; color: #b8c2db; }
.tv-timer { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 6px; font-weight: 800; }
.phone { position: absolute; right: 0; bottom: 0; width: 120px; background: #111; border-radius: 22px; padding: 8px; transform: rotate(6deg); box-shadow: 0 20px 40px -10px rgba(0,0,0,.45); }
.phone-screen { background: var(--paper); border-radius: 15px; padding: 10px 8px; display: grid; gap: 6px; }
.ph-team { font-size: .6rem; font-weight: 800; text-align: center; }
.ph-opt { background: #fff; border: 2px solid var(--line); border-radius: 8px; text-align: center; font-weight: 900; padding: 6px; }
.ph-opt.sel { background: var(--accent); border-color: var(--accent); color: #fff; }

.join-box { max-width: 520px; margin: 48px auto; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; box-shadow: 6px 6px 0 var(--ink); }
.join-box label { font-weight: 800; }
.join-row { display: flex; gap: 10px; margin-top: 8px; }
.join-row input, .join-box.big input { text-transform: uppercase; letter-spacing: .3em; font-weight: 900; font-size: 1.4rem; text-align: center; }

.steps, .uses, .features, .packs-teaser, .price-teaser, .faq { max-width: 1040px; margin: 64px auto 0; }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; margin-bottom: 10px; }
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { background: var(--card); border-radius: var(--radius); padding: 18px; border-top: 5px solid var(--accent); }
.use:nth-child(2) { border-color: var(--accent-2); }
.use:nth-child(3) { border-color: var(--good); }
.use:nth-child(4) { border-color: var(--navy); }
.use h3 { margin: 0 0 6px; font-size: 1.1rem; }
.use p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .steps ol, .uses { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 900; }
.features .ticks { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
@media (max-width: 700px) { .features .ticks { grid-template-columns: 1fr; } }
.price-teaser { background: var(--navy); color: #fff; border-radius: 20px; padding: 32px; }
.price-teaser h2 { margin-top: 0; }
.price-teaser .btn { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; }

.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pack-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; transition: transform .1s, box-shadow .1s; }
.pack-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.pack-card h3 { margin: 8px 0 6px; }
.pack-card p { margin: 0 0 6px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; vertical-align: middle; }
.tag-free { background: var(--good); }
.round-list { columns: 2; }
.sample li { margin-bottom: 8px; }

/* ---------- pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0; align-items: start; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 10px; position: relative; }
.price-card h2 { margin: 0; }
.price-card form .btn, .price-card > .btn { width: 100%; }
.price-card.featured { border: 3px solid var(--accent); box-shadow: 0 20px 40px -24px rgba(232,68,46,.6); }
.price { font-size: 2.4rem; font-weight: 900; margin: 0; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.ribbon { position: absolute; top: -13px; left: 20px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- dashboard ---------- */

.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.list { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.row .grow { flex: 1; min-width: 0; }
@media (max-width: 560px) { .row { flex-wrap: wrap; } .row .grow { flex-basis: 100%; } }
.code-chip { font-family: ui-monospace, monospace; background: var(--ink); color: #fff; padding: 1px 6px; border-radius: 5px; font-size: .85rem; letter-spacing: .1em; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.kpis div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; }
.kpis b { font-size: 1.6rem; }
.kpis span { color: var(--muted); font-size: .85rem; }
.tbl { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tbl td, .tbl th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }

/* ---------- article (SEO pages) ---------- */

.article .qa li { margin-bottom: 14px; }
.article .qa p { margin: 0 0 4px; font-weight: 600; }
.article .qa .opts { font-weight: 400; color: var(--ink-2); white-space: pre-wrap; }
.article details summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: .9rem; }
.callout { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; margin: 28px 0; box-shadow: 5px 5px 0 var(--ink); }

/* =================================================================
   Player (phone)
   ================================================================= */

.play-body { background: var(--paper); min-height: 100dvh; }
.join-page { min-height: 100dvh; display: grid; place-content: center; padding: 16px; gap: 10px; justify-items: center; }
.join-box.big { margin: 20px 0; display: grid; gap: 12px; width: min(420px, 92vw); }
.join-box.big input { font-size: 2rem; }

.pl { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); gap: 14px; }
.pl-top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); font-weight: 700; gap: 8px; }
.pl-team { background: var(--ink); color: #fff; padding: 3px 10px; border-radius: 999px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-main { flex: 1; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.pl h1 { font-size: 1.8rem; margin: 0; text-align: center; }
.pl .big-msg { text-align: center; font-size: 1.3rem; font-weight: 800; }
.pl .sub { text-align: center; color: var(--muted); }
.pl-q { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.pl-qnum { color: var(--accent); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; font: inherit; font-weight: 700; font-size: 1.1rem; padding: 16px; border-radius: 14px; border: 3px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.opt .letter { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 9px; background: var(--paper); font-weight: 900; }
.opt.sel { border-color: var(--accent); background: #fff1ee; }
.opt.sel .letter { background: var(--accent); color: #fff; }
.opt.correct { border-color: var(--good); background: #e9f8ef; }
.opt.correct .letter { background: var(--good); color: #fff; }
.opt:disabled { cursor: default; }
.answer-form { display: grid; gap: 10px; }
.answer-form input { font-size: 1.3rem; padding: 14px; }
.saved { text-align: center; color: var(--good); font-weight: 700; }
.timer-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.timer-bar i { display: block; height: 100%; background: var(--accent); transition: width .25s linear; }
.verdict { text-align: center; font-size: 2rem; font-weight: 900; }
.verdict.good { color: var(--good); }
.verdict.bad { color: var(--bad); }
.joker-btn { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink); font-size: 1.1rem; padding: 16px; }
.rank { font-size: 4rem; font-weight: 900; text-align: center; line-height: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 10; max-width: 90vw; }
.conn { position: fixed; top: 0; left: 0; right: 0; background: var(--accent-2); color: var(--ink); text-align: center; font-weight: 700; font-size: .85rem; padding: 4px; z-index: 20; }

/* =================================================================
   Screen (TV) — sized in vh/vw so it reads from the back of a pub
   ================================================================= */

.screen-body { background: var(--navy); color: #fff; min-height: 100vh; overflow: hidden; }
.sc { height: 100vh; display: flex; flex-direction: column; padding: 3.5vh 4vw; gap: 2.5vh; }
.sc-top { display: flex; justify-content: space-between; align-items: center; font-size: 2.2vh; font-weight: 700; color: #b8c2db; }
.sc-top .brand { color: #fff; font-weight: 900; }
.sc-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3vh; min-height: 0; }
.sc-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 2.4vh; color: #b8c2db; font-weight: 700; }
.sc-title { font-size: 7.5vh; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.sc-kicker { color: var(--accent-2); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 2.8vh; }
.sc-q { font-size: 6vh; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.sc-q.long { font-size: 4.6vh; }
.sc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 2vh 2vw; }
.sc-opt { background: var(--navy-2); border-radius: 1.4vh; padding: 2.2vh 2vw; font-size: 3.6vh; font-weight: 800; display: flex; gap: 1.5vw; align-items: center; position: relative; overflow: hidden; }
.sc-opt .letter { background: rgba(255,255,255,.12); border-radius: 1vh; min-width: 6vh; height: 6vh; display: grid; place-items: center; }
.sc-opt.correct { background: var(--good); }
.sc-opt.dim { opacity: .45; }
.sc-opt .count { margin-left: auto; font-size: 2.6vh; opacity: .9; }
.sc-answer { font-size: 7vh; font-weight: 900; color: var(--accent-2); }
.sc-note { font-size: 3vh; color: #d7dcea; max-width: 70vw; }
.sc-got { font-size: 2.6vh; color: #b8c2db; }
.sc-timer { font-size: 5vh; font-weight: 900; background: var(--accent); color: #fff; border-radius: 1.2vh; padding: .3vh 2vh; min-width: 12vh; text-align: center; }
.sc-timer.urgent { animation: pulse .5s infinite alternate; }
@keyframes pulse { to { transform: scale(1.06); } }
.sc-closed { font-size: 3vh; font-weight: 900; color: var(--accent-2); text-transform: uppercase; letter-spacing: .06em; }

.lobby { display: grid; grid-template-columns: auto 1fr; gap: 5vw; align-items: center; }
.lobby .qr { background: #fff; padding: 2vh; border-radius: 2vh; width: 38vh; height: 38vh; }
.lobby .qr img { width: 100%; height: 100%; display: block; }
.join-how { font-size: 3.6vh; font-weight: 700; color: #d7dcea; }
.join-how strong { color: #fff; }
.big-code { font-size: 14vh; font-weight: 900; letter-spacing: .15em; color: var(--accent-2); line-height: 1; margin: 1vh 0; }
.team-cloud { display: flex; flex-wrap: wrap; gap: 1.2vh; margin-top: 2vh; max-height: 30vh; overflow: hidden; }
.team-cloud span { background: var(--navy-2); padding: .8vh 1.8vh; border-radius: 99px; font-size: 2.6vh; font-weight: 800; }
.team-cloud span.new { animation: pop .3s ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.board { display: grid; gap: 1.1vh; max-height: 72vh; overflow: hidden; }
.board .r { display: grid; grid-template-columns: 8vh 1fr auto; align-items: center; gap: 2vw; background: var(--navy-2); border-radius: 1.2vh; padding: 1.2vh 2vw; font-size: 3.4vh; font-weight: 800; }
.board .r .pos { color: var(--accent-2); font-weight: 900; }
.board .r.top { background: var(--accent); }
.board .r.top .pos { color: #fff; }
.board .r .pts { font-size: 4vh; }
.board.compact .r { font-size: 2.6vh; padding: .8vh 1.6vw; }
.board .jk { font-size: 2vh; background: var(--accent-2); color: var(--ink); padding: .2vh 1vh; border-radius: 99px; margin-left: 1vw; vertical-align: middle; }
.podium { display: flex; justify-content: center; align-items: end; gap: 3vw; }
.podium > div { background: var(--navy-2); border-radius: 1.5vh 1.5vh 0 0; width: 24vw; text-align: center; padding: 1.5vh 1vw; font-weight: 900; display: flex; flex-direction: column; justify-content: flex-start; gap: .5vh; }
.podium .p1 { background: var(--accent); min-height: 26vh; order: 2; }
.podium .p2 { min-height: 20vh; order: 1; }
.podium .p3 { min-height: 15vh; order: 3; }
.podium .nm { font-size: 3.6vh; }
.podium .sc-pts { font-size: 3vh; opacity: .9; }
.podium .medal { font-size: 5vh; line-height: 1; }
.podium + .board { margin-top: 1vh; }
.sc-fullscreen { position: fixed; right: 1.5vw; top: 1.5vh; background: rgba(255,255,255,.12); color: #fff; border: 0; padding: 1vh 1.6vh; border-radius: 1vh; font: inherit; font-size: 1.8vh; cursor: pointer; opacity: .6; }
.sc-fullscreen:hover { opacity: 1; }
.screen-body:not(.mouse) .sc-fullscreen { opacity: 0; pointer-events: none; }
.screen-body:not(.mouse) { cursor: none; }

/* =================================================================
   Control panel (host's phone or laptop)
   ================================================================= */

.control-body { background: #eef0f5; }
.ct { max-width: 760px; margin: 0 auto; padding: 12px 14px 120px; display: grid; gap: 12px; }
.ct-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ct-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ct-head h1 { font-size: 1.2rem; margin: 0; }
.ct-links { display: grid; gap: 8px; }
.ct-link { display: flex; gap: 8px; align-items: center; }
.ct-link input { font-family: ui-monospace, monospace; font-size: .85rem; padding: 6px 8px; }
.ct-phase { font-weight: 800; color: var(--accent); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.ct-q { font-size: 1.15rem; font-weight: 800; margin: 4px 0; }
.ct-key { background: #e9f8ef; border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.ct-key b { color: var(--good); }
.ct-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; z-index: 5; }
.ct-bar .btn-next { flex: 1; max-width: 520px; font-size: 1.15rem; padding: 14px; }
.ans { display: grid; gap: 6px; }
.ans .a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #f6f7fa; }
.ans .a .t { font-weight: 700; min-width: 0; flex: 0 1 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ans .a .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ans .a.ok { background: #e9f8ef; }
.ans .a.no { background: #fdecea; }
.ans .a.maybe { background: #fff6dc; outline: 2px solid var(--accent-2); }
.mk { display: flex; gap: 4px; }
.mk button { border: 0; width: 36px; height: 32px; border-radius: 8px; font-weight: 900; cursor: pointer; background: #e3e6ee; }
.mk button.on-ok { background: var(--good); color: #fff; }
.mk button.on-no { background: var(--bad); color: #fff; }
.teams .tm { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef0f5; }
.teams .tm .nm { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.teams .tm .pts { font-weight: 900; min-width: 36px; text-align: right; }
.teams .tm button { border: 0; background: #e3e6ee; border-radius: 6px; padding: 4px 8px; cursor: pointer; font-weight: 800; }
.upsell { background: #fff6dc; border: 2px solid var(--accent-2); }
.pill { display: inline-block; background: #eef0f5; padding: 2px 8px; border-radius: 99px; font-size: .8rem; font-weight: 700; margin: 2px; }
.waiting { color: var(--muted); font-size: .9rem; }

/* =================================================================
   Editor
   ================================================================= */

.ed-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: sticky; top: 0; background: var(--paper); padding: 10px 0; z-index: 3; border-bottom: 1px solid var(--line); }
.ed-title { font-size: 1.5rem; font-weight: 800; border: 0; border-bottom: 2px dashed var(--line); border-radius: 0; background: transparent; padding: 4px 0; }
.ed-settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
@media (max-width: 700px) { .ed-settings { grid-template-columns: 1fr; } }
.ed-round { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 16px 0; }
.ed-round-head { display: flex; gap: 8px; align-items: center; }
.ed-round-head input { font-weight: 800; font-size: 1.1rem; }
.ed-q { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 8px; }
.ed-q-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-q-head .n { font-weight: 900; color: var(--muted); min-width: 28px; }
.ed-q-head select { width: auto; }
.ed-q-head .sp { flex: 1; }
.ed-opt { display: flex; gap: 8px; align-items: center; }
.ed-opt input[type=radio] { width: 22px; height: 22px; flex: none; accent-color: var(--good); }
.ed-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 600px) { .ed-grid2 { grid-template-columns: 1fr; } }
.icon-btn { border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; padding: 4px 6px; border-radius: 6px; color: var(--muted); }
.icon-btn:hover { background: var(--line); color: var(--ink); }
.ed-err { position: sticky; bottom: 12px; }
