/* ==========================================================================
   Brand Recall - loud packaging, sticker labels and a TV that never switches off.
   Hot magenta belongs to this game; ink and paper belong to the family.
   ========================================================================== */

:root {
  --radius: 18px;
  --radius-sm: 12px;
  --tap: 62px;
  --maxw: 640px;

  --ink: #1d1530;
  --ink-dim: #3f3552;
  --ink-faint: #5b5170;

  --bg-0: #fff3e2;
  --card: #fffaf2;
  --line: #1d1530;

  --accent: #ff4fc8;
  --accent-2: #ffb3e6;
  --sun: #ffd23f;
  --sky: #5fd3ff;
  --lime: #9be15d;
  --tang: #ff8a3d;

  --good: #46e0a8;
  --warn: #ffc061;
  --bad: #ff6b6b;

  --shadow: 4px 5px 0 var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, summary, a { touch-action: manipulation; }
button, input { font-family: inherit; color: inherit; }

html {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; isolation: isolate; }

.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(135deg, #ff4fc80d 0 22px, transparent 22px 44px),
    radial-gradient(circle, #1d153012 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--bg-0);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--accent); color: var(--ink); padding: 10px 14px; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[data-screen-heading]:focus { outline: none; }

/* ---------- header ---------- */
.app-header {
  display: flex; align-items: center; gap: 8px; min-height: 58px;
  padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left));
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; margin: 0 auto; min-width: 0; }
.brand-mark { width: 32px; height: 32px; flex: none; transform: rotate(-6deg); }
.app-title { font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0; font-weight: 900; white-space: nowrap; }
@media (max-width: 430px) { .app-header:has(.round-badge:not([hidden])) .app-title { font-size: 0.82rem; letter-spacing: 0.04em; } }
.round-badge { font-size: 0.75rem; font-weight: 700; color: var(--ink-dim); white-space: nowrap; flex: none; }
.ghost-btn {
  min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--card); font-weight: 800; font-size: 0.85rem; cursor: pointer; flex: none;
}

/* ---------- layout ---------- */
.app {
  max-width: var(--maxw); margin: 0 auto;
  padding: 6px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.screen { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.screen > * { min-width: 0; }
.centre { text-align: center; }
.lede { color: var(--ink-dim); margin: 0; font-size: 1rem; line-height: 1.5; }
.small { font-size: 0.8rem; color: var(--ink-faint); margin: 0; line-height: 1.45; }
.eyebrow { margin: 0; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-dim); }
h2 { margin: 0; font-size: 1.9rem; line-height: 1.08; letter-spacing: -0.03em; overflow-wrap: anywhere; }

.card {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px;
}
.card-label { margin: 0 0 10px; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); width: 100%; padding: 12px 18px;
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 1.25rem; font-weight: 900; cursor: pointer; background: var(--card);
  transition: transform 90ms ease, box-shadow 90ms ease;
}
.btn:active:not(:disabled) { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--accent); }
.btn.secondary { background: var(--card); }
.btn.good { background: var(--good); }
.btn.warn { background: var(--warn); }
.btn.bad { background: var(--bad); }
.btn.start { justify-content: space-between; font-size: 1.25rem; min-height: 64px; }
.link-btn { background: none; border: 0; padding: 10px; min-height: 44px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 0.95rem; }
.home-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--ink); font-weight: 800; text-underline-offset: 4px; }

.actions { display: grid; gap: 10px; }
.actions.two { grid-template-columns: 1fr 1fr; }
.actions.three { grid-template-columns: 1.3fr 1fr 1fr; }
.actions.three .btn { font-size: 0.98rem; padding: 10px 8px; }
.actions.stack { grid-template-columns: 1fr; }

/* ---------- setup ---------- */
.setup-hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 4px; }
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { max-width: 22ch; margin-bottom: 8px; line-height: 1.4; }
.hero-title {
  font-family: "Arial Black", "Segoe UI Black", system-ui, sans-serif; font-weight: 900;
  font-size: clamp(2.3rem, 11vw, 4.2rem); line-height: 0.92; letter-spacing: -0.06em; text-transform: uppercase;
}
.hero-title span {
  display: inline-block; margin-top: 6px; padding: 2px 8px 6px; font-size: 0.78em;
  background: var(--accent); border: 3px solid var(--ink); box-shadow: var(--shadow); transform: rotate(-4deg);
}
.hero-art { width: 100%; height: auto; max-height: 220px; overflow: visible; }
.art-tv { transform-origin: 50% 90%; }
.intro .art-tv { animation: tv-in 700ms cubic-bezier(.2,.8,.2,1.2) both; }
.intro .art-tag { animation: tag-swing 1400ms 200ms ease-in-out both; transform-origin: 292px 18px; }
.intro .art-note-one { animation: note-bob 1200ms 300ms ease-in-out 2 both; }
.intro .art-note-two { animation: note-bob 1200ms 500ms ease-in-out 2 both; }
.intro .art-bubble { animation: pop-in 500ms 450ms cubic-bezier(.2,.8,.2,1.4) both; transform-origin: 20% 90%; }
@keyframes tv-in { from { transform: translateY(30px) scale(.8) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tag-swing { 0% { transform: rotate(-30deg); } 40% { transform: rotate(12deg); } 70% { transform: rotate(-6deg); } 100% { transform: rotate(0); } }
@keyframes note-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px) rotate(-6deg); } }
@keyframes pop-in { from { transform: scale(0); } to { transform: scale(1); } }

.edition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.edition {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 80px; padding: 8px 4px;
  background: var(--bg-0); border: 3px solid var(--ink); border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 900; transition: transform 140ms ease;
}
.edition .flag { font-size: 1.6rem; line-height: 1.1; }
.edition .ed-name { font-size: 0.9rem; }
.edition small { font-size: 0.68rem; font-weight: 700; color: var(--ink-faint); }
.edition.on { background: var(--sun); box-shadow: 3px 4px 0 var(--ink); transform: translateY(-3px) rotate(-2deg); }

.segment { display: flex; flex-wrap: wrap; gap: 6px; }
.segment.wide { display: grid; grid-template-columns: 1fr 1.4fr; margin-bottom: 12px; }
.seg {
  min-height: 44px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--card); font-weight: 800; font-size: 0.92rem; cursor: pointer; flex: 1 1 auto; line-height: 1.2;
}
.seg.on { background: var(--ink); color: var(--card); }

.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stepper-label { display: flex; flex-direction: column; min-width: 0; }
.stepper-label small { color: var(--ink-faint); font-size: 0.8rem; }
.stepper { display: flex; align-items: center; gap: 8px; }
.step {
  width: 48px; height: 48px; border-radius: 14px; border: 3px solid var(--ink); background: var(--accent-2);
  font-size: 1.4rem; font-weight: 900; cursor: pointer; box-shadow: 2px 3px 0 var(--ink);
}
.step:disabled { opacity: .35; cursor: not-allowed; }
.step-value { min-width: 32px; text-align: center; font-weight: 900; font-size: 1.5rem; }

.lineup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lineup li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 2px dashed var(--ink);
  border-radius: var(--radius-sm); background: #fffaf2b0; font-size: 0.85rem; min-width: 0;
}
.lineup li.ok { border-style: solid; background: var(--card); }
.lineup li.off { opacity: 0.7; }
.lineup small { display: block; color: var(--ink-faint); font-size: 0.72rem; overflow-wrap: anywhere; }
.lineup-icon { font-size: 1.3rem; }

details.card summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; list-style: none;
  font-weight: 900;
}
details.card summary::-webkit-details-marker { display: none; }
details[open] > summary > span { transform: rotate(45deg); }
details.card summary > span { font-size: 1.5rem; transition: transform 160ms ease; }
.name-list, .option-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.name-row { display: flex; align-items: center; gap: 10px; }
.name-num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); font-weight: 900; font-size: 0.85rem; }
.name-row input {
  flex: 1; min-width: 0; min-height: 48px; font-size: 16px; padding: 10px 12px;
  border: 2px solid var(--ink); border-radius: var(--radius-sm); background: #fff;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 800; font-size: 0.9rem; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px;
  padding: 6px 2px; background: none; border: 0; text-align: left; cursor: pointer;
}
.toggle-row small { display: block; font-size: 0.78rem; color: var(--ink-faint); }
.switch { width: 54px; height: 32px; flex: none; border-radius: 999px; border: 2px solid var(--ink); background: #e5dccd; position: relative; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); transition: left 140ms ease; }
.switch.on { background: var(--accent); }
.switch.on .knob { left: 24px; }

.how-to ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.45; }
.how-to .small { margin-top: 10px; }
.setup-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding-bottom: 8px; }

/* ---------- in game ---------- */
.round-intro { padding-top: 10px; }
.round-card { text-align: center; background: var(--sun); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 7px 0 var(--ink); padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; }
.round-card h2 { font-family: "Arial Black", system-ui, sans-serif; font-size: clamp(2.4rem, 12vw, 3.6rem); text-transform: uppercase; letter-spacing: -0.05em; }
.round-icon { font-size: 3rem; margin: 0; line-height: 1; }
.pop { animation: card-pop 520ms cubic-bezier(.2,.8,.2,1.3) both; }
@keyframes card-pop { from { transform: scale(.7) rotate(-5deg); opacity: 0; } to { transform: none; opacity: 1; } }

.scoreboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scoreboard li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-sm); }
.scoreboard li:first-child { background: var(--accent-2); }
.scoreboard .rank { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--card); font-weight: 900; font-size: 0.8rem; }
.scoreboard .sb-name { flex: 1; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.scoreboard .sb-score { font-weight: 900; font-size: 1.2rem; }

.handover { padding-top: 6px; }
.pass-art { height: 90px; display: grid; place-items: center; }
.pass-phone { width: 52px; height: 86px; border: 4px solid var(--ink); border-radius: 12px; background: var(--accent); box-shadow: var(--shadow); animation: pass-wiggle 1100ms ease-in-out 2; }
@keyframes pass-wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateX(10px); } }

.play-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }
.clock { font-variant-numeric: tabular-nums; font-size: 2.4rem; font-weight: 900; letter-spacing: -0.03em; }
.clock.urgent { color: #b3122e; }
.turn-score { font-weight: 800; font-size: 0.95rem; }
.clock-track { height: 10px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--card); }
.clock-track span { display: block; height: 100%; background: var(--accent); transform-origin: left; transition: transform 200ms linear; }

/* Private card: fixed geometry whatever the brand, so its shape tells nobody anything. */
.brand-card {
  height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
  text-align: center; padding: 18px; background: var(--card); border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 6px 7px 0 var(--ink); overflow: hidden auto;
}
.card-cat { margin: 0; font-size: 0.78rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
.brand-name { font-family: "Arial Black", system-ui, sans-serif; font-size: clamp(2rem, 10vw, 3.2rem); line-height: 1.02; letter-spacing: -0.04em; }
.card-rule { margin: 0; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.4; }
.hook { font-size: clamp(1.5rem, 7vw, 2.1rem); line-height: 1.25; font-style: italic; }
.hook .blank { display: inline-block; padding: 0 8px; background: var(--accent); border: 2px solid var(--ink); border-radius: 8px; font-style: normal; transform: rotate(-2deg); }

.stage-pill { padding: 6px 14px; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; }
.stage-dots { display: flex; gap: 6px; justify-content: center; }
.stage-dots i { width: 34px; height: 8px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); }
.stage-dots i.on { background: var(--accent); }
.zoom-stage {
  position: relative; height: min(62vw, 330px); min-height: 220px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 7px 0 var(--ink);
}
.zoom-stage img {
  max-width: 86%; max-height: 80%; opacity: 0; user-select: none; -webkit-user-drag: none; pointer-events: none;
  transition: transform 900ms cubic-bezier(.3,.7,.2,1);
}
.zoom-stage img.shown { opacity: 1; }
.zoom-timer { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 6px; border-radius: 999px; background: #1d153022; overflow: hidden; }
.zoom-timer i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.zoom-timer i.run { animation: drain linear both; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.tune-card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 18px; background: var(--card); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 7px 0 var(--ink); }
.play-btn { position: relative; width: 170px; height: 170px; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.play-btn .vinyl { width: 100%; height: 100%; display: block; }
.play-btn.spin .vinyl { animation: spin 3s linear 1; }
.play-glyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--card); text-shadow: 0 2px 0 var(--ink); padding-left: 6px; }
@keyframes spin { to { transform: rotate(1080deg); } }

.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick-btn {
  min-height: 64px; padding: 10px; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--accent-2);
  box-shadow: var(--shadow); font-weight: 900; font-size: 1.05rem; cursor: pointer; overflow-wrap: anywhere;
}

.reveal-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--card); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 7px 0 var(--ink); padding: 20px 16px; }
.reveal-card.won { background: #e6fff3; }
.reveal-logo { width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; }
.reveal-logo img { max-width: 90%; max-height: 150px; }
.reveal-hook { margin: 0; font-style: italic; font-size: 1.2rem; line-height: 1.35; }
.award { margin: 0; font-weight: 900; font-size: 1.15rem; padding: 6px 14px; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; }
.credit { margin: 0; font-size: 0.72rem; color: var(--ink-faint); overflow-wrap: anywhere; }

.turn-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.turn-log li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--card); }
.turn-log li.got { background: #e6fff3; }
.turn-log .tl-name { flex: 1; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.turn-log small { color: var(--ink-faint); text-align: right; }

.final { position: relative; }
.win-card { text-align: center; background: var(--accent); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 6px 7px 0 var(--ink); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; }
.trophy { font-size: 3.6rem; margin: 0; line-height: 1; }
.win-card h2 { font-family: "Arial Black", system-ui, sans-serif; font-size: clamp(2rem, 10vw, 3rem); text-transform: uppercase; letter-spacing: -0.04em; }
.win-card .lede { color: var(--ink); }
.breakdown { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; font-size: 0.9rem; }
.breakdown th, .breakdown td { padding: 8px 6px; text-align: center; border-bottom: 1px solid #1d153030; }
.breakdown th[scope="row"] { text-align: left; overflow-wrap: anywhere; }
.confetti { position: absolute; inset: -10px 0 auto; height: 360px; overflow: hidden; pointer-events: none; z-index: 2; }
.confetti i { position: absolute; top: -20px; left: var(--x); width: 10px; height: 16px; border: 2px solid var(--ink); opacity: 0; animation: fall 2600ms var(--d) ease-in both; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(360px) rotate(var(--r)); } }

.cover { padding-top: 60px; }
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.credits li { padding: 8px 10px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-sm); overflow-wrap: anywhere; font-size: 0.9rem; }
.credits small { display: block; color: var(--ink-faint); }

.deal { animation: deal 380ms cubic-bezier(.2,.8,.2,1.2) both; }
@keyframes deal { from { transform: translateX(26px) rotate(3deg); } to { transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 380px) {
  .setup-hero { grid-template-columns: 1fr 0.9fr; }
  .edition-grid { gap: 6px; }
  .edition .flag { font-size: 1.35rem; }
  .segment.wide { grid-template-columns: 1fr; }
  .lineup { grid-template-columns: 1fr; }
  .lineup li { flex-direction: row; align-items: center; gap: 8px; }
  .brand-card { height: 270px; }
  .actions.three { grid-template-columns: 1fr 1fr; }
  .actions.three .btn.good { grid-column: 1 / -1; }
}
@media (max-height: 600px) and (max-width: 599px) {
  .hero-art { max-height: 150px; }
  .brand-card { height: 240px; }
  .zoom-stage { height: 220px; }
}
@media (min-width: 700px) and (max-height: 520px) {
  :root { --maxw: 960px; }
  .setup { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-items: start; }
  .setup > * { grid-column: 2; }
  .setup > .setup-hero { grid-column: 1; grid-row: 1 / span 3; }
  .play { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px 20px; align-items: center; }
  .play > .play-top, .play > .clock-track, .play > .stage-dots { grid-column: 2; }
  .play > .brand-card, .play > .zoom-stage, .play > .tune-card { grid-column: 1; grid-row: 1 / span 4; height: calc(100svh - 110px); min-height: 220px; }
  .play > .actions { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .confetti { display: none; }
}
@media (forced-colors: active) {
  .btn, .card, .edition, .seg { border-color: CanvasText; }
}

/* ==========================================================================
   Version 2: big text, one instruction per screen, full screen logos.
   ========================================================================== */
.rule { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.centre .rule, .round-card .rule, .rotate .rule, .handover .rule { text-align: center; }
.handover h2, .pick h2, .turn-end h2 { font-size: clamp(2rem, 9vw, 2.8rem); text-align: center; }
.turn-end .eyebrow, .turn-end .rule { text-align: center; }
.brand-name { font-size: clamp(2.4rem, 12vw, 4rem); }
.card-rule { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.answer-name { font-family: "Arial Black", system-ui, sans-serif; font-size: clamp(2.3rem, 11vw, 3.8rem); line-height: 1; letter-spacing: -0.03em; }
.lineup b { font-size: 1rem; }
.lineup small { font-size: 0.8rem; }

/* Turn-the-phone hint */
.turn-hint { display: flex; justify-content: center; }
.turn-phone { width: 96px; height: 96px; animation: turn-it 1.8s ease-in-out 3 both; transform-origin: 50% 50%; }
.turn-hint.big .turn-phone { width: 160px; height: 160px; }
@keyframes turn-it { 0%, 25% { transform: rotate(0); } 65%, 100% { transform: rotate(-90deg); } }
.rotate { min-height: calc(100vh - 40px); min-height: calc(100dvh - 40px); justify-content: center; align-items: center; text-align: center; padding: 20px; }
.rotate h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
.rotate .btn { max-width: 340px; }

/* Full screen logo round: the header goes, the logo gets the screen. */
body.full .app-header { display: none; }
body.full .app { max-width: none; padding: 0; }
.logo-full {
  position: fixed; inset: 0; z-index: 5; background: #fff;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.logo-full .zoom-stage { height: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.logo-full .zoom-stage img { max-width: 92%; max-height: 86%; }
.logo-full .stage-pill { position: absolute; top: 12px; left: 12px; font-size: 1.35rem; z-index: 1; }
.logo-count { position: absolute; top: 12px; right: 12px; z-index: 1; font-weight: 900; font-size: 1.2rem; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; }
.logo-full .zoom-timer { height: 10px; bottom: 14px; }
.logo-actions { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; padding: 12px; background: var(--bg-0); border-top: 3px solid var(--ink); }
.logo-actions .btn { font-size: 1.2rem; padding: 10px 8px; min-height: 68px; }
.logo-actions .btn.good { font-size: 1.5rem; }
@media (orientation: landscape) {
  .logo-full { grid-template-columns: minmax(0, 1fr) clamp(180px, 26vw, 260px); grid-template-rows: minmax(0, 1fr); }
  .logo-actions { grid-template-columns: 1fr; align-content: center; border-top: 0; border-left: 3px solid var(--ink); }
  .logo-actions .btn.good { min-height: 120px; font-size: 1.8rem; }
}

/* The answer, shown to the room every time. */
.answer { text-align: center; }
.answer-card { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #e6fff3; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 7px 0 var(--ink); padding: 18px 16px; }
.tick { margin: 0; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--good); border: 3px solid var(--ink); font-size: 2.2rem; font-weight: 900; }
.answer-logo { width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.answer-logo img { max-width: 86%; max-height: 130px; }
.paused-note { margin: 0; font-weight: 800; color: var(--ink-faint); }

.reveal-full {
  position: fixed; inset: 0; z-index: 5; overflow: auto; background: var(--bg-0);
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  display: flex;
}
.reveal-full .reveal-card { flex: 1; display: grid; grid-template-rows: minmax(160px, 1fr) auto; gap: 12px; box-shadow: none; border: 0; background: transparent; padding: 0; }
.reveal-full .reveal-card.won { background: transparent; }
.reveal-full .reveal-logo { height: 100%; min-height: 160px; border: 3px solid var(--ink); border-radius: 20px; }
.reveal-full .reveal-logo img { max-width: 88%; max-height: 85%; }
.reveal-copy { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.reveal-copy .btn { max-width: 420px; }
@media (orientation: landscape) {
  .reveal-full .reveal-card { grid-template-columns: 1.3fr 1fr; grid-template-rows: minmax(0, 1fr); align-items: center; gap: 18px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .reveal-copy { gap: 5px; }
  .reveal-full .answer-name { font-size: clamp(1.8rem, 7vh, 2.6rem); }
  .reveal-full .award { font-size: 1rem; padding: 4px 12px; }
  .reveal-full .btn { min-height: 54px; }
  .reveal-full .flag-btn { min-height: 44px; padding: 4px 10px; }
}
.reveal .eyebrow { font-size: 0.9rem; }

/* Hum it */
.hum-card { height: 360px; justify-content: flex-start; padding-top: 22px; }
.hum-rule { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.2; }
.lyric { margin: 0; font-size: clamp(1.3rem, 6vw, 1.8rem); line-height: 1.4; font-style: italic; font-weight: 700; background: #fff; border: 2px dashed var(--ink); border-radius: 14px; padding: 12px 14px; }
.lyric.hint { font-style: normal; }
.lyric .blank { display: inline-block; padding: 0 8px; background: var(--accent); border: 2px solid var(--ink); border-radius: 8px; font-style: normal; transform: rotate(-2deg); }
.small-lyric { font-size: 1.15rem; }
.jingle .link-btn { align-self: center; }
.jingle.sung .hum-card { background: #fff6d6; }

/* Feedback */
.flag-btn { align-self: center; background: none; border: 0; min-height: 48px; padding: 8px 12px; font-weight: 800; font-size: 1rem; color: var(--ink-dim); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.flag-mini { flex: none; min-width: 48px; min-height: 48px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 1.1rem; }
.turn-log .tl-name small { display: block; font-weight: 600; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 20; background: #1d1530a6; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: min(100%, 560px); max-height: 92vh; max-height: 92dvh; overflow: auto;
  background: var(--card); border: 3px solid var(--ink); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px;
  animation: sheet-up 220ms ease-out both;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h2 { font-size: 1.5rem; }
.fb-reasons { display: grid; gap: 8px; }
.fb-reason { text-align: left; min-height: 54px; font-size: 1.05rem; border-radius: 14px; }
.fb-note { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.fb-note textarea { width: 100%; font: inherit; font-size: 16px; border: 2px solid var(--ink); border-radius: 12px; padding: 10px; resize: vertical; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; background: var(--ink); color: var(--card); padding: 14px 20px; border-radius: 999px; font-weight: 800; font-size: 1.05rem; box-shadow: 0 6px 18px #1d153055; max-width: calc(100% - 32px); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .turn-phone { transform: rotate(-90deg); }
}