:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(10, 10, 10, 0.9);
  --panel-2: rgba(22, 12, 12, 0.88);
  --line: rgba(214, 23, 30, 0.55);
  --line-soft: rgba(241, 201, 74, 0.18);
  --red: #d71920;
  --red-dark: #6b080d;
  --gold: #f1c94a;
  --paper: #f7f1df;
  --muted: rgba(247, 241, 223, 0.62);
  --green: #31d07a;
  --bad: #ff5a5f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #020202;
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border-radius: 0;
}

h1,
h2,
h3,
strong,
p,
small,
span {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

.stadium-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.82) 36%, rgba(0, 0, 0, 0.5)),
    url("/assets/germany-stadium-hero.png") center top / cover no-repeat;
}

.stadium-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 0%, rgba(241, 201, 74, 0.14), transparent 30%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92) 62%, #020202);
}

.control-shell {
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(217, 25, 32, 0.12), rgba(0, 0, 0, 0.92)),
    rgba(0, 0, 0, 0.82);
  box-shadow: 18px 0 80px rgba(0, 0, 0, 0.5);
}

.crest {
  display: grid;
  min-height: 126px;
  place-items: center;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle, rgba(241, 201, 74, 0.22), transparent 54%),
    rgba(0, 0, 0, 0.58);
  text-transform: uppercase;
}

.crest-stars {
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 3px;
}

.crest strong {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 950;
}

.crest small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
}

.number-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.number-nav a {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 2px 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid transparent;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  color: var(--paper);
}

.number-nav a:hover,
.number-nav a:focus-visible,
.number-nav a.active {
  border-color: var(--line);
  background: linear-gradient(90deg, rgba(215, 25, 32, 0.55), rgba(215, 25, 32, 0.08));
  outline: none;
}

.number-nav b {
  grid-row: span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 22px rgba(215, 25, 32, 0.35);
  font-size: 1.2rem;
  font-weight: 950;
}

.number-nav span {
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.number-nav small {
  color: var(--muted);
  font-size: 0.66rem;
}

.live-card {
  display: grid;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(215, 25, 32, 0.22), transparent),
    rgba(5, 5, 5, 0.85);
}

.live-card span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.live-card strong {
  font-size: 1.5rem;
}

.live-card small {
  color: var(--muted);
  line-height: 1.35;
}

.live-card i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.screen-shell {
  width: min(100%, 1680px);
  min-width: 0;
  padding: 14px;
}

.screen-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 360px 280px;
  gap: 12px;
  min-height: 210px;
}

.hero-board,
.next-match-card,
.mini-table-card,
.control-card,
.loading-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(215, 25, 32, 0.12), rgba(241, 201, 74, 0.035)),
    rgba(6, 6, 6, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 24px 80px rgba(0, 0, 0, 0.34);
}

.hero-board::before,
.next-match-card::before,
.mini-table-card::before,
.control-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--red), transparent 18%, transparent 82%, var(--red)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%);
  opacity: 0.16;
}

.hero-board {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 28px;
  text-align: center;
  text-transform: uppercase;
}

.hero-board p {
  margin: 0;
  color: var(--red);
  font-weight: 950;
}

.hero-board h1 {
  margin: 2px 0;
  color: var(--gold);
  font-size: clamp(3.2rem, 6vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-shadow: 0 0 28px rgba(241, 201, 74, 0.22);
}

.hero-board span {
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 850;
}

.next-match-card,
.mini-table-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-title svg {
  color: var(--red);
}

.versus {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.versus b {
  display: grid;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  font-size: 2rem;
}

.versus strong {
  font-size: 1rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.versus small {
  color: var(--muted);
  font-size: 0.72rem;
}

.match-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.match-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-table {
  display: grid;
  gap: 7px;
}

.mini-table div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.mini-table div.germany {
  border-color: rgba(241, 201, 74, 0.45);
  background: rgba(215, 25, 32, 0.24);
}

.mini-table span,
.mini-table b {
  color: var(--gold);
}

.route-screen {
  min-height: calc(100vh - 270px);
  padding-top: 12px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  min-height: calc(100vh - 270px);
}

.page-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  min-width: 0;
}

.page-title > b {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 24px rgba(215, 25, 32, 0.42);
  font-size: 1.65rem;
  line-height: 1;
}

.page-title p,
.control-card > span,
.control-card h3,
.news-card span,
.player-copy span,
.analysis-head span,
.coach-profile span {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.page-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.page-title div {
  min-width: 0;
}

.control-card,
.loading-panel {
  padding: 18px;
}

.control-card h3 {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 0.95;
}

.control-card p {
  color: var(--muted);
  line-height: 1.5;
}

.score-stack {
  grid-column: span 5;
}

.path-card {
  grid-column: span 7;
}

.focus-card {
  grid-column: span 12;
}

.big-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.big-metrics article,
.market-row article {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
}

.big-metrics span,
.market-row span,
.path-row span,
.fixtures-full span,
.table-full small,
.opponent-panel span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.big-metrics strong,
.market-row strong {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.82;
}

.path-row,
.player-strip,
.news-grid,
.verdict-list {
  display: grid;
  gap: 10px;
}

.path-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.path-row article,
.fixtures-full article,
.table-full article,
.opponent-panel article,
.weak-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.path-row strong,
.opponent-panel strong {
  color: var(--gold);
  font-size: 1.55rem;
}

.path-row small,
.fixtures-full small,
.opponent-panel small,
.weak-card small {
  color: var(--muted);
  line-height: 1.35;
}

.focus-player,
.analysis-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.focus-player strong,
.analysis-head h3,
.player-copy h3,
.coach-profile h3,
.news-card h3,
.verdict-card h3 {
  display: block;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.6rem, 3vw, 3.4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.focus-player small,
.player-copy small,
.analysis-head small,
.fixtures-full small,
.coach-profile small {
  color: var(--muted);
}

.fixtures-full {
  grid-column: span 7;
}

.table-full,
.source-state {
  grid-column: span 5;
}

.fixtures-full article strong {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 1.05rem;
}

.fixtures-full b {
  color: var(--gold);
}

.table-full article {
  grid-template-columns: 34px 1fr 74px;
  align-items: center;
  position: relative;
}

.table-full article.germany {
  border-color: rgba(241, 201, 74, 0.48);
  background: rgba(215, 25, 32, 0.2);
}

.table-full article > span,
.shirt-number {
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.table-full article > span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.table-full strong small {
  display: block;
  margin-top: 4px;
}

.table-full i {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.table-full i::before {
  content: "";
  display: block;
  width: var(--p);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.source-state strong {
  color: var(--green);
  font-size: 2rem;
}

.player-profile {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 100px 1fr 220px;
  gap: 18px;
  align-items: stretch;
  min-height: 430px;
}

.shirt-number {
  align-self: start;
  width: 88px;
  height: 88px;
  font-size: 3.4rem;
  line-height: 1;
}

.player-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.player-copy p {
  max-width: 560px;
}

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trait-list b {
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.055);
  color: var(--paper);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.portrait {
  position: relative;
  display: grid;
  width: 96px;
  min-width: 96px;
  height: 120px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(180deg, #050505 0 33%, var(--red) 33% 66%, var(--gold) 66%);
}

.portrait.large {
  width: min(100%, 220px);
  height: 390px;
  justify-self: end;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 20% 24% 16%;
  background: rgba(255, 255, 255, 0.18);
  clip-path: polygon(50% 0, 74% 18%, 82% 52%, 66% 100%, 34% 100%, 18% 52%, 26% 18%);
}

.portrait span {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(0, 0, 0, 0.7);
  font-weight: 950;
}

.portrait strong {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
}

.portrait.large strong {
  font-size: 3.8rem;
}

.portrait small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.portrait i {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: rgba(0, 0, 0, 0.54);
}

.portrait i::before {
  content: "";
  display: block;
  width: var(--energy);
  height: 100%;
  background: var(--green);
}

.player-detail,
.carousel-card {
  grid-column: span 4;
}

.player-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 320px;
  overflow: auto;
}

.player-strip button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
}

.player-strip button:hover,
.player-strip button:focus-visible,
.player-strip button.active {
  border-color: var(--line);
  background: rgba(215, 25, 32, 0.28);
  outline: none;
}

.player-strip span,
.pitch-player span {
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.player-strip span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
}

.player-strip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-strip small {
  color: var(--gold);
  font-size: 0.7rem;
}

.analysis-main,
.coach-radar {
  grid-column: span 5;
}

.weakness-panel {
  grid-column: span 4;
}

.opponent-panel {
  grid-column: span 3;
}

.radar-chart {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
}

.radar-grid {
  fill: rgba(215, 25, 32, 0.12);
  stroke: rgba(241, 201, 74, 0.28);
}

.radar-grid.soft {
  fill: none;
  stroke-dasharray: 4 5;
}

.radar-axis {
  stroke: rgba(255, 255, 255, 0.1);
}

.radar-shape {
  fill: rgba(215, 25, 32, 0.48);
  stroke: var(--red);
  stroke-width: 3;
}

.radar-chart text {
  fill: var(--paper);
  font-size: 0.58rem;
  font-weight: 950;
}

.weak-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.weak-card span {
  color: var(--paper);
  font-weight: 900;
}

.weak-card strong {
  color: var(--bad);
}

.weak-card i,
.meter i {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.weak-card i {
  height: 7px;
}

.weak-card b,
.meter b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.opponent-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.pitch-card {
  grid-column: span 8;
  padding: 14px;
}

.pitch {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(241, 201, 74, 0.35);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 34px, rgba(255, 255, 255, 0.02) 34px 68px),
    linear-gradient(180deg, rgba(49, 208, 122, 0.18), rgba(7, 62, 41, 0.58)),
    #0b3625;
  animation: fieldDrift 8s linear infinite;
}

.pitch::before,
.pitch::after,
.pitch-lines {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pitch::before {
  inset: 46px 38px;
  border: 2px solid rgba(247, 241, 223, 0.42);
}

.pitch::after {
  top: 50%;
  left: 38px;
  right: 38px;
  height: 2px;
  background: rgba(247, 241, 223, 0.42);
}

.pitch-lines {
  inset: 50%;
  width: 126px;
  height: 126px;
  border: 2px solid rgba(247, 241, 223, 0.42);
  transform: translate(-50%, -50%);
}

.pitch-player {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  width: clamp(74px, 8vw, 112px);
  min-height: 72px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(241, 201, 74, 0.38);
  background: rgba(3, 3, 3, 0.82);
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: playerEnter 620ms ease var(--delay) both;
}

.pitch-player:hover,
.pitch-player:focus-visible,
.pitch-player.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  outline: none;
}

.pitch-player span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.pitch-player strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-player small {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 950;
}

.tactical-panel {
  grid-column: span 4;
}

.coach-profile {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
}

.coach-photo {
  display: grid;
  width: 170px;
  height: 220px;
  place-items: center;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(160deg, #090909, var(--red-dark));
  color: var(--gold);
  font-size: 3rem;
  font-weight: 950;
}

.coach-profile strong {
  display: block;
  margin: 12px 0;
  color: var(--gold);
  font-size: 1.5rem;
}

.stock-panel {
  grid-column: span 8;
}

.market-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stock-chart {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.stock-chart polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 900;
  animation: chartDraw 1.4s ease both;
}

.stock-chart circle {
  fill: #050505;
  stroke: var(--red);
  stroke-width: 3;
}

.stock-chart text {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.verdict-card {
  grid-column: span 4;
}

.verdict-list b {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-size: 0.85rem;
  line-height: 1.35;
}

.news-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  display: grid;
  min-height: 220px;
  align-content: space-between;
  gap: 12px;
}

.news-card p {
  margin: 0;
}

.news-card b {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.meter {
  display: grid;
  grid-template-columns: 118px 1fr 48px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.meter span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.meter i {
  height: 8px;
}

.meter strong {
  color: var(--paper);
  font-size: 0.85rem;
  text-align: right;
}

.up {
  color: var(--green) !important;
}

.down {
  color: var(--bad) !important;
}

.loading-panel {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
}

.error {
  color: var(--bad);
}

@keyframes fieldDrift {
  from {
    background-position: 0 0, 0 0, center;
  }

  to {
    background-position: 0 34px, 0 0, center;
  }
}

@keyframes playerEnter {
  from {
    opacity: 0;
    transform: translate(-50%, -36%) scale(0.74);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes chartDraw {
  from {
    stroke-dashoffset: 900;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1180px) {
  .control-shell {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .side-rail {
    padding: 10px 8px;
  }

  .crest {
    min-height: 96px;
  }

  .crest strong {
    width: 58px;
    height: 58px;
  }

  .number-nav a {
    grid-template-columns: 38px 1fr;
    min-height: 52px;
  }

  .number-nav b {
    width: 32px;
    height: 32px;
  }

  .number-nav small {
    display: none;
  }

  .screen-hero {
    grid-template-columns: 1fr;
  }

  .score-stack,
  .path-card,
  .focus-card,
  .fixtures-full,
  .table-full,
  .source-state,
  .player-profile,
  .player-detail,
  .carousel-card,
  .analysis-main,
  .weakness-panel,
  .opponent-panel,
  .pitch-card,
  .tactical-panel,
  .coach-profile,
  .coach-radar,
  .stock-panel,
  .verdict-card {
    grid-column: 1 / -1;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .control-shell {
    display: block;
  }

  .side-rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .crest,
  .live-card {
    display: none;
  }

  .number-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .number-nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 76px;
    text-align: center;
  }

  .number-nav b {
    grid-row: auto;
  }

  .number-nav span {
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .screen-shell {
    padding: 8px;
  }

  .hero-board {
    min-height: 160px;
  }

  .hero-board h1 {
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .page-grid,
  .big-metrics,
  .path-row,
  .market-row,
  .news-grid,
  .player-profile,
  .coach-profile {
    grid-template-columns: 1fr;
  }

  .player-profile,
  .coach-profile {
    min-height: auto;
  }

  .portrait.large {
    width: 100%;
    height: 260px;
    justify-self: stretch;
  }

  .pitch {
    min-height: 500px;
  }

  .pitch::before {
    inset: 28px 20px;
  }

  .pitch::after {
    left: 20px;
    right: 20px;
  }

  .pitch-player {
    width: 68px;
    min-height: 64px;
    padding: 6px;
  }

  .page-title {
    align-items: flex-start;
  }

  .page-title h2 {
    font-size: clamp(1.55rem, 9vw, 2.65rem);
    line-height: 0.95;
  }

  .pitch-player strong {
    font-size: 0.68rem;
  }

  .fixtures-full article strong {
    display: grid;
  }

  .meter {
    grid-template-columns: 1fr 44px;
  }

  .meter i {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Reference cockpit layout */
.screen-shell {
  max-width: none;
  padding: 10px 12px 24px;
}

.screen-hero {
  grid-template-columns: minmax(560px, 1fr) 350px 300px;
}

.hero-board {
  justify-items: center;
  align-content: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.75)),
    url("/assets/germany-stadium-hero.png") center 22% / cover no-repeat;
}

.hero-board::after {
  content: "🏆";
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-top: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 201, 74, 0.38), rgba(0, 0, 0, 0.12));
  font-size: 3rem;
  filter: drop-shadow(0 0 18px rgba(241, 201, 74, 0.38));
}

.hero-board h1 {
  font-size: clamp(2.8rem, 4.2vw, 5.2rem);
}

.route-screen {
  min-height: auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(430px, 1.08fr) minmax(420px, 1fr);
  grid-template-areas:
    "matches matches matches"
    "player analysis coach"
    "info tactic news"
    "info verdict news";
  gap: 12px;
  align-items: stretch;
}

.dashboard-grid .control-card {
  min-height: 0;
  padding: 16px;
  border-color: rgba(215, 25, 32, 0.72);
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.12), rgba(0, 0, 0, 0.04) 34%, rgba(241, 201, 74, 0.03)),
    rgba(4, 4, 4, 0.9);
}

.dashboard-grid .control-card.focus {
  box-shadow:
    inset 0 0 0 1px rgba(241, 201, 74, 0.42),
    0 0 34px rgba(215, 25, 32, 0.22);
}

.dashboard-grid h3 {
  margin-left: 34px;
  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1;
  text-transform: uppercase;
}

.panel-number {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 0 18px rgba(215, 25, 32, 0.55);
}

.match-strip {
  grid-area: matches;
  display: grid;
  grid-template-columns: 150px repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  min-height: 104px;
}

.match-strip h3 {
  display: grid;
  align-content: center;
  margin: 0;
  font-size: 1rem;
}

.match-strip article {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 74px;
  padding: 10px;
  border-left: 1px solid rgba(241, 201, 74, 0.16);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.match-strip span,
.player-facts span,
.info-stats span,
.news-panel a span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-strip strong {
  color: var(--paper);
  font-size: 1rem;
}

.match-strip small {
  color: var(--muted);
  font-size: 0.72rem;
}

.match-strip .locked {
  opacity: 0.62;
}

.player-panel {
  grid-area: player;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  grid-template-rows: 1fr auto;
  gap: 12px;
  min-height: 410px;
}

.player-panel .portrait.large {
  width: 155px;
  height: 310px;
  align-self: end;
  justify-self: end;
}

.player-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.shirt-number {
  width: auto;
  height: auto;
  justify-content: start;
  background: none;
  color: var(--red);
  font-size: 3.8rem;
}

.player-copy h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.25rem, 1.45vw, 1.72rem);
  line-height: 0.95;
  text-transform: uppercase;
  word-break: normal;
}

.player-copy p {
  max-width: 260px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.player-facts {
  display: grid;
  gap: 7px;
}

.player-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  max-height: none;
  overflow: hidden;
}

.player-strip button {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 74px;
  padding: 6px;
  border: 1px solid rgba(215, 25, 32, 0.45);
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
  cursor: pointer;
}

.player-strip button.active {
  border-color: var(--gold);
  background: rgba(215, 25, 32, 0.38);
}

.player-strip button span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.player-strip button strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.analysis-panel {
  grid-area: analysis;
  min-height: 410px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 14px;
  align-items: center;
}

.analysis-grid h4 {
  margin: 0 0 10px;
  color: var(--paper);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.weak-row {
  display: grid;
  gap: 4px;
  padding: 8px 0 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--red);
}

.weak-row strong {
  color: var(--paper);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.weak-row small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.ghost-button {
  display: inline-grid;
  min-height: 34px;
  margin-top: 14px;
  padding: 9px 14px;
  place-items: center;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.coach-panel {
  grid-area: coach;
  min-height: 410px;
}

.coach-top {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.coach-photo {
  width: 145px;
  height: 210px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.28), transparent 31%),
    linear-gradient(155deg, #101010, #050505 50%, var(--red-dark));
}

.coach-top strong {
  display: block;
  color: var(--paper);
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  word-break: normal;
}

.coach-top p {
  color: var(--muted);
}

.coach-analysis {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(215, 25, 32, 0.45);
}

.ring {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 14px solid rgba(215, 25, 32, 0.88);
  border-left-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.ring strong {
  font-size: 1.5rem;
}

.ring span {
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.info-panel {
  grid-area: info;
  min-height: 250px;
}

.info-panel > strong {
  display: block;
  margin-left: 34px;
  color: var(--paper);
  font-size: 1.6rem;
  text-transform: uppercase;
}

.dot-map {
  float: right;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  margin: 0 0 10px 14px;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 950;
  background-image: radial-gradient(circle, var(--gold) 1.4px, transparent 1.8px);
  background-size: 9px 9px;
}

.info-stats {
  display: grid;
  gap: 7px;
}

.tactic-panel {
  grid-area: tactic;
  display: grid;
  grid-template-columns: 1fr 165px;
  gap: 12px;
  min-height: 310px;
}

.tactic-panel h3 {
  grid-column: 1 / -1;
}

.mini-pitch {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(241, 201, 74, 0.3);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 24px, rgba(255, 255, 255, 0.015) 24px 48px),
    linear-gradient(180deg, rgba(49, 208, 122, 0.18), rgba(8, 54, 35, 0.7)),
    #0b3625;
}

.mini-pitch::before,
.mini-pitch::after,
.mini-pitch .pitch-lines {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mini-pitch::before {
  inset: 18px;
  border: 2px solid rgba(247, 241, 223, 0.34);
}

.mini-pitch::after {
  left: 18px;
  right: 18px;
  top: 50%;
  height: 2px;
  background: rgba(247, 241, 223, 0.34);
}

.mini-pitch .pitch-lines {
  inset: 50%;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(247, 241, 223, 0.34);
  transform: translate(-50%, -50%);
}

.mini-pitch .pitch-player {
  width: 58px;
  min-height: 44px;
  padding: 4px;
}

.mini-pitch .pitch-player span {
  width: 24px;
  height: 24px;
}

.mini-pitch .pitch-player strong {
  font-size: 0.6rem;
}

.tactic-panel aside {
  display: grid;
  align-content: center;
  gap: 4px;
}

.news-panel {
  grid-area: news;
  min-height: 250px;
}

.news-panel a:not(.ghost-button) {
  display: grid;
  gap: 7px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-panel a strong {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.verdict-panel {
  grid-area: verdict;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  min-height: 135px;
  align-items: center;
}

.verdict-panel h3 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.verdict-metrics {
  display: flex;
  gap: 10px;
}

.verdict-metrics article {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 6px solid var(--red);
  border-top-color: var(--gold);
  border-radius: 50%;
  text-align: center;
}

.verdict-metrics span {
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.verdict-metrics strong {
  color: var(--paper);
  font-size: 1.1rem;
}

.verdict-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 1280px) {
  .screen-hero,
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-board,
  .match-strip,
  .coach-panel,
  .news-panel,
  .verdict-panel {
    grid-column: 1 / -1;
  }

  .dashboard-grid {
    grid-template-areas:
      "matches matches"
      "player analysis"
      "info tactic"
      "coach coach"
      "news news"
      "verdict verdict";
  }
}

@media (max-width: 760px) {
  .screen-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-areas:
      "matches"
      "player"
      "analysis"
      "info"
      "tactic"
      "coach"
      "news"
      "verdict";
  }

  .match-strip {
    grid-template-columns: 1fr;
  }

  .player-panel,
  .analysis-grid,
  .coach-top,
  .coach-analysis,
  .tactic-panel,
  .verdict-panel {
    grid-template-columns: 1fr;
  }

  .player-panel .portrait.large,
  .coach-photo {
    width: 100%;
    height: 240px;
  }

  .player-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dot-map {
    float: none;
    width: 100%;
  }

  .verdict-metrics {
    flex-wrap: wrap;
  }
}
