:root {
  --blue: #1434ff;
  --blue-hover: #2450ff;
  --turquoise: #26d9c7;
  --gold: #ffd54a;
  --bg: #f6f8fb;
  --surface: #fff;
  --surface-2: #f0f3f8;
  --ink: #171717;
  --muted: #777;
  --line: #ececec;
  --success: #2ecc71;
  --danger: #e74c3c;
  --shadow: 0 8px 30px rgba(0,0,0,.05);
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(20,52,255,.18);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 40px));
  margin: 12px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(236,236,236,.9);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; width: max-content; text-decoration: none; }
.brand img { width: 76px; height: 42px; object-fit: contain; object-position: left center; border-radius: 8px; }
.topnav { display: flex; gap: 4px; }
.nav-link {
  padding: 10px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  transition: .2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); transform: translateY(-1px); }

main { width: min(1240px, calc(100% - 40px)); margin: 28px auto 80px; }
footer {
  display: flex; justify-content: space-between; gap: 20px;
  width: min(1240px, calc(100% - 40px)); margin: 0 auto;
  padding: 28px 0 38px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { margin-bottom: 24px; font-size: clamp(52px, 8vw, 104px); line-height: .94; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.02; font-weight: 800; }
h3 { font-size: 21px; font-weight: 800; }
p { line-height: 1.65; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 9px; background: currentColor; }

.hero {
  position: relative; overflow: hidden; min-height: 650px;
  display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 50px;
  padding: clamp(36px, 6vw, 76px); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.hero::before {
  content: ""; position: absolute; right: -95px; bottom: -185px; width: 500px; height: 500px;
  border: 62px solid rgba(20,52,255,.045); border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: "90"; position: absolute; right: 2%; top: -6%; color: rgba(20,52,255,.035);
  font-size: min(32vw, 390px); font-weight: 800; line-height: 1; pointer-events: none;
}
.hero-copy, .hero-card { position: relative; z-index: 2; }
.hero h1 span { color: var(--blue); }
.hero p { max-width: 610px; margin-bottom: 34px; color: var(--muted); font-size: 17px; }
.hero-actions, .actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-row { margin-top: 24px; }

.primary-btn, .secondary-btn, .ghost-btn, .choice-btn {
  border: 0; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .choice-btn:hover { transform: translateY(-2px); }
.primary-btn { padding: 15px 20px; border-radius: 14px; background: var(--blue); color: white; font-weight: 800; }
.primary-btn:hover { background: var(--blue-hover); }
.secondary-btn, .ghost-btn {
  padding: 14px 18px; border: 1px solid #e5e5e5; border-radius: 14px; background: transparent; color: var(--ink); font-weight: 700;
}
.secondary-btn:hover, .ghost-btn:hover { background: var(--surface-2); }
.small { padding: 9px 12px; font-size: 13px; justify-self: end; }

.hero-card { padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fafbfe; }
.player-silhouette {
  position: relative; height: 276px; overflow: hidden; border-radius: 18px;
  background: linear-gradient(145deg, #eef1f8, #dfe5f1);
}
.player-silhouette::before {
  content: ""; position: absolute; left: 50%; top: 42px; width: 70px; height: 70px;
  border-radius: 50%; background: #1c2442; transform: translateX(-50%);
}
.player-silhouette::after {
  content: ""; position: absolute; left: 50%; bottom: -54px; width: 210px; height: 225px;
  border-radius: 48% 48% 20% 20%; background: #1c2442; transform: translateX(-50%);
  box-shadow: inset 0 25px 0 rgba(20,52,255,.28);
}
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.hero-meta div { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.hero-meta strong, .hero-meta span { display: block; }
.hero-meta strong { font-size: 20px; }
.hero-meta span { margin-top: 3px; color: var(--muted); font-size: 11px; }

.section { margin-top: 80px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-head p { max-width: 560px; margin-bottom: 0; color: var(--muted); }
.feature-grid, .records-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card, .panel, .stat-card, .timeline-item, .record-card, .event-card {
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.feature-card { min-height: 255px; padding: 28px; border-radius: var(--radius-md); }
.feature-number {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 42px;
  border-radius: 13px; background: var(--surface-2); color: var(--blue); font-weight: 800;
}
.feature-card p { color: var(--muted); }

.setup-layout, .dashboard-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; align-items: start; }
.panel { padding: 28px; border-radius: var(--radius-md); }
.panel-dark { color: white; background: #10162c; border-color: #10162c; }
.panel-dark p, .panel-dark .muted, .panel-dark .stat-card span { color: rgba(255,255,255,.66); }
.panel-dark .stat-card { border-color: rgba(255,255,255,.10); background: rgba(255,255,255,.06); box-shadow: none; }
.panel-dark .secondary-btn { border-color: rgba(255,255,255,.2); color: white; }
.panel-dark .eyebrow { color: var(--turquoise) !important; }

.form-grid, .status-bars { display: grid; gap: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.field input, .field select {
  width: 100%; padding: 14px 15px; border: 1px solid #e5e5e5; border-radius: 12px; outline: none; background: white;
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,52,255,.08); }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; transition: .2s ease; }
.option-card:hover { border-color: rgba(20,52,255,.35); transform: translateY(-2px); }
.option-card input { margin-right: 8px; accent-color: var(--blue); }

.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.avatar {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px;
  background: var(--blue); color: white; font-size: 27px; font-weight: 800;
}
.overall { text-align: right; }
.overall strong { display: block; color: var(--blue); font-size: 44px; line-height: 1; }
.overall span { color: var(--muted); font-size: 11px; font-weight: 800; }
.progress { height: 8px; margin-top: 18px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.stat-card { padding: 16px; border-radius: 16px; box-shadow: none; }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font-size: 23px; }
.stat-card span { color: var(--muted); font-size: 11px; }
.status-line { display: grid; grid-template-columns: 82px 1fr 34px; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; }
.status-line .track { height: 7px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.status-line .track span { display: block; height: 100%; background: var(--blue); }

.event-card { max-width: 960px; margin: 0 auto; padding: clamp(24px, 5vw, 46px); border-radius: var(--radius-lg); }
.event-tag, .badge {
  display: inline-flex; padding: 7px 10px; border-radius: 999px; background: var(--surface-2);
  color: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.event-tag { margin-bottom: 20px; }
.event-card h2 { max-width: 760px; }
.event-card > p { max-width: 760px; color: var(--muted); font-size: 17px; }
.choices { display: grid; gap: 11px; margin-top: 28px; }
.choice-btn {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; text-align: left;
}
.choice-btn:hover { border-color: rgba(20,52,255,.35); background: #fafbff; }
.choice-btn .letter { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--blue); font-weight: 800; }
.choice-btn strong, .choice-btn span { display: block; }
.choice-btn span span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.choice-btn em { color: var(--blue); font-style: normal; font-size: 11px; font-weight: 800; }

.season-summary { display: grid; grid-template-columns: 1fr .9fr; gap: 18px; }
.summary-score { display: flex; align-items: end; gap: 18px; }
.summary-score strong { color: var(--blue); font-size: 92px; line-height: .8; }
.summary-score span { color: var(--muted); }
.timeline { display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; padding: 18px; border-radius: 16px; box-shadow: none; }
.timeline-season { color: var(--blue); font-weight: 800; }
.timeline-item p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.badge { color: var(--muted); }
.badge.good { background: #fff8d7; color: #846500; }
.badge.bad { background: #fde7e4; color: #9b3429; }
.record-card { padding: 24px; border-radius: 18px; }
.record-card strong { display: block; margin-bottom: 6px; color: var(--blue); font-size: 32px; }
.record-card span, .muted { color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 12px; background: #edf0ff; color: #253ca8; font-size: 13px; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero, .setup-layout, .dashboard-grid, .season-summary { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .feature-grid, .records-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 540px; }
}
@media (max-width: 620px) {
  main, footer, .topbar { width: min(100% - 22px, 1240px); }
  .topbar { top: 8px; margin-top: 8px; }
  .small { display: none; }
  .hero { padding: 30px 22px; border-radius: 20px; }
  h1 { font-size: 50px; }
  .hero-meta, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .option-grid { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: auto 1fr; }
  .overall { grid-column: 1 / -1; text-align: left; }
  .section-head { display: block; }
  .timeline-item { grid-template-columns: 1fr; }
  .choice-btn { grid-template-columns: auto 1fr; }
  .choice-btn em { display: none; }
  footer { flex-direction: column; }
}

/* Game-first home screen */
:root { --bg: #edf3ff; --blue: #2158ff; --turquoise: #00c8a3; --gold: #ffd33d; --danger: #ff5d5d; --muted: #6b7280; }
body { background: var(--bg); }
.topbar { top: 10px; width: min(1180px, calc(100% - 32px)); margin-top: 10px; padding: 8px 10px 8px 14px; border-radius: 18px; }
.brand img { width: 52px; height: 36px; }
.top-actions { display: flex; gap: 8px; align-items: center; justify-self: end; }
.icon-btn, .avatar-nav { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.avatar-nav { padding: 3px; overflow: hidden; }
.avatar-nav img { display: block; width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.icon-btn i { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.avatar-nav { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 800; }
main { width: min(1180px, calc(100% - 32px)); margin-top: 30px; }
h1 { font-size: clamp(38px, 5vw, 68px); line-height: .98; }
.game-home { display: grid; grid-template-columns: .82fr 1.18fr; gap: 40px; align-items: center; min-height: 570px; animation: fadeIn .45s ease both; }
.home-intro { padding: 16px 0; }
.home-intro h1 { margin: 14px 0 18px; }
.home-intro h1 span { color: var(--blue); }
.home-subtitle { max-width: 400px; margin-bottom: 28px; color: var(--muted); font-size: 17px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 4px rgba(0,200,163,.12); }
.cta-btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 23px; border-radius: 15px; box-shadow: 0 10px 20px rgba(33,88,255,.16); letter-spacing: .02em; }
.cta-btn span { color: var(--gold); font-size: 17px; }
.home-trust { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 18px; color: var(--muted); font-size: 11px; font-weight: 700; }
.home-trust span:first-child { color: #299b75; }
.home-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card-link, .interactive-card { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; cursor: pointer; }
.save-card, .new-career-card, .menu-card, .interactive-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.save-card:hover, .new-career-card:hover, .menu-card:hover, .interactive-card:hover { transform: translateY(-4px); box-shadow: 0 15px 34px rgba(33,88,255,.10); border-color: rgba(33,88,255,.24); }
.save-card { grid-column: 1 / -1; padding: 23px; background: linear-gradient(135deg, #fff 0%, #f4f7ff 100%); }
.save-card::after { content: ""; position: absolute; right: -45px; bottom: -105px; width: 250px; height: 250px; border: 35px solid rgba(0,200,163,.10); border-radius: 50%; pointer-events: none; }
.save-card-top, .save-player, .save-details { position: relative; z-index: 1; display: flex; align-items: center; }
.save-card-top { justify-content: space-between; width: 100%; margin-bottom: 17px; }
.card-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.save-status { color: #299b75; font-size: 10px; font-weight: 800; }
.save-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--turquoise); }
.save-player { gap: 12px; }
.save-player strong, .save-player span, .save-player b, .save-player small { display: block; }
.save-player strong { font-size: 19px; }
.save-player span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.save-player > b { margin-left: auto; color: var(--blue); font-size: 34px; line-height: .8; text-align: right; }
.save-player small { margin-top: 7px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.avatar-large { width: 55px; height: 55px; border-radius: 16px; font-size: 19px; }
.save-details { gap: 24px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.save-details b, .save-details small { display: block; color: var(--ink); font-size: 13px; }
.save-details small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.new-career-card { grid-column: 1 / -1; min-height: 185px; padding: 23px; background: linear-gradient(135deg, #2158ff, #3677ff); color: #fff; }
.new-career-card::after { content: ""; position: absolute; right: -40px; bottom: -80px; width: 250px; height: 250px; border: 45px solid rgba(255,255,255,.12); border-radius: 50%; }
.new-career-card .card-icon { margin-bottom: 16px; font-size: 25px; }
.new-career-card .card-kicker { color: #bdeee5; }
.new-career-card strong { margin: 7px 0 4px; font-size: 21px; }
.new-career-card > span:not(.card-icon):not(.card-kicker) { color: rgba(255,255,255,.75); font-size: 12px; }
.new-career-card .card-arrow { margin-top: auto; color: #fff; }
.new-career-card .card-arrow em { color: var(--gold); font-style: normal; }
.menu-card { min-height: 190px; padding: 21px; }
.menu-card .card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 14px; background: #edf2ff; font-size: 21px; }
.hall-card .card-icon { background: #fff7d6; }
.decisions-card .card-icon { background: #ddfaf4; }
.menu-card strong { margin-top: 8px; font-size: 19px; line-height: 1.1; }
.menu-card .card-arrow { margin-top: auto; }
.card-arrow { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--blue); font-size: 11px; font-weight: 800; }
.card-arrow b { font-size: 17px; }
.stats-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 22px; animation: slideUp .5s .1s ease both; }
.stat-chip { padding: 16px 14px; border: 1px solid rgba(33,88,255,.10); border-radius: 18px; background: rgba(255,255,255,.7); }
.stat-chip strong, .stat-chip span { display: block; }
.stat-chip strong { color: var(--blue); font-size: 24px; letter-spacing: -.05em; }
.stat-chip span { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.why-section { margin-top: 66px; }
.compact-head { align-items: center; }
.compact-head h2 { margin-bottom: 0; }
.section-note { color: var(--muted); font-size: 13px; }
.why-grid { grid-template-columns: repeat(3, 1fr); }
.interactive-card { min-height: 235px; padding: 22px; }
.interactive-card .feature-emoji { margin-bottom: 18px; font-size: 26px; }
.interactive-card .feature-number { position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; margin: 0; border-radius: 10px; font-size: 11px; }
.interactive-card h3 { margin-bottom: 8px; font-size: 18px; }
.interactive-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.interactive-card .card-arrow { margin-top: auto; }
footer { width: min(1180px, calc(100% - 32px)); font-size: 11px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue); }
.bottom-nav { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .game-home { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
  .home-intro { padding-top: 20px; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  body { padding-bottom: 74px; }
  .topbar { width: calc(100% - 22px); }
  .topnav, .top-actions .small, .icon-btn { display: none; }
  .brand img { width: 54px; height: 38px; }
  main { width: calc(100% - 22px); margin-top: 18px; }
  .game-home { gap: 18px; }
  .home-intro h1 { font-size: 43px; }
  .home-subtitle { font-size: 15px; }
  .cta-btn { width: 100%; justify-content: center; }
  .home-trust { gap: 8px; font-size: 10px; }
  .home-feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .save-card, .new-career-card { grid-column: 1 / -1; }
  .menu-card { min-height: 168px; padding: 17px; }
  .menu-card strong { font-size: 16px; }
  .menu-card .card-icon { width: 36px; height: 36px; margin-bottom: 13px; font-size: 18px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
  .stat-chip { padding: 13px 12px; }
  .stat-chip strong { font-size: 21px; }
  .why-section { margin-top: 48px; }
  .compact-head { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
  .section-note { font-size: 11px; }
  .why-grid { grid-template-columns: 1fr; }
  .interactive-card { min-height: 175px; }
  footer { display: none; }
  .bottom-nav { position: fixed; right: 10px; bottom: 10px; left: 10px; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(33,88,255,.14); backdrop-filter: blur(12px); }
  .bottom-nav button { display: grid; place-items: center; gap: 3px; padding: 5px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; }
  .bottom-nav button:hover, .bottom-nav button:focus-visible { background: #edf2ff; color: var(--blue); transform: none; }
  .bottom-nav button span { font-size: 18px; line-height: 1; }
}

/* Compact state-driven home */
.home-screen { width: min(920px, 100%); margin: 28px auto 0; animation: fadeIn .35s ease both; }
.home-new { display: flex; flex-direction: column; align-items: center; max-width: 620px; padding: 38px 22px 62px; text-align: center; }
.home-brand-lockup { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: .13em; }
.home-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 15px; }
.home-copy { margin: 38px 0 26px; }
.home-copy .eyebrow { margin-bottom: 13px; }
.home-copy h1 { margin-bottom: 0; font-size: clamp(36px, 5vw, 54px); }
.home-copy h1 span { color: var(--blue); }
.home-primary { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 15px 20px; border-radius: 14px; font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.home-primary b { color: var(--gold); font-size: 18px; }
.home-new .home-primary { width: min(100%, 390px); }
.home-secondary-card { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 8px 22px rgba(0,0,0,.04); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.home-secondary-card:hover { transform: translateY(-3px); border-color: rgba(33,88,255,.25); box-shadow: 0 12px 28px rgba(33,88,255,.08); }
.home-secondary-card > span:not(.home-card-icon) { display: grid; gap: 3px; }
.home-secondary-card strong { font-size: 14px; }
.home-secondary-card small { color: var(--muted); font-size: 12px; }
.home-secondary-card > b { margin-left: auto; color: var(--blue); font-size: 20px; }
.home-card-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: #fff6d5; font-size: 19px; }
.home-new .home-secondary-card { width: min(100%, 390px); margin-top: 13px; }
.home-active, .home-retired { padding-bottom: 46px; }
.home-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.home-title-row h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); }
.save-status.large { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 9px; color: #299b75; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.career-home-card { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.career-card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; }
.career-card-head h2 { margin: 5px 0 3px; font-size: 26px; }
.career-card-head p { margin: 0; color: var(--muted); font-size: 13px; }
.overall-home { text-align: right; }
.overall-home b, .overall-home span { display: block; }
.overall-home b { color: var(--blue); font-size: 54px; line-height: .8; letter-spacing: -.08em; }
.overall-home span { margin-top: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.career-card-meta { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin: 24px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.career-card-meta span { display: grid; gap: 5px; }
.career-card-meta small, .retired-clubs small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.career-card-meta b { font-size: 14px; }
.home-progress { height: 7px; margin-bottom: 22px; overflow: hidden; border-radius: 999px; background: #edf0f6; }
.home-progress span { display: block; height: 100%; border-radius: inherit; background: var(--turquoise); transition: width .45s ease; }
.career-home-card > .home-primary { width: 100%; }
.home-secondary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 13px; }
.retired-badge { padding: 7px 10px; border-radius: 99px; background: #fff6d5; color: #866a00; font-size: 10px; font-weight: 800; }
.retired-avatar { background: #29344f; }
.retired-meta { grid-template-columns: repeat(4, 1fr); }
.retired-clubs { display: grid; gap: 6px; margin: 0 0 22px; color: var(--ink); font-size: 13px; }
.retired-clubs small { color: var(--muted); }
.confirm-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(17,24,39,.38); backdrop-filter: blur(5px); animation: fadeIn .18s ease both; }
.confirm-dialog { width: min(420px, 100%); padding: 27px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.confirm-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 15px; border-radius: 12px; background: #fff0ef; color: var(--danger); font-weight: 900; }
.confirm-dialog h2 { margin-bottom: 9px; font-size: 23px; letter-spacing: -.04em; }
.confirm-dialog p { margin-bottom: 23px; color: var(--muted); font-size: 14px; }
.confirm-actions { display: flex; justify-content: end; gap: 9px; }
.confirm-actions .primary-btn, .confirm-actions .secondary-btn { min-height: 44px; }
.danger-btn { background: var(--danger); }
.danger-btn:hover { background: #e94f4f; }
@media (max-width: 620px) {
  .home-screen { width: 100%; margin-top: 10px; }
  .home-new { padding: 30px 4px 28px; }
  .home-copy { margin: 30px 0 23px; }
  .home-copy h1 { font-size: 38px; }
  .home-active, .home-retired { padding-bottom: 18px; }
  .home-title-row { align-items: start; margin-bottom: 14px; }
  .home-title-row h1 { font-size: 34px; }
  .save-status.large, .retired-badge { margin-top: 8px; font-size: 9px; }
  .career-home-card { padding: 19px; border-radius: 20px; }
  .career-card-head { gap: 11px; }
  .career-card-head h2 { font-size: 21px; }
  .career-card-head p { font-size: 11px; }
  .avatar-large { width: 48px; height: 48px; font-size: 17px; }
  .overall-home b { font-size: 42px; }
  .career-card-meta { gap: 8px; margin-top: 18px; padding-top: 14px; }
  .career-card-meta b { font-size: 12px; }
  .career-card-meta small { font-size: 8px; }
  .home-secondary-grid { grid-template-columns: 1fr; }
  .home-secondary-card { min-height: 66px; }
  .retired-meta { grid-template-columns: repeat(4, 1fr); }
  .retired-meta b { font-size: 15px; }
  .retired-clubs { font-size: 12px; }
  .confirm-dialog { padding: 23px; }
}

/* Finishing pass: compact game menu proportions and state-aware chrome */
html, body { min-height: 100%; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
.home-new { position: relative; isolation: isolate; width: min(540px, calc(100% - 32px)); max-width: 540px; padding: 58px 28px 70px; }
.home-new::before, .home-new::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.home-new::before { inset: 8% -18% -16%; border: 1px solid rgba(33,88,255,.075); border-radius: 50%; transform: rotate(-10deg); }
.home-new::after { right: -9%; bottom: 2%; width: 220px; height: 150px; opacity: .11; background: linear-gradient(90deg, transparent 49%, rgba(33,88,255,.42) 50%, transparent 51%), linear-gradient(0deg, transparent 49%, rgba(33,88,255,.42) 50%, transparent 51%); border: 1px solid rgba(33,88,255,.34); border-radius: 50%; transform: rotate(-10deg); }
.home-copy { position: relative; z-index: 1; margin: 28px 0 30px; }
.home-copy h1 { font-size: clamp(40px, 5.4vw, 60px); }
.home-new .home-primary { width: min(100%, 440px); min-height: 58px; }
.home-new .home-secondary-card { width: min(100%, 440px); margin-top: 15px; }
.home-secondary-card { border-color: rgba(23,23,23,.10); }
.home-secondary-card > b { color: #8290ae; }
.home-secondary-card:hover > b { color: var(--blue); }
.home-secondary-card .home-card-icon { opacity: .9; }
.home-active, .home-retired { width: min(920px, calc(100% - 32px)); }
.home-active .career-home-card, .home-retired .career-home-card { width: min(100%, 720px); margin: 0 auto; }
.home-active .home-secondary-grid, .home-retired .home-secondary-grid { width: min(100%, 720px); margin-right: auto; margin-left: auto; }
.home-active .home-primary, .home-retired .home-primary { min-height: 58px; }
.home-title-row { max-width: 720px; margin-right: auto; margin-left: auto; }
.home-title-row h1 { font-size: clamp(38px, 5vw, 56px); }
.bottom-nav b { font-size: inherit; font-weight: 700; }
@media (max-width: 620px) {
  .home-new { width: calc(100% - 40px); padding: 28px 0 30px; }
  .home-new::before { inset: 3% -35% -10%; }
  .home-new::after { right: -13%; bottom: 6%; width: 160px; height: 110px; }
  .home-copy { margin: 22px 0 24px; }
  .home-copy h1 { font-size: 40px; }
  .home-new .home-primary, .home-new .home-secondary-card { width: 100%; }
  .home-primary { min-height: 54px !important; }
  .home-active, .home-retired { width: calc(100% - 40px); }
  .home-title-row h1 { font-size: 36px; }
  .home-active .home-secondary-grid, .home-retired .home-secondary-grid { width: 100%; }
}

/* Career creation flow and in-season decision screens */
.creation-screen, .event-screen { width: min(760px, calc(100% - 32px)); min-height: calc(100dvh - 160px); margin: 18px auto 50px; padding: 12px 0 102px; }
.creation-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.creation-progress { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.creation-progress > div { display: flex; gap: 5px; }
.creation-progress i { display: block; width: 18px; height: 4px; border-radius: 99px; background: #dbe3f1; }
.creation-progress i.done { background: rgba(33,88,255,.48); }
.creation-progress i.active { background: var(--gold); }
.creation-back { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--blue); font-weight: 800; }
.creation-back:disabled { visibility: hidden; }
.creation-card { padding: clamp(24px,5vw,42px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.creation-card h1 { margin-bottom: 10px; font-size: clamp(29px,4.4vw,47px); line-height: 1.04; }
.creation-card > p { max-width: 520px; margin-bottom: 26px; color: var(--muted); font-size: 15px; }
.creation-actions { position: sticky; bottom: 10px; z-index: 3; display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid rgba(229,234,242,.9); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(25,45,90,.08); backdrop-filter: blur(10px); }
.creation-next { min-width: min(100%,280px); min-height: 54px; }
.creation-next:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.name-fields label { color: var(--ink); font-size: 13px; font-weight: 800; }
.name-fields input { width: 100%; min-height: 52px; margin-top: 7px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; outline: none; }
.name-fields input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,88,255,.1); }
.field-error { grid-column: 1/-1; min-height: 18px; margin: -2px 0 0; color: var(--danger); font-size: 12px; }
.country-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.country-card, .role-card, .subrole, .creation-option, .club-offer { position: relative; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; transition: .2s ease; }
.country-card:hover, .role-card:hover, .subrole:hover, .creation-option:hover, .club-offer:hover { border-color: rgba(33,88,255,.42); transform: translateY(-2px); }
.country-card.selected, .role-card.selected, .subrole.selected, .creation-option.selected, .club-offer.selected { border-color: var(--blue); background: #f6f8ff; box-shadow: inset 0 0 0 1px var(--blue); }
.country-card { display: grid; justify-items: start; min-height: 78px; padding: 11px; border-radius: 14px; }
.country-card span { font-size: 23px; }
.country-card b { margin-top: 3px; font-size: 12px; }
.country-card i, .role-card i, .club-offer i, .creation-option > i { position: absolute; top: 9px; right: 9px; display: none; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-style: normal; }
.selected > i { display: grid; }
.role-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.role-card { min-height: 126px; padding: 17px; border-radius: 17px; }
.role-card > span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 13px; border-radius: 11px; background: #eef2ff; color: var(--blue); font-size: 20px; }
.role-card strong, .role-card small { display: block; }
.role-card strong { font-size: 15px; }
.role-card small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.subrole-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.subrole-row > span { width: 100%; margin-bottom: 1px; color: var(--muted); font-size: 12px; font-weight: 800; }
.subrole { min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.creation-options { display: grid; gap: 10px; }
.creation-option { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; width: 100%; min-height: 96px; padding: 16px; border-radius: 17px; }
.choice-index { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #eff3fb; color: var(--blue); font-size: 11px; font-weight: 800; }
.creation-option strong, .creation-option small { display: block; }
.creation-option strong { font-size: 15px; }
.creation-option small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.creation-option em { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; font-style: normal; }
.creation-option em b { padding: 4px 6px; border-radius: 7px; background: #e5faf5; color: #168c73; font-size: 10px; }
.creation-option em b.negative { background: #fff0ef; color: #cc4b4b; }
.club-offers { display: grid; gap: 10px; }
.club-offer { width: 100%; min-height: 135px; padding: 17px; border-radius: 18px; }
.club-offer .club-country { display: block; color: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.club-offer strong, .club-offer small { display: block; }
.club-offer strong { margin-top: 5px; font-size: 18px; }
.club-offer small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.club-offer > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.club-offer > div b { padding: 5px 7px; border-radius: 8px; background: #f3f6fb; font-size: 10px; }
.club-offer > div em { color: var(--blue); font-style: normal; }
.review-profile { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.review-profile > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.review-avatar { display: grid; grid-row: span 2; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--blue); color: #fff; font-weight: 800; }
.review-profile h2 { margin: 0; font-size: 22px; }
.review-profile p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.review-score { text-align: right; }
.review-score b, .review-score span { display: block; }
.review-score b { color: var(--blue); font-size: 42px; line-height: .8; }
.review-score span { margin-top: 7px; color: var(--muted); font-size: 8px; font-weight: 800; }
.review-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; margin-top: 20px; }
.review-list span { display: grid; gap: 4px; }
.review-list small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.review-list b { font-size: 13px; }
.review-actions { justify-content: space-between; }
.event-screen { width: min(850px, calc(100% - 32px)); }
.player-status-header { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 18px; align-items: center; margin-bottom: 15px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.04); }
.player-status-header > div:first-child strong, .player-status-header > div:first-child span { display: block; }
.player-status-header > div:first-child strong { font-size: 15px; }
.player-status-header > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.status-overall { text-align: right; }.status-overall b { color: var(--blue); font-size: 30px; line-height: .8; }.status-overall small { color: var(--muted); font-size: 9px; font-weight: 800; }
.status-club { display: grid; gap: 3px; padding-left: 17px; border-left: 1px solid var(--line); font-size: 11px; }.status-club b { font-size: 12px; }
.status-mini { display: grid; grid-template-columns: 1fr 80px; gap: 8px; align-items: center; font-size: 11px; font-weight: 700; }.status-mini i { height: 6px; overflow: hidden; border-radius: 99px; background: #e8edf5; }.status-mini em { display: block; height: 100%; border-radius: inherit; background: var(--turquoise); }
.botey-event-card { max-width: 760px; padding: clamp(23px,5vw,42px); }
.choice-btn { min-height: 76px; }.choice-btn .choice-tone { display: inline-flex; width: max-content; margin-top: 8px; padding: 3px 6px; border-radius: 6px; background: #eef2ff; color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; }.choice-btn.is-selected { border-color: var(--blue); background: #f2f5ff; transform: scale(.99); }.choice-btn em { font-size: 20px; }
.choice-result-card { max-width: 600px; margin: 8vh auto 0; padding: clamp(26px,6vw,48px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); text-align: center; }.result-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 16px; background: #e5faf5; color: #108a70; font-size: 24px; font-weight: 800; }.choice-result-card h1 { font-size: clamp(28px,5vw,42px); }.choice-result-card p { color: var(--muted); }.result-changes { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 22px 0; }.result-changes span { padding: 7px 9px; border-radius: 9px; background: #eef2ff; color: var(--blue); font-size: 12px; font-weight: 800; }.choice-result-card .creation-next { margin: 8px auto 0; }
@media (max-width: 620px) { .creation-screen, .event-screen { width: calc(100% - 32px); min-height: calc(100dvh - 116px); margin-top: 4px; padding-bottom: 92px; }.creation-card { padding: 24px 18px; border-radius: 20px; }.creation-card h1 { font-size: 30px; }.creation-card > p { font-size: 15px; }.creation-actions { right: 0; left: 0; justify-content: stretch; }.creation-next { width: 100%; min-height: 54px; }.name-fields { grid-template-columns: 1fr; }.country-grid { grid-template-columns: repeat(2,1fr); }.country-card { min-height: 68px; }.role-grid { grid-template-columns: 1fr 1fr; }.role-card { min-height: 118px; padding: 14px; }.creation-option { min-height: 104px; padding: 14px; }.review-actions { flex-direction: column-reverse; }.review-actions > * { width: 100%; min-height: 52px; }.review-profile { gap: 12px; }.review-list { grid-template-columns: 1fr; gap: 10px; }.player-status-header { grid-template-columns: 1fr auto; gap: 10px; padding: 14px; }.status-club { grid-column: 1/-1; grid-row: 2; padding: 9px 0 0; border-top: 1px solid var(--line); border-left: 0; grid-template-columns: 1fr auto; }.status-mini { grid-template-columns: 1fr 75px; }.botey-event-card { padding: 24px 18px; }.choice-btn { min-height: 84px; padding: 14px; }.choice-btn .letter { display: none; }.choice-result-card { margin-top: 4vh; }.creation-back span { display:none; } }
