:root{
  --bg:#090b11;
  --surface:#111722;
  --surface2:#161d2b;
  --surface3:#202839;
  --border:rgba(222,182,121,.16);
  --text:#f5f1ea;
  --muted:#b9b0a4;
  --primary:#d7a05b;
  --primarySoft:rgba(215,160,91,.16);
  --gold:#f0c88d;
  --goldSoft:rgba(240,200,141,.18);
  --warning:#ecb96b;
  --danger:#d66a6a;
  --info:#87aefc;
  --emerald:#3bd29d;
  --radius:22px;
  --radiusSm:14px;
  --shadow:0 22px 60px rgba(0,0,0,.45);
  --shadowSoft:0 10px 28px rgba(0,0,0,.30);
}

html{
  background:
    radial-gradient(circle at 20% -10%, rgba(223,173,103,.10), transparent 30rem),
    radial-gradient(circle at 90% 0%, rgba(246,214,165,.08), transparent 22rem),
    linear-gradient(180deg,#0b0e14 0%, #090b11 100%);
}

body{
  background:
    radial-gradient(circle at 14% -6%, rgba(223,173,103,.10), transparent 28rem),
    radial-gradient(circle at 100% 4%, rgba(128,102,71,.10), transparent 20rem),
    linear-gradient(180deg,#0b0e14 0%, #090b11 100%);
  color:var(--text);
}

.skip-link{
  background:linear-gradient(135deg,#f2cb91,#c98a43);
  color:#2a1806;
  box-shadow:0 8px 22px rgba(201,138,67,.35);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible{
  outline:3px solid rgba(223,173,103,.45);
}

#header{
  height:74px;
  border-bottom:1px solid rgba(223,173,103,.12);
  background:linear-gradient(180deg,rgba(15,19,28,.92),rgba(12,15,23,.84));
  box-shadow:0 8px 28px rgba(0,0,0,.28);
  backdrop-filter:blur(18px) saturate(1.15);
}

.header-inner,
#main{
  width:min(calc(100% - 36px),1220px);
}

.brand{
  gap:12px;
  font-weight:900;
  letter-spacing:-.02em;
}

.brand img{
  width:42px;
  height:42px;
  padding:7px;
  border-radius:14px;
  background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.015));
  border:1px solid rgba(223,173,103,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), 0 10px 24px rgba(0,0,0,.24);
}

.brand small{
  color:#a99f92;
  font-size:.70rem;
  letter-spacing:.01em;
}

.desktop-nav{
  gap:8px;
}

.desktop-nav a,
#nav a{
  color:#bcb2a4;
  transition:all .18s ease;
}

.desktop-nav a{
  position:relative;
  padding:10px 14px;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent;
}

.desktop-nav a:hover{
  color:var(--text);
  background:rgba(255,255,255,.03);
  border-color:rgba(223,173,103,.10);
}

.desktop-nav a.active{
  color:#fff7ee;
  border-color:rgba(223,173,103,.28);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015)), linear-gradient(135deg,rgba(72,50,32,.55),rgba(31,24,20,.55));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.22), 0 10px 24px rgba(0,0,0,.16);
}

.desktop-nav a.active::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:-6px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,#f2cb91,#c98a43);
  box-shadow:0 0 18px rgba(242,203,145,.35);
}

.user-chip{
  padding:7px 12px 7px 7px;
  border:1px solid rgba(223,173,103,.18);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015)), linear-gradient(135deg,rgba(22,29,43,.96),rgba(16,22,32,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), var(--shadowSoft);
}

.avatar{
  width:38px;
  height:38px;
  color:#281707;
  background:linear-gradient(135deg,#f2cb91,#c98a43);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28), 0 8px 18px rgba(201,138,67,.25);
}

.user-copy{
  font-size:.8rem;
}

.user-copy span{
  color:#a89f93;
}

#main{
  padding:32px 0 52px;
}

.page{
  animation:enter .24s ease both;
}

.kicker{
  color:#e0b16f;
  letter-spacing:.14em;
}

.subtitle,
.metric-detail,
.metric-label,
.fixture-line,
.progress-meta,
.score-label,
.form label,
.notice,
.auth-form label,
.scoring-rule-list span,
.pwa-small-print,
.player-account-protected,
.player-account-copy small,
.preseason-check-row small,
.preseason-account-copy small,
.profile-password-panel,
.result-status-label,
.result-score-grid label,
.player-account-form label,
.player-account-form small,
.real-fixture-summary time{
  color:var(--muted);
}

.card,
.table-wrap,
.toast,
.notice,
.reminder-banner,
.preseason-check-row,
.preseason-account-option,
.fixture-editor-row,
.real-fixture-summary,
.completion-row,
.scoreboard-row,
.result-editor-row,
.player-account-form,
.player-account-card,
.player-account-stats span,
.score-btn,
.score-input,
.input,
.select,
.timebox,
.badge,
.boost,
.btn-secondary,
.btn-danger,
.auth-card,
.profile-password-form{
  border-color:rgba(223,173,103,.14);
}

.card,
.table-wrap,
.toast,
.notice,
.reminder-banner,
.auth-card{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015)),
    linear-gradient(135deg,rgba(22,29,43,.96),rgba(14,18,28,.97));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.22), var(--shadow);
}

.card::before,
.table-wrap::before,
.auth-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
  pointer-events:none;
}

.card-body{
  padding:22px;
}

.hero{
  min-height:270px;
  background:
    radial-gradient(circle at 88% 12%, rgba(223,173,103,.20), transparent 22rem),
    radial-gradient(circle at 0% 100%, rgba(146,96,45,.14), transparent 18rem),
    linear-gradient(135deg,rgba(23,29,43,.98),rgba(13,18,27,.98));
}

.hero .card-body{
  min-height:270px;
}

.hero h1{
  max-width:650px;
  font-size:clamp(2.2rem,5vw,4rem);
  letter-spacing:-.05em;
}

.hero .actions{
  gap:12px;
}

.btn{
  min-height:46px;
  padding:11px 16px;
  border-radius:15px;
  border:1px solid transparent;
  font-weight:900;
  letter-spacing:-.01em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 10px 22px rgba(0,0,0,.16);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 14px 28px rgba(0,0,0,.20);
}

.btn-primary{
  color:#2b1908;
  background:linear-gradient(135deg,#f2cb91,#c98a43);
  border-color:rgba(255,227,183,.42);
}

.btn-secondary{
  color:var(--text);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.012)), rgba(20,26,38,.96);
}

.btn-ghost{
  color:#d7c8b5;
}

.btn-danger{
  color:#ffb1b1;
  background:linear-gradient(180deg,rgba(148,49,49,.22),rgba(95,29,29,.20));
  border-color:rgba(214,106,106,.28);
}

.pill{
  border:1px solid transparent;
  border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.success{
  background:rgba(59,210,157,.12);
  border-color:rgba(59,210,157,.24);
  color:#7ae4ba;
}

.warning,
.gold{
  background:rgba(223,173,103,.14);
  border-color:rgba(223,173,103,.24);
  color:#f0cb92;
}

.danger{
  background:rgba(214,106,106,.12);
  border-color:rgba(214,106,106,.24);
  color:#ffb0b0;
}

.info{
  background:rgba(135,174,252,.12);
  border-color:rgba(135,174,252,.22);
  color:#b8ccff;
}

.metric-value{
  font-size:1.9rem;
  letter-spacing:-.05em;
}

.progress{
  height:11px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(223,173,103,.10);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.28);
}

.progress>span{
  background:linear-gradient(90deg,#b77939,#f2cb91 62%,#f7dfb8);
  box-shadow:0 0 16px rgba(242,203,145,.24);
}

.timebox{
  min-width:64px;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.012)), rgba(14,20,31,.9);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.timebox strong{
  font-size:1.35rem;
}

.fixture,
.prediction-card,
.player-account-card{
  border-radius:20px;
}

.fixture-line{
  font-size:.74rem;
}

.badge{
  border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015)), rgba(18,24,36,.94);
  color:#d8cabc;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.team-name{
  font-weight:900;
}

.prediction-card.missing,
.reminder-incomplete,
.notice.warning{
  border-color:rgba(223,173,103,.30);
}

.prediction-card.boosted{
  border-color:rgba(240,200,141,.35);
  background:
    linear-gradient(180deg,rgba(242,203,145,.05),rgba(255,255,255,.01)),
    linear-gradient(135deg,rgba(27,21,17,.95),rgba(16,20,30,.97));
}

.score-btn,
.score-input,
.input,
.select{
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.012)), rgba(13,19,29,.95);
  color:var(--text);
  border-radius:13px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.score-btn{
  font-size:1.1rem;
}

.score-input{
  font-size:1.25rem;
}

.boost{
  color:#f0cb92;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01)), rgba(13,19,29,.75);
}

.boost.active{
  color:#2b1908;
  border-color:rgba(255,227,183,.42);
  background:linear-gradient(135deg,#f2cb91,#c98a43);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20), 0 8px 18px rgba(201,138,67,.20);
}

.save{
  color:#cabba7;
}

.save::before{
  background:#d7a05b;
}

.save.saving::before{
  background:#ecb96b;
}

.save.offline::before{
  background:#d66a6a;
}

.notice{
  background:
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.012)),
    linear-gradient(135deg,rgba(22,29,43,.96),rgba(14,18,28,.97));
}

.table-wrap{
  border-radius:22px;
}

table{
  background:transparent;
}

th,
td{
  border-bottom:1px solid rgba(223,173,103,.08);
}

th{
  color:#ab9f90;
}

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

.you,
.podium > article:first-child{
  background:linear-gradient(135deg,rgba(223,173,103,.12),rgba(16,22,32,.94));
}

.podium > article{
  border-radius:20px;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.012)), rgba(16,22,32,.96);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.podium strong{
  color:#f0cb92;
}

.toast{
  color:var(--text);
}

.auth-shell{
  padding:38px 0;
}

.auth-card,
.auth-card-wide{
  max-width:520px;
}

.auth-logo{
  width:64px;
  height:64px;
  padding:9px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  border:1px solid rgba(223,173,103,.18);
}

.reminder-banner{
  border-radius:18px;
  box-shadow:var(--shadowSoft);
}

.reminder-complete{
  background:linear-gradient(135deg,rgba(59,210,157,.12),rgba(18,24,36,.96));
}

.reminder-incomplete{
  background:linear-gradient(135deg,rgba(223,173,103,.12),rgba(18,24,36,.96));
}

.reminder-urgent{
  background:linear-gradient(135deg,rgba(214,106,106,.16),rgba(18,24,36,.96));
}

.reminder-locked{
  background:linear-gradient(135deg,rgba(148,163,184,.10),rgba(18,24,36,.96));
}

.empty-state{
  min-height:210px;
}

#toast{
  right:20px;
  bottom:20px;
}

@media (max-width:820px){
  #header{
    height:68px;
  }

  .header-inner,
  #main{
    width:min(calc(100% - 24px),1220px);
  }

  #nav{
    border-top:1px solid rgba(223,173,103,.14);
    background:linear-gradient(180deg,rgba(15,19,28,.95),rgba(10,13,20,.98));
    backdrop-filter:blur(18px) saturate(1.1);
    box-shadow:0 -10px 28px rgba(0,0,0,.28);
  }

  #nav a{
    min-height:58px;
    border-radius:14px;
  }

  #nav a.active{
    color:#fff7ee;
    background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015)), linear-gradient(135deg,rgba(72,50,32,.55),rgba(31,24,20,.55));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  }

  #nav b{
    font-size:1rem;
  }

  .card,
  .table-wrap,
  .auth-card,
  .reminder-banner{
    border-radius:20px;
  }
}

@media (max-width:520px){
  .card-body{
    padding:16px;
  }

  .hero h1{
    font-size:clamp(1.9rem,8vw,3rem);
  }

  .btn{
    border-radius:14px;
  }

  .score-btn,
  .score-input,
  .input,
  .select,
  .badge{
    border-radius:11px;
  }
}
