* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #05060d;
  overflow: hidden;
}

body {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  color: #dffcff;
  user-select: none;
  -webkit-user-select: none;
}

#wrap { position: fixed; inset: 0; }

#game {
  display: block;
  position: absolute;
  inset: 0;
  cursor: none;
}

.hidden { display: none !important; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; }

.hud-left { position: absolute; top: 18px; left: 20px; width: 240px; }

.bar-label { font-size: 11px; letter-spacing: 2px; opacity: .7; margin-bottom: 4px; }

.bar {
  position: relative;
  height: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(120, 220, 255, .35);
  border-radius: 3px;
  overflow: hidden;
}

.bar > div { height: 100%; width: 100%; }

#hp-fill { background: linear-gradient(90deg, #2bd97c, #7dffb2); transform-origin: left; transition: transform .12s linear; }

#hp-text {
  position: absolute;
  right: 6px;
  top: 0;
  font-size: 11px;
  line-height: 14px;
  color: #eafff6;
  text-shadow: 0 0 6px #000;
}

.bar.dash { height: 6px; margin-top: 8px; border-color: rgba(120, 180, 255, .3); }
#dash-fill { background: #4be1ff; transform-origin: left; transition: transform .08s linear; }

.hud-right { position: absolute; top: 18px; right: 20px; text-align: right; }
.stat { display: flex; gap: 10px; justify-content: flex-end; font-size: 20px; line-height: 1.2; }
.stat .k { font-size: 11px; opacity: .6; letter-spacing: 2px; align-self: center; }

.hud-center { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); text-align: center; }
#wave-text { font-size: 15px; letter-spacing: 3px; opacity: .9; }
#mode-text { font-size: 11px; letter-spacing: 4px; opacity: .5; margin-bottom: 2px; }
#mutator-text { font-size: 10px; letter-spacing: 2px; opacity: .8; margin-top: 2px; }
#timer-text { font-size: 22px; letter-spacing: 3px; color: #ffd166; margin-top: 2px; }
#enemy-text { font-size: 11px; letter-spacing: 2px; opacity: .55; margin-top: 3px; }

#boss-bar { margin-top: 10px; width: min(520px, 60vw); }
#boss-label { font-size: 12px; letter-spacing: 5px; color: #ff3b6b; margin-bottom: 4px; }
#boss-bar .bar { height: 11px; border-color: rgba(255, 59, 107, .55); }
#boss-fill { background: linear-gradient(90deg, #ff3b6b, #ff8fae); transform-origin: left; transition: transform .1s linear; }

.hud-bottom {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
#weapon-text { font-size: 16px; letter-spacing: 3px; color: #9ff4ff; }
#ammo-text { font-size: 14px; opacity: .75; }

#combo-text {
  position: absolute;
  right: 28px;
  top: 46%;
  font-size: 30px;
  color: #ffd166;
  text-shadow: 0 0 14px rgba(255, 209, 102, .6);
  opacity: 0;
  transition: opacity .15s linear, font-size .1s ease;
}
#combo-text.show { opacity: 1; }
#combo-text.hot { color: #ff7d5d; font-size: 40px; text-shadow: 0 0 20px rgba(255, 125, 93, .85); }

/* ---------- Banner ---------- */
#banner {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  font-size: clamp(30px, 6vw, 58px);
  letter-spacing: 10px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 26px currentColor;
  white-space: nowrap;
}
#banner small {
  display: block;
  font-size: 13px;
  letter-spacing: 6px;
  opacity: .8;
  margin-top: 10px;
  text-shadow: none;
}
#banner.show { animation: bannerIn 1.9s ease forwards; }

@keyframes bannerIn {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.82); }
  12%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  78%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.04); }
}

/* ---------- Overlays ---------- */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(ellipse at center, rgba(8, 10, 20, .82), rgba(3, 4, 9, .96));
  z-index: 10;
  text-align: center;
  padding: 24px;
}

.title {
  font-size: clamp(40px, 9vw, 92px);
  letter-spacing: 14px;
  margin: 0;
  color: #dffcff;
  text-shadow: 0 0 30px rgba(75, 225, 255, .75);
}
.title span { color: #4be1ff; }

.tagline { margin: 0; opacity: .72; font-size: 13px; letter-spacing: 1px; }

.btn {
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  letter-spacing: 4px;
  padding: 14px 46px;
  color: #031018;
  background: #4be1ff;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(75, 225, 255, .45);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 36px rgba(75, 225, 255, .75); }
.btn:active { transform: translateY(0) scale(.99); }
.btn.ghost { background: transparent; color: #9fd7e8; border: 1px solid rgba(120, 200, 230, .4); box-shadow: none; }
.btn.ghost:hover { box-shadow: 0 0 18px rgba(75, 225, 255, .25); }

.controls {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px 26px;
  font-size: 12px;
  opacity: .78;
  letter-spacing: 0;
}
.controls b { color: #4be1ff; }

.hint { font-size: 12px; opacity: .62; letter-spacing: 0; margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, auto)); gap: 10px 28px; }
.stats div { text-align: center; }
.stats span { display: block; font-size: 11px; letter-spacing: 1px; opacity: .7; margin-bottom: 2px; }
.stats b { font-size: 22px; }

.best { color: #ffd166; letter-spacing: 4px; margin: 0; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: .55; } to { opacity: 1; } }

#overlay-over h2 { color: #ff5d7d; text-shadow: 0 0 26px rgba(255, 59, 107, .6); }
#overlay-pause h2 { color: #ffd166; text-shadow: 0 0 26px rgba(255, 209, 102, .45); }

h2 { letter-spacing: 8px; font-size: 34px; margin: 0; }

/* ---------- Settings ---------- */
.settings-grid { display: grid; gap: 10px 26px; width: min(560px, 86vw); }

.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 1px;
}
.set-row label { opacity: .8; }
.set-row input[type="range"] { width: 220px; accent-color: #4be1ff; }

.seg {
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 6px 14px;
  min-width: 64px;
  color: #9fd7e8;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(120, 200, 230, .35);
  border-radius: 3px;
}
.seg.on, .seg:hover { color: #031018; background: #4be1ff; border-color: #4be1ff; }
.seg-group { display: flex; gap: 6px; }
.seg-group .seg { min-width: 74px; }

.btn-row { display: flex; gap: 14px; }

#fps-text { margin-top: 8px; font-size: 11px; letter-spacing: 1px; opacity: .6; }

#hud.minimal #enemy-text,
#hud.minimal #combo-text,
#hud.minimal #perk-count,
#hud.minimal #mutator-text,
#hud.minimal #boss-label { display: none; }
#hud.minimal .bar { opacity: .65; }

/* ---------- Draft ---------- */
.draft-cards { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.draft-card {
  cursor: pointer;
  width: 210px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 24, .92);
  border: 2px solid rgba(120, 200, 230, .35);
  border-radius: 6px;
  color: #dffcff;
  font: inherit;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.draft-card:hover { transform: translateY(-4px); }
.draft-card .glyph { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.draft-card b { font-size: 14px; letter-spacing: 2px; }
.draft-card small { font-size: 12px; letter-spacing: 0; opacity: .78; line-height: 1.5; }
.draft-card i { font-size: 11px; opacity: .62; font-style: normal; letter-spacing: 1px; }
.draft-card em { font-style: normal; font-size: 11px; letter-spacing: 1px; color: #ffd166; }
.draft-card.rarity-common { border-color: rgba(160, 180, 200, .45); }
.draft-card.rarity-rare { border-color: #7df0ff; box-shadow: 0 0 18px rgba(125, 240, 255, .25); }
.draft-card.rarity-epic { border-color: #ff7df0; box-shadow: 0 0 22px rgba(255, 125, 240, .35); }

#overlay-draft h2 { color: #7dffb2; text-shadow: 0 0 24px rgba(125, 255, 178, .45); }

/* ---------- Mode select ---------- */
.mode-cards { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.mode-card {
  cursor: pointer;
  width: 190px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 24, .92);
  border: 2px solid rgba(120, 200, 230, .3);
  border-radius: 6px;
  color: #dffcff;
  font: inherit;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.mode-card:hover { transform: translateY(-3px); }
.mode-card.on { border-color: #4be1ff; box-shadow: 0 0 20px rgba(75, 225, 255, .35); }
.mode-card b { font-size: 15px; letter-spacing: 2px; }
.mode-card small { font-size: 11px; opacity: .65; line-height: 1.5; text-align: center; }
.mode-card i { font-size: 10px; opacity: .5; font-style: normal; letter-spacing: 1px; }

/* ---------- Arsenal ---------- */
.arsenal-list { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 80vw; }

.unlock-card {
  cursor: pointer;
  width: 180px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 24, .92);
  border: 2px solid rgba(120, 200, 230, .25);
  border-radius: 6px;
  color: #dffcff;
  font: inherit;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.unlock-card b { font-size: 13px; letter-spacing: 1px; }
.unlock-card small { font-size: 10px; opacity: .65; line-height: 1.5; text-align: center; }
.unlock-card i { font-size: 10px; font-style: normal; letter-spacing: 1px; opacity: .6; }
.unlock-card.affordable { border-color: #7dffb2; box-shadow: 0 0 16px rgba(125, 255, 178, .25); }
.unlock-card.affordable:hover { transform: translateY(-3px); }
.unlock-card.owned { opacity: .45; border-color: rgba(255, 209, 102, .5); cursor: default; }

/* ---------- Browser surfaces (themed) ---------- */
::selection { background: rgba(75, 225, 255, .28); color: #eaffff; }
:focus-visible { outline: 2px solid #4be1ff; outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: rgba(75, 225, 255, .45) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); }
*::-webkit-scrollbar-thumb { background: rgba(75, 225, 255, .35); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(75, 225, 255, .6); background-clip: content-box; }

/* ---------- Panel head (arsenal / modes) ---------- */
.panel-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 6px; }
.panel-meta { display: flex; align-items: baseline; gap: 14px; }
.credits-chip {
  font-size: 13px;
  letter-spacing: 2px;
  color: #031018;
  background: #4be1ff;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(75, 225, 255, .35);
}
.progress { width: min(360px, 60vw); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.progress-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #2bd97c, #7dffb2); border-radius: 999px; transform-origin: left; transform: scaleX(0); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Arsenal ---------- */
.arsenal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  width: min(980px, 88vw);
}

.unlock-card {
  position: relative;
  cursor: pointer;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  background: #0b0f1a;
  border: 1px solid rgba(120, 200, 230, .22);
  border-radius: 8px;
  color: #dffcff;
  font: inherit;
  transition: transform .14s cubic-bezier(.2, .8, .2, 1), border-color .14s ease, box-shadow .14s ease;
}
.unlock-card .card-icon { color: #7fb6cc; display: inline-flex; }
.unlock-card b { font-size: 13px; letter-spacing: 1.5px; }
.unlock-card small { font-size: 12px; line-height: 1.55; letter-spacing: 0.02em; color: #9fb8c8; }
.unlock-card .card-state {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1px;
}
.unlock-card .card-state svg { width: 14px; height: 14px; }
.unlock-card .owned-state { color: #7dffb2; }
.unlock-card .buy-state { color: #4be1ff; }
.unlock-card .lock-state { color: #93aab8; }

.unlock-card.affordable { border-color: #4be1ff; box-shadow: 0 0 22px rgba(75, 225, 255, .18); }
.unlock-card.affordable .card-icon { color: #4be1ff; }
.unlock-card.affordable:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(75, 225, 255, .32); }
.unlock-card.affordable:active { transform: translateY(-1px) scale(.995); }
.unlock-card.owned { border-color: rgba(125, 255, 178, .4); background: #0a1410; }
.unlock-card.owned .card-icon { color: #7dffb2; }
.unlock-card.locked { opacity: .72; }
.unlock-card.locked:hover { opacity: .85; }

.unlock-card.just-bought { animation: pop .55s cubic-bezier(.2, .9, .2, 1); border-color: #7dffb2; box-shadow: 0 0 34px rgba(125, 255, 178, .4); }
.unlock-card.denied { animation: shake .35s ease; border-color: #ff5d7d; }
@keyframes pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---------- Settings sections ---------- */
.settings-grid { display: block; width: min(620px, 88vw); }
.set-section { margin-bottom: 4px; }
.set-section h3 {
  margin: 20px 0 6px;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 600;
  color: #4be1ff;
  opacity: .9;
}
.set-section:first-child h3 { margin-top: 0; }
.set-section .set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(120, 200, 230, .1);
  font-size: 12px;
  letter-spacing: 1px;
}
.set-section .set-row:last-child { border-bottom: 0; }
.set-section .set-row label { color: #cfe6f2; }

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 210px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #4be1ff;
  box-shadow: 0 0 12px rgba(75, 225, 255, .7);
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #4be1ff;
  box-shadow: 0 0 12px rgba(75, 225, 255, .7);
  cursor: pointer;
}
.range-value { width: 42px; text-align: right; font-size: 11px; color: #9fb8c8; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  letter-spacing: 2px;
  color: #7f93a3;
  background: none;
  border: 0;
}
.switch .knob {
  position: relative;
  width: 36px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(120, 200, 230, .3);
  transition: background .16s ease, border-color .16s ease;
}
.switch .knob::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8aa7b5;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .16s ease, box-shadow .16s ease;
}
.switch.on { color: #dffcff; }
.switch.on .knob { background: rgba(75, 225, 255, .22); border-color: #4be1ff; }
.switch.on .knob::after { transform: translateX(18px); background: #4be1ff; box-shadow: 0 0 10px rgba(75, 225, 255, .85); }
.switch .switch-label { min-width: 26px; }

.seg-group { display: inline-flex; gap: 4px; padding: 3px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(120, 200, 230, .18); border-radius: 6px; }
.seg-group .seg { min-width: 70px; background: transparent; border-color: transparent; }
.seg-group .seg.on { color: #031018; background: #4be1ff; border-color: #4be1ff; }

.danger-row { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 93, 125, .2); }
.btn.danger { background: transparent; color: #ff9db1; border: 1px solid rgba(255, 93, 125, .45); box-shadow: none; font-size: 12px; padding: 10px 20px; }
.btn.danger:hover { background: rgba(255, 93, 125, .12); box-shadow: 0 0 18px rgba(255, 93, 125, .22); }
.btn.danger.armed { background: rgba(255, 93, 125, .18); color: #ffd9e2; border-color: #ff5d7d; }

/* ---------- Mode select ---------- */
.mode-cards { display: grid; grid-template-columns: repeat(2, minmax(240px, 300px)); gap: 12px; justify-content: center; }

.mode-card {
  cursor: pointer;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
  background: #0b0f1a;
  border: 1px solid rgba(120, 200, 230, .22);
  border-radius: 8px;
  color: #dffcff;
  font: inherit;
  transition: transform .14s cubic-bezier(.2, .8, .2, 1), border-color .14s ease, box-shadow .14s ease;
}
.mode-card .card-icon { color: #7fb6cc; }
.mode-card b { font-size: 14px; letter-spacing: 2px; }
.mode-card small { font-size: 12px; line-height: 1.5; letter-spacing: 0.02em; color: #9fb8c8; }
.mode-card .mode-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.mode-card .mode-foot i { font-style: normal; font-size: 11px; letter-spacing: 1px; color: #93aab8; }
.mode-card .tag { font-size: 10px; letter-spacing: 1px; color: #ffd166; border: 1px solid rgba(255, 209, 102, .4); border-radius: 999px; padding: 2px 8px; }
.mode-card:hover { transform: translateY(-3px); border-color: rgba(75, 225, 255, .6); }
.mode-card.on { border-color: #4be1ff; box-shadow: 0 0 26px rgba(75, 225, 255, .28); }
.mode-card.on .card-icon { color: #4be1ff; }

.map-row { width: min(660px, 88vw); margin-top: 4px; }
.map-cards { display: flex; gap: 8px; }
.map-card {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(120, 200, 230, .2);
  border-radius: 6px;
  color: #9fb8c8;
  font: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  transition: border-color .14s ease, color .14s ease, box-shadow .14s ease;
}
.map-card .card-icon { color: inherit; display: inline-flex; }
.map-card .card-icon svg { width: 30px; height: 30px; }
.map-card:hover { color: #dffcff; border-color: rgba(75, 225, 255, .5); }
.map-card.on { color: #dffcff; border-color: #4be1ff; box-shadow: 0 0 18px rgba(75, 225, 255, .25); }

.chip-btn {
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  color: #9fb8c8;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(120, 200, 230, .2);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color .14s ease, border-color .14s ease;
}
.chip-btn:hover { color: #dffcff; border-color: rgba(75, 225, 255, .55); }

.ui-icon { display: block; }

/* ---------- Profile & callsign ---------- */
.text-input {
  font: inherit;
  font-size: 18px;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  color: #dffcff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(120, 200, 230, .4);
  border-radius: 6px;
  padding: 12px 16px;
  width: min(320px, 70vw);
  outline: none;
}
.text-input:focus { border-color: #4be1ff; box-shadow: 0 0 18px rgba(75, 225, 255, .25); }
.text-input.small { font-size: 14px; padding: 8px 12px; width: 190px; letter-spacing: 2px; }
.text-input.denied { animation: shake .35s ease; border-color: #ff5d7d; }

.swatches { display: flex; gap: 10px; }
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s cubic-bezier(.2, .8, .2, 1), border-color .12s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.on { border-color: #dffcff; transform: scale(1.12); }

.inline-field { display: flex; align-items: center; gap: 8px; }
.profile-row { width: min(560px, 88vw); }
.btn.small { font-size: 11px; padding: 8px 14px; letter-spacing: 2px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px 18px; width: min(560px, 88vw); }
.stats-grid div {
  text-align: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(120, 200, 230, .16);
  border-radius: 6px;
  padding: 10px 6px;
}
.stats-grid span { display: block; font-size: 11px; letter-spacing: 1px; opacity: .72; margin-bottom: 4px; }
.stats-grid b { font-size: 18px; }

/* ---------- Co-op ---------- */
.coop-body { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(560px, 88vw); }
.coop-code {
  font-size: 46px;
  letter-spacing: 14px;
  color: #4be1ff;
  text-shadow: 0 0 26px rgba(75, 225, 255, .5);
  padding: 6px 10px;
}
.coop-roster { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.coop-seat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(120, 200, 230, .16);
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 1px;
}
.coop-seat i { font-style: normal; font-size: 10px; letter-spacing: 1px; opacity: .65; }

/* ---------- Perk list ---------- */
#perk-count { font-size: 12px; letter-spacing: 2px; opacity: .7; }

.perk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  max-width: 70vw;
}
.perk-row { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 1px; opacity: .85; }
.perk-row .glyph { font-weight: 700; }
.perk-row i { font-style: normal; opacity: .6; }
.perk-row.empty { opacity: .4; letter-spacing: 3px; }
