.cast-game {
  --cast-ink: #f2f5fa;
  --cast-muted: #becde3;
  --cast-line: #465879;
  --cast-mint: #80f0cb;
  --cast-focus: #ffc073;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #35465f;
  border-radius: 14px;
  background: #171e29;
  color: var(--cast-ink);
}
.cast-game, .cast-game * { box-sizing: border-box; }
.cast-game [hidden] { display: none !important; }
.cast-game :is(h2, h3, p) { margin: 0; }
.cast-game h2 { font-size: clamp(1.18rem, 2.5vw, 1.55rem); line-height: 1.22; }
.cast-game :is(input, button, summary):focus-visible { outline: 3px solid var(--cast-focus); outline-offset: 3px; }
.cast-game button { cursor: pointer; font-family: inherit; }
.cast-game button:disabled { cursor: default; opacity: .48; }
.cast-toolbar, .cast-stage-heading, .cast-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.cast-toolbar { justify-content: space-between; margin-bottom: 13px; }
.cast-round-count { display: flex; flex-direction: column; gap: 5px; font-variant-numeric: tabular-nums; }
.cast-round-count span, #cast-year { font-size: .85rem; color: var(--cast-muted); }
.cast-game button { min-height: 44px; padding: 7px 13px; }
.cast-game #cast-previous, .cast-game #cast-reveal { --arc-button: #c5afea; --arc-button-edge: #8f75c2; }
.cast-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); align-items: start; gap: 14px; }
.cast-stage, .cast-answer {
  min-width: 0;
  padding: clamp(12px, 2.2vw, 20px);
  border-radius: 12px;
  background: #202938;
}
.cast-stage-heading { justify-content: space-between; margin-bottom: 12px; }
.cast-faces {
  display: grid;
  grid-template-columns: repeat(var(--cast-columns, 3), minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cast-faces li { min-width: 0; overflow: hidden; border: 1px solid var(--cast-line); border-radius: 9px; background: #151e2d; }
.cast-faces figure { margin: 0; }
.cast-faces img, .cast-photo-placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: center 28%;
  background: #384761;
}
.cast-faces figcaption { padding: 7px 8px; font-size: .86rem; font-weight: 670; line-height: 1.33; overflow-wrap: anywhere; }
.cast-photo-placeholder { display: grid; place-items: center; color: var(--cast-muted); font-size: 1.45rem; font-weight: 650; }
#cast-attempts { margin-top: 5px; color: var(--cast-muted); font-size: .88rem; }
#cast-form { margin-top: 15px; }
#cast-form label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 650; }
#cast-form input {
  min-height: 44px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #778aaf;
  border-radius: 8px;
  background: #172238;
  color: var(--cast-ink);
  font: inherit;
  font-size: 1rem;
}
#cast-form input::placeholder { color: #b7c7e1; opacity: 1; }
#cast-help { margin: 7px 0 11px; color: var(--cast-muted); font-size: .77rem; line-height: 1.5; }
#cast-feedback { margin-top: 10px; font-size: .89rem; line-height: 1.5; }
#cast-feedback[data-outcome="correct"] { color: var(--cast-mint); }
#cast-feedback[data-outcome="wrong"] { color: #ffc1c2; }
.cast-solution { display: grid; justify-items: start; gap: 10px; margin-top: 10px; }
.cast-solution a, .cast-credits a { color: var(--cast-mint); text-underline-offset: .18em; }
.cast-credits { margin-top: 12px; color: var(--cast-muted); font-size: .82rem; line-height: 1.5; }
.cast-credits summary { cursor: pointer; width: fit-content; font-weight: 650; }
.cast-credits ul { margin: 8px 0 0; padding-left: 20px; overflow-wrap: anywhere; }
.cast-game + .game-guide { margin-top: 18px; padding: 16px; }
.cast-game + .game-guide :is(h2, p) { margin: 0 0 7px; }
@media (max-width: 990px) {
  .cast-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cast-faces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cast-faces figcaption { font-size: .76rem; padding: 5px 6px; }
  .cast-game button { padding-inline: 8px; }
}
