/* ============================================================
   LEGACY LEAGUE — style.css
   v0.1 styles are unchanged above the v0.2 section marker.
   v0.2 dashboard styles are appended at the bottom.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,900;1,700&family=Barlow:wght@400;500;600&display=swap');

/* ── Variables ── */
:root {
  --bg:         #0c0c10;
  --bg2:        #131318;
  --bg3:        #1a1a22;
  --surface:    #1e1e28;
  --surface2:   #25252f;
  --border:     #2c2c3a;
  --border2:    #383848;

  --orange:     #f76b1c;
  --orange-lo:  rgba(247, 107, 28, 0.18);
  --gold:       #e8b84b;
  --red:        #e05252;
  --green:      #3ecf8e;

  --text:       #f0eeea;
  --text2:      #9a9490;
  --text3:      #5a5550;

  --font-head:  'Barlow Condensed', Arial Narrow, Arial, sans-serif;
  --font-body:  'Barlow', Arial, sans-serif;

  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 20px rgba(0,0,0,0.5);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
}

/* ── App container ── */
#app {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* ══════════════════════════════════════
   SCREEN SYSTEM
   ══════════════════════════════════════ */
.screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* .hidden hides a screen entirely */
.hidden {
  display: none !important;
}

/* ══════════════════════════════════════
   TITLE SCREEN
   ══════════════════════════════════════ */
#title-screen {
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 24px 60px;
  background: var(--bg);
}

.title-bg-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(247,107,28,0.1);
}
.ring-a { width: 480px; height: 480px; top: -160px; right: -180px; }
.ring-b { width: 300px; height: 300px; bottom: -100px; left: -100px; }
.ring-c { width: 200px; height: 200px; bottom: 40px; right: -60px; border-color: rgba(247,107,28,0.06); }

#title-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(247,107,28,0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.title-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.title-badge {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(247,107,28,0.1);
  border: 1px solid rgba(247,107,28,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  animation: fadeUp 0.5s ease both;
}

/* .hero-title */
.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3.8rem, 14vw, 7.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 18px;
  animation: fadeUp 0.5s 0.08s ease both;
}
.hero-title span {
  display: block;
  color: var(--orange);
  text-shadow: 0 0 50px rgba(247,107,28,0.4);
}

/* .tagline */
.tagline {
  font-size: clamp(13px, 3.5vw, 15px);
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeUp 0.5s 0.16s ease both;
}

.title-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  animation: fadeUp 0.5s 0.24s ease both;
}

/* ══════════════════════════════════════
   BUTTONS  (.primary-btn  .secondary-btn)
   ══════════════════════════════════════ */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head), Arial Narrow, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 13px 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(247,107,28,0.3);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
  width: 100%;
}
.primary-btn:hover {
  background: #ff7c30;
  box-shadow: 0 6px 28px rgba(247,107,28,0.5);
  transform: translateY(-1px);
}
.primary-btn:active { transform: translateY(0); }

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head), Arial Narrow, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 24px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  width: 100%;
}
.secondary-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--bg3); }

.ghost-btn { background: transparent; color: var(--text2); border-color: var(--border); }
.ghost-btn:hover { border-color: var(--border2); color: var(--text); background: transparent; }

.danger-btn {
  background: transparent !important;
  color: var(--red) !important;
  border-color: var(--red) !important;
}
.danger-btn:hover { background: rgba(224,82,82,0.1) !important; }

.full-btn { width: 100%; margin-top: 4px; font-size: 19px; padding: 15px 24px; }
.card-action-btn { width: 100%; margin-top: auto; }

.back-btn {
  background: none;
  border: none;
  color: var(--text2);
  font-family: var(--font-head), Arial Narrow, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.18s ease;
}
.back-btn:hover { color: var(--orange); }

/* ══════════════════════════════════════
   MESSAGE  (.message)
   ══════════════════════════════════════ */
.message {
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
  margin-top: 12px;
  text-align: center;
  color: var(--gold);
}
.error-message { color: var(--red); }

/* ══════════════════════════════════════
   MODAL
   ══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-head h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.close-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 15px;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}
.close-btn:hover { color: var(--text); border-color: var(--border2); }
.htp-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.htp-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text2); line-height: 1.6; }
.htp-list li strong { color: var(--text); }
.htp-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════
   SCREEN LAYOUT
   ══════════════════════════════════════ */
.screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}
.step-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}
.screen-content {
  flex: 1;
  padding: 24px 20px 56px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}
#create-player-screen .screen-content {
  max-width: 1220px;
}
.screen-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.screen-sub { font-size: 14px; color: var(--text2); margin-bottom: 24px; line-height: 1.6; }

/* ══════════════════════════════════════
   CARD GRID  (.card-grid  .choice-card)
   ══════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 8px;
}
.card-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.card-grid.two-col   { grid-template-columns: 1fr 1fr; }
.card-grid.col-list  { grid-template-columns: 1fr; }

.choice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.choice-card.active-path:hover {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 8px 28px var(--orange-lo);
}
.choice-card.dimmed { opacity: 0.5; }

.choice-card-icon { font-size: 26px; }
.choice-card-text h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 5px;
}
.choice-card-text p { font-size: 13px; color: var(--text2); line-height: 1.5; }

.coming-soon-tag {
  position: absolute; top: 10px; right: 10px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text3);
  font-family: var(--font-head);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}

/* ══════════════════════════════════════
   SELECTABLE CARDS  (.selected)
   ══════════════════════════════════════ */
.sel-card { cursor: pointer; display: block; }
.sel-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.sel-card-inner {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  background: var(--surface);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.sel-card:hover .sel-card-inner { border-color: var(--border2); background: var(--surface2); }
.sel-card.selected .sel-card-inner,
.sel-card input:checked ~ .sel-card-inner {
  border-color: var(--orange);
  background: rgba(247,107,28,0.08);
  box-shadow: 0 0 0 1px var(--orange);
}
.sel-card-title {
  font-family: var(--font-head);
  font-size: 15px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 4px;
}
.sel-card-desc { font-size: 12px; color: var(--text2); line-height: 1.45; }
.sel-card-wide .sel-card-inner { display: flex; flex-direction: column; gap: 4px; }
.sel-card-wide .sel-card-title { font-size: 16px; }
.sel-card-wide .sel-card-desc  { font-size: 13px; }
.create-two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 18px;
  align-items: start;
}
.create-col {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.modern-select-grid .sel-card-inner { border-radius: 12px; padding: 16px 14px; }
.modern-select-grid .sel-card:hover .sel-card-inner { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.character-grid { display: grid; grid-template-columns: repeat(3, minmax(210px, 1fr)); gap: 14px; }
.character-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.character-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.character-meta { padding: 10px; }
.character-card .sel-card-title { font-size: 13px; }
.character-card .sel-card-desc { font-size: 11px; }

.character-card.selected,
.character-card input:checked ~ .character-media {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.character-card.selected .character-media img,
.character-card input:checked ~ .character-media img {
  filter: brightness(1.08);
}
.compact-form-section { margin-top: 14px; margin-bottom: 10px; }
.school-select { max-width: 240px; }
.dashboard-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--orange);
  box-shadow: 0 0 0 3px rgba(247,107,28,0.16);
}
.dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.school-group { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; min-height: 52px; }
.school-empty-note { font-size: 12px; color: var(--text3); margin-top: 8px; }

/* ══════════════════════════════════════
   FORM FIELDS  (.form-section  .input-field)
   ══════════════════════════════════════ */
.form-section { margin-bottom: 26px; }
.field-label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 10px;
}
.input-field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body), Arial, sans-serif;
  font-size: 16px;
  padding: 13px 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  -webkit-appearance: none;
}
.input-field::placeholder { color: var(--text3); }
.input-field:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,107,28,0.18); }
.jersey-input { max-width: 110px; text-align: center; font-size: 20px; font-weight: 600; }
.jersey-input {
  border: 1px solid var(--border2);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.screen:not(.hidden) { animation: fadeIn 0.22s ease both; }

/* ══════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ══════════════════════════════════════
   BASE MOBILE
   ══════════════════════════════════════ */
@media (max-width: 600px) {
  .screen-content { padding: 20px 16px 56px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.three-col { grid-template-columns: 1fr; }
  .card-grid.two-col   { grid-template-columns: 1fr; }
  create-two-col-layout { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: 1fr 1fr; }
  .school-group { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  #create-player-screen .screen-content { max-width: 760px; }
}
@media (max-width: 400px) { .hero-title { font-size: 3.2rem; } }


/* ╔══════════════════════════════════════════════════════════╗
   ║           v0.2  DASHBOARD STYLES  (NEW)                 ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Dashboard screen overrides the default .screen layout ── */
#dashboard-screen {
  min-height: 100vh;
  flex-direction: column;
  background: var(--bg);
  padding-bottom: 40px;
}

/* ── HEADER BANNER ── */
.dashboard-header {
  background: var(--surface);
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 4px 24px rgba(247,107,28,0.15);
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.player-title-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Big jersey number */
.db-jersey {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--orange);
  text-shadow: 0 0 24px rgba(247,107,28,0.5);
  min-width: 52px;
  text-align: center;
}

.player-title-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 3px;
}
.player-title-text p {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.dashboard-header-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* meta-pill badges */
.meta-pill {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 4px 12px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  white-space: nowrap;
}
.meta-pill span { color: var(--text); }

/* ── MAIN 3-COLUMN GRID ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 1.7fr) minmax(300px, 1.1fr);
  grid-template-areas: "left center right";
  gap: 16px;
  padding: 16px 16px 0;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-left { grid-area: left; }
.dashboard-center { grid-area: center; }
.dashboard-right { grid-area: right; }

/* ── PANELS (.dashboard-panel) ── */
.dashboard-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.panel-heading {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── PLAYER INFO / INFO LIST ── */
.info-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.info-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  flex-shrink: 0;
}
.info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.backstory-text {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  font-style: italic;
}


/* ── ATTRIBUTE BARS ── */
.attribute-row { margin-bottom: 10px; }

.attribute-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.attribute-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
}
.attribute-value {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.attribute-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}
.attribute-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s ease;
}

/* ── CAPITAL PANEL ── */
.capital-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.capital-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.capital-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
}
.capital-value {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
}

.capital-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.action-sm-btn {
  font-size: 13px !important;
  padding: 9px 14px !important;
  width: 100% !important;
}

/* ── STORY FEED ── */
#story-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
#story-feed::-webkit-scrollbar { width: 4px; }
#story-feed::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.story-event {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 12px 14px;
  animation: fadeIn 0.3s ease both;
}
.story-event-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 4px;
}
.story-event-body {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 6px;
}
.story-event-result {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* ── ACTION BUTTONS ── */
.dashboard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.action-btn {
  font-size: 14px !important;
  padding: 12px 10px !important;
}

/* ── WEEKLY PROGRESSION ── */
.week-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 10px;
}

.week-progress-bar {
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
#week-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease;
}

.week-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#dashboard-record {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
}
.advance-btn {
  width: auto !important;
  font-size: 14px !important;
  padding: 10px 18px !important;
  flex-shrink: 0;
}

/* ── RESOURCE GRID ── */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.resource-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
  transition: border-color 0.18s ease;
}
.resource-card:hover { border-color: var(--border2); }
.resource-icon { font-size: 20px; margin-bottom: 4px; }
.resource-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 4px;
}
.resource-value {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}

/* ── MANAGEMENT PANEL ── */
.management-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mgmt-btn {
  font-size: 13px !important;
  padding: 10px 14px !important;
}

/* ── DASHBOARD MESSAGE BAR ── */
.dashboard-message-bar {
  text-align: center;
  padding: 10px 20px;
  margin: 0 16px 8px;
  font-size: 14px;
  min-height: 36px;
  background: rgba(247,107,28,0.06);
  border-radius: var(--radius);
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
     grid-template-areas:
      "left"
      "center"
      "right";
  }

  .dashboard-left,
  .dashboard-center,
  .dashboard-right {
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — DASHBOARD
   ════════════════════════════════════════════════════ */

/* Tablet / medium screens */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
     grid-template-areas:
      "left"
      "center"
      "right";
  }
  .dashboard-left,
  .dashboard-center,
  .dashboard-right {
    /* Stack in logical reading order: right (status) floats up on mobile */
  }
}

/* Mobile */
@media (max-width: 500px) {
  .dashboard-header {
    padding: 12px 14px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .db-jersey { font-size: 2.6rem; }
  .player-title-text h2 { font-size: 1.4rem; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-actions { grid-template-columns: 1fr; }
  .dashboard-grid { padding: 12px 12px 0; gap: 0; }
  .dashboard-panel { padding: 14px 12px; }
}
