.shootout-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 181, 90, 0.15), transparent 32rem),
    radial-gradient(circle at 90% 28%, rgba(216, 217, 220, 0.07), transparent 30rem),
    linear-gradient(180deg, #0d0f12 0, #07080a 48rem);
}

.shootout-shell { width: min(1160px, 100%); }

.shootout-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.shootout-nav a {
  color: var(--gold);
  text-decoration: none;
}

.shootout-nav a:hover { text-decoration: underline; }
.shootout-nav a:focus-visible { outline: 3px solid rgba(217, 181, 90, 0.7); outline-offset: 4px; }

.shootout-setup-view {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.45fr);
  gap: 18px;
}

.shootout-intro {
  position: relative;
  display: flex;
  container-type: inline-size;
  min-height: 520px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.08), rgba(5, 6, 7, 0.94)),
    repeating-radial-gradient(circle at 50% 8%, transparent 0 35px, rgba(255, 255, 255, 0.045) 36px 37px),
    #101216;
}

.shootout-intro::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 181, 90, 0.15);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.shootout-mark {
  position: absolute;
  top: clamp(30px, 6vw, 64px);
  right: clamp(24px, 4vw, 42px);
  display: grid;
  place-items: end;
  color: var(--gold);
  text-align: right;
}

.shootout-mark span {
  color: transparent;
  font-family: Georgia, serif;
  font-size: clamp(8rem, 22vw, 13rem);
  font-weight: 900;
  line-height: 0.75;
  -webkit-text-stroke: 1px rgba(217, 181, 90, 0.78);
}

.shootout-mark small {
  margin-top: 18px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shootout-intro h1 {
  position: relative;
  max-width: 100%;
  margin-bottom: 12px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-size: clamp(2.7rem, 17cqw, 5.4rem);
  line-height: 0.9;
}

.shootout-intro > p:last-child {
  position: relative;
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.shootout-setup-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 52px);
  background:
    linear-gradient(145deg, rgba(217, 181, 90, 0.07), transparent 45%),
    var(--surface);
}

.shootout-setup-card .section-heading > p:last-child {
  max-width: 52ch;
  line-height: 1.55;
}

.shootout-player-choice { margin-top: 28px; }
.shootout-name-fields { grid-template-columns: repeat(2, 1fr); margin-top: 2px; }
.shootout-name-fields.three-players { grid-template-columns: repeat(3, 1fr); }
.shootout-setup-card > .text-button { display: block; margin: 10px auto 0; }

.shootout-game-view {
  display: grid;
  gap: 16px;
}

.shootout-game-view[hidden],
.shootout-setup-view[hidden],
[hidden] { display: none !important; }

.shootout-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  box-shadow: none;
  background:
    linear-gradient(100deg, rgba(217, 181, 90, 0.08), transparent 48%),
    var(--surface);
}

.shootout-game-header h1 {
  margin-bottom: 5px;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
}

.shootout-game-header p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.shootout-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shootout-scoreboard.three-players { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.shootout-player-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  box-shadow: none;
}

.shootout-player-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--gold);
}

.shootout-player-card.winner {
  border-color: rgba(82, 199, 136, 0.58);
  background: linear-gradient(145deg, rgba(82, 199, 136, 0.1), var(--surface) 55%);
}

.shootout-player-card.winner::before { background: var(--green); }

.shootout-player-card.runner-up {
  border-color: rgba(216, 217, 220, 0.42);
  background: linear-gradient(145deg, rgba(216, 217, 220, 0.08), var(--surface) 55%);
}

.shootout-player-card.runner-up::before { background: var(--silver); }

.shootout-player-card h2 {
  max-width: 15ch;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shootout-player-card.winner .status-badge {
  color: #0b1c12;
  background: var(--green);
}

.shootout-player-card.runner-up .status-badge {
  color: #101216;
  background: var(--silver);
}

.shootout-points {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 15px;
}

.shootout-points strong {
  font-size: clamp(4rem, 10vw, 6.6rem);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.shootout-points span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shootout-point-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.shootout-point-track span {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.shootout-point-track span.filled { background: var(--gold); }
.winner .shootout-point-track span.filled { background: var(--green); }

.shootout-entry { padding: clamp(20px, 4vw, 34px); box-shadow: none; }

.shootout-history-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.shootout-round-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 4px;
}

.shootout-round-progress.three-players { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.shootout-round-player {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}

.shootout-round-player.active {
  border-color: rgba(217, 181, 90, 0.55);
  background: var(--gold-soft);
}

.shootout-round-player.locked {
  border-color: rgba(82, 199, 136, 0.25);
  background: rgba(82, 199, 136, 0.06);
}

.shootout-round-player span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shootout-round-player strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.shootout-entry .multiplier-group { margin-top: 14px; }

.shootout-history { padding: clamp(18px, 3vw, 26px); box-shadow: none; }
.shootout-history-heading { align-items: center; }
.shootout-history-heading h2 { margin-bottom: 0; }
.shootout-history-heading > span { color: var(--muted); font-size: 0.76rem; font-weight: 750; }
.shootout-empty-history { margin: 18px 0 0; color: var(--muted); }
.shootout-history-table-wrap { margin-top: 18px; overflow-x: auto; }

.shootout-history-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.shootout-history-table th,
.shootout-history-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  white-space: nowrap;
}

.shootout-history-table thead th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shootout-history-table tbody th { color: var(--silver); font-size: 0.82rem; }
.shootout-history-table tbody td { color: var(--text); font-size: 0.84rem; }
.shootout-history-table tbody tr:last-child th,
.shootout-history-table tbody tr:last-child td { border-bottom: 0; }
.shootout-history-table .round-winner { color: var(--gold); font-weight: 800; }
.shootout-history-table .round-tie { color: var(--muted); }

.shootout-outcome-rounds {
  margin: -10px 0 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

@media (max-width: 780px) {
  .shootout-setup-view { grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr); }
  .shootout-intro { min-height: 490px; }
  .shootout-setup-card { padding: 26px; }
  .shootout-name-fields.three-players { grid-template-columns: 1fr 1fr; }
  .shootout-name-fields.three-players label:last-child { grid-column: 1 / -1; }
  .shootout-scoreboard.three-players { grid-template-columns: 1fr 1fr; }
  .shootout-scoreboard.three-players .shootout-player-card:last-child { grid-column: 1 / -1; }
  .shootout-round-progress.three-players { grid-template-columns: 1fr 1fr; }
  .shootout-round-progress.three-players .shootout-round-player:last-child { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .shootout-nav { align-items: flex-start; flex-direction: column; gap: 3px; }
  .shootout-setup-view { grid-template-columns: 1fr; }
  .shootout-intro { min-height: 300px; }
  .shootout-mark span { font-size: 9rem; }
  .shootout-intro h1 { font-size: clamp(2.8rem, 16cqw, 4.3rem); }
  .shootout-player-choice,
  .shootout-name-fields,
  .shootout-name-fields.three-players,
  .shootout-scoreboard,
  .shootout-scoreboard.three-players,
  .shootout-round-progress,
  .shootout-round-progress.three-players { grid-template-columns: 1fr; }
  .shootout-name-fields.three-players label:last-child,
  .shootout-scoreboard.three-players .shootout-player-card:last-child,
  .shootout-round-progress.three-players .shootout-round-player:last-child { grid-column: auto; }
  .shootout-game-header { align-items: flex-start; }
}
