@import url("../../fonts/mattb.css");

/*
 * The page is the host's: no background of its own, so the game sits on
 * the site with no box around it (rulebook: no card or box). Around the
 * picture (status line, challenge choices, review) the site's colours
 * apply; the picture and the dialogue box are a dark screen, with their
 * own palette below.
 */
:root {
  --ct-page: transparent;
  --ct-panel: var(--color-surface-base, #fff);
  --ct-panel-raised: var(--color-surface-panel, #f4f1ec);
  --ct-line: var(--color-border-surface, #d9d4cc);
  --ct-ink: var(--color-content-base, #222);
  --ct-muted: var(--color-content-secondary, #6b6459);
  --ct-gold: #e3b45a;
  --ct-right: var(--color-action-success-base, #2e8b57);
  --ct-wrong: var(--color-action-error-base, #c0392b);
  --ct-hand: "MattB", "Lexend", ui-sans-serif, system-ui, sans-serif;
  --ct-display: "Fraunces", ui-serif, Georgia, serif;
}

.ct-stage,
.ct-box,
.ct-hero {
  --ct-page: #14181f;
  --ct-panel: #1e2530;
  --ct-panel-raised: #273140;
  --ct-line: #3a4656;
  --ct-ink: #f3eee3;
  --ct-muted: #b3ac9e;
  --ct-right: #6cc391;
  --ct-wrong: #e7735e;
  color: var(--ct-ink);
}

#game {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 16px 28px;
}

/* Top line: where the trial is, and the kit's menu buttons. */
.ct-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 8px;
}

.ct-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  color: var(--ct-muted);
}

.ct-status b {
  color: var(--ct-ink);
  font-weight: 600;
  white-space: nowrap;
}

.ct-top-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Quiet on purpose: it is there for replays, not to compete with the story. */
.ct-skip {
  font: inherit;
  font-size: 13px;
  color: var(--ct-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  opacity: 0.8;
}

.ct-skip:hover,
.ct-skip:focus-visible {
  color: var(--ct-ink);
  border-color: var(--ct-line);
  opacity: 1;
  outline: none;
}

.ct-pips {
  display: flex;
  gap: 4px;
}

.ct-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ct-line);
}

.ct-pip.is-right {
  background: var(--ct-right);
  border-color: var(--ct-right);
}

.ct-pip.is-wrong {
  background: var(--ct-wrong);
  border-color: var(--ct-wrong);
}

.ct-pip.is-now {
  border-color: var(--ct-gold);
  box-shadow: 0 0 0 2px rgba(227, 180, 90, 0.35);
}

/* The stage: a background, at most one character, Aris at the defense
   table, a close-up, and the code-drawn overlays. */
.ct-stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12px 12px 0 0;
  background: #0b0d11;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ct-stage img {
  position: absolute;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* The camera: everything on the stage except the overlays. It never
   moves on its own (Kevin, 2026-10-03: no zooms or pans). */
.ct-camera {
  position: absolute;
  inset: 0;
  transform-origin: 50% 42%;
}

.ct-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  animation: ct-clear 280ms ease-out forwards;
}

.ct-bg,
.ct-fg,
.ct-insert {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-fg {
  z-index: 3;
}

.ct-insert {
  z-index: 4;
}

/*
 * The picture: 16:9 and as tall as the stage, centred, so a narrower
 * stage crops its sides. The character is placed in percent of it.
 * Each courtroom view frames the point (--fx, --fy) at --zoom; the
 * framing is fixed per view and never moves.
 */
.ct-set {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 16 / 9;
  transform-origin: 50% 50%;
  transform: translate(-50%, 0) scale(var(--zoom, 1))
    translate(calc((0.5 - var(--fx, 0.5)) * 100%), calc((0.5 - var(--fy, 0.5)) * 100%));
}

.ct-actors {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Split screen: two panels on paper, cut on a slant like comic frames.
   Each panel's picture is shifted so its character sits in its half. */
.ct-split {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  background: #f4ecdc;
  animation: ct-fade 200ms ease-out;
}

.ct-split[hidden] {
  display: none;
}

.ct-panel,
.ct-panel-shift {
  position: absolute;
  inset: 0;
}

.ct-panel.is-left {
  clip-path: polygon(0 0, 52.5% 0, 46.5% 100%, 0 100%);
}

.ct-panel.is-right {
  clip-path: polygon(53.8% 0, 100% 0, 100% 100%, 47.8% 100%);
}

.is-left .ct-panel-shift {
  transform: translateX(-25%);
}

.is-right .ct-panel-shift {
  transform: translateX(25%);
}

.ct-actor {
  position: absolute;
  transform: translateX(-50%);
}

.ct-actor.is-entering {
  animation: ct-enter 200ms ease-out;
}

@keyframes ct-enter {
  from {
    opacity: 0;
  }
}

.ct-card-screen.is-title {
  background: rgba(8, 9, 12, 0.35);
}

.ct-stage[data-mood="flashback"] .ct-bg,
.ct-stage[data-mood="flashback"] .ct-insert,
.ct-stage[data-mood="flashback"] .ct-actor {
  filter: sepia(0.45) saturate(0.7) contrast(0.95);
}

.ct-stage[data-mood="flashback"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(20, 12, 4, 0.55));
}

/* A challenge shortens the stage so the argument, the question and
   the choices fit on one screen. */
.ct-stage.is-challenge {
  aspect-ratio: 21 / 9;
}

.ct-stage.is-shaking {
  animation: ct-shake 360ms ease-in-out;
}

@keyframes ct-shake {
  20% {
    transform: translate(-6px, 2px);
  }
  40% {
    transform: translate(6px, -2px);
  }
  60% {
    transform: translate(-4px, 1px);
  }
  80% {
    transform: translate(3px, 0);
  }
}

.ct-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.ct-caption {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px 2px;
  font-family: var(--ct-hand);
  font-size: 22px;
  color: #2a2116;
  background: #f1e6c8;
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* A time card: a band across the lower third of the picture, so a jump
   in time can't be missed (Kevin: the corner caption was), while the
   people in an establishing shot stay in view. */
.ct-time-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 76%;
  z-index: 6;
  transform: translateY(-50%);
  padding: 0.35em 0 0.25em;
  font-family: var(--ct-hand);
  font-size: clamp(30px, 8cqw, 64px);
  line-height: 1;
  text-align: center;
  color: #2a2116;
  background: rgba(241, 230, 200, 0.94);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  animation: ct-fade 300ms ease-out;
}

.ct-card-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(8, 9, 12, 0.88);
  animation: ct-fade 400ms ease-out;
}

.ct-card-screen h2 {
  margin: 0;
  font-family: var(--ct-display);
  font-weight: 900;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1;
  color: var(--ct-ink);
}

.ct-card-screen h2.is-gold {
  color: var(--ct-gold);
}

/* The title card: "The Case of the" small, over "Missing Yogurt". */
.ct-card-screen h2 small {
  display: block;
  margin-bottom: 0.15em;
  font-family: var(--ct-hand);
  font-weight: 400;
  font-size: 0.45em;
  color: var(--ct-ink);
}

.ct-dark {
  position: absolute;
  inset: 0;
  background: #000;
  animation: ct-fade 900ms ease-in;
}

@keyframes ct-fade {
  from {
    opacity: 0;
  }
}

.ct-slam {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) rotate(-7deg);
  font-family: var(--ct-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(40px, 10vw, 84px);
  line-height: 1;
  white-space: nowrap;
  color: #fff8e6;
  -webkit-text-stroke: 3px #1d6f7e;
  paint-order: stroke fill;
  text-shadow:
    0 6px 0 #0d3b44,
    0 10px 24px rgba(0, 0, 0, 0.5);
  animation: ct-slam 380ms cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes ct-clear {
  to {
    opacity: 0;
  }
}

.ct-slam.is-verdict {
  -webkit-text-stroke-color: #6b5320;
  text-shadow:
    0 6px 0 #3b2c0c,
    0 10px 24px rgba(0, 0, 0, 0.5);
}

.ct-slam.is-guilty {
  -webkit-text-stroke-color: #7d2a20;
  text-shadow:
    0 6px 0 #3d120c,
    0 10px 24px rgba(0, 0, 0, 0.5);
}

@keyframes ct-slam {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-7deg) scale(2.2);
  }
}

/* Defense Exhibit A and the stranger's card, drawn in code. */
/* Left of centre, so Young stays in view beside it. */
/* Pinned to the easel's board (insert/exhibit-easel). */
.ct-exhibit {
  position: absolute;
  left: 50%;
  top: 43%;
  width: min(52%, 440px);
  transform: translate(-50%, -50%);
  background: #fffdf5;
  color: #173d4b;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: ct-fade 300ms ease-out;
}

/* Sized to the stage (cqw), so the chart stays on the board at any width. */
.ct-exhibit header {
  padding: 0.4em 0.8em;
  background: #0e5268;
  color: #fffaf0;
  font-family: var(--ct-display);
  font-weight: 800;
  font-size: 2.6cqw;
}

.ct-exhibit table {
  width: 100%;
  border-collapse: collapse;
  font-size: 2.2cqw;
}

.ct-exhibit caption {
  padding: 0.6em 0.9em 0.2em;
  text-align: left;
  font-weight: 600;
}

/* On a phone the board is too small to read at its own size: the chart
   grows past it. */
@container (max-width: 520px) {
  .ct-exhibit {
    top: 50%;
    width: 86%;
  }

  .ct-exhibit header {
    font-size: 4.2cqw;
  }

  .ct-exhibit table {
    font-size: 3.6cqw;
  }
}

.ct-exhibit th,
.ct-exhibit td {
  padding: 0.3em 0.9em;
  border-top: 1px solid #ddd5c4;
  text-align: left;
}

.ct-exhibit td + td,
.ct-exhibit th + th {
  text-align: center;
}

.ct-exhibit td + td {
  font-weight: 700;
  font-size: 1.25em;
}

/* The stranger's card, close up beside Gina, clear of her face. */
.ct-phone-card {
  position: absolute;
  left: 22%;
  top: 55%;
  width: min(32%, 260px);
  aspect-ratio: 7 / 4;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(-3deg);
  background: #f8f5eb;
  color: #202b31;
  border: 1px solid #d5d0c5;
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  font-family: var(--ct-display);
  font-weight: 600;
  font-size: clamp(13px, 3cqw, 24px);
  animation: ct-fade 300ms ease-out;
}

/* The dialogue box sits under the stage, so the art stays clear. */
.ct-box {
  position: relative;
  min-height: 128px;
  padding: 26px 20px 40px;
  background: var(--ct-panel);
  border: 1px solid var(--ct-line);
  border-top: 3px solid var(--plate, var(--ct-line));
  border-radius: 0 0 12px 12px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ct-box.is-still {
  cursor: default;
}

/* Back: quiet, bottom left, opposite the ▼. */
.ct-back {
  position: absolute;
  left: 12px;
  bottom: 6px;
  padding: 4px 8px;
  font: inherit;
  font-size: 13px;
  color: var(--ct-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.ct-back:hover,
.ct-back:focus-visible {
  color: var(--ct-ink);
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

.ct-plate {
  position: absolute;
  top: -17px;
  left: 14px;
  padding: 3px 16px 4px 12px;
  font-family: var(--ct-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  color: #fff8ec;
  background: var(--plate);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  white-space: nowrap;
  max-width: calc(100% - 28px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.ct-text em {
  font-family: var(--ct-hand);
  font-style: normal;
  font-size: 1.15em;
  color: var(--ct-gold);
}

/* The big card that introduces a character: a band across the lower
   stage in their plate colour, name over role, sliding in from the left. */
.ct-intro {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  padding: 12px 6% 14px;
  color: #fff8ec;
  background: linear-gradient(
    100deg,
    var(--plate) 0 60%,
    color-mix(in srgb, var(--plate) 0%, transparent) 92%
  );
  animation: ct-intro-in 460ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.ct-intro::before {
  content: "";
  position: absolute;
  left: 0;
  right: 25%;
  top: -6px;
  height: 4px;
  background: var(--ct-gold);
  transform-origin: 0 50%;
  animation: ct-rule 560ms ease-out;
}

.ct-intro b {
  display: block;
  font-family: var(--ct-display);
  font-weight: 900;
  font-size: clamp(34px, 8vw, 68px);
  line-height: 1;
}

.ct-intro span {
  display: block;
  margin-top: 4px;
  font-family: var(--ct-hand);
  font-size: clamp(18px, 3.8vw, 30px);
  animation: ct-fade 500ms ease-out 200ms both;
}

@keyframes ct-intro-in {
  from {
    transform: translateX(-100%);
  }
}

@keyframes ct-rule {
  from {
    transform: scaleX(0);
  }
}

/* A shot has no words; the box stays so the page does not jump. */
.ct-box.is-shot {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ct-panel) 70%, var(--ct-page));
}

/* A beat with no words says how to go on, so the empty box reads as
   deliberate (Kevin). */
.ct-continue {
  font-size: 14px;
  color: var(--ct-muted);
}

/* A shouted line: bigger, and it lands with a jolt. */
.ct-box.is-shout .ct-text {
  font-size: 1.3em;
  font-weight: 600;
  transform-origin: 0 50%;
  animation: ct-shout 320ms ease-out;
}

@keyframes ct-shout {
  0% {
    transform: scale(1.14);
  }
  35% {
    transform: translateX(-3px);
  }
  70% {
    transform: translateX(3px);
  }
}

/* Said quietly: softer and slanted, so a mutter or a whisper reads as
   one without a label (Kevin: stage directions aren't text). */
.ct-box.is-whisper .ct-text {
  color: #c9bfa8;
  font-style: italic;
}

.ct-more {
  position: absolute;
  right: 16px;
  bottom: 10px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--ct-gold);
  animation: ct-bob 900ms ease-in-out infinite;
}

@keyframes ct-bob {
  50% {
    transform: translateY(4px);
  }
}

.ct-quote + .ct-quote {
  margin-top: 8px;
}

.ct-quote b {
  color: var(--ct-gold);
  font-weight: 600;
}

/* A challenge: the prompt and the answer choices. */
.ct-challenge {
  margin-top: 14px;
}

.ct-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1b1a17;
  background: var(--ct-gold);
}

.ct-prompt {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.ct-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ct-ink);
  background: var(--ct-panel);
  border: 1px solid var(--ct-line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.ct-choice:hover,
.ct-choice:focus-visible {
  border-color: var(--ct-gold);
  outline: none;
}

.ct-choice-key {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ct-muted);
  border: 1px solid var(--ct-line);
}

/* The result of a pick, shown for a moment before the story goes on. */
.ct-choice:disabled {
  cursor: default;
}

.ct-choice.is-right,
.ct-choice.is-answer {
  border-color: var(--ct-right);
  background: color-mix(in srgb, var(--ct-right) 12%, var(--ct-panel));
}

.ct-choice.is-wrong {
  border-color: var(--ct-wrong);
  background: color-mix(in srgb, var(--ct-wrong) 12%, var(--ct-panel));
}

.ct-choice.is-right,
.ct-choice.is-wrong {
  animation: ct-pop 220ms ease-out;
}

.ct-choice.is-right .ct-choice-key,
.ct-choice.is-answer .ct-choice-key {
  color: #fff;
  background: var(--ct-right);
  border-color: var(--ct-right);
}

.ct-choice.is-wrong .ct-choice-key {
  color: #fff;
  background: var(--ct-wrong);
  border-color: var(--ct-wrong);
}

/* An answered challenge seen again after going back: locked, no pop. */
.ct-challenge.is-answered .ct-choice {
  animation: none;
}

.ct-onward {
  display: block;
  margin: 4px 0 0 auto;
}

@keyframes ct-pop {
  50% {
    transform: scale(1.02);
  }
}

/* Title and review screens. */
.ct-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.ct-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 11, 15, 0.9), rgba(10, 11, 15, 0.15) 60%);
}

/* The series name, then the episode, over the key art. */
.ct-hero-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 1;
}

.ct-hero h1 {
  margin: 0;
  font-family: var(--ct-display);
  font-weight: 900;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1;
}

.ct-hero-title p {
  margin: 6px 0 0;
  font-family: var(--ct-hand);
  font-size: clamp(17px, 3.4vw, 26px);
  line-height: 1.15;
  color: var(--ct-gold);
}

/* No explanation on the start screen (Kevin): just the title and Start. */
.ct-start {
  margin-top: 18px;
}

.ct-button {
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  color: #1b1a17;
  background: var(--ct-gold);
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  cursor: pointer;
}

.ct-button:hover {
  filter: brightness(1.08);
}

/* Aris with his case file sits on the right of the header picture; the
   verdict and score take the cream space on the left. */
.ct-review-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 3 / 1;
  margin-bottom: 18px;
  padding: 0 42% 0 5%;
  border-radius: 12px;
  background: #f8f0e0 url("menu/review-header.webp") center / cover no-repeat;
}

/* After a guilty verdict Aris isn't pleased: he covers his eyes. */
.ct-review-head.is-lost {
  background-image: url("menu/review-header-guilty.webp");
}

.ct-review h1 {
  margin: 0 0 4px;
  font-family: var(--ct-display);
  font-weight: 900;
  font-size: clamp(26px, 6vw, 44px);
  line-height: 1.05;
}

.ct-review h1.is-won {
  color: #2e7a4f;
}

.ct-review h1.is-lost {
  color: #b4432f;
}

.ct-score {
  margin: 0;
  font-size: clamp(13px, 2.6vw, 17px);
  color: #5b4a3c;
}

/*
 * The review is a case file: each challenge a sheet with a manila tab,
 * stamped Correct or Incorrect, and Aris's note on a sticky note.
 */
.ct-item {
  position: relative;
  margin: 0 0 14px;
  padding-top: 14px;
  background: #fffdf6;
  border: 1px solid #e6dcc6;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(60, 40, 10, 0.08);
  color: #1f1d1a;
}

.ct-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 6px 16px 12px;
  cursor: pointer;
  list-style: none;
}

.ct-item summary::-webkit-details-marker {
  display: none;
}

.ct-item-tab {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 12px;
  border-radius: 4px 4px 4px 0;
  background: #e9d6a7;
  font-size: 12px;
  font-weight: 600;
  color: #5b4a2a;
}

.ct-item-title {
  font-family: var(--ct-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
}

.ct-stamp {
  padding: 2px 10px;
  border: 3px solid currentColor;
  border-radius: 6px;
  font-family: var(--ct-display);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  color: #2e7a4f;
  transform: rotate(-8deg);
  opacity: 0.85;
  white-space: nowrap;
}

.ct-item.is-wrong .ct-stamp {
  color: #b4432f;
}

.ct-item-body {
  padding: 0 16px 16px;
  font-size: 15px;
  line-height: 1.55;
}

.ct-item-body p {
  margin: 0 0 8px;
}

.ct-label {
  display: block;
  font-size: 12px;
  color: #7a6d58;
}

.ct-note {
  margin-top: 12px !important;
  padding: 10px 14px;
  background: #fff6c9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: rotate(-0.5deg);
  font-family: var(--ct-hand);
  font-size: 19px;
  line-height: 1.3;
}

.ct-signoff {
  display: block;
  margin-top: 4px;
  text-align: right;
}

.ct-again {
  margin-top: 12px;
}

@media (max-width: 560px) {
  #game {
    padding: 8px 10px 20px;
  }

  .ct-stage {
    aspect-ratio: 4 / 3;
  }

  .ct-stage.is-challenge {
    aspect-ratio: 16 / 9;
  }

  .ct-box {
    min-height: 140px;
    padding: 24px 14px 40px;
  }

  .ct-text,
  .ct-prompt {
    font-size: 16px;
  }

  .ct-choice {
    font-size: 15px;
  }

  .ct-caption {
    font-size: 18px;
  }

  /* A shout is 30% bigger at the box's 16px; on a phone that's a lot. */
  .ct-box.is-shout .ct-text {
    font-size: 18px;
  }

  /* Results: titles small enough to sit on one line beside a lighter
     stamp, and room between each card's tab and its title. */
  .ct-item {
    margin-bottom: 10px;
    padding-top: 18px;
  }

  .ct-item summary {
    gap: 4px 10px;
    padding: 8px 12px 10px;
  }

  .ct-item-title {
    font-size: 16px;
  }

  .ct-stamp {
    padding: 1px 7px;
    border-width: 2px;
    font-size: 11px;
  }

  .ct-item-body {
    padding: 0 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-choice,
  .ct-stage *,
  .ct-stage {
    animation: none !important;
    transition: none !important;
  }
}
