@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f6f3ea;
  --paper-light: #fffdf7;
  --ink: #242738;
  --muted: #626371;
  --line: #d8d5cd;
  --acid: #d8ee84;
  --peach: #f5b795;
  --peach-light: #f9e5d7;
  --lilac: #d0c8f1;
  --lilac-light: #eae6f8;
  --radius: 24px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button { -webkit-appearance: none; appearance: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input, a { outline-offset: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--ink);
}
button:disabled { cursor: default; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--acid); }
h1, h2, h3, p { margin: 0; }
h1[tabindex]:focus, main[tabindex]:focus { outline: none; }
.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;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 12px;
  padding: 12px 17px;
  transform: translateY(-180%);
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--acid);
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 27px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 37px;
  transform: rotate(-7deg);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-party { font-weight: 450; }
.brand-dot { font-size: inherit; }
.header-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.header-note > span { margin-right: 5px; color: var(--ink); font-size: 16px; vertical-align: -1px; }
main { display: block; }
#app { width: 100%; }
.home {
  max-width: 1040px;
  margin: 0 auto;
  padding: 38px 0 28px;
}
.intro { position: relative; margin-bottom: 42px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.intro h1 {
  max-width: 880px;
  font-size: clamp(45px, 6.3vw, 72px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.02;
}
.intro h1 em { font-style: normal; }
.intro-line {
  display: inline-block;
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
}
.intro-description {
  max-width: 620px;
  margin-top: 21px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.intro-star {
  display: inline-block;
  width: 54px;
  height: 54px;
  margin-left: 22px;
  color: var(--ink);
  transform: rotate(10deg);
  vertical-align: 2px;
}
.intro-star svg { width: 100%; height: 100%; }
.mobile-only { display: none; }
.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.game-card.truth { background: var(--peach); }
.game-card.rather { background: var(--lilac); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.game-number {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.card-top .game-meta { margin: 0; }
.card-badge { padding: 4px 10px; border: 1px solid rgb(36 39 56 / 28%); border-radius: 20px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.card-art { display: block; align-self: center; width: 100%; max-width: 400px; height: 165px; margin: 12px 0 16px; overflow: visible; }
.game-title {
  font-size: clamp(33px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}
.game-description { max-width: 360px; margin-top: 12px; font-size: 15px; line-height: 1.55; }
.game-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 19px;
  font-size: 11px;
  font-weight: 700;
}
.game-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid rgb(36 39 56 / 28%);
  border-radius: 20px;
}
.play-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 27px;
}
.play-row .session-summary { max-width: 180px; margin-right: auto; font-size: 11px; font-weight: 600; line-height: 1.5; }
.play-row .play-button { margin-left: auto; }
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.arrow { display: inline-block; font-size: 22px; line-height: 1; }
.play-row > .arrow { font-size: 32px; }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 26px; }
.suggestions-footer { align-items: center; justify-content: center; }
.home-footer.suggestions-footer { flex-direction: column; gap: 16px; }
.rules-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 12px; }
.rules-nav a { padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.shell.guide { max-width: 720px; padding: 15px 0 40px; }
.guide-sections { display: grid; gap: 28px; margin: 32px 0; }
.guide-sections h2 { margin-bottom: 10px; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.guide-sections p { color: var(--muted); line-height: 1.7; }
.suggestions fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.suggestion-kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.suggestion-kind-button {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--paper-light);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease;
}
.suggestion-kind-button.selected { border-color: var(--ink); background: var(--acid); }
.suggestion-kind-button:not(.selected):hover { border-color: var(--ink); }
.suggestion-field { margin-top: 24px; }
.suggestions textarea, .suggestions select { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-light); color: var(--ink); font: inherit; font-size: 16px; }
.suggestions textarea { display: block; min-width: 0; max-width: 100%; min-height: 160px; resize: vertical; line-height: 1.5; }
.suggestion-privacy { margin-top: 12px; text-align: left; }
.suggestion-send { margin-top: 22px; }
.suggestions .finish-actions { margin-top: 30px; }
.suggestion-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.suggestions fieldset:disabled { opacity: .7; }
.footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 17px;
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
}
.footer-note .dot, .footer-note .separator { color: var(--acid); }
.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  padding: 18px 21px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: var(--acid);
}
.resume-info { min-width: 0; font-size: 14px; font-weight: 700; }
.resume-info span { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; }
.resume-info strong { display: block; font-size: 15px; letter-spacing: -0.025em; }
.resume-info p, .resume-info small { display: block; margin-top: 3px; font-size: 12px; }
.resume-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.resume-actions .primary-button { width: auto; min-height: 44px; padding: 10px 18px; font-size: 12px; }
.resume-card > .secondary-button { width: auto; min-width: 114px; flex-shrink: 0; background: var(--paper-light); }

.shell { width: 100%; margin: 0 auto; }
.shell.setup { max-width: 620px; padding: 15px 0 40px; }
#app:has(> .shell.play) { display: flex; flex-direction: column; min-height: 100dvh; }
#app:has(> .shell.play) > .site-header { width: min(1040px, calc(100% - 64px)); flex-shrink: 0; }
.shell.play { display: flex; flex: 1; flex-direction: column; max-width: clamp(660px, 70vw, 960px); min-height: 0; padding: 9px 0 max(12px, env(safe-area-inset-bottom)); }
.game-header { display: flex; align-items: center; gap: 13px; min-height: 48px; margin-bottom: 25px; }
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 7px;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.back-button > span { font-size: 19px; line-height: 1; }
.back-button svg { width: 18px; height: 18px; }
.game-label { min-width: 0; font-size: 14px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; }
.header-spark { margin-left: auto; font-size: 27px; line-height: 1; }
.round-label { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.setup-heading { margin: 12px 0 31px; }
.setup-title { font-size: 43px; font-weight: 800; letter-spacing: -0.06em; line-height: 1.07; }
.setup-subtitle { max-width: 470px; margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.setup-section + .setup-section { margin-top: 28px; }
.relationship-select { display: block; width: 100%; min-height: 52px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-light); color: var(--ink); font: inherit; font-size: 16px; }
.relationship-select:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.section-label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 750; letter-spacing: 0.02em; }
.section-label small { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 400; }
.count-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.round-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rounds-note { margin-top: 10px; text-align: left; }
.finish-stage { margin: 30px 0 26px; }
.finish-actions { display: grid; gap: 15px; }
.finish-actions .secondary-button { justify-content: center; }
.results-section { margin-bottom: 28px; }
.result-totals { display: flex; gap: 12px; margin-bottom: 18px; }
.result-total { flex: 1; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--acid); }
.result-total:nth-child(2) { background: var(--lilac); }
.result-total:nth-child(3) { background: var(--peach-light); }
.result-total strong { display: block; font-size: clamp(28px, 6vw, 36px); font-weight: 800; line-height: 1.1; }
.result-total span { display: block; margin-top: 6px; font-size: 13px; font-weight: 650; }
.results-note { margin-bottom: 16px; text-align: left; }
.results-table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-light); }
.results-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.results-table th, .results-table td { padding: 14px 8px; text-align: center; }
.results-table th:first-child { width: 42%; padding-left: 16px; text-align: left; overflow-wrap: anywhere; }
.results-table thead { background: #efede5; font-size: 12px; }
.results-table thead th { padding-right: 4px; padding-left: 4px; }
.results-table tbody th { font-size: 14px; font-weight: 700; }
.results-table tbody td { font-size: 18px; font-weight: 750; overflow-wrap: anywhere; }
.results-table tbody tr + tr { border-top: 1px solid var(--line); }
.unrecorded-turns { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.count-button {
  min-height: 52px;
  padding: 9px 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-light);
  font-size: 18px;
  font-weight: 700;
  transition: border-color 150ms ease, background 150ms ease;
}
.count-button.selected { border: 2px solid var(--ink); background: var(--acid); }
.names-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 8px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.names-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 12px; }
.optional-label { color: var(--muted); font-size: 11px; font-weight: 400; text-decoration: none; }
.name-field { min-width: 0; }
.name-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.name-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 15px;
}
.name-field input::placeholder { color: #7a7b84; }
.extra-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 15px; font-size: 18px; font-weight: 700; }
.stepper button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-light);
  font-size: 21px;
}
.stepper button:disabled { opacity: 0.35; }
.tone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.truth .tone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tone-button {
  min-width: 0;
  min-height: 88px;
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-light);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}
.tone-button.selected { border: 2px solid var(--ink); padding: 14px 13px; background: var(--acid); }
.tone-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; font-size: 14px; font-weight: 750; letter-spacing: -0.02em; }
.tone-check { font-size: 19px; line-height: 1; }
.tone-description { display: block; font-size: 14px; line-height: 1.5; }
.compact-tones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-tones .tone-button { min-height: 58px; }
.compact-tones .tone-name { margin-bottom: 0; }
.compact-tones .tone-description { margin-top: 4px; }
.compact-tones .tone-button:last-child { grid-column: auto; }
.tone-note { text-align: left; }
.suggestion-check { margin: 12px 0; }
.suggestion-check-status { margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.suggestion-check-retry { margin-bottom: 12px; }
.suggestion-check-retry[hidden] { display: none; }
.suggestion-send:disabled { opacity: .55; cursor: wait; }
.setup-footer { margin-top: 30px; }
.primary-button, .next-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 54px;
  padding: 15px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 150ms ease, background 150ms ease;
}
.small-note { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.field-error, .status-message { margin-top: 10px; color: #8a3328; font-size: 12px; line-height: 1.5; }

.play .game-header { margin-bottom: 19px; }
.turn-header { margin-bottom: 21px; padding: 18px 20px; border: 1px solid var(--ink); border-radius: 18px; background: var(--acid); text-align: center; }
.turn-header[data-player="1"] { background: #cfc2ee; }
.turn-header[data-player="2"] { background: #f5b795; }
.turn-header[data-player="3"] { background: #a9d9ed; }
.turn-header[data-player="4"] { background: #edb4cc; }
.turn-header[data-player="5"] { background: #f0df91; }
.turn-header[data-player="6"] { background: #a3dcc3; }
.turn-header[data-player="7"] { background: #b4bfee; }
.turn-header[data-player="8"] { background: #edc799; }
.turn-header[data-player="9"] { background: #b9d4a6; }
.turn-header[data-player="10"] { background: #debae7; }
.turn-header[data-player="11"] { background: #9ed9d9; }
.turn-header[data-player="12"] { background: #efb3ac; }
.turn-header[data-player="13"] { background: #d7ce9c; }
.turn-header[data-player="14"] { background: #becbea; }
.turn-header[data-player="15"] { background: #e4c6b9; }
.play .turn-header { animation: turn-banner 480ms cubic-bezier(.2,.75,.25,1) backwards; }
.play .round-label { display: inline-block; animation: turn-round 450ms ease-out backwards; }
.play .question-stage, .play .option-card { animation: turn-card 560ms cubic-bezier(.2,.75,.25,1) backwards; }
.play .question-stage, .play .option-b { animation-delay: 60ms; }
@keyframes turn-banner {
  from { opacity: .3; transform: perspective(700px) rotateX(-30deg) translateY(-8px); }
  to { opacity: 1; transform: perspective(700px) rotateX(0) translateY(0); }
}
@keyframes turn-round {
  from { opacity: 0; transform: perspective(300px) rotateX(-90deg); }
  to { opacity: 1; transform: perspective(300px) rotateX(0); }
}
@keyframes turn-card {
  from { opacity: 0; transform: perspective(900px) rotateY(-35deg) rotateZ(-2deg) translateY(12px); }
  to { opacity: 1; transform: perspective(900px) rotateY(0) rotateZ(0) translateY(0); }
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  font-size: 15px;
  font-weight: 800;
}
.player-name { max-width: 100%; margin: 0 auto; overflow-wrap: anywhere; font-size: 36px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.turn-caption { margin-top: 7px; color: var(--ink); font-size: 12px; }
.question-stage {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 285px;
  padding: 33px 36px 36px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: var(--peach-light);
}
.question-kicker { position: relative; font-size: 10px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.truth-prompt {
  position: relative;
  margin-top: 25px;
  font-size: clamp(33px, 4.7vw, 45px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.quote-mark { position: absolute; top: -32px; right: -9px; color: var(--peach); font-size: 130px; font-weight: 800; line-height: 1; }
.question-bottom { align-self: flex-end; margin-top: 23px; font-size: 28px; line-height: 1; }
.level-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 25px;
  margin-top: 25px;
  padding: 3px 9px;
  border: 1px solid rgb(36 39 56 / 35%);
  border-radius: 20px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.03em;
}
.play-controls { margin-top: 17px; }
.answer-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-light);
  font-size: 14px;
  font-weight: 700;
}
.action-button.answered { background: var(--acid); }
.action-button.skip { border-color: var(--line); }
.action-button.selected { border-width: 2px; }
.action-button.skip.selected { border-color: var(--ink); background: #e5e2d9; }
.action-button:disabled:not(.selected) { opacity: 0.62; }
.next-button { margin-top: 10px; min-height: 52px; border-radius: 12px; }
.next-button:disabled { border-color: #e0ded6; background: #e0ded6; color: #626371; }
.reaction { display: flex; align-items: center; justify-content: center; min-height: 30px; margin: 9px 0 0; text-align: center; }
.reaction-copy { color: var(--muted); font-size: 12px; line-height: 1.5; }
.rather-stage { display: flex; flex: 1; flex-direction: column; gap: 13px; }
.rather-prompt { margin-bottom: 2px; font-size: 24px; font-weight: 750; letter-spacing: -0.045em; line-height: 1.2; }
.rather-stage > .question-kicker { margin-bottom: -3px; }
.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 137px;
  width: 100%;
  padding: 25px 27px;
  border: 1.5px solid var(--ink);
  border-radius: 21px;
  text-align: left;
  transition: opacity 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}
.option-a { background: var(--lilac); }
.option-b { background: var(--acid); }
.option-letter {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
}
.option-text { padding-right: 8px; font-size: clamp(23px, 3.7vw, 32px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.17; text-wrap: pretty; overflow-wrap: anywhere; }
.choice-check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.option-card.selected .choice-check { background: var(--ink); color: var(--paper-light); }
.option-card.selected { border-width: 2px; padding: 24.5px 26.5px; box-shadow: 3px 3px 0 var(--ink); }
.option-card.unchosen { opacity: 0.52; }
.or-label { align-self: center; margin: -3px 0; font-size: 10px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.play-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; }
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.turn-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; max-width: 200px; }
.turn-dot { width: 6px; height: 6px; border-radius: 50%; background: #ccc9c1; }
.turn-dot.active { width: 8px; height: 8px; background: var(--ink); }
.session-note { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.site-footer { max-width: 1040px; margin: 0 auto; padding: 12px 0 23px; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(36 39 56 / 55%);
}
.modal-card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 6px 6px 0 rgb(36 39 56 / 30%);
}
.modal-card::backdrop { background: rgb(36 39 56 / 55%); }
.modal-card h2 { margin-bottom: 12px; font-size: 28px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.15; }
.modal-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 25px; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 17px; border: 1px solid var(--ink); border-radius: 12px; background: transparent; font-size: 14px; font-weight: 700; }
.empty-screen { max-width: 540px; margin: 80px auto; padding: 25px; text-align: center; }
.empty-screen h1 { margin-bottom: 14px; font-size: 36px; letter-spacing: -0.05em; }
.empty-screen p { margin-bottom: 24px; color: var(--muted); }

@media (hover: hover) {
  a.game-card:hover, button.game-card:hover { transform: translateY(-4px); box-shadow: 5px 5px 0 var(--ink); }
  .primary-button:hover, .next-button:not(:disabled):hover, .play-button:hover { background: #363a50; }
  .back-button:hover, .count-button:not(.selected):hover, .tone-button:not(.selected):hover, .secondary-button:hover { border-color: var(--ink); }
  .option-card:not(.selected):hover { transform: translateY(-2px); }
  .text-button:hover, .names-toggle:hover { color: var(--ink); }
}
button:active:not(:disabled) { transform: translateY(1px); }

@media (max-width: 1119px) {
  .site-header, .home, .site-footer { margin-right: 32px; margin-left: 32px; }
  .shell { width: calc(100% - 64px); }
}

@media (max-width: 700px) {
  .site-header { padding-top: 22px; padding-bottom: 22px; }
  .site-header, .home, .site-footer { margin-right: 22px; margin-left: 22px; }
  .shell { width: calc(100% - 44px); }
  .header-note { font-size: 10px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand-mark { width: 28px; height: 32px; }
  .home { padding-top: 16px; }
  .intro { margin-bottom: 22px; }
  .intro h1 { max-width: 510px; font-size: 46px; }
  .intro-star { display: none; }
  .intro-description { max-width: 450px; margin-top: 12px; font-size: 14px; line-height: 1.55; }
  .mobile-only { display: inline; }
  .games-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .game-card { min-height: 252px; padding: 20px; border-radius: 21px; }
  .card-art { position: absolute; top: 40px; right: 16px; width: 165px; max-width: none; height: 98px; margin: 0; }
  .game-title { max-width: 225px; margin-top: 13px; font-size: 32px; }
  .game-description { max-width: 100%; margin-top: 9px; font-size: 14px; line-height: 1.5; }
  .game-meta { gap: 5px; margin-top: 10px; }
  .game-meta span { min-height: 24px; padding: 2px 8px; }
  .play-row { padding-top: 12px; }
  .play-row .session-summary { max-width: 180px; }
  .home-footer { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 19px; }
  .suggestions-footer { align-items: center; }
  .footer-note { font-size: 10px; }
  .shell.setup { padding-top: 7px; }
  .setup-title { font-size: 38px; }
  .shell.play { padding-top: 0; }
  .play .game-header { margin-bottom: 14px; }
  .turn-header { margin-bottom: 16px; }
  .question-stage { min-height: 260px; padding: 28px; }
  .truth-prompt { font-size: 39px; }
  .rather-stage { gap: 11px; }
  .option-card { min-height: 126px; gap: 15px; padding: 23px; }
  .option-card.selected { padding: 22.5px; }
  .option-text { font-size: 29px; }
  .play-footer { margin-top: 8px; }
}

@media (max-width: 420px) {
  .site-header, .home, .site-footer { margin-right: 19px; margin-left: 19px; }
  .shell { width: calc(100% - 38px); }
  .header-note { max-width: 94px; text-align: right; line-height: 1.4; }
  .home { padding-top: 12px; }
  .eyebrow { margin-bottom: 13px; font-size: 9px; }
  .intro h1 { font-size: 42px; }
  .game-card { min-height: 250px; padding: 18px; }
  .card-art { top: 39px; right: 12px; width: 149px; height: 92px; }
  .game-title { max-width: 186px; font-size: 31px; }
  .game-description { font-size: 14px; }
  .game-meta { font-size: 10px; }
  .play-row .session-summary { max-width: 150px; }
  .play-button { gap: 13px; padding: 12px 18px; }
  .resume-card { align-items: flex-start; flex-direction: column; gap: 10px; padding: 17px; }
  .resume-actions { width: 100%; justify-content: space-between; }
  .setup-heading { margin-top: 7px; margin-bottom: 25px; }
  .setup-title { font-size: 36px; }
  .setup-subtitle { font-size: 14px; }
  .count-options { gap: 6px; }
  .count-button { min-height: 48px; border-radius: 10px; font-size: 16px; }
  .tone-grid { gap: 7px; }
  .tone-button { min-height: 87px; padding: 13px 10px; border-radius: 12px; }
  .tone-button.selected { padding: 12px 9px; }
  .tone-name { font-size: 14px; }
  .tone-description { font-size: 14px; }
  .game-header { gap: 9px; }
  .game-label { font-size: 14px; }
  .round-label { font-size: 10px; }
  .back-button { padding: 10px 12px; }
  .turn-header { padding: 16px; }
  .avatar { width: 38px; height: 38px; font-size: 13px; }
  .player-name { font-size: 30px; }
  .turn-caption { font-size: 12px; }
  .question-stage { min-height: 249px; padding: 25px; border-radius: 21px; }
  .truth-prompt { margin-top: 21px; font-size: 35px; }
  .quote-mark { top: -28px; right: -9px; font-size: 113px; }
  .rather-prompt { font-size: 23px; }
  .option-card { min-height: 119px; gap: 12px; padding: 20px; border-radius: 18px; }
  .option-card.selected { padding: 19.5px; }
  .option-letter { width: 27px; height: 27px; font-size: 10px; }
  .option-text { font-size: 26px; padding-right: 0; }
  .choice-check { width: 23px; height: 23px; font-size: 12px; }
  .play-controls { margin-top: 14px; }
  .reaction-copy { font-size: 11px; }
  .action-button { font-size: 14px; }
  .site-footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}

@media (max-width: 350px) {
  .site-header, .home, .site-footer { margin-right: 15px; margin-left: 15px; }
  .shell { width: calc(100% - 30px); }
  .brand { font-size: 16px; gap: 6px; }
  .header-note { font-size: 9px; max-width: 82px; }
  .intro h1 { font-size: 36px; }
  .game-card { min-height: 254px; padding: 17px; }
  .game-title { max-width: 165px; font-size: 28px; }
  .game-description { font-size: 14px; }
  .card-art { top: 40px; right: 7px; width: 129px; height: 88px; }
  .game-number { font-size: 9px; }
  .card-badge { padding: 3px 8px; font-size: 9px; }
  .play-row .session-summary { max-width: 122px; font-size: 10px; }
  .play-button { gap: 9px; padding: 12px 15px; }
  .footer-note { gap: 6px; padding-right: 12px; padding-left: 12px; font-size: 9px; }
  .setup-title { font-size: 32px; }
  .tone-button { min-height: 93px; }
  .truth .tone-grid { grid-template-columns: 1fr; }
  .truth .tone-button { min-height: 72px; }
  .compact-tones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-tones .tone-button:last-child { grid-column: auto; }
  .names-grid { gap: 10px; }
  .game-label { max-width: 152px; line-height: 1.2; }
  .question-stage { min-height: 226px; padding: 22px; }
  .truth-prompt { font-size: 30px; }
  .option-card { min-height: 109px; gap: 10px; padding: 18px; }
  .option-card.selected { padding: 17.5px; }
  .option-text { font-size: 23px; }
  .option-letter { width: 25px; height: 25px; }
  .choice-check { position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; font-size: 10px; }
  .modal-card { padding: 23px; }
}

@media (max-height: 740px) and (max-width: 700px) {
  .site-header { padding-top: 15px; padding-bottom: 16px; }
  .play .game-header { margin-bottom: 10px; }
  .turn-header { margin-bottom: 12px; padding: 12px 16px; }
  .question-stage { min-height: 217px; padding-top: 22px; padding-bottom: 24px; }
  .truth-prompt { font-size: clamp(28px, 8.5vw, 35px); }
  .option-card { min-height: 107px; padding-top: 18px; padding-bottom: 18px; }
  .option-card.selected { padding-top: 17.5px; padding-bottom: 17.5px; }
  .option-text { font-size: clamp(22px, 6.5vw, 27px); }
  .play-controls { margin-top: 11px; }
  .reaction { min-height: 25px; margin-top: 4px; }
  .session-note { margin-top: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 700px) {
  .truth-prompt.long-prompt { font-size: clamp(27px, 7.8vw, 33px); }
}
@media (max-height: 740px) and (max-width: 700px) {
  .truth-prompt.long-prompt { font-size: clamp(25px, 7.2vw, 28px); }
}

/* Share the available viewport height between the prompt and large answer targets.
   Content can still make the page taller on short screens or with long names. */
.play .game-header, .play .turn-header, .play .play-controls, .play .play-footer { flex-shrink: 0; }
.play .game-header { margin-bottom: clamp(10px, 1.8dvh, 20px); }
.play .turn-header { margin-bottom: clamp(12px, 2dvh, 24px); padding: clamp(12px, 2dvh, 24px) 20px; }
.play .player-name { font-size: clamp(30px, min(9vw, 4.5dvh), 48px); }
.play .question-stage { min-height: clamp(200px, 28dvh, 360px); padding: clamp(22px, 3dvh, 40px) clamp(22px, 4vw, 48px); }
.play .truth-label { flex-shrink: 0; margin-bottom: 12px; }
.play .question-stage > .quote-mark { top: 18px; right: 24px; font-size: 96px; }
.play .truth-prompt { margin-top: 0; font-size: clamp(28px, min(9vw, 5dvh), 56px); }
.play .truth-prompt.long-prompt { font-size: clamp(24px, min(7.8vw, 3.8dvh), 40px); }
.play .answer-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.play .action-button { min-height: clamp(72px, 10dvh, 128px); padding: 18px 12px; border-radius: 18px; font-size: clamp(17px, min(4.8vw, 2.5dvh), 26px); }
.play .rather-stage { gap: clamp(10px, 1.5dvh, 20px); }
.play .rather-prompt { font-size: clamp(23px, min(6vw, 3.5dvh), 34px); }
.play .option-card { flex: 1 0 auto; min-height: clamp(128px, 19dvh, 230px); padding: clamp(20px, 3dvh, 36px) clamp(18px, 3vw, 36px); }
.play .option-text { font-size: clamp(23px, min(7vw, 4dvh), 42px); }
.play .option-letter { width: clamp(28px, 4dvh, 42px); height: clamp(28px, 4dvh, 42px); font-size: clamp(12px, 1.8dvh, 16px); }
.play .play-footer { margin-top: clamp(8px, 1.5dvh, 18px); }

@media (max-width: 700px) {
  #app:has(> .shell.play) > .site-header { width: calc(100% - 44px); }
}
@media (max-width: 420px) {
  #app:has(> .shell.play) > .site-header { width: calc(100% - 38px); }
}
@media (max-width: 350px) {
  #app:has(> .shell.play) > .site-header { width: calc(100% - 30px); }
}
