:root {
  --bg: #0f1320;
  --panel: #171d2e;
  --panel-2: #202840;
  --line: rgba(255,255,255,.08);
  --text: #edf1fb;
  --muted: #9eabc9;
  --accent: #7f9cff;
  --accent-2: #87d6ac;
  --danger: #ff7b7b;
  --warning: #ffcf70;
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0b1020 0%, #0f1320 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.site-shell { max-width: 1180px; margin: 0 auto; padding: 16px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 18px; border: 1px solid var(--line);
  background: rgba(23,29,46,.88); border-radius: 22px; position: sticky; top: 12px;
  backdrop-filter: blur(12px); z-index: 10;
}
.brand-wrap { display:flex; align-items:center; gap:12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), #b78dff); font-weight: 800;
}
.brand-title { font-size: 1.1rem; font-weight: 800; }
.brand-subtitle { font-size: .82rem; color: var(--muted); }
.top-nav { display:flex; flex-wrap: wrap; gap: 10px; }
.top-nav a { color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.top-nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.page-wrap { padding: 18px 0 24px; }
.panel, .hero-card, .stat-card, .mini-card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.panel { padding: 20px; }
.hero-card {
  padding: 24px; display:grid; grid-template-columns: 1.3fr .9fr; gap: 18px;
  min-height: 320px; align-items: center;
}
.hero-card h1 { margin: 8px 0 12px; font-size: 2.2rem; line-height: 1.08; }
.lead { color: var(--muted); font-size: 1rem; max-width: 700px; }
.eyebrow { color: var(--warning); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-actions, .action-row { display:flex; gap:10px; flex-wrap: wrap; margin-top: 16px; }
.hero-stats { display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-card { padding: 16px; display:flex; flex-direction:column; gap:6px; }
.mini-card span { color: var(--muted); font-size:.9rem; }
.btn {
  border: 0; border-radius: 12px; padding: 11px 14px; display:inline-flex; align-items:center;
  justify-content:center; font-weight:700; cursor:pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #95aaff); color: #0d1120; }
.btn-secondary { background: #26304b; color: var(--text); }
.grid { display:grid; gap:16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.compact-grid { gap: 10px; }
.stat-card { padding: 18px; display:flex; flex-direction:column; gap:10px; }
.stat-card span, .muted { color: var(--muted); }
.stat-card strong { font-size: 1.55rem; }
.skill-line {
  display:flex; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--line);
}
.skill-line:last-child { border-bottom:0; }
.flash {
  margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
}
.flash-success { background: rgba(135,214,172,.09); color: #d7ffe5; }
.flash-error { background: rgba(255,123,123,.10); color: #ffe1e1; }
.flash-info { background: rgba(127,156,255,.10); color: #dfe7ff; }
.form-stack { display:grid; gap:12px; }
.form-stack label { display:grid; gap:6px; color: var(--muted); }
input, select {
  width:100%; background:#0f1628; border:1px solid var(--line); color:var(--text);
  border-radius:12px; padding:12px 13px;
}
.table-wrap { overflow:auto; }
.game-table { width:100%; border-collapse: collapse; }
.game-table th, .game-table td { text-align:left; padding:12px 10px; border-bottom:1px solid var(--line); }
.game-table th { color: var(--muted); font-size: .92rem; }
.footer {
  display:flex; justify-content:space-between; gap:12px; padding: 18px 6px 30px; color: var(--muted);
  font-size: .9rem;
}
.narrow-panel { max-width: 560px; margin: 0 auto; }
.top-gap { margin-top: 16px; }
.top-gap-small { margin-top: 10px; }
.block-inline { display:inline-block; }
@media (max-width: 860px) {
  .hero-card, .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .topbar, .footer { flex-direction: column; align-items: stretch; }
  .hero-card h1 { font-size: 1.7rem; }
  .site-shell { padding: 12px; }
}
