* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: #0b1020;
  color: #f6f7fb;
  font-family: Arial, sans-serif;
}
body {
  padding: 42px 5vw;
  font-size: 20px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}
.mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 18px;
  font-weight: 800;
}
.eyebrow,
.kicker {
  letter-spacing: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 6px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  margin: 0;
}
h2 {
  font-size: 42px;
  line-height: 1.05;
  margin: 8px 0 14px;
}
h3 {
  font-size: 22px;
}
button {
  font: inherit;
  color: inherit;
  background: #17213a;
  border: 1px solid #334361;
  border-radius: 12px;
  padding: 15px 20px;
  cursor: pointer;
  margin: 5px;
}
button:focus {
  outline: 4px solid var(--accent);
  outline-offset: 3px;
}
button:hover {
  background: #223153;
}
.primary {
  background: var(--accent);
  color: #08101d;
  border: 0;
  font-weight: 800;
}
.ghost {
  background: transparent;
}
.secondary {
  background: #342a61;
}
.panel,
.hero,
.video-card,
.story-card {
  background: #121a2d;
  border: 1px solid #253453;
  border-radius: 20px;
  padding: 26px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.timer-card {
  text-align: center;
}
.ring {
  width: 190px;
  height: 190px;
  border: 8px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-content: center;
  margin: auto;
}
.ring span {
  font-size: 36px;
  font-weight: 800;
}
.ring small {
  color: var(--accent);
  letter-spacing: 2px;
}
.timer-actions {
  max-width: 360px;
}
.routine-row,
.choices,
.answers,
.stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.choice,
.story-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.choice small,
.story-card small,
.step small {
  display: block;
  color: #a9b6cc;
  margin-top: 6px;
}
.choice.active,
.player.selected,
.answer.chosen {
  border-color: var(--accent);
  background: #253451;
}
.steps {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.step {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #19243b;
  padding: 12px;
  border-radius: 12px;
  color: #a9b6cc;
}
.step b {
  color: var(--accent);
}
.step.current {
  color: #fff;
  border: 1px solid var(--accent);
}
.progress {
  height: 8px;
  background: #26334c;
  border-radius: 8px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
}
.hint,
.notice {
  color: #9eabc2;
  font-size: 15px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tactics {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 24px;
}
.pitch {
  height: 560px;
  position: relative;
  border: 2px solid #5bce9a;
  border-radius: 18px;
  background: repeating-linear-gradient(
    90deg,
    #174b3d 0 80px,
    #195443 80px 160px
  );
}
.pitch:after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 2px solid #8ae4b9;
  border-radius: 50%;
}
.player {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: #172a55;
  border: 2px solid #d9e6ff;
}
.big-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 15px;
}
.dpad {
  text-align: center;
  margin-top: 16px;
}
.dpad button {
  min-width: 56px;
}
.hidden {
  display: none !important;
}
.story-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.story-card {
  min-height: 210px;
}
.orb {
  font-size: 38px;
  color: var(--accent);
}
.reader {
  max-width: 900px;
  margin: auto;
  background: #121a2d;
  border-radius: 24px;
  padding: 38px;
}
.story-meta {
  display: flex;
  justify-content: space-between;
}
.constellation {
  height: 100px;
  background:
    radial-gradient(circle at 22% 40%, #fff 0 2px, transparent 4px),
    radial-gradient(circle at 70% 28%, #fff 0 2px, transparent 4px), #151a3d;
  border-radius: 16px;
  margin: 24px 0;
  display: grid;
  place-items: center;
}
.constellation span {
  font-size: 68px;
  color: var(--accent);
}
.reader #sceneText {
  font-size: 28px;
  line-height: 1.45;
}
.caption-grid,
.quiz-top {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.scene-art {
  height: 360px;
  border-radius: 16px;
  background: linear-gradient(150deg, #143b56, #10333c);
  display: grid;
  place-items: center;
  font-size: 150px;
  color: var(--accent);
}
.caption {
  font-size: 30px;
  line-height: 1.25;
  text-align: center;
  padding: 25px;
  min-height: 95px;
}
.video-card {
  padding: 18px;
}
label {
  display: block;
  margin: 22px 0;
  color: #c5cee0;
}
input[type="range"] {
  display: block;
  width: 100%;
  accent-color: var(--accent);
}
output {
  float: right;
  color: var(--accent);
}
.high {
  background: #000;
  color: #fff;
}
.high .panel,
.high .video-card {
  background: #050505;
  border-color: #fff;
}
.high .caption {
  background: #000;
  color: #fff;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.answer {
  min-height: 65px;
  text-align: left;
}
.answer.correct {
  background: #1a604b;
  border-color: #8affc0;
}
.score {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #2b3955;
}
.score strong {
  color: var(--accent);
  font-size: 24px;
}
.history {
  margin-top: 24px;
}
.team-controls {
  display: flex;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  body {
    padding: 24px;
    font-size: 16px;
  }
  .hero,
  .caption-grid,
  .quiz-top,
  .tactics {
    grid-template-columns: 1fr;
    display: grid;
  }
  .story-select {
    grid-template-columns: 1fr;
  }
  .pitch {
    height: 420px;
  }
  h2 {
    font-size: 32px;
  }
  .steps {
    overflow: auto;
  }
  .step {
    min-width: 130px;
  }
  .story-card {
    min-height: auto;
  }
}
