@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #17191C;
  --paper: #EDEAE2;
  --truth: #3DDC6A;
  --lie: #E5484D;
  --meta: #8A8F98;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* The hidden attribute must always win, even over class display rules. */
[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Subtle depth: a faint green glow up top, a soft vignette below. */
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(61, 220, 106, 0.055), transparent 62%),
    radial-gradient(1200px 900px at 50% 118%, rgba(0, 0, 0, 0.55), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

/* Whisper-faint graph-paper grid for atmosphere. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(138, 143, 152, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 143, 152, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 32%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 60%, transparent 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 20px 26px;
}

/* Fit the game to the viewport when it can. Anchored to the top (not centred)
   so peeking a bar open only pushes content DOWN — it never shoves the title
   up or the layout around it. */
#game {
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.site-header {
  text-align: center;
  margin-bottom: 16px;
}

.title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 30px;
  margin: 0;
}

.subtitle {
  font-family: 'Space Mono', monospace;
  color: var(--meta);
  letter-spacing: 0.08em;
  font-size: 11px;
  text-transform: uppercase;
  margin: 7px 0 0;
}

#polygraph {
  display: block;
  width: 100%;
  height: 36px;
  margin-bottom: 20px;
  border: 1px solid rgba(138, 143, 152, 0.5);
  border-radius: 0;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

.polygraph-line {
  stroke: var(--truth);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(138, 143, 152, 0.28);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ---- PLAY MORE: a compact buy-more control in the stats row ------------- */
/* Lives to the right of CAUGHT. Clicking it flies out a sideways menu with the
   purchase options — the single home for "unseal more puzzles". */
.playmore-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.playmore-btn {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10.5px;
  line-height: 1.15;
  text-align: center;
  color: var(--bg);
  background: linear-gradient(180deg, #F2EFE8 0%, var(--paper) 100%);
  border: 1px solid var(--bg);
  border-left: 4px solid var(--truth);
  border-radius: 0;
  padding: 7px 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.18s ease;
}

.playmore-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 0 0 2px rgba(61, 220, 106, 0.35), 0 10px 22px rgba(0, 0, 0, 0.4);
}

.playmore-btn:active { transform: translateY(1px); }

.playmore-btn:focus-visible { outline: 2px solid var(--truth); outline-offset: 2px; }

/* The flyout drops just below the stats row and slides in from the side. */
.playmore-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  padding: 14px;
  min-width: 332px;
  background: linear-gradient(180deg, #1E2125 0%, var(--bg) 100%);
  border: 1px solid rgba(138, 143, 152, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.playmore-wrap.is-open .playmore-menu {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* A pointer notch back up to the button. */
.playmore-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  width: 11px;
  height: 11px;
  background: #1E2125;
  border-left: 1px solid rgba(138, 143, 152, 0.4);
  border-top: 1px solid rgba(138, 143, 152, 0.4);
  transform: rotate(45deg);
}

.playmore-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

/* Keep the two purchase options side by side (sideways), never stacked, and
   at a FIXED width so hovering (which normally widens letter-spacing) can't
   reflow and shift the whole flyout. */
.playmore-menu .unlock-btn {
  white-space: nowrap;
  padding: 12px 14px;
  font-size: 13px;
  letter-spacing: 0.05em;
  width: 164px;
  text-align: center;
  flex: 0 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover feedback stays (lift + glow) but the text no longer stretches, so the
   button — and the box around it — never changes size. */
.playmore-menu .unlock-btn:hover {
  letter-spacing: 0.06em;
}

.playmore-note {
  font-family: 'Inter', sans-serif;
  color: var(--truth);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  margin: 4px 0 0;
  max-width: 300px;
  text-align: right;
}

.stat-num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  color: var(--paper);
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--meta);
}

.occasion-banner {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--truth);
  margin: 0 0 6px;
  text-shadow: 0 0 14px rgba(61, 220, 106, 0.35);
}

.occasion-banner:empty {
  display: none;
}

.subject-banner {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--paper);
  margin: 0 0 16px;
}

.subject-banner::before {
  content: 'SUBJECT \2014 ';
  color: var(--truth);
}

.subject-banner:empty {
  display: none;
}

#statements {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.statement {
  position: relative;
  background:
    linear-gradient(180deg, #F2EFE8 0%, var(--paper) 100%);
  color: var(--bg);
  border: 1px solid var(--bg);
  border-radius: 0;
  padding: 15px 20px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: border-color 0.14s ease, box-shadow 0.16s ease, transform 0.07s ease;
  animation: card-in 0.34s ease both;
}

.statement:nth-child(1) { animation-delay: 0.03s; }
.statement:nth-child(2) { animation-delay: 0.10s; }
.statement:nth-child(3) { animation-delay: 0.17s; }

.statement:hover {
  border-color: var(--meta);
  box-shadow: 0 0 0 1px var(--meta), 0 12px 26px rgba(0, 0, 0, 0.38);
}

#statements:not(.answered) .statement:hover {
  transform: translateX(3px);
}

#statements:not(.answered) .statement:active {
  transform: scale(0.99);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* After a guess, cards lock and reveal their status. */
#statements.answered .statement {
  cursor: default;
}

/* While "analysing", spotlight the chosen card and dim the others. */
#statements.analysing .statement {
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#statements.analysing .statement:not(.is-picked) {
  opacity: 0.2;
  filter: grayscale(0.7) blur(1.5px);
}

#statements.analysing .statement.is-picked {
  transform: scale(1.06);
  border-color: var(--truth);
  box-shadow: 0 0 0 3px var(--truth),
              0 0 34px rgba(61, 220, 106, 0.55),
              0 16px 36px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

/* "SELECTED" tab on the card you accused — a clear badge on its top edge. */
.pick-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--bg);
  padding: 4px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  z-index: 6;
  white-space: nowrap;
}

#statements.analysing .pick-tag {
  background: var(--truth);
  color: var(--bg);
}

.statement.is-truth {
  border-color: var(--truth);
  background: linear-gradient(180deg, #E7F6ED 0%, #D9F0E1 100%);
  box-shadow: inset 5px 0 0 var(--truth), 0 6px 16px rgba(0, 0, 0, 0.28);
}

.statement.is-lie {
  border-color: var(--lie);
  background: linear-gradient(180deg, #FBE7E9 0%, #F5DBDD 100%);
  box-shadow: inset 5px 0 0 var(--lie), 0 6px 16px rgba(0, 0, 0, 0.28);
}

/* Hover "accuse" hint — clicking a card = calling it the lie. */
#statements:not(.answered) .statement::after {
  content: 'ACCUSE';
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--lie);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

#statements:not(.answered) .statement:hover::after,
#statements:not(.answered) .statement:focus-visible::after {
  opacity: 0.9;
}

.statement.is-picked {
  box-shadow: inset 4px 0 0 currentColor, 0 0 0 2px var(--bg), 0 6px 16px rgba(0, 0, 0, 0.28);
  outline: 2px solid var(--bg);
  outline-offset: 2px;
  animation: card-pick 0.45s ease both;
}

@keyframes card-pick {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.exhibit-label {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  color: var(--bg);
  border: 1px solid rgba(23, 25, 28, 0.4);
  background: rgba(23, 25, 28, 0.05);
  padding: 3px 9px;
  margin-bottom: 11px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Hover: the tag flips to a solid stamp. */
#statements:not(.answered) .statement:hover .exhibit-label {
  background: var(--bg);
  color: var(--paper);
  border-color: var(--bg);
}

.statement-body {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.4;
  margin: 0;
}

/* Source link that appears on each card after the reveal. */
.card-source {
  display: inline-block;
  margin-top: 11px;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.55;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: opacity 0.15s ease, border-color 0.15s ease;
  position: relative;
  z-index: 2;
}

.card-source:hover,
.card-source:focus-visible {
  opacity: 1;
  border-bottom-color: currentColor;
  outline: none;
}

/* ---- Collapsed reveal: cards fold one-by-one to slim EXHIBIT bars -------- */
/* Once the verdict has landed, each card folds down in turn (A, then B, then
   C) to a thin, colour-coded bar so the explanation below becomes the focus.
   Folding is per-card (.is-collapsed) so the stagger reads clearly. Peeking a
   bar open is JS-driven (.is-open) so it lingers and re-folds on a timer
   rather than snapping shut the instant the cursor leaves. */
#statements.collapsed {
  gap: 8px;
}

/* Each folded bar. Slower transitions so the whole thing feels unhurried. */
.statement.is-collapsed {
  padding: 8px 16px;
  cursor: default;
  box-shadow: inset 5px 0 0 var(--truth), 0 3px 9px rgba(0, 0, 0, 0.2);
  transition: padding 0.55s ease, box-shadow 0.55s ease, transform 0.16s ease;
  animation: none;
}

.statement.is-collapsed.is-lie {
  box-shadow: inset 5px 0 0 var(--lie), 0 3px 9px rgba(0, 0, 0, 0.2);
}

.statement.is-collapsed .exhibit-label {
  margin-bottom: 0;
}

/* The "SELECTED" tab has done its job — retire it in the tidy evidence row. */
.statement.is-collapsed .pick-tag {
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

/* The full statement text + source link fold away as the bar collapses... */
.statement.is-collapsed .statement-body,
.statement.is-collapsed .card-source {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.55s ease, opacity 0.4s ease, margin 0.55s ease;
}

/* ...and slide back into view when a bar is peeked open (JS toggles .is-open). */
.statement.is-collapsed.is-open .statement-body {
  max-height: 260px;
  margin-top: 10px;
  opacity: 1;
  pointer-events: auto;
}

.statement.is-collapsed.is-open .card-source {
  max-height: 40px;
  margin-top: 11px;
  opacity: 0.55;
  pointer-events: auto;
}

.statement.is-collapsed.is-open {
  padding: 13px 16px;
}

/* The big rotated LIE / TRUTH stamp settles into a compact right-aligned tag. */
.statement.is-collapsed .stamp {
  top: 15px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 2px 8px;
  border-width: 1.5px;
  transform: rotate(0) scale(1);
  opacity: 1;
  transition: transform 0.55s ease, font-size 0.55s ease, top 0.45s ease;
}

.statement.is-collapsed.is-open .stamp {
  top: 13px;
}

/* With the cards out of the way, make the explanation read as the payoff. */
#statements.collapsed ~ #reveal .verdict {
  font-size: 17px;
}

#statements.collapsed ~ #reveal .reveal-why {
  font-size: 16.5px;
  line-height: 1.5;
  max-width: 560px;
  margin-top: 12px;
  transition: font-size 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .statement.is-collapsed,
  .statement.is-collapsed .statement-body,
  .statement.is-collapsed .card-source,
  .statement.is-collapsed .stamp,
  #statements.collapsed ~ #reveal .reveal-why {
    transition: none;
  }
}

#reveal {
  margin-top: 18px;
  border-top: 1px solid rgba(138, 143, 152, 0.35);
  padding-top: 16px;
  text-align: center;
}

#reveal:not([hidden]) {
  animation: reveal-in 0.34s ease both;
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.countdown {
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.1em;
  font-size: 11.5px;
  color: var(--meta);
  margin: 10px 0 0;
}

.analyzing {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 14px;
  color: var(--truth);
  margin: 6px 0;
  animation: analyzing-pulse 0.85s ease-in-out infinite;
}

.analyzing::after {
  content: '';
  display: inline-block;
  width: 1.4em;
  text-align: left;
  animation: analyzing-dots 1.1s steps(1, end) infinite;
}

@keyframes analyzing-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@keyframes analyzing-dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}

.verdict {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 16px;
  margin: 0;
}

.verdict-correct {
  color: var(--truth);
}

.verdict-wrong {
  color: var(--lie);
}

.reveal-why {
  font-family: 'Inter', sans-serif;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.45;
  max-width: 520px;
  margin: 8px auto 0;
}

.reveal-note {
  font-family: 'Inter', sans-serif;
  color: var(--meta);
  font-size: 12px;
  margin: 8px 0 0;
}

/* ---- Community stats ("X% of detectives caught it") -------------------- */
.community-stat {
  margin: 14px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(138, 143, 152, 0.35);
  max-width: 420px;
  animation: reveal-in 0.34s ease both;
}

.community-head {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: var(--paper);
  margin: 0;
}

.community-you {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  margin: 5px 0 0;
}

.community-you-win { color: var(--truth); }
.community-you-lose { color: var(--lie); }

.community-warm {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--meta);
  margin: 0;
}

.reveal-sources {
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(138, 143, 152, 0.4);
  max-width: 480px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
}

.reveal-sources-title {
  width: 100%;
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--meta);
  margin: 0 0 2px;
}

.source-link {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.source-link.source-truth { color: var(--truth); }
.source-link.source-lie { color: var(--lie); }

a.source-link:hover {
  border-bottom-color: currentColor;
}

a.source-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

span.source-link {
  opacity: 0.6;
  cursor: default;
}

.share-btn {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--bg);
  background: var(--truth);
  border: 1px solid var(--truth);
  border-radius: 0;
  padding: 10px 22px;
  margin-top: 14px;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.12s ease, box-shadow 0.22s ease,
              letter-spacing 0.18s ease;
  animation: btn-rise 0.32s ease both;
}

.share-btn:hover {
  filter: brightness(1.12);
  letter-spacing: 0.12em;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(61, 220, 106, 0.35),
              0 0 22px rgba(61, 220, 106, 0.55),
              0 10px 22px rgba(0, 0, 0, 0.35);
}

.share-btn:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 3px rgba(61, 220, 106, 0.35);
}

.share-btn:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

@keyframes btn-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Reveal actions: Share + Play Yesterday's, side by side ------------- */
.reveal-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

/* The buttons bring their own top margin; zero it inside the row. */
.reveal-actions .share-btn,
.reveal-actions .yesterday-btn {
  margin-top: 0;
}

/* Secondary ghost button for the free "Play Yesterday's" / back actions.
   When it stands alone under the note (the "← Back to today" case) it needs
   its own top margin so it doesn't crowd the text above it. */
.yesterday-btn {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--meta);
  border-radius: 0;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
              letter-spacing 0.18s ease, transform 0.12s ease;
}

.yesterday-btn:hover {
  color: var(--bg);
  background: var(--paper);
  border-color: var(--paper);
  letter-spacing: 0.12em;
  transform: translateY(-2px);
}

.yesterday-btn:active { transform: translateY(1px); }

.yesterday-btn:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

/* ---- Paid "unlock more" call to action --------------------------------- */
.unlock-cta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* A bone-paper case-file tab with a red evidence stripe down the side. */
.unlock-btn {
  position: relative;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12.5px;
  color: var(--bg);
  background: linear-gradient(180deg, #F2EFE8 0%, var(--paper) 100%);
  border: 1px solid var(--bg);
  border-left: 5px solid var(--lie);
  border-radius: 0;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, box-shadow 0.22s ease,
              letter-spacing 0.18s ease, filter 0.18s ease;
  animation: btn-rise 0.32s ease both;
}

/* The two purchase tiers sit side by side; they wrap only if the screen is
   too narrow to hold both, so they never blow out the page layout. */
.unlock-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.unlock-buttons .unlock-btn {
  padding: 12px 18px;
}

/* The larger pack is the better-value option — a green stripe hints "deal". */
.unlock-btn.is-big {
  border-left-color: var(--truth);
}

/* "Play next" (already paid) reads as a green go-action instead of a buy. */
.unlock-btn.is-go {
  border-left-color: var(--truth);
}

/* The season pass is the premium option: an inverted dark "case seal" so it
   stands apart from the bone-paper bundle button when both are shown. */
.unlock-btn.is-pass {
  color: var(--paper);
  background: linear-gradient(180deg, #1E2125 0%, var(--bg) 100%);
  border-color: var(--bg);
  border-left-color: var(--truth);
}

.unlock-btn.is-pass:hover {
  box-shadow: 0 0 0 2px rgba(61, 220, 106, 0.35), 0 12px 26px rgba(0, 0, 0, 0.45);
}

.unlock-btn:hover {
  letter-spacing: 0.12em;
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 0 0 2px rgba(229, 72, 77, 0.35), 0 12px 26px rgba(0, 0, 0, 0.4);
}

.unlock-btn.is-go:hover {
  box-shadow: 0 0 0 2px rgba(61, 220, 106, 0.35), 0 12px 26px rgba(0, 0, 0, 0.4);
}

.unlock-btn:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.unlock-btn:disabled {
  cursor: default;
  filter: none;
  opacity: 0.7;
  transform: none;
}

.unlock-btn:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

.unlock-sub {
  font-family: 'Inter', sans-serif;
  color: var(--meta);
  font-size: 11.5px;
  margin: 9px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  #new-puzzle,
  .share-btn,
  .unlock-btn,
  .yesterday-btn,
  .statement,
  .statement.is-picked,
  .analyzing,
  .analyzing::after,
  #reveal:not([hidden]) {
    transition: none;
    animation: none;
  }
}

.site-footer {
  margin-top: 18px;
  text-align: center;
}

/* Tip jar — hidden until CONFIG.supportUrl is set. */
.tip-jar {
  display: block;
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--meta);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tip-jar:hover {
  color: var(--truth);
  border-bottom-color: var(--truth);
}

/* Sponsor line on the splash — hidden until CONFIG.sponsor is set. */
.sponsor {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 16px 0 0;
}

.sponsor-name {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a.sponsor-name:hover {
  color: var(--truth);
  border-bottom-color: var(--truth);
}

#new-puzzle {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--meta);
  border-radius: 0;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
              letter-spacing 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

#new-puzzle:hover {
  color: var(--bg);
  background: var(--paper);
  border-color: var(--paper);
  letter-spacing: 0.14em;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 -2px rgba(237, 234, 226, 0.25), 0 10px 22px rgba(0, 0, 0, 0.35);
}

#new-puzzle:active {
  transform: translateY(1px);
  box-shadow: none;
}

#new-puzzle:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

/* ---- Splash / landing screen ------------------------------------------- */
.landing {
  position: fixed;
  inset: 0;
  z-index: 20;
  background:
    radial-gradient(900px 520px at 50% 12%, rgba(61, 220, 106, 0.07), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(0, 0, 0, 0.5), transparent 70%),
    var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow-y: auto;
  animation: landing-in 0.5s ease both;
}

.landing.is-gone {
  animation: landing-out 0.4s ease forwards;
}

@keyframes landing-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes landing-out {
  to { opacity: 0; transform: translateY(-12px); }
}

.landing-mark {
  width: 84px;
  height: 84px;
  color: var(--paper);
  margin-bottom: 26px;
}

.landing-mark-line {
  stroke: var(--truth);
  filter: drop-shadow(0 0 7px rgba(61, 220, 106, 0.55));
  animation: mark-draw 1.1s ease both 0.2s;
}

@keyframes mark-draw {
  from { stroke-dasharray: 220; stroke-dashoffset: 220; }
  to   { stroke-dasharray: 220; stroke-dashoffset: 0; }
}

.landing-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 40px;
  margin: 0;
}

.landing-sub {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  line-height: 1.35;
  color: var(--paper);
  margin: 18px 0 28px;
}

.landing-sub::after {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  background: var(--meta);
  opacity: 0.5;
  margin: 24px auto 0;
}

.landing-subject-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 22px 0 6px;
}

.landing-subject {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 27px;
  color: var(--truth);
  text-shadow: 0 0 18px rgba(61, 220, 106, 0.35);
  margin: 0 0 30px;
}

.play-btn {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 16px;
  color: var(--bg);
  background: var(--truth);
  border: 1px solid var(--truth);
  border-radius: 0;
  padding: 16px 54px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.22s ease,
              letter-spacing 0.18s ease, filter 0.18s ease;
  animation: play-pulse 2.4s ease-in-out infinite;
}

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 106, 0), 0 8px 20px rgba(0, 0, 0, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(61, 220, 106, 0.12), 0 8px 26px rgba(0, 0, 0, 0.4); }
}

.play-btn:hover {
  transform: translateY(-3px) scale(1.03);
  letter-spacing: 0.2em;
  filter: brightness(1.12);
  box-shadow: 0 0 0 4px rgba(61, 220, 106, 0.32),
              0 0 30px rgba(61, 220, 106, 0.6),
              0 14px 30px rgba(0, 0, 0, 0.4);
  animation: none;
}

.play-btn:active {
  transform: translateY(1px) scale(0.98);
}

.play-btn:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 4px;
}

.landing-meta {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(138, 143, 152, 0.25);
  min-width: 200px;
}

.landing-date {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--paper);
  font-size: 14px;
  margin: 0;
}

.landing-no {
  font-family: 'Space Mono', monospace;
  color: var(--meta);
  font-size: 13px;
  margin: 5px 0 0;
}

.landing-tag {
  font-family: 'Inter', sans-serif;
  color: var(--meta);
  font-size: 13px;
  margin: 10px 0 0;
}

.game.game-in {
  animation: game-in 0.45s ease both;
}

@keyframes game-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.how-to-btn {
  margin-top: 18px;
  background: none;
  border: none;
  color: var(--meta);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.how-to-btn:hover {
  color: var(--paper);
}

.how-to-btn:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 3px;
}

/* Keyboard focus on statement cards. */
.statement:focus-visible {
  outline: 2px solid var(--truth);
  outline-offset: 3px;
}

/* ---- How-to-play modal -------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  animation: modal-fade 0.2s ease both;
}

.modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  color: var(--bg);
  border: 1px solid var(--bg);
  border-radius: 0;
  padding: 32px 28px 28px;
  text-align: center;
  animation: modal-rise 0.28s ease both;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--bg);
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:focus-visible {
  outline: 1px solid var(--bg);
  outline-offset: 2px;
}

.modal-title {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 20px;
  margin: 0 0 18px;
}

.modal-line {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.modal-cta {
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--paper);
  background: var(--bg);
  border: 1px solid var(--bg);
  border-radius: 0;
  padding: 12px 28px;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.modal-cta:hover { filter: brightness(1.3); }
.modal-cta:active { transform: translateY(1px); }
.modal-cta:focus-visible { outline: 2px solid var(--bg); outline-offset: 3px; }

@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Click ripple ------------------------------------------------------- */
#new-puzzle,
.share-btn,
.play-btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.5);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(2.6); opacity: 0; }
}

/* ---- Rubber-stamp reveal ------------------------------------------------ */
.stamp {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%) rotate(-11deg) scale(1.9);
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 22px;
  padding: 4px 12px;
  border: 2.5px solid currentColor;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  animation: stamp-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}

.stamp-lie { color: var(--lie); }
.stamp-truth { color: var(--truth); }

@keyframes stamp-in {
  0%   { opacity: 0; transform: translateY(-50%) rotate(-11deg) scale(1.9); }
  60%  { opacity: 1; transform: translateY(-50%) rotate(-11deg) scale(0.92); }
  100% { opacity: 0.92; transform: translateY(-50%) rotate(-11deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .landing,
  .landing.is-gone,
  .landing-mark-line,
  .play-btn,
  .game.game-in,
  .stamp,
  .ripple,
  .modal-backdrop,
  .modal-box {
    animation: none;
  }
  .stamp { opacity: 0.92; transform: translateY(-50%) rotate(-11deg) scale(1); }
}

@media (max-width: 420px) {
  .wrap {
    padding: 20px 14px 26px;
  }

  .title {
    font-size: 24px;
  }

  .subject-banner {
    font-size: 13px;
  }

  .landing-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
  }

  .landing-title {
    font-size: 27px;
  }

  .landing-sub {
    font-size: 18px;
  }

  .landing-subject {
    font-size: 22px;
  }

  .play-btn {
    padding: 15px 46px;
  }

  .statement-body {
    font-size: 15px;
  }

  .stamp {
    font-size: 15px;
    right: 12px;
    padding: 3px 8px;
  }

  /* Gentler pop on small screens so the scaled card never overflows. */
  #statements.analysing .statement.is-picked {
    transform: scale(1.03);
  }

  .modal-box {
    padding: 26px 20px 24px;
  }
}

/* =========================================================================
   3-ROUND REDESIGN — one theme played as three rounds, with a filed-case
   dock, a progress rail and a culmination. Scoped under .cards/.round/.filed/
   #culmination so it sits alongside (and wins over) the legacy single-shot
   #statements styles above. Ported from the verified prototype.
   ========================================================================= */

/* landing pitch line */
.rounds-pitch {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--truth);
  text-transform: uppercase;
  margin: 6px 0 4px;
}

/* ---- progress rail ---- */
.rail { display: flex; justify-content: center; gap: 10px; margin: 4px 0 12px; }
.rail-seg {
  flex: 0 0 auto; width: 92px; max-width: 30%;
  border: 1px solid rgba(138, 143, 152, 0.5);
  padding: 7px 8px 6px; text-align: center; position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.35s ease, background 0.35s ease;
}
.rail-seg .rs-num {
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; color: var(--meta);
}
.rail-seg .rs-sub {
  font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.08em;
  color: var(--meta); text-transform: uppercase; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.75;
}
.rail-seg.active { border-color: var(--paper); background: rgba(237, 234, 226, 0.06); }
.rail-seg.active .rs-num { color: var(--paper); }
.rail-seg.done-win { border-color: var(--truth); background: rgba(61, 220, 106, 0.08); }
.rail-seg.done-win .rs-num { color: var(--truth); }
.rail-seg.done-lose { border-color: var(--lie); background: rgba(229, 72, 77, 0.08); }
.rail-seg.done-lose .rs-num { color: var(--lie); }
.rail-seg .rs-mark {
  position: absolute; top: 5px; right: 7px; font-size: 11px; font-weight: 700;
  opacity: 0; transition: opacity 0.3s ease;
}
.rail-seg.done-win .rs-mark, .rail-seg.done-lose .rs-mark { opacity: 1; }

/* ---- stage / rounds ---- */
#stage { position: relative; min-height: 340px; }
.round {
  width: 100%;
  transition: transform 0.72s cubic-bezier(0.55, 0, 0.28, 1), opacity 0.6s ease, filter 0.6s ease;
  will-change: transform, opacity;
}
.round.enter { animation: round-enter 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes round-enter { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }
.round.exit-left { transform: translateX(-135%) scale(0.55) rotate(-4deg); opacity: 0; filter: blur(2px); pointer-events: none; }
.round.exit-center { transform: translateY(-14px) scale(0.42); opacity: 0; filter: blur(2px); pointer-events: none; }

.round-head { text-align: center; margin-bottom: 14px; }
.round-tag { font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: 0.16em; font-size: 11px; color: var(--truth); }
.round-subject { font-family: 'Space Mono', monospace; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 17px; margin: 4px 0 0; }

/* ---- cards (the three exhibits in a round) ---- */
.cards { display: flex; flex-direction: column; gap: 12px; }
.cards .statement {
  position: relative; background: linear-gradient(180deg, #F2EFE8 0%, var(--paper) 100%); color: var(--bg);
  border: 1px solid var(--bg); padding: 15px 20px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: border-color 0.14s ease, box-shadow 0.16s ease, transform 0.07s ease, opacity 0.2s, filter 0.2s;
  animation: card-in 0.34s ease both;
}
.cards .statement:nth-child(1) { animation-delay: 0.03s; }
.cards .statement:nth-child(2) { animation-delay: 0.10s; }
.cards .statement:nth-child(3) { animation-delay: 0.17s; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cards:not(.answered) .statement:hover {
  border-color: var(--meta); transform: translateX(3px);
  box-shadow: 0 0 0 1px var(--meta), 0 12px 26px rgba(0, 0, 0, 0.38);
}
.cards:not(.answered) .statement:active { transform: scale(0.99); }
.cards .exhibit-label {
  display: inline-block; font-family: 'Space Mono', monospace; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 10px; color: var(--bg); border: 1px solid rgba(23, 25, 28, 0.4);
  background: rgba(23, 25, 28, 0.05); padding: 3px 9px; margin-bottom: 11px;
}
.cards:not(.answered) .statement:hover .exhibit-label { background: var(--bg); color: var(--paper); border-color: var(--bg); }
.cards .statement-body { font-size: 15.5px; line-height: 1.4; margin: 0; }
.cards .statement::after {
  content: 'ACCUSE'; position: absolute; top: 16px; right: 18px; font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 9px; letter-spacing: 0.16em; color: var(--lie); opacity: 0;
  transition: opacity 0.15s ease; pointer-events: none;
}
.cards:not(.answered) .statement:hover::after, .cards:not(.answered) .statement:focus-visible::after { opacity: 0.9; }
.cards .statement:focus-visible { outline: 2px solid var(--truth); outline-offset: 2px; }

/* analysing spotlight */
.cards.analysing .statement:not(.is-picked) { opacity: 0.2; filter: grayscale(0.7) blur(1.5px); }
.cards.analysing .statement.is-picked {
  transform: scale(1.05); border-color: var(--truth); z-index: 5;
  box-shadow: 0 0 0 3px var(--truth), 0 0 34px rgba(61, 220, 106, 0.55), 0 16px 36px rgba(0, 0, 0, 0.5);
}
.cards .pick-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper);
  background: var(--bg); padding: 4px 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); z-index: 6; white-space: nowrap;
}
.cards.analysing .pick-tag { background: var(--truth); color: var(--bg); }

/* verdict colours */
.cards .statement.is-truth { border-color: var(--truth); background: linear-gradient(180deg, #E7F6ED 0%, #D9F0E1 100%); box-shadow: inset 5px 0 0 var(--truth), 0 6px 16px rgba(0, 0, 0, 0.28); }
.cards .statement.is-lie { border-color: var(--lie); background: linear-gradient(180deg, #FBE7E9 0%, #F5DBDD 100%); box-shadow: inset 5px 0 0 var(--lie), 0 6px 16px rgba(0, 0, 0, 0.28); }
.cards .statement.is-picked { outline: 2px solid var(--bg); outline-offset: 2px; }

/* rubber stamp */
.cards .stamp {
  position: absolute; top: 50%; right: 22px; transform: translateY(-50%) rotate(-11deg) scale(1.9);
  font-family: 'Space Mono', monospace; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 22px; padding: 4px 12px; border: 2.5px solid currentColor; border-radius: 2px; opacity: 0;
  pointer-events: none; animation: stamp-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.cards .stamp-lie { color: var(--lie); }
.cards .stamp-truth { color: var(--truth); }
@keyframes stamp-in {
  0% { opacity: 0; transform: translateY(-50%) rotate(-11deg) scale(1.9); }
  60% { opacity: 1; transform: translateY(-50%) rotate(-11deg) scale(0.92); }
  100% { opacity: 0.92; transform: translateY(-50%) rotate(-11deg) scale(1); }
}

/* in-round source link */
.cards .card-source {
  display: inline-block; font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--bg); opacity: 0.6; text-decoration: none; margin-top: 8px;
}
.cards .card-source:hover { opacity: 1; text-decoration: underline; }

/* collapse cards to slim bars after the round concludes */
.cards.collapsed { gap: 8px; }
.cards .statement.is-collapsed {
  padding: 8px 16px; cursor: pointer; box-shadow: inset 5px 0 0 var(--truth), 0 3px 9px rgba(0, 0, 0, 0.2);
  transition: padding 0.55s ease, box-shadow 0.55s ease, max-height 0.55s ease;
}
.cards .statement.is-collapsed.is-lie { box-shadow: inset 5px 0 0 var(--lie), 0 3px 9px rgba(0, 0, 0, 0.2); }
.cards .statement.is-collapsed .exhibit-label { margin-bottom: 0; }
.cards .statement.is-collapsed .statement-body,
.cards .statement.is-collapsed .card-source { max-height: 0; opacity: 0; overflow: hidden; margin: 0; transition: max-height 0.5s ease, opacity 0.35s ease; }
.cards .statement.is-collapsed .stamp { top: 14px; right: 14px; font-size: 10px; letter-spacing: 0.14em; padding: 2px 8px; border-width: 1.5px; transform: rotate(0) scale(1); opacity: 1; transition: all 0.5s ease; }
.cards .statement.is-collapsed .pick-tag { opacity: 0; }
.cards .statement.is-collapsed.is-open { padding: 15px 20px; }
.cards .statement.is-collapsed.is-open .statement-body,
.cards .statement.is-collapsed.is-open .card-source { max-height: 200px; opacity: 1; margin-top: 6px; }
.cards .statement.is-collapsed::after { display: none; }

/* ---- the "why the lie is false" fact section ---- */
.why-panel { margin-top: 16px; border-top: 1px solid rgba(138, 143, 152, 0.35); padding-top: 14px; text-align: center; animation: fade-up 0.34s ease both; }
.why-panel .verdict { font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: 0.06em; font-size: 16px; margin: 0; }
.why-panel .verdict-correct { color: var(--truth); }
.why-panel .verdict-wrong { color: var(--lie); }
.why-label { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--meta); text-transform: uppercase; margin: 12px 0 4px; }
.why-text { font-size: 15px; line-height: 1.5; max-width: 540px; margin: 0 auto; color: var(--paper); }
.why-text b { color: var(--truth); }
.continue-btn {
  margin-top: 18px; font-family: 'Space Mono', monospace; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 13px; color: var(--bg); background: var(--paper); border: 1px solid var(--paper); border-left: 5px solid var(--truth);
  border-radius: 0; padding: 12px 28px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.22s ease, letter-spacing 0.18s ease, filter 0.18s ease;
  animation: fade-up 0.4s ease both 0.1s;
}
.continue-btn:hover { transform: translateY(-2px); letter-spacing: 0.14em; filter: brightness(1.03); box-shadow: 0 0 0 2px rgba(61, 220, 106, 0.35), 0 12px 26px rgba(0, 0, 0, 0.4); }
.continue-btn:active { transform: translateY(1px); }
.continue-btn.is-go { background: var(--truth); border-color: var(--truth); border-left-color: var(--bg); }

/* ---- filed cases: solved rounds stack in the left gutter (wide screens) ---- */
.filed-dock {
  position: fixed; left: max(12px, calc(50% - 500px)); top: 50%; transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; gap: 10px; width: 118px;
}
.filed {
  width: 118px; padding: 12px 12px 14px;
  background: linear-gradient(180deg, #20242a 0%, var(--bg) 100%); border: 1px solid rgba(138, 143, 152, 0.4);
  opacity: 0; transform: translateX(-16px) scale(0.96); pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.filed.show { opacity: 1; transform: none; }
.filed .f-num { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 10px; letter-spacing: 0.14em; color: var(--meta); }
.filed .f-sub { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; margin: 5px 0 7px; line-height: 1.2; }
.fbars { display: flex; flex-direction: column; gap: 4px; margin: 0 0 9px; }
.fbar { height: 8px; width: 100%; border: 1px solid rgba(0, 0, 0, 0.3); position: relative; }
.fbar.truth { background: var(--truth); }
.fbar.lie { background: var(--lie); }
.fbar.picked::after { content: ''; position: absolute; inset: -3px; border: 1.5px solid var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.filed .f-result { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; }
.filed.win { border-left: 4px solid var(--truth); }
.filed.win .f-result { color: var(--truth); }
.filed.lose { border-left: 4px solid var(--lie); }
.filed.lose .f-result { color: var(--lie); }
@media (max-width: 1120px) { .filed-dock { display: none; } }

/* ---- culmination ---- */
#culmination { text-align: center; animation: fade-up 0.5s ease both; }
.cul-score { font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: 0.1em; font-size: 14px; color: var(--meta); text-transform: uppercase; margin: 0 0 6px; }
.cul-score b { color: var(--paper); font-size: 26px; }
.cul-caseclosed { font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: 0.2em; font-size: 13px; color: var(--truth); text-transform: uppercase; margin: 10px 0 20px; position: relative; display: inline-block; }
.cul-caseclosed::before, .cul-caseclosed::after { content: ''; position: absolute; top: 50%; width: 34px; height: 1px; background: var(--truth); opacity: 0.5; }
.cul-caseclosed::before { right: calc(100% + 12px); }
.cul-caseclosed::after { left: calc(100% + 12px); }
.cul-panel { max-width: 560px; margin: 0 auto; border: 1px solid rgba(138, 143, 152, 0.4); padding: 22px 24px; background: linear-gradient(180deg, rgba(61, 220, 106, 0.05) 0%, rgba(0, 0, 0, 0.15) 100%); position: relative; }
.cul-label { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--truth); text-transform: uppercase; margin: 0 0 10px; }
.cul-fact { font-size: 19px; line-height: 1.55; margin: 0; color: var(--paper); }
.cul-fact b { color: var(--truth); }
.cul-kicker { font-size: 14px; color: var(--meta); margin: 14px auto 0; max-width: 460px; }
.cul-verdict { font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: 0.04em; font-size: 13px; margin: 18px 0 0; }
.cul-verdict.verdict-correct { color: var(--truth); }
.cul-verdict.verdict-wrong { color: var(--lie); }

/* culmination actions + offers */
#culmination .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
#culmination .countdown { margin-top: 16px; }
.playmore-offers { max-width: 520px; margin: 26px auto 0; border-top: 1px solid rgba(138, 143, 152, 0.35); padding-top: 22px; }
.playmore-offers .playmore-title { font-family: 'Space Mono', monospace; font-weight: 700; letter-spacing: 0.12em; font-size: 12px; text-transform: uppercase; color: var(--meta); margin: 0 0 4px; }
/* The base .playmore-note rule is written for the PLAY MORE flyout, where the
   note hangs off the right edge of the menu — so it carries max-width: 300px
   and text-align: right. On the culmination screen the same class sits in a
   520px centred block, and those two properties were not being overridden: the
   line wrapped early at 300px and hung right instead of centring under the
   title. Reset both here. */
.playmore-offers .playmore-note {
  color: var(--truth); font-size: 14px; font-weight: 500; margin: 0 0 16px;
  max-width: none; text-align: center;
}
.offer-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.offer {
  position: relative; flex: 1 1 200px; max-width: 240px; background: linear-gradient(180deg, #F2EFE8 0%, var(--paper) 100%);
  color: var(--bg); border: 1px solid var(--bg); border-left: 5px solid var(--truth); padding: 16px 18px; cursor: pointer;
  text-align: left; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.14s ease, box-shadow 0.22s ease, filter 0.18s ease;
}
.offer:hover { transform: translateY(-3px); filter: brightness(1.02); box-shadow: 0 0 0 2px rgba(61, 220, 106, 0.4), 0 14px 30px rgba(0, 0, 0, 0.4); }
.offer.pass { background: linear-gradient(180deg, #20242a 0%, var(--bg) 100%); color: var(--paper); border-color: var(--bg); }
.offer .o-name { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.offer .o-price { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 26px; margin: 6px 0 4px; }
.offer .o-desc { font-size: 12.5px; line-height: 1.35; opacity: 0.85; }
.offer .o-badge { position: absolute; top: -10px; right: 12px; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--truth); color: var(--bg); padding: 3px 9px; }

@media (max-width: 420px) {
  .rail-seg { width: 86px; }
  .round-subject { font-size: 15px; }
  .cards .stamp { font-size: 15px; right: 12px; padding: 3px 8px; }
  .cul-fact { font-size: 17px; }
}

/* =========================================================================
   MOBILE 3-ROUND REFINEMENTS
   1) Reclaim vertical space during play so all three exhibits sit above the
      fold (hide the big title + stats row while a round is live, slim the
      polygraph/rail). 2) Solved rounds file into an INLINE strip at the top
      instead of the desktop-only left dock, so advancing never blanks.
   ========================================================================= */

/* the concluded round collapses UP into its inline filed strip (mobile) */
.round.exit-up { transform: translateY(-16px) scale(0.97); opacity: 0; filter: blur(1px); pointer-events: none; }

/* inline filed strip — hidden on desktop (the fixed left dock is used there) */
.filed-strip { display: none; }

@media (max-width: 1120px) {
  /* desktop dock off, inline strip on */
  .filed-dock { display: none; }
  .filed-strip {
    display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; width: 100%;
  }
  /* compact horizontal filed card: mini-board · round/subject · verdict */
  .filed-strip .filed {
    width: 100%; display: flex; align-items: center; gap: 11px; padding: 8px 13px;
    transform: translateY(-8px); opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  .filed-strip .filed.show { opacity: 1; transform: none; }
  .filed-strip .fbars { order: 1; flex: 0 0 auto; flex-direction: column; width: 22px; gap: 3px; margin: 0; }
  .filed-strip .fbar { height: 5px; width: 100%; }
  .filed-strip .f-num { order: 2; flex: 0 0 auto; }
  .filed-strip .f-sub { order: 3; flex: 1 1 auto; margin: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .filed-strip .f-result { order: 4; flex: 0 0 auto; }
}

/* Reclaim space while a round is live (not at the culmination). */
@media (max-width: 640px) {
  #game.is-playing .site-header { display: none; }
  #game.is-playing #stats { display: none; }
  #polygraph { height: 24px; margin: 4px 0 10px; }
  .rail { margin: 2px 0 8px; }
  .rail-seg { padding: 6px 7px 5px; }
  #stage { min-height: 240px; }
  .round-head { margin-bottom: 10px; }
  main { margin-top: 0; }
}
