:root {
  --bg: #050505;
  --bg-2: #09090c;
  --surface: rgba(20, 20, 24, 0.88);
  --surface-2: rgba(28, 28, 33, 0.96);
  --surface-3: rgba(36, 36, 44, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6f8;
  --muted: #a0a7b5;
  --accent: #7cf15f;
  --accent-2: #8b5cf6;
  --accent-3: #ff4d9b;
  --accent-4: #25c2ff;
  --warning: #ffb86b;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 34px rgba(0, 0, 0, 0.26);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shell: min(1000px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.2), transparent 26%),
    radial-gradient(circle at bottom right, rgba(124, 241, 95, 0.14), transparent 24%),
    radial-gradient(circle at 50% 0%, rgba(255, 77, 155, 0.12), transparent 18%),
    linear-gradient(180deg, #050505 0%, #070709 48%, #080809 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 62%);
  opacity: 0.18;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.5rem;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin-top: 0;
}

.site-shell {
  width: var(--shell);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(24px);
  background: rgba(6, 6, 8, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: var(--shell);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark,
.app-logo {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(135deg, #8b5cf6 0%, #ff4d9b 46%, #7cf15f 100%);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-copy small {
  font-size: 0.72rem;
  color: #ffdbb9;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 0.96rem;
  line-height: 1.15;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: #d7d9e3;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.nav-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-switch a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.lang-switch a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff4d9b 0%, #8b5cf6 100%);
  box-shadow: 0 18px 30px rgba(255, 77, 155, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: #d6d8e3;
}

.btn-small {
  min-height: 36px;
  padding: 0.58rem 0.9rem;
  font-size: 0.92rem;
}

.hero {
  padding: 2rem 0 1.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hero-copy {
  padding: 1rem 0;
}

.hero-with-preview .hero-copy {
  padding-top: 1.4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f7dfb4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow.mini {
  margin-bottom: 0;
  padding: 0.3rem 0.6rem;
  font-size: 0.68rem;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero-lead,
.page-hero p,
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-lead {
  margin-top: 1rem;
  max-width: 58ch;
}

.hero-lead-compact {
  margin-top: 0.65rem;
  max-width: 66ch;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-phone {
  position: relative;
  min-height: 520px;
  padding: 1rem;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%),
    rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-phone::before,
.hero-phone::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-phone::before {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -50px;
  background: rgba(139, 92, 246, 0.22);
}

.hero-phone::after {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -30px;
  background: rgba(124, 241, 95, 0.18);
}

.phone-topbar,
.phone-brand-row,
.match-body,
.odds-row,
.toolbar,
.panel-header,
.stage-header,
.page-hero .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.phone-topbar {
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.4rem 0.2rem 1rem;
}

.phone-brand-row {
  margin-bottom: 1rem;
}

.phone-brand-row strong {
  flex: 1;
  font-size: 1.1rem;
}

.promo-card,
.match-card,
.score-card,
.hero-panel,
.card,
.stage-card,
.share-card,
.notice,
.toast,
.mobile-tabbar {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%), var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 26px;
  margin-bottom: 1rem;
  background:
    radial-gradient(circle at top right, rgba(255, 77, 155, 0.28), transparent 34%),
    radial-gradient(circle at bottom left, rgba(124, 241, 95, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.88), rgba(255, 77, 155, 0.68));
  overflow: hidden;
}

.promo-card h3 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.05;
}

.ball-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 20px rgba(0, 0, 0, 0.18);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mini-tile {
  padding: 0.85rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-tile strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1;
}

.mini-tile span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-tile.purple {
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.mini-tile.amber {
  box-shadow: inset 0 0 0 1px rgba(255, 184, 107, 0.22);
}

.mini-tile.blue {
  box-shadow: inset 0 0 0 1px rgba(37, 194, 255, 0.2);
}

.mini-tile.green {
  box-shadow: inset 0 0 0 1px rgba(124, 241, 95, 0.18);
}

.match-card {
  border-radius: 26px;
  padding: 1rem;
  background:
    radial-gradient(circle at top center, rgba(124, 241, 95, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(17, 32, 22, 0.98), rgba(14, 14, 16, 0.95));
}

.match-head {
  text-align: center;
  font-size: 0.78rem;
  color: #c5e6cb;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-body {
  justify-content: space-between;
  align-items: center;
}

.match-body > div {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  text-align: center;
  min-width: 68px;
}

.crest {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-time {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.odds-row {
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  font-variant-numeric: tabular-nums;
}

.odds-row strong {
  font-size: 1.18rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.score {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.score strong {
  display: block;
  font-size: 1rem;
  line-height: 1.15;
}

.score span {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding: 1.25rem 0 0;
}

.section-tight {
  padding-top: 0.8rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 0.7rem;
  max-width: 66ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

.card h3,
.card h2 {
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.1rem;
}

.card p,
.card li {
  color: #d2d6df;
  line-height: 1.65;
}

.card .meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f2c17d;
}

.mode-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mode-card p {
  color: #d7dbe4;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
}

.tag-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #eff2fb;
  font-size: 0.82rem;
}

.pill.neon {
  background: linear-gradient(135deg, rgba(124, 241, 95, 0.2), rgba(139, 92, 246, 0.14));
  border-color: rgba(124, 241, 95, 0.16);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 1rem;
}

.feature-card {
  min-height: 100%;
}

.accent-card {
  background: linear-gradient(180deg, rgba(255, 77, 155, 0.08), transparent 26%), var(--surface-2);
}

.step-list {
  display: grid;
  gap: 0.9rem;
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 77, 155, 0.25), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content {
  line-height: 1.72;
}

.content h2 + p,
.content p + h2,
.content p + p,
.content ul + p,
.content .table-wrap + p {
  margin-top: 1rem;
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 2.25rem;
  padding: 2rem 0 7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: 1rem;
}

.footer-brand {
  margin-bottom: 0.8rem;
}

.footer-grid h4 {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-grid a {
  color: #ccd0db;
}

.footer-grid a:hover {
  color: #fff;
}

.divider {
  margin: 1.1rem 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.page-hero {
  padding: 1.5rem 0 0.5rem;
}

.page-hero .breadcrumbs {
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumbs a {
  color: #fff;
}

.breadcrumbs span {
  color: var(--muted);
}

.panel {
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.panel + .panel {
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #eff2fb;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.input::placeholder,
.textarea::placeholder {
  color: #8d93a4;
}

.select option {
  background: #111;
  color: #fff;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.toolbar .spacer {
  flex: 1;
}

.toggle-group {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-group button {
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  color: var(--muted);
  background: transparent;
}

.toggle-group button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 77, 155, 0.28), rgba(139, 92, 246, 0.28));
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 1rem;
  align-items: start;
}

.game-stage {
  display: grid;
  gap: 1rem;
}

.stage-card {
  padding: 1.05rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%), var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.stage-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stage-header h3 {
  margin-bottom: 0.25rem;
  font-size: 1.08rem;
}

.stage-grid {
  display: grid;
  gap: 1rem;
}

.identity-badge {
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  background: rgba(124, 241, 95, 0.08);
  border: 1px solid rgba(124, 241, 95, 0.16);
  color: #d8f9d0;
  font-size: 0.88rem;
}

.draft-progress {
  display: grid;
  gap: 0.7rem;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7cf15f 0%, #ff4d9b 55%, #8b5cf6 100%);
}

.legend-view {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.legend-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(255, 77, 155, 0.9), rgba(139, 92, 246, 0.9));
  color: #fff;
  box-shadow: 0 14px 28px rgba(255, 77, 155, 0.12);
}

.legend-info {
  display: grid;
  gap: 0.55rem;
}

.legend-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.attribute-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.attribute,
.static-attribute {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.attribute strong,
.static-attribute strong {
  font-size: 1.1rem;
  line-height: 1;
}

.attribute span,
.static-attribute span {
  color: var(--muted);
  font-size: 0.84rem;
}

.attribute button {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.legend-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.draft-log {
  display: grid;
  gap: 0.7rem;
}

.draft-entry {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.draft-entry strong {
  font-size: 0.94rem;
}

.draft-entry span {
  color: var(--muted);
  white-space: nowrap;
}

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.timeline-year {
  width: 64px;
  min-height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(124, 241, 95, 0.14), rgba(37, 194, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-body strong {
  display: block;
  margin-bottom: 0.3rem;
}

.summary-grid,
.share-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.summary-box,
.share-meta div {
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-box strong,
.share-meta strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
}

.summary-box span,
.share-meta span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.result-title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.result-tier,
.big-number {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 241, 95, 0.18), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(124, 241, 95, 0.16);
  color: #ecffe5;
  font-weight: 800;
}

.share-card {
  padding: 1.05rem;
  border-radius: 26px;
}

.share-card h3 {
  margin: 0.6rem 0 0.85rem;
  font-size: 1.2rem;
}

.share-card .big-number {
  margin-bottom: 1rem;
}

.share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 320px;
  gap: 1rem;
  align-items: stretch;
}

.share-card-pro {
  min-height: 420px;
  padding: 1.3rem;
  overflow: hidden;
  border-color: #244254;
  background:
    radial-gradient(circle at 85% 8%, rgba(229, 22, 112, 0.18), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(240, 189, 45, 0.12), transparent 34%),
    linear-gradient(135deg, #0b1722, #0b2015);
}

.share-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #91a6b3;
  font-size: 0.78rem;
}

.share-card-top span {
  color: #f0bd2d;
  font-weight: 800;
}

.share-card-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
}

.share-ovr {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 26px;
  background: #e51670;
  color: #ffffff;
  font-size: 3.35rem;
  font-weight: 950;
  line-height: 0.9;
  box-shadow: 0 16px 34px rgba(229, 22, 112, 0.24);
}

.share-ovr small {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.share-card-pro h3 {
  margin: 0 0 0.55rem;
  color: #f5fbff;
  font-size: clamp(1.55rem, 4vw, 2.65rem);
}

.share-card-pro p {
  margin-top: 0.75rem;
  color: #9db0bf;
}

.share-card-pro .share-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.share-card-pro .share-meta div {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.share-path {
  margin-top: 1.1rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.share-path span {
  display: block;
  color: #f0bd2d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-path strong {
  display: block;
  margin-top: 0.35rem;
  color: #f5fbff;
  line-height: 1.45;
}

.share-actions-panel {
  padding: 1.15rem;
  border: 1px solid #244254;
  border-radius: 22px;
  background: #0b1722;
}

.share-actions-panel h2 {
  margin: 0 0 0.5rem;
}

.share-actions-panel p {
  color: #9db0bf;
  line-height: 1.55;
}

.share-actions-panel .toolbar {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.table th,
.table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0cf96;
  background: rgba(255, 255, 255, 0.04);
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.56rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: #d4d8e2;
}

.filter-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 77, 155, 0.2), rgba(139, 92, 246, 0.2));
  color: #fff;
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: #eef3ff;
  background: linear-gradient(135deg, rgba(255, 184, 107, 0.12), rgba(255, 77, 155, 0.08));
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 100;
  min-width: min(320px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 16px;
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(124, 241, 95, 0.22);
}

.toast-danger {
  border-color: rgba(255, 122, 138, 0.22);
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.mobile-tabbar {
  display: none;
}

.cards-space > * + * {
  margin-top: 1rem;
}

.article-card {
  padding: 1.2rem;
}

.article-card h2 {
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
}

.library-toolbar {
  margin-bottom: 1rem;
}

.speed-layout {
  display: grid;
  gap: 1rem;
}

.tips-stack {
  display: grid;
  gap: 0.85rem;
}

.tip-card {
  padding: 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tip-card h3 {
  margin-bottom: 0.45rem;
}

.result-card {
  background: linear-gradient(180deg, rgba(124, 241, 95, 0.05), transparent 22%), var(--surface-2);
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

@media (max-width: 1080px) {
  .hero-grid,
  .section-split,
  .game-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    min-height: auto;
  }

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

  .summary-grid,
  .share-meta,
  .attribute-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.35rem;
  }

  .nav.is-open {
    display: flex;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .hero {
    padding-top: 1.25rem;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .metric-grid,
  .score-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .attribute-grid,
  .summary-grid,
  .share-meta,
  .legend-view,
  .timeline-item,
  .promo-card,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .grid,
  .section-split,
  .game-layout {
    gap: 0.85rem;
  }

  .card-footer,
  .toolbar,
  .stage-header,
  .phone-brand-row,
  .match-body,
  .odds-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .identity-badge {
    width: 100%;
    text-align: center;
  }

  .draft-entry {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    position: fixed;
    left: 50%;
    bottom: 0.7rem;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 1rem));
    padding: 0.5rem;
    border-radius: 22px;
    z-index: 90;
    background: rgba(9, 9, 12, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    color: #aeb4c3;
    padding: 0.55rem 0.2rem;
    border-radius: 16px;
    font-size: 0.82rem;
  }

  .mobile-tabbar a span {
    font-size: 1.05rem;
    line-height: 1;
  }

  .mobile-tabbar a[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  .site-footer {
    padding-bottom: 8.8rem;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100vw - 1rem);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 13vw, 3rem);
  }

  .hero-lead,
  .page-hero p,
  .section-lead {
    font-size: 0.98rem;
  }

  .btn,
  .lang-switch a,
  .nav a,
  .toggle-group button {
    min-height: 40px;
  }

  .promo-card {
    padding: 0.9rem;
  }

  .ball-orb {
    width: 72px;
    height: 72px;
    font-size: 2rem;
  }

  .hero-phone {
    border-radius: 30px;
    padding: 0.85rem;
  }

  .site-header {
    position: sticky;
  }

  .site-footer {
    margin-top: 1.4rem;
  }

  .toast {
    right: 0.5rem;
    bottom: 5.8rem;
  }
}

/* Compact football-editorial game surface */
:root {
  --shell: min(1000px, calc(100vw - 2rem));
  --bg: #08100d;
  --bg-2: #0c1511;
  --surface: #101b16;
  --surface-2: #14211b;
  --surface-3: #1a2b23;
  --border: rgba(214, 232, 218, 0.12);
  --border-strong: rgba(214, 232, 218, 0.22);
  --accent: #87c95a;
  --accent-2: #d4a54b;
  --accent-3: #d77b62;
  --accent-4: #78aeb0;
  --warning: #e6b55c;
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 9px;
  --radius-sm: 6px;
}

body {
  background: #08100d;
}

body::before {
  display: none;
}

.site-header {
  background: rgba(8, 16, 13, 0.96);
  border-bottom-color: rgba(214, 232, 218, 0.1);
}

.brand-mark,
.app-logo {
  border-radius: 9px;
  background: #6fa94d;
  box-shadow: none;
}

.brand-copy small,
.eyebrow,
.card .meta,
.table th {
  color: #d4a54b;
}

.btn {
  border-radius: 7px;
  min-height: 40px;
}

.btn-primary {
  background: #6fa94d;
  color: #08100d;
  box-shadow: none;
  font-weight: 800;
}

.btn-primary:hover {
  background: #87c95a;
}

.btn-secondary {
  background: #1b2b23;
  border-color: rgba(214, 232, 218, 0.16);
}

.btn-ghost {
  border-radius: 7px;
}

.hero-phone::before,
.hero-phone::after {
  display: none;
}

.promo-card {
  background: #1a2b20;
}

.pill.neon,
.toggle-group button[aria-pressed="true"],
.filter-chip[aria-pressed="true"] {
  background: #35552f;
  border-color: rgba(135, 201, 90, 0.35);
}

.mini-tile.purple,
.mini-tile.blue {
  box-shadow: inset 0 0 0 1px rgba(120, 174, 176, 0.22);
}

.step-num {
  background: #203329;
  border-color: rgba(135, 201, 90, 0.25);
}

.accent-card {
  background: #14211b;
}

.hero-phone,
.share-card,
.result-card {
  background: #101c16;
}

.notice {
  background: #1b2b23;
}

.legend-avatar {
  background: #35552f;
  box-shadow: none;
}

.pill,
.tag,
.identity-badge {
  border-radius: 5px;
  background: #1b2b23;
  border-color: rgba(214, 232, 218, 0.13);
}

.game-shell {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.25rem 0 2rem;
}

.game-form-shell,
.game-start,
.game-career-shell {
  display: grid;
  gap: 1rem;
}

.game-stepbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.7rem;
  background: #0d1813;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.game-step {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  color: #78897e;
}

.game-step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 232, 218, 0.16);
  border-radius: 50%;
  font-size: 0.72rem;
}

.game-step small {
  font-size: 0.74rem;
  white-space: nowrap;
}

.game-step.is-active {
  color: #dce9de;
}

.game-step.is-active span {
  color: #08100d;
  background: #6fa94d;
  border-color: #6fa94d;
}

.game-step.is-current {
  background: #17271f;
  border-radius: 6px;
}

.game-intro,
.game-header-row,
.result-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.1rem 0;
}

.compact-intro {
  padding-bottom: 0.25rem;
}

.game-intro h2,
.game-header-row h2,
.career-main-heading h2,
.result-hero h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.game-intro p {
  max-width: 52ch;
  line-height: 1.6;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.choice-grid,
.club-choice-grid {
  display: grid;
  gap: 0.75rem;
}

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

.choice-card,
.club-choice {
  min-width: 0;
  padding: 1rem;
  color: var(--text);
  text-align: left;
  background: #101c16;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.choice-card {
  display: grid;
  gap: 0.45rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.choice-card:hover,
.choice-card.is-selected {
  background: #18291f;
  border-color: #6fa94d;
}

.choice-card-kicker {
  color: #d4a54b;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-card strong {
  font-size: 1.12rem;
}

.choice-card span:last-child,
.club-choice p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.game-form {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

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

.field-wide {
  grid-column: span 2;
}

.input,
.select {
  border-radius: 7px;
  background: #0d1813;
  border-color: rgba(214, 232, 218, 0.15);
}

.input:focus,
.select:focus {
  border-color: #6fa94d;
  box-shadow: 0 0 0 2px rgba(111, 169, 77, 0.18);
}

.media-placeholder {
  min-height: 100px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  padding: 0.7rem;
  text-align: center;
  color: #8da195;
  background: #0d1712;
  border: 1px dashed rgba(214, 232, 218, 0.28);
  border-radius: 7px;
}

.media-placeholder span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a54b;
}

.media-placeholder strong {
  font-size: 0.76rem;
  font-weight: 600;
}

.media-portrait {
  width: 145px;
  min-height: 118px;
}

.media-legend {
  min-height: 150px;
}

.media-stadium {
  min-height: 165px;
}

.home-media-slot {
  min-height: 118px;
  margin-bottom: 0.8rem;
}

.media-crest {
  width: 64px;
  min-height: 64px;
  flex: 0 0 64px;
}

.media-crest.small {
  width: 42px;
  min-height: 42px;
  flex-basis: 42px;
}

.legend-draft-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem;
  background: #101c16;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.legend-draft-card h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.45rem;
}

.legend-info {
  align-content: start;
}

.attribute-grid {
  gap: 0.55rem;
}

.attribute {
  border-radius: 7px;
  background: #14231b;
  border-color: rgba(214, 232, 218, 0.14);
  cursor: pointer;
}

.attribute:hover:not(:disabled) {
  border-color: #6fa94d;
  background: #1b3023;
}

.attribute:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.draft-log {
  max-height: 220px;
  overflow: auto;
}

.draft-entry {
  border-radius: 6px;
  background: #0d1813;
}

.progress-bar {
  height: 8px;
  border-radius: 3px;
  background: #203329;
}

.progress-bar > span {
  border-radius: 3px;
  background: #6fa94d;
}

.club-choice {
  display: grid;
  gap: 1rem;
}

.club-choice-top,
.player-panel-top,
.offer-row > div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.club-choice h3 {
  margin: 0.2rem 0;
}

.career-dashboard {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: 0.9rem;
  align-items: start;
}

.career-sidebar,
.career-main {
  display: grid;
  gap: 0.9rem;
}

.player-panel,
.market-block,
.media-panel,
.career-main {
  padding: 0.9rem;
  background: #101c16;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.media-player {
  width: 76px;
  min-height: 88px;
}

.player-panel h2 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.2rem;
}

.career-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.career-stat {
  min-width: 0;
  padding: 0.6rem;
  background: #17271f;
  border-radius: 6px;
}

.career-stat strong {
  display: block;
  font-size: 1.08rem;
  color: #f1f4ee;
}

.career-stat span {
  display: block;
  margin-top: 0.22rem;
  color: #9faf9f;
  font-size: 0.7rem;
}

.player-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
}

.player-panel-footer strong {
  color: #f1f4ee;
}

.market-heading,
.career-main-heading {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.market-heading h3 {
  margin: 0.15rem 0 0;
}

.offer-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.offer-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem;
  background: #17271f;
  border-radius: 6px;
}

.offer-row strong,
.offer-row span {
  display: block;
}

.offer-row span {
  margin-top: 0.15rem;
  font-size: 0.72rem;
}

.career-main {
  min-height: 560px;
}

.career-timeline {
  display: grid;
  gap: 0.45rem;
}

.timeline-axis {
  display: flex;
  justify-content: space-between;
  color: #819285;
  font-size: 0.68rem;
  padding: 0 0.5rem 0.15rem 4rem;
}

.career-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-bottom: 1px solid rgba(214, 232, 218, 0.1);
}

.career-age {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-left: 3px solid #6fa94d;
  color: #e5f0e5;
  font-weight: 800;
  background: #17271f;
}

.career-row strong {
  font-size: 0.92rem;
}

.career-row p {
  margin: 0.15rem 0;
  font-size: 0.78rem;
}

.career-row small {
  font-size: 0.7rem;
}

.career-next {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px dashed rgba(214, 232, 218, 0.18);
  border-radius: 6px;
}

.result-hero {
  align-items: center;
  padding: 0.5rem 0;
}

.media-result {
  width: 180px;
  min-height: 150px;
}

.result-tier {
  display: inline-flex;
  padding: 0.42rem 0.65rem;
  border-radius: 5px;
  background: #6fa94d;
  color: #08100d;
  font-weight: 800;
}

.summary-grid .career-stat {
  padding: 0.85rem;
}

@media (max-width: 760px) {
  .game-stepbar {
    overflow-x: auto;
  }

  .game-step {
    min-width: 94px;
  }

  .game-intro,
  .game-header-row,
  .result-hero,
  .career-next {
    flex-direction: column;
  }

  .media-portrait,
  .media-result {
    width: 100%;
  }

  .choice-grid-3,
  .club-choice-grid,
  .career-dashboard {
    grid-template-columns: 1fr;
  }

  .game-form .form-grid,
  .legend-draft-card {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .career-main {
    min-height: auto;
  }
}

/* Reference visual system: compact black football dashboard with blue action states. */
:root {
  --shell: min(1000px, calc(100vw - 2rem));
  --bg: #08070d;
  --bg-2: #0d0a14;
  --surface: #130e1d;
  --surface-2: #171020;
  --surface-3: #20132c;
  --border: #2c1d3b;
  --border-strong: #4a2d64;
  --text: #f4eff9;
  --muted: #a79bb3;
  --accent: #b54cff;
  --accent-2: #f1d33a;
  --accent-3: #f26b3d;
  --accent-4: #51b779;
  --warning: #e8ad23;
}

body {
  color: var(--text);
  background: #08070d;
}

.site-shell,
.header-inner {
  width: var(--shell);
}

.site-header {
  min-height: 56px;
  background: rgba(8, 7, 13, 0.96);
  border-bottom: 1px solid #251833;
}

.header-inner {
  min-height: 56px;
  gap: 1.25rem;
}

.brand {
  gap: 0.55rem;
}

.brand-mark,
.app-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5e2590, #1e1136);
  border: 1px solid #8d49c7;
  box-shadow: none;
  font-size: 0.72rem;
}

.brand-copy small {
  color: #9e91ad;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

.brand-copy strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.nav {
  justify-content: center;
  gap: 0.15rem;
}

.nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: #c7bdcf;
  font-size: 0.84rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
  background: #1d1228;
}

.topbar-actions .btn-primary {
  display: none;
}

.lang-switch {
  border-radius: 6px;
  background: #100b18;
  border-color: #2c1d3b;
}

.lang-switch a {
  border-radius: 5px;
  padding: 0.42rem 0.62rem;
}

.lang-switch a[aria-current="true"] {
  background: #21132f;
  color: #fff;
}

.btn {
  min-height: 42px;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border-color: #3b2352;
}

.btn-primary {
  color: #140b1d;
  background: #b54cff;
  box-shadow: 0 8px 22px rgba(181, 76, 255, 0.18);
}

.btn-primary:hover {
  background: #c66bff;
}

.btn-secondary {
  background: #1b1226;
  border-color: #4a2d64;
}

.btn-ghost {
  background: transparent;
  border-color: #3b2352;
}

.eyebrow,
.reference-meta,
.card .meta,
.table th {
  color: #c89aff;
}

.home-hero {
  position: relative;
  min-height: clamp(380px, 36vw, 520px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.home-hero-image,
.home-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-image {
  object-fit: cover;
  object-position: center 28%;
}

.home-hero-overlay {
  background: linear-gradient(180deg, rgba(8, 7, 13, 0.18), rgba(8, 7, 13, 0.8) 94%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 3rem 0 2rem;
}

.home-hero-content h1 {
  max-width: 14ch;
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(2.25rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-hero-content p {
  max-width: 680px;
  color: #e1d9e6;
  line-height: 1.7;
}

.home-hero-content .btn {
  margin-top: 1rem;
}

.home-game-section {
  padding-top: 1.25rem;
}

.home-copy-section {
  padding-bottom: 3rem;
}

.narrow-copy {
  max-width: 820px;
}

.home-copy-section h2 {
  margin: 2.8rem 0 0.7rem;
  font-size: 1.65rem;
  letter-spacing: 0;
}

.home-copy-section p {
  color: #c5bacd;
  line-height: 1.85;
}

.home-copy-section ol {
  margin: 0.9rem 0 0;
  padding-left: 1.35rem;
  color: #c5bacd;
  line-height: 1.75;
}

.home-copy-section li + li {
  margin-top: 0.55rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.faq-list details {
  padding: 0.9rem 1rem;
  border: 1px solid #244254;
  border-radius: 14px;
  background: #0b1722;
}

.faq-list summary {
  cursor: pointer;
  color: #f5fbff;
  font-weight: 800;
}

.faq-list details p {
  margin-top: 0.6rem;
}

.home-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.home-info-links a {
  color: #bc63ff;
}

.reference-game {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--text);
}

.identity-reference-form,
.draft-reference,
.club-reference,
.career-reference,
.result-reference {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(0, 1.15fr);
  min-height: 480px;
}

.kit-panel,
.nation-panel,
.position-panel {
  padding: 1.25rem 1.1rem;
}

.kit-panel,
.nation-panel {
  border-right: 1px solid var(--border);
}

.identity-reference-form h2,
.club-reference h1,
.result-reference h1 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0;
}

.kit-stage {
  min-height: 215px;
  display: grid;
  place-items: center;
}

.jersey-svg {
  display: block;
  width: min(190px, 72%);
  height: auto;
}

.identity-name-input {
  height: 48px;
  border-radius: 8px;
  background: #0d0a13;
}

.field-label,
.reference-controls label {
  display: block;
  margin: 0.9rem 0 0.45rem;
  color: #a79bb3;
  font-size: 0.76rem;
}

.number-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.number-option,
.segmented-option {
  min-height: 40px;
  padding: 0.55rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #c8bed0;
  background: #0f0a16;
  cursor: pointer;
}

.number-option.is-selected,
.segmented-option.is-selected {
  color: #fff;
  border-color: #b54cff;
  background: #2c1241;
  box-shadow: 0 0 0 1px rgba(181, 76, 255, 0.12) inset;
}

.segmented-control {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0e0a14;
}

.segmented-control .segmented-option {
  flex: 1;
  border: 0;
  min-height: 35px;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
}

.nation-search {
  margin-bottom: 0.6rem;
}

.country-list {
  display: grid;
  gap: 0.25rem;
  max-height: 298px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.country-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  gap: 0.4rem;
  align-items: center;
  min-height: 37px;
  padding: 0.48rem 0.6rem;
  color: #d7cfdd;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #0e0a14;
  cursor: pointer;
}

.country-option:hover,
.country-option.is-selected {
  color: #fff;
  border-color: #a447f5;
  background: #22122f;
}

.country-option b {
  color: #b54cff;
  text-align: right;
}

.country-option.is-hidden {
  display: none;
}

.position-panel {
  display: grid;
  align-content: start;
}

.pitch-visual {
  position: relative;
  width: 100%;
  min-height: 370px;
  overflow: hidden;
  border: 2px solid #67b879;
  border-radius: 8px;
  background: repeating-linear-gradient(180deg, #155a30 0 42px, #1a6536 42px 84px);
}

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

.pitch-lines {
  inset: 4%;
  border: 1px solid rgba(224, 255, 219, 0.45);
}

.pitch-lines::before {
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(224, 255, 219, 0.45);
}

.pitch-lines::after {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(224, 255, 219, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-position {
  position: absolute;
  z-index: 1;
  min-width: 40px;
  min-height: 26px;
  padding: 0.2rem 0.45rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(222, 255, 228, 0.55);
  border-radius: 999px;
  color: #fff;
  background: #112117;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.pitch-position.is-selected {
  color: #160c1d;
  border-color: #f0d3ff;
  background: #b54cff;
}

.position-selected-label {
  margin-top: 0.6rem;
  color: #d9cfe0;
  text-align: center;
}

.reference-controls {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.2rem;
  border-top: 1px solid var(--border);
}

.reference-controls > div {
  min-width: 235px;
}

.reference-form-footer {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  padding: 0 1rem 1.25rem;
}

.reference-cta {
  min-width: 170px;
}

.draft-reference {
  display: block;
  padding: 0;
}

.draft-reference-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.player-card-reference {
  min-height: 610px;
  padding: 1rem;
  border: 1px solid #713e91;
  border-radius: 11px;
  background: linear-gradient(180deg, #17121a, #0e0b12);
}

.player-card-top,
.career-player-top,
.result-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.player-overall,
.career-overall,
.result-overall {
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 58px;
  border-radius: 11px;
  color: #130a19;
  background: #f26b3d;
  font-size: 1.75rem;
  font-weight: 900;
}

.player-overall::before,
.career-overall::before,
.result-overall::before {
  content: "OVR";
  display: block;
  margin-bottom: -0.25rem;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.player-position {
  display: block;
  margin-top: 0.45rem;
  padding: 0.28rem 0.45rem;
  color: #c8bdd0;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.72rem;
}

.draft-kit-stage {
  display: grid;
  place-items: center;
  min-height: 245px;
}

.player-card-reference h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: 1.15rem;
  text-align: center;
}

.draft-card-attributes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding-top: 0.8rem;
  border-top: 1px solid #4a2d64;
}

.draft-card-attributes div,
.result-attribute-grid div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.4rem;
  min-width: 0;
}

.draft-card-attributes span,
.result-attribute-grid span {
  color: #8d8197;
  font-size: 0.64rem;
}

.draft-card-attributes strong,
.result-attribute-grid strong {
  text-align: right;
  font-size: 0.85rem;
}

.draft-card-attributes small,
.result-attribute-grid small {
  grid-column: 1 / -1;
  min-height: 0.75rem;
  overflow: hidden;
  color: #8d8197;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-workspace {
  padding: 0.45rem 0.2rem;
}

.draft-workspace-header,
.legend-heading,
.career-table-header,
.result-season-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.draft-workspace-header h2,
.legend-heading h1,
.career-summary-reference h1,
.result-heading h1 {
  margin: 0.25rem 0 0;
  letter-spacing: 0;
}

.draft-progress-reference {
  height: 7px;
  margin: 0.85rem 0 1.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: #0c0910;
}

.draft-progress-reference span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #b54cff;
}

.legend-heading {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0e0a14;
}

.legend-heading h1 {
  color: #e2c94f;
  font-size: 1.75rem;
}

.legend-heading p {
  max-width: 52ch;
  margin-top: 0.45rem;
  color: #9e92a8;
  line-height: 1.5;
}

.legend-nation {
  color: #cfc2d6;
  font-size: 0.8rem;
}

.legend-pick-hint {
  margin: 1rem 0 0.55rem;
  color: #a99caf;
  font-size: 0.85rem;
}

.legend-pick-hint strong {
  color: #c25cff;
}

.draft-attributes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.draft-attribute {
  display: grid;
  min-height: 86px;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: #c7bbd1;
  text-align: left;
  background: #110c17;
  cursor: pointer;
}

.draft-attribute:hover:not(:disabled) {
  border-color: #b54cff;
  background: #24112f;
}

.draft-attribute:disabled {
  border-color: rgba(255, 255, 255, 0.06);
  background: #0d1721;
  color: #677684;
  cursor: default;
  opacity: 0.38;
  filter: grayscale(0.8);
}

.draft-attribute span {
  font-size: 0.7rem;
}

.draft-attribute strong {
  color: #f6effa;
  font-size: 1.35rem;
}

.draft-attribute small {
  overflow: hidden;
  color: #857891;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-attribute.is-used {
  opacity: 0.45;
}

.draft-attribute.is-locked {
  opacity: 0.34;
  filter: grayscale(0.7);
  cursor: default;
}

.draft-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.club-reference {
  padding: 2rem 1rem 2.5rem;
  text-align: center;
}

.club-reference h1 {
  margin-top: 0.35rem;
  font-size: 1.75rem;
}

.club-reference > p {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  color: #a99caf;
}

.club-choice-grid-reference {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 690px;
  margin: 0 auto;
}

.club-choice-reference {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-height: 190px;
  padding: 0.95rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #f3edf7;
  background: #110c17;
  cursor: pointer;
}

.club-choice-reference:hover {
  border-color: #b54cff;
  background: #22132e;
}

.contract-label,
.club-choice-reference small,
.club-choice-reference > span:not(.contract-label) {
  color: #9f93a9;
  font-size: 0.7rem;
}

.crest-svg {
  width: 58px;
  height: 66px;
}

.club-choice-reference strong {
  font-size: 0.92rem;
}

.club-preview-line {
  margin-top: 1.2rem;
  color: #94879f;
  font-size: 0.78rem;
}

.career-reference {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0.65rem;
  padding: 0.8rem;
}

.career-summary-reference,
.market-reference,
.career-next-reference {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #100b16;
}

.career-summary-reference h1 {
  font-size: 1.25rem;
}

.career-overall {
  background: #dc7a16;
  font-size: 1.8rem;
}

.career-overall small,
.result-overall small {
  display: block;
  font-size: 0.56rem;
}

.career-stat-row,
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.result-reference .result-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.career-stat-row .reference-stat,
.result-stat,
.reference-stat {
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #140e1b;
}

.reference-stat strong {
  display: block;
  font-size: 1.05rem;
}

.reference-stat span {
  display: block;
  margin-top: 0.2rem;
  color: #95889f;
  font-size: 0.68rem;
}

.reference-stat.is-accent strong {
  color: #c164ff;
}

.trophy-line {
  margin-top: 1rem;
  color: #c9b9d2;
  font-size: 0.78rem;
}

.career-table-reference {
  grid-column: 2;
  grid-row: 1 / span 3;
  max-height: 590px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.career-feed-reference {
  grid-column: 1;
}

.career-table-empty {
  margin: 1rem;
  color: var(--muted);
}

.career-table-header,
.career-table-row {
  display: grid;
  grid-template-columns: 38px minmax(116px, 1fr) 44px 44px 46px 56px 44px 44px minmax(78px, 1fr);
  gap: 0.35rem;
  align-items: center;
  min-height: 39px;
  padding: 0 0.7rem;
  border-bottom: 1px solid #21162b;
  font-size: 0.72rem;
}

.career-table-header {
  position: sticky;
  top: 0;
  min-height: 31px;
  color: #8f819a;
  background: #100b16;
  font-size: 0.64rem;
}

.career-table-row {
  color: #d8cedf;
}

.career-table-row > span:not(:nth-child(2)) {
  color: #b8a9c0;
}

.career-table-row.is-current {
  color: #fff;
  background: #21132d;
}

.market-reference,
.career-next-reference {
  grid-column: 1;
  grid-row: 2;
}

.career-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.career-action-row .btn {
  flex: 1 1 145px;
  min-width: 0;
}

.kit-country-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 28px;
  margin: -0.35rem 0 0.7rem;
  color: #bdcbd6;
  font-size: 0.74rem;
}

.kit-country-badge span {
  font-size: 1.05rem;
}

.market-reference h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
}

.market-reference p,
.career-next-reference p {
  color: #9e92a8;
  font-size: 0.78rem;
  line-height: 1.5;
}

.market-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.offer-reference {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-height: 126px;
  padding: 0.45rem;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #15101b;
  cursor: pointer;
}

.offer-reference:hover {
  border-color: #b54cff;
}

.offer-reference .crest-svg {
  width: 34px;
  height: 40px;
}

.offer-reference strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-reference span,
.offer-reference small {
  color: #9d91a7;
  font-size: 0.62rem;
}

.result-reference {
  padding: 1rem;
}

.result-heading {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0 0.9rem;
}

.result-overall {
  width: 86px;
  min-height: 86px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f4c832, #d99612);
  color: #07131e;
}

.result-heading > div:last-child {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
  align-content: center;
}

.result-heading h1 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.15;
}

.result-heading h2 {
  margin: 0;
  color: #e51670;
  font-size: 1.52rem;
  line-height: 1.12;
}

.result-heading p {
  margin: 0.12rem 0 0;
  color: #9b8fa5;
}

.result-reference blockquote {
  margin: 1.5rem 0;
  padding-left: 0.85rem;
  color: #d3c7d9;
  border-left: 3px solid #b54cff;
  font-style: italic;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.result-meta-grid > div {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #100b16;
}

.result-meta-grid span,
.result-meta-grid small {
  color: #8e8198;
  font-size: 0.7rem;
}

.result-club-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.result-club-grid > div {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-width: 84px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #110c17;
  font-size: 0.68rem;
}

.result-club-grid > div small {
  color: #8fa2af;
  font-size: 0.62rem;
  line-height: 1.35;
  white-space: nowrap;
}

.result-club-grid .crest-svg {
  width: 36px;
  height: 42px;
}

.result-season-table {
  margin-top: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.result-season-table h2 {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.result-season-header,
.result-season-row {
  display: grid;
  grid-template-columns: 70px minmax(130px, 1fr) 70px 70px minmax(100px, 1fr);
  gap: 0.4rem;
  align-items: center;
  min-height: 36px;
  padding: 0 0.75rem;
  border-top: 1px solid #21162b;
  font-size: 0.72rem;
}

.result-season-header {
  min-height: 30px;
  color: #8f819a;
  background: #100b16;
  font-size: 0.64rem;
}

.result-attribute-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.result-attribute-grid div {
  display: grid;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #110c17;
}

.site-footer {
  border-top-color: #251833;
  background: #0b0910;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 54px;
  }

  .nav {
    justify-content: flex-start;
  }

  .setup-grid,
  .draft-reference-layout,
  .career-reference {
    grid-template-columns: 1fr;
  }

  .kit-panel,
  .nation-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .player-card-reference {
    min-height: auto;
  }

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

  .career-reference {
    padding: 0.55rem;
  }

  .career-table-reference {
    grid-column: 1;
    grid-row: auto;
  }

  .market-reference,
  .career-next-reference {
    grid-column: auto;
    grid-row: auto;
  }

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

@media (max-width: 560px) {
  :root {
    --shell: calc(100vw - 1rem);
  }

  .home-hero {
    min-height: 420px;
  }

  .home-hero-content {
    padding-top: 3rem;
  }

  .home-hero-image {
    object-position: center 27%;
  }

  .reference-controls {
    display: grid;
    gap: 0.6rem;
  }

  .reference-controls > div {
    min-width: 0;
  }

  .reference-form-footer,
  .result-actions,
  .draft-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-form-footer .btn,
  .result-actions .btn,
  .draft-actions .btn {
    width: 100%;
  }

  .club-choice-grid-reference {
    grid-template-columns: 1fr;
  }

  .club-choice-reference {
    min-height: 140px;
  }

  .pitch-visual {
    min-height: 300px;
  }

  .career-table-reference,
  .result-season-table {
    overflow-x: auto;
  }

  .career-table-header,
  .career-table-row {
    min-width: 650px;
  }

  .result-season-header,
  .result-season-row {
    min-width: 500px;
  }

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

/* Final product pass: dark sports dashboard, with blue as the action color. */
:root {
  --bg: #07111b;
  --bg-2: #0b1724;
  --surface: #0d1b29;
  --surface-2: #102438;
  --surface-3: #16324a;
  --border: #1a354d;
  --border-strong: #2b5c7e;
  --text: #f1f6fa;
  --muted: #9db0bf;
  --accent: #e51670;
  --accent-2: #f4cc45;
  --accent-3: #f27745;
  --accent-4: #2dbf83;
  --warning: #f4cc45;
}

body {
  background: #07111b;
}

.site-header {
  background: rgba(7, 17, 27, 0.97);
  border-bottom-color: #183149;
}

.brand-mark,
.app-logo {
  background: #123b5b;
  border-color: #2d8bc4;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #102b41;
}

.lang-switch {
  background: #0c1c2b;
  border-color: #1d3b55;
}

.lang-switch a[aria-current="true"] {
  background: #174c70;
}

.btn,
.btn-ghost {
  border-color: #285370;
}

.btn .lucide {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.2;
  flex: 0 0 auto;
}

.nav-toggle {
  align-items: center;
  gap: 0.4rem;
}

.nav-toggle .lucide {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  color: #ffffff;
  background: #e51670;
  box-shadow: 0 8px 22px rgba(229, 22, 112, 0.2);
}

.btn-primary:hover {
  background: #f13b8b;
}

.btn-secondary {
  background: #122b40;
  border-color: #2b607f;
}

.eyebrow,
.reference-meta,
.card .meta,
.table th {
  color: #d61168;
}

.home-info-links a {
  color: #e51670;
}

.identity-reference-form,
.draft-reference,
.club-reference,
.career-reference,
.result-reference {
  background: #0d1b29;
  border-color: #1a354d;
}

.identity-name-input,
.number-option,
.segmented-control,
.segmented-option,
.country-option,
.legend-heading,
.draft-attribute,
.club-choice-reference,
.career-summary-reference,
.market-reference,
.career-next-reference,
.career-table-header,
.result-meta-grid > div,
.result-club-grid > div,
.result-attribute-grid div {
  background: #0b1927;
}

.number-option.is-selected,
.segmented-option.is-selected {
  border-color: #35a6f3;
  background: #123f5d;
  box-shadow: 0 0 0 1px rgba(53, 166, 243, 0.18) inset;
}

.country-option:hover,
.country-option.is-selected {
  border-color: #35a6f3;
  background: #12344d;
}

.country-option b {
  color: #55b8f6;
}

.pitch-position.is-selected {
  color: #07111b;
  border-color: #f4cc45;
  background: #35a6f3;
}

.draft-progress-reference span {
  background: #35a6f3;
}

.player-card-reference {
  border-color: #2b6b91;
  background: #0a1723;
}

.draft-card-attributes {
  border-top-color: #214662;
}

.legend-heading h1 {
  color: #f4cc45;
}

.legend-pick-hint strong,
.reference-stat.is-accent strong {
  color: #55b8f6;
}

.draft-attribute:hover:not(:disabled),
.club-choice-reference:hover,
.offer-reference:hover {
  border-color: #35a6f3;
  background: #12334b;
}

.career-table-row.is-current {
  background: #12334b;
}

.result-overall {
  background: #2a86be;
  color: #06131e;
}

.result-heading h2 {
  color: #f4cc45;
}

.result-reference blockquote {
  border-left-color: #35a6f3;
}

.site-footer {
  border-top-color: #183149;
  background: #08131f;
}

@media (max-width: 820px) {
  .draft-reference-layout {
    gap: 0.75rem;
    padding: 0.7rem;
  }

  .career-reference {
    gap: 0.75rem;
  }
}

@media (max-width: 560px) {
  .mobile-tabbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reference-game {
    width: 100%;
  }

  .player-card-reference {
    min-height: 0;
  }

  .draft-kit-stage {
    min-height: 190px;
  }

  .draft-attributes-grid {
    gap: 0.4rem;
  }

  .draft-attribute {
    min-height: 78px;
    padding: 0.55rem;
  }

  .career-action-row {
    flex-direction: column;
  }

  .career-action-row .btn {
    width: 100%;
  }
}

/* The game surface follows the reference app: paper-white panels over a dark shell. */
.reference-game {
  color: #171b20;
}

.identity-reference-form,
.draft-reference,
.club-reference,
.career-reference,
.result-reference {
  background: #f7f8fa;
  border-color: #dfe4e9;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.reference-game h1,
.reference-game h2,
.reference-game h3,
.reference-game strong,
.reference-game .player-card-reference h2,
.reference-game .draft-workspace-header h2,
.reference-game .career-summary-reference h1,
.reference-game .result-heading h1 {
  color: #171b20;
}

.reference-game .muted,
.reference-game p,
.reference-game .reference-stat span,
.reference-game .career-table-row > span:not(:nth-child(2)),
.reference-game .contract-label,
.reference-game .club-choice-reference small,
.reference-game .club-choice-reference > span:not(.contract-label) {
  color: #69737d;
}

.identity-name-input,
.number-option,
.segmented-control,
.segmented-option,
.country-option,
.legend-heading,
.draft-attribute,
.club-choice-reference,
.career-summary-reference,
.market-reference,
.career-next-reference,
.career-table-header,
.result-meta-grid > div,
.result-club-grid > div,
.result-attribute-grid div {
  color: #171b20;
  background: #ffffff;
  border-color: #dfe4e9;
}

.identity-name-input::placeholder,
.nation-search::placeholder {
  color: #89939d;
}

.number-option,
.segmented-option,
.country-option,
.draft-attribute,
.club-choice-reference,
.offer-reference {
  color: #20262d;
}

.number-option.is-selected,
.segmented-option.is-selected,
.country-option:hover,
.country-option.is-selected {
  color: #b30d55;
  border-color: #e51670;
  background: #fff0f6;
}

.country-option b,
.legend-pick-hint strong,
.reference-stat.is-accent strong {
  color: #e51670;
}

.player-card-reference {
  border-color: #cfd7de;
  background: #ffffff;
}

.draft-card-attributes {
  border-top-color: #dfe4e9;
}

.draft-card-attributes span,
.draft-card-attributes small,
.result-attribute-grid span,
.result-attribute-grid small {
  color: #7b858f;
}

.draft-progress-reference {
  background: #e8edf1;
}

.draft-progress-reference span {
  background: #e51670;
}

.legend-heading h1,
.result-heading h2 {
  color: #d61168;
}

.draft-attribute:hover:not(:disabled),
.club-choice-reference:hover,
.offer-reference:hover {
  border-color: #e51670;
  background: #fff0f6;
}

.career-table-header {
  color: #68737d;
}

.career-table-row {
  color: #22282f;
  border-bottom-color: #edf0f2;
}

.career-table-row.is-current {
  color: #b30d55;
  background: #fff0f6;
}

.result-reference blockquote {
  color: #3f4850;
  border-left-color: #e51670;
}

.result-overall {
  background: #f0bd2d;
}

.result-meta-grid > div,
.result-season-table,
.result-attribute-grid div {
  border-color: #dfe4e9;
}

/* Data presentation: keep the career screen readable before adding more source data. */
.reference-game {
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

.reference-game h1,
.reference-game h2,
.reference-game h3,
.reference-game .btn,
.reference-game .field-label,
.reference-game .reference-meta,
.reference-game .career-table-header,
.reference-game .career-feed-source {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  font-stretch: condensed;
}

.reference-stat {
  position: relative;
  min-height: 64px;
  padding-top: 0.8rem;
}

.reference-stat > .lucide {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 0.85rem;
  height: 0.85rem;
  color: #a2aab1;
  stroke-width: 2;
}

.career-summary-reference .reference-stat strong {
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.career-feed-reference {
  padding: 0.85rem;
  border-bottom: 1px solid #edf0f2;
  background: #fbfcfd;
}

.career-feed-reference.is-empty {
  background: #f7f8fa;
}

.career-feed-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.career-feed-heading h2 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

.career-feed-source {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #7b858f;
  font-size: 0.62rem;
  white-space: nowrap;
}

.career-feed-source .lucide {
  width: 0.8rem;
  height: 0.8rem;
}

.career-feed-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.career-feed-grid > div {
  padding: 0.5rem 0.55rem;
  border-left: 2px solid #e51670;
  background: #ffffff;
}

.career-feed-grid strong {
  display: block;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.career-feed-grid span,
.career-form-line > span,
.career-form-line small {
  display: block;
  margin-top: 0.25rem;
  color: #7b858f;
  font-size: 0.62rem;
}

.career-form-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.career-form-line > div {
  display: flex;
  gap: 0.35rem;
}

.career-form-line > div > span {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  border: 1px solid #dfe4e9;
  background: #ffffff;
}

.career-form-line b {
  color: #171b20;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
}

.career-form-line small {
  margin-top: 0;
  font-size: 0.55rem;
  text-align: center;
}

.career-feed-empty {
  max-width: 54ch;
  margin: 0.75rem 0 0;
  color: #69737d;
  font-size: 0.76rem;
  line-height: 1.5;
}

.trophy-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trophy-line .lucide {
  width: 0.9rem;
  height: 0.9rem;
  color: #d29b16;
}

.mobile-tabbar a > .lucide {
  width: 1.05rem;
  height: 1.05rem;
  margin-bottom: 0.18rem;
}

@media (max-width: 560px) {
  .career-feed-heading {
    display: block;
  }

  .career-feed-source {
    margin-top: 0.45rem;
  }

  .career-feed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .career-feed-grid > div {
    padding: 0.45rem 0.35rem;
  }

  .career-form-line {
    display: block;
  }

  .career-form-line > div {
    margin-top: 0.45rem;
  }
}

/* Final game theme: dark, data-first, and no marketing chrome once play starts. */
body[data-page-mode="home"].is-game-active .home-hero,
body[data-page-mode="home"].is-game-active .home-copy-section {
  display: none;
}

body[data-page-mode="home"].is-game-active .home-game-section {
  padding-top: 2rem;
}

.reference-game.result-page-reference .result-heading {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  max-width: 740px;
  padding-right: 0;
  text-align: left;
}

.reference-game.result-page-reference .result-reference {
  position: relative;
  overflow: hidden;
}

.reference-game.result-page-reference .result-corner-art {
  position: absolute;
  top: 1rem;
  right: 1.35rem;
  width: 190px;
  opacity: 0.09;
  transform: rotate(-9deg);
  pointer-events: none;
  filter: saturate(1.2);
}

.reference-game.result-page-reference .result-corner-art .jersey-svg {
  width: 100%;
  height: auto;
  display: block;
}

.reference-game.result-page-reference .result-overall {
  width: 86px;
  min-height: 86px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f4c832, #d99612);
  color: #07131e;
}

.reference-game.result-page-reference .result-heading h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  text-align: left;
  justify-self: start;
}

.reference-game.result-page-reference .result-heading h2 {
  margin: 0.08rem 0 0;
  color: #ff2d83;
  font-size: 1.42rem;
  line-height: 1.12;
  text-align: left;
}

.reference-game.result-page-reference .result-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reference-game {
  color: #ecf4f7;
}

.identity-reference-form,
.draft-reference,
.club-reference,
.career-reference,
.result-reference {
  background: #071018;
  border-color: #183142;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
}

.reference-game h1,
.reference-game h2,
.reference-game h3,
.reference-game strong,
.reference-game .player-card-reference h2,
.reference-game .draft-workspace-header h2,
.reference-game .career-summary-reference h1,
.reference-game .result-heading h1 {
  color: #f5fbff;
}

.reference-game .muted,
.reference-game p,
.reference-game .reference-stat span,
.reference-game .career-table-row > span:not(:nth-child(2)),
.reference-game .contract-label,
.reference-game .club-choice-reference small,
.reference-game .club-choice-reference > span:not(.contract-label) {
  color: #91a6b3;
}

.identity-name-input,
.number-option,
.segmented-control,
.segmented-option,
.country-option,
.legend-heading,
.draft-attribute,
.club-choice-reference,
.career-summary-reference,
.market-reference,
.career-next-reference,
.career-table-reference,
.career-table-header,
.career-feed-reference,
.result-meta-grid > div,
.result-season-table,
.result-club-grid > div,
.result-attribute-grid div {
  color: #eaf3f7;
  background: #0b1722;
  border-color: #1d394b;
}

.career-feed-reference.is-empty {
  background: #0b1722;
}

.career-feed-grid > div,
.career-form-line > div > span,
.reference-stat {
  background: #101f2b;
  border-color: #234154;
}

.identity-name-input::placeholder,
.nation-search::placeholder {
  color: #6f8492;
}

.number-option,
.segmented-option,
.country-option,
.draft-attribute,
.club-choice-reference,
.offer-reference {
  color: #eaf3f7;
}

.number-input {
  width: 100%;
  margin-bottom: 0.55rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 850;
}

.number-option.is-selected,
.segmented-option.is-selected,
.country-option:hover,
.country-option.is-selected {
  color: #ffffff;
  border-color: #e51670;
  background: #341425;
}

.country-option b,
.legend-pick-hint strong,
.reference-stat.is-accent strong,
.legend-heading h1,
.result-heading h2 {
  color: #ff2d83;
}

.player-card-reference {
  border-color: #244254;
  background: #0b1722;
}

.draft-card-attributes {
  border-top-color: #244254;
}

.draft-card-attributes span,
.draft-card-attributes small,
.result-attribute-grid span,
.result-attribute-grid small,
.career-feed-grid span,
.career-form-line > span,
.career-form-line small,
.career-feed-empty,
.career-feed-source {
  color: #91a6b3;
}

.draft-progress-reference {
  background: #142636;
}

.draft-progress-reference span {
  background: #e51670;
}

.draft-attribute:hover:not(:disabled),
.club-choice-reference:hover,
.offer-reference:hover {
  border-color: #e51670;
  background: #1c2030;
}

.career-table-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0.85rem 0.65rem;
  border-bottom: 1px solid #1d394b;
  background: #0b1722;
}

.career-table-title h2 {
  margin: 0;
  font-size: 1.25rem;
}

.career-table-title span {
  color: #91a6b3;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.career-table-header {
  color: #91a6b3;
  background: #0f1e2a;
}

.career-table-row {
  color: #eaf3f7;
  border-bottom-color: #172d3d;
}

.career-table-row.is-current {
  color: #ffffff;
  background: #123424;
}

.career-table-row.is-pending {
  color: #9aadba;
}

.career-table-row.is-pending strong {
  color: #69a786;
}

.career-feed-grid strong,
.career-form-line b {
  color: #f5fbff;
}

.count-up {
  font-variant-numeric: tabular-nums;
}

.season-award-line {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.9rem;
}

.season-award-line b {
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.season-awards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #1d394b;
}

.season-awards > span,
.season-event-card > div > span {
  color: #91a6b3;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.season-awards strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(240, 189, 45, 0.22);
  border-radius: 999px;
  background: rgba(240, 189, 45, 0.1);
  color: #ffe28a;
  font-size: 0.74rem;
}

.season-awards.is-muted strong {
  border-color: #244254;
  background: #101f2b;
  color: #91a6b3;
}

.season-event-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #244254;
  border-radius: 10px;
  background: #101f2b;
  animation: season-card-in 520ms ease both;
}

.season-event-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.35rem;
}

.season-event-card h3 {
  margin: 0.12rem 0 0.16rem;
  color: #f5fbff;
  font-size: 0.96rem;
}

.season-event-card p {
  color: #9db0bf;
  font-size: 0.78rem;
  line-height: 1.45;
}

.season-event-card > strong {
  min-width: 58px;
  padding: 0.34rem 0.45rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.76rem;
}

.season-event-card > strong.is-positive {
  background: rgba(45, 191, 131, 0.14);
  color: #57e1a5;
}

.season-event-card > strong.is-negative {
  background: rgba(229, 22, 112, 0.14);
  color: #ff73aa;
}

.season-event-card.is-gold {
  border-color: rgba(240, 189, 45, 0.42);
  background: linear-gradient(135deg, rgba(240, 189, 45, 0.14), #101f2b 62%);
}

.season-event-card.is-green {
  border-color: rgba(45, 191, 131, 0.38);
}

.season-event-card.is-red {
  border-color: rgba(229, 22, 112, 0.38);
}

@keyframes season-card-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-reference blockquote {
  color: #c6d5dc;
  border-left-color: #e51670;
}

.result-overall {
  background: #f0bd2d;
  color: #071018;
}

/* No-purple dark pass: keep the site visually separated from the reference while avoiding old white/purple leftovers. */
:root {
  --accent-2: #f0bd2d;
}

.skip-link {
  background: #0b1722;
  color: #f5fbff;
  border: 1px solid #244254;
}

.home-info-links a,
.eyebrow,
.reference-meta,
.card .meta,
.table th {
  color: #f0bd2d;
}

.mini-tile.purple,
.mini-tile.pink,
.progress-bar span,
.draft-progress span {
  background: linear-gradient(135deg, #e51670 0%, #f0bd2d 100%);
}

.brand-mark,
.app-logo {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(135deg, #102438 0%, #0b1722 58%, #123424 100%);
  border-color: #244254;
}

.home-hero-overlay {
  background:
    linear-gradient(180deg, rgba(7, 17, 27, 0.08), rgba(7, 17, 27, 0.64) 92%),
    radial-gradient(circle at 50% 18%, rgba(240, 189, 45, 0.12), transparent 36%);
}

.career-page-reference .career-table-reference {
  overflow-x: hidden;
  overflow-y: auto;
}

.career-page-reference .career-table-header,
.career-page-reference .career-table-row {
  min-width: 0;
}

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

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

  .share-card-pro .share-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.btn.btn-primary,
.reference-game .btn.btn-primary,
.home-hero-content .btn.btn-primary {
  border: 0;
  outline: 0;
  box-shadow: 0 12px 28px rgba(229, 22, 112, 0.24);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus-visible {
  border-color: transparent;
}

/* Final compact layout pass: one viewport, stronger hierarchy, no duplicate emphasis. */
.identity-reference-form {
  max-height: none;
  overflow: visible;
}

.reference-form-footer {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.7rem;
  padding: 0.1rem 0 0;
}

.reference-form-footer .btn {
  min-width: 170px;
}

.identity-reference-form {
  max-height: none;
  overflow: visible;
}

.setup-grid {
  min-height: 0;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1fr) minmax(260px, 1.05fr);
  gap: 0.75rem;
  align-items: start;
}

.kit-panel,
.nation-panel,
.position-panel {
  padding: 1rem;
}

.kit-stage {
  min-height: 160px;
}

.identity-reference-form .jersey-svg {
  width: min(150px, 58%);
}

.country-list {
  max-height: 250px;
}

.pitch-visual {
  min-height: 320px;
}

.reference-controls {
  justify-content: space-between;
  gap: 1rem;
}

.career-reference {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto 1fr;
  gap: 0.75rem;
  height: auto;
  overflow: visible;
  padding: 0.9rem;
}

.career-summary-reference {
  min-width: 0;
  overflow: visible;
}

.career-player-top {
  justify-content: space-between;
}

.career-overall {
  min-width: 112px;
  height: 112px;
  border-radius: 26px;
  background: linear-gradient(180deg, #8ea2bc, #52647d);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}

.career-overall small {
  opacity: 0.75;
}

.career-hero-copy {
  flex: 1;
  min-width: 0;
}

.career-hero-copy h1 {
  margin-top: 0.1rem;
  font-size: 1.35rem;
}

.career-hero-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.career-hero-inline > span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 28px;
  padding: 0.26rem 0.5rem;
  border: 1px solid #223b4d;
  border-radius: 999px;
  background: #0b1722;
  color: #d8e4ea;
  font-size: 0.7rem;
}

.career-hero-inline strong {
  color: #f5fbff;
  font-weight: 900;
}

.career-hero-age strong {
  color: #f0bd2d;
}

.career-hero-value strong {
  color: #57d8a1;
}

.career-stat-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.85rem;
}

.career-stat-row .reference-stat {
  min-height: 68px;
  padding: 0.62rem 0.6rem;
  background: #0d1926;
}

.career-stat-row .reference-stat strong {
  font-size: 1.2rem;
}

.career-stat-row .reference-stat:nth-child(1) strong {
  color: #57d8a1;
}

.career-stat-row .reference-stat:nth-child(2) strong {
  color: #f0bd2d;
}

.career-stat-row .reference-stat:nth-child(3) strong {
  color: #8ab7ff;
}

.career-stat-row .reference-stat:nth-child(4) strong {
  color: #ff9d5a;
}

.career-feed-reference {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.8rem 0.8rem;
  border-bottom: 1px solid #1b3242;
  background: #0b1722;
}

.career-feed-reference.is-empty {
  background: #0b1722;
}

.career-feed-heading h2 {
  font-size: 0.98rem;
}

.career-feed-source {
  align-self: center;
}

.career-feed-hero,
.career-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

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

.career-feed-focus,
.snapshot-card {
  min-height: 66px;
  padding: 0.62rem 0.68rem;
  border: 1px solid #244254;
  border-radius: 14px;
  background: #101f2b;
}

.career-feed-focus strong,
.snapshot-card strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  color: #f5fbff;
}

.career-feed-focus span,
.snapshot-card span {
  display: block;
  margin-top: 0.3rem;
  color: #91a6b3;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.career-feed-focus.is-accent {
  border-color: rgba(240, 189, 45, 0.38);
  background: linear-gradient(135deg, rgba(240, 189, 45, 0.16), #101f2b 68%);
}

.career-feed-focus.is-accent strong {
  color: #f0bd2d;
  font-size: 1.7rem;
}

.career-feed-grid > .snapshot-card:nth-child(1) {
  border-left: 3px solid #57d8a1;
}

.career-feed-grid > .snapshot-card:nth-child(2) {
  border-left: 3px solid #f0bd2d;
}

.career-feed-grid > .snapshot-card:nth-child(3) {
  border-left: 3px solid #7896c8;
}

.career-feed-grid > .snapshot-card:nth-child(4) {
  border-left: 3px solid #ff9d5a;
}

.career-feed-grid > .snapshot-card:nth-child(5) {
  border-left: 3px solid #a124c9;
}

.career-feed-grid > .snapshot-card:nth-child(6) {
  border-left: 3px solid #e51670;
}

.career-table-reference {
  height: auto;
  max-height: min(58svh, 510px);
  overflow: auto;
  grid-column: 2;
  grid-row: 1 / span 3;
}

.career-table-header,
.career-table-row {
  grid-template-columns: 42px minmax(118px, 1.1fr) 58px 54px minmax(84px, 1fr);
  min-height: 42px;
}

.career-age-badge,
.career-rating-badge {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 30px;
  padding: 0 0.35rem;
  border-radius: 8px;
  font-weight: 900;
}

.career-age-badge.age-early { background: #ffffff; color: #121212; }
.career-age-badge.age-teen { background: #a124c9; color: #fff; }
.career-age-badge.age-blue { background: #2f57c7; color: #fff; }
.career-age-badge.age-aqua { background: #74c7ff; color: #111; }
.career-age-badge.age-red { background: #ef233c; color: #fff; }
.career-age-badge.age-indigo { background: #3148b4; color: #fff; }
.career-age-badge.age-late { background: #5a5a5a; color: #fff; }

.career-rating-badge {
  color: #0b1722;
  font-size: 0.78rem;
}

.career-rating-badge.rating-gold { background: #f0bd2d; color: #111; }
.career-rating-badge.rating-silver { background: #bfc9db; color: #111; }
.career-rating-badge.rating-blue { background: #7896c8; color: #fff; }
.career-rating-badge.rating-green { background: #46c58a; color: #111; }
.career-rating-badge.rating-dim { background: #4f5a68; color: #fff; }

.career-table-row.is-current {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(27, 93, 54, 0.3), rgba(18, 52, 36, 0.98));
}

.career-next-reference,
.market-reference {
  grid-column: 1;
  grid-row: auto;
}

.career-summary-reference {
  grid-column: 1;
  grid-row: 1;
}

.career-feed-reference {
  grid-column: 1;
  grid-row: 2;
}

.career-next-reference,
.market-reference {
  grid-column: 1;
}

.draft-reference-layout {
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
}

.reference-game.draft-reference {
  max-width: 1000px;
}

.reference-game.draft-reference .player-card-reference {
  align-self: start;
  min-height: 0;
  padding: 0.75rem;
}

.reference-game.draft-reference .player-card-top {
  gap: 0.5rem;
}

.reference-game.draft-reference .player-overall {
  width: 48px;
  min-height: 48px;
  border-radius: 9px;
  font-size: 1.35rem;
}

.reference-game.draft-reference .player-position {
  margin-top: 0.3rem;
  padding: 0.22rem 0.38rem;
  font-size: 0.66rem;
}

.reference-game.draft-reference .draft-kit-stage {
  min-height: 150px;
}

.reference-game.draft-reference .draft-kit-stage .jersey-svg {
  width: min(122px, 62%);
}

.reference-game.draft-reference .player-card-reference h2 {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.95rem;
}

.reference-game.draft-reference .draft-card-attributes {
  gap: 0.32rem;
  padding-top: 0.55rem;
}

.reference-game.draft-reference .draft-card-attributes div {
  gap: 0.12rem 0.25rem;
}

.reference-game.draft-reference .draft-card-attributes span,
.reference-game.draft-reference .draft-card-attributes small {
  font-size: 0.56rem;
}

.reference-game.draft-reference .draft-card-attributes strong {
  font-size: 0.78rem;
}

.reference-game.draft-reference .draft-workspace {
  padding: 0.1rem 0;
}

.reference-game.draft-reference .legend-heading {
  min-height: 138px;
  padding: 1rem 1.05rem;
}

.reference-game.draft-reference .legend-heading h1 {
  min-height: 2.4rem;
  font-size: 2rem;
  line-height: 1.1;
}

.reference-game.draft-reference .legend-heading.is-revealing {
  border-color: rgba(229, 22, 112, 0.7);
  box-shadow: 0 0 0 1px rgba(229, 22, 112, 0.2) inset, 0 16px 40px rgba(229, 22, 112, 0.12);
}

.reference-game.draft-reference .legend-heading.is-revealing h1 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(229, 22, 112, 0.4);
}

.reference-game.draft-reference .draft-attributes-grid {
  gap: 0.45rem;
}

.reference-game.draft-reference .draft-attribute {
  min-height: 74px;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
}

.reference-game.draft-reference .draft-attribute strong {
  font-size: 1.12rem;
}

.reference-game.draft-reference .draft-attribute span {
  font-size: 0.64rem;
}

.reference-game.draft-reference .draft-attribute small {
  font-size: 0.56rem;
}

.reference-game.club-reference {
  max-width: 1000px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.reference-game.club-reference .club-choice-stage {
  padding: 0 0 2.2rem;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.reference-game.club-reference .club-choice-stage > p {
  margin-bottom: 1.9rem;
}

.reference-game.club-reference .club-choice-grid-reference {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 0.85rem;
  max-width: 920px;
}

.reference-game.club-reference .club-choice-reference {
  min-height: 235px;
  padding: 1.1rem 1rem;
  border-radius: 12px;
}

.reference-game.club-reference .club-choice-reference .crest-svg {
  width: 88px;
  height: 102px;
}

.reference-game.club-reference .club-choice-reference strong {
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.2;
}

.reference-game.club-reference .club-choice-reference > span:not(.contract-label),
.reference-game.club-reference .club-choice-reference small {
  font-size: 0.78rem;
}

@media (max-width: 960px) {
  .setup-grid,
  .draft-reference-layout,
  .career-reference {
    grid-template-columns: 1fr;
  }

  .career-table-reference {
    grid-column: auto;
    grid-row: auto;
    max-height: none;
  }

  .career-summary-reference,
  .career-feed-reference,
  .career-next-reference,
  .market-reference {
    grid-column: auto;
    grid-row: auto;
  }

  .reference-controls {
    justify-content: center;
  }

  .reference-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .reference-form-footer .btn {
    width: 100%;
  }
}

body[data-page-mode="home"] .reference-game.home-identity-compact {
  max-width: 1000px;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .identity-reference-form {
  padding: 0.95rem;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .setup-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.88fr) minmax(315px, 1.12fr) minmax(210px, 0.84fr);
  grid-template-areas: none;
  gap: 0.65rem;
  min-height: 0;
  align-items: stretch;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .kit-panel,
body[data-page-mode="home"] .reference-game.home-identity-compact .nation-panel,
body[data-page-mode="home"] .reference-game.home-identity-compact .position-panel {
  padding: 1rem;
  border: 1px solid #183142;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%), #0b1722;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  min-width: 0;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .kit-panel {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .nation-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 250px;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .position-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 290px;
  align-items: center;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .kit-panel h2,
body[data-page-mode="home"] .reference-game.home-identity-compact .nation-panel h2,
body[data-page-mode="home"] .reference-game.home-identity-compact .position-panel h2 {
  margin-bottom: 0.1rem;
  text-align: left;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .kit-stage {
  min-height: 170px;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .jersey-svg {
  width: min(162px, 68%);
}

body[data-page-mode="home"] .reference-game.home-identity-compact .identity-inline-fields {
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 0.55rem;
  align-items: start;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .identity-inline-fields .field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .identity-inline-fields .field label {
  min-height: 18px;
  white-space: nowrap;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .identity-inline-fields .field:last-child .input {
  width: 118px;
  text-align: center;
  font-weight: 850;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .field label,
body[data-page-mode="home"] .reference-game.home-identity-compact .field-label {
  color: #91a6b3;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .input,
body[data-page-mode="home"] .reference-game.home-identity-compact .select {
  min-height: 50px;
  border-radius: 14px;
  background: #0f1e2a;
  border-color: #1d394b;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .input::placeholder {
  color: #6f8492;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .number-input {
  width: 100%;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 850;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .country-list {
  min-height: 240px;
  max-height: 300px;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .position-panel .pitch-visual {
  width: min(100%, 304px);
  min-height: 310px;
  margin-inline: auto;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .reference-form-footer {
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

body[data-page-mode="home"] .reference-game.home-identity-compact .reference-form-footer .btn {
  flex: 0 1 180px;
  min-width: 180px;
}

@media (max-width: 960px) {
  body[data-page-mode="home"] .reference-game.home-identity-compact .setup-grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  body[data-page-mode="home"] .reference-game.home-identity-compact .kit-panel,
  body[data-page-mode="home"] .reference-game.home-identity-compact .nation-panel,
  body[data-page-mode="home"] .reference-game.home-identity-compact .position-panel {
    grid-area: auto;
  }

  body[data-page-mode="home"] .reference-game.home-identity-compact .country-list,
  body[data-page-mode="home"] .reference-game.home-identity-compact .position-panel .pitch-visual {
    min-height: 0;
    max-height: none;
    width: 100%;
  }

  body[data-page-mode="home"] .reference-game.home-identity-compact .reference-form-footer .btn {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }
}

.career-page-reference .career-reference {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.career-page-reference .career-summary-reference,
.career-page-reference .career-feed-reference,
.career-page-reference .market-reference {
  min-width: 0;
}

.career-page-reference .career-summary-reference {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  height: auto;
  overflow: visible;
  padding: 0.54rem;
}

.career-page-reference .media-panel {
  padding: 0.5rem;
}

.career-page-reference .media-stadium {
  min-height: 132px;
}

.career-page-reference .career-player-top {
  gap: 0.55rem;
}

.career-page-reference .career-overall {
  min-width: 92px;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(180deg, #e06f09, #9f3d06);
  color: #fff4dc;
  font-size: 1.55rem;
}

.career-page-reference .career-overall small {
  color: #ffe0a2;
}

.career-page-reference .career-hero-copy h1 {
  font-size: 0.98rem;
}

.career-page-reference .career-hero-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
  margin-top: 0.28rem;
}

.career-page-reference .career-hero-inline > span {
  min-height: 22px;
  padding: 0.14rem 0.36rem;
  font-size: 0.64rem;
}

.career-page-reference .career-hero-inline > span:last-child {
  grid-column: 1 / -1;
}

.career-page-reference .career-stat-row {
  gap: 0.25rem;
  margin-top: 0;
}

.career-page-reference .career-stat-row .reference-stat {
  min-height: 44px;
  padding: 0.38rem;
  border-radius: 10px;
}

.career-page-reference .career-stat-row .reference-stat strong {
  font-size: 0.92rem;
}

.career-page-reference .reference-stat > .lucide {
  top: 0.5rem;
  right: 0.5rem;
}

.career-page-reference .trophy-line {
  margin-top: 0;
  font-size: 0.67rem;
}

.career-page-reference .career-action-row.is-primary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 0;
  padding-top: 0.15rem;
}

.career-page-reference .career-action-row.is-primary-actions .btn {
  width: 100%;
  min-height: 40px;
}

.career-page-reference .career-feed-reference {
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #1d394b;
  border-radius: 12px;
}

.career-page-reference .career-feed-heading h2 {
  margin-top: 0.12rem;
  font-size: 0.92rem;
}

.career-page-reference .career-feed-source {
  font-size: 0.56rem;
}

.career-page-reference .career-feed-hero {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.career-page-reference .career-feed-focus,
.career-page-reference .snapshot-card {
  min-height: 56px;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
}

.career-page-reference .career-feed-focus strong,
.career-page-reference .snapshot-card strong {
  font-size: 1.16rem;
}

.career-page-reference .career-feed-focus.is-accent strong {
  font-size: 1.28rem;
}

.career-page-reference .season-awards {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
}

.career-page-reference .season-event-card {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding: 0.58rem;
  border-radius: 10px;
}

.career-page-reference .season-event-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.05rem;
}

.career-page-reference .season-event-card h3 {
  font-size: 0.86rem;
}

.career-page-reference .season-event-card p {
  font-size: 0.72rem;
}

.career-page-reference .career-form-line {
  margin-top: 0.45rem;
}

.career-page-reference .market-reference {
  max-height: none;
  overflow: visible;
}

.career-page-reference .market-offers {
  grid-template-columns: 1fr;
}

.career-page-reference .career-table-reference {
  grid-column: 2;
  grid-row: 1 / span 3;
  height: auto;
  max-height: calc(100svh - 128px);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  border-radius: 12px;
}

.career-page-reference .career-table-title {
  position: sticky;
  top: 0;
  z-index: 3;
  min-width: 0;
  padding: 0.72rem 0.8rem 0.56rem;
}

.career-page-reference .career-table-header {
  top: 0;
  z-index: 2;
}

.career-page-reference .career-table-header,
.career-page-reference .career-table-row {
  min-width: 0;
}

.career-page-reference .career-table-header {
  grid-template-columns: 34px minmax(0, 1fr) minmax(170px, 214px);
  gap: 0.45rem;
  padding: 0 0.68rem;
}

.career-page-reference .career-table-row {
  grid-template-columns: 34px minmax(0, 1fr) minmax(170px, 214px);
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.68rem;
}

.career-page-reference .career-table-row {
  animation: career-row-in 320ms ease both;
}

.career-page-reference .career-table-row.is-pending {
  color: #60717d;
  background: rgba(255, 255, 255, 0.012);
}

.career-page-reference .career-table-row.is-pending > span,
.career-page-reference .career-table-row.is-pending > span:not(:nth-child(2)) {
  color: #617480;
}

.career-page-reference .career-table-row.is-current {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(33, 76, 52, 0.72), rgba(12, 31, 26, 0.94));
}

.career-page-reference .career-table-row.is-current > span:not(:nth-child(2)) {
  color: #b9c9c0;
}

.career-page-reference .career-table-header > span:nth-child(2),
.career-page-reference .career-table-row > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-page-reference .career-age-badge.age-current,
.career-page-reference .career-age-badge.age-pending,
.career-page-reference .career-table-row.is-pending .career-age-badge {
  background: transparent;
  color: #60717d;
  box-shadow: none;
}

.career-page-reference .career-table-row.is-current .career-age-badge {
  background: transparent;
  color: #d9e1e7;
}

.career-page-reference .career-age-badge,
.career-page-reference .career-rating-badge {
  min-width: 0;
  max-width: 28px;
}

.career-page-reference .career-age-badge {
  padding: 0;
  background: transparent;
  color: #c9d1d8;
  box-shadow: none;
}

.career-page-reference .career-rating-badge,
.career-page-reference .career-rating-badge.rating-default,
.career-page-reference .career-table-row.is-pending .career-rating-badge {
  background: #27323a;
  color: #71828c;
}

.career-page-reference .career-rating-badge.rating-low {
  background: linear-gradient(180deg, #d84f4f, #b72c2c);
  color: #fff4de;
}

.career-page-reference .career-rating-badge.rating-mid {
  background: linear-gradient(180deg, #f0bd2d, #b97708);
  color: #fff7df;
}

.career-page-reference .career-rating-badge.rating-high {
  background: linear-gradient(180deg, #57d8a1, #1c8f68);
  color: #07301f;
}

.career-page-reference .career-table-row.is-current .career-rating-badge.rating-low,
.career-page-reference .career-table-row.is-current .career-rating-badge.rating-mid,
.career-page-reference .career-table-row.is-current .career-rating-badge.rating-high {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.career-page-reference .career-rating-badge:empty {
  visibility: hidden;
  background: transparent;
}

.career-page-reference .career-row-metrics {
  display: grid;
  width: 142px;
  grid-template-columns: 32px 34px 28px 28px;
  gap: 0.22rem;
  align-items: center;
  justify-content: end;
  justify-self: end;
  min-width: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.career-page-reference .career-table-header > span:nth-child(3),
.career-page-reference .career-table-row > span:nth-child(3) {
  width: 142px;
  justify-self: end;
}

.career-page-reference .career-row-metrics > span {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  color: #e9edf2;
  width: 100%;
}

.career-page-reference .career-table-header .career-row-metrics > span {
  color: #8f9aa6;
}

.career-page-reference .career-table-row.is-pending .career-row-metrics > span {
  color: #617480;
}

@keyframes career-row-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes career-badge-pop {
  0% {
    transform: scale(0.92);
  }
  65% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 960px) {
  .career-page-reference .career-reference {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .career-page-reference .career-table-reference {
    grid-column: auto;
    grid-row: auto;
    max-height: 68svh;
  }

  .career-page-reference .career-table-header,
  .career-page-reference .career-table-row {
    min-width: 0;
  }

  .career-page-reference .career-table-header {
    grid-template-columns: 32px minmax(0, 1fr) minmax(150px, 184px);
    gap: 0.32rem;
    padding: 0 0.58rem;
  }

  .career-page-reference .career-table-row {
    grid-template-columns: 32px minmax(0, 1fr) minmax(150px, 184px);
    gap: 0.32rem;
    padding: 0 0.58rem;
  }

  .career-page-reference .career-row-metrics {
    grid-template-columns: 34px 34px 26px 26px;
    gap: 0.28rem;
  }

  .career-page-reference .career-hero-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .career-page-reference .career-summary-reference {
    height: auto;
    overflow: visible;
  }

  .career-page-reference .career-hero-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reference-game.result-page-reference .result-heading {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.reference-game.result-page-reference .result-overall {
  width: 86px;
  min-height: 86px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f4c832, #d99612);
  color: #07131e;
}

.reference-game.result-page-reference .result-heading h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.reference-game.result-page-reference .result-heading h2 {
  margin: 0.08rem 0 0;
  color: #ff2d83;
  font-size: 1.42rem;
  line-height: 1.12;
}

.reference-game.result-page-reference .result-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .reference-game.result-page-reference .result-heading {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .reference-game.result-page-reference .result-overall {
    width: 70px;
    min-height: 70px;
  }

  .reference-game.result-page-reference .result-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reference-game.draft-reference .draft-attribute:disabled,
.reference-game.draft-reference .draft-attribute.is-locked {
  border-color: rgba(255, 255, 255, 0.06);
  background: #0d1721;
  color: #697887;
  opacity: 0.38;
  filter: grayscale(0.85);
  cursor: default;
  box-shadow: none;
}

.reference-game.result-page-reference .result-reference {
  position: relative;
  overflow: hidden;
}

.reference-game.result-page-reference .result-heading {
  max-width: 740px;
  padding-right: 0;
  text-align: left;
}

.reference-game.result-page-reference .result-heading > div:last-child {
  justify-items: start;
  text-align: left;
}

.reference-game.result-page-reference .result-heading h1,
.reference-game.result-page-reference .result-heading h2,
.reference-game.result-page-reference .result-heading p {
  text-align: left;
  justify-self: start;
}

.reference-game.result-page-reference .result-corner-art {
  position: absolute;
  top: 1rem;
  right: 1.35rem;
  width: 190px;
  opacity: 0.09;
  transform: rotate(-9deg);
  pointer-events: none;
  filter: saturate(1.2);
}

.reference-game.result-page-reference .result-corner-art .jersey-svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
  .reference-game.result-page-reference .result-corner-art {
    width: 120px;
    opacity: 0.06;
  }
}

/* Mobile shell: keep the header compact and move secondary controls into the menu. */
.mobile-nav-language {
  display: none;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 58px;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    gap: 0.5rem;
  }

  .header-inner .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-toggle {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-height: 42px;
    margin-left: auto;
    padding: 0;
    place-items: center;
    border: 1px solid #285370;
    border-radius: 12px;
    background: #0c1c2b;
  }

  .nav-toggle .lucide {
    width: 1.15rem;
    height: 1.15rem;
  }

  .nav {
    flex-basis: 100%;
    order: 3;
    width: 100%;
    padding: 0.35rem 0 0.15rem;
    border-top: 1px solid #183149;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.78rem 0.2rem;
    border-radius: 8px;
  }

  .desktop-language-switch,
  .topbar-actions {
    display: none;
  }

  .mobile-nav-language {
    display: block;
    width: 100%;
    padding-top: 0.65rem;
    border-top: 1px solid #183149;
  }

  .mobile-nav-language .lang-switch {
    width: max-content;
  }

  .mobile-nav-language .lang-switch a {
    min-width: 58px;
    text-align: center;
  }

  .mobile-tabbar {
    display: none !important;
  }

  .site-footer {
    padding-bottom: 2rem;
  }

  body[data-page-mode="home"] .reference-game.home-identity-compact .position-panel .pitch-visual {
    width: min(100%, 340px);
    min-height: 300px;
    height: 300px;
    max-height: none;
    aspect-ratio: auto;
  }

  .reference-game.club-reference {
    width: 100%;
  }

  .reference-game.club-reference .club-choice-stage {
    padding: 1.15rem 0.2rem 1.5rem;
  }

  .reference-game.club-reference .club-choice-stage h1 {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.15;
  }

  .reference-game.club-reference .club-choice-stage > p {
    max-width: 32rem;
    margin: 0 auto 1.25rem;
    line-height: 1.55;
  }

  .reference-game.club-reference .club-choice-grid-reference {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    max-width: none;
  }

  .reference-game.club-reference .club-choice-reference {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    justify-items: start;
    min-height: 0;
    padding: 0.78rem 0.75rem;
    text-align: left;
  }

  .reference-game.club-reference .club-choice-reference .contract-label {
    grid-column: 2 / -1;
    grid-row: 1;
    align-self: end;
  }

  .reference-game.club-reference .club-choice-reference .crest-svg {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px;
    height: 56px;
    align-self: center;
  }

  .reference-game.club-reference .club-choice-reference strong {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 0.95rem;
  }

  .reference-game.club-reference .club-choice-reference > span:not(.contract-label),
  .reference-game.club-reference .club-choice-reference small {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    text-align: right;
    font-size: 0.68rem;
  }

  .reference-game.club-reference .club-choice-reference small {
    grid-column: 2 / -1;
    grid-row: 3;
    padding-top: 0.2rem;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand-copy small {
    font-size: 0.62rem;
  }

  .brand-copy strong {
    font-size: 0.86rem;
  }

  body[data-page-mode="home"] .reference-game.home-identity-compact .position-panel .pitch-visual {
    width: 100%;
    min-height: 280px;
    height: 280px;
  }
}

.brand-mark,
.app-logo {
  color: #f0bd2d;
}

.brand-mark > .lucide,
.app-logo > .lucide {
  width: 1.45rem;
  height: 1.45rem;
  stroke-width: 2.35;
}
