.drill-page {
  --field-green: #2f7a51;
  --field-deep: #215b3b;
  --ink: #283a36;
  --muted: #697873;
  background:
    linear-gradient(150deg, rgba(255, 214, 111, 0.15), transparent 36%),
    linear-gradient(180deg, #f8f5e9, #eef7f1 72%);
}

.drill-page .app-shell {
  width: min(1080px, calc(100% - 28px));
}

.drill-page .page-nav a {
  border-radius: 8px;
}

.drill-page .hero-band {
  align-items: center;
}

.drill-page h1 {
  font-size: 2.8rem;
}

.drill-guide .content-section h2 {
  font-size: 1.8rem;
}

.drill-page .hero-icons span {
  min-width: 76px;
  border-radius: 8px;
  color: #fff;
  background: var(--field-green);
  box-shadow: inset 0 -5px 0 rgba(20, 62, 39, 0.18);
}

.drill-panel {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 48px rgba(67, 104, 82, 0.16);
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  min-height: 116px;
  padding: 18px 28px;
  color: #f7f8f3;
  background: #283c39;
}

.team-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.away-score {
  justify-content: flex-end;
  text-align: right;
}

.team-score > span:not(.team-mark) {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 10px;
}

.team-score small {
  grid-column: 1 / -1;
  color: #b9c7bb;
  font-size: 0.7rem;
  font-weight: 800;
}

.team-score strong {
  font-size: 2rem;
  line-height: 1;
}

.team-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  font-weight: 900;
}

.home-mark {
  color: #283c39;
  background: #f4c65b;
}

.away-mark {
  color: #283c39;
  background: #ed8975;
}

.game-clock {
  display: grid;
  justify-items: center;
  text-align: center;
}

.game-clock span {
  color: #c1cec2;
  font-size: 0.67rem;
  font-weight: 800;
}

.game-clock strong {
  color: #ffd66f;
  font-variant-numeric: tabular-nums;
  font-size: 2.7rem;
  line-height: 1.1;
}

#clock-status {
  color: #d4ded5;
}

.drive-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: #dce6de;
  border-bottom: 1px solid #dce6de;
}

.drive-stat {
  display: grid;
  gap: 5px;
  min-height: 72px;
  align-content: center;
  padding: 12px 20px;
  background: #f4f7f2;
}

.drive-stat span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.drive-stat strong {
  color: var(--ink);
  font-size: 1.06rem;
}

.drive-stat:last-child {
  text-align: right;
}

.field-wrap {
  padding: 20px 22px 0;
}

.football-field {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.yard-lines line {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.2;
}

.yard-lines line.major-line {
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 1.8;
}

.yard-numbers text,
.endzone-label {
  fill: rgba(255, 255, 255, 0.88);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-anchor: middle;
}

.endzone-label {
  fill: #253930;
  font-size: 10px;
  letter-spacing: 0;
}

#first-down-marker {
  stroke: #ffd66f;
  stroke-width: 4;
  stroke-dasharray: 6 5;
}

.field-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.field-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-ball {
  width: 12px;
  height: 12px;
  border: 2px solid #fff2d2;
  border-radius: 50%;
  background: #8b4828;
}

.legend-first {
  width: 18px;
  height: 3px;
  background: #e4b941;
}

.play-message {
  min-height: 52px;
  margin: 6px 22px 14px;
  padding: 14px 16px;
  border-left: 4px solid #e6b84d;
  color: #48594f;
  background: #fbf7e9;
  line-height: 1.5;
}

.play-calls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 22px;
}

.play-call {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 82px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d7e2d9;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.play-call:hover:not(:disabled) {
  border-color: #7eaa87;
  background: #f6faf5;
}

.play-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #557f62;
}

.play-icon svg {
  width: 26px;
  height: 26px;
}

.quick-icon { background: #57849a; }
.deep-icon { background: #b9784f; }
.kick-icon { background: #756b94; }

.play-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.play-copy strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.play-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.play-risk {
  align-self: start;
  color: #65766c;
  font-size: 0.58rem;
  font-weight: 900;
  white-space: nowrap;
}

.field-goal-call {
  grid-column: 1 / -1;
  border-color: #bdb4d3;
  background: #f6f3fb;
}

.field-goal-call[hidden] {
  display: none;
}

.game-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 18px;
}

.timeout-button,
.restart-button {
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 8px;
}

.timeout-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4a5c52;
}

.timeout-button span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.restart-button {
  display: grid;
  width: 42px;
  padding: 8px;
  place-items: center;
}

.restart-button svg {
  width: 21px;
  height: 21px;
}

.drive-log {
  padding: 16px 22px 20px;
  border-top: 1px solid #e1e9e1;
  background: #f8faf7;
}

.drive-log h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 0.84rem;
}

.drive-log ol {
  display: grid;
  gap: 7px;
  max-height: 142px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drive-log li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #56675d;
  font-size: 0.8rem;
  line-height: 1.45;
}

.drive-log li span:last-child {
  flex: 0 0 auto;
  color: #7d8b81;
  font-variant-numeric: tabular-nums;
}

.drive-log .log-empty {
  color: var(--muted);
}

.drill-guide {
  margin-top: 26px;
}

.drill-guide .content-section:first-child {
  padding-top: 26px;
}

.drill-guide .faq-list {
  display: grid;
  gap: 10px;
}

@media (max-width: 800px) {
  .play-call {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .play-icon {
    width: 36px;
    height: 36px;
  }

  .play-risk {
    grid-column: 2;
    align-self: auto;
  }
}

@media (max-width: 620px) {
  .drill-page .app-shell {
    width: min(100% - 18px, 100%);
  }

  .drill-page h1 {
    font-size: 2.2rem;
  }

  .drill-guide .content-section h2 {
    font-size: 1.5rem;
  }

  .scoreboard {
    min-height: 102px;
    padding: 14px 12px;
  }

  .team-score {
    gap: 7px;
  }

  .team-mark {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .team-score > span:not(.team-mark) {
    grid-template-columns: auto;
    gap: 4px;
  }

  .team-score strong {
    font-size: 1.55rem;
  }

  .game-clock strong {
    font-size: 2.2rem;
  }

  .game-clock span {
    font-size: 0.56rem;
  }

  .drive-stat {
    min-height: 65px;
    padding: 10px 9px;
  }

  .drive-stat span {
    font-size: 0.56rem;
  }

  .drive-stat strong {
    font-size: 0.9rem;
  }

  .field-wrap {
    padding: 16px 10px 0;
  }

  .yard-numbers text {
    font-size: 14px;
  }

  .endzone-label {
    font-size: 8px;
  }

  .field-legend {
    gap: 10px;
    font-size: 0.66rem;
  }

  .play-message {
    margin: 8px 10px 12px;
    font-size: 0.9rem;
  }

  .play-calls {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .play-call {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 9px 10px;
  }

  .play-risk {
    grid-column: auto;
    align-self: center;
  }

  .play-copy strong {
    font-size: 0.9rem;
  }

  .play-copy small {
    font-size: 0.68rem;
  }

  .game-actions {
    padding: 12px 10px 14px;
  }

  .timeout-button {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3px 8px;
    text-align: left;
  }

  .timeout-button span {
    flex-basis: 100%;
  }

  .drive-log {
    padding: 14px 12px 18px;
  }

  .drive-log li {
    font-size: 0.74rem;
  }
}
