* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d0b14; color: #eee; font-family: 'Segoe UI', system-ui, sans-serif; user-select: none; }
#app canvas { display: block; }
button { font: inherit; cursor: pointer; }

/* ---------- menu ----------
   The menu floats over a live bot match (client/attract.js), so everything here
   is translucent and the scrim underneath carries the contrast instead. */
#menu { position: fixed; inset: 0; z-index: 10; overflow-y: auto; overflow-x: hidden; }
.menu-scrim {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -15%, rgba(130, 90, 215, .20), transparent 55%),
    linear-gradient(180deg, rgba(9, 6, 20, .72) 0%, rgba(9, 6, 20, .18) 22%, rgba(8, 6, 16, .12) 52%, rgba(7, 5, 14, .70) 86%, rgba(7, 5, 14, .92) 100%);
}
.menu-wrap {
  position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 18px; padding: 22px 16px 16px; max-width: 1220px; margin: 0 auto;
}
#menu-main {
  flex: 1; width: 100%; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}

.brand { text-align: center; }
#menu h1 {
  margin: 0; font-weight: 900; line-height: .92;
  font-size: clamp(44px, 7.6vw, 104px); letter-spacing: clamp(2px, .9vw, 12px);
  color: #ff9a63;
  text-shadow: 0 2px 0 #c2521f, 0 5px 0 #6f2c11, 0 12px 28px rgba(0, 0, 0, .75), 0 0 52px rgba(255, 138, 85, .30);
}
#menu h1 span { color: #7cc0ff; text-shadow: 0 2px 0 #2b66ba, 0 5px 0 #163a70, 0 12px 28px rgba(0, 0, 0, .75), 0 0 52px rgba(99, 176, 255, .32); }
#menu .tag { margin: 10px 0 0; letter-spacing: 4px; font-size: 12px; text-transform: uppercase; color: #b9a9e6; }
#menu .pitch { margin: 6px 0 0; font-size: 15px; color: #ffd35a; text-shadow: 0 2px 10px rgba(0, 0, 0, .85); }

/* two columns: what you are playing, and how you start. Account is its own step. */
.panel, .mode {
  background: linear-gradient(180deg, rgba(28, 21, 48, .80), rgba(14, 10, 26, .88));
  border: 1px solid rgba(168, 146, 224, .20); border-radius: 12px; padding: 15px 17px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px) saturate(115%); -webkit-backdrop-filter: blur(14px) saturate(115%);
  display: flex; flex-direction: column; gap: 10px; text-align: left; width: auto;
}

#gate, #account, #play-pick, #online-flow {
  width: min(400px, 100%);
  display: flex; flex-direction: column; gap: 10px;
}
#setup-flow {
  width: min(560px, 100%);
  display: flex; flex-direction: column; gap: 10px;
}
#gate[hidden], #account[hidden], #play-pick[hidden], #online-flow[hidden], #setup-flow[hidden] { display: none; }
.gate-lead { margin: 0 0 4px; text-align: center; color: #cfc6e6; font-size: 15px; }
#gate .cta, #account .cta, #play-pick .cta, #setup-flow .cta, #online-flow .cta { width: 100%; }
.menu-back {
  align-self: flex-start; background: rgba(255, 255, 255, .05); color: #cfc6e6;
  border: 1px solid rgba(168, 146, 224, .22); border-radius: 8px; padding: 6px 10px; font-size: 12px;
}
.menu-back:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.acct-card, .setup-card {
  background: linear-gradient(180deg, rgba(28, 21, 48, .80), rgba(14, 10, 26, .88));
  border: 1px solid rgba(168, 146, 224, .20); border-radius: 12px; padding: 14px 22px 20px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px) saturate(115%); -webkit-backdrop-filter: blur(14px) saturate(115%);
  display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.acct-title {
  margin: 0; text-align: center; font-size: 20px; font-weight: 800;
  letter-spacing: .4px; color: #fff;
}
#account .gate-lead { margin: 0; font-size: 13px; color: #9a8fbe; }
#acct-guest, #acct-reset, #acct-name, #acct-profile {
  display: flex; flex-direction: column; gap: 10px;
}
#acct-guest[hidden], #acct-reset[hidden], #acct-name[hidden], #acct-profile[hidden] { display: none; }
#panel-setup { display: flex; flex-direction: column; gap: 12px; }
#setup-offline-actions, #setup-create-actions { display: flex; flex-direction: column; gap: 10px; }
#setup-offline-actions[hidden], #setup-create-actions[hidden] { display: none; }
#boards { width: min(560px, 100%); margin: 0 auto; }
#online-flow .gate-lead, #setup-flow .gate-lead { margin: 0; font-size: 13px; color: #9a8fbe; }

#who {
  width: min(560px, 100%); display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 8px 14px; border-radius: 10px;
  background: rgba(14, 10, 26, .72); border: 1px solid rgba(168, 146, 224, .18);
}
#who[hidden] { display: none; }
#who-label { font-size: 13px; color: #e3ccff; }
.who-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-left .ghost, .who-actions .ghost {
  background: rgba(255, 255, 255, .05); color: #cfc6e6; border: 1px solid rgba(168, 146, 224, .22);
  border-radius: 8px; padding: 6px 10px; font-size: 12px;
}
.who-left .ghost:hover, .who-actions .ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.who-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.panel h2, .mode h3 {
  margin: 0; font-size: 11px; letter-spacing: 3.5px; text-transform: uppercase;
  color: #b9a9e6; opacity: 1; display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.panel h2::after, .mode h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(168, 146, 224, .32), transparent); }

.group { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.group label { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: #8f82b8; }
.choice { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-start; }
.choice button {
  flex: 1 1 auto; background: rgba(255, 255, 255, .035); color: #cfc6e6;
  border: 1px solid rgba(168, 146, 224, .18); padding: 7px 11px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  font-size: 13px; line-height: 1.2; transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.choice button:hover { background: rgba(255, 255, 255, .07); border-color: rgba(227, 204, 255, .45); color: #fff; }
.choice button small { font-size: 10px; opacity: .55; font-weight: 400; }
.choice button.on {
  color: #fff; border-color: #cdb6ff;
  background: linear-gradient(180deg, rgba(205, 182, 255, .20), rgba(205, 182, 255, .05));
  box-shadow: 0 6px 18px rgba(120, 80, 200, .28);
}
.choice button.on small { opacity: .8; }
.choice button.atk.on { border-color: #ff8a55; background: linear-gradient(180deg, rgba(255, 138, 85, .24), rgba(255, 138, 85, .05)); box-shadow: 0 6px 18px rgba(240, 100, 45, .28); }
.choice button.def.on { border-color: #63b0ff; background: linear-gradient(180deg, rgba(99, 176, 255, .24), rgba(99, 176, 255, .05)); box-shadow: 0 6px 18px rgba(50, 120, 220, .28); }

/* the two ways in */
.cta {
  border: 0; border-radius: 10px; padding: 12px 14px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase; font-size: 14px;
  transition: filter .12s, transform .12s, box-shadow .12s;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta.ember { background: linear-gradient(180deg, #ffa571, #ef6627); color: #2d1206; box-shadow: 0 10px 26px rgba(239, 102, 39, .35); }
.cta.frost { background: linear-gradient(180deg, #8ac8ff, #3a83e2); color: #05182f; box-shadow: 0 10px 26px rgba(58, 131, 226, .32); }

.menu-foot { width: 100%; display: flex; justify-content: center; }
.how { max-width: 720px; width: 100%; }
.how summary {
  cursor: pointer; list-style: none; text-align: center; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: #8f82b8; padding: 8px; border-radius: 8px;
  border: 1px solid rgba(168, 146, 224, .16); background: rgba(14, 10, 26, .6);
}
.how summary::-webkit-details-marker { display: none; }
.how summary:hover { color: #e3ccff; border-color: rgba(168, 146, 224, .36); }
.how[open] summary { margin-bottom: 10px; }
.help {
  font-size: 12.5px; line-height: 1.7; text-align: center; color: #b3a8cc;
  background: rgba(12, 9, 22, .72); border: 1px solid rgba(168, 146, 224, .14);
  border-radius: 10px; padding: 14px 16px; backdrop-filter: blur(10px);
}
.help b { color: #ffd35a; }

@media (max-width: 1100px) {
  .menu-wrap { justify-content: flex-start; }
}

/* ---------- first visit ---------- */
#intro { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(8, 6, 18, .82); }
.intro-card { background: #15111f; border: 2px solid #3a3150; border-radius: 8px; padding: 20px; width: min(760px, 100%); }
.intro-card h2 { margin: 0 0 12px; color: #ffd35a; }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.intro-grid h4 { margin: 0 0 4px; color: #8fe3ff; font-size: 14px; }
.intro-grid p { margin: 0; font-size: 13px; line-height: 1.55; opacity: .85; }
.intro-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0; font-size: 12px; opacity: .8; }
.intro-keys b, .help-keys b { color: #ffd35a; }
.intro-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.intro-buttons button { flex: 1; background: #ff8a55; color: #1a0d05; border: 0; border-radius: 4px; padding: 10px 16px; font-weight: 700; }
.intro-buttons button.ghost { background: #221c33; color: #cfc6e6; border: 1px solid #3a3150; }

/* ---------- hud ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
#vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(8,6,16,0.28) 100%); }
#crosshair { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0,0,0,.65), 0 0 6px rgba(0,0,0,.5); }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: 0; transition: opacity .05s;
  background: linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 6px); mask: radial-gradient(circle, transparent 5px, #000 6px); }
#hitmarker.head { filter: drop-shadow(0 0 3px #ff3b1f) sepia(1) saturate(20) hue-rotate(-20deg); }
#hurt { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 120px 30px #c00; }

#top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; gap: 6px; }
#top .score { min-width: 56px; display: grid; place-items: center; font-size: 28px; font-weight: 800; border-radius: 4px; }
#top .score.atk { background: #d9542bcc; }
#top .score.def { background: #2f6fd6cc; }
#top .mid { background: #000a; padding: 4px 16px; text-align: center; border-radius: 4px; min-width: 150px; }
#timer { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
#timer.buy { color: #ffe28a; }
#timer.ritual { color: #ff5a2a; animation: pulse .6s infinite alternate; }
#phase { font-size: 11px; letter-spacing: 2px; color: #ffe28a; }
#round { font-size: 11px; opacity: .6; }
@keyframes pulse { to { opacity: .5; } }

#minimap { position: absolute; top: 10px; left: 10px; width: 192px; height: 192px; border: 2px solid #0008; border-radius: 4px; image-rendering: pixelated; }
#killfeed { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: 14px; }
#killfeed div { background: #000a; padding: 4px 10px; border-radius: 3px; }
#killfeed div.me { outline: 1px solid #ffd35a; }
#killfeed .spell { opacity: .75; }

#announce { position: absolute; top: 22%; width: 100%; text-align: center; font-size: 34px; font-weight: 800; text-shadow: 0 3px 8px #000; }
#announce small { display: block; font-size: 16px; font-weight: 500; margin-top: 4px; }
#progress { position: absolute; top: 60%; left: 50%; transform: translateX(-50%); width: 260px; text-align: center; }
#progress .bar { height: 10px; background: #0008; border: 1px solid #fff4; margin-top: 4px; }
#progress-fill { height: 100%; background: #ffd35a; }
#carry { position: absolute; bottom: 150px; left: 16px; color: #ffd35a; font-weight: 700; text-shadow: 0 2px 4px #000; }
#objective { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); width: 280px; text-align: center; }
#obj-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #aee9ff; text-shadow: 0 2px 4px #000; }
#objective .bar { height: 12px; background: #000a; border: 1px solid #aee9ff66; margin-top: 3px; }
#obj-fill { height: 100%; background: linear-gradient(90deg, #6fd4ff, #d9f4ff); transition: width .2s; }
#blocks { position: absolute; bottom: 150px; left: 16px; color: #d9b98a; font-weight: 700; text-shadow: 0 2px 4px #000; }
#blocks b { color: #fff; font-size: 20px; }

#bottom-left { position: absolute; left: 16px; bottom: 16px; background: #000a; padding: 10px 14px; border-radius: 4px; width: 240px; }
#you-team { font-size: 12px; letter-spacing: 1px; font-weight: 700; margin-bottom: 4px; }
.stat { display: grid; grid-template-columns: 44px 36px 1fr; align-items: center; gap: 6px; margin-top: 4px; }
.stat .lbl { font-size: 11px; opacity: .6; }
.stat span:nth-child(2) { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat .bar { height: 8px; background: #fff2; }
.hpf { height: 100%; background: #6fdc6f; }
.mpf { height: 100%; background: #6aa8ff; }
#money { position: absolute; right: 16px; bottom: 16px; font-size: 26px; font-weight: 800; color: #ffd35a; background: #000a; padding: 6px 14px; border-radius: 4px; }

#spellbar { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.slot { position: relative; width: 74px; height: 72px; background: #000a; border: 2px solid #fff2; border-radius: 4px; overflow: hidden; opacity: .3;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 4px; }
.slot.owned { opacity: 1; border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.slot.sel { border-color: var(--c); box-shadow: 0 0 10px var(--c); }
.slot.nomana .nm { color: #f66; }
.slot .key { position: absolute; top: 2px; left: 5px; font-weight: 800; color: var(--c); }
.slot .nm { font-size: 10px; line-height: 1.1; }
.slot .cd { position: absolute; left: 0; right: 0; bottom: 0; background: #000b; }
.slot span { z-index: 1; }
.slot .status { font-size: 10px; font-weight: 800; margin-top: 5px; min-height: 12px; }
.slot.nomana .status { color: #ff9999; }
.slot.detonate { border-color: #c36bff; }
.slot.detonate .status { color: #e7b6ff; }
#spell-hint { position: absolute; bottom: 97px; left: 50%; transform: translateX(-50%); font-size: 12px;
  background: #000c; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
#spell-hint.detonate { color: #e7b6ff; }
#team-pings { position: absolute; inset: 0; pointer-events: none; }
.team-ping { position: absolute; transform: translate(-50%, -100%); background: #151b20dd; color: #ffe28a;
  border-bottom: 2px solid #ffe28a; padding: 3px 7px; font-size: 12px; white-space: nowrap; }
#team-call { position: absolute; left: 16px; bottom: 200px; width: 230px; color: #ffe28a;
  font-size: 12px; line-height: 1.6; text-shadow: 0 1px 3px #000; }

#dead { position: absolute; top: 34%; width: 100%; text-align: center; font-size: 30px; font-weight: 800; color: #f66; text-shadow: 0 2px 6px #000; }
#dead small { display: block; font-size: 15px; color: #ddd; font-weight: 400; }
/* Escape brings this up. The match is still running behind it — this is a menu,
   not a pause — so it says so rather than implying the world has stopped. */
#paused { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: auto; background: rgba(8, 6, 16, .55); backdrop-filter: blur(3px); z-index: 3; }
.pause-card {
  background: linear-gradient(180deg, rgba(28, 21, 48, .96), rgba(14, 10, 26, .98));
  border: 1px solid rgba(168, 146, 224, .22); border-radius: 12px; padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 9px;
}
.pause-card h2 { margin: 0 0 4px; font-size: 12px; letter-spacing: 3.5px; text-transform: uppercase; color: #b9a9e6; }
.pause-card small { color: #8f82b8; font-size: 11px; text-align: center; margin-top: 2px; }
#pause-main, #pause-options { display: flex; flex-direction: column; gap: 9px; }
.pause-go {
  border: 0; border-radius: 9px; padding: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  background: linear-gradient(180deg, #ffa571, #ef6627); color: #2d1206;
  box-shadow: 0 8px 20px rgba(239, 102, 39, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.pause-ghost { background: rgba(255, 255, 255, .05); color: #cfc6e6; border: 1px solid rgba(168, 146, 224, .22); border-radius: 9px; padding: 9px 11px; font-size: 13px; }
.pause-go:hover { filter: brightness(1.07); }
.pause-ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.pause-danger { color: #ff9f9f; border-color: rgba(255, 110, 110, .3); }
.pause-danger:hover { background: rgba(255, 90, 90, .14); color: #ffd0d0; border-color: rgba(255, 110, 110, .55); }
.opt { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #cfc6e6; }
.opt b { color: #ffd35a; font-variant-numeric: tabular-nums; }
.opt.check { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.opt input[type=range] { width: 100%; accent-color: #ff8a55; }

#help { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #15111fee; border: 2px solid #3a3150;
  border-radius: 8px; padding: 16px 20px; width: min(520px, calc(100vw - 32px)); }
#help h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #8fe3ff; }
#help-objective-title { margin-top: 14px; }
#help p { margin: 0; font-size: 13px; line-height: 1.6; opacity: .9; }
.help-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 12px; font-size: 12px; opacity: .85; }
.help-tech { font-size: 12px; opacity: .85; display: grid; gap: 6px; }
.help-tech p { margin: 0; line-height: 1.45; }
.help-tech b { color: #ffd35a; }
#hint { position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%); background: #000a; padding: 4px 12px;
  border-radius: 3px; font-size: 12px; opacity: .8; }
#hint b { color: #ffd35a; }

#scoreboard { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #0d0b14ee; padding: 16px 24px; border-radius: 6px; min-width: 380px; }
#scoreboard h3 { margin: 8px 0 4px; }
#scoreboard table { width: 100%; border-collapse: collapse; }
#scoreboard th, #scoreboard td { text-align: left; padding: 3px 8px; }
#scoreboard th { font-size: 11px; opacity: .5; }
#scoreboard tr.dead { opacity: .4; }
#scoreboard tr.me td:first-child { color: #ffd35a; }

#shop, #matchover { pointer-events: auto; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #15111f; border: 2px solid #3a3150; z-index: 2; border-radius: 8px; padding: 18px; width: min(560px, calc(100vw - 32px)); }
#shop .head { display: flex; align-items: baseline; gap: 16px; }
#shop h2 { margin: 0 0 10px; flex: 1; }
#shop-money { color: #ffd35a; font-weight: 800; font-size: 20px; }
#shop-timer { color: #ffe28a; }
#shop-items { display: flex; flex-direction: column; gap: 6px; }
.item { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 10px; text-align: left; background: #221c33; color: #eee; border: 2px solid #3a3150; border-left: 4px solid var(--c); padding: 8px 10px; border-radius: 4px; }
.item:hover { background: #2d2542; }
.item .num { grid-row: span 2; font-weight: 800; font-size: 20px; color: var(--c); align-self: center; }
.item .title { font-weight: 700; }
.item .title small { opacity: .6; font-weight: 400; }
.item .price { color: #ffd35a; font-weight: 700; }
.item .desc { grid-column: 2 / 4; font-size: 12px; opacity: .7; }
.item.owned { opacity: .55; }
.item.owned .price { color: #6fdc6f; }
.item.cant .price { color: #f66; }
#shop .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12px; opacity: .9; }
#shop-close, #matchover button { background: #ff8a55; color: #1a0d05; border: 0; padding: 8px 24px; font-weight: 700; border-radius: 4px; }
#matchover { text-align: center; }
#progress-card { background: #221c33; border: 1px solid #3a3150; border-radius: 4px; padding: 10px; margin: 8px 0; font-size: 13px; line-height: 1.7; }
#progress-card b { color: #ffd35a; font-size: 18px; }
#progress-card .earned { color: #8fe3ff; }
#progress-card .lost { color: #ff9a8a; }
#matchover h2 { font-size: 48px; margin: 0; }
#matchover div { margin: 8px 0 16px; }

/* ---------- online ---------- */
.mode p { margin: 0; font-size: 12.5px; color: #9a8fbe; }
.mode input, #account input, #online-flow input {
  font: inherit; font-size: 14px; background: rgba(8, 6, 16, .7); color: #eee;
  border: 1px solid rgba(168, 146, 224, .22); border-radius: 8px; padding: 9px 11px;
}
.mode input::placeholder, #account input::placeholder, #online-flow input::placeholder { color: #6f6590; }
.mode input:focus, #account input:focus, #online-flow input:focus { outline: none; border-color: #cdb6ff; box-shadow: 0 0 0 3px rgba(205, 182, 255, .14); }
#online-flow input { width: 100%; padding: 12px 13px; font-size: 15px; }
#play-online:disabled { opacity: .5; cursor: wait; transform: none; }
#play-create:disabled { opacity: .5; cursor: wait; transform: none; }
#account button.ghost, #setup-flow button.ghost, #online-flow button.ghost {
  width: 100%; background: rgba(255, 255, 255, .05); color: #cfc6e6;
  border: 1px solid rgba(168, 146, 224, .22); border-radius: 10px; padding: 12px 14px;
  font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; font-size: 14px;
}
#account button.ghost:hover, #setup-flow button.ghost:hover, #online-flow button.ghost:hover {
  background: rgba(255, 255, 255, .09); color: #fff;
}
#play-practice.ghost { font-weight: 600; letter-spacing: .3px; text-transform: none; font-size: 13px; padding: 10px 14px; }
#online-error, #setup-error { color: #ff6b6b; font-size: 12px; margin: 0; }
#room:not(:placeholder-shown) { text-transform: uppercase; letter-spacing: 3px; }
.check { font-size: 12px; color: #9a8fbe; display: flex; gap: 7px; align-items: center; justify-content: flex-start; cursor: pointer; }
.check:hover { color: #cfc6e6; }
#account p { margin: 0; }
#account input { width: 100%; padding: 12px 13px; font-size: 15px; }
#acct-error { color: #ff6b6b; font-size: 12px; }
#acct-note { color: #8fe3ff; font-size: 12px; }
#acct-forgot { display: block; font-size: 12px; color: #a99fc4; text-align: center; text-decoration: none; }
#acct-forgot:hover { color: #fff; text-decoration: underline; }
.acct-head { display: flex; justify-content: space-between; align-items: baseline; }
.acct-head b { font-size: 16px; color: #ffd35a; }
.acct-head span { font-size: 12px; opacity: .8; }
.xpbar { height: 8px; background: rgba(8, 6, 16, .8); border: 1px solid rgba(168, 146, 224, .2); border-radius: 4px; overflow: hidden; }
.xpbar div { height: 100%; background: linear-gradient(90deg, #ff8a55, #ffd35a); }
#acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; font-size: 12px; }
#acct-stats span { display: flex; flex-direction: column; }
#acct-stats b { font-size: 15px; color: #fff; }
#acct-stats small { opacity: .6; }
#acct-season { font-size: 12px; display: flex; justify-content: space-between; background: #221c33; border: 1px solid #3a3150; border-radius: 3px; padding: 4px 8px; }
#acct-season b { color: #8fe3ff; }
#acct-week { font-size: 11px; display: flex; flex-direction: column; gap: 3px; }
#acct-week .ch { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; }
#acct-week .bar { grid-column: 1 / 3; height: 5px; background: #0d0b14; border-radius: 2px; overflow: hidden; }
#acct-week .bar div { height: 100%; background: linear-gradient(90deg, #6fd4ff, #8fe3ff); }
#acct-week .ch.done { opacity: .55; }
#acct-week .ch.done .bar div { background: #6fdc6f; }
.board-tabs { display: flex; gap: 4px; }
.board-tabs button { flex: 1; background: rgba(255, 255, 255, .04); color: #cfc6e6; border: 1px solid rgba(168, 146, 224, .18); border-radius: 7px; padding: 6px; font-size: 12px; }
.board-tabs button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.board-tabs button.on { border-color: #ffd35a; color: #ffe9b0; background: linear-gradient(180deg, rgba(255, 211, 90, .18), rgba(255, 211, 90, .04)); }
#board-list { font-size: 12px; display: flex; flex-direction: column; gap: 2px; max-height: 210px; overflow-y: auto; }
#board-list .row { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; padding: 2px 4px; border-radius: 3px; }
#board-list .row:nth-child(odd) { background: #ffffff08; }
#board-list .row b { color: #ffd35a; font-weight: 600; }
#acct-wardrobe { font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
#acct-wardrobe .slot-row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
#acct-wardrobe .slot-name { width: 34px; opacity: .6; text-transform: uppercase; font-size: 10px; letter-spacing: 1px; }
#acct-wardrobe button { background: #221c33; color: #cfc6e6; border: 1px solid #3a3150; border-radius: 3px; padding: 2px 7px; font-size: 11px; font-weight: 500; }
#acct-wardrobe button.on { border-color: #ffd35a; color: #ffe9b0; background: #3a2d58; }
#acct-wardrobe button:disabled { opacity: .4; cursor: not-allowed; }
#acct-recent { font-size: 11px; display: flex; flex-direction: column; gap: 2px; max-height: 92px; overflow-y: auto; }
#acct-recent .m { display: grid; grid-template-columns: 14px 1fr auto; gap: 6px; padding: 1px 3px; border-radius: 2px; }
#acct-recent .m:nth-child(odd) { background: #ffffff08; }
#acct-recent .w { color: #6fdc6f; font-weight: 700; }
#acct-recent .l { color: #ff8a8a; font-weight: 700; }
#acct-ach { font-size: 12px; opacity: .85; display: flex; flex-wrap: wrap; gap: 4px; max-height: 88px; overflow-y: auto; }
#acct-ach i { font-style: normal; background: #221c33; border: 1px solid #3a3150; border-radius: 3px; padding: 2px 6px; }
#acct-ach i.got { background: #3a2d58; border-color: #ffd35a; color: #ffe9b0; }
#room-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; min-height: 48px; }
#room-list:empty::before { content: 'No public games right now'; font-size: 13px; opacity: .55; text-align: center; padding: 12px 0; }
#room-list button { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(255, 255, 255, .04); color: #eee; border: 1px solid rgba(168, 146, 224, .18); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
#room-list button:hover { border-color: #63b0ff; background: rgba(99, 176, 255, .12); }
#room-list b { letter-spacing: 2px; }
#net-invite { margin-top: 4px; width: 100%; background: #63b0ff; color: #0d0b14; border: 0; border-radius: 3px; padding: 4px; font-weight: 700; font-size: 12px; }

#net { position: absolute; top: 208px; left: 10px; width: 192px; background: #000a; border-radius: 4px; padding: 6px 8px; font-size: 12px; pointer-events: auto; }
#net-status { font-weight: 700; }
.net-tools { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; opacity: .85; }
.net-tools input[type=range] { width: 80px; vertical-align: middle; }
.net-tools small { opacity: .6; }
