/* Splash */
#splash { position:fixed; inset:0; z-index:9999; display:grid; place-items:center;
  background:linear-gradient(180deg,#0b0e1a,#121631 60%) }
html[data-theme=light] #splash { background:linear-gradient(180deg,#eef2ff,#f9fbff 60%) }
.splash-card { background:var(--card); border:4px solid var(--stroke); border-radius:26px;
  padding:26px 28px; box-shadow:var(--shadow); text-align:center; max-width:420px; width:92%; cursor:pointer }
.splash-card img { width:120px; display:block; margin:0 auto 12px; filter:drop-shadow(0 8px 0 #0c0b16) }
.splash-title { font-size:22px; font-weight:900; margin-bottom:6px }
.splash-sub { opacity:.85; font-size:14px }

/* Header */
header { position:sticky; top:0; z-index:6; padding:14px 18px; color:#fff;
  background:linear-gradient(180deg,#4b3dbe,#3c2ea0);
  filter:drop-shadow(0 8px 0 #0c0b16); border-bottom:4px solid #0c0b16 }
html[data-theme=light] header { border-bottom-color:#b8c1ee; filter:none;
  box-shadow:0 6px 0 rgba(0,0,0,.05) }
header .row { display:grid; grid-template-columns:max-content 1fr max-content;
  align-items:center; gap:12px }
.logo { display:flex; align-items:center; gap:12px; font-weight:900; font-size:22px }
.logo img { height:34px; border-radius:10px }
.logo .badge { background:var(--accent); color:#1b1140; padding:4px 10px;
  border:3px solid var(--stroke); border-radius:999px; box-shadow:var(--shadow) }
.playername { justify-self:center; text-align:center; font-weight:900;
  font-size:20px; line-height:1; letter-spacing:.2px }

.toolbar { display:flex; gap:8px; flex-wrap:wrap }
.btn { border:3px solid var(--stroke); border-radius:12px; padding:10px 14px;
  cursor:pointer; font-weight:900; background:var(--btn); color:var(--btn-ink) }
.btn.red { background:var(--danger); color:#fff }
.btn.primary { background:var(--ok); color:#fff }
.btn:disabled { opacity:.5; cursor:not-allowed }

/* Layout */
main { padding:18px }
.grid { display:grid; grid-template-columns:380px 1fr 420px; gap:18px }
@media (max-width:1200px){ .grid { grid-template-columns:1fr } }
.card { background:var(--card); border:4px solid var(--stroke);
  border-radius:22px; padding:14px; box-shadow:var(--shadow) }
.title { font-weight:900; font-size:22px }

/* Statistikk */
.stats { display:grid; grid-template-columns:repeat(2,1fr); gap:12px }
.stat { background:var(--muted); border:4px solid var(--stroke); border-radius:18px;
  padding:12px; box-shadow:var(--shadow); min-height:74px;
  display:flex; align-items:center; justify-content:space-between; gap:12px; position:relative }
.stat .big { display:flex; align-items:center; justify-content:flex-end;
  max-width:100%; white-space:nowrap; overflow:hidden; font-variant-numeric:tabular-nums;
  padding-left:8px; letter-spacing:.2px }
.stat .big .short { font-size:22px; font-weight:900; line-height:1 }
