:root {
  --bg: #06120f;
  --surface: #101417;
  --surface-2: #171b21;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f8faf7;
  --muted: #9ba4a6;
  --green: #41d58c;
  --cyan: #50d7ff;
  --gold: #f7c85f;
  --danger: #ff6b6b;
  --radius: 8px;
  --premium-border: rgba(65, 213, 140, 0.34);
  --premium-panel: rgba(14, 19, 20, 0.94);
  --premium-card: rgba(23, 27, 33, 0.88);
  --premium-scan: conic-gradient(from var(--scan-angle, 0deg), transparent 0 14%, rgba(65, 213, 140, 0.54) 20%, rgba(80, 215, 255, 0.26) 27%, transparent 38% 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@property --scan-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.64)),
    radial-gradient(circle at 14% 7%, rgba(65, 213, 140, 0.08), transparent 24%),
    repeating-linear-gradient(84deg, rgba(218, 255, 214, 0.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(118deg, rgba(0, 0, 0, 0.055) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(8deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    #071b12;
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #070a0c;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.42);
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 18px;
}

.screen.is-active {
  display: block;
}

.hero-screen {
  position: relative;
  padding: 18px;
  display: none;
  isolation: isolate;
}

.hero-screen.is-active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(3, 7, 8, 0.3), rgba(3, 7, 8, 0.28) 36%, rgba(3, 7, 8, 0.86) 75%, #050809);
}

.topbar,
.compact-header,
.game-header,
.section-row,
.card-topline,
.rating-row,
.bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mark,
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.brand-mark {
  background: rgba(4, 6, 7, 0.88);
  border: 1px solid rgba(255, 244, 168, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.icon-btn {
  border: 1px solid var(--line);
  background: rgba(14, 17, 20, 0.68);
  color: var(--text);
  font-size: 25px;
}

.hero-copy {
  margin-top: auto;
  padding-top: min(48vh, 420px);
}

.eyebrow,
.panel-label,
.field-label {
  margin: 0 0 8px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.85rem, 16vw, 5.35rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

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

.hero-copy > p:not(.eyebrow):not(.credit-note) {
  width: min(100%, 360px);
  color: #d8dfdd;
  line-height: 1.45;
}

.hero-copy .credit-note {
  width: min(100%, 410px);
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 2px solid rgba(247, 200, 95, 0.8);
  color: rgba(248, 250, 247, 0.82);
  font-size: 0.9rem;
  line-height: 1.4;
}

.credit-note a {
  color: var(--gold);
  font-weight: 850;
  text-decoration-color: rgba(247, 200, 95, 0.46);
  text-underline-offset: 3px;
}

.choice-panel,
.event-card,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 16, 19, 0.82);
  backdrop-filter: blur(18px);
}

.choice-panel {
  padding: 14px;
}

.segmented,
.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.segmented button,
.tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segmented .is-selected,
.tabs .is-active {
  background: var(--text);
  color: #07100d;
}

.mode-picker {
  display: grid;
  gap: 8px;
}

.mode-card {
  min-height: 112px;
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.mode-card span {
  width: max-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(80, 215, 255, 0.13);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mode-card strong {
  font-size: 1.05rem;
  line-height: 1.08;
}

.mode-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.22;
}

.mode-card.is-selected {
  border-color: rgba(65, 213, 140, 0.62);
  background:
    linear-gradient(135deg, rgba(65, 213, 140, 0.18), rgba(80, 215, 255, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.mode-card.is-selected span {
  background: rgba(65, 213, 140, 0.16);
  color: var(--green);
}

.primary-btn,
.ghost-btn,
.small-btn,
.choice-stack button,
.choice-grid button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 48px;
  padding: 0 15px;
  color: var(--text);
  font-weight: 850;
}

.primary-btn {
  width: 100%;
  margin-top: 12px;
  border-color: rgba(65, 213, 140, 0.45);
  background: linear-gradient(135deg, #39cf82, #47d7ff);
  color: #04100d;
}

.ghost-btn,
.small-btn {
  background: var(--surface-2);
}

.ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.setup-screen,
.game-screen,
.retire-screen {
  background: linear-gradient(180deg, #070b0d, #091310);
}

.setup-screen {
  position: relative;
  overflow: hidden;
}

.setup-screen::before {
  content: "";
  position: absolute;
  inset: -35% -20% auto;
  height: 520px;
  background:
    radial-gradient(circle at 30% 42%, rgba(71, 215, 255, 0.22), transparent 28%),
    radial-gradient(circle at 72% 30%, rgba(65, 213, 140, 0.22), transparent 26%);
  filter: blur(22px);
  opacity: 0.95;
  pointer-events: none;
}

.compact-header {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.setup-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.setup-form h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.identity-column,
.nationality-column,
.position-column {
  min-width: 0;
}

.player-preview {
  display: grid;
  place-items: center;
  min-height: 230px;
  perspective: 900px;
}

.shirt {
  --kit-primary: #f8faf7;
  --kit-secondary: #73b9e8;
  --kit-ink: #11161b;
  width: min(220px, 64vw);
  aspect-ratio: 0.78;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 66px;
  color: var(--kit-ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--kit-secondary), transparent 90%) 0 16%, transparent 16% 28%, var(--kit-secondary) 28% 43%, transparent 43% 57%, var(--kit-secondary) 57% 72%, transparent 72%),
    linear-gradient(150deg, var(--kit-primary) 0 68%, color-mix(in srgb, var(--kit-primary), #020605 16%));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px 18px 52px 52px;
  box-shadow:
    inset 0 -18px 0 rgba(0, 0, 0, 0.08),
    inset 0 14px 20px rgba(255, 255, 255, 0.72),
    0 28px 68px rgba(0, 0, 0, 0.58),
    0 0 70px rgba(65, 213, 140, 0.16);
  transform: rotateX(6deg);
  animation: shirtFloat 4.5s ease-in-out infinite;
}

.shirt[data-country="PE"],
.shirt[data-country="AT"],
.shirt[data-country="CA"] {
  background:
    linear-gradient(135deg, transparent 0 38%, var(--kit-secondary) 39% 52%, transparent 53%),
    linear-gradient(150deg, var(--kit-primary) 0 68%, color-mix(in srgb, var(--kit-primary), #020605 16%));
}

.shirt[data-country="BR"],
.shirt[data-country="ES"],
.shirt[data-country="DE"],
.shirt[data-country="CO"] {
  background:
    linear-gradient(180deg, var(--kit-primary) 0 58%, var(--kit-secondary) 58% 70%, var(--kit-primary) 70%),
    linear-gradient(150deg, var(--kit-primary), var(--kit-secondary));
}

.shirt span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: 0;
}

.shirt strong {
  font-size: 5.3rem;
  line-height: 0.74;
}

.identity-inputs {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 78px;
  gap: 12px;
}

.alias-field {
  grid-column: 1 / -1;
}

.setup-screen.is-express-setup .alias-field {
  display: none;
}

.foot-toggle .is-selected,
.country-grid .is-selected,
.pitch-picker .is-selected {
  border-color: rgba(248, 250, 247, 0.96);
  box-shadow: 0 0 0 3px rgba(65, 213, 140, 0.22), 0 0 24px rgba(65, 213, 140, 0.26);
}

.foot-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.foot-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.foot-toggle .is-selected {
  background: var(--text);
  color: #08110e;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.country-grid button {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 850;
}

.country-grid span {
  min-width: 38px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(80, 215, 255, 0.14);
  font-size: 1.05rem;
  text-align: center;
}

.country-search {
  margin: 0 0 12px;
}

.pitch-picker {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(7, minmax(34px, 1fr));
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(206, 255, 231, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.58) 0 0) center 50% / 100% 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.48) 0 0) center 0 / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(65, 213, 140, 0.12) 0 42px, rgba(65, 213, 140, 0.05) 42px 84px),
    linear-gradient(180deg, #0d4a37, #063424);
  box-shadow: inset 0 0 44px rgba(65, 213, 140, 0.17), 0 22px 44px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.pitch-line,
.pitch-circle,
.pitch-box,
.pitch-small-box,
.pitch-arc {
  position: absolute;
  pointer-events: none;
  border-color: rgba(232, 255, 244, 0.78);
}

.pitch-line.halfway {
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(232, 255, 244, 0.78);
}

.pitch-circle {
  width: 78px;
  height: 78px;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(232, 255, 244, 0.78);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-box {
  width: 48%;
  height: 64px;
  left: 26%;
  border: 1px solid rgba(232, 255, 244, 0.78);
}

.top-box { top: -1px; }
.bottom-box { bottom: -1px; }

.pitch-small-box {
  width: 28%;
  height: 34px;
  left: 36%;
  border: 1px solid rgba(232, 255, 244, 0.78);
}

.top-small-box { top: -1px; }
.bottom-small-box { bottom: -1px; }

.pitch-arc {
  width: 76px;
  height: 42px;
  left: 50%;
  border: 1px solid rgba(232, 255, 244, 0.62);
  transform: translateX(-50%);
}

.top-arc {
  top: 45px;
  border-radius: 0 0 80px 80px;
}

.bottom-arc {
  bottom: 45px;
  border-radius: 80px 80px 0 0;
}

.pitch-picker button {
  position: relative;
  z-index: 1;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(2, 23, 16, 0.78);
  color: #c6f7e1;
  padding: 0 10px;
  font-size: 0.83rem;
  font-weight: 950;
}

.pitch-picker [data-value="EI"] { grid-column: 1; grid-row: 1; }
.pitch-picker [data-value="DC"] { grid-column: 3; grid-row: 1; }
.pitch-picker [data-value="ED"] { grid-column: 5; grid-row: 1; }
.pitch-picker [data-value="MCO"] { grid-column: 3; grid-row: 2; }
.pitch-picker [data-value="MI"] { grid-column: 1; grid-row: 4; }
.pitch-picker [data-value="MC"] { grid-column: 3; grid-row: 4; }
.pitch-picker [data-value="MD"] { grid-column: 5; grid-row: 4; }
.pitch-picker [data-value="MCD"] { grid-column: 3; grid-row: 5; }
.pitch-picker [data-value="LI"] { grid-column: 1; grid-row: 6; }
.pitch-picker [data-value="DFC"] { grid-column: 3; grid-row: 6; }
.pitch-picker [data-value="LD"] { grid-column: 5; grid-row: 6; }
.pitch-picker [data-value="POR"] { grid-column: 3; grid-row: 7; }

.pitch-picker .is-selected {
  background: #f8faf7;
  color: #07100d;
  transform: scale(1.08);
}

label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 54px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
}

.microcopy {
  color: var(--muted);
  line-height: 1.45;
}

.choice-grid,
.choice-stack {
  display: grid;
  gap: 10px;
}

.choice-stack.is-club-market {
  grid-template-columns: 1fr;
  justify-items: stretch;
}

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

.choice-grid button,
.decision-choice-card {
  background: var(--surface-2);
}

.choice-grid .is-selected,
.choice-stack button:hover,
.choice-stack button:focus-visible {
  border-color: rgba(65, 213, 140, 0.72);
  background: rgba(65, 213, 140, 0.13);
}

.bottom-actions {
  position: sticky;
  bottom: 0;
  padding-top: 16px;
  background: linear-gradient(180deg, transparent, #091310 35%);
}

@keyframes shirtFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(6deg);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg);
  }
}

@keyframes rankingLift {
  0% {
    transform: translateY(12px) scale(0.985);
  }
  42% {
    transform: translateY(-7px) scale(1.012);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes rankingDrop {
  0% {
    transform: translateY(-10px) scale(0.99);
  }
  42% {
    transform: translateY(6px) scale(1.006);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes numberPop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.bottom-actions .primary-btn {
  margin: 0;
}

.game-screen {
  padding-bottom: 28px;
}

.game-header {
  margin-bottom: 14px;
}

.game-screen .game-header h2 {
  display: none;
}

.mode-switch-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding-inline: 12px;
}

.player-card {
  --card-edge: #a66f43;
  --card-edge-soft: rgba(166, 111, 67, 0.25);
  --card-glow: rgba(166, 111, 67, 0.15);
  --card-ink: #071012;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 12px;
  border: 2px solid var(--card-edge);
  border-radius: 28px 28px 34px 34px;
  background:
    radial-gradient(circle at 50% -4%, var(--card-glow), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 18% 76%, rgba(0, 0, 0, 0.34)),
    var(--card-ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 34px color-mix(in srgb, var(--card-edge) 22%, transparent);
  clip-path: polygon(9% 4%, 36% 4%, 41% 0, 50% 5%, 59% 0, 64% 4%, 91% 4%, 97% 12%, 97% 88%, 90% 96%, 58% 97%, 50% 100%, 42% 97%, 10% 96%, 3% 88%, 3% 12%);
}

.player-card[data-tier="silver"] {
  --card-edge: #d5dbe0;
  --card-edge-soft: rgba(213, 219, 224, 0.24);
  --card-glow: rgba(184, 216, 229, 0.16);
}

.player-card[data-tier="gold"] {
  --card-edge: #f7c85f;
  --card-edge-soft: rgba(247, 200, 95, 0.28);
  --card-glow: rgba(247, 200, 95, 0.22);
}

.player-card[data-tier="special"],
.player-card[data-tier="legend"] {
  --card-edge: #f7c85f;
  --card-edge-soft: rgba(80, 215, 255, 0.34);
  --card-glow: rgba(247, 200, 95, 0.3);
  animation: playerCardAura 5.8s ease-in-out infinite;
}

.player-card[data-tier="legend"] {
  --card-edge: #fff2a8;
  --card-glow: rgba(255, 242, 168, 0.42);
}

.player-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--card-edge) 84%, #fff 16%);
  border-radius: 22px 22px 28px 28px;
  clip-path: inherit;
  pointer-events: none;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  border: 1px solid var(--card-edge-soft);
  border-radius: 18px 18px 24px 24px;
  background:
    linear-gradient(118deg, transparent 0 25%, rgba(255, 255, 255, 0.055) 31%, transparent 39%),
    repeating-linear-gradient(132deg, transparent 0 34px, color-mix(in srgb, var(--card-edge) 20%, transparent) 35px 36px),
    radial-gradient(circle at 72% 18%, var(--card-glow), transparent 28%);
  opacity: 0.78;
  pointer-events: none;
}

.player-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  min-height: 100%;
  padding: 26px 20px 24px;
  overflow: hidden;
  border-radius: 22px 22px 28px 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.075), transparent 28%),
    radial-gradient(circle at 34% 28%, rgba(65, 213, 140, 0.12), transparent 25%),
    linear-gradient(155deg, rgba(5, 9, 10, 0.12), rgba(5, 10, 12, 0.92) 58%, rgba(2, 6, 8, 0.98));
}

.player-card-inner::before {
  content: "";
  position: absolute;
  inset: 60px 70px auto;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.11), transparent 54%),
    radial-gradient(circle, var(--card-glow), transparent 62%);
  opacity: 0.72;
  pointer-events: none;
}

.player-card-inner::after {
  content: "";
  position: absolute;
  inset: 30px;
  background:
    linear-gradient(125deg, transparent 10%, color-mix(in srgb, var(--card-edge) 38%, transparent) 10.5% 10.8%, transparent 11.3% 41%, color-mix(in srgb, var(--card-edge) 30%, transparent) 41.4% 41.8%, transparent 42.3%),
    radial-gradient(circle at 82% 35%, color-mix(in srgb, var(--card-edge) 20%, transparent), transparent 18%);
  opacity: 0.4;
  pointer-events: none;
}

.player-card-inner > * {
  position: relative;
  z-index: 1;
}

.card-topline,
.rating-row span,
.stat-grid span,
.section-row span {
  color: rgba(248, 250, 247, 0.68);
  font-size: 0.82rem;
  font-weight: 850;
}

.card-topline {
  min-height: 54px;
  align-items: center;
  font-weight: 950;
}

#cardClub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.club-badge {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--club-a), var(--club-b));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 950;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.club-badge img,
.trophy-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 3px;
}

.club-badge:not(.is-missing) span {
  display: none;
}

.club-badge.is-large {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.rating-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-height: 206px;
  margin-top: 0;
}

.rating-row > strong {
  min-width: 0;
  font-size: clamp(4.8rem, 17vw, 6.5rem);
  line-height: 0.82;
  color: var(--card-edge);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.52);
}

.card-nameplate {
  width: 100%;
  min-width: 0;
}

.rating-row p {
  max-width: 100%;
  margin: 0 0 5px;
  color: #fff;
  font-size: clamp(2.2rem, 8.4vw, 4.1rem);
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-row span {
  display: block;
  color: rgba(248, 250, 247, 0.72);
  font-size: clamp(0.92rem, 3vw, 1.18rem);
}

.card-identity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(80, 215, 255, 0.12);
  color: var(--cyan);
  font-weight: 950;
}

.player-card .social-identity {
  margin: 0;
}

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

.stat-grid div {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.stat-grid div::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--premium-scan);
  opacity: 0.22;
  animation: premiumScan 8s linear infinite;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.stat-grid strong {
  display: block;
  margin-top: 0;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
}

.trophy-strip {
  margin-top: 0;
}

.trophy-case {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(247, 200, 95, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    linear-gradient(180deg, rgba(247, 200, 95, 0.14) 0 2px, transparent 2px 100%),
    rgba(0, 0, 0, 0.18);
  overflow: visible;
}

.trophy-case:hover .trophy-badge {
  opacity: 0.34;
  filter: grayscale(0.5);
}

.trophy-case .trophy-badge:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-4px) scale(1.06);
}

.trophy-case.is-empty span {
  min-height: 50px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.trophy-badge {
  position: relative;
  min-height: 50px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(247, 200, 95, 0.12);
  box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.14);
  transition: opacity 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.trophy-count {
  position: absolute;
  right: 2px;
  bottom: 1px;
  min-width: 20px;
  min-height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(4, 7, 8, 0.86);
  color: var(--gold);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
}

.trophy-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 4;
  min-width: max-content;
  max-width: 180px;
  padding: 5px 7px;
  border-radius: 5px;
  background: rgba(4, 7, 8, 0.92);
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.trophy-badge:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.club-title-summary {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(247, 200, 95, 0.4);
  border-radius: 999px;
  background: rgba(247, 200, 95, 0.12);
  color: var(--gold);
  font-size: 0.74rem;
}

.club-title-summary b {
  color: var(--gold);
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
}

.trophy-badge img {
  width: 42px;
  height: 42px;
  padding: 0;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3));
}

.trophy-badge:not(.is-missing) > span {
  display: none;
}

.club-title-summary .trophy-badge {
  min-width: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.club-title-summary .trophy-badge img {
  width: 28px;
  height: 28px;
}

.national-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(80, 215, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(80, 215, 255, 0.07);
}

.player-card .national-card {
  margin-top: 0;
  border-color: rgba(80, 215, 255, 0.3);
  background: rgba(0, 21, 29, 0.52);
}

.player-card .national-card dl {
  gap: 10px;
}

.player-card .national-card dd {
  font-size: 1.15rem;
}

.social-identity {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 12px;
  color: #d8dfdd;
  font-size: 0.75rem;
  font-weight: 850;
}

.social-identity span,
.social-identity b,
.social-identity em,
.social-chip {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.06);
}

.social-identity b {
  color: var(--cyan);
}

.social-identity em {
  color: var(--green);
  font-style: normal;
  background: rgba(65, 213, 140, 0.12);
}

.social-identity.is-ranking-up em {
  animation: rankingLift 0.92s ease both;
}

.social-identity.is-ranking-down em {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.11);
  animation: rankingDrop 0.92s ease both;
}

.share-moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(65, 213, 140, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(65, 213, 140, 0.12), rgba(80, 215, 255, 0.055)),
    var(--surface);
}

.share-moment h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.share-moment p:not(.panel-label) {
  margin: 0;
  color: #cdd6d4;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.28;
}

.share-moment .share-btn {
  min-width: 104px;
  border-color: rgba(65, 213, 140, 0.34);
  background: rgba(65, 213, 140, 0.13);
  color: var(--green);
}

.share-actions {
  display: grid;
  gap: 8px;
  min-width: 136px;
}

.share-actions .primary-btn,
.share-actions .small-btn {
  width: 100%;
  min-height: 42px;
  margin: 0;
}

.final-share {
  margin-bottom: 12px;
}

.history-share {
  margin: 0 0 10px;
  padding: 9px 10px;
}

.history-share h3 {
  margin-bottom: 2px;
  font-size: 0.88rem;
}

.history-share p:not(.panel-label) {
  font-size: 0.72rem;
  line-height: 1.18;
}

.history-share .panel-label {
  margin-bottom: 4px;
  font-size: 0.64rem;
}

.history-share .share-btn {
  min-width: 92px;
  min-height: 40px;
  padding: 0 12px;
}

.national-card > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
}

.national-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.national-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.country-pill {
  grid-row: 1 / span 2;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(80, 215, 255, 0.16);
  color: #c9f4ff;
  font-size: 0.72rem;
  font-weight: 950;
}

.national-card dl {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
  margin: 0;
}

.national-card dt {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
}

.national-card dd {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 950;
  text-align: right;
}

.national-tournaments {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.national-tournaments > span {
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.national-tournaments > span i {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
}

.national-tournaments > span.is-won {
  border-style: solid;
  border-color: rgba(247, 200, 95, 0.36);
  background: rgba(247, 200, 95, 0.08);
  color: var(--text);
}

.national-tournaments b {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.72rem;
  line-height: 1.05;
}

.national-tournaments .trophy-badge {
  min-height: 30px;
  width: 30px;
  background: transparent;
}

.national-tournaments .trophy-badge img {
  width: 28px;
  height: 28px;
}

.tabs {
  margin: 14px 0;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.daily-news {
  margin-bottom: 12px;
}

.mini-actions-rail {
  display: none;
}

.tv-card,
.mini-actions-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.tv-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 16px 16px 38px;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 12px;
  border-color: rgba(80, 215, 255, 0.28);
  background:
    linear-gradient(116deg, rgba(3, 10, 19, 0.16), rgba(3, 10, 19, 0.74) 44%, rgba(71, 0, 12, 0.74)),
    #071011 url("assets/nightly-sports-studio.png") center 58% / cover no-repeat;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.tv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(2, 7, 14, 0.5) 10% 100%),
    linear-gradient(180deg, rgba(2, 7, 8, 0.14), rgba(2, 7, 8, 0.64) 58%, rgba(2, 7, 8, 0.92));
}

.tv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 22%, rgba(80, 215, 255, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.36));
}

.tv-card-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(110px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  border-bottom: 2px solid rgba(227, 22, 35, 0.78);
}

.tv-card-header span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(135deg, #e01925, #7b0710 72%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  font-style: italic;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.34);
  transform: skewX(-12deg);
}

.tv-card-header span::first-letter {
  letter-spacing: 0;
}

.tv-card-header b {
  justify-self: center;
  color: #f6f2e9;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.42);
}

.tv-card ol {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  width: min(100%, 92%);
  justify-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tv-news;
}

.tv-card li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 9px 12px;
  color: #f2f5f3;
  font-size: 0.95rem;
  font-weight: 880;
  line-height: 1.15;
  border: 1px solid rgba(0, 154, 255, 0.46);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.9), rgba(1, 5, 10, 0.94));
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.46);
}

.tv-card li::before {
  counter-increment: tv-news;
  content: counter(tv-news);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 72, 72, 0.72);
  border-radius: 4px;
  background: linear-gradient(145deg, #e01622, #78040b);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 950;
  font-style: italic;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.tv-card-empty {
  position: relative;
  z-index: 1;
  width: min(100%, 92%);
  justify-self: end;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(0, 154, 255, 0.46);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.9), rgba(1, 5, 10, 0.94));
  color: rgba(242, 245, 243, 0.86);
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.28;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.tv-card-ticker,
.nightly-ticker {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid rgba(225, 24, 35, 0.78);
  background: rgba(2, 5, 9, 0.92);
  color: #f6f2e9;
  text-transform: uppercase;
}

.tv-card-ticker em,
.nightly-ticker em {
  min-width: 0;
  overflow: hidden;
  padding: 0 12px;
  color: rgba(246, 242, 233, 0.84);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.ticker-crawl {
  display: flex;
  width: max-content;
  gap: 34px;
  will-change: transform;
  animation: tickerCrawl 24s linear infinite;
}

.ticker-crawl span {
  flex: 0 0 auto;
}

.nightly-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.nightly-modal[hidden] {
  display: none;
}

.nightly-tv {
  position: relative;
  width: min(92vw, 920px);
  aspect-ratio: 1028 / 624;
  overflow: hidden;
  border: 4px solid #202328;
  border-radius: 7px;
  background:
    linear-gradient(116deg, rgba(3, 10, 19, 0.04), rgba(3, 10, 19, 0.66) 42%, rgba(71, 0, 12, 0.72)),
    #071011 url("assets/nightly-sports-studio.png") center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.68);
}

.nightly-tv::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(2, 7, 14, 0.5) 10% 100%),
    linear-gradient(180deg, rgba(2, 7, 8, 0.08), rgba(2, 7, 8, 0.42) 58%, rgba(2, 7, 8, 0.72));
  pointer-events: none;
}

.nightly-screen-header {
  position: absolute;
  z-index: 3;
  top: clamp(16px, 2.4vw, 28px);
  left: 18px;
  right: 18px;
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 2px solid rgba(227, 22, 35, 0.82);
}

.nightly-screen-header span {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 clamp(18px, 3vw, 34px);
  border-radius: 2px 0 0 2px;
  background: linear-gradient(135deg, #e01925, #7b0710 72%);
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 950;
  font-style: italic;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.38);
  transform: skewX(-12deg);
}

.nightly-screen-header .icon-btn {
  grid-column: 3;
  justify-self: end;
}

.nightly-screen {
  position: absolute;
  z-index: 2;
  left: clamp(86px, 11vw, 120px);
  right: clamp(32px, 12vw, 130px);
  top: clamp(94px, 16vw, 138px);
  bottom: 72px;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nightly-screen h3 {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.nightly-screen .panel-label,
.nightly-anchor {
  display: none;
}

.nightly-screen-header::after {
  content: "Resumen de la noche";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin: 0;
  color: #f6f2e9;
  font-size: clamp(1.3rem, 4vw, 2.55rem);
  font-weight: 950;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.nightly-screen ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nightly;
}

.nightly-screen li {
  display: grid;
  grid-template-columns: clamp(56px, 8vw, 78px) 1fr;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  min-height: clamp(84px, 13vw, 114px);
  padding: clamp(10px, 1.6vw, 16px) clamp(14px, 2vw, 24px);
  border: 1px solid rgba(0, 154, 255, 0.52);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.9), rgba(1, 5, 10, 0.96));
  color: #f2f5f3;
  font-size: clamp(1.08rem, 2.6vw, 1.9rem);
  font-weight: 900;
  line-height: 1.18;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

.nightly-screen li::before {
  counter-increment: nightly;
  content: counter(nightly);
  display: grid;
  place-items: center;
  width: clamp(54px, 8vw, 78px);
  height: clamp(54px, 8vw, 78px);
  border: 1px solid rgba(255, 72, 72, 0.72);
  border-radius: 4px;
  background: linear-gradient(145deg, #e01622, #78040b);
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 950;
  font-style: italic;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 620px) {
  .game-screen {
    padding-bottom: 14px;
  }

  .game-header {
    align-items: center;
    margin-bottom: 6px;
  }

  .game-header .eyebrow {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .mode-switch-btn {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.86rem;
  }

  .game-screen .player-card {
    padding: 7px;
    border-radius: 24px 24px 28px 28px;
  }

  .game-screen .player-card::after {
    inset: 7px;
  }

  .game-screen .player-card::before {
    inset: 12px;
  }

  .game-screen .player-card-inner {
    grid-template-columns: minmax(0, 1fr) minmax(68px, 0.28fr);
    grid-template-areas:
      "topline topline"
      "name ovr"
      "identity ovr"
      "stats stats"
      "national national"
      "trophies trophies";
    gap: 6px 10px;
    padding: 14px 13px 13px;
  }

  .game-screen .player-card-inner::before {
    inset: 36px 40px auto;
    height: 112px;
  }

  .game-screen .player-card-inner::after {
    inset: 20px;
  }

  .game-screen .card-topline {
    grid-area: topline;
    min-height: 32px;
    font-size: 0.72rem;
  }

  .club-badge {
    width: 28px;
    height: 28px;
  }

  .game-screen .rating-row {
    display: contents;
  }

  .game-screen .card-nameplate {
    grid-area: name;
    align-self: end;
  }

  .game-screen .rating-row > strong {
    grid-area: ovr;
    align-self: center;
    justify-self: end;
    font-size: clamp(3.45rem, 16vw, 4.65rem);
  }

  .game-screen .rating-row p {
    margin-bottom: 1px;
    font-size: clamp(1.9rem, 9.4vw, 3rem);
  }

  .game-screen .rating-row span {
    font-size: 0.88rem;
  }

  .game-screen .card-identity-row {
    grid-area: identity;
    gap: 6px;
  }

  .value-pill,
  .social-identity span,
  .social-identity b,
  .social-identity em,
  .social-chip {
    padding: 4px 8px;
  }

  .game-screen .stat-grid {
    grid-area: stats;
    gap: 6px;
  }

  .game-screen .stat-grid div {
    min-height: 44px;
    padding: 6px;
  }

  .game-screen .stat-grid span {
    font-size: 0.7rem;
  }

  .game-screen .stat-grid strong {
    font-size: 1.12rem;
  }

  .game-screen .national-card {
    grid-area: national;
  }

  .player-card .national-card {
    gap: 7px;
    padding: 7px 8px;
  }

  .player-card .national-card dd {
    font-size: 0.95rem;
  }

  .game-screen .trophy-strip {
    grid-area: trophies;
  }

  .player-card .trophy-case {
    min-height: 50px;
    gap: 6px;
    margin-inline: 9px;
    padding: 8px;
  }

  .game-screen .trophy-case.is-empty {
    display: none;
  }

  .tabs {
    margin-top: 10px;
  }

  .event-card {
    margin-top: 10px;
    padding: 14px;
  }

  .event-card h3 {
    font-size: 1.18rem;
    line-height: 1.12;
  }

  .event-card p:not(.panel-label) {
    font-size: 0.96rem;
    line-height: 1.32;
  }

  #eventChoices .decision-cta:not(.is-locked) {
    display: none;
  }

  #eventChoices .mobile-decision-choices {
    display: grid;
    margin-top: 12px;
  }

  #eventChoices .mobile-decision-choices.is-club-market {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #eventChoices .mobile-decision-choices:not(.is-club-market) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #eventChoices .mobile-decision-choices:not(.is-club-market) .decision-choice-card:nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .trophy-case.is-empty span,
  .trophy-badge {
    min-height: 32px;
  }

  .trophy-badge img {
    width: 28px;
    height: 28px;
  }

  .nightly-modal {
    padding: 10px;
  }

  .nightly-tv {
    width: min(96vw, 420px);
    min-height: 520px;
    aspect-ratio: auto;
    background-size: auto 100%;
  }

  .nightly-screen-header {
    top: 14px;
    left: 12px;
    right: 12px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .nightly-screen-header span {
    min-height: 40px;
    padding: 0 14px;
    font-size: 1rem;
  }

  .nightly-screen-header::after {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    font-size: 1.28rem;
  }

  .nightly-screen-header .icon-btn {
    grid-column: 2;
    grid-row: 1;
  }

  .nightly-screen {
    top: 126px;
    left: 12px;
    right: 12px;
    bottom: 48px;
    gap: 8px;
  }

  .nightly-screen li {
    grid-template-columns: 48px 1fr;
    gap: 12px;
    min-height: 76px;
    padding: 10px;
    font-size: 1rem;
    line-height: 1.16;
  }

  .nightly-screen li::before {
    width: 46px;
    height: 46px;
    font-size: 2rem;
  }

  .tv-card {
    min-height: 260px;
    padding: 12px 12px 34px;
    background-position: center;
  }

  .tv-card-header {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 0;
  }

  .tv-card-header span {
    width: fit-content;
    min-height: 34px;
    font-size: 0.82rem;
  }

  .tv-card-header b {
    justify-self: start;
    font-size: 1.02rem;
  }

  .tv-card ol,
  .tv-card-empty {
    width: 100%;
  }

  .tv-card li {
    grid-template-columns: 38px 1fr;
    min-height: 54px;
    font-size: 0.76rem;
  }

  .tv-card li::before {
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
  }

  .tv-card-ticker em,
  .nightly-ticker em {
    font-size: 0.68rem;
  }
}

@keyframes tickerCrawl {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 17px));
  }
}

.event-card {
  padding: 16px;
}

.mini-actions-card {
  margin-top: 12px;
  padding: 12px;
  background: rgba(80, 215, 255, 0.045);
}

.mini-action-grid {
  display: grid;
  gap: 8px;
}

.mini-action-card {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
}

.mini-action-card span {
  min-width: 0;
}

.mini-action-card b,
.mini-action-card small {
  display: block;
}

.mini-action-card b {
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.mini-action-card small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.22;
}

.mini-action-card em {
  min-width: 54px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(65, 213, 140, 0.14);
  color: var(--green);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

.mini-action-card.is-completed {
  border-color: rgba(65, 213, 140, 0.22);
  cursor: default;
  opacity: 0.68;
}

.mini-action-card.is-completed em {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.career-strip {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

#ageRail {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

#ageRail span {
  display: grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

#ageRail .is-done {
  background: rgba(65, 213, 140, 0.12);
  color: var(--green);
}

#ageRail .is-current {
  border-color: rgba(247, 200, 95, 0.75);
  background: rgba(247, 200, 95, 0.16);
  color: var(--gold);
}

.event-card p:not(.panel-label) {
  color: #c8d0cf;
  line-height: 1.42;
}

.choice-stack {
  margin-top: 14px;
}

.mobile-decision-choices {
  display: none;
}

.decision-choice-card {
  min-height: 198px;
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: left;
  overflow: hidden;
  padding: 12px;
  position: relative;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(65, 213, 140, 0.045)),
    var(--premium-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.decision-choice-card::before,
.club-choice-card::before,
.decision-result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: var(--premium-scan);
  opacity: 0;
  animation: premiumScan 7.5s linear infinite;
  pointer-events: none;
  transition: opacity 0.16s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.decision-choice-card > *,
.club-choice-card > *,
.decision-result-card > * {
  position: relative;
  z-index: 2;
}

.decision-choice-card:hover::before,
.decision-choice-card:focus-visible::before,
.club-choice-card:hover::before,
.club-choice-card:focus-visible::before,
.decision-result-card::before {
  opacity: 0.58;
}

.decision-choice-card img {
  width: 100%;
  aspect-ratio: 1.62;
  display: block;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.decision-choice-card b {
  color: var(--text);
  font-size: 1rem;
}

.choice-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice-effects em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 950;
}

.choice-effects .impact-up {
  background: rgba(65, 213, 140, 0.14);
  color: var(--green);
}

.choice-effects .impact-down {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
}

.choice-effects .impact-neutral {
  background: rgba(247, 200, 95, 0.14);
  color: var(--gold);
}

.decision-cta {
  position: relative;
  overflow: hidden;
  animation: pendingDecisionPulse 4.6s ease-in-out infinite;
}

.decision-cta.is-locked {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border-color: var(--line);
  animation: none;
}

.decision-cta.is-locked::after {
  display: none;
}

.decision-lock-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.decision-cta::after {
  content: "";
  position: absolute;
  inset: -40% -22%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.58) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: pendingDecisionShine 4.6s ease-in-out infinite;
  pointer-events: none;
}

.decision-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.decision-modal[hidden] {
  display: none;
}

.decision-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.decision-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 4, 5, 0.72);
}

.decision-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(78vh, 680px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  padding: 14px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--premium-border);
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 0%, rgba(65, 213, 140, 0.14), transparent 32%),
    linear-gradient(142deg, rgba(65, 213, 140, 0.09), rgba(80, 215, 255, 0.045) 42%, rgba(247, 200, 95, 0.045)),
    var(--premium-panel);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.52), 0 0 42px rgba(65, 213, 140, 0.08);
  transform: scale(0.97);
  transition: transform 0.18s ease;
}

.decision-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--premium-scan);
  opacity: 0.44;
  animation: premiumScan 8.5s linear infinite;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.decision-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 26%, rgba(255, 255, 255, 0.055) 45%, transparent 62%);
  transform: translateX(-78%);
  animation: premiumPanelShine 7s ease-in-out infinite;
  pointer-events: none;
}

.decision-sheet > * {
  position: relative;
  z-index: 1;
}

.decision-modal.is-open .decision-sheet {
  transform: scale(1);
}

.player-sheet {
  width: min(100%, 460px);
  grid-template-rows: auto minmax(0, 1fr);
}

.decision-sheet-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.decision-sheet-header h3 {
  margin-bottom: 0;
}

.decision-sheet-header .icon-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  font-size: 1.35rem;
}

.decision-sheet-body {
  margin: 10px 0 12px;
  color: #c8d0cf;
  line-height: 1.38;
}

.decision-sheet-choices {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.decision-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.decision-result-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  opacity: 0;
  animation: decisionResultReveal 0.42s ease forwards;
  animation-delay: var(--result-delay, 0s);
}

.decision-result-card span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-result-card strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.08;
}

.decision-result-card.up strong {
  color: var(--green);
}

.decision-result-card.down strong {
  color: var(--danger);
}

.decision-result-card.gold strong {
  color: var(--gold);
}

.decision-result-continue {
  grid-column: 1 / -1;
}

.decision-result-continue:disabled {
  cursor: wait;
  filter: grayscale(0.45);
  opacity: 0.58;
}

.cup-celebration {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  animation: cupCelebrationExit 2.45s ease forwards;
}

.cup-spotlight {
  position: absolute;
  width: min(78vw, 520px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(247, 200, 95, 0.32), rgba(65, 213, 140, 0.13) 42%, transparent 70%);
  filter: blur(2px);
  animation: cupSpotlightPop 2.1s ease forwards;
}

.cup-celebration-card {
  position: relative;
  z-index: 2;
  width: min(82vw, 360px);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 18px 20px;
  text-align: center;
  border: 1px solid rgba(247, 200, 95, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 12%, rgba(247, 200, 95, 0.2), transparent 44%),
    rgba(8, 13, 14, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.54), 0 0 64px rgba(247, 200, 95, 0.18);
  transform-origin: 50% 84%;
  animation: cupCardPop 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cup-celebration-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cup-celebration-card img {
  width: min(54vw, 210px);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 28px rgba(247, 200, 95, 0.2));
  animation: cupImageFloat 1.6s ease-in-out infinite;
}

.cup-celebration-card h4 {
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.05;
}

.cup-celebration-card p {
  margin: 0;
  color: #d8dfdd;
  font-size: 0.92rem;
  line-height: 1.28;
}

.cup-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cup-confetti i {
  position: absolute;
  top: -24px;
  left: var(--confetti-x);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--green);
  opacity: 0;
  transform: translateY(-20px) rotate(0deg);
  animation: confettiDrop 1.65s cubic-bezier(0.13, 0.74, 0.44, 1) var(--confetti-delay) forwards;
}

.cup-confetti i:nth-child(3n) {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
}

.cup-confetti i:nth-child(3n + 1) {
  background: var(--cyan);
}

.cup-confetti i:nth-child(4n) {
  background: #ffffff;
}

@keyframes decisionCardDeal {
  from {
    opacity: 0;
    transform: translateY(34px) rotateX(58deg) rotateZ(-4deg) scale(0.86);
  }

  68% {
    opacity: 1;
    transform: translateY(-5px) rotateX(-7deg) rotateZ(1deg) scale(1.02);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0) rotateZ(0) scale(1);
  }
}

@keyframes decisionResultReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cupCelebrationExit {
  0%,
  76% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes cupCardPop {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.58) rotate(-6deg);
  }

  18% {
    opacity: 1;
    transform: translateY(-12px) scale(1.08) rotate(2deg);
  }

  32%,
  74% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-18px) scale(0.92);
  }
}

@keyframes cupImageFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes cupSpotlightPop {
  0% {
    opacity: 0;
    transform: scale(0.52);
  }

  20%,
  80% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes confettiDrop {
  0% {
    opacity: 0;
    transform: translate3d(-12px, -30px, 0) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(18px, 104vh, 0) rotate(460deg);
  }
}

@keyframes pendingDecisionPulse {
  0%,
  68%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }

  78% {
    border-color: rgba(65, 213, 140, 0.52);
    box-shadow: 0 0 0 1px rgba(65, 213, 140, 0.12), 0 0 26px rgba(80, 215, 255, 0.12);
  }
}

@keyframes pendingDecisionShine {
  0%,
  62% {
    transform: translateX(-120%);
  }

  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes premiumScan {
  to {
    --scan-angle: 360deg;
  }
}

@keyframes premiumPanelShine {
  0%,
  48% {
    transform: translateX(-82%);
    opacity: 0;
  }

  62% {
    opacity: 1;
  }

  82%,
  100% {
    transform: translateX(82%);
    opacity: 0;
  }
}

@keyframes playerCardAura {
  0%,
  100% {
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 32px color-mix(in srgb, var(--card-edge) 20%, transparent);
  }

  50% {
    box-shadow: 0 30px 78px rgba(0, 0, 0, 0.6), 0 0 58px color-mix(in srgb, var(--card-edge) 38%, transparent);
  }
}

.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--text);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
}

.social-chip.friend {
  background: rgba(65, 213, 140, 0.14);
  color: var(--green);
}

.social-chip.rival {
  background: rgba(255, 107, 107, 0.14);
  color: var(--danger);
}

.social-chip.captain {
  background: rgba(247, 200, 95, 0.14);
  color: var(--gold);
}

.club-choice-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 86px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas: "badge copy";
  align-items: center;
  justify-items: stretch;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 58% 50%, rgba(65, 213, 140, 0.14), transparent 38%),
    var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
}

.club-choice-card .club-badge {
  grid-area: badge;
}

.club-choice-copy {
  grid-area: copy;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.club-choice-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.club-choice-card b {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-choice-copy > span {
  color: #cfd7d5;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.15;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.club-choice-card .social-chip {
  grid-area: social;
  justify-self: end;
  max-width: 104px;
  text-align: center;
}

.choice-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.choice-main b {
  color: var(--text);
  overflow-wrap: anywhere;
}

.choice-effect {
  color: var(--muted);
  font-weight: 950;
  white-space: nowrap;
}

.choice-effect.impact-up {
  color: var(--green);
}

.choice-effect.impact-down {
  color: var(--danger);
}

.choice-effect.impact-neutral {
  color: var(--gold);
}

.ranking-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: ranking;
}

.ranking-list li,
.feed-list article,
.timeline article,
.club-gallery article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ranking-list li {
  counter-increment: ranking;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
  overflow: hidden;
}

.ranking-row {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 11px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ranking-row::before {
  content: counter(ranking) ".";
  color: var(--text);
  font-weight: 950;
}

.ranking-row:hover,
.ranking-row:focus-visible {
  background: rgba(255, 255, 255, 0.045);
}

.ranking-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list .self {
  border-color: rgba(247, 200, 95, 0.58);
}

.ranking-list .self span {
  display: grid;
  gap: 3px;
}

.ranking-list .self em {
  color: var(--green);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
}

.ranking-list .is-updating-up {
  border-color: rgba(65, 213, 140, 0.86);
  background:
    linear-gradient(90deg, rgba(65, 213, 140, 0.22), rgba(65, 213, 140, 0.04)),
    var(--surface);
  animation: rankingLift 0.92s ease both;
}

.ranking-list .is-updating-up b {
  color: var(--green);
  animation: numberPop 0.18s linear infinite;
}

.ranking-list .is-updating-down {
  border-color: rgba(255, 107, 107, 0.82);
  background:
    linear-gradient(90deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.04)),
    var(--surface);
  animation: rankingDrop 0.92s ease both;
}

.ranking-list .is-updating-down b,
.ranking-list .is-updating-down em {
  color: var(--danger);
}

.ranking-list .is-updating-down b {
  animation: numberPop 0.18s linear infinite;
}

.feed-title {
  margin-top: 22px;
}

.player-profile {
  overflow: auto;
  padding: 4px 0 0;
}

.player-profile-card {
  --card-edge: rgba(146, 119, 55, 0.9);
  --card-edge-soft: rgba(247, 200, 95, 0.26);
  --card-glow: rgba(247, 200, 95, 0.16);
  --card-ink: #071012;
  position: relative;
  isolation: isolate;
  padding: 1px;
  border: 1px solid color-mix(in srgb, var(--card-edge) 72%, transparent);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% -4%, var(--card-glow), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 34% 76%, rgba(0, 0, 0, 0.38)),
    var(--card-ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 40px color-mix(in srgb, var(--card-edge) 28%, transparent);
  overflow: hidden;
}

.player-profile-card::before,
.player-profile-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--card-edge) 46%, transparent);
  border-radius: inherit;
  pointer-events: none;
}

.player-profile-card::after {
  inset: 0;
  border-color: transparent;
  background:
    linear-gradient(118deg, transparent 0 25%, rgba(255, 255, 255, 0.055) 31%, transparent 39%),
    repeating-linear-gradient(132deg, transparent 0 34px, color-mix(in srgb, var(--card-edge) 20%, transparent) 35px 36px),
    radial-gradient(circle at 72% 18%, var(--card-glow), transparent 28%);
  opacity: 0.38;
}

.player-profile-card[data-tier="bronze"] {
  --card-edge: #a66f43;
  --card-edge-soft: rgba(166, 111, 67, 0.24);
  --card-glow: rgba(166, 111, 67, 0.14);
}

.player-profile-card[data-tier="silver"] {
  --card-edge: #d5dbe0;
  --card-edge-soft: rgba(213, 219, 224, 0.24);
  --card-glow: rgba(184, 216, 229, 0.16);
}

.player-profile-card[data-tier="gold"] {
  --card-edge: #f7c85f;
  --card-edge-soft: rgba(247, 200, 95, 0.28);
  --card-glow: rgba(247, 200, 95, 0.2);
}

.player-profile-card[data-tier="special"],
.player-profile-card[data-tier="legend"] {
  --card-edge: #f7c85f;
  --card-edge-soft: rgba(80, 215, 255, 0.34);
  --card-glow: rgba(247, 200, 95, 0.3);
  animation: playerCardAura 5.8s ease-in-out infinite;
}

.player-profile-card[data-tier="legend"] {
  --card-edge: #fff2a8;
  --card-glow: rgba(255, 242, 168, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62), 0 0 54px rgba(247, 200, 95, 0.34);
}

.player-profile-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at 82% 9%, color-mix(in srgb, var(--card-edge) 18%, transparent), transparent 24%),
    radial-gradient(circle at 24% 22%, rgba(65, 213, 140, 0.11), transparent 26%),
    linear-gradient(155deg, rgba(8, 15, 16, 0.8), rgba(5, 10, 12, 0.95) 58%, rgba(2, 6, 8, 0.98));
}

.player-profile-card-inner::before {
  content: "";
  position: absolute;
  inset: 54px 70px auto;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 54%),
    radial-gradient(circle, var(--card-glow), transparent 62%);
  filter: blur(1px);
  opacity: 0.74;
  pointer-events: none;
}

.player-profile-card-inner::after {
  content: "";
  position: absolute;
  inset: 24px;
  background:
    linear-gradient(125deg, transparent 10%, color-mix(in srgb, var(--card-edge) 42%, transparent) 10.5% 10.8%, transparent 11.3% 41%, color-mix(in srgb, var(--card-edge) 34%, transparent) 41.4% 41.8%, transparent 42.3%),
    radial-gradient(circle at 82% 35%, color-mix(in srgb, var(--card-edge) 20%, transparent), transparent 18%);
  opacity: 0.42;
  pointer-events: none;
}

.player-profile-hero,
.player-profile-identity,
.player-profile-stage,
.player-profile-chips,
.player-profile-stats,
.player-profile-section,
.player-profile-trophies {
  position: relative;
  z-index: 1;
}

.player-profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.player-profile-identity {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.player-profile-rank {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--card-edge) 44%, transparent);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(248, 250, 247, 0.76);
  font-size: 0.78rem;
  font-weight: 950;
}

.player-profile-club-badge {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
}

.player-profile-club-badge .club-badge {
  width: 100%;
  height: 100%;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.player-profile-club-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-profile-section span,
.player-profile-section p {
  margin: 0;
  color: rgba(248, 250, 247, 0.68);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.3;
}

.player-profile-stage {
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(110px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.player-profile-rating {
  min-height: 128px;
  display: grid;
  align-content: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--card-edge) 32%, transparent);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.player-profile-rating strong {
  display: block;
  color: var(--card-edge);
  font-size: clamp(3.6rem, 13vw, 5.1rem);
  font-weight: 950;
  line-height: 0.84;
  letter-spacing: 0;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.52);
}

.player-profile-rating span {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(1.2rem, 5vw, 1.7rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

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

.player-profile-facts article {
  min-height: 60px;
  display: grid;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--card-edge) 26%, transparent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.player-profile-facts span {
  display: block;
  color: var(--card-edge);
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.player-profile-facts strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.player-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.player-profile-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #f5f8f6;
  font-size: 0.82rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.player-profile-chip.is-value,
.player-profile-chip.is-code {
  color: var(--cyan);
  background: rgba(80, 215, 255, 0.14);
}

.player-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.player-profile-stats article {
  min-height: 70px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.player-profile-stats span {
  color: rgba(248, 250, 247, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.player-profile-stats strong {
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
}

.player-profile-section,
.player-profile-trophies {
  padding: 13px;
  border: 1px solid rgba(80, 215, 255, 0.32);
  border-radius: 10px;
  background: rgba(0, 21, 29, 0.44);
}

.player-profile-section strong {
  display: block;
  margin: 4px 0 4px;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.08;
}

.player-profile-trophies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.player-profile-club {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 0.98rem;
}

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

.empty-trophy-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.feed-list {
  display: grid;
  gap: 8px;
}

.timeline {
  display: grid;
  gap: 3px;
}

.timeline-head,
.timeline-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 40px 34px 34px 34px;
  gap: 4px;
  align-items: center;
}

.timeline-head {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.friend-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(80, 215, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(80, 215, 255, 0.06);
}

.friend-card h3 {
  margin-bottom: 3px;
}

.friend-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.friend-code-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
}

.friend-code-form input {
  min-height: 44px;
  margin-top: 0;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.friend-code-form .small-btn {
  min-height: 44px;
}

.friend-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}

.friend-list article,
.suggestion-list article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(7, 10, 12, 0.34);
  padding: 8px 10px;
}

.friend-list strong {
  display: block;
  font-size: 0.78rem;
}

.friend-list span,
.suggestion-list span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.suggestion-list:empty {
  display: none;
}

.friend-list .is-empty {
  background: transparent;
  border-style: dashed;
}

.feed-list article,
.timeline article {
  padding: 12px;
}

.timeline article {
  padding: 6px 8px;
}

.feed-list p,
.timeline p {
  margin-bottom: 2px;
}

.feed-list span,
.timeline span {
  color: var(--muted);
  font-size: 0.72rem;
}

.timeline-row p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
  line-height: 1.05;
}

.timeline-row > div:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.timeline-row .club-badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.timeline-row .club-badge img {
  padding: 2px;
}

.timeline-club-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row .timeline-pending {
  color: var(--muted);
}

.timeline-choice-dot {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
}

.timeline-trophies {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.timeline-trophy {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(247, 200, 95, 0.34);
  border-radius: 6px;
  background: rgba(247, 200, 95, 0.1);
}

.timeline-trophy img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.3));
}

.timeline-trophy b {
  display: none;
}

.timeline-trophy em {
  position: absolute;
  right: -5px;
  bottom: -5px;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #050607;
  color: var(--gold);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 950;
}

.timeline-trophy.is-missing {
  width: auto;
  min-width: 24px;
  padding: 0 5px;
}

.timeline-trophy.is-missing b {
  display: block;
  max-width: 72px;
  overflow: hidden;
  color: var(--gold);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.age-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--green);
  color: #04100d;
  font-size: 0.86rem;
  font-weight: 950;
}

.legacy-grid div {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.legacy-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 850;
}

.legacy-grid strong {
  display: block;
  margin: 3px 0 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 900;
}

.timeline-row > strong {
  color: var(--text);
  font-size: 0.78rem;
  text-align: center;
}

.ovr-pill {
  justify-self: center;
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 7px;
  background: #c8781b;
  color: #fff;
  font-size: 0.76rem;
  text-align: center;
}

.ovr-pill.is-silver {
  background: #8390a2;
}

.ovr-pill.is-gold {
  background: #f3c318;
  color: #141008;
}

.suggestion-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(247, 200, 95, 0.16);
  border-radius: var(--radius);
  background: rgba(247, 200, 95, 0.055);
}

.suggestion-card textarea {
  width: 100%;
  min-height: 74px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 10, 12, 0.84);
  color: var(--text);
  padding: 10px;
  font: inherit;
  font-size: 0.86rem;
}

.suggestion-card .small-btn {
  width: 100%;
  margin-top: 8px;
}

.suggestion-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.suggestion-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.suggestion-list p {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.3;
}

.timeline-row.is-current {
  border-color: rgba(247, 200, 95, 0.62);
  background:
    linear-gradient(90deg, rgba(247, 200, 95, 0.13), rgba(247, 200, 95, 0.03)),
    var(--surface);
}

.timeline-row.is-future {
  opacity: 0.62;
}

.timeline-row.is-future .age-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.timeline-empty-stat {
  justify-self: center;
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: rgba(247, 200, 95, 0.34);
}

.final-card {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 22px 22px 28px 28px;
}

.final-card .card-topline {
  min-height: 34px;
  padding: 10px 12px 0;
}

.final-card .rating-row {
  min-height: 190px;
  padding: 8px 12px 0;
}

.final-card .rating-row > strong {
  font-size: clamp(4.8rem, 22vw, 7rem);
}

.final-card .rating-row p {
  font-size: clamp(2.45rem, 13vw, 4.6rem);
}

.final-card .rating-row span {
  font-size: clamp(0.98rem, 4vw, 1.25rem);
}

.final-card .legacy-grid,
.final-card .trophy-strip {
  position: relative;
  z-index: 1;
  margin-inline: 12px;
}

.final-card .trophy-case {
  min-height: 66px;
  padding: 8px;
}

.retire-summary {
  display: grid;
  gap: 12px;
}

.retire-summary .final-card,
.retire-summary .final-share {
  margin: 0;
}

.retire-summary .final-share {
  order: -1;
  position: sticky;
  bottom: 12px;
  z-index: 2;
  border-color: rgba(65, 213, 140, 0.42);
  background:
    linear-gradient(135deg, rgba(65, 213, 140, 0.18), rgba(80, 215, 255, 0.1)),
    rgba(10, 28, 24, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}

.retire-summary .final-share .share-actions {
  grid-template-columns: 1fr;
  min-width: 0;
}

.retire-stage {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(247, 200, 95, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(247, 200, 95, 0.18), rgba(80, 215, 255, 0.055)),
    radial-gradient(circle at 12% 10%, rgba(65, 213, 140, 0.2), transparent 36%),
    var(--surface);
}

.retire-stage-copy h3 {
  margin-bottom: 5px;
  font-size: 1.36rem;
  line-height: 1.08;
}

.retire-stage-copy p:not(.panel-label) {
  margin: 0;
  color: #d3dcda;
  font-size: 0.86rem;
  font-weight: 800;
}

.retire-stage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.retire-stage-stats div {
  min-height: 62px;
  display: grid;
  align-content: center;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.retire-stage-stats span,
.retire-best-club small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.retire-stage-stats strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 950;
}

.retire-best-club {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(65, 213, 140, 0.22);
  border-radius: 7px;
  background: rgba(65, 213, 140, 0.075);
}

.retire-best-club span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.retire-best-club strong,
.retire-best-club b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retire-best-club strong {
  color: var(--text);
  font-size: 1rem;
}

.retire-best-club b {
  color: #d2dbd9;
  font-size: 0.76rem;
}

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

.club-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding-bottom: 96px;
}

.club-gallery article {
  position: relative;
  min-height: 148px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.22)),
    linear-gradient(145deg, rgba(65, 213, 140, 0.12), rgba(80, 215, 255, 0.08));
}

.club-gallery .club-badge {
  margin-bottom: auto;
}

.club-gallery strong {
  margin-bottom: 14px;
  font-size: 1rem;
}

.club-gallery article.has-title .club-gallery-stats {
  max-width: calc(100% - 104px);
}

.club-gallery span {
  color: #d5dbda;
  font-size: 0.8rem;
  font-weight: 800;
}

@media (min-width: 760px) {
  body {
    padding: 24px;
  }

  .app-shell {
    min-height: calc(100vh - 48px);
    border: 1px solid var(--line);
    border-radius: 18px;
  }
}

@media (min-width: 980px) {
  body {
    height: 100vh;
    padding: 12px;
    overflow: hidden;
  }

  .app-shell {
    width: min(100%, 1180px);
    height: calc(100vh - 24px);
    min-height: 0;
    overflow: hidden;
  }

  .hero-screen.is-active {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 360px;
    grid-template-rows: auto 1fr auto;
    column-gap: 48px;
    min-height: calc(100vh - 56px);
    padding: 28px;
  }

  .hero-copy {
    grid-column: 1;
    align-self: end;
    padding-top: 0;
    max-width: 620px;
  }

  .choice-panel {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: end;
  }

  .setup-screen.is-active {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: calc(100vh - 56px);
    padding: 28px 22px;
  }

  .setup-screen .compact-header {
    margin-bottom: 16px;
  }

  .setup-form {
    grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.2fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: 34px;
  }

  .setup-form h3 {
    text-align: center;
  }

  .player-preview {
    min-height: 285px;
  }

  .country-grid {
    max-height: 410px;
    overflow: auto;
    padding: 4px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
  }

  .pitch-picker {
    min-height: 356px;
  }

  .setup-screen .bottom-actions {
    position: static;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    background: none;
  }

  .setup-screen .bottom-actions .ghost-btn {
    width: 128px;
  }

  .setup-screen .bottom-actions .primary-btn {
    width: 340px;
    margin: 0;
  }

  .game-screen.is-active {
    display: grid;
    grid-template-columns: 340px minmax(360px, 1fr) 320px;
    grid-template-rows: auto auto 1fr;
    gap: 10px 14px;
    height: 100%;
    min-height: 0;
    padding: 18px;
    overflow: hidden;
  }

  .game-header {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .game-screen .player-card {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding: 13px;
  }

  .game-screen .player-card-inner {
    grid-template-columns: minmax(0, 1fr) 118px;
    grid-template-areas:
      "topline topline"
      "name name"
      "ovr stats"
      "identity identity"
      "national national"
      "trophies trophies";
    gap: 6px 12px;
    padding: 12px 18px 18px;
  }

  .game-screen .card-topline {
    grid-area: topline;
    min-height: 34px;
  }

  .game-screen .rating-row {
    display: contents;
  }

  .game-screen .card-nameplate {
    grid-area: name;
  }

  .game-screen #cardOvr {
    grid-area: ovr;
    align-self: end;
  }

  .game-screen .stat-grid {
    grid-area: stats;
    align-self: end;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
  }

  .game-screen .card-identity-row {
    grid-area: identity;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .game-screen .national-card {
    grid-area: national;
  }

  .game-screen .trophy-strip {
    grid-area: trophies;
  }

  .game-screen .tabs {
    display: none;
  }

  .game-screen .tab-panel {
    display: block;
  }

  .game-screen [data-panel="today"] {
    grid-column: 1;
    grid-row: 3;
    display: grid;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
  }

  .game-screen [data-panel="today"] .career-strip {
    display: none;
  }

  .daily-news,
  .mini-actions-card {
    margin: 0;
  }

  .mini-actions-today {
    display: none;
  }

  .mini-actions-rail {
    display: block;
    margin: 8px 0;
  }

  .tv-card-header {
    padding: 0;
  }

  .tv-card li {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .choice-stack.is-club-market {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 8px;
  }

  .choice-stack:not(.is-club-market) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .choice-stack:not(.is-club-market) .decision-choice-card:nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .choice-stack:not(.is-club-market) .decision-choice-card {
    min-height: 138px;
    padding: 9px;
  }

  .choice-stack:not(.is-club-market) .decision-choice-card img {
    aspect-ratio: 2.45;
  }

  #eventChoices {
    grid-template-columns: 1fr;
  }

  #eventChoices .decision-cta {
    min-height: 44px;
  }

  .choice-stack.is-club-market .club-choice-card:nth-child(3):last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .game-screen [data-panel="world"] {
    grid-column: 3;
    grid-row: 2 / 4;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
  }

  .game-screen [data-panel="history"] {
    grid-column: 2;
    grid-row: 2 / 4;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .game-screen.is-express {
    grid-template-columns: 340px minmax(360px, 1fr);
  }

  .game-screen.is-express [data-panel="world"] {
    display: none;
  }

  .game-screen.is-express [data-panel="history"] {
    grid-column: 2;
  }

  .timeline {
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding-right: 2px;
  }

  .event-card {
    padding: 12px;
  }

  .mini-actions-card {
    padding: 10px;
  }

  .mini-action-grid {
    gap: 6px;
  }

  .mini-action-card {
    min-height: 52px;
    padding: 7px 8px;
  }

  .mini-action-card b {
    margin-bottom: 2px;
    font-size: 0.82rem;
  }

  .mini-action-card small {
    font-size: 0.68rem;
  }

  .event-card p:not(.panel-label) {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.28;
  }

  .event-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
  }

  .game-screen .player-card .rating-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    min-height: 158px;
    margin-top: 0;
  }

  .game-screen .player-card .rating-row > strong {
    min-width: 0;
    font-size: clamp(4rem, 16vw, 4.8rem);
  }

  .game-screen .player-card .rating-row p {
    margin-bottom: 2px;
    font-size: clamp(1.85rem, 8vw, 2.55rem);
    white-space: nowrap;
  }

  .game-screen .player-card .rating-row span {
    font-size: 0.98rem;
  }

  .game-screen .player-card .value-pill {
    min-height: 30px;
    margin: 0;
    padding: 4px 10px;
  }

  .game-screen .player-card .stat-grid div {
    min-height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .game-screen .player-card .stat-grid div::before {
    display: none;
  }

  .game-screen .player-card .stat-grid span {
    color: rgba(248, 250, 247, 0.62);
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .game-screen .player-card .stat-grid strong {
    color: var(--card-edge);
    font-size: 1.28rem;
  }

  .trophy-case {
    min-height: 58px;
    padding: 9px;
  }

  .trophy-case.is-empty span,
  .trophy-badge {
    min-height: 38px;
  }

  .trophy-badge img {
    width: 32px;
    height: 32px;
  }

  .national-card {
    gap: 7px;
    margin-top: 8px;
    padding: 8px;
  }

  .club-choice-card {
    min-height: 76px;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-areas: "badge copy";
    padding: 8px;
    gap: 8px;
  }

  .club-badge.is-large {
    align-self: center;
    width: 50px;
    height: 50px;
  }

  .club-choice-card b {
    font-size: 0.9rem;
  }

  .club-choice-copy > span {
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .ranking-row,
  .feed-list article {
    padding: 8px 10px;
  }

  .feed-title {
    margin-top: 10px;
  }

  .feed-list article:nth-child(n + 4) {
    display: none;
  }

  .friend-card {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
  }

  .suggestion-card {
    margin-top: 10px;
    padding: 10px;
  }

  .suggestion-card textarea {
    min-height: 54px;
  }

  .retire-screen.is-active {
    display: grid;
    grid-template-columns: minmax(310px, 0.82fr) minmax(480px, 1.35fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 16px;
    padding: 24px;
    overflow: hidden;
  }

  .retire-screen .game-header {
    grid-column: 1 / -1;
  }

  .retire-stage {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 380px 270px;
    align-items: center;
    margin-bottom: 0;
  }

  .retire-stage-copy h3 {
    font-size: 1.55rem;
  }

  .retire-summary {
    grid-column: 1;
    grid-row: 3;
    grid-template-rows: minmax(0, auto) auto;
    align-self: start;
    min-height: 0;
  }

  .club-gallery {
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    overflow: auto;
    padding-bottom: 0;
  }

  .retire-screen .final-share {
    order: 0;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
    align-items: stretch;
    align-self: start;
    padding: 14px;
  }

  .retire-screen .final-share h3 {
    font-size: 1.06rem;
  }

  .retire-screen .final-share p:not(.panel-label) {
    max-width: 34ch;
    font-size: 0.84rem;
  }

  .retire-screen .final-share .share-actions {
    align-self: stretch;
  }

  .retire-screen .final-share .share-actions .primary-btn,
  .retire-screen .final-share .share-actions .small-btn {
    min-height: 46px;
  }

  .retire-screen .final-card {
    align-self: start;
    max-width: 390px;
    justify-self: center;
  }

  .retire-screen .final-card .card-topline {
    min-height: 32px;
    padding-top: 6px;
    font-size: 0.8rem;
  }

  .retire-screen .final-card .rating-row {
    min-height: 150px;
    gap: 5px;
  }

  .retire-screen .final-card .rating-row > strong {
    font-size: clamp(4.5rem, 7.4vw, 6.05rem);
  }

  .retire-screen .final-card .rating-row p {
    margin-bottom: 2px;
    font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  }

  .retire-screen .final-card .rating-row span {
    font-size: 0.9rem;
  }

  .retire-screen .final-card .legacy-grid {
    gap: 6px;
    margin-top: 6px;
  }

  .retire-screen .final-card .legacy-grid div {
    padding: 7px;
  }

  .retire-screen .final-card .legacy-grid strong {
    font-size: 0.82rem;
    line-height: 1.12;
  }

  .retire-screen .final-card .trophy-case {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 54px;
  }

  .retire-screen .final-card .trophy-badge {
    min-height: 38px;
  }

  .retire-screen .final-card .trophy-badge img {
    width: 34px;
    height: 34px;
  }

  .retire-screen .final-card::after {
    inset: 8px;
  }

  .retire-screen .final-card::before {
    inset: 16px;
  }
}

@media (min-width: 980px) {
  .decision-modal {
    padding: 32px;
  }

  .decision-scrim {
    background:
      linear-gradient(135deg, rgba(1, 4, 5, 0.82), rgba(3, 16, 14, 0.74)),
      rgba(1, 4, 5, 0.76);
    backdrop-filter: blur(8px);
  }

  .decision-sheet {
    width: min(86vw, 920px);
    max-height: min(82vh, 720px);
    padding: 22px;
    border-color: var(--premium-border);
    background:
      radial-gradient(circle at 16% 0%, rgba(65, 213, 140, 0.15), transparent 32%),
      linear-gradient(135deg, rgba(65, 213, 140, 0.1), rgba(80, 215, 255, 0.055) 44%, rgba(247, 200, 95, 0.06)),
      var(--premium-panel);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 48px rgba(65, 213, 140, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(6px) scale(0.96);
  }

  .player-sheet {
    width: min(92vw, 510px);
    max-height: min(90vh, 820px);
  }

  .player-profile-card-inner {
    padding: 28px 24px 30px;
  }

  .decision-modal[data-choice-count="2"] .decision-sheet {
    width: min(76vw, 760px);
  }

  .decision-modal.is-open .decision-sheet {
    transform: translateY(0) scale(1);
  }

  .decision-sheet-header {
    align-items: center;
    margin-bottom: 4px;
  }

  .decision-sheet-header h3 {
    max-width: 720px;
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .decision-sheet-header .icon-btn {
    width: 48px;
    height: 48px;
  }

  .decision-sheet-body {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: 1.05rem;
  }

  .decision-sheet-choices,
  .decision-sheet-choices.is-club-market,
  .decision-sheet-choices:not(.is-club-market) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    perspective: 1100px;
    overflow: auto;
    padding: 2px;
  }

  .decision-modal[data-choice-count="2"] .decision-sheet-choices,
  .decision-modal[data-choice-count="2"] .decision-sheet-choices:not(.is-club-market) {
    grid-template-columns: repeat(2, minmax(260px, 360px));
    justify-content: center;
  }

  .choice-stack:not(.is-club-market).decision-sheet-choices .decision-choice-card:nth-child(3):last-child {
    grid-column: auto;
  }

  .decision-modal.is-open .decision-sheet-choices > button {
    animation: decisionCardDeal 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: 50% 88%;
    will-change: transform, opacity;
  }

  .decision-modal.is-open .decision-sheet-choices > button:nth-child(2) {
    animation-delay: 0.08s;
  }

  .decision-modal.is-open .decision-sheet-choices > button:nth-child(3) {
    animation-delay: 0.16s;
  }

  .decision-sheet-choices .decision-choice-card,
  .choice-stack.is-club-market.decision-sheet-choices .club-choice-card,
  .choice-stack:not(.is-club-market).decision-sheet-choices .decision-choice-card {
    min-height: 218px;
    padding: 14px;
    border-color: rgba(255, 255, 255, 0.13);
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.065), rgba(65, 213, 140, 0.055)),
      var(--premium-card);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  }

  .decision-sheet-choices .decision-choice-card:hover,
  .decision-sheet-choices .decision-choice-card:focus-visible,
  .decision-sheet-choices .club-choice-card:hover,
  .decision-sheet-choices .club-choice-card:focus-visible {
    border-color: rgba(65, 213, 140, 0.72);
    background:
      linear-gradient(160deg, rgba(65, 213, 140, 0.16), rgba(80, 215, 255, 0.09)),
      var(--premium-card);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(65, 213, 140, 0.12);
    transform: translateY(-5px) rotateX(2deg) rotateZ(-0.5deg);
  }

  .decision-sheet-choices .decision-choice-card img {
    aspect-ratio: 1.75;
  }

  .choice-stack:not(.is-club-market).decision-sheet-choices .decision-choice-card {
    align-content: center;
    justify-items: center;
    text-align: center;
  }

  .choice-stack:not(.is-club-market).decision-sheet-choices .decision-choice-card img {
    width: min(100%, 240px);
    aspect-ratio: 1.62;
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .choice-stack:not(.is-club-market).decision-sheet-choices .decision-choice-card b {
    font-size: 1.18rem;
    line-height: 1.08;
  }

  .choice-stack:not(.is-club-market).decision-sheet-choices .choice-effects {
    justify-content: center;
  }

  .choice-stack:not(.is-club-market).decision-sheet-choices .choice-effects em {
    min-height: 30px;
    font-size: 0.8rem;
  }

  .choice-stack.is-club-market.decision-sheet-choices .club-choice-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "copy";
    justify-items: center;
    align-content: center;
    text-align: center;
  }

  .choice-stack.is-club-market.decision-sheet-choices .club-badge.is-large {
    width: 86px;
    height: 86px;
    margin-bottom: 12px;
  }

  .choice-stack.is-club-market.decision-sheet-choices .club-choice-copy {
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .choice-stack.is-club-market.decision-sheet-choices .club-choice-card b {
    font-size: 1.18rem;
  }

  .choice-stack.is-club-market.decision-sheet-choices .club-choice-copy > span {
    min-height: 34px;
    align-items: start;
    font-size: 0.76rem;
    -webkit-line-clamp: 2;
  }

  .decision-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
  }

  .decision-result-card {
    min-height: 112px;
    padding: 16px;
    background:
      linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(65, 213, 140, 0.06)),
      var(--premium-card);
  }

  .decision-result-card strong {
    font-size: 1.28rem;
  }

  .cup-celebration-card {
    width: min(42vw, 430px);
    padding: 30px 24px 24px;
  }

  .cup-celebration-card img {
    width: min(28vw, 260px);
  }

  .cup-celebration-card h4 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decision-modal,
  .decision-sheet,
  .decision-sheet::before,
  .decision-sheet::after,
  .decision-modal.is-open .decision-sheet-choices > button,
  .decision-result-card,
  .decision-result-card::before,
  .decision-cta,
  .decision-cta::after,
  .decision-choice-card::before,
  .club-choice-card::before,
  .player-profile-card,
  .player-card::before,
  .stat-grid div::before,
  .cup-celebration,
  .cup-celebration-card,
  .cup-celebration-card img,
  .cup-spotlight,
  .cup-confetti i {
    animation: none;
    transition: none;
    opacity: 1;
  }

  .decision-sheet::after {
    opacity: 0;
  }

  .decision-sheet::before {
    opacity: 0.44;
  }

  .decision-result-card::before,
  .decision-choice-card:hover::before,
  .decision-choice-card:focus-visible::before,
  .club-choice-card:hover::before,
  .club-choice-card:focus-visible::before {
    opacity: 0.58;
  }

  .decision-choice-card::before,
  .club-choice-card::before {
    opacity: 0;
  }

  .player-card::before {
    opacity: 0.38;
  }

  .stat-grid div::before {
    opacity: 0.22;
  }

  .cup-confetti {
    display: none;
  }
}

@media (max-width: 620px) {
  .decision-modal {
    place-items: start center;
    padding: 10px;
    padding-top: 44px;
  }

  .decision-sheet {
    width: min(100%, 390px);
    max-height: min(86vh, 680px);
    padding: 12px;
    border-radius: 12px;
    background:
      radial-gradient(circle at 16% 0%, rgba(65, 213, 140, 0.14), transparent 32%),
      linear-gradient(142deg, rgba(65, 213, 140, 0.09), rgba(80, 215, 255, 0.045) 42%, rgba(247, 200, 95, 0.045)),
      rgba(10, 17, 18, 0.98);
  }

  .decision-sheet-header {
    gap: 10px;
  }

  .decision-sheet-header h3 {
    font-size: 1.28rem;
    line-height: 1.08;
  }

  .decision-sheet-header .icon-btn {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  .decision-sheet-body {
    margin: 8px 0 10px;
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .player-profile-card-inner {
    gap: 12px;
    padding: 14px;
  }

  .player-profile-hero {
    gap: 10px;
  }

  .player-profile-club-badge {
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  .player-profile-stage {
    grid-template-columns: 1fr;
  }

  .player-profile-rating {
    min-height: 104px;
  }

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

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

  .decision-sheet-choices {
    display: grid;
    gap: 8px;
    padding-right: 0;
  }

  .choice-stack.is-club-market.decision-sheet-choices .club-choice-card,
  .club-choice-card {
    min-height: 72px;
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-areas: "badge copy";
    gap: 8px;
    padding: 8px;
    background:
      radial-gradient(circle at 58% 50%, rgba(65, 213, 140, 0.1), transparent 38%),
      rgba(23, 27, 33, 0.96);
  }

  .choice-stack.is-club-market.decision-sheet-choices .club-badge.is-large,
  .club-choice-card .club-badge.is-large {
    width: 58px;
    height: 58px;
    border-radius: 10px;
  }

  .club-choice-copy {
    gap: 1px;
  }

  .club-choice-card small {
    font-size: 0.68rem;
  }

  .club-choice-card b {
    font-size: 0.98rem;
    line-height: 1.08;
  }

  .club-choice-copy > span {
    font-size: 0.7rem;
    line-height: 1.08;
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 370px) {
  .share-moment {
    grid-template-columns: 1fr;
  }

  .share-moment .share-btn {
    width: 100%;
  }

  .club-choice-card {
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-areas:
      "badge copy"
      "badge social";
  }

  .club-choice-card .social-chip {
    justify-self: start;
    max-width: 100%;
    min-height: 22px;
    margin-top: 2px;
    font-size: 0.66rem;
  }
}
