:root {
  --cyan:#67e8f9;
  --cyan-strong:#22d3ee;
  --pink:#f472b6;
  --lime:#a3e635;
  --amber:#fbbf24;
  --red:#fb7185;
  --bg:#06080d;
  --bg-soft:#0a0e16;
  --panel:#0d121b;
  --panel-2:#111824;
  --panel-3:#151e2b;
  --line:#273244;
  --line-soft:#1b2533;
  --text:#f4f7fb;
  --muted:#9aaabe;
  --dim:#68778b;
  --good:#34d399;
  --shadow:0 24px 70px rgba(0,0,0,.48);
}

* { box-sizing:border-box; margin:0; padding:0; }
html, body { width:100%; height:100%; overflow:hidden; background:var(--bg); color:var(--text); }
body { font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; user-select:none; touch-action:none; }
button, input, select { font:inherit; }
button { color:inherit; }
canvas#game { display:block; position:absolute; inset:0; cursor:crosshair; }
.hide { display:none !important; }

/* --------------------------------------------------------------- shared form */
label { display:block; margin:0 0 7px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:1.35px; text-transform:uppercase; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width:100%; min-height:43px; padding:10px 12px; color:var(--text); background:#080c13;
  border:1px solid var(--line); border-radius:6px; outline:none; transition:border-color .14s, box-shadow .14s;
}
input::placeholder { color:#566578; }
input:focus, select:focus { border-color:var(--cyan-strong); box-shadow:0 0 0 3px rgba(34,211,238,.12); }
button { border:0; cursor:pointer; }

.smallBtn, .ghostBtn, .authPrimary, .authGuest, .authTextBtn, .rbtn, .admBtn {
  min-height:38px; padding:9px 13px; border-radius:6px; font-size:10.5px; font-weight:900; letter-spacing:1px; text-transform:uppercase;
  transition:transform .12s, border-color .12s, background .12s, opacity .12s;
}
.smallBtn, .authPrimary, .rbtn {
  color:#061016; background:var(--cyan); border:1px solid var(--cyan);
}
.smallBtn:hover, .authPrimary:hover, .rbtn:hover { transform:translateY(-1px); background:#a5f3fc; }
.smallBtn:disabled, .authPrimary:disabled { opacity:.42; cursor:not-allowed; transform:none; }
.secondaryBtn, .ghostBtn, .authGuest, .authTextBtn {
  color:#dbe7f4; background:#0c121c; border:1px solid var(--line);
}
.secondaryBtn:hover, .ghostBtn:hover, .authGuest:hover, .authTextBtn:hover { border-color:var(--cyan-strong); background:#111a27; }

/* ---------------------------------------------------------------- auth */
#authGate {
  position:absolute; inset:0; z-index:40; display:flex; align-items:center; justify-content:center; padding:24px;
  background:
    linear-gradient(rgba(103,232,249,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,232,249,.025) 1px, transparent 1px),
    #070a10;
  background-size:42px 42px;
  overflow:auto;
}
.authShell {
  width:min(920px,96vw); min-height:570px; display:grid; grid-template-columns:1.05fr .95fr;
  background:var(--panel); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:10px; overflow:hidden;
}
.authIntro {
  position:relative; padding:58px 56px; display:flex; flex-direction:column; justify-content:center;
  background:#090d14; border-right:1px solid var(--line);
}
.authIntro::after {
  content:""; position:absolute; left:0; bottom:0; width:100%; height:4px; background:var(--cyan);
}
.authEyebrow { color:var(--cyan); font:800 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:3px; }
.authLogo { margin-top:22px; font-size:clamp(48px,7vw,76px); font-weight:950; line-height:.84; letter-spacing:-3px; color:#f7fbff; }
.authLogo span { color:var(--cyan); }
.authIntro > p { max-width:340px; margin-top:27px; color:#bdcad9; font-size:17px; line-height:1.55; }
.authRules { margin-top:42px; display:grid; gap:14px; }
.authRules span { display:flex; align-items:center; gap:13px; color:var(--muted); font-size:12px; }
.authRules b { width:29px; height:29px; display:grid; place-items:center; border:1px solid var(--line); color:var(--cyan); font:800 10px/1 ui-monospace,Consolas,monospace; border-radius:4px; }

.authCard { padding:42px 42px 34px; display:flex; flex-direction:column; justify-content:center; background:var(--panel); }
.authTopline { display:flex; align-items:center; gap:12px; margin-bottom:20px; color:var(--muted); font:800 10px/1 ui-monospace,Consolas,monospace; letter-spacing:2px; }
.authTopline i { flex:1; height:1px; background:var(--line); }
.authTabs { display:grid; grid-template-columns:1fr 1fr; gap:0; margin-bottom:22px; border-bottom:1px solid var(--line); }
.authTab { padding:12px 5px; color:var(--dim); background:transparent; border-bottom:2px solid transparent; font-size:11px; font-weight:850; letter-spacing:.7px; text-transform:uppercase; }
.authTab.active { color:var(--text); border-color:var(--cyan); }
.authForm { display:flex; flex-direction:column; }
.authForm label:not(:first-child) { margin-top:13px; }
.authPrimary { margin-top:18px; }
.authTextBtn { margin-top:9px; }
.authSub { margin-bottom:12px; color:var(--muted); font-size:13px; line-height:1.55; }
.authLinks { display:flex; justify-content:flex-start; margin-top:13px; }
.authLinks a { color:var(--cyan); font-size:12px; cursor:pointer; text-decoration:none; }
.authLinks a:hover { text-decoration:underline; }
.authDivider { display:flex; align-items:center; gap:10px; margin:22px 0 13px; color:var(--dim); font:800 9px/1 ui-monospace,Consolas,monospace; letter-spacing:1.5px; }
.authDivider::before, .authDivider::after { content:""; flex:1; height:1px; background:var(--line); }
.authGuest { width:100%; }
.authFine { margin-top:10px; color:var(--dim); font-size:10.5px; line-height:1.5; text-align:center; }
.authMsg { margin-bottom:16px; padding:10px 12px; border-left:3px solid; background:#0a1019; color:#cbd7e5; font-size:12px; line-height:1.5; }
.authMsg.err { border-color:var(--red); }
.authMsg.ok { border-color:var(--good); }
.authMsg.info { border-color:var(--cyan); }

/* --------------------------------------------------------------- menu shell */
#overlay {
  position:absolute; inset:0; z-index:20; display:flex; align-items:center; justify-content:center; padding:18px;
  background:
    radial-gradient(circle at 12% 15%, rgba(34,211,238,.07), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(244,114,182,.055), transparent 30%),
    #070a10;
}
#panel {
  width:min(1120px,96vw); height:min(760px,94vh); overflow:hidden; position:relative;
  background:var(--panel); border:1px solid var(--line); border-radius:9px; box-shadow:var(--shadow);
}
#panel::before { content:""; position:absolute; left:0; top:0; right:0; height:3px; background:var(--cyan); z-index:2; }
#panel > * { margin-left:28px; margin-right:28px; }
.menuHead { min-height:96px; display:flex; align-items:center; gap:20px; padding-top:8px; border-bottom:1px solid var(--line-soft); }
.menuHead .brand { display:flex; align-items:center; gap:13px; min-width:0; }
.brandMark { width:45px; height:45px; display:grid; place-items:center; flex:none; color:#071018; background:var(--cyan); font:950 13px/1 ui-monospace,Consolas,monospace; letter-spacing:-1px; border-radius:4px; }
h1 { font-size:25px; line-height:1; letter-spacing:1.6px; font-weight:950; color:#f8fbff; }
.sub { margin-top:7px; color:var(--dim); font:750 9px/1 ui-monospace,Consolas,monospace; letter-spacing:2px; }
.roomHead { margin-left:auto; display:grid; grid-template-columns:auto auto auto; grid-template-rows:auto auto; align-items:center; gap:2px 9px; padding:10px 11px; border:1px solid var(--line); border-radius:6px; background:#090e16; }
.roomHead > span { grid-column:1; color:var(--dim); font:800 8px/1 ui-monospace,Consolas,monospace; letter-spacing:1.6px; }
.roomHead > b { grid-column:1; color:var(--cyan); font:900 18px/1 ui-monospace,Consolas,monospace; letter-spacing:2px; }
.roomHead > small { grid-column:2; grid-row:1 / 3; color:var(--muted); font-size:10px; white-space:nowrap; }
.roomHead .ghostBtn { grid-column:3; grid-row:1 / 3; min-height:32px; padding:7px 10px; }

.lobbyNotice { margin-top:10px; padding:8px 11px; border:1px solid rgba(251,191,36,.35); background:rgba(251,191,36,.07); color:#fcd98b; font-size:11px; border-radius:5px; }
.menuStats { display:flex; gap:7px; margin-top:11px; min-height:26px; align-items:center; flex-wrap:wrap; }
.pill { padding:5px 9px; border:1px solid var(--line); background:#090e16; color:var(--muted); border-radius:4px; font-size:10px; }
.pill b { color:var(--text); }
.tabs { height:49px; display:flex; align-items:flex-end; gap:2px; margin-top:3px; border-bottom:1px solid var(--line); }
.tabBtn { height:48px; padding:0 14px; color:var(--dim); background:transparent; border-bottom:2px solid transparent; font-size:10px; font-weight:900; letter-spacing:1px; text-transform:uppercase; }
.tabBtn:hover { color:#c9d6e4; }
.tabBtn.active { color:var(--text); border-color:var(--cyan); }
.tabPanel { display:none; height:calc(100% - 197px); padding:18px 0 24px; overflow:hidden; }
.tabPanel.active { display:block; }
.sectionLabel { margin-bottom:14px; color:var(--cyan); font:850 9px/1 ui-monospace,Consolas,monospace; letter-spacing:2px; }

/* play tab intentionally fits without page scrolling */
.playLayout { height:100%; display:grid; grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr); gap:15px; }
.launchCard, .guideCard, .joinCard, .dailyCard, .menuCard { background:var(--panel-2); border:1px solid var(--line); border-radius:7px; }
.launchCard { padding:25px; display:flex; flex-direction:column; justify-content:center; }
.launchCard label:not(:first-of-type) { margin-top:20px; }
.colors { display:flex; gap:9px; flex-wrap:wrap; margin:3px 0 22px; }
.sw { width:32px; height:32px; border:2px solid #0a0e15; outline:1px solid var(--line); border-radius:4px; cursor:pointer; transition:transform .12s, outline-color .12s; }
.sw:hover { transform:translateY(-1px); }
.sw.active { outline:2px solid #fff; transform:translateY(-1px); }
button.play { width:100%; min-height:52px; margin-top:4px; border-radius:6px; color:#061016; background:var(--cyan); font-size:13px; font-weight:950; letter-spacing:2px; }
button.play:hover { background:#a5f3fc; }
button.play:disabled { opacity:.45; cursor:wait; }
.playSide { display:grid; grid-template-rows:1fr auto auto; gap:12px; }
.guideCard, .joinCard { padding:19px; }
.guideRow { display:grid; grid-template-columns:108px 1fr; gap:12px; align-items:center; padding:10px 0; border-top:1px solid var(--line-soft); color:var(--muted); font-size:12px; }
.guideRow:first-of-type { border-top:0; }
kbd { padding:7px 8px; border:1px solid var(--line); border-bottom-color:#3b4a5f; border-radius:4px; background:#080c13; color:#d9e5f2; font:800 9px/1 ui-monospace,Consolas,monospace; text-align:center; }
.joinLine { display:grid; grid-template-columns:1fr auto; gap:8px; }
#joinRoomCode { text-transform:uppercase; letter-spacing:3px; font-family:ui-monospace,Consolas,monospace; font-weight:900; }
.joinCard p { margin-top:10px; color:var(--dim); font-size:10.5px; line-height:1.5; }
.dailyCard { padding:14px 17px; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.dailyCard .sectionLabel { margin-bottom:6px; }
.dailyCard .metricGrid { display:none; }
.dailyCard p { line-height:1.35; }

/* cases */
.caseLayout { height:100%; display:grid; grid-template-columns:280px 1fr; gap:14px; }
.caseList { min-height:0; overflow:auto; display:grid; align-content:start; gap:8px; padding-right:5px; scrollbar-width:thin; scrollbar-color:#36455a transparent; }
.caseCard { padding:11px; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); cursor:pointer; }
.caseCard:hover { border-color:#3b4b61; }
.caseCard.active { border-color:var(--cyan-strong); box-shadow:inset 3px 0 0 var(--cyan); }
.caseName { display:flex; justify-content:space-between; gap:8px; font-size:12px; font-weight:900; }
.caseCount { color:var(--amber); }
.caseBoxArt { height:48px; margin:8px 0; display:grid; place-items:center; background:#080c13; border:1px solid var(--line-soft); border-radius:4px; font:900 17px/1 ui-monospace,Consolas,monospace; letter-spacing:2px; }
.caseTag { color:var(--dim); font-size:9.5px; line-height:1.45; }
.menuCard { padding:18px; }
.menuCard h3 { margin-bottom:10px; color:var(--text); font-size:13px; letter-spacing:.6px; }
.menuCard p, .tiny { color:var(--muted); font-size:11.5px; line-height:1.55; }
.caseWorkbench { min-width:0; display:flex; flex-direction:column; }
.odds { display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.odd { padding:4px 7px; border:1px solid var(--line); border-radius:4px; background:#090e16; font-size:9px; text-transform:uppercase; }
.crateActions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.reel { position:relative; height:138px; flex:none; overflow:hidden; border:1px solid var(--line); background:#070a10; border-radius:6px; }
.reelTrack { display:flex; gap:8px; padding:20px 10px; transform:translateX(0); will-change:transform; }
.reelItem { flex:0 0 104px; height:96px; padding:8px; display:flex; flex-direction:column; justify-content:space-between; background:#111824; border:1px solid var(--line); border-radius:5px; }
.reelItem .skinBlob { height:34px; border-radius:99px; box-shadow:0 0 14px currentColor; }
.reelItem .skinNm { color:#e8eef6; font-size:9.5px; line-height:1.15; }
.reelItem .rar { font-size:8px; letter-spacing:1px; text-transform:uppercase; }
.reelCenter { position:absolute; z-index:3; top:0; bottom:0; left:50%; width:112px; transform:translateX(-50%); border-left:2px solid var(--cyan); border-right:2px solid var(--cyan); background:rgba(103,232,249,.055); pointer-events:none; }
.reelCenter span { position:absolute; top:4px; left:50%; transform:translateX(-50%); padding:2px 5px; background:#071018; color:var(--cyan); font:850 8px/1 ui-monospace,Consolas,monospace; letter-spacing:1px; }
.reelPointer { position:absolute; z-index:5; left:50%; width:0; height:0; transform:translateX(-50%); }
.reelPointer.top { top:0; border-left:9px solid transparent; border-right:9px solid transparent; border-top:12px solid var(--cyan); }
.reelPointer.bottom { bottom:0; border-left:9px solid transparent; border-right:9px solid transparent; border-bottom:12px solid var(--cyan); }
.reelItem.win.landed { border-color:#fff; box-shadow:0 0 0 2px var(--cyan), 0 0 24px currentColor; animation:reelLand .55s ease; }
@keyframes reelLand { 45% { transform:scale(1.06); } }
.caseResult { margin-top:11px; min-height:61px; padding:12px; background:#090e16; border:1px solid var(--line); border-radius:5px; color:var(--muted); }
.caseResult .rewardName { color:#fff; font-size:17px; font-weight:900; }
.caseResult .rewardMeta { margin-top:4px; font-size:10px; letter-spacing:1px; text-transform:uppercase; }
.caseRecent { margin-top:8px; max-height:36px; overflow:hidden; }

/* inventory / achievements / account */
.fullCard { height:100%; overflow:hidden; }
.skinGrid { height:calc(100% - 28px); overflow:auto; display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); align-content:start; gap:9px; padding-right:4px; }
.skinCard { padding:10px; border:1px solid var(--line); border-radius:6px; background:#0c121b; opacity:.42; }
.skinCard.owned { opacity:1; cursor:pointer; }
.skinCard.owned:hover { border-color:#45566d; }
.skinCard.equipped { border-color:var(--cyan); }
.skinPreview { height:34px; margin-bottom:8px; border-radius:99px; box-shadow:0 0 15px currentColor; }
.skinCard .nm { color:#edf3f9; font-size:11px; font-weight:800; }
.skinCard .rar { margin-top:3px; font-size:8.5px; letter-spacing:.8px; text-transform:uppercase; }
.accountGrid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.metricGrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0; }
.metric { padding:10px; border:1px solid var(--line-soft); border-radius:5px; background:#090e16; color:var(--muted); font-size:10px; }
.metric b { display:block; margin-top:2px; color:#fff; font-size:17px; }
.achList { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; max-height:430px; overflow:auto; }
.ach { padding:11px; display:flex; justify-content:space-between; gap:12px; border:1px solid var(--line); border-radius:5px; background:#0a1018; color:var(--muted); font-size:10px; }
.ach b { color:#eef4fa; }
.ach.done { border-color:rgba(52,211,153,.5); background:rgba(52,211,153,.055); color:#bff3df; }

/* ---------------------------------------------------------------- HUD */
#hud { position:absolute; inset:0; z-index:10; pointer-events:none; }
#lb { position:absolute; top:14px; right:14px; min-width:194px; padding:11px 13px; border:1px solid rgba(103,232,249,.2); border-radius:7px; background:rgba(7,11,17,.82); backdrop-filter:blur(8px); font-size:12px; }
#lb .title { margin-bottom:8px; color:var(--cyan); font:850 9px/1 ui-monospace,Consolas,monospace; letter-spacing:2px; text-align:center; text-transform:uppercase; }
.row { display:flex; justify-content:space-between; gap:10px; padding:2px 0; align-items:center; }
.row .nm { display:flex; align-items:center; gap:6px; max-width:128px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row .rk { width:15px; color:var(--dim); text-align:right; }
.dot { width:8px; height:8px; border-radius:50%; flex:none; }
.row .sc { color:var(--amber); font-variant-numeric:tabular-nums; }
.me { color:#fff; font-weight:800; }
#feed { position:absolute; top:14px; left:14px; max-width:42vw; font-size:12px; line-height:1.75; text-shadow:0 1px 4px #000; }
#stats { position:absolute; left:15px; bottom:14px; color:var(--muted); font-size:12px; }
#stats b { color:#fff; font-size:15px; }
#net { position:absolute; top:14px; left:50%; transform:translateX(-50%); padding:5px 9px; border:1px solid rgba(251,113,133,.35); border-radius:4px; background:rgba(7,11,17,.82); color:#fda4af; font:800 9px/1 ui-monospace,Consolas,monospace; letter-spacing:1.5px; }
#net.good { color:#9cebd3; border-color:rgba(52,211,153,.35); }
#events { position:absolute; top:47px; left:50%; transform:translateX(-50%); min-width:240px; text-align:center; }
.activeEvent { display:inline-block; margin:0 3px 5px; padding:6px 10px; border:1px solid rgba(103,232,249,.25); border-radius:4px; background:rgba(7,11,17,.82); color:#eaf3fb; font-size:9px; letter-spacing:1.2px; text-transform:uppercase; }
.eventToast { margin-top:3px; color:#a7dff2; font-size:10px; letter-spacing:1px; text-shadow:0 1px 5px #000; }
#profileHud { position:absolute; left:50%; bottom:13px; transform:translateX(-50%); min-width:330px; max-width:560px; padding:10px 12px; border:1px solid rgba(103,232,249,.23); border-radius:7px; background:rgba(7,11,17,.86); backdrop-filter:blur(8px); pointer-events:auto; }
#profileHud .pline { display:flex; justify-content:space-between; gap:9px; margin-bottom:7px; color:var(--muted); font-size:11px; }
#profileHud b { color:#fff; }
.xpbar { height:5px; overflow:hidden; margin:5px 0 8px; background:#1a2432; border-radius:99px; }
.xpbar > i { display:block; width:0; height:100%; background:var(--cyan); transition:width .3s; }
#profileHud .actions { display:flex; gap:7px; align-items:center; }
#skinSelect { flex:1; min-height:34px; height:34px; padding:6px 8px; font-size:10px; }
#rewardToast { position:absolute; left:50%; top:83px; transform:translateX(-50%); z-index:12; }
.toast { margin-top:7px; padding:9px 13px; border:1px solid rgba(251,191,36,.4); border-radius:5px; background:rgba(10,14,22,.94); color:#f5f7fa; font-size:11px; animation:toastFade 3.2s ease forwards; }
@keyframes toastFade { 0%{opacity:0;transform:translateY(5px)} 12%,82%{opacity:1;transform:none} 100%{opacity:0;transform:translateY(-8px)} }
#mini { position:absolute; right:14px; bottom:14px; filter:drop-shadow(0 4px 11px rgba(0,0,0,.55)); }
#boostBtn { position:absolute; left:50%; bottom:26px; transform:translateX(-50%); width:92px; height:92px; display:none; align-items:center; justify-content:center; pointer-events:auto; border:2px solid rgba(103,232,249,.5); border-radius:50%; background:rgba(103,232,249,.1); color:#bff6fd; font-size:11px; letter-spacing:1.5px; }

/* ---------------------------------------------------------------- death */
#death { position:absolute; inset:0; z-index:15; display:none; align-items:center; justify-content:center; background:rgba(5,7,11,.91); }
#death .box { width:min(560px,92vw); padding:30px; text-align:center; border:1px solid var(--line); border-top:4px solid var(--red); border-radius:8px; background:var(--panel); box-shadow:var(--shadow); }
#death h2 { margin-bottom:9px; color:#fff; font-size:35px; letter-spacing:2px; }
#death p { margin-bottom:21px; color:var(--muted); font-size:13px; line-height:1.75; }
#death p b { color:#fff; }
#death .killer { color:#fda4af; }
#death .rbtn { margin:0 4px; }
#death .rbtn.secondary { color:#dbe7f4; background:#0c121c; border-color:var(--line); }

/* ---------------------------------------------------------------- admin */
#adminPanel { position:absolute; z-index:50; top:0; right:0; bottom:0; width:min(420px,96vw); overflow:auto; background:#0b1018; border-left:1px solid var(--line); box-shadow:-20px 0 55px rgba(0,0,0,.5); }
.adminBox { padding:17px; }
.adminHead { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.adminHead b { font-size:12px; letter-spacing:1.5px; }
.adminClose { width:30px; height:30px; border:1px solid var(--line); border-radius:5px; background:#101722; }
.adminAuth, .adminBody { display:grid; gap:10px; }
.adminStat { display:flex; flex-wrap:wrap; gap:5px; }
.adminStat span { padding:5px 7px; border:1px solid var(--line); border-radius:4px; color:var(--muted); font-size:9px; }
.adminStat b { color:#fff; }
.adminMsg { min-height:14px; color:#9cebd3; font-size:10px; line-height:1.5; }
.adminGroup { padding:11px; border:1px solid var(--line); border-radius:6px; background:#101722; }
.adminGroup h4 { margin-bottom:9px; color:var(--cyan); font-size:9px; letter-spacing:1.4px; text-transform:uppercase; }
.adminRow { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:7px; align-items:center; }
.adminRow:last-child { margin-bottom:0; }
.adminRow input { flex:1; min-width:90px; min-height:36px; }
.admBtn { min-height:34px; color:#dce7f3; background:#131c28; border:1px solid #344359; }
.admBtn.danger { color:#fecdd3; border-color:rgba(251,113,133,.45); }

/* ---------------------------------------------------------------- ads */
.adSlot { display:none; }
.adSlot.on { display:block; }
.adMenu.on { height:82px; margin-top:8px; padding-top:4px; text-align:center; overflow:hidden; border-bottom:1px solid var(--line-soft); }
.adMenu.on + .tabPanel { height:calc(100% - 287px); }
.deathAd.on { min-height:70px; margin-top:20px; }
.adNote { margin-bottom:3px; color:var(--dim); font-size:8px; letter-spacing:1px; text-transform:uppercase; }

/* ---------------------------------------------------------------- responsive */
@media (max-width:820px) {
  body { overflow:auto; }
  #authGate { align-items:flex-start; padding:12px; }
  .authShell { grid-template-columns:1fr; min-height:0; }
  .authIntro { padding:30px 28px; border-right:0; border-bottom:1px solid var(--line); }
  .authLogo { font-size:50px; }
  .authRules { display:none; }
  .authCard { padding:28px; }
  #overlay { align-items:flex-start; padding:8px; overflow:auto; }
  #panel { width:100%; height:auto; min-height:calc(100vh - 16px); overflow:visible; }
  #panel > * { margin-left:15px; margin-right:15px; }
  .menuHead { min-height:128px; flex-wrap:wrap; padding:18px 0 11px; }
  .roomHead { width:100%; margin-left:0; }
  .tabs { overflow-x:auto; align-items:flex-end; }
  .tabBtn { flex:none; }
  .tabPanel { height:auto; min-height:520px; overflow:visible; }
  .playLayout, .caseLayout, .accountGrid { grid-template-columns:1fr; }
  .playSide { grid-template-rows:auto; }
  .caseList { max-height:300px; }
  .caseWorkbench { min-height:520px; }
  .achList { grid-template-columns:1fr; }
  #lb { right:8px; top:50px; min-width:166px; }
  #feed { display:none; }
  #profileHud { left:8px; right:8px; bottom:132px; transform:none; min-width:0; max-width:none; }
  #profileHud .pline { display:block; line-height:1.6; }
  #mini { width:116px; height:116px; }
  #stats { max-width:60vw; }
}

@media (max-width:480px) {
  .authCard { padding:24px 20px; }
  .authIntro { padding:25px 20px; }
  .authIntro > p { font-size:14px; }
  h1 { font-size:20px; }
  .brandMark { width:39px; height:39px; }
  .roomHead { grid-template-columns:auto 1fr; }
  .roomHead .ghostBtn { grid-column:1 / -1; grid-row:3; margin-top:7px; }
  .guideRow { grid-template-columns:96px 1fr; }
  .launchCard, .guideCard, .joinCard { padding:16px; }
}

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
