:root {
  --ink: #171b18;
  --ink-soft: #29302b;
  --paper: #f7f5ef;
  --white: #ffffff;
  --lime: #d9ff63;
  --lime-deep: #b9e836;
  --coral: #ff7b67;
  --lavender: #b8b0ff;
  --muted: #6d756f;
  --line: #dcded6;
  --danger: #c94735;
  --shadow: 0 18px 50px rgba(23, 27, 24, 0.13);
  --display: "Space Grotesk", "Arial Black", sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, rgba(217, 255, 99, .09), transparent 28rem),
    radial-gradient(circle at 90% 85%, rgba(184, 176, 255, .1), transparent 30rem),
    var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
button { color: inherit; }
button, [role="button"] { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .43; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.04em; }
p { line-height: 1.55; }
svg { display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(0, 0, 0, .3);
}
.app-shell.is-dark { color: var(--paper); background: var(--ink); }
.screen {
  min-height: calc(100svh - 82px);
  padding: 14px 24px calc(30px + env(safe-area-inset-bottom));
  animation: screen-in .3s ease-out both;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: calc(14px + env(safe-area-inset-top)) 22px 10px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 5px 0;
  background: none;
  font: 700 21px/1 var(--display);
  letter-spacing: -.05em;
  cursor: pointer;
}
.logo-mark { position: relative; width: 23px; height: 23px; transform: rotate(-8deg); }
.logo-mark::before, .logo-mark::after {
  content: ""; position: absolute; border-radius: 50%; width: 13px; height: 13px;
}
.logo-mark::before { left: 0; top: 4px; background: var(--lime); }
.logo-mark::after { right: 0; top: 4px; background: var(--coral); mix-blend-mode: multiply; }
.is-dark .logo-mark::after { mix-blend-mode: normal; }
.topbar-right { display: flex; align-items: center; gap: 9px; }
.round-pill {
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
}
.is-dark .round-pill { color: #a8afa9; }
.icon-button {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer; transition: background .15s, transform .15s;
}
.icon-button:hover { background: rgba(125, 130, 124, .08); }
.icon-button:active { transform: scale(.92); }
.is-dark .icon-button { border-color: #3a403b; }
.is-dark .icon-button:hover { background: #252b26; }
.icon { width: 21px; height: 21px; flex: none; }

.home-screen { padding-top: 9px; }
.eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 17px;
  color: var(--muted); font-size: 11px; line-height: 1.3; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.is-dark .eyebrow { color: #a8afa9; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--coral); }
.home-title {
  margin: 0 0 16px; font-size: clamp(40px, 11vw, 54px); line-height: .99;
  letter-spacing: -.065em;
}
.home-title .accent { color: var(--lime); }
.home-copy { max-width: 370px; margin: 0 0 25px; color: #b6bcb7; font-size: 16px; }
.demo-scene { position: relative; height: 247px; margin: 3px 0 23px; }
.demo-card {
  position: absolute; left: 50%; top: 15px; width: 187px; height: 222px;
  padding: 18px; border-radius: 25px; box-shadow: 0 22px 45px rgba(0,0,0,.3);
}
.demo-card.back {
  color: var(--ink); background: var(--lavender); transform: translateX(-79%) rotate(-14deg);
}
.demo-card.front {
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--ink); background: var(--lime); transform: translateX(-27%) rotate(9deg);
}
.demo-card .mini-brand { font: 700 12px var(--display); letter-spacing: -.03em; }
.demo-card .demo-word { font: 700 29px/1.02 var(--display); letter-spacing: -.06em; }
.demo-card .demo-label { font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.demo-card .big-question { font: 700 110px/1 var(--display); text-align: center; opacity: .8; }
.demo-sticker {
  position: absolute; right: 0; bottom: 5px; z-index: 3; padding: 10px 15px;
  color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 50%;
  font: 700 10px/1.2 var(--display); letter-spacing: .03em; text-align: center;
  transform: rotate(-9deg); box-shadow: 3px 3px 0 var(--ink);
}
.home-actions { padding-bottom: env(safe-area-inset-bottom); }
.secondary-link {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 13px; padding: 12px; border: 0; background: none;
  color: #b6bcb7; font-weight: 600; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 57px; padding: 15px 20px; border: 1px solid transparent;
  border-radius: 17px; background: none; font-weight: 700; line-height: 1.2;
  cursor: pointer; transition: transform .14s, background .14s, box-shadow .14s;
}
.btn:not(:disabled):active { transform: scale(.975); }
.btn-primary { color: var(--ink); background: var(--lime); box-shadow: 0 6px 0 #a4c945; }
.btn-primary:hover { background: #e2ff8b; }
.btn-primary:active { box-shadow: 0 2px 0 #a4c945; }
.btn-dark { color: var(--paper); background: var(--ink); box-shadow: 0 5px 0 #000; }
.btn-dark:hover { background: #292f2a; }
.btn-outline { border-color: var(--line); background: transparent; }
.btn-outline:hover { background: rgba(125, 130, 124, .07); }
.is-dark .btn-outline { border-color: #414741; }
.btn-coral { color: var(--ink); background: var(--coral); box-shadow: 0 5px 0 #c74e3c; }
.btn-small { min-height: 45px; padding: 10px 15px; border-radius: 13px; font-size: 14px; }
.btn .icon { width: 19px; height: 19px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.action-stack { display: grid; gap: 12px; margin-top: 25px; }
.sticky-actions {
  position: sticky; bottom: 0; z-index: 5; margin: 28px -4px -30px;
  padding: 18px 4px calc(30px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--paper) 20%);
}
.is-dark .sticky-actions { background: linear-gradient(transparent, var(--ink) 20%); }

.section-heading { margin: 5px 0 24px; }
.section-heading h1, .section-heading h2 { margin-bottom: 10px; font-size: 34px; line-height: 1.08; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.setup-section { margin: 25px 0; }
.subheading {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 13px; font: 700 14px var(--display); letter-spacing: -.02em;
}
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer;
}
.stepper strong { min-width: 18px; text-align: center; }
.name-list { display: grid; gap: 9px; }
.name-row {
  display: flex; align-items: center; gap: 11px; height: 52px; padding: 4px 14px 4px 7px;
  border: 1px solid var(--line); border-radius: 15px; background: var(--white);
}
.player-number {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px;
  border-radius: 12px; background: var(--paper); color: var(--muted);
  font: 700 12px var(--display);
}
.name-row input {
  width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink);
  background: transparent; font-size: 16px; font-weight: 600;
}
.name-row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.name-row input:focus-visible { outline: 0; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 43px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip.selected { border-color: var(--ink); color: var(--ink); background: var(--lime); }
.chip.selected .chip-dot { background: var(--ink); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.timer-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.timer-option {
  padding: 12px 5px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--white); color: var(--muted); font-weight: 600; cursor: pointer;
}
.timer-option.selected { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.setup-note { display: flex; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.setup-note .icon { width: 17px; height: 17px; margin-top: 1px; }

.center-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100svh - 135px); text-align: center;
}
.handoff-avatar {
  display: grid; place-items: center; width: 79px; height: 79px; margin: 5px 0 21px;
  border: 1px solid #404740; border-radius: 27px; color: var(--ink); background: var(--lavender);
  font: 700 29px var(--display); transform: rotate(-4deg); box-shadow: 7px 7px 0 #303630;
}
.handoff-title { margin: 0 0 9px; font-size: 35px; line-height: 1.05; }
.handoff-copy { max-width: 300px; margin: 0 0 28px; color: #a8afa9; font-size: 15px; }
.progress-dots { display: flex; gap: 7px; margin-bottom: 28px; }
.progress-dot { width: 6px; height: 6px; border-radius: 50%; background: #3e453f; }
.progress-dot.done { background: var(--lime); }
.progress-dot.current { width: 20px; border-radius: 5px; background: var(--paper); }
.hold-button {
  position: relative; display: grid; place-items: center; width: 158px; height: 158px;
  margin: 2px 0 20px; padding: 22px; border: 0; border-radius: 50%;
  color: var(--ink); background: var(--lime); cursor: pointer; overflow: hidden;
  box-shadow: 0 0 0 8px rgba(217,255,99,.08), 0 12px 35px rgba(0,0,0,.25);
  touch-action: none;
}
.hold-button::before {
  content: ""; position: absolute; inset: 0; background: var(--paper); opacity: .4;
  transform: translateY(100%); transition: transform .15s;
}
.hold-button.is-holding::before { transform: translateY(0); transition: transform .72s linear; }
.hold-content { position: relative; z-index: 1; display: grid; place-items: center; gap: 8px; }
.hold-content .icon { width: 32px; height: 32px; }
.hold-content strong { max-width: 85px; font: 700 15px/1.15 var(--display); }
.hold-hint { color: #777f78; font-size: 12px; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin-top: 25px; color: #777f78; font-size: 12px; }
.privacy-note .icon { width: 15px; height: 15px; }

.role-stage { padding-top: 5px; }
.role-intro { margin-bottom: 18px; text-align: center; }
.role-intro .eyebrow { justify-content: center; margin-bottom: 8px; }
.role-intro h1 { margin-bottom: 0; font-size: 27px; }
.secret-card {
  position: relative; display: flex; flex-direction: column; min-height: 420px;
  padding: 25px; border-radius: 29px; overflow: hidden; color: var(--ink);
  background: var(--lime); box-shadow: var(--shadow);
}
.secret-card.impostor { background: var(--coral); }
.secret-card::after {
  content: ""; position: absolute; right: -55px; bottom: -70px; width: 210px; height: 210px;
  border: 35px solid rgba(23,27,24,.08); border-radius: 50%; pointer-events: none;
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-brand { font: 700 16px var(--display); }
.card-number { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.category-label {
  align-self: flex-start; margin-top: 38px; padding: 7px 11px; border: 1px solid rgba(23,27,24,.25);
  border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.word-label { margin: auto 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.secret-word { position: relative; z-index: 1; margin: 0 0 14px; font-size: clamp(41px, 12vw, 58px); line-height: .96; overflow-wrap: anywhere; }
.word-tip { position: relative; z-index: 1; max-width: 280px; margin: 0; font-size: 14px; line-height: 1.5; }
.impostor-symbol { margin: auto 0 7px; font: 700 84px/.9 var(--display); letter-spacing: -.08em; }
.impostor-title { position: relative; z-index: 1; margin: 0 0 12px; font-size: 39px; line-height: .96; }
.role-actions { margin-top: 22px; }
.role-actions .btn-outline { color: var(--paper); border-color: #414741; }

.briefing-stage .section-heading { text-align: center; }
.briefing-stage .section-heading .eyebrow { justify-content: center; }
.first-player {
  display: flex; align-items: center; gap: 15px; margin: 22px 0; padding: 17px;
  border-radius: 20px; background: var(--ink); color: var(--paper); text-align: left;
}
.first-player .handoff-avatar {
  flex: none; width: 52px; height: 52px; margin: 0; border: 0; border-radius: 16px;
  box-shadow: none; font-size: 20px;
}
.first-player small { display: block; margin-bottom: 3px; color: #abb1ac; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.first-player strong { font: 700 21px var(--display); }
.rule-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 24px; }
.rule-tile { padding: 15px 8px; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.rule-tile strong { display: block; margin: 8px 0 4px; font: 700 13px var(--display); }
.rule-tile span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.rule-tile .icon { margin: auto; }
.clue-order { margin: 20px 0; }
.clue-order-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.order-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.order-chip b { color: var(--ink); }
.order-arrow { color: #a4aaa5; }

.discussion-head { text-align: center; }
.discussion-head .eyebrow { justify-content: center; }
.discussion-head h1 { margin-bottom: 8px; font-size: 34px; }
.discussion-head p { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.timer-wrap { position: relative; width: 220px; height: 220px; margin: 8px auto 24px; }
.timer-ring {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(var(--lime-deep) calc(var(--progress, 1) * 1turn), #e4e5de 0);
  transform: rotate(-90deg); transition: background .3s linear;
}
.timer-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--paper); }
.timer-content { position: relative; z-index: 1; display: grid; place-items: center; transform: rotate(90deg); }
.timer-display { font: 700 52px/1 var(--display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.timer-caption { margin-top: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.timer-wrap.expired .timer-ring { background: var(--coral); }
.timer-controls { display: flex; justify-content: center; gap: 9px; margin-bottom: 25px; }
.timer-controls .btn { width: auto; min-width: 120px; }
.talking-card { padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); }
.talking-card .subheading { margin-bottom: 7px; }
.talking-card p { margin: 0; color: var(--muted); font-size: 13px; }

.vote-handoff .handoff-avatar { background: var(--lime); }
.vote-seal {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; padding: 7px 11px;
  border: 1px solid #3b423c; border-radius: 999px; color: #b2b8b3; font-size: 11px; font-weight: 600;
}
.vote-seal .icon { width: 13px; height: 13px; }
.ballot-heading { margin-bottom: 20px; }
.ballot-heading h1 { margin-bottom: 7px; font-size: 31px; }
.ballot-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.private-banner {
  display: flex; align-items: center; gap: 9px; margin-bottom: 17px; padding: 11px 13px;
  border-radius: 13px; background: #ece9ff; color: #514b83; font-size: 12px; font-weight: 600;
}
.private-banner .icon { width: 17px; height: 17px; }
.ballot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ballot-choice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 112px; padding: 14px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--white); text-align: left; cursor: pointer;
}
.ballot-choice:not(:disabled):hover { border-color: #989e99; }
.ballot-choice.selected { border-color: var(--ink); background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.ballot-avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--paper); font: 700 14px var(--display);
}
.ballot-choice.selected .ballot-avatar { background: rgba(255,255,255,.55); }
.ballot-name { max-width: 100%; font: 700 15px var(--display); overflow-wrap: anywhere; }
.you-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.choice-check { position: absolute; top: 13px; right: 13px; display: none; }
.ballot-choice.selected .choice-check { display: block; }

.tie-symbol { display: flex; justify-content: center; margin: 6px 0 23px; }
.tie-symbol span {
  display: grid; place-items: center; width: 74px; height: 88px; border-radius: 17px;
  background: var(--lavender); font: 700 34px var(--display); box-shadow: 5px 5px 0 var(--ink);
}
.tie-symbol span:first-child { transform: rotate(-10deg) translateX(6px); }
.tie-symbol span:last-child { transform: rotate(10deg) translateX(-6px); background: var(--coral); }
.tied-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 19px 0 25px; }
.tied-name { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 13px; }

.result-stage { text-align: center; }
.result-icon {
  display: grid; place-items: center; width: 88px; height: 88px; margin: 8px auto 24px;
  border-radius: 28px; background: var(--lavender); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-5deg);
}
.result-icon .icon { width: 42px; height: 42px; }
.result-stage h1 { margin-bottom: 13px; font-size: 37px; line-height: 1.03; }
.result-copy { max-width: 340px; margin: 0 auto 24px; color: var(--muted); }
.vote-tally { margin: 25px 0; padding: 17px; border: 1px solid var(--line); border-radius: 19px; text-align: left; }
.tally-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13px; }
.tally-row + .tally-row { border-top: 1px solid #eceee7; }
.tally-count { color: var(--muted); }
.guess-form { margin-top: 25px; text-align: left; }
.guess-form label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 13px; }
.text-input {
  width: 100%; height: 58px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 16px;
  color: var(--ink); background: var(--white); font-size: 18px; font-weight: 600;
}
.input-hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; }

.outcome-stage { text-align: center; }
.outcome-badge {
  display: inline-flex; padding: 8px 13px; margin-bottom: 20px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2deg);
}
.outcome-stage.impostor-win .outcome-badge { background: var(--coral); }
.outcome-stage h1 { margin-bottom: 13px; font-size: 42px; line-height: 1; }
.outcome-copy { max-width: 340px; margin: 0 auto 24px; color: var(--muted); }
.reveal-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.summary-card { padding: 17px 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.summary-card small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.summary-card strong { display: block; font: 700 20px/1.1 var(--display); overflow-wrap: anywhere; }
.summary-card.word { background: var(--lime); }
.summary-card.impostor { background: var(--lavender); }
.confetti { position: absolute; inset: 82px 0 auto; height: 340px; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 17px; border-radius: 3px; animation: fall 2.7s ease-out both; }
@keyframes fall { to { transform: translateY(340px) rotate(380deg); opacity: 0; } }

.dialog {
  width: min(calc(100% - 32px), 450px); max-height: min(82svh, 720px); padding: 0;
  border: 0; border-radius: 25px; color: var(--ink); background: var(--paper); box-shadow: 0 25px 100px rgba(0,0,0,.4);
}
.dialog::backdrop { background: rgba(8,12,9,.72); backdrop-filter: blur(4px); }
.dialog[open] { animation: screen-in .2s ease-out; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 6px 24px; }
.dialog-head h2 { margin: 0; font-size: 27px; }
.dialog-body { padding: 4px 24px 25px; overflow-wrap: anywhere; }
.dialog-body > p { color: var(--muted); font-size: 14px; }
.rules-list { display: grid; gap: 17px; margin: 21px 0; }
.rule-row { display: flex; gap: 13px; }
.rule-index {
  display: grid; place-items: center; flex: none; width: 29px; height: 29px;
  border-radius: 9px; background: var(--lime); font: 700 12px var(--display);
}
.rule-row strong { display: block; margin: 2px 0 4px; font: 700 14px var(--display); }
.rule-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dialog-note { padding: 13px; border-radius: 13px; background: #ece9ff; color: #514b83 !important; font-size: 12px !important; }
.toast {
  position: fixed; left: 50%; bottom: calc(23px + env(safe-area-inset-bottom)); z-index: 100;
  max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 13px;
  color: var(--paper); background: var(--ink); box-shadow: 0 8px 30px rgba(0,0,0,.25);
  font-size: 13px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px); transition: opacity .2s, transform .2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: fixed; inset: 20px; z-index: 200; padding: 30px; border-radius: 20px; background: var(--lime); color: var(--ink); }

@media (min-width: 600px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100svh - 48px); border-radius: 30px; }
  .screen { min-height: calc(100svh - 130px); }
  .center-stage { min-height: calc(100svh - 184px); }
  .confetti { top: 82px; }
}
@media (max-width: 370px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .home-title { font-size: 39px; }
  .demo-scene { transform: scale(.9); margin-left: -14px; margin-right: -14px; }
  .secret-card { min-height: 390px; }
  .timer-wrap { width: 195px; height: 195px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
