/* ============================================================
   足坛传奇生涯 — Bright Football Manga Magazine Theme
   ============================================================ */

/* ---- 1. Design Variables & Reset ---- */
:root {
  --bg-primary: #FFF3D6;
  --bg-secondary: #FFF8E7;
  --bg-card-hover: #FFFDF5;
  --primary: #70B94B;
  --primary-dark: #5A9A3B;
  --accent-gold: #FFD33D;
  --accent-orange: #F47745;
  --danger: #E53E3E;
  --success: #70B94B;
  --blue: #3B82F6;
  --accent-blue: #2D8CFF;
  --text-primary: #26352B;
  --text-secondary: #4A5A4E;
  --text-muted: #8A9A8E;
  --border-ink: #26352B;
  --border-thick: 2.5px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-comic: 3px 3px 0 rgba(38, 53, 43, 0.18);
  --shadow-comic-sm: 2px 2px 0 rgba(38, 53, 43, 0.12);
  --shadow-comic-green: 3px 3px 0 rgba(112, 185, 75, 0.3);
  --shadow-comic-gold: 3px 3px 0 rgba(255, 211, 61, 0.35);
  --gradient-primary: linear-gradient(135deg, #70B94B, #5A9A3B);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #FFFCF2 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- 2. Global Layout & Page Container ---- */
#app { max-width: 420px; margin: 0 auto; min-height: 100vh; position: relative; }
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
.screen-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border-bottom: 3px solid var(--border-ink);
}
.screen-header h2 {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.screen-body { padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

/* ---- 3. Buttons, Forms, Tags & Toast ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thick) solid var(--border-ink);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 13px 24px;
  transition: all .12s;
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  text-transform: uppercase;
}
.btn:active { transform: translate(2px, 2px); box-shadow: none !important; }
.btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }

.btn-gold {
  background: var(--accent-gold);
  color: var(--text-primary);
  border-color: var(--border-ink);
  box-shadow: var(--shadow-comic);
}
.btn-gold:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(38, 53, 43, 0.22); }
.btn-gold::after {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 12px; height: 12px;
  background: var(--accent-orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  opacity: 0.5;
}

.btn-secondary {
  background: #fff;
  color: var(--text-primary);
  border-color: var(--border-ink);
}
.btn-secondary:hover { background: var(--bg-secondary); }

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid rgba(38, 53, 43, 0.2);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: #B82E2E;
  box-shadow: 3px 3px 0 rgba(229, 62, 62, 0.25);
}
.btn-sm { padding: 7px 16px; font-size: 11px; border-radius: 2px; min-height: auto; }
.btn-lg { padding: 15px 28px; font-size: 15px; min-height: 54px; }
.btn-full { width: 100%; margin-top: 10px; }

.btn-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
  min-height: auto;
  font-weight: 700;
  text-transform: none;
}
.btn-back:hover { color: var(--primary); }

.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--accent-gold);
  padding: 12px 24px;
  border-radius: 2px;
  border: var(--border-thick) solid var(--accent-gold);
  box-shadow: var(--shadow-comic-gold);
  z-index: 100;
  font-size: 13px;
  font-weight: 700;
  transition: opacity .3s;
  max-width: 90%;
  text-align: center;
}
.toast.hidden { opacity: 0; pointer-events: none; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  color: var(--primary);
  font-size: 11px;
  margin-bottom: 6px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: var(--border-thick) solid rgba(38, 53, 43, 0.2);
  border-radius: 2px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(112, 185, 75, 0.15), var(--shadow-comic-green);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(38,53,43,0.04);
  border-radius: 2px;
  font-size: 11px;
  color: var(--text-secondary);
  border: 2px solid rgba(38,53,43,0.1);
  font-weight: 700;
}
.tag-gold {
  color: var(--accent-orange);
  border-color: rgba(244, 119, 69, 0.3);
  background: rgba(244, 119, 69, 0.06);
}

.gradient-card {
  background: #fff;
  border-radius: 0;
  padding: 16px;
  border: none;
  border-bottom: 1px solid rgba(38, 53, 43, 0.08);
  margin-bottom: 12px;
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state p { margin-bottom: 12px; }

/* ---- 4. Home Screen ---- */
.home-bg {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 12%, #fffdf1 0%, transparent 55%), linear-gradient(150deg, #d9edbf 0%, #fff3d6 48%, #9ac97c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.home-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 243, 214, 0.55) 0%,
    rgba(255, 243, 214, 0.35) 25%,
    rgba(255, 243, 214, 0.5) 55%,
    rgba(255, 243, 214, 0.92) 100%
  );
  pointer-events: none;
}
.home-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(38,53,43,0.015) 3px, rgba(38,53,43,0.015) 5px);
  pointer-events: none;
}
.home-content { text-align: center; width: 100%; position: relative; z-index: 1; }
.home-title-wrap {
  margin-bottom: 28px;
  position: relative;
}
.home-title-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 211, 61, 0.08) 0deg 5deg,
    transparent 5deg 15deg
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.home-subtitle {
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 8px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 800;
}
.home-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 3px;
  text-shadow: 2px 2px 0 rgba(255, 211, 61, 0.6);
  -webkit-text-fill-color: var(--text-primary);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
}
.home-desc {
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.9;
  font-size: 14px;
  font-weight: 500;
}
.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}
.home-tip {
  margin-top: 32px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
#screen-home .btn-secondary {
  background: rgba(255,255,255,0.85);
  border-color: var(--border-ink);
  color: var(--text-primary);
  box-shadow: var(--shadow-comic-sm);
}
#screen-home .btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
#screen-home .btn-outline {
  background: transparent;
  border-color: rgba(38, 53, 43, 0.35);
  color: var(--text-secondary);
  box-shadow: var(--shadow-comic-sm);
}
#screen-home .btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---- 5. Tunnel Background — shared by Attributes, Career, MatchDay ---- */
#screen-attributes,
#screen-career,
#screen-matchday {
  position: relative;
  background: radial-gradient(ellipse at 50% 12%, #fffdf1 0%, transparent 55%), linear-gradient(150deg, #d9edbf 0%, #fff3d6 48%, #9ac97c 100%);
}
#screen-attributes::before,
#screen-career::before,
#screen-matchday::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 243, 214, 0.8) 0%,
    rgba(255, 243, 214, 0.72) 20%,
    rgba(255, 243, 214, 0.82) 50%,
    rgba(255, 243, 214, 0.95) 100%
  );
  z-index: 0;
  pointer-events: none;
}
#screen-attributes > .screen-header,
#screen-attributes > .screen-body,
#screen-career > .screen-header,
#screen-career > .screen-body,
#screen-matchday > .screen-header,
#screen-matchday > .screen-body {
  position: relative;
  z-index: 1;
}
#screen-attributes > .screen-header,
#screen-career > .screen-header,
#screen-matchday > .screen-header {
  background: rgba(255, 243, 214, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--border-ink);
}
/* Attributes screen: lighter overlay so tunnel background is more visible */
#screen-attributes::before {
  background: linear-gradient(
    180deg,
    rgba(255, 243, 214, 0.65) 0%,
    rgba(255, 243, 214, 0.60) 15%,
    rgba(255, 243, 214, 0.75) 50%,
    rgba(255, 243, 214, 0.90) 100%
  );
}

/* Tunnel pages: semi-transparent buttons over background image */
#screen-home .btn-secondary,
#screen-attributes .btn-secondary,
#screen-career .btn-secondary,
#screen-matchday .btn-secondary {
  background: rgba(255,255,255,0.85);
}
#screen-attributes .btn-secondary:hover,
#screen-career .btn-secondary:hover,
#screen-matchday .btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- 6. Create Player ---- */
.position-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pos-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  background: #fff;
  border: 2px solid rgba(38, 53, 43, 0.10);
  border-left: 3px solid rgba(38, 53, 43, 0.10);
  border-radius: 2px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
}
.pos-btn strong { font-size: 16px; color: var(--text-primary); font-weight: 900; }
.pos-btn small { font-size: 10px; margin-top: 2px; letter-spacing: 0.3px; }
.pos-btn.active {
  border-color: rgba(38, 53, 43, 0.10);
  border-left: 3px solid var(--accent-gold);
  background: rgba(255, 211, 61, 0.08);
}
.pos-btn.active strong { color: var(--accent-orange); }
#screen-create > .screen-body > .btn-full { margin-top: 8px; }

/* ---- 7. Build Attributes — Scout Report / Collection Card ---- */
.draw-count {
  font-size: 11px;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 0.3px;
}
#screen-attributes .draw-count {
  font-weight: 800;
}

/* --- Player Card --- */
.player-preview-card {
  background: #FFFDF5;
  border-radius: 3px;
  padding: 0;
  margin-bottom: 16px;
  border: 2px solid var(--border-ink);
  box-shadow: 4px 4px 0 rgba(38, 53, 43, 0.10);
  position: relative;
  overflow: hidden;
}
.player-preview-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold) 40%, var(--primary) 40%, var(--primary) 100%);
}

.ppc-header {
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding: 16px 14px 10px;
  margin: 0;
  position: relative;
}
.ppc-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  border-bottom: 1.5px dashed rgba(38, 53, 43, 0.15);
}

.ppc-ovr {
  font-size: 46px;
  font-weight: 900;
  color: var(--border-ink);
  line-height: 0.9;
  letter-spacing: -3px;
  margin-right: 10px;
  position: relative;
  z-index: 1;
}
.ppc-ovr::after {
  content: '';
  position: absolute;
  bottom: 0; left: -4px; right: -4px;
  height: 16px;
  background: var(--accent-gold);
  opacity: 0.55;
  z-index: -1;
  transform: skewX(-6deg);
  border-radius: 1px;
}

.ppc-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 2px;
}
.ppc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ppc-pos {
  font-size: 11px;
  color: var(--border-ink);
  background: rgba(45, 140, 255, 0.10);
  border: none;
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ppc-number {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.5px;
}
.ppc-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--border-ink);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* --- 33 Attribute Grid --- */
.attr-grid-33 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  padding: 10px 14px 14px;
}
.attr-group-33 {
  background: transparent;
  border-radius: 0;
  padding: 4px 0 6px;
  border: none;
  border-top: none;
}
.attr-group-title {
  font-size: 9px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
  padding: 0 0 3px 0;
  border-bottom: none;
  font-weight: 800;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
.attr-group-title::before {
  content: '';
  display: inline-block;
  width: 10px; height: 3px;
  background: var(--primary);
  border-radius: 1px;
  flex-shrink: 0;
}
.attr-slot-33 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 3px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 2px;
}
.attr-slot-33.filled { }
.attr-slot-33.locked-attr {
  background: rgba(112, 185, 75, 0.06);
}
.as14-name { font-size: 11px; color: var(--text-secondary); }
.as14-val { font-size: 13px; font-weight: 800; min-width: 22px; text-align: right; }
.as14-val.locked {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  opacity: 0.5;
}
.as14-lock { font-size: 8px; margin-left: 2px; opacity: 0.7; }

/* --- Draw Area --- */
#draw-area { margin-top: 16px; }
#screen-attributes #draw-area {
  background: rgba(255, 253, 245, 0.85);
  border-radius: 3px;
  padding: 14px;
  border: 1.5px solid rgba(38, 53, 43, 0.12);
  box-shadow: none;
  position: relative;
}

/* --- Club Card: scout report header --- */
.draw-club-card {
  background: transparent;
  border: none;
  border-left: 4px solid var(--primary);
  border-radius: 0;
  padding: 10px 14px;
  text-align: left;
  margin-bottom: 12px;
  box-shadow: none;
  position: relative;
  overflow: visible;
}
.draw-club-card::after { display: none; }
.dcc-name {
  font-size: 20px;
  font-weight: 900;
  color: var(--border-ink);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.dcc-league {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* --- Roster --- */
.draw-roster-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-left: 2px;
}
.draw-roster-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1.5px solid rgba(38, 53, 43, 0.10);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
}
.draw-roster-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(38, 53, 43, 0.05);
  transition: background .12s;
}
.draw-roster-item:last-child { border-bottom: none; }
.draw-roster-item:hover { background: rgba(112, 185, 75, 0.05); }
.draw-roster-item:active { background: rgba(112, 185, 75, 0.10); }
.dri-pos {
  font-size: 10px;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.dri-name { flex: 1; font-size: 13px; color: var(--text-primary); font-weight: 500; }
.dri-ovr { font-size: 14px; font-weight: 800; min-width: 24px; text-align: right; }
.draw-roster-empty { text-align: center; padding: 20px; color: var(--text-muted); font-size: 13px; }

/* --- Selected Player Bar --- */
.draw-selected-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-left: 3px solid var(--accent-gold);
  border-radius: 2px;
  margin-bottom: 10px;
  box-shadow: none;
}
.dsp-back { font-size: 12px; color: var(--primary); cursor: pointer; font-weight: 600; }
.dsp-back:active { opacity: 0.6; }
.dsp-name { flex: 1; font-size: 14px; font-weight: 800; color: var(--text-primary); }
.dsp-meta { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* --- Pick Header --- */
.draw-pick-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1.5px solid rgba(38, 53, 43, 0.08);
}
.dph-title { flex: 1; font-size: 13px; color: var(--text-primary); font-weight: 800; }
.dph-count {
  font-size: 12px;
  color: #fff;
  font-weight: 800;
  background: var(--accent-orange);
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.dph-decay {
  font-size: 10px;
  background: transparent;
  border: 1px solid rgba(38, 53, 43, 0.15);
  border-radius: 2px;
  padding: 2px 8px;
  color: var(--text-muted);
  font-weight: 700;
}

/* --- Attribute Selection Grid --- */
.dc-attrs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
}
.dc-attr-group {
  background: transparent;
  border-radius: 0;
  padding: 4px 0 6px;
  border: none;
}
.dc-ag-title {
  font-size: 9px;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dc-ag-title::before {
  content: '';
  display: inline-block;
  width: 10px; height: 3px;
  background: var(--primary);
  border-radius: 1px;
  flex-shrink: 0;
}
.dc-attr-row {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.6;
  transition: background .12s;
}
.dc-attr-row.selectable {
  cursor: pointer;
  background: transparent;
  border-left: 2px solid var(--primary);
  padding-left: 6px;
}
.dc-attr-row.selectable:hover {
  background: rgba(112, 185, 75, 0.08);
}
.dc-attr-row.selectable:active {
  background: rgba(112, 185, 75, 0.16);
}
.dc-attr-row.locked {
  opacity: 0.35;
  cursor: default;
}
.dc-attr-row.disabled {
  opacity: 0.45;
  cursor: default;
  border-left: 2px solid transparent;
  padding-left: 6px;
}
.dc-ar-name { flex: 1; font-size: 11px; color: var(--text-secondary); }
.dc-ar-val { font-size: 12px; font-weight: 800; min-width: 20px; text-align: right; }
.dc-ar-lock { font-size: 8px; color: var(--text-muted); margin-left: 2px; opacity: 0.7; }

/* --- Action Buttons --- */
.draw-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.draw-actions .btn { flex: 1; min-width: 100px; }

/* ---- 8. Select Club ---- */
.league-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.league-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.league-tab.active {
  color: var(--text-primary);
  background: transparent;
  border-bottom-color: var(--accent-gold);
}

.league-detail { padding: 16px 0; }
.league-detail h3 { font-size: 20px; margin-bottom: 8px; font-weight: 800; }
.league-detail p { color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.league-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

.club-card {
  background: #fff;
  border: none;
  border-left: 3px solid var(--primary);
  border-bottom: 1px solid rgba(38, 53, 43, 0.06);
  border-radius: 0;
  padding: 14px 12px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .15s;
}
.club-card:hover { background: rgba(255, 211, 61, 0.04); }
.club-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.club-badge {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}
.club-details { min-width: 0; }
.club-details h4 { font-size: 15px; margin-bottom: 2px; font-weight: 700; }
.club-details p { font-size: 12px; color: var(--text-muted); }
.club-meta { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--text-secondary); }

/* ---- 9. Career Screen ---- */
.career-player-card {
  background: #fff;
  border-radius: 0;
  padding: 20px;
  border: none;
  border-bottom: 2px solid var(--border-ink);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.career-player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent-gold), var(--primary));
}
.cpc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.cpc-ovr {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent-orange);
  line-height: 1;
}
.cpc-info h3 { font-size: 20px; margin-bottom: 2px; font-weight: 800; }
.cpc-info p { font-size: 13px; color: var(--text-secondary); }
.cpc-contract { font-size: 12px; color: var(--success); margin-top: 2px; font-weight: 600; }
.free-agent { color: var(--danger); }
.cpc-age {
  margin-left: auto;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-muted);
}
.cpc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cpc-strengths { font-size: 13px; margin-bottom: 10px; }
.strength-good { color: var(--success); margin-right: 12px; font-weight: 600; }
.strength-weak { color: var(--danger); font-weight: 600; }
.cpc-season-info { display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; flex-wrap: wrap; }
.injured { color: var(--danger); font-weight: 700; }

.cpc-bars { margin-bottom: 10px; }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.bar-label { font-size: 11px; color: var(--text-muted); width: 28px; text-align: right; font-weight: 600; }
.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(38, 53, 43, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.bar-morale { background: linear-gradient(90deg, #5A9A3B, #70B94B); }
.bar-reputation { background: linear-gradient(90deg, #2D8CFF, #5BA3FF); }
.bar-val { font-size: 12px; color: var(--text-secondary); width: 24px; font-weight: 700; }

.cpc-nt-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding: 7px 12px;
  background: rgba(45, 140, 255, 0.06);
  border: 1px solid rgba(45, 140, 255, 0.15);
  border-radius: var(--radius-sm);
}
.nt-badge {
  font-weight: 700;
  color: var(--accent-blue);
}
.btn-nt-career {
  border-color: #E53E3E;
  color: #E53E3E;
}
.btn-nt-career:hover {
  background: rgba(229, 62, 62, 0.06);
}

.cpc-career-summary { display: flex; gap: 0; justify-content: space-between; }
.stat-mini { text-align: center; flex: 1; }
.stat-mini .stat-val { display: block; font-size: 22px; font-weight: 800; color: var(--text-primary); }
.stat-mini .stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

.retire-notice {
  background: rgba(229, 62, 62, 0.04);
  border: none;
  border-left: 3px solid var(--danger);
  border-radius: 0;
  padding: 14px 16px;
  text-align: left;
  color: var(--danger);
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 13px;
}

.career-actions { display: flex; flex-direction: column; gap: 0; }
#screen-career .career-actions .btn {
  border-color: var(--border-ink);
}
#screen-career .btn-outline {
  background: rgba(255,255,255,0.75);
  border-color: rgba(38,53,43,0.2);
  color: var(--text-secondary);
}

/* Career page: ensure text contrast on tunnel bg */
#screen-career .career-top { color: var(--text-primary); }
#screen-career .gradient-card {
  background: rgba(255,255,255,0.92);
  border: none;
  border-bottom: 1px solid rgba(38, 53, 43, 0.08);
}
#screen-career .to-club strong { color: var(--text-primary); }
#screen-career .to-club span { color: var(--text-muted); }

/* ---- 10. Match Day — Manga Magazine / Retro Scoreboard ---- */
.md-progress {
  font-size: 11px;
  color: var(--accent-orange);
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* --- Season Stats Row --- */
.md-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  padding: 12px 6px;
  margin-bottom: 12px;
  border: none;
  box-shadow: none;
  border-bottom: 1.5px solid rgba(38, 53, 43, 0.08);
}
.md-stat { text-align: center; flex: 1; }
.md-sv { display: block; font-size: 22px; font-weight: 900; color: var(--border-ink); line-height: 1.2; }
.md-sl { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* --- Recent Form --- */
.md-form {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}
.form-W, .form-D, .form-L {
  display: inline-block;
  width: 22px; height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
  border: none;
  box-shadow: none;
}
.form-W {
  background: var(--primary);
  color: white;
}
.form-D {
  background: #94a3b8;
  color: white;
}
.form-L {
  background: var(--danger);
  color: white;
}

/* --- Next Match: Scoreboard Style --- */
.md-next-match {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--border-ink);
  border-radius: 3px;
  padding: 18px 16px 14px;
  margin-bottom: 14px;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(38, 53, 43, 0.08);
  position: relative;
  overflow: hidden;
}
.md-next-match::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-gold) 50%, var(--primary) 50%, var(--primary) 100%);
}
.md-next-match.md-skipped {
  opacity: 0.4;
  border-style: dashed;
  box-shadow: none;
}
.md-next-match.md-skipped::before { display: none; }
.md-comp {
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.md-fixture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.md-team {
  font-size: 17px;
  font-weight: 900;
  flex: 1;
  text-align: center;
  color: var(--border-ink);
  line-height: 1.2;
}
.md-team.md-us { color: var(--primary-dark); }
.md-vs {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 800;
  background: transparent;
  padding: 2px 0;
  border: none;
  letter-spacing: 2px;
}
.md-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.md-meta .injured { color: var(--danger); font-weight: 700; }
.md-skip-msg { font-size: 13px; color: var(--text-muted); }

/* --- Last Result: Match Report Card --- */
.md-last-result {
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-left: 3px solid transparent;
  border-radius: 2px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.md-last-result.md-win { border-left-color: var(--success); }
.md-last-result.md-draw { border-left-color: #94a3b8; }
.md-last-result.md-loss { border-left-color: var(--danger); }
.md-lr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.md-lr-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.md-lr-result { font-size: 13px; font-weight: 900; }
.md-win .md-lr-result { color: var(--success); }
.md-draw .md-lr-result { color: #94a3b8; }
.md-loss .md-lr-result { color: var(--danger); }
.md-lr-score {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--border-ink);
  letter-spacing: -0.5px;
}
.md-lr-player { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* Match events */
.md-events {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(38, 53, 43, 0.10);
  max-height: 180px;
  overflow-y: auto;
}
.md-event {
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 0;
  line-height: 1.5;
}
.md-event.md-event-player {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Match stats */
.md-match-stats {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(38, 53, 43, 0.10);
}
.ms-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 11px;
  color: var(--text-secondary);
}
.ms-row span:nth-child(1),
.ms-row span:nth-child(3) {
  font-weight: 700;
  min-width: 36px;
}
.ms-row span:nth-child(1) { text-align: left; }
.ms-row span:nth-child(3) { text-align: right; }
.ms-row span:nth-child(2) {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  flex: 1;
}

/* --- Action Buttons --- */
.md-actions { margin-bottom: 14px; }
.md-actions .btn-full { margin-bottom: 8px; }
.md-actions-row { display: flex; gap: 6px; }
.md-actions-row .btn { flex: 1; font-size: 12px; padding: 10px 8px; min-height: 40px; }

/* NT Call-up */
.nt-callup-card {
  background: #fff;
  border-radius: 0;
  padding: 28px 24px;
  text-align: center;
  border: none;
  border-top: 3px solid var(--danger);
  border-bottom: 1px solid rgba(38, 53, 43, 0.08);
  margin: 20px 0;
}
.nt-callup-icon { font-size: 48px; margin-bottom: 12px; }
.nt-callup-card h3 { color: var(--danger); margin-bottom: 12px; font-size: 22px; font-weight: 900; text-transform: uppercase; }
.nt-callup-card p { color: var(--text-primary); margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.nt-callup-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.nt-callup-desc { color: var(--text-secondary); font-size: 13px; }

/* League table */
.md-table {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  padding: 12px;
  border: none;
  margin-top: 8px;
}
.md-table h4 {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
}
.md-table-scroll {
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.md-table-scroll thead th {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1;
}
.md-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.md-table th {
  text-align: left;
  color: var(--text-muted);
  padding: 4px 3px;
  border-bottom: 1.5px solid var(--border-ink);
  font-weight: 800;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.md-table td {
  padding: 5px 3px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(38, 53, 43, 0.04);
  font-size: 11px;
}
.md-table tr.md-table-me td {
  color: var(--primary-dark);
  font-weight: 800;
  background: rgba(112, 185, 75, 0.06);
  border-left: 2px solid var(--primary);
}

/* Matchday-specific overrides for tunnel bg */
#screen-matchday .md-last-result {
  background: rgba(255, 255, 255, 0.82);
}
#screen-matchday .md-actions-row .btn-secondary {
  background: rgba(255, 255, 255, 0.85);
}
#screen-matchday .match-cal-plan-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(38, 53, 43, 0.15);
  color: var(--text-secondary);
  border-radius: 2px;
}

/* Match Calendar */
.match-cal { margin: 10px 0; }
.match-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.match-cal-header h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.match-cal-plan-btn { font-size: 10px; padding: 3px 8px; }
.match-cal-grid {
  display: flex; flex-wrap: wrap; gap: 3px;
}
.match-cal-cell {
  min-width: 30px; min-height: 30px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; cursor: pointer;
  transition: transform .1s;
  border: 1.5px solid transparent;
}
.match-cal-cell:hover { transform: scale(1.15); }
.cal-win { background: var(--primary); color: #fff; border-color: transparent; }
.cal-draw { background: #94a3b8; color: #fff; border-color: transparent; }
.cal-loss { background: var(--danger); color: #fff; border-color: transparent; }
.cal-rested { background: rgba(45, 140, 255, 0.10); color: var(--accent-blue); border-color: rgba(45, 140, 255, 0.3); }
.cal-future { background: rgba(38, 53, 43, 0.04); color: var(--text-muted); border-color: rgba(38, 53, 43, 0.08); }
.cal-current { box-shadow: 0 0 0 2px var(--accent-orange); }

/* Match Detail Modal */
.match-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38, 53, 43, 0.45); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.match-modal {
  background: #FFFDF5;
  border-radius: 3px;
  max-width: 380px; width: 100%; max-height: 80vh; overflow-y: auto;
  padding: 18px;
  box-shadow: 4px 4px 0 rgba(38, 53, 43, 0.12), 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--border-ink);
}
.match-modal-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px dashed rgba(38, 53, 43, 0.10);
}
.match-modal-header strong {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.match-modal-close {
  background: none; border: none; font-size: 18px; cursor: pointer;
  color: var(--text-muted); padding: 4px; line-height: 1;
}
.match-modal-close:active { opacity: 0.5; }
.match-modal-score {
  text-align: center; font-size: 16px; font-weight: 800; margin: 10px 0;
  display: flex; align-items: center; justify-content: center;
}
.match-modal-score-num {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  padding: 2px 10px;
  border-radius: 6px;
  margin: 0 8px;
}
.match-modal-comp {
  text-align: center; font-size: 10px; color: var(--text-muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.match-modal-player {
  padding: 8px 10px;
  background: rgba(112, 185, 75, 0.04);
  border-left: 2px solid var(--primary);
  border-radius: 0;
  margin-top: 10px;
  font-size: 12px;
}
.match-modal-player .player-stat { display: inline-block; margin-right: 8px; }
.match-modal-extra {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.match-modal-skipped {
  text-align: center;
  color: var(--text-secondary);
  border-left: none;
  background: none;
}
.match-modal-events { margin-top: 8px; font-size: 11px; color: var(--text-muted); }
.match-modal-events div { padding: 2px 0; }
.match-modal-vs { margin: 0 8px; color: var(--text-secondary); }
.match-modal-actions { text-align: center; margin-top: 14px; }

/* Rest Plan Modal */
.rest-plan-modal { max-width: 320px; }
.rest-plan-desc { font-size: 12px; color: var(--text-secondary); margin: 0 0 4px; }
.rest-plan-options { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rest-plan-opt {
  padding: 10px 12px;
  border: 1.5px solid rgba(38, 53, 43, 0.10);
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  transition: all .12s;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}
.rest-plan-opt:hover, .rest-plan-opt.rp-active {
  border-color: var(--primary);
  background: rgba(112, 185, 75, 0.05);
}
.rest-plan-opt.rp-active { font-weight: 800; }

/* ---- 11. Season Result — Magazine Special Issue ---- */

/* --- Page-level: Season screen background --- */
#screen-season {
  background: linear-gradient(168deg, #FFFDF5 0%, #FFF8E6 40%, #F6FFEF 100%);
}
#screen-season .screen-header {
  background: var(--border-ink);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}
#screen-season .screen-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--accent-gold) 0, var(--accent-gold) 12px, transparent 12px, transparent 16px);
}
#screen-season .screen-header h2 {
  color: #FFFDF5;
  font-size: 13px;
  letter-spacing: 3px;
}

/* --- Magazine wrapper --- */
.sr-magazine {
  position: relative;
}

/* --- A. Cover header / Season title --- */
.sr-cover-header {
  text-align: center;
  padding: 20px 16px 16px;
  margin: -16px -16px 0;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,243,214,0.5) 0%, transparent 100%),
    repeating-linear-gradient(
      0deg,
      transparent 0, transparent 3px,
      rgba(112,185,75,0.03) 3px, rgba(112,185,75,0.03) 4px
    );
}
.sr-cover-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--border-ink);
}
.sr-season-badge {
  display: inline-block;
  font-size: 36px;
  font-weight: 900;
  color: var(--border-ink);
  letter-spacing: -1px;
  line-height: 1;
  position: relative;
  padding: 0 6px;
}
.sr-season-badge::before {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 12px;
  background: var(--accent-gold);
  opacity: 0.5;
  z-index: -1;
  transform: skewX(-5deg);
}
.sr-club-line {
  font-size: 14px;
  font-weight: 700;
  color: var(--border-ink);
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.sr-age-line {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* --- Trophy strip (only when trophies exist) --- */
.sr-trophy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0;
  margin-bottom: 2px;
  justify-content: center;
  position: relative;
}
.sr-trophy-strip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent-gold) 0, var(--accent-gold) 6px, transparent 6px, transparent 10px);
}
.sr-trophy-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--border-ink);
  background: rgba(255, 211, 61, 0.18);
  padding: 4px 10px;
  border-left: 3px solid var(--accent-gold);
  letter-spacing: 0.3px;
}

/* --- B. Hero stat block (position-aware main stats) --- */
.sr-hero-block {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 16px 0 0;
  position: relative;
}
.sr-hero-main {
  flex: 1;
  display: flex;
  gap: 0;
}
.sr-hero-num {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  position: relative;
}
.sr-hero-num:first-child {
  background: rgba(112, 185, 75, 0.06);
  border-left: 4px solid var(--primary);
}
.sr-hero-num + .sr-hero-num {
  border-left: 1px dashed rgba(38, 53, 43, 0.10);
}
.sr-hero-val {
  display: block;
  font-size: 42px;
  font-weight: 900;
  color: var(--border-ink);
  line-height: 1;
  letter-spacing: -2px;
}
.sr-hero-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}
.sr-rating-badge {
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--border-ink);
  color: #FFFDF5;
  position: relative;
}
.sr-rating-badge::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; left: 0;
  width: 3px;
  background: var(--accent-gold);
}
.sr-rating-val {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-gold);
}
.sr-rating-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-top: 2px;
}

/* --- Secondary stats row --- */
.sr-minor-row {
  display: flex;
  border-top: 2px solid var(--border-ink);
  border-bottom: 2px solid var(--border-ink);
  margin-bottom: 18px;
}
.sr-minor-stat {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-right: 1px solid rgba(38, 53, 43, 0.08);
}
.sr-minor-stat:last-child { border-right: none; }
.sr-minor-val {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--border-ink);
  line-height: 1.2;
}
.sr-minor-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- C. Section blocks with tag labels --- */
.sr-section {
  margin-bottom: 16px;
  position: relative;
  padding-top: 10px;
}
.sr-section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 2px 0;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

/* --- Competition results --- */
.sr-competitions .team-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(38, 53, 43, 0.06);
  font-size: 13px;
  color: var(--text-secondary);
}
.sr-competitions .team-result:last-child { border-bottom: none; }
.sr-competitions .team-result strong {
  color: var(--border-ink);
  font-weight: 800;
  font-size: 13px;
}
.sr-competitions .team-result span[style] { font-weight: 700; }

/* --- D. Golden Ball feature section --- */
.golden-ball-section {
  background: rgba(255, 255, 255, 0.5);
  padding: 16px;
  margin-bottom: 16px;
  border: none;
  border-top: 2px solid rgba(38, 53, 43, 0.06);
  border-bottom: 2px solid rgba(38, 53, 43, 0.06);
  position: relative;
}
.golden-ball-section.gb-won {
  background: rgba(255, 211, 61, 0.06);
  border-top-color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  position: relative;
}
.golden-ball-section.gb-won::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: var(--accent-gold);
}
.gb-result-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.gb-rank-badge {
  font-size: 22px;
  font-weight: 900;
  color: var(--border-ink);
}
.gb-won .gb-rank-badge {
  font-size: 28px;
}
.gb-score-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(38, 53, 43, 0.05);
  padding: 3px 10px;
}
.gb-reason {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(38, 53, 43, 0.10);
  margin-bottom: 10px;
  font-style: italic;
}
.gb-podium { display: flex; flex-direction: column; gap: 0; }
.gb-candidate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-bottom: 1px solid rgba(38, 53, 43, 0.05);
}
.gb-candidate:last-child { border-bottom: none; }
.gb-place {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  background: rgba(38, 53, 43, 0.05);
  flex-shrink: 0;
}
.gb-candidate.gb-winner .gb-place {
  background: var(--primary);
  color: #fff;
}
.gb-candidate.gb-is-player {
  background: rgba(255, 211, 61, 0.06);
  border-left: 3px solid var(--accent-gold);
  margin-left: -3px;
}
.gb-candidate.gb-is-player.gb-winner {
  background: rgba(255, 211, 61, 0.10);
}
.gb-cand-info { flex: 1; min-width: 0; }
.gb-cand-info strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
}
.gb-cand-info span { font-size: 10px; color: var(--text-muted); }
.gb-cand-score {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-orange);
  flex-shrink: 0;
}

/* --- Awards section --- */
.sr-awards .award-item {
  padding: 5px 0;
  border-bottom: 1px solid rgba(38, 53, 43, 0.05);
  font-size: 13px;
  color: var(--text-secondary);
}
.sr-awards .award-item:last-child { border-bottom: none; }

/* --- Alert banners (injury / relegation) --- */
.sr-alert {
  color: var(--danger);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(229, 62, 62, 0.04);
  border-left: 3px solid var(--danger);
  margin-bottom: 8px;
}
.sr-alert-major {
  background: rgba(229, 62, 62, 0.08);
  border-left-width: 5px;
}

/* --- E. Footer: OVR + action --- */
.sr-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 3px solid var(--border-ink);
  text-align: center;
  position: relative;
}
.sr-footer::before {
  content: 'END OF SEASON';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-muted);
  background: #FFFDF5;
  padding: 0 10px;
}
.sr-ovr-block {
  margin-bottom: 14px;
}
.sr-ovr-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.sr-ovr-val {
  font-size: 48px;
  font-weight: 900;
  color: var(--border-ink);
  line-height: 1;
  letter-spacing: -2px;
  position: relative;
  display: inline-block;
}
.sr-ovr-val::after {
  content: '';
  position: absolute;
  bottom: 4px; left: -4px; right: -4px;
  height: 10px;
  background: var(--accent-gold);
  opacity: 0.3;
  z-index: -1;
  transform: skewX(-4deg);
}

/* ---- 12. Off-Season ---- */

/* Off-season background */
#screen-offseason {
  position: relative;
  background: radial-gradient(ellipse at 85% 18%, #ffe397 0%, transparent 48%), linear-gradient(150deg, #f7e7bd 0%, #fff3d6 48%, #d6e6bc 100%);
  background-attachment: scroll;
}
#screen-offseason::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 243, 214, 0.88) 0%,
    rgba(255, 243, 214, 0.78) 30%,
    rgba(255, 243, 214, 0.84) 70%,
    rgba(255, 243, 214, 0.95) 100%
  );
  z-index: 0;
  pointer-events: none;
}
#screen-offseason > .screen-header,
#screen-offseason > .screen-body {
  position: relative;
  z-index: 1;
}
#screen-offseason > .screen-header {
  background: rgba(255, 243, 214, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--border-ink);
}

.offseason-intro { text-align: center; margin-bottom: 20px; }
.offseason-intro h3 { font-size: 18px; color: var(--primary); margin-bottom: 4px; font-weight: 800; }
.offseason-intro p { color: var(--text-secondary); font-size: 14px; }
.off-status { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Event progress dots */
.ev-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ev-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(38,53,43,0.08);
  border: 2px solid rgba(38,53,43,0.15);
  transition: all .2s;
}
.ev-dot.ev-done {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(112, 185, 75, 0.25);
}
.ev-dot.ev-current {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 6px rgba(244, 119, 69, 0.3);
}
/* Off-season dots: gold instead of green for completed */
#screen-offseason .ev-dot.ev-done {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 6px rgba(255, 211, 61, 0.4);
}
#screen-offseason .ev-dot.ev-current {
  box-shadow: 0 0 8px rgba(244, 119, 69, 0.4);
}

/* Event card */
.ev-card {
  background: #fff;
  border: none;
  border-left: 3px solid var(--accent-orange);
  border-bottom: 1px solid rgba(38, 53, 43, 0.08);
  border-radius: 0;
  padding: 20px;
  margin-bottom: 16px;
}
#screen-offseason .ev-card {
  background: rgba(255,255,255,0.9);
}
.ev-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ev-icon { font-size: 24px; }
.ev-title { font-size: 16px; font-weight: 800; color: var(--accent-orange); flex: 1; }
.ev-counter { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.ev-background {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-gold);
}

.ev-status-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 7px 0;
  border-top: 1px solid rgba(38,53,43,0.08);
  border-bottom: 1px solid rgba(38,53,43,0.08);
  font-weight: 600;
}

/* Choice buttons */
.ev-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev-choice-btn {
  text-align: left;
  font-size: 13px;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid rgba(38, 53, 43, 0.10);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0;
  color: var(--text-primary);
  cursor: pointer;
  transition: all .15s;
  font-weight: 700;
}
.ev-choice-btn:hover, .ev-choice-btn:active {
  border-left-color: var(--primary);
  background: rgba(112, 185, 75, 0.04);
}
.ev-choice-text { display: block; }
.ev-choice-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.ev-effect-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(112, 185, 75, 0.1);
  color: var(--primary);
  border: 1.5px solid rgba(112, 185, 75, 0.25);
  letter-spacing: 0.3px;
}
.ev-risk-tag {
  background: rgba(229, 62, 62, 0.08);
  color: var(--danger);
  border: 1.5px solid rgba(229, 62, 62, 0.25);
}

/* Result display */
.ev-result-btn { margin-top: 16px; }
.ev-result {
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
}
.ev-result-ok {
  background: rgba(112, 185, 75, 0.06);
  border: none;
  border-left: 3px solid var(--success);
  color: var(--text-secondary);
}
.ev-result-risk {
  background: rgba(229, 62, 62, 0.04);
  border: none;
  border-left: 3px solid var(--danger);
  color: var(--text-secondary);
}

/* Stat deltas */
.ev-deltas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ev-delta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  min-width: 56px;
}
.ev-delta-pos { background: rgba(112, 185, 75, 0.1); }
.ev-delta-neg { background: rgba(229, 62, 62, 0.08); }
.ev-delta-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; font-weight: 600; }
.ev-delta-val { font-size: 16px; font-weight: 800; }
.ev-delta-pos .ev-delta-val { color: var(--success); }
.ev-delta-neg .ev-delta-val { color: var(--danger); }

/* Event summary */
.ev-summary {
  background: #fff;
  border: none;
  border-top: 1px solid rgba(38,53,43,0.08);
  border-radius: 0;
  padding: 16px 0;
  margin-bottom: 16px;
}
#screen-offseason .ev-summary {
  background: rgba(255,255,255,0.85);
}
.ev-summary h4 { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.ev-summary-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(38,53,43,0.06);
}
.ev-summary-item:last-child { border-bottom: none; }
.ev-summary-item.ev-risk .ev-summary-text { color: var(--danger); }
.ev-summary-text { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.ev-summary-changes { display: flex; flex-wrap: wrap; gap: 4px; }
.ev-change-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(112, 185, 75, 0.08);
  color: var(--primary);
  border: 1px solid rgba(112, 185, 75, 0.2);
  font-weight: 700;
}

/* Contract section */
.os-contract-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#screen-offseason .os-contract-actions .btn-secondary {
  text-align: left;
  padding-left: 16px;
}

/* Off-season: semi-transparent cards on bg image */
#screen-offseason .offseason-intro h3 { color: var(--accent-orange); }
#screen-offseason .offseason-intro { margin-bottom: 20px; }
#screen-offseason .gradient-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(38,53,43,0.12);
}
#screen-offseason .fa-offer-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(38,53,43,0.12);
  border-left: 4px solid var(--primary);
  padding-left: 10px;
}
#screen-offseason .fa-offer-card:hover {
  border-color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(112, 185, 75, 0.06);
}
#screen-offseason .attr-alloc-group {
  background: rgba(255,255,255,0.85);
  border-color: rgba(38,53,43,0.1);
}
#screen-offseason .attr-alloc-actions .btn-secondary {
  background: rgba(255,255,255,0.85);
  border-color: var(--border-ink);
  color: var(--text-primary);
}

/* Attribute Allocation */
.attr-alloc-header {
  text-align: center;
  padding: 20px 0 12px;
}
.attr-alloc-icon {
  font-size: 32px;
  margin-bottom: 4px;
}
.attr-alloc-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-orange);
  margin-bottom: 6px;
}
.attr-alloc-header p {
  font-size: 13px;
  color: var(--text-secondary);
}
.attr-alloc-points-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 20px;
  border-radius: 2px;
  background: var(--gradient-primary);
  border: 2px solid #4A8A35;
}
.alloc-points-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.alloc-points-value {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.attr-alloc-counter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.alloc-remaining strong {
  color: var(--accent-orange);
}
.attr-alloc-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}
.attr-alloc-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.attr-alloc-group {
  background: #fff;
  border-radius: 0;
  padding: 12px;
  border: none;
  border-bottom: 1px solid rgba(38, 53, 43, 0.08);
}
.attr-alloc-group-title {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(38,53,43,0.08);
}
.attr-alloc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-radius: 4px;
  transition: background .15s;
}
.attr-alloc-row:not(:last-child) {
  border-bottom: 1px solid rgba(38, 53, 43, 0.04);
}
.attr-alloc-added {
  background: rgba(112, 185, 75, 0.08);
}
.attr-alloc-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.attr-alloc-val {
  font-weight: 800;
  font-size: 14px;
  width: 30px;
  text-align: center;
}
.attr-alloc-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
}
.btn-alloc-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
  box-shadow: 1px 1px 0 rgba(38,53,43,0.15);
}
.btn-alloc-plus:hover:not(.disabled),
.btn-alloc-plus:active:not(.disabled) {
  background: var(--primary);
  color: #fff;
}
.btn-alloc-plus.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}
.attr-alloc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* Free Agent Selection */
.fa-notice {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 8px;
  border: 2px solid #B82E2E;
}
.fa-notice-warn {
  background: var(--accent-orange);
  border-color: #D4602A;
}
.fa-offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.fa-offer-card {
  width: 100%;
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  background: #fff;
  border: none;
  border-left: 3px solid var(--primary);
  border-bottom: 1px solid rgba(38, 53, 43, 0.06);
  border-radius: 0;
  cursor: pointer;
  transition: all .15s;
}
.fa-offer-card:hover,
.fa-offer-card:active {
  background: rgba(112, 185, 75, 0.04);
}
.fa-offer-badge {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.fa-offer-info { flex: 1; min-width: 0; }
.fa-offer-name { display: block; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.fa-offer-meta { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.fa-offer-terms { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Transfer modal */
.transfer-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38, 53, 43, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.transfer-modal-content {
  background: #FFFDF5;
  border: 2px solid var(--border-ink);
  border-radius: 3px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.transfer-modal-content h3 {
  font-size: 18px;
  color: var(--accent-orange);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
}
.transfer-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(38,53,43,0.08);
}
.to-club { padding-left: 10px; flex: 1; }
.to-club strong { display: block; font-size: 14px; font-weight: 700; }
.to-club span { display: block; font-size: 12px; color: var(--text-muted); }

/* ---- 13. Career History & Leaderboard ---- */
.history-summary {
  background: #FFFDF5;
  border-radius: 0;
  padding: 20px;
  margin-bottom: 20px;
  border: none;
  border-bottom: 2px solid var(--border-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.history-summary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold) 60%, var(--primary) 100%);
}
.history-summary h3 { margin-bottom: 16px; font-size: 18px; font-weight: 900; }
.history-stats { display: flex; flex-wrap: wrap; gap: 0; justify-content: center; }
.hs { text-align: center; width: 20%; padding: 8px 0; }
.hs span { display: block; font-size: 22px; font-weight: 900; color: var(--border-ink); }
.hs label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.clubs-played { font-size: 13px; color: var(--text-secondary); margin-top: 12px; }

.history-card {
  background: #FFFDF5;
  border: none;
  border-left: 3px solid var(--primary);
  border-bottom: 1px solid rgba(38, 53, 43, 0.06);
  border-radius: 0;
  padding: 12px 14px;
  margin-bottom: 0;
  transition: border-left-color .15s;
}
.history-card:hover { border-left-color: var(--accent-gold); }
.hc-season { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.hc-club { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.hc-stats { display: flex; gap: 10px; font-size: 13px; flex-wrap: wrap; margin-bottom: 4px; }
.hc-pos { font-size: 13px; color: var(--text-secondary); }
.hc-trophies { color: var(--accent-orange); font-size: 13px; margin-top: 4px; font-weight: 600; }
.hc-awards { color: var(--success); font-size: 13px; margin-top: 2px; font-weight: 600; }
.hc-injury { color: var(--danger); font-size: 12px; margin-top: 2px; font-weight: 600; }
.hc-nt { font-size: 11px; color: #E53E3E; font-weight: 600; margin-top: 2px; }

/* Leaderboard */
.leaderboard-note { font-size: 11px; color: var(--text-muted); }
.lb-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 10px; }
.lb-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.lb-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-gold);
}

.lb-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(38, 53, 43, 0.08);
  border-radius: 0;
  padding: 12px 8px;
  margin-bottom: 0;
  transition: background .15s;
}
.lb-entry:hover { background: rgba(255, 211, 61, 0.06); }
.lb-entry.gold { background: rgba(255, 211, 61, 0.08); border-bottom-color: rgba(255, 211, 61, 0.2); }
.lb-entry.silver { background: rgba(148, 163, 184, 0.06); }
.lb-entry.bronze { background: rgba(249, 115, 22, 0.06); }
.lb-rank { font-size: 20px; font-weight: 800; color: var(--text-muted); width: 30px; text-align: center; }
.lb-entry.gold .lb-rank { color: var(--accent-orange); }
.lb-entry.silver .lb-rank { color: #64748b; }
.lb-entry.bronze .lb-rank { color: #f97316; }
.lb-player { flex: 1; min-width: 0; }
.lb-name { font-size: 15px; font-weight: 700; }
.lb-meta { font-size: 12px; color: var(--text-muted); }
.lb-stats { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.lb-score { font-size: 28px; font-weight: 900; color: var(--accent-orange); }

/* National Team Center */
.nt-center-card { text-align: center; }
.nt-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.nt-team-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.nt-role-tag { font-size: 12px; padding: 3px 10px; border-radius: 2px; background: var(--danger); color: #fff; font-weight: 700; }
.nt-stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 4px; }
.nt-stats-grid .stat-mini { width: 18%; }
.nt-section-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 16px 0 8px; padding-left: 8px; border-left: 4px solid var(--danger); }
.nt-comp-card { margin-bottom: 10px; }
.nt-comp-header { display: flex; justify-content: space-between; align-items: center; padding-left: 8px; margin-bottom: 8px; }
.nt-comp-name { font-size: 14px; font-weight: 700; }
.nt-comp-phase { font-size: 12px; color: var(--text-secondary); }
.nt-group-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 4px; }
.nt-group-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.nt-group-table th { background: var(--bg-secondary); padding: 4px 3px; text-align: center; font-weight: 600; color: var(--text-secondary); }
.nt-group-table td { padding: 4px 3px; text-align: center; border-bottom: 1px solid rgba(38,53,43,0.06); }
.nt-group-table .nt-row-china { background: rgba(229,62,62,0.06); font-weight: 700; }
.nt-result-badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 2px; background: var(--danger); color: #fff; margin: 4px 0; }
.nt-champion-info { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.nt-honors-list { display: flex; flex-direction: column; gap: 6px; }
.nt-honor-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 10px; background: rgba(255, 211, 61, 0.08); border-radius: 4px; border: 1px solid rgba(255, 211, 61, 0.2); }
.nt-honor-icon { font-size: 18px; }
.nt-empty-msg { font-size: 13px; color: var(--text-secondary); padding: 10px; text-align: center; }
.nt-empty-card { text-align: center; padding: 40px; }
.nt-history-list { display: flex; flex-direction: column; gap: 4px; }
.nt-history-row { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 0; border-bottom: 1px solid rgba(38,53,43,0.06); }
.nt-comp-tag { font-size: 10px; color: #fff; padding: 2px 6px; border-radius: 2px; white-space: nowrap; }
.nt-hist-edition { font-weight: 600; min-width: 36px; }
.nt-hist-result { flex: 1; }
.nt-hist-stats { color: var(--text-secondary); white-space: nowrap; }
.nt-match-list { display: flex; flex-direction: column; gap: 4px; }
.nt-match-row { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 8px; border-radius: 0; background: transparent; border-bottom: 1px solid rgba(38,53,43,0.06); }
.nt-match-row.result-win { border-left: 3px solid var(--success); }
.nt-match-row.result-loss { border-left: 3px solid var(--danger); }
.nt-match-row.result-draw { border-left: 3px solid var(--accent-gold); }
.nt-match-opp { flex: 1; font-weight: 600; }
.nt-match-score { font-weight: 700; font-size: 14px; min-width: 40px; text-align: center; }
.nt-match-player { color: var(--text-secondary); white-space: nowrap; }

/* ---- 14. Retirement & Share ---- */
.retire-card {
  background: #FFFDF5;
  border-radius: 0;
  padding: 24px;
  border: none;
  border-top: 3px solid var(--border-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.retire-card::before {
  content: '';
  position: absolute;
  top: 3px; left: 0;
  width: 4px; height: calc(100% - 3px);
  background: linear-gradient(180deg, var(--accent-gold), var(--primary));
}
.retire-header { margin-bottom: 16px; }
.retire-ovr {
  font-size: 56px;
  font-weight: 900;
  color: var(--accent-orange);
}
.retire-header h3 { font-size: 24px; font-weight: 800; }
.retire-header p { color: var(--text-secondary); }
.retire-quote {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(38,53,43,0.08);
  border-bottom: 1px solid rgba(38,53,43,0.08);
  margin-bottom: 16px;
}
.retire-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}
.rs { width: 25%; padding: 8px 0; }
.rs span { display: block; font-size: 24px; font-weight: 800; }
.rs label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.retire-clubs { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.retire-nt-summary {
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 2px solid rgba(38, 53, 43, 0.06);
}
.retire-nt-summary .nt-badge { margin-bottom: 6px; }
.retire-nt-summary .retire-stats { margin-bottom: 4px; }
.retire-nt-honors { font-size: 12px; color: var(--accent-gold); }
.retire-legend-score { margin-bottom: 20px; position: relative; }
.rls-val {
  font-size: 56px;
  font-weight: 900;
  color: var(--accent-orange);
}
.rls-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.retire-actions { display: flex; flex-direction: column; gap: 8px; }

/* Share */
#card-container { display: flex; justify-content: center; margin-bottom: 20px; }
#card-container img { display: block; width: 100%; max-width: 100%; height: auto; -webkit-touch-callout: default; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.card-save-hint { margin: 0 0 16px; color: var(--text-secondary, #66736b); font-size: 13px; line-height: 1.6; text-align: center; }
.share-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---- 15. Manga Decorative System ---- */

/* Halftone dot pattern overlay for celebration sections */
.sr-trophy-strip::before,
.golden-ball-section.gb-won::before,
.retire-legend-score::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 211, 61, 0.08) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
  border-radius: inherit;
}


/* ---- 16. Scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(112, 185, 75, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(112, 185, 75, 0.45); }

/* ---- 17. Responsive ---- */

/* -- Small screens -- */
@media (max-width: 359px) {
  .cpc-ovr { font-size: 38px; }
  .retire-ovr,
  .rls-val { font-size: 44px; }
  .sr-hero-num { font-size: 36px; }
  .history-stats .hs span { font-size: 18px; }
  .md-fixture .md-team { font-size: 14px; }
}

/* -- Landscape modal height -- */
@media (orientation: landscape) {
  .match-modal { max-height: 70vh; overflow-y: auto; }
}

@media (min-width: 600px) {
  #app { max-width: 480px; }
  .dc-attrs-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  #app {
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(38, 53, 43, 0.06);
    border-left: 3px solid rgba(38, 53, 43, 0.08);
    border-right: 3px solid rgba(38, 53, 43, 0.08);
  }
}

/* Cloud failures remain readable while any game screen is active. */
.save-status {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  z-index: 100; max-width: min(390px, calc(100vw - 28px));
  padding: 8px 12px; border: 1px solid #d8b45b; border-radius: 6px;
  background: #fff8e7; color: #6e4c18; font-size: 12px; line-height: 1.5;
  box-shadow: 2px 2px 0 rgba(38, 53, 43, 0.12); pointer-events: none;
}
.save-status.hidden { display: none; }
.save-status-actionable { pointer-events: auto; }
.save-status-actionable .btn { display: block; margin-top: 6px; }
.save-conflict-body { display: grid; gap: 12px; padding: 16px; line-height: 1.6; }
