/* ==========================================================================
   Versus-X Player Dashboard — Vendaxis redesign sample
   Base styles, design tokens, and shared components
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800&display=swap');

:root {
  /* Backgrounds */
  --bg-page: #0a0d16;
  --bg-page-grad: radial-gradient(ellipse 80% 60% at 50% -10%, #1a2547 0%, #0a0d16 60%);
  --bg-sidebar: #0d111c;
  --bg-topbar: rgba(13, 17, 28, 0.85);
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-modal: rgba(20, 26, 42, 0.6);

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-active: rgba(91, 140, 255, 0.5);

  /* Text */
  --text-primary: #e8eaf0;
  --text-secondary: #9aa3b8;
  --text-muted: #5a6178;
  --text-accent: #7b9eff;

  /* Accents */
  --accent: #5b8cff;
  --accent-glow: rgba(91, 140, 255, 0.35);
  --accent-strong: #3b6cf0;

  /* Status */
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.12);
  --warning: #facc15;
  --warning-bg: rgba(250, 204, 21, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --info: #5b8cff;
  --info-bg: rgba(91, 140, 255, 0.1);

  /* Token brand colors */
  --token-vsx: #5b8cff;
  --token-matic: #a855f7;

  /* Typography */
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-display: 'Orbitron', 'Figtree', sans-serif;

  /* Spacing & radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(91, 140, 255, 0.15);

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-page);
  background-image: var(--bg-page-grad);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }

/* ==========================================================================
   App Shell — sidebar + topbar + main
   ========================================================================== */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  min-height: 100vh;
}

/* ----- Sidebar ----- */

.sidebar {
  grid-area: sidebar;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 28px;
}

.sidebar__logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar__nav-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 16px 14px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  position: relative;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.nav-item--active {
  background: rgba(91, 140, 255, 0.08);
  color: var(--text-primary);
}

.nav-item--active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-item__icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.nav-item__badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.nav-item__badge--new {
  background: linear-gradient(135deg, #5b8cff, #a855f7);
}

.sidebar__footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar__profile:hover { background: var(--bg-card-hover); }

.sidebar__profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b6cf0, #a855f7);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.sidebar__profile-info { min-width: 0; }
.sidebar__profile-name { font-weight: 600; font-size: 13px; }
.sidebar__profile-email { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

/* ----- Topbar ----- */

.topbar {
  grid-area: topbar;
  background: var(--bg-topbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__balances {
  display: flex;
  align-items: center;
  gap: 20px;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
}

.balance-pill__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.balance-pill__icon--vsx { background: linear-gradient(135deg, #5b8cff, #3b6cf0); }
.balance-pill__icon--matic { background: linear-gradient(135deg, #c084fc, #a855f7); }

.balance-pill__amount {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.balance-pill__symbol {
  color: var(--text-muted);
  font-size: 12px;
}

.balance-pill__add {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-card-hover);
  margin-left: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.balance-pill__add:hover { background: var(--accent); }

.topbar__right { display: flex; align-items: center; gap: 12px; }

.topbar__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.15s;
}

.topbar__icon-btn:hover { background: var(--bg-card-hover); }

.topbar__icon-btn-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg-sidebar);
}

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

/* ----- Main ----- */

.main {
  grid-area: main;
  padding: 28px 36px 60px;
  max-width: 1480px;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card--glow { box-shadow: var(--shadow-glow); }

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.card__action {
  font-size: 12px;
  color: var(--text-accent);
  font-weight: 500;
}

.card__action:hover { color: var(--accent); }

/* ==========================================================================
   Stat Cards
   ========================================================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stat__label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 8px;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat__sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card-hover);
}

.stat__progress {
  margin-top: 10px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.stat__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  border-radius: 2px;
}

.stat--positive .stat__sub { color: var(--success); }
.stat--negative .stat__sub { color: var(--danger); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  transition: transform 0.1s, opacity 0.15s, background 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 100%);
  color: #0a0d16;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn--primary:hover { box-shadow: 0 0 28px rgba(255, 255, 255, 0.18); }

.btn--ghost {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn--ghost:hover { background: var(--bg-card-hover); border-color: var(--border-active); }

.btn--accent {
  background: linear-gradient(180deg, #5b8cff, #3b6cf0);
  color: #fff;
}

.btn--full { width: 100%; }
.btn--sm { padding: 7px 14px; font-size: 12px; }
.btn--lg { padding: 14px 24px; font-size: 14px; }

/* ==========================================================================
   Profile Block (Account page)
   ========================================================================== */

.profile-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 0 32px;
}

.profile-hero__avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b6cf0, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: #fff;
  border: 2px solid var(--border-strong);
  position: relative;
  flex-shrink: 0;
}

.profile-hero__avatar-edit {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-sidebar);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-hero__name {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1;
}

.profile-hero__userid {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-accent);
  font-size: 13px;
  font-family: var(--font-display);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-card-hover);
  cursor: pointer;
  transition: background 0.15s;
}
.copy-btn:hover { background: var(--accent); color: #fff; }

/* Info row layout: Email, X, Discord */
.info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.info-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-tile__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--text-muted);
  font-weight: 600;
}

.info-tile__value {
  font-family: var(--font-display);
  font-size: 18px;
  margin-top: 4px;
  color: var(--text-primary);
}

.info-tile__icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}

/* Wallet address bar */
.wallet-address-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.wallet-address {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.wallet-address__label {
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.wallet-address__value {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 0.3px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* KYC card replaces "Coming Soon" */
.kyc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.kyc-status {
  display: flex; align-items: center; gap: 10px;
}

.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.status-dot--pending { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.status-dot--verified { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot--required { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* ==========================================================================
   Activity Preview (added on Account page)
   ========================================================================== */

.activity-list { display: flex; flex-direction: column; gap: 10px; }

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.activity-item__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.activity-item__icon--win { background: var(--success-bg); color: var(--success); }
.activity-item__icon--loss { background: var(--danger-bg); color: var(--danger); }

.activity-item__main { flex: 1; min-width: 0; }
.activity-item__title { font-weight: 600; font-size: 13px; }
.activity-item__meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.activity-item__amount {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.activity-item__amount--win { color: var(--success); }
.activity-item__amount--loss { color: var(--danger); }

/* ==========================================================================
   Account page two-col layout
   ========================================================================== */

.account-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 16px;
}

/* ==========================================================================
   Match History — table
   ========================================================================== */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.input, .select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border 0.15s;
}

.input:focus, .select:focus { border-color: var(--border-active); }

.input--search {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  padding-left: 36px;
  min-width: 280px;
}

.select { padding-right: 32px; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.toolbar__spacer { flex: 1; }

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.match-table { width: 100%; border-collapse: collapse; }

.match-table thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.match-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}

.match-table tbody tr:last-child td { border-bottom: none; }
.match-table tbody tr { transition: background 0.15s; }
.match-table tbody tr:hover { background: var(--bg-card-hover); }

.match-table .num { font-family: var(--font-display); letter-spacing: 0.3px; }

.opponent {
  display: flex; align-items: center; gap: 10px;
}

.opponent__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8cff, #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.game-cell { display: flex; align-items: center; gap: 10px; }

.game-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg-card-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge--win { background: var(--success-bg); color: var(--success); }
.badge--loss { background: var(--danger-bg); color: var(--danger); }
.badge--pending { background: var(--warning-bg); color: var(--warning); }

.amount-pos { color: var(--success); font-weight: 600; }
.amount-neg { color: var(--danger); font-weight: 600; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-card-hover);
  color: var(--text-secondary);
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--accent); color: #fff; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.pagination__info { font-size: 12px; color: var(--text-muted); }
.pagination__controls { display: flex; gap: 6px; }

.page-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.page-btn:hover { border-color: var(--border-active); color: var(--text-primary); }
.page-btn--active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ==========================================================================
   Login (auth) page
   ========================================================================== */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.auth__back {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}
.auth__back:hover { color: var(--text-primary); border-color: var(--border-active); }

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-modal);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 36px 32px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  position: relative;
}

.auth-card__logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(40, 50, 80, 0.9), rgba(20, 24, 40, 0.9));
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-card__title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-top: 24px;
  color: var(--text-primary);
}

.auth-card__subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 24px;
}

.field { margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.field__input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border 0.15s, background 0.15s;
}
.field__input:focus { border-color: var(--border-active); background: rgba(255, 255, 255, 0.05); }
.field__input::placeholder { color: var(--text-muted); }

.field--password { position: relative; }
.field--password .field__toggle {
  position: absolute;
  right: 12px;
  top: 36px;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 16px 0;
}

.captcha-row {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}

.captcha-row__cf {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.auth-card__footer {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-card__footer a {
  color: var(--text-primary);
  font-weight: 600;
  margin-left: 6px;
}

/* ==========================================================================
   Section heading (panel)
   ========================================================================== */

.section-h {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-h::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet ≤ 1100px */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .info-row { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .wallet-address-row { grid-template-columns: 1fr; }
  .profile-hero__name { font-size: 40px; }
  .profile-hero__avatar { width: 96px; height: 96px; font-size: 36px; }
}

/* Tablet portrait & large mobile ≤ 900px */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  /* Sidebar becomes a slide-in drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(280px, 80vw);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5);
  }
  .sidebar.is-open { transform: translateX(0); }

  /* Backdrop */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* App grid: single column when sidebar is hidden */
  .app {
    grid-template-columns: 1fr;
    grid-template-areas: "topbar" "main";
  }

  /* Topbar */
  .topbar {
    padding: 0 14px;
    gap: 8px;
    height: 60px;
  }
  :root { --topbar-h: 60px; }
  .topbar__balances { gap: 8px; flex: 1; min-width: 0; overflow-x: auto; }
  .topbar__balances::-webkit-scrollbar { display: none; }

  .balance-pill { padding: 6px 10px; font-size: 12px; flex-shrink: 0; }
  .balance-pill__add { display: none; }
  .balance-pill__symbol { display: none; }

  .topbar__right { gap: 6px; }
  .wallet-chip { display: none; }
  .topbar__icon-btn { width: 34px; height: 34px; }

  /* Hamburger button visible on mobile */
  .topbar__menu {
    display: flex;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    flex-shrink: 0;
  }

  .main { padding: 18px 14px 60px; }

  /* Page header: stack title + actions */
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .page-title { font-size: 22px; }
  .page-subtitle { font-size: 13px; }

  /* Profile hero: stack vertically */
  .profile-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0 20px;
  }
  .profile-hero__avatar { width: 80px; height: 80px; font-size: 30px; }
  .profile-hero__name { font-size: 32px; }

  /* Stat grid: 2 columns down to 600px, then 1 col */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 14px 12px; }
  .stat__value { font-size: 22px; }

  /* Card padding */
  .card { padding: 16px; }

  /* Tables: enable horizontal scroll inside the card wrapper */
  .table-card { overflow-x: auto; }
  .table-card .data-table,
  .table-card .match-table { min-width: 720px; }

  /* Toolbar wrap */
  .toolbar { gap: 8px; }
  .input--search { min-width: 0; width: 100%; }

  /* Tabs scroll horizontally */
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; padding: 7px 14px; font-size: 12px; }

  /* Item grid */
  .item-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .item__image { font-size: 40px; }
  .item__body { padding: 10px 12px; }
  .item__name { font-size: 13px; }

  /* Tournament grid */
  .tournament-grid { grid-template-columns: 1fr; }
  .tournament__prize-amount { font-size: 28px; }

  /* KYC review grid */
  .kyc-review-grid { grid-template-columns: 1fr; }

  /* Setting row stack */
  .setting-row { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Splits collapse */
  .split-2, .split-3, .split-3-rev { grid-template-columns: 1fr; gap: 14px; }

  /* Section headings */
  .section-h { font-size: 12px; margin: 20px 0 10px; }

  /* Auth pages */
  .auth__back { top: 16px; left: 16px; padding: 7px 12px; font-size: 12px; }
  .auth-card { padding: 28px 22px 22px; }
  .auth-card__title { font-size: 22px; }

  /* Pagination */
  .pagination { flex-direction: column; gap: 10px; padding: 12px; }
  .pagination__controls { flex-wrap: wrap; justify-content: center; }

  /* Chooser */
  .chooser__title { font-size: 28px; }
  .chooser__cards { grid-template-columns: 1fr; gap: 14px; }
  .chooser-card { padding: 22px; }

  /* Wallet address */
  .wallet-address__value { font-size: 11px; }
  .wallet-address { padding: 12px 14px; flex-wrap: wrap; }

  /* Recent activity */
  .activity-item { padding: 10px 12px; gap: 10px; }
  .activity-item__title { font-size: 12px; }
  .activity-item__amount { font-size: 13px; }
}

/* Small phones ≤ 600px */
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat__value { font-size: 26px; }

  .item-grid { grid-template-columns: 1fr; }

  .profile-hero__name { font-size: 28px; }
  .profile-hero__avatar { width: 72px; height: 72px; font-size: 26px; }

  .page-title { font-size: 20px; }

  /* Hide some toolbar selects on very small screens — keep search + 1 filter */
  .toolbar .select:nth-of-type(n+3) { display: none; }
}

/* Hamburger button is hidden by default on desktop */
.topbar__menu { display: none; }

/* Lock body scroll when sidebar drawer open */
body.sidebar-open { overflow: hidden; }

/* ==========================================================================
   Avatar images — universal sizing for any avatar container that holds an <img>
   ========================================================================== */

.profile-hero__avatar img,
.user-cell__avatar img,
.opponent__avatar img,
.sidebar__profile-avatar img,
.activity-item__icon img,
.balance-pill__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Avatar containers default to fully rounded so img inherits border-radius */
.profile-hero__avatar,
.user-cell__avatar,
.opponent__avatar,
.sidebar__profile-avatar,
.balance-pill__icon {
  border-radius: 50%;
  overflow: hidden;
}

/* Activity icons stay rounded-rect, not full circle */
.activity-item__icon {
  border-radius: 10px;
  overflow: hidden;
}

/* Hide the letter when an img is present inside */
.profile-hero__avatar:has(img) > :not(img):not(.profile-hero__avatar-edit),
.sidebar__profile-avatar:has(img) > :not(img),
.user-cell__avatar:has(img),
.opponent__avatar:has(img),
.balance-pill__icon:has(img) {
  font-size: 0;
}

/* Logo image in sidebar */
.sidebar__logo img {
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
}

/* Auth card logo as image */
.auth-card__logo img {
  border-radius: 12px;
}

/* Chooser logo */
.chooser__logo {
  width: auto;
  max-width: 480px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 56px;
  filter: drop-shadow(0 8px 32px rgba(91, 140, 255, 0.25));
}

@media (max-width: 700px) {
  .chooser__logo {
    max-width: 80vw;
    max-height: 90px;
    margin-bottom: 36px;
  }
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}

.tab:hover { color: var(--text-primary); }

.tab--active {
  background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 100%);
  color: #0a0d16;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(255,255,255,0.08);
}

.tab__count {
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.tab--active .tab__count { background: rgba(0,0,0,0.18); color: #0a0d16; }

/* ==========================================================================
   Item Grid (Inventory, Marketplace)
   ========================================================================== */

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.1s;
  cursor: pointer;
}

.item:hover { border-color: var(--border-active); transform: translateY(-2px); }

.item__image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.item__rarity {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.item__rarity--common { background: rgba(154, 163, 184, 0.2); color: var(--text-secondary); }
.item__rarity--rare { background: rgba(91, 140, 255, 0.2); color: var(--accent); }
.item__rarity--epic { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.item__rarity--legendary { background: rgba(250, 204, 21, 0.2); color: var(--warning); }

.item__owned {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success);
}

.item__body { padding: 14px 16px; }
.item__name { font-weight: 600; font-size: 14px; }
.item__sub { color: var(--text-muted); font-size: 12px; margin-top: 2px; }

.item__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.item__price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.item__price-icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #5b8cff, #3b6cf0);
  margin-right: 6px;
  vertical-align: middle;
}

/* Item gradients (as image placeholders) */
.bg-grad-blue   { background: linear-gradient(135deg, #1e3a8a 0%, #3b6cf0 100%); }
.bg-grad-purple { background: linear-gradient(135deg, #581c87 0%, #a855f7 100%); }
.bg-grad-green  { background: linear-gradient(135deg, #064e3b 0%, #10b981 100%); }
.bg-grad-amber  { background: linear-gradient(135deg, #7c2d12 0%, #f59e0b 100%); }
.bg-grad-rose   { background: linear-gradient(135deg, #831843 0%, #ec4899 100%); }
.bg-grad-cyan   { background: linear-gradient(135deg, #155e75 0%, #06b6d4 100%); }
.bg-grad-grey   { background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%); }
.bg-grad-gold   { background: linear-gradient(135deg, #92400e 0%, #fbbf24 100%); }

/* ==========================================================================
   Tournament Card
   ========================================================================== */

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.tournament {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tournament__hero {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.tournament__pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  margin-bottom: 10px;
}

.tournament__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.tournament__prize {
  margin-top: 14px;
}

.tournament__prize-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}

.tournament__prize-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.tournament__body {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
}

.tournament__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.tournament__meta-row {
  display: flex; align-items: center; gap: 6px;
}

/* ==========================================================================
   Stepper (KYC flow)
   ========================================================================== */

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.step__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
}

.step--done {
  border-color: rgba(34,197,94,0.4);
  color: var(--text-secondary);
}
.step--done .step__num { background: var(--success); color: #fff; }

.step--active {
  border-color: var(--border-active);
  background: rgba(91, 140, 255, 0.08);
  color: var(--text-primary);
}
.step--active .step__num { background: var(--accent); color: #fff; }

.step__connector {
  width: 30px;
  height: 1px;
  background: var(--border);
}

/* ==========================================================================
   Toggle Switch
   ========================================================================== */

.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.toggle__slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  top: 3px;
  background: #9aa3b8;
  transition: 0.2s;
  border-radius: 50%;
}

.toggle input:checked + .toggle__slider {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(18px);
  background: #fff;
}

/* ==========================================================================
   File Drop (KYC document upload)
   ========================================================================== */

.file-drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-input);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.file-drop:hover {
  border-color: var(--accent);
  background: rgba(91, 140, 255, 0.04);
}

.file-drop__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--bg-card-hover);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
}

.file-drop__title { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.file-drop__sub { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

/* ==========================================================================
   Bar Chart (admin revenue)
   ========================================================================== */

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 200px;
  padding: 12px 0;
}

.bar-chart__bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(91, 140, 255, 0.2) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 4px;
  transition: filter 0.15s;
}

.bar-chart__bar:hover { filter: brightness(1.3); }

.bar-chart__bar::after {
  content: attr(data-value);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-muted);
}

.bar-chart__bar--alt {
  background: linear-gradient(180deg, #a855f7 0%, rgba(168, 85, 247, 0.2) 100%);
}

.bar-chart-wrap {
  padding-bottom: 28px;
}

/* ==========================================================================
   Sparkline (small inline trend)
   ========================================================================== */

.sparkline { display: inline-block; vertical-align: middle; }

/* ==========================================================================
   Admin nav badge variants
   ========================================================================== */

.nav-item__badge--danger { background: var(--danger); }

/* ==========================================================================
   Data Table (admin)
   ========================================================================== */

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.data-table thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-card-hover); }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8cff, #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.user-cell__name { font-weight: 600; }
.user-cell__email { color: var(--text-muted); font-size: 12px; }

/* ==========================================================================
   KYC review card
   ========================================================================== */

.kyc-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.kyc-review {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.kyc-review__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.kyc-review__user { display: flex; align-items: center; gap: 10px; }

.kyc-review__docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.kyc-review__doc {
  aspect-ratio: 4 / 3;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.kyc-review__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  color: var(--text-secondary);
}

.kyc-review__row strong { color: var(--text-primary); font-weight: 500; }

.kyc-review__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Alert / Banner
   ========================================================================== */

.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert--info { background: var(--info-bg); border: 1px solid rgba(91,140,255,0.25); color: var(--text-primary); }
.alert--warning { background: var(--warning-bg); border: 1px solid rgba(250,204,21,0.25); color: var(--text-primary); }
.alert--danger { background: var(--danger-bg); border: 1px solid rgba(239,68,68,0.25); color: var(--text-primary); }

.alert__icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   Settings list rows
   ========================================================================== */

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.setting-row:last-child { border-bottom: none; }

.setting-row__label { font-weight: 600; font-size: 14px; }
.setting-row__sub { color: var(--text-muted); font-size: 12px; margin-top: 2px; max-width: 480px; }

/* ==========================================================================
   Code snippet
   ========================================================================== */

.code {
  font-family: 'SF Mono', 'Monaco', monospace;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Game tile (download page)
   ========================================================================== */

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.platform-card__icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--bg-card-hover);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.platform-card__main { flex: 1; }
.platform-card__title { font-weight: 600; font-size: 18px; }
.platform-card__sub { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.platform-card__meta {
  display: flex;
  gap: 28px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.platform-card__meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--text-muted);
  font-weight: 700;
}

/* ==========================================================================
   Two-column layouts
   ========================================================================== */

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.split-3-rev { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }

@media (max-width: 1100px) {
  .split-2, .split-3, .split-3-rev { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Misc utility
   ========================================================================== */

.muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mono { font-family: 'SF Mono', 'Monaco', monospace; }

.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.gap-sm { gap: 8px; }
.gap-lg { gap: 20px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ==========================================================================
   Chooser (root index.html)
   ========================================================================== */

.chooser {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.chooser__logo {
  width: 96px; height: 96px;
  margin-bottom: 20px;
}

.chooser__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.chooser__sub {
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
}

.chooser__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  width: 100%;
}

@media (max-width: 700px) {
  .chooser__cards { grid-template-columns: 1fr; }
}

.chooser-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  transition: border-color 0.15s, transform 0.15s;
  cursor: pointer;
  display: block;
}

.chooser-card:hover { border-color: var(--border-active); transform: translateY(-3px); }

.chooser-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(91, 140, 255, 0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.chooser-card--admin .chooser-card__icon {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.chooser-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.chooser-card__sub {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.55;
}

.chooser-card__list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
}

.chooser-card__list li {
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chooser-card__list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
