/* Eleven Minds — shared design tokens + components.
   Extracted from the original one-shot build. Used by both the marketing
   landing page and every app screen so the whole product reads as one
   thing, not a game bolted onto a generic dashboard. */
:root {
  --ink: #0b0e14;
  --panel: #12161f;
  --panel2: #171c28;
  --line: #242b3a;
  --text: #e8ecf4;
  --dim: #8b93a7;
  --faint: #5a6275;
  --pitch: #37d67a;
  --mind: #9b7bff;
  --phys: #ffb547;
  --bad: #ff5d5d;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--ink); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; min-height: 100vh; }
a { color: var(--pitch); }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px 80px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo a { color: inherit; text-decoration: none; }
.logo .xi { color: var(--mind); }
.logo small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.top-right { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); text-align: right; }
.top-right b { color: var(--text); }

nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
nav.tabs button, nav.tabs a { background: var(--panel); border: 1px solid var(--line); color: var(--dim); padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; display: inline-block; }
nav.tabs button.on, nav.tabs a.on { background: var(--pitch); border-color: var(--pitch); color: #06130c; }
nav.tabs button:hover:not(.on), nav.tabs a:hover:not(.on) { color: var(--text); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.panel h2 { font-size: 1rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.panel h2 .tag { font-size: 0.65rem; font-family: var(--mono); color: var(--faint); font-weight: 400; margin-left: 8px; }
.muted { color: var(--dim); font-size: 0.85rem; line-height: 1.5; }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { text-align: left; font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 7px 8px; border-bottom: 1px solid #1a2030; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-family: var(--mono); }
tr.me td { background: #37d67a12; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #ffffff08; }

.bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--line); width: 64px; vertical-align: middle; position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.bar.mind i { background: var(--mind); }
.bar.phys i { background: var(--phys); }
.pos { font-family: var(--mono); font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; background: var(--panel2); color: var(--dim); }
.pos.GK { color: #5ac8fa; } .pos.DF { color: var(--pitch); } .pos.MF { color: var(--phys); } .pos.FW { color: #ff7ab6; }

.btn { background: var(--pitch); color: #06130c; border: none; border-radius: 8px; padding: 10px 22px; font-weight: 700; font-size: 0.9rem; text-decoration: none; display: inline-block; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.mind { background: var(--mind); color: #0b0e14; }
.btn:disabled { opacity: 0.4; cursor: default; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

.club-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.club-pick button { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: left; color: var(--text); }
.club-pick button:hover { border-color: var(--pitch); }
.club-pick .cname { display: block; font-weight: 700; font-size: 0.95rem; }
.club-pick .cstat { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--dim); margin-top: 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: baseline; }

.scoreboard { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 0; flex-wrap: wrap; }
.scoreboard .team { font-weight: 800; font-size: 1.05rem; min-width: 180px; }
.scoreboard .team.h { text-align: right; }
.scoreboard .score { font-family: var(--mono); font-size: 2.2rem; font-weight: 700; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px; min-width: 120px; text-align: center; }
.clock { font-family: var(--mono); color: var(--pitch); text-align: center; font-size: 0.8rem; margin-bottom: 10px; }
.commentary { font-family: var(--mono); font-size: 0.78rem; line-height: 1.7; max-height: 300px; overflow-y: auto; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.commentary p { margin-bottom: 2px; }
.commentary .min { color: var(--faint); display: inline-block; width: 38px; }
.commentary .goal { color: var(--pitch); font-weight: 700; }
.commentary .mindmoment { color: var(--mind); }
.commentary .wobble { color: var(--bad); }
.talk-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.talk-opts button { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: left; color: var(--text); }
.talk-opts button:hover { border-color: var(--mind); }
.talk-opts b { display: block; margin-bottom: 4px; }
.talk-opts span { font-size: 0.75rem; color: var(--dim); }

.slider-row { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
input[type="range"] { flex: 1; accent-color: var(--mind); }
.weight-readout { font-family: var(--mono); font-size: 0.85rem; min-width: 170px; text-align: right; }
.weight-readout b { color: var(--mind); }
.weight-readout .p { color: var(--phys); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #1a2030; gap: 16px; }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .lbl b { display: block; font-size: 0.9rem; }
.toggle-row .lbl span { font-size: 0.75rem; color: var(--dim); }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 12px; transition: 0.2s; }
.switch i::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: 0.2s; }
.switch input:checked + i { background: var(--mind); }
.switch input:checked + i::after { transform: translateX(18px); }

.morale { font-family: var(--mono); font-size: 0.75rem; }
.morale.hi { color: var(--pitch); } .morale.mid { color: var(--phys); } .morale.lo { color: var(--bad); }
.statline { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
.banner { border: 1px solid var(--mind); background: #9b7bff14; border-radius: 10px; padding: 12px 16px; font-size: 0.85rem; margin-bottom: 16px; line-height: 1.5; }
.banner b { color: var(--mind); }
footer { margin-top: 40px; text-align: center; font-size: 0.75rem; color: var(--faint); }
footer a { color: var(--dim); }
.hidden { display: none !important; }

/* careers / leaderboard / transfers — shared list-card pattern */
.career-card, .lb-row { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.career-card + .career-card { margin-top: 10px; }
.badge { font-family: var(--mono); font-size: 0.65rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge.trophy { background: #ffc52933; color: #ffc529; }
