:root {
  --paper: #f3f7f4;
  --ink: #13211d;
  --muted: #69746e;
  --line: #d8e1db;
  --panel: #ffffff;
  --green: #0f8a63;
  --green-deep: #07533d;
  --red: #e2554f;
  --yellow: #ffc857;
  --blue: #2b6f8f;
  --shadow: 0 18px 46px rgba(19, 33, 29, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(43,111,143,.12), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(255,200,87,.16), transparent 26rem),
    linear-gradient(90deg, rgba(19,33,29,.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(19,33,29,.025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
}

button,
input,
select {
  font: inherit;
}

button,
a.button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 11px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

button:hover,
a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 20, 20, .14);
}

button.secondary,
a.button.secondary {
  background: transparent;
  color: var(--ink);
}

button.icon {
  width: 42px;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
  box-shadow: none;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 18px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar {
  min-height: 74px;
  padding: 10px 0 18px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.mark {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 950;
  line-height: 1;
  font-size: 25px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-deep), var(--blue));
  box-shadow: 0 8px 22px rgba(7,83,61,.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255,255,255,.62);
}

.nav a.active,
.nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .42);
}

.hero {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(410px, 1.06fr);
  gap: 34px;
  align-items: center;
  padding: 34px 0 20px;
}

.kicker {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.score-big {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 950;
  line-height: .86;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.score-big .dash {
  color: var(--red);
}

.title-lockup {
  max-width: 620px;
}

.title-lockup .dash {
  color: var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: .9;
  letter-spacing: 0;
  margin-bottom: 18px;
  max-width: 720px;
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: .95;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.lead {
  color: #3c3934;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.42;
  max-width: 620px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.lineup-board {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 520px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(255,255,255,.22) 18.4% 19%, transparent 19.5%),
    linear-gradient(90deg, transparent 49.7%, rgba(255,255,255,.35) 49.8% 50.2%, transparent 50.3%),
    linear-gradient(0deg, rgba(31,122,77,.96), rgba(13,78,52,.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lineup-board::before,
.lineup-board::after {
  content: "";
  position: absolute;
  left: 24%;
  width: 52%;
  height: 15%;
  border: 2px solid rgba(255,255,255,.42);
}

.lineup-board::before {
  top: -2px;
}

.lineup-board::after {
  bottom: -2px;
}

.player-token {
  position: absolute;
  width: 78px;
  min-height: 78px;
  border-radius: 50%;
  border: 3px solid #f6f1e6;
  background: #141414;
  color: #fff;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.player-token strong {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.player-token span {
  display: block;
  font-size: 11px;
  line-height: 1.05;
  margin-top: 4px;
}

.steps,
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 0;
}

.step,
.stat {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.step b,
.stat b {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.step span,
.stat span {
  color: var(--muted);
  font-size: 14px;
}

.view {
  padding: 18px 0 16px;
}

.play-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.game-layout {
  display: grid;
  grid-template-columns: 276px minmax(480px, 1fr) 320px;
  gap: 16px;
  align-items: start;
  border-bottom: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  padding: 16px;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .36em;
  text-transform: uppercase;
}

.panel h3:not(:first-child) {
  margin-top: 18px;
}

.game-layout > :nth-child(1),
.game-layout > :nth-child(2),
.game-layout > :nth-child(3) {
  border-right: 0;
}

.game-layout > :nth-child(2) {
  padding: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.segmented button {
  background: #fffdf7;
  color: var(--ink);
  border-radius: 0;
  min-height: 44px;
  padding: 8px 7px;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
  transform: none;
}

.segmented button.is-active,
.segmented button:hover {
  background: var(--ink);
  color: var(--paper);
  transform: none;
  box-shadow: none;
}

.draw-card {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.draft-panel .draw-card {
  margin-bottom: 16px;
}

.draft-panel .segmented {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.draft-panel .segmented button {
  min-height: 38px;
  padding: 7px 8px;
}

.draft-panel h3 {
  margin-top: 18px;
}

.draft-panel h3:first-child {
  margin-top: 0;
}

.draft-panel .player-list {
  max-height: min(44vh, 460px);
}

.draft-primary-action {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dce8e2;
}

.draft-primary-action button {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  font-size: 15px;
}

.draft-primary-action button:disabled {
  background: #e4ece8;
  color: #50645b;
  box-shadow: none;
}

.draw-display {
  min-height: 132px;
}

.draw-team {
  font-size: clamp(30px, 3vw, 44px);
}

.draw-year {
  font-size: 24px;
  font-weight: 950;
}

.list-item {
  min-height: 58px;
}

.pending-box {
  margin: 14px 0 16px;
}

.match-console-head {
  grid-template-columns: 74px 1fr minmax(110px, auto);
  padding: 14px 16px;
}

.match-feed {
  max-height: 138px;
}

.box-row {
  min-height: 36px;
  padding-inline: 10px;
}

.draw-display {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 108px;
  padding: 18px 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbf9);
  text-align: center;
}

.draw-display.empty {
  display: grid;
  place-items: center;
  min-height: 118px;
}

.draw-display.empty p {
  margin: 0;
  color: #575147;
  line-height: 1.35;
}

.reroll-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reroll-row button {
  border-radius: 0;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 2px 2px 0 var(--ink);
  transform: none;
}

.reroll-row button:hover {
  transform: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.draw-team {
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.draw-year {
  color: var(--red);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.roll-button {
  min-height: 72px;
  width: 100%;
  border-radius: 8px;
  border-color: var(--ink);
  background: linear-gradient(135deg, var(--red), #ff7b54);
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(226,85,79,.25);
  transform: none;
}

.roll-button:hover {
  transform: none;
  box-shadow: 0 14px 30px rgba(226,85,79,.32);
}

.filters {
  display: grid;
  gap: 10px;
  margin: 16px 0 12px;
}

.filters input,
.filters select,
.profile-form input {
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--ink);
  border-radius: 6px;
  padding: 11px 12px;
  min-height: 42px;
  width: 100%;
}

.player-list,
.selected-list,
.feed {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.player-list {
  max-height: 318px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  gap: 6px;
  padding: 6px;
}

.list-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  padding: 9px;
}

button.list-item {
  width: 100%;
  color: #10221b;
  text-align: left;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

button.list-item:hover,
button.list-item.is-active {
  border-color: rgba(15,138,99,.55);
  background: #dff8ed;
  box-shadow: none;
  transform: none;
}

button.list-item:disabled {
  opacity: 1;
  color: #10221b;
}

.panel,
.panel p,
.panel span,
.panel strong,
.panel label,
.panel input,
.panel select,
.panel .notice,
.panel .meta,
.box-row,
.box-row span,
.box-row strong,
.draw-display,
.draw-display p,
.draw-display span,
.player-list,
.player-list strong,
.player-list span,
.player-list .meta {
  color: #10221b;
}

.player-list button,
.player-list button *,
.pending-box button,
.pending-box button *,
.reroll-row button,
.reroll-row button *,
.box-list button,
.box-list button * {
  color: #10221b !important;
}

.pending-actions button:first-child,
.pending-actions button:first-child * {
  color: #06110d !important;
}

.pending-actions button.secondary,
.pending-actions button.secondary *,
.panel button.secondary,
.panel button.secondary * {
  color: #10221b !important;
}

.player-list button.list-item.is-active,
.player-list button.list-item.is-active * {
  color: #10221b !important;
}

.panel .kicker {
  color: #0b6e4f;
}

button.list-item:disabled .shirt {
  background: #d6e0da;
  color: #10221b;
}

button.list-item:disabled .meta,
button.list-item:disabled strong,
button.list-item:disabled span {
  color: #30483d;
}

.list-item button {
  padding: 0;
  min-height: 34px;
}

.choose-mark {
  justify-self: center;
  font-weight: 950;
  color: #10221b !important;
}

.inline-pick-actions {
  display: grid;
  grid-template-columns: 34px 42px;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.target-slot {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16,34,27,.08);
  color: #10221b !important;
  font-size: 11px;
  font-weight: 950;
}

.inline-ok {
  display: inline-grid;
  place-items: center;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #06110d !important;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(44,226,154,.22);
}

.inline-ok:hover {
  filter: brightness(.96);
}

.shirt {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-weight: 850;
  font-size: 14px;
}

.meta {
  color: #41564c;
  font-size: 12px;
}

.rating {
  font-weight: 900;
  color: var(--green-deep);
}

.dream-pitch {
  position: relative;
  aspect-ratio: 7 / 9;
  min-height: 560px;
  width: min(100%, 540px);
  margin: 0 auto;
  border-radius: 10px;
  border: 10px solid #ffffff;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.08), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 10%, transparent 10% 20%),
    linear-gradient(180deg, #18a36f, #08724f);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dream-pitch::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 2px solid rgba(255,255,255,.48);
}

.dream-pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.slot {
  position: absolute;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.slot button {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(7,83,61,.42);
  color: #e8fff5;
  border: 3px dashed rgba(255,255,255,.55);
  box-shadow: none;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
}

.slot button.selected,
.slot button:hover,
.slot button.filled {
  background: #fffaf0;
  color: var(--ink);
  border-style: solid;
  border-color: var(--ink);
  box-shadow: 0 6px 0 rgba(0,0,0,.2);
}

.slot button.compatible {
  animation: slotPulse 1s ease-in-out infinite alternate;
}

.slot button.pending {
  background: var(--yellow);
  color: var(--ink);
  border-color: #fff;
  border-style: solid;
}

@keyframes slotPulse {
  from {
    box-shadow: 0 0 0 rgba(241,200,75,0);
  }
  to {
    box-shadow: 0 0 0 8px rgba(241,200,75,.22);
  }
}

.slot small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.slot strong {
  display: block;
  font-size: 12px;
  line-height: 1.08;
}

.slot-content {
  display: grid;
  place-items: center;
}

.slot-number {
  font-size: 21px;
  line-height: 1;
  font-style: normal;
}

.slot-name {
  position: absolute;
  left: 50%;
  bottom: -16px;
  max-width: 92px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8,22,17,.9);
  color: #fff;
  padding: 3px 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-band {
  position: absolute;
  left: 0;
  right: 0;
  height: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.ad-band.top {
  top: 0;
}

.ad-band.bottom {
  bottom: 0;
}

.match-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.button-player {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
  font-size: 19px;
  box-shadow: 0 8px 16px rgba(0,0,0,.24);
  will-change: left, top, transform;
}

.button-player > span {
  line-height: 1;
  font-weight: 1000;
}

.button-player > em {
  display: none;
  position: absolute;
  left: 50%;
  bottom: -15px;
  max-width: 86px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8,22,17,.86);
  color: #fff;
  padding: 3px 6px;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.button-player.rival {
  background: var(--red);
  color: #fff;
}

.ball {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #161616 0 16%, transparent 17%),
    radial-gradient(circle at 30% 30%, #161616 0 8%, transparent 9%),
    radial-gradient(circle at 70% 32%, #161616 0 8%, transparent 9%),
    radial-gradient(circle at 34% 72%, #161616 0 8%, transparent 9%),
    radial-gradient(circle at 72% 70%, #161616 0 8%, transparent 9%),
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.95), #f4f4f4 42%, #d9d9d9 78%);
  border: 2px solid #111;
  box-shadow: 0 9px 18px rgba(0,0,0,.35), inset -3px -4px 7px rgba(0,0,0,.18);
  z-index: 12;
  transform: translate(-50%, -50%) rotate(var(--spin, 0deg));
  will-change: left, top, transform;
}

.ball-trail {
  position: absolute;
  width: 32px;
  height: 32px;
  z-index: 11;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.78), rgba(76,201,240,.34) 42%, rgba(44,226,154,.12) 70%, transparent 76%);
  filter: blur(2px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: left, top, opacity, transform;
}

.ball::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.2);
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 38% 34%);
}

.ball.goal-ball {
  animation: goalBall .55s ease-in-out infinite alternate;
}

.goal-flash {
  position: absolute;
  left: 50%;
  top: 15%;
  z-index: 18;
  width: min(82%, 360px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,209,102,.45), transparent 32%),
    rgba(19,33,29,.92);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
  animation: goalFlash .42s ease-in-out infinite alternate;
}

.goal-flash b {
  font-size: clamp(46px, 7vw, 72px);
  line-height: .9;
  letter-spacing: 0;
}

.goal-flash strong {
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
}

.goal-flash span {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.goal-flash.away {
  background: rgba(208,77,58,.9);
}

.goal-flash.hidden {
  display: none;
}

.final-whistle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 20;
  width: min(78%, 360px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.45);
  background:
    radial-gradient(circle at 50% 0%, rgba(76,201,240,.24), transparent 45%),
    rgba(8,22,17,.92);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
  animation: finalPop .45s cubic-bezier(.2, 1.25, .35, 1) both;
}

.final-whistle.hidden {
  display: none;
}

.final-whistle b {
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.final-whistle strong {
  color: #fff;
  font-size: 54px;
  line-height: 1;
}

.final-whistle span {
  color: rgba(255,255,255,.74);
  font-size: 13px;
}

@keyframes finalPop {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(.88);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes goalFlash {
  from {
    opacity: .86;
    transform: translate(-50%, -50%) scale(.96) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04) rotate(1deg);
  }
}

@keyframes goalBall {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(1.45);
  }
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  padding: 13px 0;
  margin-bottom: 12px;
}

.box-list {
  display: grid;
  margin: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.box-list.compact {
  max-height: 132px;
  overflow: auto;
}

.box-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .22em;
  padding: 7px 4px;
  text-transform: uppercase;
}

.box-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 0 4px;
  transform: none;
}

.box-row:hover,
.box-row.is-active {
  transform: none;
  box-shadow: none;
  background: rgba(255,255,255,.62);
}

.box-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.box-row strong {
  text-align: left;
  font-size: 13px;
}

.box-row.cpu {
  pointer-events: none;
  opacity: .74;
}

.pending-box {
  border: 1px solid rgba(15,138,99,.28);
  border-radius: 8px;
  background: #f7fffb;
  padding: 12px;
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.pending-box.empty {
  border-color: var(--line);
  color: var(--muted);
  font-size: 12px;
}

.pending-box span {
  color: var(--muted);
  font-size: 12px;
}

.pending-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pending-actions button {
  min-height: 42px;
  border-radius: 7px;
  padding: 6px 8px;
}

.panel .feed {
  max-height: 220px;
}

.scoreboard b {
  font-size: 34px;
  line-height: 1;
}

.scoreboard span:last-child {
  text-align: right;
}

.meters {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.meter {
  display: grid;
  gap: 5px;
}

.meter label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #e3dacb;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: var(--green);
}

.event {
  border-left: 3px solid var(--line);
  background: rgba(255,255,255,.5);
  border-radius: 0 6px 6px 0;
  padding: 8px 10px;
  font-size: 13px;
}

.event.goal {
  border-color: var(--red);
  font-weight: 800;
}

.profile-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.member-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  min-height: 270px;
  display: grid;
}

.member-card .number {
  align-self: end;
  font-size: clamp(54px, 8vw, 96px);
  line-height: .85;
  font-weight: 950;
}

.badge-new {
  background: var(--red);
  color: white;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 850;
}

.notice {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero,
  .game-layout,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .game-layout {
    gap: 18px;
    border-bottom: 0;
  }

  .game-layout > :nth-child(1),
  .game-layout > :nth-child(2),
  .game-layout > :nth-child(3) {
    border-right: 0;
  }

  .game-layout > :nth-child(2) {
    padding: 12px 0;
  }

  .lineup-board,
  .dream-pitch {
    min-height: min(660px, 122vw);
  }
}

@media (max-width: 640px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .steps,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .slot {
    width: 72px;
    height: 72px;
  }

  .button-player {
    width: 44px;
    height: 44px;
    font-size: 12px;
  }
}

/* Copa dos Sonhos full redesign */
:root {
  --paper: #081611;
  --ink: #f4fbf7;
  --muted: #9fb3aa;
  --line: rgba(255,255,255,.12);
  --panel: rgba(244,251,247,.94);
  --panel-ink: #10221b;
  --green: #2ce29a;
  --green-deep: #0b6e4f;
  --red: #ff5f57;
  --yellow: #ffd166;
  --blue: #4cc9f0;
  --violet: #7b61ff;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(76,201,240,.18), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(123,97,255,.2), transparent 28rem),
    radial-gradient(circle at 45% 100%, rgba(44,226,154,.16), transparent 34rem),
    linear-gradient(135deg, #06110d 0%, #0b181f 48%, #151122 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 82%);
}

.shell {
  width: min(1280px, calc(100vw - 32px));
  padding: 18px 0 26px;
}

.topbar {
  min-height: 64px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  color: #fff;
  font-size: 17px;
}

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(44,226,154,.95), rgba(76,201,240,.95));
  color: #06110d;
  font-size: 18px;
  box-shadow: 0 12px 28px rgba(44,226,154,.22);
}

.nav {
  gap: 6px;
}

.nav a {
  color: rgba(244,251,247,.82);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  padding: 10px 14px;
}

.nav a.active,
.nav a:hover {
  color: #06110d;
  border-color: transparent;
  background: var(--green);
}

.badge-new {
  background: var(--yellow);
  color: #06110d;
}

.hero {
  min-height: calc(100vh - 130px);
  grid-template-columns: minmax(0, .92fr) minmax(360px, .78fr);
  gap: 52px;
  padding-top: 36px;
}

.kicker {
  color: var(--green);
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.score-big {
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 16px 50px rgba(0,0,0,.34);
}

.score-big .dash,
.title-lockup .dash {
  color: var(--yellow);
}

h1,
h2,
h3 {
  color: #fff;
}

.lead {
  color: rgba(244,251,247,.74);
}

button,
a.button {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #06110d;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(44,226,154,.16);
}

button.secondary,
a.button.secondary {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.steps,
.stats-row {
  gap: 12px;
}

.step,
.stat {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}

.step span,
.stat span {
  color: rgba(244,251,247,.66);
}

.lineup-board {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.1), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 10%, transparent 10% 20%),
    linear-gradient(180deg, #19b77b, #096247);
  box-shadow: var(--shadow);
}

.player-token {
  border-color: rgba(255,255,255,.86);
  background: #ffffff;
  color: #0b181f;
}

.view {
  padding: 0 0 16px;
}

.play-strip {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  color: rgba(244,251,247,.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.game-layout {
  grid-template-columns: 310px minmax(520px, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}

.panel {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: #f8fbf9;
  color: var(--panel-ink);
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel h2,
.panel h3 {
  color: var(--panel-ink);
}

.panel h3 {
  font-size: 11px;
  letter-spacing: .22em;
}

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

.segmented button {
  border: 1px solid #dce8e2;
  border-radius: 12px;
  background: #f5faf7;
  color: var(--panel-ink);
  min-height: 42px;
}

.segmented button.is-active,
.segmented button:hover {
  background: var(--panel-ink);
  color: #fff;
}

.draw-display {
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(44,226,154,.18), rgba(76,201,240,.14)),
    #ffffff;
  text-align: left;
  padding: 18px;
}

.draw-team {
  color: var(--panel-ink);
  font-size: 34px;
  line-height: 1.03;
}

.draw-year {
  color: var(--green-deep);
  font-size: 26px;
}

.roll-button {
  border-radius: 16px;
  min-height: 76px;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  color: #101410;
  box-shadow: 0 18px 38px rgba(255,95,87,.22);
}

.reroll-row button {
  border-radius: 12px;
  color: var(--panel-ink);
  background: #f5faf7;
  border: 1px solid #dce8e2;
}

.filters input,
.filters select,
.profile-form input {
  border: 1px solid #dce8e2;
  border-radius: 12px;
  background: #fff;
}

.player-list {
  max-height: 358px;
  border: 1px solid #dce8e2;
  border-radius: 16px;
  background: #f8fbf9;
}

.list-item {
  grid-template-columns: 36px minmax(0, 1fr) 40px;
  border-radius: 12px;
}

button.list-item:hover,
button.list-item.is-active {
  border-color: rgba(44,226,154,.42);
  background: rgba(44,226,154,.12);
}

.shirt {
  background: var(--panel-ink);
  color: #fff;
}

.dream-pitch {
  width: min(100%, 620px);
  min-height: 680px;
  border: 12px solid rgba(255,255,255,.96);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255,255,255,.12), transparent 25%),
    linear-gradient(90deg, rgba(255,255,255,.055) 0 16.6%, transparent 16.6% 33.3%, rgba(255,255,255,.05) 33.3% 50%, transparent 50% 66.6%, rgba(255,255,255,.045) 66.6% 83.3%, transparent 83.3%),
    linear-gradient(180deg, #20c987, #08714e);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}

.dream-pitch::before {
  display: none;
}

.dream-pitch::after {
  display: none;
}

.field-lines {
  position: absolute;
  inset: 38px 7% 38px;
  z-index: 1;
  pointer-events: none;
}

.pitch-line,
.corner,
.goal-net {
  position: absolute;
  border-color: rgba(255,255,255,.72);
  pointer-events: none;
}

.pitch-line.outer {
  inset: 0;
  border: 2px solid rgba(255,255,255,.72);
}

.pitch-line.halfway {
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid rgba(255,255,255,.52);
}

.pitch-line.center-circle {
  left: 50%;
  top: 50%;
  width: 28%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.58);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-line.center-spot,
.pitch-line.penalty {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  border: 0;
  transform: translate(-50%, -50%);
}

.pitch-line.center-spot {
  left: 50%;
  top: 50%;
}

.pitch-line.box {
  left: 22%;
  width: 56%;
  height: 16%;
  border: 2px solid rgba(255,255,255,.62);
}

.top-box {
  top: 0;
  border-top: 0;
}

.bottom-box {
  bottom: 0;
  border-bottom: 0;
}

.pitch-line.six {
  left: 36%;
  width: 28%;
  height: 7%;
  border: 2px solid rgba(255,255,255,.62);
}

.top-six {
  top: 0;
  border-top: 0;
}

.bottom-six {
  bottom: 0;
  border-bottom: 0;
}

.top-penalty {
  left: 50%;
  top: 11%;
}

.bottom-penalty {
  left: 50%;
  bottom: 11%;
}

.pitch-line.arc {
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 50%;
  transform: translateX(-50%);
}

.top-arc {
  top: 9%;
  clip-path: inset(52% 0 0 0);
}

.bottom-arc {
  bottom: 9%;
  clip-path: inset(0 0 52% 0);
}

.corner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255,255,255,.52);
}

.corner.c1 {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0 0 28px 0;
}

.corner.c2 {
  right: 0;
  top: 0;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 0 0 28px;
}

.corner.c3 {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0 28px 0 0;
}

.corner.c4 {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
  border-radius: 28px 0 0 0;
}

.goal-net {
  left: 40.5%;
  width: 19%;
  height: 34px;
  border: 3px solid rgba(255,255,255,.82);
  background:
    linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px) 0 0 / 10px 10px,
    rgba(255,255,255,.08);
}

.goal-top {
  top: -34px;
  border-bottom: 0;
}

.goal-bottom {
  bottom: -34px;
  border-top: 0;
}

.goal-left,
.goal-right,
.left-box,
.right-box,
.left-six,
.right-six,
.left-penalty,
.right-penalty,
.left-arc,
.right-arc {
  display: none;
}

.ad-band {
  height: 38px;
  background: rgba(8,22,17,.72);
  color: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
}

.slot button {
  background: rgba(8,22,17,.42);
  color: #fff;
  border: 2px dashed rgba(255,255,255,.52);
}

.slot button.filled,
.slot button.pending,
.slot button.selected {
  background: #fff;
  color: var(--panel-ink);
  border-color: var(--yellow);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.button-player {
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  background: var(--yellow);
  color: #14170f;
}

.button-player.rival {
  background: var(--red);
}

.scoreboard {
  border: 0;
  border-radius: 16px;
  background: #f6faf8;
  padding: 16px;
}

.scoreboard b {
  color: var(--panel-ink);
}

.bar {
  background: #dfe9e4;
}

.bar i {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.pending-box {
  border: 1px solid rgba(44,226,154,.36);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(44,226,154,.12), rgba(76,201,240,.1));
}

.pending-actions button {
  border-radius: 12px;
}

.box-list {
  border-top-color: #dce8e2;
}

.box-row {
  border-bottom-color: #dce8e2;
  border-radius: 10px;
}

.box-row:hover,
.box-row.is-active {
  background: rgba(44,226,154,.1);
}

.event {
  background: #f6faf8;
  border-left-color: var(--green);
}

.match-console {
  width: min(100%, 620px);
  margin: 14px auto 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: #10221b;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.match-console-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #dce8e2;
  background: linear-gradient(135deg, rgba(44,226,154,.16), rgba(76,201,240,.12));
}

.match-console-head strong {
  color: #06110d;
  font-size: 24px;
  line-height: 1;
}

.match-console-head span {
  color: #06110d;
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.match-console-head em {
  color: #30483d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.match-feed {
  display: grid;
  gap: 6px;
  max-height: 156px;
  overflow: auto;
  padding: 10px 12px 12px;
}

.match-feed .event {
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f7fbf9;
  color: #10221b;
  font-size: 13px;
  padding: 8px 10px;
}

.match-feed .event.goal {
  border-color: var(--red);
  background: #fff2ef;
  color: #541913;
}

.footer {
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(244,251,247,.62);
}

.footer a {
  color: #fff;
}

@media (max-width: 1100px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .dream-pitch {
    min-height: min(700px, 128vw);
  }
}

/* UX cockpit override: field-first layout, distinct from reference */
.play-strip {
  max-width: 1180px;
  margin-inline: auto;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(360px, 420px);
  grid-template-areas:
    "pitch draft"
    "score score";
  align-items: start;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.game-layout > :nth-child(1) {
  grid-area: draft;
}

.game-layout > :nth-child(2) {
  grid-area: pitch;
}

.game-layout > :nth-child(3) {
  grid-area: score;
}

.draft-panel {
  position: static;
  border-radius: 24px;
  padding: 20px;
}

.draft-panel::before {
  content: "Mesa de draft";
  display: block;
  margin-bottom: 14px;
  color: #0b6e4f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce8e2;
}

.game-layout > :nth-child(3).panel::before {
  content: "Elencos";
  display: block;
  margin-bottom: 14px;
  color: #0b6e4f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce8e2;
  grid-column: 1 / -1;
}

.game-layout > :nth-child(3).panel > h3 {
  grid-column: 1 / -1;
  margin: 0;
}

.game-layout > :nth-child(3).panel > .notice,
.game-layout > :nth-child(3).panel > .pending-box {
  grid-column: 1 / 2;
}

.game-layout > :nth-child(3).panel {
  border-radius: 24px;
  padding: 20px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.game-layout > :nth-child(2) {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(2,10,8,.32);
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}

.dream-pitch {
  width: 100%;
  max-width: none;
  min-height: min(72vh, 780px);
  border-radius: 30px;
}

.match-console {
  width: 100%;
  max-width: none;
  border-radius: 22px;
}

.scoreboard {
  grid-template-columns: 1fr auto 1fr;
  background: #10221b;
  color: #fff;
}

.scoreboard span,
.scoreboard b {
  color: #fff !important;
}

.meters {
  grid-template-columns: 1fr;
}

.box-list {
  max-height: 250px;
  overflow: auto;
}

.box-list.compact {
  max-height: 250px;
}

.play-strip {
  display: grid;
  grid-template-columns: 1fr auto;
}

@media (max-width: 1180px) {
  .game-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "draft"
      "pitch"
      "score";
  }

  .draft-panel {
    position: static;
  }

  .dream-pitch,
  .match-console {
    max-width: none;
  }
}

.match-view {
  max-width: 1280px;
  margin: 0 auto;
}

.match-hero-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  box-shadow: var(--shadow);
}

.match-hero-bar h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
}

.match-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.match-only-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.match-only-layout > section {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(2,10,8,.32);
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}

.match-only-layout .dream-pitch {
  min-height: min(74vh, 820px);
}

.match-info {
  position: sticky;
  top: 16px;
}

.match-info .actions {
  margin-top: 14px;
}

.match-info .match-console {
  width: 100%;
  margin-top: 16px;
  box-shadow: none;
  border-color: #dce8e2;
}

.match-info .match-console-head {
  grid-template-columns: 58px 1fr;
}

.match-info .match-console-head em {
  grid-column: 1 / -1;
}

.match-info .match-feed {
  max-height: 360px;
}

.match-empty {
  max-width: 560px;
  margin: 40px auto;
}

/* Full match narration: no inner scrollbar, the page itself carries the full timeline. */
.match-info {
  position: static;
  align-self: start;
}

.match-info .match-console {
  overflow: visible;
}

.match-info .match-feed {
  max-height: none;
  overflow: visible;
  padding: 10px 0 0;
  gap: 7px;
}

.match-info .match-feed .event {
  border-left-width: 3px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(10, 24, 20, .05);
}

.match-info .match-console-head {
  position: sticky;
  top: 12px;
  z-index: 3;
  border-radius: 14px;
  border: 1px solid #dce8e2;
  box-shadow: 0 10px 30px rgba(10, 24, 20, .08);
}

.match-only-layout {
  align-items: start;
}

.match-only-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: clamp(14px, 2vw, 24px);
}

.match-only-layout > section {
  padding: clamp(8px, 1.4vw, 14px);
  border-radius: 22px;
}

.match-only-layout .dream-pitch.match-pitch {
  width: 100%;
  max-width: min(100%, calc((100vh - 210px) * 1.62));
  min-height: 0;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  border-width: clamp(6px, 1vw, 10px);
  border-radius: 18px;
}

.match-pitch .ad-band {
  height: clamp(24px, 3.4vw, 34px);
  font-size: clamp(8px, .8vw, 10px);
}

.match-pitch .field-lines {
  inset: clamp(34px, 7%, 46px) 6.5%;
}

.match-pitch .goal-top,
.match-pitch .goal-bottom,
.match-pitch .top-box,
.match-pitch .bottom-box,
.match-pitch .top-six,
.match-pitch .bottom-six,
.match-pitch .top-penalty,
.match-pitch .bottom-penalty,
.match-pitch .top-arc,
.match-pitch .bottom-arc {
  display: none;
}

.match-pitch .goal-left,
.match-pitch .goal-right,
.match-pitch .left-box,
.match-pitch .right-box,
.match-pitch .left-six,
.match-pitch .right-six,
.match-pitch .left-penalty,
.match-pitch .right-penalty,
.match-pitch .left-arc,
.match-pitch .right-arc {
  display: block;
}

.match-pitch .pitch-line.halfway {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  border-top: 0;
  border-left: 2px solid rgba(255,255,255,.52);
}

.match-pitch .pitch-line.center-circle {
  width: 18%;
}

.match-pitch .left-box,
.match-pitch .right-box {
  top: 22%;
  width: 16%;
  height: 56%;
  border: 2px solid rgba(255,255,255,.62);
}

.match-pitch .left-box {
  left: 0;
  border-left: 0;
}

.match-pitch .right-box {
  left: auto;
  right: 0;
  border-right: 0;
}

.match-pitch .left-six,
.match-pitch .right-six {
  top: 36%;
  width: 7%;
  height: 28%;
  border: 2px solid rgba(255,255,255,.62);
}

.match-pitch .left-six {
  left: 0;
  border-left: 0;
}

.match-pitch .right-six {
  left: auto;
  right: 0;
  border-right: 0;
}

.match-pitch .left-penalty {
  left: 11%;
  top: 50%;
}

.match-pitch .right-penalty {
  left: auto;
  right: 11%;
  top: 50%;
  transform: translate(50%, -50%);
}

.match-pitch .left-arc,
.match-pitch .right-arc {
  top: 50%;
  width: 13%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 50%;
}

.match-pitch .left-arc {
  left: 9%;
  transform: translate(-50%, -50%);
  clip-path: inset(0 0 0 52%);
}

.match-pitch .right-arc {
  left: auto;
  right: 9%;
  transform: translate(50%, -50%);
  clip-path: inset(0 52% 0 0);
}

.match-pitch .goal-left,
.match-pitch .goal-right {
  top: 40.5%;
  width: 34px;
  height: 19%;
  border: 3px solid rgba(255,255,255,.82);
  background:
    linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px) 0 0 / 10px 10px,
    rgba(255,255,255,.08);
}

.match-pitch .goal-left {
  left: -34px;
  border-right: 0;
}

.match-pitch .goal-right {
  left: auto;
  right: -34px;
  border-left: 0;
}

.match-pitch .button-player {
  width: clamp(30px, 3.5vw, 42px);
  height: clamp(30px, 3.5vw, 42px);
  font-size: clamp(13px, 1.55vw, 18px);
}

.match-pitch .button-player > em {
  display: none;
}

.match-pitch .ball {
  width: clamp(18px, 2.2vw, 24px);
  height: clamp(18px, 2.2vw, 24px);
}

.side-label {
  position: absolute;
  top: clamp(30px, 5vw, 46px);
  z-index: 7;
  max-width: 28%;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(8,22,17,.68);
  color: #fff;
  padding: 5px 9px;
  font-size: clamp(9px, .95vw, 12px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.side-label.left {
  left: 8%;
}

.side-label.right {
  right: 8%;
}

.match-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.match-facts div {
  border: 1px solid #dce8e2;
  border-radius: 12px;
  background: #f7fbf9;
  padding: 9px 10px;
}

.match-facts span,
.match-facts strong {
  display: block;
}

.match-facts span {
  color: #5f7268;
  font-size: 11px;
  font-weight: 800;
}

.match-facts strong {
  color: #10221b;
  font-size: 13px;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .match-only-layout {
    grid-template-columns: 1fr;
  }

  .match-info {
    position: static;
  }
}

@media (max-width: 720px) {
  .match-only-layout > section {
    padding: 6px;
    border-radius: 16px;
  }

  .match-only-layout .dream-pitch.match-pitch {
    border-width: 5px;
    border-radius: 14px;
  }

  .match-pitch .field-lines {
    inset: 30px 6%;
  }

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