/* ==========================================================================
   JOEVSCOBRA - printed matter, painted toy-box war
   ========================================================================== */

:root {
  --paper: #e8d9b6;
  --paper-dark: #cfbd93;
  --card: #d9bf8d;
  --ink: #221d14;
  --ink-soft: #4a3c27;
  --cream: #f6efdc;
  --red: #b23127;
  --red-dark: #7e1f18;
  --olive: #56602e;
  --olive-dark: #333a1c;
  --khaki: #bda676;
  --cobalt: #1d2a63;
  --cobalt-dark: #0e1535;
  --crimson: #c02b2b;
  --sand: #c99a58;
  --font-display: "Graduate", "Georgia", serif;
  --font-text: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "Azeret Mono", "Courier New", monospace;
  --shadow-card: 0 10px 16px rgba(43, 28, 8, 0.35), 0 2px 0 rgba(255, 245, 220, 0.2) inset;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #16120b;
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow: hidden; }
button { font-family: var(--font-text); }
img { -webkit-user-drag: none; user-select: none; }

#app, .screen { height: 100%; }
.screen { position: fixed; inset: 0; }
.hidden { display: none !important; }
.overlay { z-index: 60; }

/* ==========================================================================
   LOBBY
   ========================================================================== */

#lobby {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sand);
  position: fixed;
  inset: 0;
  z-index: 2;
}

.lobby-sky {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 68vh;
  min-height: 320px;
  background: url("../assets/art/desert_sky_panorama.webp") center bottom / cover no-repeat;
  filter: saturate(1.06) contrast(1.02);
}
.lobby-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 245, 225, 0.08), transparent 38%),
    linear-gradient(180deg, transparent 58%, rgba(201, 154, 88, 0.55) 86%, #c99a58 100%);
}

.lobby-sand {
  position: absolute;
  left: 0;
  right: 0;
  top: 62vh;
  bottom: 0;
  background: #c99a58 url("../assets/art/desert_ground_tiles_01_sand_ripple.webp") repeat;
  background-size: 360px;
}
.lobby-sand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(120, 84, 40, 0.2), transparent 20%, rgba(255, 236, 196, 0.15));
}

.paper-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(0deg, rgba(60, 42, 18, 0.09) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 30% 20%, rgba(255, 250, 230, 0.5), transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(97, 60, 18, 0.28), transparent 46%);
  mix-blend-mode: multiply;
}

.masthead {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 16px 0;
}
.masthead-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  min-height: clamp(120px, 20vh, 190px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.title-lockup {
  position: relative;
  width: fit-content;
  max-width: 90vw;
  text-align: center;
  z-index: 2;
}
.title-art {
  display: block;
  width: auto;
  height: clamp(150px, 30vh, 310px);
  max-width: 100%;
  filter: drop-shadow(0 7px 0 rgba(40, 24, 8, 0.3)) drop-shadow(0 2px 2px rgba(20, 12, 4, 0.4));
  border-radius: 3px;
}
.title-sub {
  margin-top: 6px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(10px, 1.2vw, 15px);
  letter-spacing: 0.2em;
  color: #3b2a12;
  text-shadow: 0 1px 0 rgba(255, 242, 214, 0.6);
}
.credit-line {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: clamp(8px, 0.9vw, 11px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #5a3f1c;
  text-shadow: 0 1px 0 rgba(255, 242, 214, 0.55);
}
.pad-supported {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: clamp(8px, 0.85vw, 10px);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #6b4a1f;
  border: 1px solid rgba(90, 63, 28, 0.45);
  background: rgba(248, 238, 214, 0.4);
  border-radius: 1px;
  text-shadow: 0 1px 0 rgba(255, 242, 214, 0.5);
}
.big-star, .big-snake {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 5px 5px rgba(30, 18, 4, 0.4));
  pointer-events: none;
}
.big-star { width: clamp(70px, 12vw, 160px); right: clamp(4px, 6vw, 90px); top: -8px; transform: rotate(8deg); }
.big-snake { width: clamp(58px, 9vw, 126px); right: clamp(30px, 11vw, 180px); top: clamp(86px, 13vw, 180px); transform: rotate(-4deg); }

.sound-btn {
  position: absolute;
  right: 0;
  top: 4px;
  z-index: 6;
  background: rgba(34, 27, 16, 0.72);
  color: var(--cream);
  border: 1px solid rgba(246, 239, 220, 0.4);
  border-radius: 2px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.sound-btn:hover { background: rgba(34, 27, 16, 0.9); }
.audio-mini {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 25, 15, 0.82);
  color: var(--cream);
  border: 1px solid rgba(246, 239, 220, 0.28);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 1px;
}
.audio-mini:hover { background: rgba(34, 27, 16, 0.95); }

.lobby-main {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px clamp(12px, 2.6vw, 38px) 14px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 28px);
}

.brief-col {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #7c6338 transparent;
}
.brief-col::-webkit-scrollbar, .roster-col::-webkit-scrollbar { width: 8px; }
.brief-col::-webkit-scrollbar-thumb, .roster-col::-webkit-scrollbar-thumb { background: #7c6338; border-radius: 4px; }

.roster-col {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 6px 24px 0;
  scrollbar-width: thin;
  scrollbar-color: #7c6338 transparent;
}

/* --------------------------- paper sheet --------------------------- */

.sheet {
  position: relative;
  width: 100%;
  aspect-ratio: 667 / 1024;
  background: url("../assets/art/briefing_sheet.webp") center / 100% 100% no-repeat;
  container-type: inline-size;
  filter: drop-shadow(0 10px 12px rgba(35, 22, 6, 0.35));
  color: var(--ink);
}
.sheet-heading {
  position: absolute;
  left: 9%;
  width: 82%;
  top: 5.6%;
  height: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #a52f27;
  color: #f7e9cf;
  font-family: var(--font-display);
  font-size: 4.5cqw;
  letter-spacing: 0.07em;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 245, 220, 0.32) inset, 0 2px 1px rgba(38, 20, 8, 0.35);
  transform: rotate(-0.3deg);
}
.map-list {
  position: absolute;
  left: 10.5%;
  width: 79%;
  top: 16.8%;
  height: 29.6%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.8cqw;
  font-size: 3.55cqw;
  line-height: 1;
}
.map-set-note {
  margin-top: auto;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 2.1cqw;
  letter-spacing: 0.12em;
  color: #7a6745;
}
.map-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 0.4cqw;
  border-bottom: 1px dashed rgba(48, 38, 22, 0.45);
  color: #4a3a22;
}
button.map-row {
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  border: 0;
  border-bottom: 1px dashed rgba(48, 38, 22, 0.45);
  border-radius: 0;
  background: transparent;
  appearance: none;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
button.map-row:hover b { text-decoration: underline; text-decoration-thickness: 0.4cqw; text-underline-offset: 0.6cqw; }
button.map-row:focus-visible { outline: 2px solid #a52f27; outline-offset: 2px; }
.map-row b { font-weight: 600; letter-spacing: 0.03em; }
.map-row span {
  font-family: var(--font-mono);
  font-size: 2.55cqw;
  letter-spacing: 0.08em;
  color: #786542;
}
.map-row.active { color: #1e1810; }
.map-row.active b { text-decoration: underline; text-decoration-thickness: 0.5cqw; text-underline-offset: 0.7cqw; }
.map-row.active span { color: #a52f27; font-weight: 700; }

.photo-block {
  position: absolute;
  left: 15.5%;
  width: 68%;
  top: 46.7%;
  height: 25.3%;
  background: #67645c;
  overflow: hidden;
  border: 1px solid rgba(40, 30, 18, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 248, 230, 0.25) inset;
}
.photo-block canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(0.86) contrast(1.12) brightness(1.04);
}
.photo-halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27, 26, 22, 0.5) 0.7px, transparent 0.9px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}
.photo-block::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 0 0 2px rgba(246, 235, 210, 0.35) inset, 0 6px 10px rgba(30, 20, 8, 0.35) inset;
  pointer-events: none;
}
.photo-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(28, 22, 14, 0.82);
  color: var(--cream);
  font-family: var(--font-text);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 3.15cqw;
  padding: 1.4cqw 2cqw;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-record {
  position: absolute;
  left: 10.5%;
  width: 55%;
  top: 74%;
  display: flex;
  gap: 2.4cqw;
  font-size: 2.8cqw;
  color: #4a3a22;
  letter-spacing: 0.04em;
}
.sheet-record b { font-family: var(--font-mono); font-size: 3.1cqw; color: #1e1810; }

.sheet-matchline {
  position: absolute;
  left: 10%;
  width: 80%;
  top: 87.5%;
  text-align: center;
}
.matchline-stamp {
  display: inline-block;
  padding: 0.9cqw 1.4cqw;
  background: #a52f27;
  color: #f7e9cf;
  font-family: var(--font-display);
  font-size: 4.2cqw;
  letter-spacing: 0.03em;
  border: 1px solid rgba(35, 20, 8, 0.55);
  transform: rotate(-1.1deg);
  box-shadow: 0 1px 0 rgba(255, 245, 220, 0.3) inset;
}
.matchline-sub {
  margin-top: 0.9cqw;
  font-family: var(--font-mono);
  font-size: 2.7cqw;
  letter-spacing: 0.16em;
  color: #2a2114;
}
.sheet-bars {
  position: absolute;
  left: 10%;
  width: 80%;
  top: 92.7%;
  height: 3.6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 2.5cqw;
  letter-spacing: 0.08em;
  color: #f1e5cc;
}
.sheet-bars span {
  background: rgba(27, 22, 16, 0.92);
  padding: 0.3cqw 1cqw;
}
.sheet-bars b { color: #ffffff; }

/* deploy row under sheet */
.deploy-row {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 10px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 6px 0 4px;
  background: linear-gradient(180deg, rgba(201, 154, 88, 0), rgba(201, 154, 88, 0.94) 26%);
}
.side-readout {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(32, 25, 15, 0.82);
  color: var(--cream);
  border: 1px solid rgba(246, 239, 220, 0.28);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}
.side-readout span {
  font-size: 9px;
  letter-spacing: 0.16em;
  opacity: 0.7;
}
.side-readout b {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stamp-btn {
  appearance: none;
  border: 2px solid #59140f;
  background: linear-gradient(180deg, #c84536, #a52f27 55%, #852119);
  color: #fbf2dc;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 24px);
  letter-spacing: 0.06em;
  padding: 10px 20px;
  min-height: 48px;
  cursor: pointer;
  box-shadow: 0 4px 0 #59140f, 0 0 0 2px rgba(255, 240, 210, 0.22) inset;
  transform: rotate(-0.7deg);
  text-shadow: 0 1px 0 rgba(60, 10, 6, 0.6);
}
.stamp-btn:hover { filter: brightness(1.07); }
.stamp-btn:active { transform: translateY(3px) rotate(-0.7deg); box-shadow: 0 1px 0 #59140f; }
.stamp-btn:disabled { filter: grayscale(0.8) brightness(0.8); cursor: default; }
.ghost-btn {
  appearance: none;
  border: 1px solid rgba(50, 36, 18, 0.65);
  background: rgba(240, 226, 196, 0.85);
  color: #2a2114;
  font-family: var(--font-text);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 1px;
}
.ghost-btn:hover { background: #f4e8ca; }
.ghost-btn.small { font-size: 11px; padding: 6px 10px; }
.controls-line {
  margin-top: 7px;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: rgba(38, 27, 12, 0.78);
  font-weight: 600;
  text-align: center;
}

/* --------------------------- roster --------------------------- */

.team-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.team-tab {
  flex: 1 1 0;
  min-width: 0;
  height: 46px;
  border: 2px solid rgba(53, 38, 17, 0.7);
  background: rgba(232, 217, 182, 0.86);
  color: #40301a;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 0 rgba(53, 38, 17, 0.4);
}
.team-tab b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  opacity: 0.8;
}
.team-tab.active { color: var(--cream); }
.team-tab.active:first-child { background: linear-gradient(180deg, #647034, #454d20); border-color: #2c3316; }
.team-tab.active:last-child { background: linear-gradient(180deg, #2b3b78, #141d47); border-color: #0d1330; }

.team-panel {
  display: none;
  background:
    linear-gradient(180deg, rgba(240, 228, 201, 0.9), rgba(222, 203, 166, 0.82)),
    repeating-linear-gradient(0deg, rgba(80, 55, 22, 0.08) 0 1px, transparent 1px 4px);
  border: 2px solid rgba(71, 52, 24, 0.55);
  padding: 10px 10px 14px;
  box-shadow: 0 6px 12px rgba(40, 24, 6, 0.3);
}
.team-panel.active { display: block; }
.team-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 8px;
  margin-bottom: 10px;
  border-bottom: 4px solid var(--olive);
}
.team-panel.cobra .team-head { border-bottom-color: var(--cobalt); }
.team-head > img { width: clamp(34px, 4vw, 52px); height: auto; filter: drop-shadow(0 2px 1px rgba(30, 20, 5, 0.3)); }
.team-title { flex: 1 1 auto; min-width: 0; }
.team-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #2c2416;
}
.team-title span {
  display: block;
  margin-top: 3px;
  font-size: clamp(8px, 0.9vw, 11px);
  letter-spacing: 0.17em;
  color: #6a5738;
}
.team-count { text-align: right; line-height: 0.9; }
.team-count b { display: block; font-family: var(--font-mono); font-size: clamp(20px, 2.6vw, 32px); color: #332917; }
.team-count span { font-size: 9px; letter-spacing: 0.14em; color: #6a5738; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1vw, 14px);
}

.card {
  position: relative;
  aspect-ratio: 672 / 1024;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  container-type: inline-size;
  filter: drop-shadow(0 6px 5px rgba(40, 24, 8, 0.35));
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.card:hover { transform: translateY(-3px); }
.card:focus-visible { outline: 2px solid #f7edd4; outline-offset: 2px; }
.card-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.card-fig {
  position: absolute;
  left: 16.2%;
  top: 15.4%;
  width: 67.6%;
  height: 52.4%;
  border-radius: 11% 11% 9% 9%;
  pointer-events: none;
  z-index: 1;
}
.card-portrait {
  position: absolute;
  left: 16.2%;
  top: 15.4%;
  width: 67.6%;
  height: 52.4%;
  object-fit: contain;
  object-position: center bottom;
  padding: 2% 5% 3%;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 4px 3px rgba(40, 26, 10, 0.38));
}
.card-gloss {
  position: absolute;
  left: 16.2%;
  top: 15.4%;
  width: 67.6%;
  height: 52.4%;
  border-radius: 11%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.42;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.7) 0 6%, rgba(255, 255, 255, 0.1) 26%, transparent 46%),
    radial-gradient(ellipse at 24% 16%, rgba(255, 255, 255, 0.55), transparent 28%);
  mix-blend-mode: screen;
}
.card-file {
  position: absolute;
  left: 6.5%;
  top: 6.6%;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 3.1cqw;
  color: #4a3a22;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.card-faction {
  position: absolute;
  right: 6.5%;
  top: 6.6%;
  z-index: 3;
  font-size: 3.2cqw;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4a3a22;
  opacity: 0.78;
}
.card-role {
  position: absolute;
  left: 10%;
  width: 80%;
  top: 73.2%;
  height: 7.2%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 4.15cqw;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #43331c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-name {
  position: absolute;
  left: 21.5%;
  width: 59%;
  top: 82.4%;
  height: 4.6%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 5.75cqw;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #f8f0dc;
  text-shadow: 0 1px 0 rgba(70, 18, 12, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card.sel { outline: 3px solid #c23a2c; outline-offset: 3px; transform: translateY(-3px); }
.card.sel::after {
  content: "SELECTED";
  position: absolute;
  z-index: 6;
  left: 50%;
  top: -9px;
  transform: translateX(-50%) rotate(-2deg);
  background: #b23127;
  color: #fbf2dc;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 3.6cqw;
  letter-spacing: 0.1em;
  padding: 0.9cqw 2.2cqw;
  white-space: nowrap;
  border: 1px solid rgba(60, 16, 10, 0.6);
  box-shadow: 0 2px 2px rgba(30, 18, 5, 0.35);
}
.card.locked { cursor: not-allowed; }
.card.locked .card-fig { display: none; }
.card.locked .card-gloss { opacity: 0.18; }
.card.locked .card-role { color: rgba(67, 51, 28, 0.4); }
.card.locked .card-name { opacity: 0.32; }
.card-lock-stamp {
  position: absolute;
  z-index: 5;
  left: 7%;
  width: 86%;
  top: 77.5%;
  padding: 1.5cqw 0;
  background: rgba(164, 44, 36, 0.94);
  border: 2px solid rgba(62, 16, 10, 0.7);
  color: #f9edd4;
  text-align: center;
  font-family: var(--font-display);
  font-size: 4.5cqw;
  letter-spacing: 0.05em;
  transform: rotate(-4.5deg);
  box-shadow: 0 2px 3px rgba(30, 16, 4, 0.35);
}
.card-shake { animation: cardshake 0.28s linear; }
@keyframes cardshake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
.roster-note {
  margin-top: 12px;
  padding: 8px 10px;
  background: rgba(33, 26, 15, 0.8);
  border-left: 4px solid #b23127;
  color: #ecdfc2;
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.roster-note b { color: #fff3d8; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; margin-right: 5px; }

.mobile-deploy { display: none; }

/* ==========================================================================
   PRE-MATCH BRIEFING / PAUSE / RESULTS
   ========================================================================== */

.overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow-y: auto;
  padding: 14px;
}
.overlay-dim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(28, 22, 14, 0.58), rgba(12, 10, 6, 0.86)),
    repeating-linear-gradient(45deg, rgba(255, 240, 210, 0.02) 0 2px, transparent 2px 5px);
  backdrop-filter: none;
}
.overlay-dim.hard { background: rgba(14, 11, 7, 0.93); }

.prebrief-wrap, .pause-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  margin: auto;
}
.sheet-prebrief, .sheet-pause { width: min(420px, 84vw); }

.squad-list {
  position: absolute;
  left: 10.5%;
  width: 79%;
  top: 17.5%;
  height: 26.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 3.9cqw;
}
.squad-row {
  display: flex;
  align-items: baseline;
  gap: 1.5cqw;
  border-bottom: 1px dashed rgba(48, 38, 22, 0.45);
  padding-bottom: 0.45cqw;
  line-height: 1;
}
.squad-row i {
  width: 1.7cqw;
  height: 1.7cqw;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  background: var(--olive);
  border: 1px solid rgba(20, 20, 10, 0.4);
}
.squad-row.cobra i { background: var(--cobalt); }
.squad-row b { font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52%; }
.squad-row span { margin-left: auto; font-family: var(--font-mono); font-size: 2.5cqw; color: #6d5b3c; white-space: nowrap; }
.squad-row.you { color: #9c291f; }
.squad-row.you b { text-decoration: underline; text-decoration-thickness: 0.4cqw; text-underline-offset: 0.5cqw; }

.prebrief-actions, .result-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}
.prebrief-hint {
  max-width: 420px;
  color: rgba(246, 239, 220, 0.78);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.35;
}

/* pause */
.sheet-pause .pause-grid {
  position: absolute;
  left: 7%;
  width: 86%;
  top: 15.5%;
  bottom: 6%;
  background: rgba(238, 224, 194, 0.94);
  border: 1px solid rgba(60, 45, 25, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 248, 230, 0.35) inset;
  padding: 3.4cqw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqw;
  overflow: auto;
}
.pause-col h3 {
  margin: 0 0 1cqw;
  font-family: var(--font-mono);
  font-size: 2.7cqw;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #7a2a20;
  border-bottom: 1px solid rgba(90, 60, 28, 0.3);
  padding-bottom: 0.9cqw;
}
.pause-name { margin: 0; font-family: var(--font-display); font-size: 4.2cqw; line-height: 1.1; color: #262013; }
.pause-role { margin: 0.6cqw 0 2.2cqw; font-family: var(--font-mono); font-size: 2.5cqw; color: #6a5738; }
.pause-score { display: flex; gap: 2.4cqw; margin: 0 0 2.4cqw; font-family: var(--font-mono); font-size: 2.9cqw; }
.pause-score b { font-size: 3.5cqw; }
.pause-score .joe b { color: #4e5a2c; }
.pause-score .cobra b { color: #1d2a63; }
.pause-buttons { display: flex; flex-direction: column; gap: 1.6cqw; align-items: stretch; }
.pause-buttons .stamp-btn { min-height: 0; padding: 1.5cqw 2cqw; font-size: 3.6cqw; }
.pause-buttons .ghost-btn { font-size: 2.9cqw; padding: 1.2cqw 1.6cqw; }
.pause-controls, .pause-touch {
  margin: 0 0 1.6cqw;
  font-family: var(--font-mono);
  font-size: 2.5cqw;
  line-height: 1.55;
  color: #3c3020;
  letter-spacing: 0.02em;
}
.pause-touch { display: none; color: #7a2a20; font-family: var(--font-text); font-size: 2.8cqw; line-height: 1.35; }
.touch .pause-controls { display: none; }
.touch .pause-touch { display: block; }

/* results */
.result-card {
  position: relative;
  z-index: 2;
  width: min(560px, 92vw);
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.35), rgba(136, 103, 58, 0.18)),
    #e6d5b0 url("../assets/art/desert_ground_tiles_02_cracked_hardpan.webp") center / 420px;
  background-blend-mode: multiply, normal;
  border: 2px solid #5e4727;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(231, 216, 185, 0.1);
  padding: clamp(18px, 3vw, 34px);
  text-align: center;
  margin: auto;
  transform: rotate(-0.35deg);
}
.result-topline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #56432a;
  border-bottom: 1px solid rgba(70, 50, 26, 0.35);
  padding-bottom: 8px;
}
.result-verdict {
  display: inline-block;
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #b23127;
  border: 5px double #b23127;
  padding: 6px 20px 2px;
  transform: rotate(-3deg);
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.result-scoreline {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(10px, 3vw, 26px);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 0.1em;
  color: #2b2315;
  margin: 6px 0 4px;
}
.result-scoreline b { font-family: var(--font-mono); font-size: clamp(30px, 5vw, 48px); font-weight: 400; color: #1d1810; }
.result-scoreline .joe b { color: #4e5a2c; }
.result-scoreline .cobra b { color: #1d2a63; }
.result-scoreline em { font-style: normal; font-size: 22px; }
.result-verdict.draw { color: #4f5c2d; border-color: #4f5c2d; }
.result-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #4a3a22;
}
.result-stats b { color: #1f1a12; font-size: 14px; }
.result-stamp {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b23127;
  border: 2px solid #b23127;
  padding: 5px 12px;
  transform: rotate(2deg);
  margin-bottom: 16px;
  opacity: 0.88;
}
.result-best {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #665236;
}

/* ==========================================================================
   GAME / HUD
   ========================================================================== */

#game { background: #0a0906; overflow: hidden; touch-action: none; z-index: 1; }
#game.menu-mode #hud,
#game.menu-mode #touchUI,
#game.menu-mode #pauseBtn { display: none !important; }
#viewport { position: absolute; inset: 0; }
#viewport canvas { display: block; width: 100%; height: 100%; }

#vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 48%, transparent 48%, rgba(33, 16, 8, 0.36) 100%);
  z-index: 3;
}
#hitFlash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(190, 32, 24, 0.55) 100%);
  transition: opacity 0.09s linear;
}
#damageArc {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.16s linear;
  --dmg-angle: 0deg;
}
#damageArc::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180vmax;
  height: 180vmax;
  transform: translate(-50%, -50%) rotate(var(--dmg-angle));
  background: conic-gradient(from 0deg, transparent 0deg, transparent 7deg, rgba(204, 42, 32, 0.92) 22deg, rgba(204, 42, 32, 0.4) 40deg, transparent 48deg);
  -webkit-mask: radial-gradient(circle, transparent 0 35%, #000 42%, #000 55%, transparent 63%);
  mask: radial-gradient(circle, transparent 0 35%, #000 42%, #000 55%, transparent 63%);
}

#hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  font-family: var(--font-text);
  color: var(--cream);
}

.scoreboard {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 5px;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45));
}
.score-plate {
  position: relative;
  width: clamp(78px, 11vw, 128px);
  min-height: clamp(46px, 7.4vh, 66px);
  border: 2px solid rgba(30, 24, 14, 0.9);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 4px 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 246, 220, 0.3) inset, 0 2px 0 rgba(0, 0, 0, 0.35);
}
.score-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 6px 6px, rgba(24, 20, 12, 0.75) 0 2px, transparent 2.5px),
    radial-gradient(circle at calc(100% - 6px) 6px, rgba(24, 20, 12, 0.75) 0 2px, transparent 2.5px),
    repeating-linear-gradient(0deg, rgba(255, 250, 230, 0.04) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.score-plate.joe {
  background: linear-gradient(180deg, #707b3a, #4e5a2c 55%, #373f1d);
  border-color: #d5c9a2;
}
.score-plate.cobra {
  background: linear-gradient(180deg, #2c3c7c, #1d2a63 55%, #101738);
  border-color: #d5c9a2;
}
.score-plate.yours { box-shadow: 0 0 0 2px #f3e4bd inset, 0 0 0 4px rgba(30,20,10,0.35), 0 2px 0 rgba(0,0,0,0.35); }
.score-plate.yours .score-name::after { content: " / YOU"; font-size: 0.8em; opacity: 0.8; }
.score-name {
  position: relative;
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f3e8cc;
  opacity: 0.9;
}
.score-plate b {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1;
  color: #fff8e6;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.clock-plate {
  width: clamp(62px, 8vw, 92px);
  min-height: clamp(46px, 7.4vh, 66px);
  background: linear-gradient(180deg, #c9b482, #a58b57 55%, #82683a);
  border: 2px solid #332816;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #241c10;
  box-shadow: 0 0 0 1px rgba(255, 248, 226, 0.5) inset, 0 2px 0 rgba(0, 0, 0, 0.35);
  position: relative;
}
.clock-face {
  font-family: var(--font-mono);
  font-size: clamp(17px, 2.4vw, 25px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.clock-label { font-size: 7px; letter-spacing: 0.16em; font-weight: 700; opacity: 0.7; }

.minimap-wrap {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  width: clamp(76px, 9vw, 108px);
  aspect-ratio: 1;
  overflow: hidden;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.45));
  border-radius: 50%;
  box-shadow: 0 0 0 2px #d8c68f, 0 0 0 4px #2a2316;
}
.minimap-plate {
  position: absolute;
  width: 217.6%;
  height: auto;
  left: -19.7%;
  top: -6%;
  pointer-events: none;
}
#minimap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #1a2014;
  box-shadow: 0 0 0 1px rgba(20, 18, 10, 0.8);
}
.minimap-counts {
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #f1e4c6;
  text-shadow: 0 1px 2px #000;
  display: none;
}

.killfeed {
  position: absolute;
  top: max(46px, calc(env(safe-area-inset-top) + 40px));
  right: max(8px, env(safe-area-inset-right));
  width: min(300px, 38vw);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.kill-row {
  max-width: 100%;
  background: rgba(26, 28, 18, 0.86);
  border-left: 4px solid #56602e;
  color: #f2e7cb;
  font-size: clamp(9px, 1.1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 7px 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}
.kill-row.cobra { border-left-color: #1d2a63; }
.kill-row .x { color: #b23127; font-family: var(--font-mono); margin: 0 4px; }

.health-wrap {
  position: absolute;
  left: max(10px, env(safe-area-inset-left));
  bottom: max(10px, env(safe-area-inset-bottom));
  width: clamp(150px, 16vw, 214px);
  aspect-ratio: 511 / 308;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.45));
}
.plate-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.health-label {
  position: absolute;
  left: 13%;
  top: 15%;
  font-size: clamp(7px, 0.85vw, 9px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #4d4a37;
}
.health-num {
  position: absolute;
  right: 13%;
  top: 7%;
  font-family: var(--font-mono);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.1;
  color: #262318;
  letter-spacing: -0.03em;
}
.health-bar {
  position: absolute;
  left: 21.5%;
  top: 64.5%;
  width: 57%;
  height: 18.5%;
  background: rgba(27, 26, 16, 0.72);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) inset;
}
.health-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, #e0ca82, #a2ad4a 55%, #6c7a2c);
  transition: width 0.12s linear, background 0.2s;
}
.health-name {
  position: absolute;
  left: 2px;
  top: -16px;
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #f5ead0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.ammo-wrap {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  width: clamp(100px, 11vw, 142px);
  aspect-ratio: 361 / 352;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, 0.45));
}
.ammo-num {
  position: absolute;
  left: 17%;
  width: 66%;
  top: 23%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.7vw, 34px);
  line-height: 1;
  color: #25231a;
  letter-spacing: -0.04em;
}
.ammo-label {
  position: absolute;
  left: 20%;
  width: 60%;
  top: 48%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(7px, 0.9vw, 10px);
  letter-spacing: 0.08em;
  color: #7d2a20;
}
.ammo-tag {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f5ead0;
  text-shadow: 0 1px 2px #000;
}
.needle {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 26%;
  height: 3px;
  background: #b32d23;
  transform-origin: 0 50%;
  transform: rotate(-120deg);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.15s linear;
}

.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(42px, 4.5vw, 58px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.94;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6));
}
.crosshair img { width: 100%; height: 100%; display: block; }
.crosshair.aiming { transform: translate(-50%, -50%) scale(0.78); opacity: 1; }
.crosshair.aiming > img { opacity: 0; }

.scope-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0 33vmin, rgba(5, 7, 6, 0.97) 34vmin);
}
.scope-overlay::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66vmin;
  height: 66vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(8, 10, 8, 0.9);
  box-shadow: 0 0 0 1px rgba(247, 236, 211, 0.14) inset;
}
.scope-overlay::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66vmin;
  height: 66vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.6px), rgba(20, 22, 16, 0.82) calc(50% - 0.6px), rgba(20, 22, 16, 0.82) calc(50% + 0.6px), transparent calc(50% + 0.6px)),
    linear-gradient(0deg, transparent calc(50% - 0.6px), rgba(20, 22, 16, 0.82) calc(50% - 0.6px), rgba(20, 22, 16, 0.82) calc(50% + 0.6px), transparent calc(50% + 0.6px));
  opacity: 0.75;
}
.hitmarker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
}
.hitmarker::before, .hitmarker::after {
  content: "";
  position: absolute;
  background: #fff4df;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}
.hitmarker::before { left: 0; top: 13px; width: 10px; height: 3px; box-shadow: 20px 0 0 #fff4df; }
.hitmarker::after { left: 13px; top: 0; width: 3px; height: 10px; box-shadow: 0 20px 0 #fff4df; }
.hitmarker.on { opacity: 1; }
.hitmarker.kill::before, .hitmarker.kill::after { background: #df3a2c; box-shadow: 0 0 2px rgba(0, 0, 0, 0.8); }
.hitmarker.kill::before { box-shadow: 20px 0 0 #df3a2c; }
.hitmarker.kill::after { box-shadow: 0 20px 0 #df3a2c; }

.status-line {
  position: absolute;
  left: 50%;
  top: 21%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: clamp(8px, 0.9vw, 10px);
  letter-spacing: 0.2em;
  color: rgba(247, 236, 212, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}
.aim-hint {
  position: absolute;
  left: 50%;
  top: 57.5%;
  transform: translateX(-50%);
  padding: 5px 12px;
  background: rgba(24, 20, 12, 0.72);
  border: 1px solid rgba(246, 236, 212, 0.35);
  color: #f6ecd4;
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.aim-hint.hidden { display: none; }

.pause-btn {
  position: absolute;
  z-index: 9;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  width: 34px;
  height: 30px;
  border: 1px solid rgba(246, 236, 212, 0.5);
  background: rgba(24, 22, 14, 0.72);
  color: #f3e8cc;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  border-radius: 2px;
  pointer-events: auto;
}

/* death */
.death-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(90, 12, 8, 0.05) 20%, rgba(38, 4, 2, 0.78) 100%);
}
.death-stamp {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 92px);
  color: #e44533;
  border: 5px solid #e44533;
  padding: 4px 20px;
  transform: rotate(-3deg);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  mix-blend-mode: screen;
  opacity: 0.92;
}
.death-by {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 15px);
  letter-spacing: 0.16em;
  color: #f4e4c4;
  text-shadow: 0 1px 3px #000;
}
.death-respawn {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #f4e4c4;
}
.death-respawn b { font-family: var(--font-mono); font-size: 20px; color: #ffd9a1; }
#deathPause { pointer-events: auto; margin-top: 6px; }

/* touch */
.touch-ui { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.stick-zone {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: clamp(112px, 32vw, 140px);
  height: clamp(112px, 32vw, 140px);
  pointer-events: auto;
  touch-action: none;
}
.stick-base {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(42, 48, 28, 0.62), rgba(22, 24, 15, 0.8));
  border: 2px solid rgba(246, 236, 212, 0.4);
  box-shadow: 0 0 0 5px rgba(30, 32, 20, 0.25), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.stick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #c9b582, #8c7747 60%, #5f4f2c);
  border: 2px solid rgba(35, 28, 15, 0.7);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}
.touch-buttons {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  width: clamp(176px, 52vw, 208px);
  height: clamp(176px, 52vw, 208px);
  pointer-events: none;
}
.touch-btn {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 50%;
  border: 2px solid rgba(246, 236, 212, 0.55);
  background: rgba(30, 34, 20, 0.64);
  color: #f5ead0;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(9px, 2.6vw, 12px);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(35, 28, 15, 0.35) inset;
}
.touch-btn.pressed { filter: brightness(1.35); transform: scale(0.96); }
.touch-btn.aim[aria-pressed="true"] {
  background: rgba(214, 186, 92, 0.82);
  border-color: #f6e7ba;
  color: #241d0e;
  filter: brightness(1.08);
}
.touch-btn.fire {
  width: clamp(76px, 24vw, 92px);
  height: clamp(76px, 24vw, 92px);
  right: 0;
  bottom: 0;
  background: rgba(158, 42, 32, 0.66);
  border-color: rgba(248, 198, 172, 0.7);
  font-size: clamp(11px, 3vw, 14px);
}
.touch-btn.aim {
  width: clamp(56px, 17vw, 68px);
  height: clamp(56px, 17vw, 68px);
  right: calc(clamp(76px, 24vw, 92px) + 8px);
  bottom: 2px;
}
.touch-btn.reload {
  width: clamp(56px, 17vw, 68px);
  height: clamp(56px, 17vw, 68px);
  right: 2px;
  bottom: calc(clamp(76px, 24vw, 92px) + 8px);
}
.touch-btn.jump {
  width: clamp(50px, 15vw, 60px);
  height: clamp(50px, 15vw, 60px);
  right: calc(clamp(56px, 17vw, 68px) + 12px);
  bottom: calc(clamp(56px, 17vw, 68px) + 12px);
}

.touch .health-wrap {
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + clamp(124px, 34vw, 152px));
  left: max(10px, env(safe-area-inset-left));
  width: clamp(128px, 38vw, 158px);
}
.touch .ammo-wrap {
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + clamp(196px, 52vw, 226px));
  right: max(10px, env(safe-area-inset-right));
  width: clamp(94px, 27vw, 116px);
}
.touch .killfeed { top: 62px; width: min(210px, 56vw); }
.touch .status-line { top: 18%; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  background: #2a2315;
  color: #f3e7c9;
  border: 1px solid rgba(240, 226, 194, 0.35);
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  max-width: 90vw;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .lobby-main { grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); }
  .cards { gap: 7px; }
}

@media (max-width: 860px) {
  body { overflow: hidden; }
  #lobby { overflow-y: auto; display: block; }
  .lobby-sky { position: fixed; height: 52vh; min-height: 260px; }
  .lobby-sand { position: fixed; top: 46vh; }
  .masthead { padding-top: max(8px, env(safe-area-inset-top)); }
  .masthead-inner { min-height: 0; display: block; padding-top: 2px; }
  .title-lockup { width: min(88vw, 460px); margin: 0 auto; }
  .title-art { width: 100%; height: auto; }
  .title-sub { font-size: 9px; letter-spacing: 0.14em; margin-top: 4px; }
  .big-star { width: clamp(48px, 14vw, 76px); right: 2px; top: 6px; }
  .big-snake { width: clamp(42px, 12vw, 64px); right: 20px; top: clamp(80px, 25vw, 122px); }
  .sound-btn {
    position: static;
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    font-size: 9px;
    padding: 4px 7px;
  }
  .credit-line { font-size: 8px; letter-spacing: 0.1em; }
  .audio-mini { font-size: 8px; padding: 4px 6px; letter-spacing: 0.06em; }
  .lobby-main {
    display: flex;
    flex-direction: column;
    padding: 10px 10px 104px;
    gap: 14px;
  }
  .roster-col { order: 1; overflow: visible; padding: 0; }
  .brief-col { order: 2; overflow: visible; padding: 0; }
  .sheet-lobby { width: min(420px, 100%); margin: 0 auto; }
  .controls-line { display: none; }
  .deploy-row {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(38, 28, 14, 0.35), rgba(30, 22, 11, 0.95) 40%);
    gap: 8px;
  }
  .deploy-row .stamp-btn { font-size: 17px; padding: 8px 16px; }
  .team-tabs { position: static; padding: 4px 0 8px; }
  .team-panel { padding: 8px 8px 12px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .team-head { gap: 8px; }
  .team-title h2 { font-size: 24px; }
  .team-title span { font-size: 7px; letter-spacing: 0.12em; }
  .team-count b { font-size: 20px; }
  .mobile-deploy {
    display: flex;
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    background: linear-gradient(180deg, rgba(38, 28, 14, 0.2), rgba(30, 22, 11, 0.92) 30%);
  }
  .mobile-deploy .side-readout { background: rgba(30, 23, 13, 0.9); }
  .mobile-deploy .stamp-btn { font-size: 17px; padding: 8px 16px; }
  .prebrief-wrap, .pause-wrap { max-width: 100%; }
  .sheet-prebrief, .sheet-pause { width: min(360px, 88vw); }
  .result-card { padding: 16px; }
}

@media (max-width: 430px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-tab { height: 42px; font-size: 14px; }
  .team-tab b { font-size: 9px; }
  .killfeed { width: 52vw; }
  .status-line { top: 20%; }
}

@media (max-width: 560px) {
  .scoreboard { gap: 3px; }
  .score-plate { width: clamp(64px, 19vw, 80px); min-height: 46px; }
  .score-name { font-size: 7px; letter-spacing: 0.1em; }
  .score-plate b { font-size: 20px; }
  .clock-plate { width: 54px; min-height: 46px; }
  .clock-face { font-size: 15px; }
  .clock-label { font-size: 6px; }
  .minimap-wrap { width: 74px; }
  .killfeed { top: 60px; width: 54vw; }
  .touch .killfeed { top: 60px; }
}

@media (min-width: 861px) and (max-height: 760px) {
  .masthead-inner { min-height: 132px; }
  .title-lockup { width: fit-content; }
  .title-art { height: clamp(140px, 27vh, 205px); }
  .big-star { width: 104px; }
  .big-snake { width: 82px; top: 108px; }
  .sheet-lobby { max-width: 310px; }
  .controls-line { display: none; }
  .team-tab { height: 40px; }
  .team-title h2 { font-size: 28px; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .masthead-inner { min-height: 104px; }
  .title-lockup { width: fit-content; }
  .title-art { height: clamp(110px, 24vh, 160px); width: auto; }
  .title-sub { display: none; }
  .big-star { width: 76px; }
  .big-snake { width: 58px; top: 84px; }
  .lobby-main { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
  .sheet-lobby { max-width: 280px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .touch .killfeed { top: 54px; }
}


/* --- HUD crowding guards ------------------------------------------------ */

@media (max-width: 1100px) {
  .killfeed { top: max(82px, calc(env(safe-area-inset-top) + 76px)); }
}

@media (max-width: 560px) {
  .minimap-wrap { width: 58px; }
  .scoreboard { gap: 3px; }
  .score-plate { width: 64px; min-height: 45px; }
  .score-plate b { font-size: 19px; }
  .clock-plate { width: 54px; min-height: 45px; }
  .clock-face { font-size: 14px; }
  .clock-label { font-size: 6px; }
  .score-name { font-size: 7px; letter-spacing: 0.08em; }
  .killfeed { top: 60px; width: 54vw; }
  .touch .killfeed { top: 60px; }
  .sheet-pause .pause-grid { grid-template-columns: 1fr; }
  .result-card { padding: 14px 12px; }
  .result-verdict { font-size: 38px; }
}

@media (max-height: 640px) {
  .sheet-prebrief { width: min(300px, 74vw); }
  .prebrief-hint { display: none; }
  .prebrief-actions { gap: 8px; }
  .prebrief-actions .stamp-btn { min-height: 42px; font-size: 16px; padding: 7px 14px; }
  .prebrief-actions .ghost-btn { font-size: 11px; padding: 7px 10px; }
}

@media (max-width: 390px) {
  .team-panel { padding: 7px 7px 10px; }
  .card-name { font-size: 6.2cqw; }
  .card.sel::after { font-size: 5cqw; }
  .card-lock-stamp { font-size: 5cqw; }
  .mobile-deploy .stamp-btn { font-size: 16px; padding: 7px 14px; }
}


/* ==========================================================================
   LOADOUTS, SCOREBOARD, PAD
   ========================================================================== */

.loadout-chip {
  position: absolute;
  z-index: 4;
  left: 10.5%;
  width: 55%;
  top: 77.4%;
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  border: 1px solid #a52f27;
  background: rgba(255, 248, 230, 0.55);
  color: #7a2a20;
  padding: 0.75cqw 1.1cqw;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 2.3cqw;
  letter-spacing: 0.09em;
  white-space: nowrap;
  overflow: hidden;
}
.loadout-chip:hover { background: rgba(255, 248, 230, 0.85); }
.loadout-chip span { opacity: 0.7; }
.loadout-chip b {
  font-family: var(--font-text);
  font-size: 3.1cqw;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brief-loadout {
  position: absolute;
  left: 10.5%;
  width: 52%;
  top: 74.2%;
  font-family: var(--font-mono);
  font-size: 2.35cqw;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: #4a3a22;
  border-left: 0.8cqw solid #a52f27;
  padding-left: 1.1cqw;
}

.weapon-name {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: clamp(7px, 0.8vw, 9px);
  letter-spacing: 0.06em;
  color: #f6ead0;
  background: rgba(26, 22, 14, 0.78);
  padding: 2px 6px;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pause-loadout {
  margin: -0.3cqw 0 1.4cqw;
  font-family: var(--font-mono);
  font-size: 2.35cqw;
  letter-spacing: 0.04em;
  color: #4e5a2c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pad-layout {
  margin-top: 1.6cqw;
  border-top: 1px solid rgba(90, 60, 28, 0.3);
  padding-top: 1.2cqw;
}
.pad-title {
  font-family: var(--font-mono);
  font-size: 2.4cqw;
  letter-spacing: 0.12em;
  color: #7a2a20;
  margin-bottom: 0.8cqw;
}
.pad-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45cqw;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 2.55cqw;
  letter-spacing: 0.045em;
  line-height: 1.8;
  color: #3c3020;
}
.pad-row.small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 2.15cqw;
  color: #6a5738;
  letter-spacing: 0.02em;
}
.xbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5cqw;
  height: 2.5cqw;
  padding: 0 0.45cqw;
  border-radius: 50%;
  background: #45433a;
  color: #fff8e6;
  border: 1px solid #1e1d18;
  font-family: var(--font-mono);
  font-size: 1.7cqw;
  line-height: 1;
}
.xbtn.a { background: #3f9b48; }
.xbtn.b { background: #bf3a32; }
.xbtn.x { background: #3a6dbc; }
.xbtn.y { background: #c7a029; color: #2b2413; }
.xbtn.lb, .xbtn.rb, .xbtn.lt, .xbtn.rt, .xbtn.start, .xbtn.view {
  border-radius: 2px;
  min-width: auto;
  padding: 0 0.55cqw;
  font-size: 1.55cqw;
}
.pad-status {
  margin-top: 0.8cqw;
  font-family: var(--font-mono);
  font-size: 2.1cqw;
  letter-spacing: 0.05em;
  color: #7a2a20;
}

/* scoreboard */
#scoreboard { z-index: 74; }
#scoreboard .overlay-dim { background: rgba(12, 14, 10, 0.58); }
.sb-card {
  position: relative;
  z-index: 2;
  width: min(900px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.35), rgba(136, 103, 58, 0.12)),
    #e7d8b6;
  border: 2px solid #5e4727;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(231, 216, 185, 0.12);
  padding: clamp(12px, 2vw, 22px);
  transform: rotate(-0.2deg);
}
.sb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #a52f27;
  color: #f8ecd4;
  padding: 7px 12px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.8vw, 20px);
  letter-spacing: 0.05em;
}
.sb-score {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin: 10px 0;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.1em;
}
.sb-score .joe { color: #4e5a2c; }
.sb-score .cobra { color: #1d2a63; }
.sb-score b { font-family: var(--font-mono); font-size: clamp(26px, 4vw, 40px); font-weight: 400; }
.sb-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sb-team h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 400;
  border-bottom: 3px solid #56602e;
  padding-bottom: 3px;
  color: #2c2416;
}
.sb-team.cobra h3 { border-bottom-color: #1d2a63; }
.sb-row {
  display: grid;
  grid-template-columns: 1fr 30px 30px 44px;
  gap: 4px;
  align-items: center;
  font-family: var(--font-text);
  font-size: clamp(10px, 1.3vw, 14px);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 4px;
  border-bottom: 1px dotted rgba(80, 58, 28, 0.35);
  color: #3c3020;
}
.sb-row.head { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; color: #6a5738; }
.sb-row.me { background: rgba(178, 49, 39, 0.13); }
.sb-row b { font-family: var(--font-mono); font-weight: 400; text-align: center; }
.sb-row .status { text-align: right; font-family: var(--font-mono); font-size: 8px; color: #5a6730; }
.sb-row .status.out { color: #a52f27; }
.sb-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #6a5738;
}

/* loadouts */
#loadout { z-index: 78; }
.loadout-wrap {
  position: relative;
  z-index: 2;
  width: min(960px, 95vw);
  max-height: 94vh;
  overflow-y: auto;
  margin: auto;
}
.loadout-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 235, 0.35), rgba(136, 103, 58, 0.12)),
    #e8d9b6;
  border: 2px solid #5e4727;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55), 0 0 0 4px rgba(231, 216, 185, 0.12);
  padding: clamp(12px, 2.4vw, 26px);
}
.loadout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 4px solid #a52f27;
  padding-bottom: 8px;
}
.loadout-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #2c2416;
}
.loadout-head p {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(8px, 1vw, 10px);
  letter-spacing: 0.12em;
  color: #6a5738;
}
.level-box { text-align: right; min-width: 160px; }
.level-box b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 28px);
  color: #4e5a2c;
  line-height: 1;
}
.level-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #6a5738;
  margin-top: 2px;
}
.xpbar {
  height: 7px;
  background: rgba(50, 40, 22, 0.25);
  border: 1px solid rgba(80, 60, 30, 0.35);
  margin: 4px 0;
  overflow: hidden;
}
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7d8a3f, #aab454); }
.loadout-body {
  display: grid;
  grid-template-columns: 1.05fr 1.55fr;
  gap: 14px;
  margin-top: 12px;
}
.loadout-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-content: start; }
.lslot {
  position: relative;
  text-align: left;
  border: 2px solid #8a7349;
  background: rgba(255, 248, 230, 0.4);
  padding: 6px 7px;
  cursor: pointer;
  color: #2c2416;
  font-family: var(--font-text);
  min-height: 64px;
}
.lslot:hover { background: rgba(255, 248, 230, 0.7); }
.lslot.active {
  border-color: #a52f27;
  background: #f3e1b6;
  box-shadow: 0 0 0 2px rgba(165, 47, 39, 0.25) inset;
}
.lslot .ls-num {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #8a7349;
}
.lslot b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.3vw, 15px);
  font-weight: 400;
  line-height: 1.05;
  margin: 2px 0 3px;
}
.lslot .ls-line {
  display: block;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.02em;
  color: #5a492e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lslot.active::after {
  content: "ACTIVE";
  position: absolute;
  right: 4px;
  top: 4px;
  background: #a52f27;
  color: #f8ecd4;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  padding: 1px 3px;
}
.loadout-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick-col h3 {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #7a2a20;
  border-bottom: 1px solid rgba(90, 60, 28, 0.3);
  padding-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick-list { display: flex; flex-direction: column; gap: 3px; max-height: 330px; overflow-y: auto; padding-right: 2px; }
.pick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid rgba(80, 60, 30, 0.45);
  background: rgba(255, 248, 230, 0.5);
  color: #2c2416;
  padding: 3px 5px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-text);
  font-size: clamp(9px, 1.1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pick-btn:hover { background: rgba(255, 248, 230, 0.85); }
.pick-btn.active { background: #56602e; color: #f6ecd4; border-color: #2c3316; }
.pick-btn .pk-meta { font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.04em; opacity: 0.8; white-space: nowrap; }
.pick-btn.locked { opacity: 0.45; cursor: not-allowed; }
.pick-btn.locked .pk-meta { color: #a52f27; opacity: 1; }
.loadout-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(90, 60, 28, 0.3);
  margin-top: 12px;
  padding-top: 8px;
}
.loadout-foot .pad-hint {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  color: #6a5738;
}
.loadout-foot .stamp-btn { min-height: 38px; font-size: clamp(14px, 1.8vw, 19px); padding: 6px 16px; }

.result-xp {
  margin: 4px 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  color: #4e5a2c;
  line-height: 1.4;
}
.result-xp b { color: #1f1a12; }

/* gamepad focus */
.pad-focus {
  outline: 3px solid #ffd45a !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(255, 212, 90, 0.18) !important;
}

@media (max-width: 760px) {
  .sb-teams { grid-template-columns: 1fr; }
  .loadout-body { grid-template-columns: 1fr; }
  .loadout-picks { grid-template-columns: 1fr 1fr; }
  .loadout-slots { grid-template-columns: 1fr 1fr; }
  .loadout-head { flex-direction: column; }
  .level-box { text-align: left; }
  .xpbar { width: 100%; }
  .loadout-foot { flex-direction: column; align-items: stretch; }
  .loadout-foot .stamp-btn { width: 100%; }
  .loadout-foot .pad-hint { font-size: 7px; }
  .pick-list { max-height: 180px; }
}
@media (max-width: 430px) {
  .loadout-picks { grid-template-columns: 1fr; }
  .loadout-card { padding: 10px; }
  .loadout-head h2 { font-size: 28px; }
  .lslot { min-height: 58px; }
  .sb-card { padding: 10px; }
  .sb-row { grid-template-columns: 1fr 24px 24px 34px; }
}
