.play-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 0 29px, rgba(168, 61, 44, 0.08) 30px 31px, transparent 32px),
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(33, 79, 71, 0.045) 38px 39px),
    var(--paper);
}

.play-header {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 251, 243, 0.9);
  backdrop-filter: blur(12px);
}

.play-header .header-inner {
  gap: 18px;
}

.preview-label {
  padding: 5px 10px;
  border: 1.5px solid var(--forest);
  border-radius: 999px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.play-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tool-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--paper-light);
  font-size: 14px;
  font-weight: 800;
}

.tool-button:hover,
.tool-button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--gold);
}

.wallet {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-left: 7px;
  padding: 7px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.wallet-coin {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-light);
  font-family: var(--font-serif);
  font-size: 14px;
}

.game-shell {
  width: min(calc(100% - 36px), 1100px);
  margin: 0 auto;
  padding: 34px 0 68px;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.case-identity strong {
  color: var(--rust);
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.game-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--paper-light);
  box-shadow: 10px 12px 0 rgba(33, 79, 71, 0.2), var(--shadow);
}

.game-title-block {
  position: relative;
  padding: clamp(28px, 5.5vw, 62px);
  padding-right: clamp(110px, 17vw, 200px);
  color: #fffaf0;
  background:
    radial-gradient(circle at 86% 30%, rgba(233, 185, 72, 0.2), transparent 12rem),
    var(--forest);
}

.game-title-block::after {
  position: absolute;
  top: 50%;
  right: clamp(24px, 6vw, 75px);
  color: var(--gold);
  content: "?";
  font-family: var(--font-serif);
  font-size: clamp(105px, 18vw, 185px);
  font-weight: 700;
  line-height: 1;
  opacity: 0.92;
  transform: translateY(-50%) rotate(7deg);
}

.game-title-block .eyebrow {
  color: var(--gold-light);
}

.game-title-block h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(43px, 6.3vw, 74px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.game-tagline {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 19px 0 0;
  color: rgba(255, 250, 240, 0.8);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
}

.game-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.story-column {
  min-width: 0;
  padding: clamp(27px, 5vw, 58px);
}

.story-copy {
  max-width: 740px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.65;
}

.story-copy p {
  margin: 0;
}

.clue-section {
  margin-top: 34px;
}

.section-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-kicker::after {
  width: 45px;
  height: 2px;
  background: currentColor;
  content: "";
}

.clues {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: clue;
}

.clues li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px 18px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  counter-increment: clue;
}

.clues li::before {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  content: counter(clue);
  font-size: 13px;
  font-weight: 900;
}

.suspects-section {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 2px dashed var(--line);
}

.culture-section {
  position: relative;
  margin-top: 34px;
  padding: clamp(21px, 3.5vw, 31px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(233, 185, 72, 0.3), transparent 12rem),
    #eef1e7;
  box-shadow: 5px 5px 0 rgba(33, 79, 71, 0.2);
}

.culture-section::after {
  position: absolute;
  top: -38px;
  right: -31px;
  width: 120px;
  height: 120px;
  border: 2px dashed rgba(168, 61, 44, 0.25);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.culture-heading {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.culture-icon {
  display: grid;
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--font-serif);
  font-size: 23px;
  transform: rotate(-7deg);
}

.culture-heading .section-kicker {
  margin-bottom: 5px;
}

.culture-heading h2 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(25px, 3.2vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.culture-question {
  position: relative;
  z-index: 1;
  margin: 19px 0 16px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 600;
  line-height: 1.4;
}

.culture-options {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.culture-option {
  display: grid;
  grid-template-columns: 1fr 25px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 51px;
  padding: 10px 14px;
  border: 1.5px solid rgba(23, 41, 35, 0.27);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.culture-option:hover:not(:disabled) {
  border-color: var(--forest);
  background: #fffaf0;
}

.culture-option[aria-checked="true"] {
  border: 2px solid var(--forest);
  background: #dfeadf;
}

.culture-option.culture-correct {
  border: 2px solid var(--forest);
  background: #d6e8cc;
}

.culture-option.culture-selected:not(.culture-correct) {
  border: 2px solid var(--rust);
  background: #f5ddd5;
}

.culture-option:disabled {
  opacity: 1;
}

.culture-option .radio-dot {
  width: 22px;
  height: 22px;
}

.culture-option[aria-checked="true"] .radio-dot::after {
  width: 10px;
  height: 10px;
}

.culture-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.culture-actions p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.culture-actions strong {
  color: var(--rust);
}

.culture-actions .button {
  min-height: 48px;
  padding: 9px 17px;
  font-size: 14px;
}

.culture-actions .button:disabled {
  border-color: #8b918e;
  color: #737a77;
  background: #dfe1dd;
  box-shadow: none;
  cursor: not-allowed;
}

.culture-feedback {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  padding: 17px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.culture-feedback[hidden] {
  display: none;
}

.culture-feedback.correct {
  background: #ddecce;
}

.culture-feedback.incorrect {
  background: #f5d9d2;
}

.culture-feedback strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 21px;
}

.culture-feedback p {
  margin: 5px 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.culture-feedback .culture-points {
  color: var(--ink);
  font-weight: 900;
}

.suspects-section h2 {
  margin: 0 0 7px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.section-lede {
  margin: 0 0 21px;
  color: var(--ink-soft);
  font-size: 16px;
}

.suspect-grid {
  display: grid;
  gap: 11px;
}

.suspect-button {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr 28px;
  gap: 15px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 14px 17px;
  border: 1.5px solid rgba(23, 41, 35, 0.25);
  border-radius: 14px;
  color: var(--ink);
  background: #fffdf8;
  text-align: left;
  transition: border-color 130ms ease, background 130ms ease, transform 130ms ease;
}

.suspect-button:hover {
  border-color: var(--forest);
  background: #f4ecdb;
}

.suspect-button[aria-checked="true"] {
  border: 2px solid var(--forest);
  background: #eaf0e8;
  transform: translateX(4px);
}

.suspect-avatar {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
}

.suspect-copy {
  display: grid;
  gap: 2px;
}

.suspect-copy strong {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: -0.015em;
}

.suspect-role {
  color: var(--rust);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.suspect-alibi {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.radio-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid var(--ink-soft);
  border-radius: 50%;
}

.suspect-button[aria-checked="true"] .radio-dot {
  border-color: var(--forest);
}

.suspect-button[aria-checked="true"] .radio-dot::after {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--forest);
  content: "";
}

.vote-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.vote-row .button {
  min-height: 56px;
  padding-inline: 27px;
}

.vote-row .button:disabled {
  border-color: #8b918e;
  color: #737a77;
  background: #dfe1dd;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.reward-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.reward-note strong {
  color: var(--rust);
}

.side-column {
  padding: 34px 28px;
  border-left: 1.5px solid var(--line);
  background: #f2e6d1;
}

.wallet-card {
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 19px;
  background: var(--gold);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: center;
}

.wallet-card p {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wallet-balance {
  margin: 6px 0 1px;
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.wallet-card small {
  font-size: 13px;
  font-weight: 700;
}

.daily-progress {
  margin-top: 31px;
}

.daily-progress h2,
.game-notes h2 {
  margin: 0 0 13px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.day-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.day-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 900;
}

.day-dot.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--gold-light);
}

.next-case {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.game-notes {
  margin-top: 33px;
  padding-top: 25px;
  border-top: 1.5px dashed var(--line);
}

.game-notes p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.game-notes a {
  font-size: 13px;
  font-weight: 800;
}

.loading {
  display: grid;
  min-height: 480px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.loading p {
  color: var(--ink-soft);
}

.error-panel {
  padding: 28px;
  border: 2px solid var(--rust);
  border-radius: 16px;
  color: #6e2419;
  background: #fae2dc;
}

.result-panel {
  margin-top: 31px;
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #f9e5ae;
  box-shadow: 6px 6px 0 var(--forest);
}

.result-panel.correct {
  background: #ddecce;
}

.result-panel.incorrect {
  background: #f5d9d2;
}

.result-badge {
  display: inline-block;
  padding: 5px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-light);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-panel h2 {
  margin: 14px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.result-panel p {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.result-reward {
  margin: 18px 0 0;
  font-weight: 900;
}

.share-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1.5px dashed rgba(23, 41, 35, 0.3);
}

.share-line p {
  flex: 1 1 300px;
  margin: 0;
  font-size: 14px;
}

.share-line a {
  font-size: 14px;
  font-weight: 900;
}

.help-panel {
  margin-top: 22px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 251, 243, 0.75);
}

.help-panel summary {
  padding: 17px 19px;
  font-weight: 900;
  cursor: pointer;
}

.help-panel div {
  padding: 0 19px 19px;
  color: var(--ink-soft);
  font-size: 15px;
}

.help-panel p {
  margin: 7px 0;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  max-width: min(390px, calc(100% - 36px));
  padding: 13px 17px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--gold-light);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.play-footer {
  padding: 0 0 44px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.play-footer p {
  max-width: 750px;
  margin-inline: auto;
}

html[data-text-size="large"] {
  --ui-scale: 1.1;
}

html[data-text-size="larger"] {
  --ui-scale: 1.2;
}

html[data-text-size="large"] .play-page,
html[data-text-size="larger"] .play-page {
  zoom: var(--ui-scale);
}

html[data-contrast="high"] {
  --ink: #000000;
  --ink-soft: #151515;
  --paper: #ffffff;
  --paper-light: #ffffff;
  --line: rgba(0, 0, 0, 0.45);
  --forest: #003f37;
  --forest-dark: #002c27;
  --rust: #7e1608;
  --gold: #ffcd3c;
  --gold-light: #ffe497;
}

html[data-contrast="high"] .play-page {
  background: #ffffff;
}

html[data-contrast="high"] .suspect-button,
html[data-contrast="high"] .clues li,
html[data-contrast="high"] .culture-option,
html[data-contrast="high"] .culture-feedback {
  background: #ffffff;
}

@media (max-width: 850px) {
  .game-body {
    grid-template-columns: 1fr;
  }

  .side-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    border-top: 1.5px solid var(--line);
    border-left: 0;
  }

  .daily-progress {
    margin-top: 0;
  }

  .game-notes {
    grid-column: 1 / -1;
    margin-top: 3px;
  }
}

@media (max-width: 620px) {
  .play-header .header-inner {
    flex-wrap: wrap;
  }

  .play-header .brand-name small,
  .preview-label {
    display: none;
  }

  .play-tools {
    width: 100%;
    gap: 5px;
    justify-content: flex-end;
    margin-left: 0;
  }

  .tool-button {
    min-width: 42px;
    min-height: 42px;
    padding: 6px;
  }

  .wallet {
    min-height: 42px;
    margin-left: 2px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .game-shell {
    width: min(calc(100% - 20px), 1100px);
    padding-top: 22px;
  }

  .game-title-block {
    padding: 32px 24px;
    padding-right: 90px;
  }

  .game-title-block h1 {
    font-size: 40px;
  }

  .game-title-block::after {
    right: 24px;
    font-size: 96px;
  }

  .game-tagline {
    font-size: 16px;
  }

  .story-column {
    padding: 27px 20px;
  }

  .suspect-button {
    grid-template-columns: 43px 1fr 22px;
    gap: 11px;
    padding-inline: 12px;
  }

  .suspect-avatar {
    width: 43px;
    height: 43px;
    font-size: 19px;
  }

  .suspect-copy strong {
    font-size: 19px;
  }

  .vote-row {
    align-items: stretch;
    flex-direction: column;
  }

  .vote-row .button {
    width: 100%;
  }

  .side-column {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .game-notes {
    grid-column: auto;
  }

  .culture-heading {
    gap: 11px;
  }

  .culture-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .culture-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .culture-actions .button {
    width: 100%;
  }
}
