/* ── Reset & Variables ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e16;
  --bg2: #10151f;
  --bg3: #171e2c;
  --bg4: #1e2739;
  --border: #26314a;
  --border-bright: #354258;
  --accent: #4fc3f7;
  --accent2: #b39ddb;
  --accent3: #80deea;
  --text: #d3dcec;
  --text-dim: #7889a3;
  --text-bright: #f0f5ff;
  --red: #ef5350;
  --green: #66bb6a;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }
body {
  background:
    linear-gradient(180deg, rgba(4,7,12,0.78) 0%, rgba(4,7,12,0.88) 60%, var(--bg) 100%),
    radial-gradient(circle at 15% 10%, rgba(79,195,247,0.08), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(179,157,219,0.08), transparent 40%),
    #060a10;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent3); }

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  background: linear-gradient(180deg, #0b1119 0%, #0d131d 100%);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-brand { display: flex; align-items: baseline; gap: 0.5rem; flex-shrink: 0; }
.snowflake { color: var(--accent); font-size: 18px; }
.brand-text { font-size: 14px; font-weight: 800; letter-spacing: 3px; color: var(--text-bright); font-family: monospace; }
.sub-brand { font-size: 10px; color: var(--text-dim); letter-spacing: 1px; font-family: monospace; }

.nav-links { list-style: none; display: flex; gap: 0.25rem; margin-left: auto; align-items: center; }
.nav-links a {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-dim); padding: 0.4rem 0.8rem; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; transition: all 0.15s; border: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-bright); background: var(--bg3); border-color: var(--border); }
.nav-links a.active { color: var(--accent); }

.btn-nav { background: var(--accent) !important; color: #05131c !important; border-color: var(--accent) !important; font-weight: 700 !important; }
.btn-nav:hover { background: var(--accent3) !important; border-color: var(--accent3) !important; }
.btn-nav-plain { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }

.nav-icon { font-size: 14px; }
.nav-current-warband { display: inline-flex; align-items: center; padding: 0.4rem 0.8rem; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ── Flash Messages ────────────────────────────────────────────────────── */
.flash-container { position: fixed; top: 74px; right: 1rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; }
.flash { padding: 0.7rem 1.2rem; border-radius: var(--radius); font-size: 13px; font-weight: 500; box-shadow: var(--shadow); transition: opacity 0.5s; min-width: 240px; }
.flash-success { background: #123024; border: 1px solid var(--green); color: #9be3ab; }
.flash-error { background: #351616; border: 1px solid var(--red); color: #ff9d9a; }
.flash-warning { background: #2c2410; border: 1px solid var(--accent2); color: #e6d9ff; }

/* ── Main Layout ───────────────────────────────────────────────────────── */
.main-content { flex: 1; padding: 1.5rem; max-width: 1400px; width: 100%; margin: 0 auto; }

/* ── Page Header ───────────────────────────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 22px; font-weight: 700; color: var(--text-bright); letter-spacing: 0.5px; display: flex; align-items: center; }
.header-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.45rem 1rem; border-radius: var(--radius); font-size: 13px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all 0.15s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #05131c; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent3); color: #05131c; border-color: var(--accent3); }
.btn-secondary { background: var(--bg3); color: var(--text); border-color: var(--border-bright); }
.btn-secondary:hover { background: var(--bg4); color: var(--text-bright); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 12px; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 11px; }
.btn-lg { padding: 0.6rem 1.4rem; font-size: 14px; }

/* ── Dashboard ─────────────────────────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 180px; gap: 1.5rem; margin-bottom: 1.5rem; }
.dashboard-section, .section-block { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.dashboard-side { display: flex; flex-direction: column; gap: 0.75rem; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--accent); font-family: monospace; }
.stat-label { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; margin-top: 0.2rem; }
.section-title { font-size: 14px; font-weight: 700; color: var(--text-bright); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }

/* ── Data Tables ────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--bg2); }
.data-table th { background: var(--bg3); color: var(--text-dim); font-weight: 600; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg3); }
.data-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

.stat-table th, .stat-table td { padding: 0.4rem 0.5rem; }
.stat { text-align: center; font-family: monospace; font-size: 12px; color: var(--text-bright); font-weight: 600; }
.model-name { font-weight: 600; color: var(--text-bright); white-space: nowrap; }
.model-type { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.gold { font-family: monospace; color: var(--accent2); }

.model-dead td, .model-retired td, .model-captured td { opacity: 0.5; }
.model-ooa td { opacity: 0.75; }

.rank { color: var(--text-dim); font-family: monospace; }
.warband-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.warband-link { color: var(--text-bright); font-weight: 600; }
.warband-link:hover { color: var(--accent); }

.tv-badge { background: var(--bg3); border: 1px solid var(--border-bright); color: var(--accent2); padding: 1px 6px; border-radius: 3px; font-family: monospace; font-size: 12px; font-weight: 700; }
.school-badge { font-size: 11px; color: var(--text-dim); }

/* ── Warband Cards ─────────────────────────────────────────────────────────── */
.warband-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.warband-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, transform 0.15s; }
.warband-card:hover { border-color: var(--warband-color, var(--accent)); transform: translateY(-2px); }
.warband-card-header { display: flex; align-items: stretch; }
.warband-color-bar { width: 4px; flex-shrink: 0; }
.warband-title-row { display: flex; align-items: center; }
.warband-card-title { padding: 0.9rem 1rem; flex: 1; }
.warband-card-title h3 { font-size: 15px; font-weight: 700; margin-bottom: 0.2rem; }
.warband-card-title h3 a { color: var(--text-bright); }
.warband-card-title h3 a:hover { color: var(--accent); }
.school-tag { font-size: 11px; color: var(--text-dim); }

.warband-card-stats { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mini-stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0.5rem; border-right: 1px solid var(--border); }
.mini-stat:last-child { border-right: none; }
.mini-val { font-size: 14px; font-weight: 700; font-family: monospace; color: var(--text-bright); }
.mini-label { font-size: 9px; color: var(--text-dim); letter-spacing: 0.5px; }
.warband-card-actions { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; }

/* ── Standings ─────────────────────────────────────────────────────────── */
.standings-row-1 td { background: rgba(79,195,247,0.06); }

/* ── Game Cards ────────────────────────────────────────────────────────── */
.game-full-list { display: flex; flex-direction: column; gap: 0.75rem; }
.game-card.full { align-items: stretch; padding: 1rem 1.2rem; gap: 1rem; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-wrap: wrap; }
.game-number { font-family: monospace; font-size: 11px; color: var(--text-dim); min-width: 30px; }
.game-main { flex: 1; }
.game-vs-large { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 0.5rem; }
.combatant { display: flex; align-items: center; gap: 0.5rem; }
.combatant-dot { width: 12px; height: 12px; border-radius: 50%; }
.combatant-name { font-weight: 700; color: var(--text-bright); font-size: 14px; }
.combatant-score { font-family: monospace; font-size: 18px; font-weight: 800; color: var(--accent2); margin-left: 0.5rem; }
.vs-center { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vs-badge { font-size: 11px; font-weight: 800; color: var(--accent); font-family: monospace; }
.result-arrow { font-size: 11px; font-weight: 700; color: var(--green); }
.draw-center { font-size: 10px; color: var(--text-dim); }
.combatant.defender { flex-direction: row-reverse; }
.game-details-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.detail-tag { padding: 2px 7px; border-radius: 3px; font-size: 11px; }
.kills-tag { background: var(--bg4); color: var(--red); border: 1px solid var(--border); }
.date-tag { background: transparent; color: var(--text-dim); font-family: monospace; }
.game-notes { font-size: 12px; color: var(--text-dim); margin-top: 0.4rem; font-style: italic; }
.game-card-actions { display: flex; align-items: flex-start; gap: 0.6rem; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-container { max-width: 700px; }
.form-container.wide { max-width: 960px; }
.form-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
.form-section h2 { font-size: 13px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.field-hint { font-size: 11px; color: var(--text-dim); margin: 0; text-transform: none; letter-spacing: normal; font-weight: 400; }
.form-input { background: var(--bg3); border: 1px solid var(--border-bright); border-radius: var(--radius); color: var(--text-bright); padding: 0.5rem 0.75rem; font-size: 13px; width: 100%; transition: border-color 0.15s; }
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(79,195,247,0.15); }
.form-input option { background: var(--bg3); }
textarea.form-input { resize: vertical; }
.form-hint { font-size: 11px; color: var(--text-dim); }
.form-actions { display: flex; gap: 0.75rem; align-items: center; padding-top: 0.5rem; }

/* Color picker */
.color-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.color-option { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.color-option input[type="radio"] { display: none; }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; transition: border-color 0.15s, transform 0.15s; cursor: pointer; }
.color-option input:checked + .color-swatch { border-color: #fff; transform: scale(1.15); }

/* Spell checkbox grid */
.skill-groups { display: flex; flex-direction: column; gap: 0.75rem; }
.skill-group-label { font-size: 11px; font-weight: 700; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.skill-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.3rem 0.75rem; }
.skill-check { display: flex; align-items: center; gap: 0.4rem; font-size: 12px; color: var(--text); }
.skill-check input { accent-color: var(--accent2); }

/* ── Roster overview (warband detail page) ──────────────────────────────── */
.warband-overview { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.overview-stat { display: flex; flex-direction: column; align-items: center; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1.2rem; min-width: 90px; }
.ov-val { font-size: 22px; font-weight: 800; font-family: monospace; color: var(--text-bright); }
.ov-label { font-size: 10px; color: var(--text-dim); letter-spacing: 1px; margin-top: 0.1rem; }

.section-block { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
.section-block h2 { font-size: 14px; font-weight: 700; color: var(--text-bright); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 0; }

.status-select { padding: 2px 6px; font-size: 11px; background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; color: var(--text); cursor: pointer; }
.status-active { border-color: var(--green) !important; color: var(--green) !important; }
.status-ooa { border-color: var(--accent2) !important; color: var(--accent2) !important; }
.status-dead { border-color: var(--red) !important; color: var(--red) !important; }
.status-captured { border-color: var(--accent) !important; color: var(--accent) !important; }
.status-retired { border-color: var(--text-dim) !important; color: var(--text-dim) !important; }

.inline-form { display: inline; }
.xp-input { width: 55px; text-align: center; padding: 2px 4px; font-family: monospace; }

.skill-tag { display: inline-block; margin: 1px 2px; padding: 1px 5px; border-radius: 3px; font-size: 10px; white-space: nowrap; background: rgba(79,195,247,0.12); border: 1px solid var(--accent); color: var(--accent); }
.wizard-tag { background: rgba(179,157,219,0.15); border: 1px solid var(--accent2); color: var(--accent2); }

.actions-cell { white-space: nowrap; }

/* ── Team logos & model photos ─────────────────────────────────────────── */
.warband-logo-header { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-bright); vertical-align: middle; margin-right: 8px; }
.warband-logo-card { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-bright); align-self: center; margin-left: 0.7rem; background: var(--bg3); flex-shrink: 0; }
.warband-logo-sm { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; margin-right: 6px; vertical-align: middle; border: 1px solid var(--border-bright); }
.warband-logo-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-bright); background: var(--bg3); }
.warband-logo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--text-dim); }

.card-thumb-btn { background: none; border: none; padding: 0; cursor: pointer; display: block; }
.model-photo-thumb { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; border: 1px solid var(--border-bright); display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--bg3); }

/* ── Trading card modal ───────────────────────────────────────────────────── */
.card-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 300; align-items: center; justify-content: center; }
.trading-card {
  position: relative;
  width: 300px;
  background: linear-gradient(180deg, var(--bg2), #0a1420);
  border: 2px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 12px 50px rgba(0,0,0,0.7);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card-close { position: absolute; top: 8px; right: 10px; background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; line-height: 1; }
.card-close:hover { color: var(--text-bright); }
.card-photo-wrap { display: flex; align-items: center; justify-content: center; }
.card-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-bright); }
.card-photo.model-photo-placeholder { display: flex; align-items: center; justify-content: center; font-size: 48px; background: var(--bg3); width: 100%; aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border-bright); }
.card-body { display: flex; flex-direction: column; gap: 0.4rem; }
.card-name-row { display: flex; align-items: center; gap: 0.5rem; }
.card-name { font-size: 17px; font-weight: 800; color: var(--text-bright); }
.card-position { font-size: 12px; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.5px; }
.card-warband-row { display: flex; align-items: center; gap: 0.4rem; }
.card-warband-logo { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.card-warband-name { font-size: 12px; color: var(--text-dim); }
.card-statline { display: flex; gap: 0.35rem; margin: 0.3rem 0; flex-wrap: wrap; }
.card-stat-box { flex: 1; min-width: 40px; background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: 0.4rem 0; text-align: center; }
.card-stat-val { font-family: monospace; font-weight: 800; font-size: 15px; color: var(--text-bright); }
.card-stat-label { font-size: 9px; color: var(--text-dim); letter-spacing: 0.5px; }
.card-skills { display: flex; flex-wrap: wrap; gap: 0.2rem; }
.card-footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); font-family: monospace; padding-top: 0.4rem; border-top: 1px solid var(--border); }
.card-photo-form { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.2rem; }

/* ── Spellbook page ───────────────────────────────────────────────────────── */
.spellbook-school { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.spellbook-school h2 { font-size: 15px; color: var(--accent2); margin-bottom: 0.6rem; }
.spellbook-school.basic h2 { color: var(--accent); }
.spell-chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.spell-chip { background: var(--bg3); border: 1px solid var(--border-bright); color: var(--text); padding: 3px 10px; border-radius: 4px; font-size: 12px; }

/* ── Empty States ─────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 2rem; color: var(--text-dim); }
.empty-state p { margin-bottom: 1rem; }
.empty-state.large { padding: 4rem 2rem; }
.empty-icon { font-size: 48px; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h2 { font-size: 18px; color: var(--text); margin-bottom: 0.5rem; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.alert-warning { background: rgba(179,157,219,0.1); border: 1px solid var(--accent2); color: var(--accent2); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 0.75rem 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-dim); font-family: monospace; letter-spacing: 0.5px; }
.footer-snow { letter-spacing: 6px; color: #1a2436; }

/* ── Versus layout (game create) ─────────────────────────────────────────── */
.versus-layout { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: start; }
.versus-side h3 { font-size: 13px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }
.versus-center-display { display: flex; align-items: center; justify-content: center; padding-top: 2rem; }
.vs-divider { font-size: 24px; color: var(--accent); }
.warband-select { font-size: 13px; }
.score-input { text-align: center; font-size: 18px; font-weight: 700; font-family: monospace; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-side { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 100px; }
  .versus-layout { grid-template-columns: 1fr; }
  .versus-center-display { display: none; }
  .nav-brand .sub-brand { display: none; }
}

@media (max-width: 600px) {
  .navbar { padding: 0 0.75rem; gap: 0.5rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.4rem 0.5rem; }
  .nav-links .nav-label { display: none; }
  .nav-mobile-hide { display: none; }
  .btn-nav { padding: 0.3rem 0.5rem !important; font-size: 12px !important; }
  .btn-nav-plain { padding: 0.3rem 0.5rem; gap: 0; }
  .brand-text { font-size: 11px; letter-spacing: 1px; }
  .main-content { padding: 1rem; }
  .warband-grid { grid-template-columns: 1fr; }
  .stat-table { font-size: 11px; }
  .stat-table th, .stat-table td { padding: 0.3rem; }
}
