/* RIDE WITH YOUR HOMIES, golden hour street print */

:root {
  --ink: #14110d;
  --ink-2: #1d1914;
  --ink-3: #2b2723;
  --chalk: #ede7db;
  --chalk-dim: rgba(237, 231, 219, 0.62);
  --chalk-rule: rgba(237, 231, 219, 0.24);
  --chalk-rule-strong: rgba(237, 231, 219, 0.44);
  --sand: #c9b79a;
  --gold: #f3c77a;
  --ember: #e2542b;
  --ember-deep: #9a3118;
  --tide: #2e8391;
  --tide-deep: #174f59;
  --brick: #8a4732;
  --brass: #b98a4b;
  --display: "Bungee", "Arial Black", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --drag-x: 0px;
  --drag-y: 0px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--cond);
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; display: block; }
i { font-style: normal; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; }

.screen { position: absolute; inset: 0; }
.screen:not(.is-active) { display: none; }

/* ============ shared print furniture ============ */
.rule-tick { position: relative; }
.corner-ticks::before, .corner-ticks::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  border-color: var(--chalk-rule-strong); border-style: solid;
}
.corner-ticks::before { left: 0; top: 0; border-width: 1px 0 0 1px; }
.corner-ticks::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.kicker {
  font-family: var(--cond); font-weight: 700; letter-spacing: .28em;
  font-size: 11px; color: var(--chalk-dim); text-transform: uppercase;
}

/* ============ menu ============ */
.menu-screen { background: var(--ink); isolation: isolate; z-index: 40; }
  .menu-art {
  position: absolute; inset: 0 0 0 28%;
  transform: translate(var(--drag-x), var(--drag-y)) scale(1.015);
  background-image: url("../assets/elements/menu_key_art.webp");
  background-size: cover;
  background-position: 58% 50%;
  background-repeat: no-repeat;
  filter: saturate(1.04) contrast(1.02);
  z-index: 0;
}
.menu-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,17,13,.95) 0%, rgba(20,17,13,.55) 7%, rgba(20,17,13,0) 24%),
    linear-gradient(0deg, rgba(20,17,13,.72) 0%, rgba(20,17,13,0) 24%),
    linear-gradient(180deg, rgba(20,17,13,.6) 0%, rgba(20,17,13,0) 15%);
}
.menu-scrim {
  position: absolute; inset: 0 72% 0 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 20% 40%, rgba(20,17,13,.15) 0%, rgba(20,17,13,.84) 62%, #14110d 100%),
    #14110d;
  border-right: 1px solid rgba(237,231,219,.14);
}
.menu-scrim::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .25; mix-blend-mode: overlay; pointer-events: none;
}
.menu-grain { position: absolute; inset: 0; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; z-index: 3; pointer-events: none; }

.menu-ticker {
  position: absolute; z-index: 4; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  width: min(860px, 66vw);
  display: flex; align-items: center; gap: 14px;
  pointer-events: none;
}
.ticker-patch { width: clamp(38px, 4.2vw, 58px); height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.ticker-patch--left { transform: rotate(-5deg); }
.ticker-patch--right { transform: rotate(5deg); }
.ticker-rule { flex: 1; height: 2px; background: var(--ink); box-shadow: 0 1px 0 rgba(237,231,219,.13); }
.ticker-copy {
  background: linear-gradient(180deg, #1a1611, #12100c);
  border: 1px solid rgba(237,231,219,.24);
  border-radius: 2px;
  padding: 7px 20px 6px;
  font-family: var(--cond); font-weight: 700; letter-spacing: .2em; font-size: clamp(10px, 1.05vw, 14px);
  color: var(--chalk); white-space: nowrap;
  box-shadow: 0 5px 14px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  text-shadow: 0 1px 0 #000;
}
.ticker-copy i { display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px; background: var(--ember); transform: rotate(45deg); }

.menu-panel {
  position: relative; z-index: 5;
  height: 100%;
  width: clamp(350px, 28.5vw, 548px);
  padding: calc(26px + var(--safe-t)) clamp(20px, 2.1vw, 40px) calc(20px + var(--safe-b)) clamp(20px, 2.4vw, 44px);
  display: flex; flex-direction: column;
  justify-content: center;
  gap: clamp(9px, 1.25vh, 18px);
}
.wordmark { margin: 0; font-family: var(--display); font-weight: 400; line-height: .8; letter-spacing: -.012em; text-transform: uppercase; color: #f1e7d2; }
.wordmark-line { display: block; position: relative; white-space: nowrap; }
.wordmark-line--1 { font-size: clamp(44px, 4.82vw, 90px); text-shadow: 0.055em 0.058em 0 #6f2a14, 0.058em 0.062em 0 #2a120a, 0 0.075em 0 #1a0d07; }
.wordmark-line--2 { font-size: clamp(32px, 3.45vw, 64px); margin-left: .12em; letter-spacing: .005em; text-shadow: 0.06em 0.062em 0 #6f2a14, 0.063em 0.066em 0 #2a120a, 0 0.08em 0 #1a0d07; }
.wordmark-line--3 { font-size: clamp(48px, 5.63vw, 106px); letter-spacing: -.02em; text-shadow: 0.05em 0.052em 0 #6f2a14, 0.054em 0.056em 0 #2a120a, 0 0.07em 0 #1a0d07; }
.wordmark-line::after {
  content: attr(data-text);
}
.wordmark::after {
  content: ""; display: block; width: 62px; height: 3px; margin-top: 14px;
  background: linear-gradient(90deg, var(--ember) 0 36px, rgba(237,231,219,.22) 36px 62px);
}
.tagline {
  margin: 1px 0 4px;
  font-family: var(--cond); font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  font-size: clamp(10px, 1.02vw, 14px); color: rgba(243,199,122,.9);
  text-shadow: 0 1px 0 #000;
}

.play-slab {
  position: relative; display: flex; align-items: baseline; justify-content: center; gap: 15px;
  width: 100%; padding: clamp(11px, 1.35vh, 18px) 20px clamp(9px, 1.1vh, 14px);
  background:
    radial-gradient(80% 130% at 20% 0%, rgba(255,206,138,.22) 0%, rgba(255,206,138,0) 44%),
    linear-gradient(180deg, #e6602f 0%, #d94d24 52%, #b93b1b 100%);
  border: 1px solid #f08154;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,225,190,.45),
    inset 0 -3px 0 rgba(78,20,7,.55),
    0 2px 0 #531b0c,
    0 10px 24px rgba(0,0,0,.42);
  transition: transform .08s ease, filter .08s ease, box-shadow .08s ease;
  overflow: hidden;
}
.play-slab::before {
  content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .3; mix-blend-mode: multiply; pointer-events: none;
}
.play-slab::after {
  content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(255,233,205,.28); border-radius: 1px; pointer-events: none;
}
.play-slab__label {
  font-family: var(--display); font-size: clamp(25px, 2.7vw, 43px); line-height: 1;
  color: #fff4df; letter-spacing: .04em; text-shadow: 0 2px 0 #7c2810, 0 4px 0 rgba(52,14,4,.5);
}
.play-slab__meta { font-weight: 600; letter-spacing: .18em; font-size: clamp(9px, .95vw, 12px); color: rgba(255,235,209,.86); }
.play-slab__meta i { display: inline-block; width: 4px; height: 4px; background: rgba(255,235,209,.7); margin: 0 5px 2px; transform: rotate(45deg); }
.play-slab:hover { filter: brightness(1.06); }
.play-slab:active, .play-slab.is-held { transform: translateY(2px) scale(.995); filter: brightness(.9); box-shadow: inset 0 2px 4px rgba(60,15,4,.55), 0 1px 0 #531b0c; }

.menu-nav { display: flex; flex-direction: column; margin-top: 1px; }
.menu-row {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: clamp(7px, .85vh, 11px) 4px clamp(6px, .75vh, 10px);
  border-bottom: 1px solid rgba(237,231,219,.17);
  position: relative;
  transition: background .12s ease, padding-left .12s ease;
}
.menu-row:first-child { border-top: 1px solid rgba(237,231,219,.17); }
.menu-row:hover, .menu-row:focus-visible { background: rgba(237,231,219,.045); padding-left: 10px; }
.menu-row__arrow { width: 0; height: 0; flex: none; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 9px solid var(--chalk); filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.menu-row__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.menu-row__name { font-family: var(--display); font-size: clamp(18px, 1.55vw, 25px); line-height: 1; letter-spacing: .005em; color: var(--chalk); }
.menu-row__meta { font-weight: 500; letter-spacing: .12em; font-size: clamp(9px, .88vw, 12px); color: rgba(201,183,154,.78); text-transform: uppercase; }
.menu-row__meta i { display: inline-block; width: 3px; height: 3px; margin: 0 5px 2px; background: rgba(201,183,154,.55); transform: rotate(45deg); }
.menu-row:hover .menu-row__name { color: #fff3dd; }

.menu-foot { margin-top: auto; padding-top: clamp(8px, 1.4vh, 20px); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mini-lockup { display: flex; flex-direction: column; line-height: .78; font-family: var(--display); color: #dcc9a8; font-size: 15px; letter-spacing: .01em; }
.mini-lockup span:nth-child(1) { font-size: 1.03em; }
.mini-lockup span:nth-child(2) { font-size: .84em; margin-left: .12em; color: #d5bf9b; }
.mini-lockup span:nth-child(3) { font-size: 1.2em; }
.mini-lockup span { text-shadow: 0.06em 0.07em 0 #5c2413; }
.menu-foot__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; max-width: 170px; overflow: hidden; padding-right: 2px; font-weight: 600; letter-spacing: .16em; font-size: 9px; color: rgba(237,231,219,.48); text-transform: uppercase; text-align: right; }
.menu-foot__meta span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu-corner-ticks { position: absolute; inset: 10px; z-index: 6; pointer-events: none; border: 1px solid transparent; }
.menu-corner-ticks::before, .menu-corner-ticks::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: rgba(237,231,219,.28); border-style: solid; }
.menu-corner-ticks::before { left: 0; top: 0; border-width: 1px 0 0 1px; }
.menu-corner-ticks::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

/* ============ shell screens ============ */
.shell-screen {
  background: #14110d; z-index: 50; display: flex; flex-direction: column;
  overflow: hidden;
}
  .shell-bg {
  position: absolute; inset: 0;
  transform: translate(var(--drag-x), var(--drag-y)) scale(1.02);
  background:
    url("../assets/elements/menu_key_art.webp") right 18% / cover no-repeat;
  opacity: .2; filter: saturate(.7) contrast(1.05);
}
.shell-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,17,13,.98) 0%, rgba(20,17,13,.92) 46%, rgba(20,17,13,.62) 100%); }
.shell-screen::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .18; mix-blend-mode: overlay; pointer-events: none; }
.shell-head {
  position: relative; z-index: 2; flex: none;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  padding: calc(16px + var(--safe-t)) clamp(16px, 3.4vw, 52px) 14px;
  border-bottom: 1px solid var(--chalk-rule);
  background: linear-gradient(180deg, rgba(20,17,13,.96), rgba(20,17,13,.72));
}
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--chalk-rule-strong); border-radius: 2px;
  padding: 9px 14px 8px; font-weight: 700; letter-spacing: .18em; font-size: 11px; color: var(--chalk);
  background: rgba(237,231,219,.035);
}
.back-btn span { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 7px solid var(--chalk); }
.back-btn:hover { background: rgba(237,231,219,.09); }
.back-btn:active { transform: translateY(1px); }
.shell-title-wrap { flex: 1; min-width: 0; }
.shell-title { margin: 0; font-family: var(--display); font-size: clamp(24px, 3vw, 46px); line-height: .95; letter-spacing: .01em; color: var(--chalk); text-shadow: 0 2px 0 #000; }
.shell-sub { margin: 3px 0 0; font-weight: 600; letter-spacing: .22em; font-size: clamp(9px, 1vw, 12px); color: var(--gold); text-transform: uppercase; }
.shell-stamp {
  flex: none; border: 1px solid var(--chalk-rule-strong); padding: 7px 10px 6px;
  font-weight: 700; letter-spacing: .2em; font-size: 9px; color: rgba(237,231,219,.55);
  transform: rotate(-1.5deg);
}
.shell-body {
  position: relative; z-index: 2; flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: clamp(14px, 2.2vw, 30px) clamp(16px, 3.4vw, 52px) calc(34px + var(--safe-b));
  scrollbar-width: thin; scrollbar-color: rgba(237,231,219,.2) transparent;
}
.shell-body::-webkit-scrollbar { width: 7px; }
.shell-body::-webkit-scrollbar-thumb { background: rgba(237,231,219,.18); }

/* generic flyer cards */
.flyer {
  position: relative;
  background:
    linear-gradient(180deg, rgba(237,231,219,.055), rgba(237,231,219,.018)),
    #191510;
  border: 1px solid var(--chalk-rule);
  box-shadow: 0 1px 0 rgba(0,0,0,.6), inset 0 0 30px rgba(0,0,0,.2);
  border-radius: 2px;
}
.flyer::before, .flyer::after { content: ""; position: absolute; width: 9px; height: 9px; border-color: rgba(237,231,219,.32); border-style: solid; pointer-events: none; }
.flyer::before { left: 5px; top: 5px; border-width: 1px 0 0 1px; }
.flyer::after { right: 5px; bottom: 5px; border-width: 0 1px 1px 0; }
.flyer-title { margin: 0; font-family: var(--display); font-size: clamp(16px, 1.8vw, 24px); line-height: 1; letter-spacing: .015em; }
.flyer-meta { font-weight: 600; letter-spacing: .15em; font-size: 10px; color: rgba(201,183,154,.76); text-transform: uppercase; }
.flyer-copy { margin: 0; font-weight: 500; font-size: 14px; line-height: 1.35; color: rgba(237,231,219,.68); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(237,231,219,.28);
  padding: 4px 7px 3px; font-weight: 700; letter-spacing: .14em; font-size: 9px; text-transform: uppercase;
  color: rgba(237,231,219,.7); border-radius: 1px;
}
.tag--ember { border-color: rgba(226,84,43,.65); color: #f2a482; background: rgba(226,84,43,.1); }
.tag--tide { border-color: rgba(46,131,145,.7); color: #8fcbd2; background: rgba(46,131,145,.1); }
.tag--gold { border-color: rgba(185,138,75,.65); color: var(--gold); background: rgba(185,138,75,.08); }
.tag--lock { border-color: rgba(237,231,219,.16); color: rgba(237,231,219,.38); }
.tag--lock::before { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; }

.slab {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 22px 11px;
  border: 1px solid var(--chalk-rule-strong); border-radius: 2px;
  background: linear-gradient(180deg, rgba(237,231,219,.08), rgba(237,231,219,.025));
  font-weight: 700; letter-spacing: .18em; font-size: 12px; text-transform: uppercase;
  color: var(--chalk);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 rgba(0,0,0,.45);
  transition: filter .1s ease, transform .08s ease;
}
.slab:hover { filter: brightness(1.18); }
.slab:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,.55); }
.slab--ember {
  border-color: #f08154;
  background: linear-gradient(180deg, #e6602f, #bd3e1c);
  color: #fff2dd; text-shadow: 0 1px 0 rgba(70,20,6,.5);
  box-shadow: inset 0 1px 0 rgba(255,225,190,.4), inset 0 -2px 0 rgba(80,22,8,.5), 0 2px 0 #521b0c;
}
.slab--quiet { border-color: rgba(237,231,219,.18); color: rgba(237,231,219,.62); background: transparent; }
.slab--tide { border-color: #4fa9b6; background: linear-gradient(180deg, #3595a4, #1f6572); color: #e9f7f8; }
.slab[disabled] { opacity: .34; pointer-events: none; }

/* maps */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.map-card { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 205px; }
.map-card__art { position: relative; aspect-ratio: 3 / 2; height: auto; background: #2b2723; border: 1px solid rgba(237,231,219,.14); overflow: hidden; }
.map-card__art canvas { width: 100%; height: 100%; display: block; }
.map-card__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.map-card__sub { display: block; margin-top: 3px; }
.map-card.is-locked { opacity: .48; }
.map-card.is-locked .map-card__art::after {
  content: "LOCKED"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,17,13,.6); font-weight: 700; letter-spacing: .35em; font-size: 11px; color: rgba(237,231,219,.6);
}
.map-card.is-selected { border-color: rgba(243,199,122,.6); box-shadow: 0 0 0 1px rgba(243,199,122,.25), 0 8px 26px rgba(0,0,0,.4); }

.mode-lines { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.mode-line { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--chalk-rule); padding: 7px 10px 6px; font-weight: 700; letter-spacing: .13em; font-size: 10px; text-transform: uppercase; color: rgba(237,231,219,.72); background: transparent; font-family: var(--cond); cursor: pointer; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.mode-line:hover { border-color: rgba(237,231,219,.55); color: rgba(250,246,236,.95); }
.mode-line.is-on { border-color: rgba(226,84,43,.7); color: #f4b79e; background: rgba(226,84,43,.08); }
.mode-line.is-off { color: rgba(237,231,219,.34); }
.mode-line small { font-weight: 600; letter-spacing: .12em; font-size: 8px; color: rgba(237,231,219,.4); }

/* crew */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.char-card { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; text-align: left; min-height: 330px; }
.char-card__art { position: relative; flex: 1; min-height: 172px; background: #d6d3cc; overflow: hidden; }
.char-card__art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; transition: transform .25s ease; background: #d6d3cc; }
.char-card:hover .char-card__art img { transform: scale(1.035); }
.char-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,17,13,.78) 0%, rgba(20,17,13,0) 40%); }
.char-card__stamp { position: absolute; top: 8px; right: 8px; }
.char-card__body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 8px; background: #191510; }
.char-card__name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.char-card__role { font-weight: 700; letter-spacing: .16em; font-size: 9px; color: var(--gold); text-transform: uppercase; }
.stat-row { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; }
.stat-row span { font-weight: 600; letter-spacing: .14em; font-size: 8px; color: rgba(237,231,219,.5); text-transform: uppercase; }
.stat-bars { display: flex; gap: 3px; height: 8px; }
.stat-bars i { flex: 1; background: rgba(237,231,219,.12); border-radius: 0; }
.stat-bars i.on { background: var(--chalk); }
.stat-bars i.on.ember { background: var(--ember); }
.stat-bars i.on.tide { background: var(--tide); }
.char-card.is-selected { border-color: rgba(226,84,43,.85); box-shadow: 0 0 0 1px rgba(226,84,43,.35), 0 10px 30px rgba(0,0,0,.45); }
.char-card.is-locked { opacity: .42; cursor: default; filter: grayscale(.5); }
.char-card__art--locked { display: flex; align-items: center; justify-content: center; background: #24211c; }
.char-card__art--locked img { width: 96px; height: 96px; object-fit: contain; opacity: .22; }
.char-card__art--locked > span { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-weight: 700; letter-spacing: .25em; font-size: 8px; color: rgba(237,231,219,.35); }

.crew-lower { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(260px, .9fr); gap: 14px; margin-top: 16px; }
.custom-wall { padding: 14px; }
.custom-wall h3 { margin: 0 0 4px; font-family: var(--display); font-size: 18px; }
.custom-wall p { margin: 0 0 12px; }
.slot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px 8px; border-top: 1px solid var(--chalk-rule); }
.slot-row:first-of-type { border-top: 1px solid var(--chalk-rule); }
.slot-row__name { font-weight: 700; letter-spacing: .18em; font-size: 10px; text-transform: uppercase; color: rgba(237,231,219,.62); }
.slot-row__val { font-weight: 600; font-size: 12px; color: rgba(237,231,219,.82); letter-spacing: .04em; }
.slot-row__val.is-locked { color: rgba(237,231,219,.32); }
.squad-panel { padding: 14px; }
.squad-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--chalk-rule); }
.squad-row:first-of-type { border-top: 0; }
.squad-dot { width: 9px; height: 9px; flex: none; background: var(--ember); transform: rotate(45deg); }
.squad-dot.tide { background: var(--tide); }
.squad-name { font-weight: 700; letter-spacing: .12em; font-size: 11px; color: rgba(237,231,219,.84); }
.squad-role { margin-left: auto; font-weight: 600; letter-spacing: .1em; font-size: 9px; color: rgba(237,231,219,.4); text-transform: uppercase; }

/* loadout */
.loadout-grid { display: grid; grid-template-columns: minmax(290px, 1.15fr) minmax(260px, .85fr); gap: 16px; }
.weapon-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.weapon-card { padding: 11px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.weapon-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.weapon-card__name { font-family: var(--display); font-size: 15px; line-height: 1; }
.weapon-card__class { font-weight: 700; letter-spacing: .14em; font-size: 8px; color: rgba(201,183,154,.6); text-transform: uppercase; }
.weapon-card__silhouette { height: 38px; display: flex; align-items: center; }
.weapon-card__silhouette svg { width: 100%; height: 100%; overflow: visible; }
.weapon-card__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.weapon-spec { display: flex; flex-direction: column; gap: 2px; }
.weapon-spec b { font-weight: 700; font-size: 13px; color: var(--chalk); font-variant-numeric: tabular-nums; }
.weapon-spec span { font-weight: 600; letter-spacing: .12em; font-size: 7px; color: rgba(237,231,219,.42); text-transform: uppercase; }
.weapon-card.is-selected { border-color: rgba(243,199,122,.6); box-shadow: 0 0 0 1px rgba(243,199,122,.25); }
.weapon-card.is-locked { opacity: .35; cursor: default; }

.loadout-side { display: flex; flex-direction: column; gap: 12px; }
.loadout-summary { padding: 14px; }
.loadout-summary h3 { margin: 0 0 3px; font-family: var(--display); font-size: 18px; }
.loadout-summary p { margin: 0 0 12px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--chalk-rule); font-weight: 600; letter-spacing: .1em; font-size: 10px; text-transform: uppercase; color: rgba(237,231,219,.5); }
.summary-line b { color: rgba(237,231,219,.9); letter-spacing: .06em; }
.utility-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.utility-btn { border: 1px solid var(--chalk-rule); padding: 10px 6px 9px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.utility-btn b { font-weight: 700; letter-spacing: .12em; font-size: 9px; color: rgba(237,231,219,.8); text-transform: uppercase; }
.utility-btn span { font-weight: 600; letter-spacing: .08em; font-size: 7px; color: rgba(237,231,219,.36); text-transform: uppercase; }
.utility-btn.is-on { border-color: rgba(243,199,122,.55); background: rgba(243,199,122,.07); }
.attach-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.attach-chip { border: 1px solid rgba(237,231,219,.16); padding: 6px 8px 5px; font-weight: 600; letter-spacing: .12em; font-size: 8px; color: rgba(237,231,219,.34); text-transform: uppercase; }

.loadout-cta { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* profile */
.profile-grid { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(320px, 1.2fr); gap: 16px; }
.profile-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.profile-head { display: flex; gap: 13px; align-items: center; }
.profile-pic { width: 82px; height: 82px; object-fit: cover; object-position: 50% 16%; background: #d9d2c3; border: 1px solid rgba(237,231,219,.24); }
.profile-name { margin: 0; font-family: var(--display); font-size: 23px; line-height: 1; }
.profile-handle { font-weight: 600; letter-spacing: .16em; font-size: 10px; color: var(--gold); text-transform: uppercase; }
.xp-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 600; letter-spacing: .14em; font-size: 9px; color: rgba(237,231,219,.5); text-transform: uppercase; }
.xp-line b { color: var(--chalk); font-size: 12px; }
.xp-track { height: 8px; background: rgba(237,231,219,.1); position: relative; overflow: hidden; }
.xp-track > div { height: 100%; background: linear-gradient(90deg, var(--ember), var(--gold)); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--chalk-rule); border: 1px solid var(--chalk-rule); }
.stat-cell { background: #191510; padding: 12px 10px 10px; display: flex; flex-direction: column; gap: 3px; }
.stat-cell b { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--chalk); font-variant-numeric: tabular-nums; }
.stat-cell span { font-weight: 600; letter-spacing: .14em; font-size: 8px; color: rgba(237,231,219,.4); text-transform: uppercase; }
.history-card { padding: 16px; }
.history-list { display: flex; flex-direction: column; margin-top: 9px; }
.history-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--chalk-rule); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(237,231,219,.62); }
.history-row b { color: var(--chalk); font-size: 12px; }
.history-row .win { width: 7px; height: 7px; background: var(--ember); transform: rotate(45deg); flex: none; }
.history-row .loss { width: 7px; height: 7px; background: rgba(237,231,219,.25); flex: none; }
.history-score { margin-left: auto; font-variant-numeric: tabular-nums; color: rgba(237,231,219,.82); }
.history-empty { padding: 18px 0 8px; color: rgba(237,231,219,.4); font-size: 13px; }

/* leaderboards */
.coming-card { padding: 30px clamp(18px, 4vw, 40px); text-align: center; max-width: 680px; margin: 5vh auto 0; }
.coming-card h3 { margin: 6px 0 8px; font-family: var(--display); font-size: clamp(26px, 4vw, 46px); line-height: .95; }
.coming-card p { max-width: 460px; margin: 0 auto 18px; }
.coming-board { border-top: 1px solid var(--chalk-rule); margin-top: 16px; }
.coming-line { display: flex; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--chalk-rule); opacity: .4; font-weight: 700; letter-spacing: .14em; font-size: 10px; text-transform: uppercase; }
.coming-line span:first-child { width: 28px; color: var(--gold); }
.coming-line span:last-child { margin-left: auto; color: rgba(237,231,219,.5); }

/* settings */
.settings-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.15fr); gap: 16px; }
.settings-card { padding: 16px; }
.settings-card h3 { margin: 0 0 12px; font-family: var(--display); font-size: 18px; }
.setting-row { padding: 10px 0 12px; border-top: 1px solid var(--chalk-rule); }
.setting-row:first-of-type { border-top: 0; }
.setting-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-label { font-weight: 700; letter-spacing: .16em; font-size: 10px; text-transform: uppercase; color: rgba(237,231,219,.65); }
.setting-value { font-weight: 700; font-size: 12px; color: var(--gold); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 7px 0 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: rgba(237,231,219,.18); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: var(--ember); border: 1px solid #f5a180; margin-top: -6px; border-radius: 50%; box-shadow: 0 2px 3px rgba(0,0,0,.5); }
input[type="range"]::-moz-range-track { height: 3px; background: rgba(237,231,219,.18); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: var(--ember); border: 1px solid #f5a180; border-radius: 50%; }
.switch { position: relative; width: 42px; height: 22px; border: 1px solid var(--chalk-rule-strong); background: rgba(237,231,219,.06); border-radius: 2px; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: rgba(237,231,219,.4); transition: left .14s ease, background .14s ease; }
.switch.is-on::after { left: 23px; background: var(--ember); }
.keycaps { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; }
.keycap { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: .1em; font-size: 9px; text-transform: uppercase; color: rgba(237,231,219,.55); }
.keycap kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 24px; padding: 0 6px; border: 1px solid rgba(237,231,219,.32); border-bottom-width: 3px; border-radius: 2px; font-family: var(--cond); font-weight: 700; font-size: 10px; color: var(--chalk); background: rgba(237,231,219,.05); }
.settings-note { font-size: 12px; color: rgba(237,231,219,.42); line-height: 1.35; margin: 10px 0 0; }

/* ============ game ============ */
#game-wrap { position: absolute; inset: 0; background: #0e0c09; z-index: 10; }
#game-wrap:not(.is-live) { pointer-events: none; }
#world-canvas { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; display: block; }
.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--cond); }
.hud button { pointer-events: auto; }

/* scoreboard */
.score-strip {
  position: absolute; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: clamp(7px, .8vw, 13px);
  padding: 7px clamp(10px, 1.2vw, 18px) 6px;
  background: linear-gradient(180deg, rgba(20,17,13,.92), rgba(20,17,13,.78));
  border: 1px solid var(--chalk-rule-strong); border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  z-index: 5;
}
.score-strip::before, .score-strip::after { content: ""; position: absolute; width: 8px; height: 8px; border-color: rgba(237,231,219,.4); border-style: solid; }
.score-strip::before { left: 3px; top: 3px; border-width: 1px 0 0 1px; }
.score-strip::after { right: 3px; bottom: 3px; border-width: 0 1px 1px 0; }
.score-emblem { width: clamp(26px, 3vw, 40px); height: auto; }
.score-block { display: flex; align-items: baseline; gap: 6px; }
.score-block--right { flex-direction: row-reverse; }
.score-team { font-weight: 700; letter-spacing: .2em; font-size: clamp(7px, .8vw, 10px); color: rgba(237,231,219,.55); }
.score-num { font-family: var(--cond); font-weight: 800; font-size: clamp(21px, 2.4vw, 33px); line-height: 1; color: var(--chalk); font-variant-numeric: tabular-nums; }
.score-mid { display: flex; flex-direction: column; align-items: center; padding: 0 clamp(5px, .8vw, 12px); border-left: 1px solid var(--chalk-rule); border-right: 1px solid var(--chalk-rule); min-width: 84px; }
.match-clock { font-weight: 700; font-size: clamp(14px, 1.4vw, 19px); letter-spacing: .1em; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.05; }
.score-mode { font-weight: 600; letter-spacing: .16em; font-size: clamp(6px, .62vw, 8px); color: rgba(237,231,219,.4); white-space: nowrap; }
.intro-note { font-weight: 600; letter-spacing: .12em; font-size: 7px; color: rgba(237,231,219,.35); text-transform: uppercase; margin-top: 2px; }

.kill-ticker { position: absolute; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; pointer-events: none; }
.kill-ticker span { background: rgba(20,17,13,.86); border: 1px solid var(--chalk-rule); padding: 5px 9px 4px; font-weight: 700; letter-spacing: .12em; font-size: 9px; text-transform: uppercase; color: rgba(237,231,219,.82); animation: ticker-in .18s ease both; }
.kill-ticker span b { color: var(--ember); font-weight: 700; }
.kill-ticker span.tide b { color: #74c6d1; }

/* objective */
.objective-card { position: absolute; top: calc(12px + var(--safe-t)); right: calc(14px + var(--safe-r)); display: flex; flex-direction: column; gap: 2px; padding: 9px 12px 8px; border-left: 2px solid var(--ember); background: linear-gradient(90deg, rgba(20,17,13,.82), rgba(20,17,13,.45)); min-width: 150px; z-index: 4; }
.objective-kicker { font-weight: 700; letter-spacing: .22em; font-size: 7px; color: rgba(237,231,219,.42); }
.objective-main { font-weight: 800; letter-spacing: .1em; font-size: clamp(12px, 1.3vw, 17px); color: var(--chalk); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.objective-sub { font-weight: 600; letter-spacing: .14em; font-size: clamp(7px, .7vw, 9px); color: rgba(243,199,122,.72); text-transform: uppercase; }

/* minimap */
.hud-top-left { position: absolute; top: calc(12px + var(--safe-t)); left: calc(14px + var(--safe-l)); z-index: 4; }
.minimap-card {
  width: clamp(142px, 17vw, 224px); position: relative;
  background: #cdbf9f;
  border: 1px solid rgba(43,39,35,.85);
  box-shadow: 0 10px 28px rgba(0,0,0,.42), inset 0 0 22px rgba(90,73,46,.25);
  padding: 5px 5px 4px;
  transform: rotate(-.35deg);
}
.minimap-card canvas { width: 100%; height: auto; display: block; background: #cfc1a2; }
.minimap-fold { position: absolute; inset: 5px; pointer-events: none; background:
  linear-gradient(90deg, transparent 32%, rgba(80,64,40,.2) 32.6%, rgba(255,255,255,.22) 33%, transparent 33.6%, transparent 66%, rgba(80,64,40,.18) 66.6%, rgba(255,255,255,.2) 67%, transparent 67.6%),
  linear-gradient(0deg, transparent 49%, rgba(80,64,40,.16) 49.5%, rgba(255,255,255,.18) 50%, transparent 50.5%);
  mix-blend-mode: multiply;
}
.minimap-foot { display: flex; justify-content: space-between; align-items: center; padding: 3px 2px 0; color: #2b2723; font-weight: 700; letter-spacing: .12em; font-size: clamp(6px, .58vw, 8px); }
.minimap-north { display: inline-flex; align-items: center; gap: 3px; }
.minimap-north i { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 6px solid #2b2723; }

/* vitals */
.vitals { position: absolute; left: calc(16px + var(--safe-l)); bottom: calc(16px + var(--safe-b)); display: flex; align-items: flex-end; gap: 9px; z-index: 4; }
.health-col { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.health-track { width: 11px; height: clamp(82px, 13vh, 132px); background: rgba(20,17,13,.7); border: 1px solid var(--chalk-rule-strong); position: relative; overflow: hidden; }
.health-fill { position: absolute; inset: 0; top: auto; height: 100%; background: linear-gradient(180deg, #f0eadf, #cfc7b8); transform-origin: bottom; transition: height .12s linear, background .18s; }
.health-fill.is-low { background: linear-gradient(180deg, #f3a072, #d7502f); }
.health-fill.is-down { background: #5c2a1c; }
.health-ticks { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent 0, transparent calc(20% - 1px), rgba(20,17,13,.62) calc(20% - 1px), rgba(20,17,13,.62) 20%); pointer-events: none; }
.health-caption { font-weight: 700; letter-spacing: .16em; font-size: 7px; color: rgba(237,231,219,.5); }
.vitals-body { display: flex; align-items: center; gap: 7px; padding-bottom: 13px; }
.vitals-emblem { width: clamp(20px, 2.4vw, 30px); height: auto; }
.vitals-text { display: flex; flex-direction: column; gap: 2px; }
.vitals-name { font-weight: 800; letter-spacing: .11em; font-size: clamp(11px, 1vw, 14px); text-transform: uppercase; color: var(--chalk); text-shadow: 0 1px 2px rgba(0,0,0,.8); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ability-name { font-weight: 600; letter-spacing: .15em; font-size: clamp(6px, .62vw, 8px); color: rgba(243,199,122,.8); text-transform: uppercase; }
.ability-track { width: clamp(74px, 8vw, 110px); height: 4px; background: rgba(20,17,13,.65); border: 1px solid rgba(237,231,219,.24); }
.ability-fill { height: 100%; width: 100%; background: var(--gold); transition: width .2s linear; }
.ability-fill.is-charging { background: var(--brass); }

/* ammo */
.ammo-panel { position: absolute; right: calc(15px + var(--safe-r)); bottom: calc(14px + var(--safe-b)); display: flex; flex-direction: column; align-items: flex-end; gap: 1px; z-index: 4; text-align: right; }
.ammo-weapon { font-weight: 700; letter-spacing: .17em; font-size: clamp(8px, .8vw, 10px); color: rgba(237,231,219,.62); text-transform: uppercase; }
.ammo-main { display: flex; align-items: baseline; gap: 6px; position: relative; }
.ammo-mag { font-family: var(--cond); font-weight: 800; font-size: clamp(38px, 4.6vw, 62px); line-height: .9; color: var(--chalk); font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(0,0,0,.55); }
.ammo-mag.is-low { color: #f3a072; }
.ammo-reserve { font-weight: 700; font-size: clamp(12px, 1.2vw, 17px); color: rgba(237,231,219,.5); font-variant-numeric: tabular-nums; }
.reload-arc { width: clamp(26px, 3vw, 38px); height: clamp(26px, 3vw, 38px); position: absolute; right: -4px; top: 50%; transform: translateY(-50%) rotate(-90deg); opacity: 0; transition: opacity .12s; }
.reload-arc.is-on { opacity: 1; }
.reload-arc__bg { fill: none; stroke: rgba(237,231,219,.14); stroke-width: 3; }
.reload-arc__fg { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset .05s linear; }
.ammo-foot { display: flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .13em; font-size: clamp(7px, .68vw, 9px); color: rgba(237,231,219,.46); text-transform: uppercase; }
.ammo-foot span:last-child { color: rgba(243,199,122,.8); }

/* vehicle */
.vehicle-panel { position: absolute; right: calc(15px + var(--safe-r)); bottom: calc(14px + var(--safe-b)); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; z-index: 4; }
.vehicle-name { font-weight: 800; letter-spacing: .2em; font-size: 10px; color: var(--gold); }
.vehicle-speed { display: flex; align-items: baseline; gap: 5px; }
.vehicle-speed b { font-weight: 800; font-size: clamp(34px, 4vw, 54px); line-height: .9; font-variant-numeric: tabular-nums; }
.vehicle-speed span { font-weight: 700; letter-spacing: .12em; font-size: 9px; color: rgba(237,231,219,.5); }
.vehicle-health { width: 130px; height: 5px; border: 1px solid var(--chalk-rule); }
.vehicle-health > div { height: 100%; width: 100%; background: var(--chalk); transition: width .15s; }
.vehicle-hint { font-weight: 600; letter-spacing: .12em; font-size: 7px; color: rgba(237,231,219,.4); }

/* reticle + feedback */
.reticle { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); z-index: 8; pointer-events: none; opacity: .9; }
.reticle i { position: absolute; background: var(--chalk); box-shadow: 0 0 3px rgba(0,0,0,.8); }
.reticle i:nth-child(1) { left: 50%; top: 0; width: 1px; height: 8px; transform: translateX(-50%); }
.reticle i:nth-child(2) { left: 50%; bottom: 0; width: 1px; height: 8px; transform: translateX(-50%); }
.reticle i:nth-child(3) { top: 50%; left: 0; height: 1px; width: 8px; transform: translateY(-50%); }
.reticle i:nth-child(4) { top: 50%; right: 0; height: 1px; width: 8px; transform: translateY(-50%); }
.reticle b { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; background: var(--ember); transform: translate(-50%, -50%) rotate(45deg); }
.reticle.is-ads { width: 24px; height: 24px; }
.reticle.is-hit b { background: var(--chalk); }
.reticle.is-hidden { opacity: 0; }
.hitmarker { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%) rotate(45deg); z-index: 9; opacity: 0; pointer-events: none; }
.hitmarker::before, .hitmarker::after { content: ""; position: absolute; background: #fff4e2; box-shadow: 0 0 2px #000; }
.hitmarker::before { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.hitmarker::after { top: 50%; left: 0; height: 2px; width: 100%; transform: translateY(-50%); }
.hitmarker.is-kill::before, .hitmarker.is-kill::after { background: var(--ember); }
.damage-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 55%, rgba(0,0,0,0) 44%, rgba(170,42,18,.55) 100%); transition: opacity .22s ease; z-index: 3; }
.flash-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: #fff3dd; z-index: 10; transition: opacity .16s ease; }

/* pause, sound */
.pause-btn { position: absolute; top: calc(8px + var(--safe-t)); right: calc(8px + var(--safe-r)); width: 34px; height: 34px; border: 1px solid rgba(185,138,75,.65); border-radius: 50%; background: linear-gradient(180deg,#221d17,#12100c); display: flex; align-items: center; justify-content: center; gap: 4px; z-index: 22; box-shadow: 0 3px 8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.07); }
.pause-btn span { width: 3px; height: 12px; background: var(--chalk); }
.sound-btn { position: absolute; top: calc(8px + var(--safe-t)); right: calc(52px + var(--safe-r)); width: 34px; height: 34px; border: 1px solid rgba(185,138,75,.55); border-radius: 50%; background: linear-gradient(180deg,#1b1712,#100e0a); display: flex; align-items: center; justify-content: center; z-index: 22; box-shadow: 0 3px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }
.sound-btn svg { width: 17px; height: 17px; fill: rgba(237,231,219,.7); }
.sound-btn.is-muted svg { fill: rgba(237,231,219,.25); }
.sound-btn.is-muted .sound-wave { opacity: .1; }
.sound-wave { fill: none; stroke: rgba(237,231,219,.7); stroke-width: 1.5; }

.kill-feed { position: absolute; left: calc(16px + var(--safe-l)); top: calc(160px + var(--safe-t)); display: flex; flex-direction: column; gap: 3px; z-index: 4; max-width: 220px; }
.kill-feed div { font-weight: 600; letter-spacing: .08em; font-size: 9px; text-transform: uppercase; color: rgba(237,231,219,.5); text-shadow: 0 1px 2px #000; }
.kill-feed div b { color: var(--chalk); font-weight: 700; }

/* respawn */
.respawn-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: radial-gradient(circle at 50% 50%, rgba(20,17,13,.1), rgba(20,17,13,.65)); z-index: 6; pointer-events: none; }
.respawn-kicker { font-weight: 700; letter-spacing: .3em; font-size: 10px; color: rgba(237,231,219,.65); }
.respawn-count { font-family: var(--display); font-size: clamp(46px, 8vw, 96px); line-height: .9; color: var(--chalk); text-shadow: 0 4px 0 #4d1a0c; }
.respawn-sub { font-weight: 600; letter-spacing: .16em; font-size: 9px; color: rgba(243,199,122,.65); }

/* match intro */
.match-intro { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20,17,13,.42); z-index: 18; }
.intro-card { display: flex; flex-direction: column; align-items: center; transform: translate(var(--drag-x), var(--drag-y)); gap: 5px; padding: 22px clamp(26px, 5vw, 70px) 18px; background: linear-gradient(180deg, rgba(20,17,13,.94), rgba(20,17,13,.86)); border: 1px solid var(--chalk-rule-strong); box-shadow: 0 24px 60px rgba(0,0,0,.55); min-width: min(440px, 86vw); }
.intro-kicker { font-weight: 700; letter-spacing: .3em; font-size: 9px; color: var(--gold); }
.intro-map { margin: 0; font-family: var(--display); font-size: clamp(26px, 4.2vw, 52px); line-height: .95; text-align: center; }
.intro-rule { display: block; width: 64px; height: 2px; background: var(--ember); margin: 3px 0; }
.intro-target { font-weight: 700; letter-spacing: .18em; font-size: 9px; color: rgba(237,231,219,.55); text-transform: uppercase; }
.intro-target i { display: inline-block; width: 4px; height: 4px; background: rgba(237,231,219,.35); margin: 0 7px 2px; transform: rotate(45deg); }
.countdown { font-family: var(--display); font-size: clamp(70px, 12vw, 140px); line-height: .85; color: var(--chalk); text-shadow: 0 5px 0 #5b1f0d; margin: 2px 0 0; }
.intro-tip { font-weight: 600; letter-spacing: .13em; font-size: 9px; color: rgba(237,231,219,.45); text-transform: uppercase; text-align: center; }
.intro-tip i { display: inline-block; width: 3px; height: 3px; background: rgba(237,231,219,.35); margin: 0 6px 2px; transform: rotate(45deg); }

/* overlays */
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 30; background: radial-gradient(circle at 50% 42%, rgba(20,17,13,.6), rgba(20,17,13,.9)); backdrop-filter: blur(3px) saturate(.75); }
.overlay-card { position: relative; transform: translate(var(--drag-x), var(--drag-y)); width: min(560px, 94vw); max-height: 94vh; overflow: auto; background: #17130e; border: 1px solid var(--chalk-rule-strong); padding: clamp(20px, 3.2vw, 34px); box-shadow: 0 30px 80px rgba(0,0,0,.65), inset 0 0 60px rgba(0,0,0,.3); }
.overlay-card::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .14; mix-blend-mode: overlay; pointer-events: none; }
.overlay-card::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(237,231,219,.08); pointer-events: none; }
.mini-lockup--pause { font-size: 21px; align-items: center; margin-bottom: 6px; }
.card-title { position: relative; margin: 7px 0 3px; font-family: var(--display); font-size: clamp(28px, 4vw, 44px); line-height: .95; text-align: center; }
.card-sub { position: relative; margin: 0 0 16px; text-align: center; font-weight: 600; letter-spacing: .16em; font-size: 9px; color: rgba(237,231,219,.45); text-transform: uppercase; }
.card-buttons { position: relative; display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.card-buttons .slab { flex: 1; min-width: 130px; }
.pause-controls { position: relative; margin-top: 18px; border-top: 1px solid var(--chalk-rule); padding-top: 12px; }
.pause-controls .keycaps { justify-content: center; }

/* results */
.result-kicker { position: relative; display: block; text-align: center; font-weight: 700; letter-spacing: .3em; font-size: 9px; color: var(--gold); }
.result-title { position: relative; margin: 6px 0 3px; text-align: center; font-family: var(--display); font-size: clamp(26px, 4.4vw, 48px); line-height: .95; }
.result-title.tide { color: #9bd5dc; }
.result-sub { position: relative; margin: 0 0 15px; text-align: center; font-weight: 600; letter-spacing: .18em; font-size: 9px; color: rgba(237,231,219,.42); text-transform: uppercase; }
.result-score { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 0 12px; border-top: 1px solid var(--chalk-rule); border-bottom: 1px solid var(--chalk-rule); }
.result-side { display: flex; align-items: center; gap: 8px; }
.result-side img { width: 44px; height: auto; }
.result-side--right { flex-direction: row; }
.result-side-name { font-weight: 700; letter-spacing: .17em; font-size: 9px; color: rgba(237,231,219,.55); }
.result-side b { font-family: var(--cond); font-weight: 800; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.result-dash { width: 22px; height: 1px; background: rgba(237,231,219,.3); }
.result-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--chalk-rule); border: 1px solid var(--chalk-rule); margin-top: 14px; }
.result-stat { background: #191510; padding: 10px 8px 9px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.result-stat b { font-family: var(--display); font-size: 20px; line-height: 1; }
.result-stat span { font-weight: 600; letter-spacing: .14em; font-size: 7px; color: rgba(237,231,219,.4); text-transform: uppercase; text-align: center; }
.result-xp { position: relative; display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.result-xp-label { font-weight: 700; letter-spacing: .14em; font-size: 8px; color: rgba(237,231,219,.45); white-space: nowrap; }
.result-xp-track { flex: 1; height: 5px; background: rgba(237,231,219,.12); }
.result-xp-track > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--gold)); transition: width .8s ease; }
.result-xp-num { font-weight: 700; letter-spacing: .08em; font-size: 11px; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* boot */
.boot { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: #14110d url("../assets/elements/menu_key_art.webp") center/cover no-repeat; transition: opacity .5s ease; }
.boot::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(80% 70% at 55% 42%, rgba(20,17,13,.08), rgba(20,17,13,.64)), linear-gradient(180deg, rgba(20,17,13,.2), rgba(20,17,13,.62)); }
.boot.is-done { opacity: 0; pointer-events: none; }
.boot::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .2; mix-blend-mode: overlay; }
.boot-card { position: relative; z-index: 2; width: min(430px, 86vw); text-align: center; padding: 26px 24px 22px; background: rgba(20,17,13,.74); border: 1px solid rgba(237,231,219,.28); box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 50px rgba(0,0,0,.26); }
.mini-lockup--boot { font-size: 38px; align-items: center; margin-bottom: 14px; }
.boot-kicker { margin: 0 0 16px; font-weight: 700; letter-spacing: .28em; font-size: 9px; color: var(--gold); }
.boot-bar { height: 4px; background: rgba(237,231,219,.12); overflow: hidden; }
.boot-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--gold)); transition: width .25s ease; }
.boot-status { margin: 9px 0 0; font-weight: 600; letter-spacing: .16em; font-size: 8px; color: rgba(237,231,219,.45); text-transform: uppercase; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translate(-50%, 12px); z-index: 120; background: rgba(20,17,13,.94); border: 1px solid var(--chalk-rule-strong); padding: 10px 16px 9px; font-weight: 600; letter-spacing: .12em; font-size: 10px; text-transform: uppercase; color: var(--chalk); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: 86vw; text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* touch controls */
.touch-controls { position: absolute; inset: 0; z-index: 15; display: none; pointer-events: none; }
.touch-controls.is-on { display: block; }
.move-zone { position: absolute; left: 0; top: 0; width: 50%; height: 100%; pointer-events: auto; touch-action: none; }
.aim-zone { position: absolute; right: 0; top: 0; width: 50%; height: 100%; pointer-events: auto; touch-action: none; }
.move-stick { position: absolute; width: 132px; height: 132px; border: 1px solid rgba(237,231,219,.24); border-radius: 50%; background: radial-gradient(circle, rgba(237,231,219,.08), rgba(237,231,219,.02) 65%, transparent 70%); transform: translate(-50%, -50%); opacity: 0; transition: opacity .12s ease; pointer-events: none; }
.move-stick.is-on { opacity: 1; }
.move-nub { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; border: 1px solid rgba(237,231,219,.4); border-radius: 50%; background: rgba(20,17,13,.55); transform: translate(-50%, -50%); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.stick-label { display: none; }
.touch-disc { position: absolute; width: 58px; height: 58px; background-size: 100% 100%; background-repeat: no-repeat; border: 0; opacity: .92; pointer-events: auto; touch-action: none; filter: drop-shadow(0 4px 7px rgba(0,0,0,.45)); }
.touch-disc span { display: none; }
.touch-disc.is-held { filter: brightness(.82) drop-shadow(0 1px 3px rgba(0,0,0,.5)); transform: translateY(1px) scale(.97); }
.disc-fire { width: clamp(72px, 9.5vw, 92px); height: clamp(72px, 9.5vw, 92px); right: calc(20px + var(--safe-r)); bottom: calc(24px + var(--safe-b)); }
.disc-aim { width: clamp(54px, 6.5vw, 66px); height: clamp(54px, 6.5vw, 66px); right: calc(98px + var(--safe-r)); bottom: calc(48px + var(--safe-b)); }
.disc-reload { right: calc(25px + var(--safe-r)); bottom: calc(126px + var(--safe-b)); }
.disc-sprint { right: calc(92px + var(--safe-r)); bottom: calc(120px + var(--safe-b)); }
.disc-crouch { right: calc(150px + var(--safe-r)); bottom: calc(84px + var(--safe-b)); }
.disc-grenade { right: calc(178px + var(--safe-r)); bottom: calc(24px + var(--safe-b)); }
.disc-ability { right: calc(112px + var(--safe-r)); bottom: calc(200px + var(--safe-b)); width: 54px; height: 54px; }
.disc-vehicle { right: calc(24px + var(--safe-r)); bottom: calc(198px + var(--safe-b)); width: 54px; height: 54px; }
.touch-controls.is-idle .touch-disc { opacity: .34; }
.touch-controls.is-idle .stick-label { opacity: .08; }
.aim-reticle { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(237,231,219,.35); border-radius: 50%; transform: translate(-50%, -50%); display: none; pointer-events: none; }
.aim-reticle b { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; background: var(--ember); transform: translate(-50%, -50%) rotate(45deg); }
.aim-reticle.is-on { display: block; }

/* touch HUD shifts */
.hud.is-touch .ammo-panel { bottom: calc(292px + var(--safe-b)); right: calc(16px + var(--safe-r)); }
.hud.is-touch .vehicle-panel { bottom: calc(292px + var(--safe-b)); right: calc(16px + var(--safe-r)); }
.hud.is-touch .vitals { bottom: calc(26px + var(--safe-b)); }
.hud.is-touch .kill-feed { top: calc(150px + var(--safe-t)); }
.hud.is-touch .pause-btn { top: calc(10px + var(--safe-t)); right: calc(174px + var(--safe-r)); }
.hud.is-touch .sound-btn { top: calc(10px + var(--safe-t)); right: calc(214px + var(--safe-r)); }

/* ============ responsive ============ */
@media (max-width: 1120px) {
  .menu-panel { width: clamp(330px, 36vw, 470px); }
  .menu-art { left: 34%; }
  .menu-scrim { inset: 0 64% 0 0; }
}
@media (max-width: 860px) {
  .menu-ticker { width: min(560px, 86vw); }
  .ticker-copy { font-size: 9px; padding: 6px 12px 5px; letter-spacing: .14em; }
  .crew-lower, .loadout-grid, .profile-grid, .settings-grid { grid-template-columns: 1fr; }
  .objective-card { display: none; }
  .kill-feed { display: none; }
}
@media (max-width: 700px) {
  .menu-art {
    inset: 0 0 auto 0; height: 42vh; background-size: cover; background-position: 55% 46%;
    filter: saturate(1.08) contrast(1.02);
  }
  .menu-art::after {
    background:
      radial-gradient(90% 70% at 16% 34%, rgba(20,17,13,.72), rgba(20,17,13,0) 64%),
      linear-gradient(90deg, rgba(20,17,13,.42) 0%, rgba(20,17,13,0) 34%),
      linear-gradient(0deg, rgba(20,17,13,.9) 0%, rgba(20,17,13,0) 36%),
      linear-gradient(180deg, rgba(20,17,13,.35) 0%, rgba(20,17,13,0) 30%);
  }
  .menu-scrim {
    inset: 0; border-right: 0;
    background:
      linear-gradient(180deg, rgba(20,17,13,.16) 0%, rgba(20,17,13,.05) 26%, rgba(20,17,13,.38) 38%, rgba(20,17,13,.94) 45%, #14110d 50%, #14110d 100%);
  }
  .menu-ticker { display: none; }
  .menu-panel {
    width: 100%; justify-content: flex-end;
    padding: calc(16px + var(--safe-t)) 18px calc(16px + var(--safe-b));
    gap: 7px;
  }
  .wordmark { margin-top: auto; }
  .wordmark-line--1 { font-size: clamp(45px, 13vw, 78px); }
  .wordmark-line--2 { font-size: clamp(34px, 9.6vw, 58px); }
  .wordmark-line--3 { font-size: clamp(50px, 15.5vw, 92px); }
  .wordmark::after { margin-top: 10px; }
  .tagline { font-size: 9px; letter-spacing: .13em; margin-bottom: 2px; }
  .play-slab { padding-top: 10px; padding-bottom: 9px; }
  .play-slab__label { font-size: 27px; }
  .menu-row { padding: 6px 2px 5px; }
  .menu-row__name { font-size: 18px; }
  .menu-row__meta { font-size: 8px; }
  .menu-foot { padding-top: 5px; }
  .mini-lockup { font-size: 11px; }
  .menu-corner-ticks { inset: 6px; }
  .shell-head { gap: 10px; padding: 10px 12px 9px; }
  .back-btn { padding: 8px 10px 7px; font-size: 9px; letter-spacing: .12em; }
  .shell-title { font-size: 22px; }
  .shell-sub { font-size: 8px; letter-spacing: .16em; }
  .shell-stamp { font-size: 7px; padding: 5px 6px; }
  .shell-body { padding: 11px 12px calc(28px + var(--safe-b)); }
  .crew-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .char-card { min-height: 280px; }
  .char-card__art { min-height: 130px; }
  .char-card__body { padding: 9px 9px 10px; }
  .char-card__name { font-size: 15px; }
  .weapon-wall { grid-template-columns: 1fr 1fr; gap: 8px; }
  .weapon-card { padding: 9px; }
  .map-grid { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .score-strip { top: calc(6px + var(--safe-t)); padding: 5px 8px; gap: 6px; }
  .score-emblem { width: 24px; }
  .score-num { font-size: 20px; }
  .score-mid { min-width: 68px; }
  .match-clock { font-size: 13px; }
  .hud-top-left { top: calc(58px + var(--safe-t)); left: calc(8px + var(--safe-l)); }
  .minimap-card { width: 122px; padding: 3px; }
  .minimap-foot { font-size: 5px; }
  .vitals { left: calc(8px + var(--safe-l)); bottom: calc(14px + var(--safe-b)); gap: 6px; }
  .health-track { width: 9px; height: 80px; }
  .vitals-emblem { width: 20px; }
  .vitals-body { padding-bottom: 9px; }
  .vitals-name { font-size: 10px; max-width: 92px; }
  .ability-name { font-size: 6px; }
  .ability-track { width: 74px; }
  .ammo-panel { right: calc(9px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); }
  .ammo-mag { font-size: 38px; }
  .hud.is-touch .ammo-panel { bottom: calc(280px + var(--safe-b)); right: calc(12px + var(--safe-r)); }
  .hud.is-touch .vehicle-panel { bottom: calc(280px + var(--safe-b)); right: calc(12px + var(--safe-r)); }
  .pause-btn { top: calc(6px + var(--safe-t)); right: calc(10px + var(--safe-r)); width: 30px; height: 30px; }
  .sound-btn { top: calc(6px + var(--safe-t)); right: calc(46px + var(--safe-r)); width: 30px; height: 30px; }
  .hud.is-touch .pause-btn { right: calc(10px + var(--safe-r)); top: calc(92px + var(--safe-t)); }
  .hud.is-touch .sound-btn { right: calc(10px + var(--safe-r)); top: calc(126px + var(--safe-t)); }
  .disc-fire { right: calc(14px + var(--safe-r)); bottom: calc(20px + var(--safe-b)); }
  .disc-aim { right: calc(86px + var(--safe-r)); bottom: calc(44px + var(--safe-b)); }
  .disc-reload { right: calc(18px + var(--safe-r)); bottom: calc(112px + var(--safe-b)); }
  .disc-sprint { right: calc(78px + var(--safe-r)); bottom: calc(108px + var(--safe-b)); }
  .disc-crouch { right: calc(132px + var(--safe-r)); bottom: calc(72px + var(--safe-b)); }
  .disc-grenade { right: calc(152px + var(--safe-r)); bottom: calc(20px + var(--safe-b)); }
  .disc-ability { right: calc(96px + var(--safe-r)); bottom: calc(176px + var(--safe-b)); }
  .disc-vehicle { right: calc(20px + var(--safe-r)); bottom: calc(174px + var(--safe-b)); }
  .overlay-card { padding: 20px 15px; }
  .card-title { font-size: 28px; }
  .mini-lockup--pause { font-size: 17px; }
  .result-side b { font-size: 30px; }
  .result-side img { width: 34px; }
}
@media (max-height: 620px) and (min-width: 701px) {
  .menu-panel { gap: 4px; padding-top: 12px; padding-bottom: 12px; }
  .wordmark-line--1 { font-size: clamp(38px, 4.2vw, 68px); }
  .wordmark-line--2 { font-size: clamp(28px, 3.1vw, 52px); }
  .wordmark-line--3 { font-size: clamp(44px, 4.9vw, 82px); }
  .menu-row { padding-top: 4px; padding-bottom: 4px; }
  .menu-row__name { font-size: clamp(16px, 1.4vw, 21px); }
  .menu-row__meta { font-size: 8px; }
  .play-slab { padding-top: 7px; padding-bottom: 6px; }
  .play-slab__label { font-size: 26px; }
  .menu-foot { display: none; }
  .tagline { margin-bottom: 0; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .wordmark-line--1 { font-size: 38px; }
  .wordmark-line--2 { font-size: 28px; }
  .wordmark-line--3 { font-size: 44px; }
  .tagline { display: none; }
  .menu-row__meta { display: none; }
  .menu-row { padding: 4px 2px; }
  .menu-nav { gap: 0; }
  .menu-row__name { font-size: 15px; }
  .mini-lockup { display: none; }
  .menu-foot { display: none; }
  .play-slab { margin-top: 4px; }
  .play-slab__meta { display: none; }
  .hud.is-touch .ammo-panel { bottom: calc(230px + var(--safe-b)); }
  .hud.is-touch .vehicle-panel { bottom: calc(230px + var(--safe-b)); }
  .disc-ability { bottom: calc(150px + var(--safe-b)); }
  .disc-vehicle { bottom: calc(150px + var(--safe-b)); }
  .disc-crouch { bottom: calc(62px + var(--safe-b)); }
  .disc-reload { bottom: calc(100px + var(--safe-b)); }
  .disc-sprint { bottom: calc(96px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .menu-row, .play-slab, .char-card__art img, .toast { transition: none !important; }
}


/* ============ extra layout pieces ============ */
.section-head { max-width: 760px; margin-bottom: 14px; }
.section-head .kicker { margin: 0 0 5px; }
.section-head .flyer-copy { margin: 0; }
.shell-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.shell-actions .flyer-meta { color: rgba(237,231,219,.4); }

/* deploy screen */
.deploy-grid { display: grid; grid-template-columns: minmax(300px, 1.2fr) minmax(290px, .8fr); gap: 16px; align-items: start; }
.deploy-map { padding: 12px; display: flex; flex-direction: column; gap: 11px; }
.deploy-map-art { aspect-ratio: 3 / 2; height: auto; border: 1px solid rgba(237,231,219,.16); background: #cfc1a2; position: relative; overflow: hidden; }
.deploy-map-art canvas { display: block; width: 100%; height: 100%; }
.deploy-map-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.deploy-map .flyer-copy { font-size: 13px; }
.deploy-side { display: flex; flex-direction: column; gap: 11px; }
.deploy-crew { padding: 13px; }
.deploy-char { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.deploy-char img { width: 92px; height: 110px; object-fit: cover; object-position: 50% 14%; background: #d9d2c3; border: 1px solid rgba(237,231,219,.18); }
.deploy-char h3 { margin: 2px 0 3px; }
.deploy-squad { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.deploy-ride { display: flex; gap: 12px; align-items: center; padding: 11px; }
.deploy-ride img { width: 112px; height: 76px; object-fit: cover; object-position: 50% 58%; border: 1px solid rgba(237,231,219,.14); background: #d9d2c3; }
.deploy-ride .flyer-copy { font-size: 12px; margin-top: 4px; }
.deploy-button { width: 100%; min-height: 62px; font-family: var(--display); font-size: clamp(18px, 2.1vw, 28px); letter-spacing: .03em; }
.deploy-foot { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; letter-spacing: .13em; font-size: 8px; color: rgba(237,231,219,.35); text-transform: uppercase; }

/* ride prompt */
.ride-hint {
  position: absolute; left: 50%; bottom: calc(27% + var(--safe-b)); transform: translate(-50%, 10px);
  z-index: 6; padding: 9px 16px 8px; border: 1px solid rgba(237,231,219,.55);
  background: rgba(20,17,13,.82); box-shadow: 0 6px 20px rgba(0,0,0,.4);
  font-weight: 700; letter-spacing: .2em; font-size: 10px; color: var(--gold);
  opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; white-space: nowrap;
}
.ride-hint.is-on { opacity: 1; transform: translate(-50%, 0); }

/* cursor + overlay plumbing */
body.in-game #world-canvas { cursor: none; }
body.in-game.is-touch #world-canvas { cursor: default; }
.overlay, .match-intro { pointer-events: auto; }
.match-intro { pointer-events: none; }
.touch-disc { touch-action: none; }
#screen-shell { overscroll-behavior: contain; }
.shell-body { touch-action: pan-y; }

@media (max-width: 860px) {
  .deploy-grid { grid-template-columns: 1fr; }
  .deploy-map-art { height: 190px; }
}
@media (max-width: 700px) {
  .section-head { margin-bottom: 10px; }
  .deploy-button { min-height: 52px; font-size: 20px; }
  .deploy-char img { width: 76px; height: 92px; }
  .deploy-ride img { width: 92px; height: 62px; }
  .shell-actions { margin-top: 12px; gap: 8px; }
  .shell-actions .slab { flex: 1; min-width: 120px; }
  .ride-hint { bottom: calc(32% + var(--safe-b)); font-size: 8px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .deploy-map-art { height: 150px; }
  .deploy-grid { grid-template-columns: 1.1fr .9fr; }
  .deploy-ride { display: none; }
  .deploy-button { min-height: 46px; font-size: 18px; }
}


/* touch drag response */
.menu-art, .shell-bg, .overlay-card, .intro-card { transition: transform .22s ease; }
body.is-touch .pause-swipe { display: block; }
.pause-swipe { display: none; margin: 10px 0 0; text-align: center; font-weight: 600; letter-spacing: .16em; font-size: 8px; color: rgba(243,199,122,.55); text-transform: uppercase; }

/* cinematic grade: soft vignette and cold edge, never over the controls */
.hud::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(8,10,16,0) 42%, rgba(8,10,16,.28) 78%, rgba(6,8,14,.58) 100%),
    linear-gradient(180deg, rgba(120,150,220,.06), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.22));
  mix-blend-mode: multiply;
}

/* gun bench paint */
.camo-bench { margin-top: 14px; padding: 13px 14px 11px; }
.camo-bench__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.camo-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0 7px; }
.camo-choice { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--chalk-rule); background: transparent; color: rgba(237,231,219,.7); font-family: var(--cond); font-weight: 700; letter-spacing: .11em; font-size: 9px; text-transform: uppercase; padding: 6px 9px 5px; cursor: pointer; }
.camo-choice i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(237,231,219,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.camo-choice.is-on { border-color: rgba(226,84,43,.7); color: #f4b79e; background: rgba(226,84,43,.08); }

/* ==========================================================================
   TACTICAL HUD V2, controls from the reference layout
   ========================================================================== */

/* ---- top left: paper plan + feed ---- */
.hud-top-left {
  top: calc(10px + var(--safe-t));
  left: calc(12px + var(--safe-l));
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  z-index: 4; max-width: clamp(160px, 20vw, 250px);
}
.kill-ticker { position: static; transform: none; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.kill-ticker span { font-size: 8px; padding: 4px 7px 3px; }
.kill-feed { position: static; max-width: 100%; margin-top: 1px; }
.kill-feed div { font-size: 8px; }

/* ---- top right: squad board ---- */
.squad-hud {
  position: absolute; top: calc(50px + var(--safe-t)); right: calc(10px + var(--safe-r));
  width: clamp(142px, 14vw, 196px);
  background: linear-gradient(180deg, rgba(20,17,13,.92), rgba(20,17,13,.58));
  border: 1px solid var(--chalk-rule);
  border-left: 2px solid var(--ember);
  padding: 5px 7px 6px; z-index: 4;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.squad-hud__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--chalk-rule); padding-bottom: 4px; margin-bottom: 3px; }
.squad-hud__head span:first-child { font-weight: 700; letter-spacing: .2em; font-size: 7px; color: rgba(237,231,219,.5); }
.squad-hud__head span:last-child { font-weight: 700; letter-spacing: .1em; font-size: 7px; color: var(--gold); }
.squad-hud__rows { display: flex; flex-direction: column; }
.squad-row-hud { display: flex; align-items: center; gap: 5px; padding: 2px 0; min-height: 13px; }
.squad-row-hud__dot { width: 5px; height: 5px; flex: none; background: var(--ember); transform: rotate(45deg); }
.squad-row-hud__name { font-weight: 700; letter-spacing: .05em; font-size: 9px; color: rgba(237,231,219,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.squad-row-hud__bar { width: 34px; height: 3px; flex: none; background: rgba(237,231,219,.14); }
.squad-row-hud__bar b { display: block; height: 100%; width: 100%; background: var(--chalk); transition: width .2s linear; }
.squad-row-hud__tag { flex: none; font-weight: 600; font-size: 6px; letter-spacing: .1em; color: rgba(237,231,219,.34); }
.squad-row-hud.is-down { opacity: .4; }
.squad-row-hud.is-down .squad-row-hud__bar b { background: var(--ember-deep); }

/* ---- bottom deck: mission line, long health, armour, weapons ---- */
.hud-deck {
  position: absolute; left: 50%; bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  width: min(620px, 56vw);
  display: flex; flex-direction: column; gap: 4px;
  padding: 5px 9px 6px;
  background: linear-gradient(180deg, rgba(20,17,13,.9), rgba(20,17,13,.66));
  border: 1px solid var(--chalk-rule-strong);
  box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  z-index: 16; pointer-events: none;
}
.hud-deck::before, .hud-deck::after { content: ""; position: absolute; width: 8px; height: 8px; border-color: rgba(237,231,219,.4); border-style: solid; pointer-events: none; }
.hud-deck::before { left: 3px; top: 3px; border-width: 1px 0 0 1px; }
.hud-deck::after { right: 3px; bottom: 3px; border-width: 0 1px 1px 0; }
.objective-banner { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 0 4px; border-bottom: 1px solid var(--chalk-rule); text-align: center; }
.objective-kicker { font-weight: 700; letter-spacing: .22em; font-size: 6px; color: rgba(237,231,219,.42); }
.objective-main { font-family: var(--cond); font-weight: 800; letter-spacing: .07em; font-size: clamp(14px, 1.45vw, 20px); line-height: 1; color: var(--chalk); text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.55); }
.objective-sub { font-weight: 600; letter-spacing: .14em; font-size: clamp(7px, .66vw, 9px); color: rgba(243,199,122,.8); text-transform: uppercase; }
.deck-row { display: flex; align-items: stretch; gap: 8px; }
.deck-vitals { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.deck-vitals__head { display: flex; align-items: center; gap: 5px; min-width: 0; }
.vitals-emblem { width: 17px; height: auto; flex: none; }
.vitals-name { font-weight: 800; letter-spacing: .09em; font-size: 10px; color: var(--chalk); text-transform: uppercase; max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vitals-role { font-weight: 600; letter-spacing: .11em; font-size: 6px; color: rgba(243,199,122,.78); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ability-track { width: 46px; height: 3px; flex: none; background: rgba(20,17,13,.7); border: 1px solid rgba(237,231,219,.2); }
.ability-fill { height: 100%; width: 100%; background: var(--gold); transition: width .2s linear; }
.ability-fill.is-charging { background: var(--brass); }
.armor-label { margin-left: auto; font-weight: 700; letter-spacing: .1em; font-size: 6px; color: rgba(95,170,255,.85); white-space: nowrap; }
.armor-bars { display: flex; gap: 3px; height: 6px; }
.armor-bars i { flex: 1; position: relative; border: 1px solid rgba(74,158,255,.45); background: linear-gradient(90deg, #4a9eff var(--v, 0%), rgba(33,41,56,.75) var(--v, 0%)); transition: background .12s linear; }
.armor-bars i.is-on { box-shadow: inset 0 0 6px rgba(74,158,255,.55); }
.health-row { display: flex; align-items: center; gap: 6px; }
.health-track-h { position: relative; flex: 1; height: 15px; background: rgba(20,17,13,.82); border: 1px solid var(--chalk-rule-strong); overflow: hidden; }
.health-fill-h { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(180deg, #f4eee2 0%, #d9d1c1 60%, #bdb3a0 100%); transition: width .12s linear, background .18s; }
.health-fill-h.is-low { background: linear-gradient(180deg, #f3a072, #d7502f); }
.health-fill-h.is-down { background: #5c2a1c; }
.health-ticks-h { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(20,17,13,.55) calc(10% - 1px), rgba(20,17,13,.55) 10%); pointer-events: none; }
.health-num { min-width: 34px; text-align: right; font-weight: 800; font-size: 15px; line-height: 1; color: var(--chalk); font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px #000; }
.deck-weapons { flex: none; display: flex; align-items: center; gap: 3px; padding-left: 7px; border-left: 1px solid var(--chalk-rule); position: relative; }
.deck-util { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 30px; padding-right: 5px; border-right: 1px solid var(--chalk-rule); }
.deck-util b { font-weight: 800; font-size: 16px; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.deck-util span { font-weight: 600; letter-spacing: .08em; font-size: 6px; color: rgba(237,231,219,.42); }
.weapon-slot { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 0; width: 62px; padding: 2px 3px 2px; border: 1px solid rgba(237,231,219,.2); background: rgba(0,0,0,.28); transition: border-color .12s, background .12s; }
.weapon-slot.is-on { border-color: rgba(226,84,43,.8); background: rgba(226,84,43,.14); box-shadow: inset 0 0 8px rgba(226,84,43,.15); }
.slot-key { font-weight: 700; font-size: 6px; letter-spacing: .1em; color: rgba(237,231,219,.4); line-height: 1; }
.slot-icon { width: 48px; height: 16px; color: rgba(237,231,219,.6); }
.weapon-slot.is-on .slot-icon { color: #f2a482; }
.slot-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.slot-ammo { display: flex; align-items: baseline; gap: 2px; line-height: 1; }
.slot-ammo b { font-weight: 800; font-size: 15px; color: var(--chalk); font-variant-numeric: tabular-nums; }
.slot-ammo b.is-low { color: #f3a072; }
.slot-ammo i { font-weight: 600; font-size: 7px; color: rgba(237,231,219,.45); }
.deck-weapon-name { position: absolute; right: 0; top: -2px; transform: translateY(-100%); font-weight: 700; letter-spacing: .12em; font-size: 6px; color: rgba(237,231,219,.55); text-transform: uppercase; white-space: nowrap; }
.deck-weapons .reload-arc { position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px; opacity: 0; transform: rotate(-90deg); transition: opacity .12s; }
.deck-weapons .reload-arc.is-on { opacity: 1; }

/* ---- armour hit tint ---- */
.armor-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 55%, rgba(42,120,220,0) 48%, rgba(42,120,220,.45) 100%); transition: opacity .18s ease; z-index: 3; }

/* ---- auto lock ---- */
.auto-lock-btn {
  position: absolute; right: calc(8px + var(--safe-r)); top: 44%; transform: translateY(-50%);
  width: 54px; height: 70px; z-index: 21; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #241e17 0%, #12100c 100%);
  border: 1px solid rgba(185,138,75,.6); border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
  color: rgba(237,231,219,.6);
}
.auto-lock-btn__icon { position: relative; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; }
.auto-lock-btn__icon::before, .auto-lock-btn__icon::after { content: ""; position: absolute; background: currentColor; }
.auto-lock-btn__icon::before { left: 50%; top: -4px; bottom: -4px; width: 1px; transform: translateX(-50%); }
.auto-lock-btn__icon::after { top: 50%; left: -4px; right: -4px; height: 1px; transform: translateY(-50%); }
.auto-lock-btn__label { font-weight: 700; letter-spacing: .12em; font-size: 6px; line-height: 1.1; text-align: center; text-transform: uppercase; }
.auto-lock-btn__state { font-weight: 800; font-size: 8px; letter-spacing: .1em; color: rgba(237,231,219,.42); }
.auto-lock-btn.is-on { color: #f2a482; border-color: rgba(226,84,43,.8); box-shadow: 0 0 0 1px rgba(226,84,43,.25), 0 4px 12px rgba(0,0,0,.5); }
.auto-lock-btn.is-on .auto-lock-btn__state { color: #f2a482; }
.auto-lock-btn:active { transform: translateY(-50%) scale(.96); }

/* ---- lock bracket over the target ---- */
.lock-bracket { position: absolute; left: 0; top: 0; width: 48px; height: 48px; opacity: 0; transition: opacity .1s ease; pointer-events: none; z-index: 7; }
.lock-bracket.is-on { opacity: .95; }
.lock-bracket i { position: absolute; width: 11px; height: 11px; border: 1.5px solid #ffb35e; box-shadow: 0 0 4px rgba(0,0,0,.6); }
.lock-bracket i:nth-child(1) { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.lock-bracket i:nth-child(2) { right: 0; top: 0; border-width: 1.5px 1.5px 0 0; }
.lock-bracket i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1.5px 1.5px; }
.lock-bracket i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }

/* ---- settings input picker ---- */
.input-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.input-mode-grid .slab { min-height: 36px; padding: 8px 6px; font-size: 9px; letter-spacing: .12em; }

/* ---- touch discs, reference layout ---- */
.hud.is-touch .hud-deck { bottom: calc(12px + var(--safe-b)); width: min(56vw, 500px); }
.hud.is-touch .auto-lock-btn { top: 40%; }
.hud.is-touch .squad-hud { top: calc(54px + var(--safe-t)); }
.hud.is-touch .hud-top-left { top: calc(54px + var(--safe-t)); }
.hud.is-touch .pause-btn { top: calc(8px + var(--safe-t)); right: calc(8px + var(--safe-r)); width: 38px; height: 38px; }
.hud.is-touch .sound-btn { top: calc(8px + var(--safe-t)); right: calc(52px + var(--safe-r)); width: 38px; height: 38px; }

.disc-fire { width: 88px; height: 88px; right: calc(14px + var(--safe-r)); bottom: calc(14px + var(--safe-b)); }
.disc-aim { width: 54px; height: 54px; right: calc(112px + var(--safe-r)); bottom: calc(80px + var(--safe-b)); }
.disc-reload { width: 54px; height: 54px; right: calc(20px + var(--safe-r)); bottom: calc(108px + var(--safe-b)); }
.disc-grenade { width: 54px; height: 54px; right: calc(112px + var(--safe-r)); bottom: calc(16px + var(--safe-b)); }
.disc-sprint { width: 54px; height: 54px; left: calc(86px + var(--safe-l)); top: auto; right: auto; bottom: calc(92px + var(--safe-b)); }
.disc-crouch { width: 52px; height: 52px; left: calc(14px + var(--safe-l)); top: auto; right: auto; bottom: calc(108px + var(--safe-b)); }
.disc-ability { width: 50px; height: 50px; right: auto; left: calc(14px + var(--safe-l)); bottom: calc(172px + var(--safe-b)); }
.disc-vehicle { width: 50px; height: 50px; right: auto; left: calc(84px + var(--safe-l)); bottom: calc(168px + var(--safe-b)); }
.disc-jump { width: 50px; height: 50px; right: calc(176px + var(--safe-r)); bottom: calc(24px + var(--safe-b)); }
.disc-switch { width: 50px; height: 50px; right: calc(176px + var(--safe-r)); bottom: calc(88px + var(--safe-b)); }

.disc-drawn {
  background: radial-gradient(circle at 40% 32%, #2a2723 0%, #171512 68%, #0e0c0a 100%);
  border: 1px solid rgba(185,138,75,.55);
  border-radius: 50% !important;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 0 rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
}
.glyph { display: block; position: relative; color: rgba(237,231,219,.78); }
.glyph--jump { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 16px solid rgba(237,231,219,.82); }
.glyph--jump::after { content: ""; position: absolute; left: -8px; top: 19px; width: 16px; height: 3px; background: rgba(237,231,219,.82); }
.glyph--switch { width: 24px; height: 18px; }
.glyph--switch::before, .glyph--switch::after { content: ""; position: absolute; left: 0; width: 18px; height: 3px; background: rgba(237,231,219,.82); }
.glyph--switch::before { top: 3px; box-shadow: 3px 10px 0 rgba(237,231,219,.55); }
.glyph--switch::after { top: 0; left: 15px; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid rgba(237,231,219,.82); }

/* ---- narrow / portrait: deck above the thumb band ---- */
@media (max-width: 820px), (orientation: portrait) {
  .hud.is-touch .hud-deck { bottom: calc(228px + var(--safe-b)); width: min(94vw, 440px); }
  .score-strip { top: calc(6px + var(--safe-t)); gap: 5px; padding: 5px 7px; }
  .score-emblem { width: 22px; }
  .score-num { font-size: 20px; }
  .score-mid { min-width: 62px; padding: 0 4px; }
  .score-team { font-size: 6px; }
  .match-clock { font-size: 13px; }
  .hud-top-left { top: calc(54px + var(--safe-t)); left: calc(8px + var(--safe-l)); max-width: 132px; }
  .minimap-card { width: 118px; padding: 3px; }
  .minimap-foot { font-size: 5px; }
  .squad-hud { top: calc(54px + var(--safe-t)); right: calc(8px + var(--safe-r)); width: 132px; padding: 4px 5px 5px; }
  .squad-hud__name { font-size: 8px; }
  .squad-row-hud__bar { width: 24px; }
  .squad-row-hud__tag { display: none; }
  .kill-feed { display: flex; font-size: 7px; max-width: 150px; }
  .kill-feed div { font-size: 7px; }
  .kill-ticker { display: flex; }
  .kill-ticker span { font-size: 7px; padding: 3px 5px 2px; }
  .hud-deck { width: min(95vw, 430px); padding: 4px 7px 5px; }
  .objective-main { font-size: 13px; }
  .health-num { font-size: 14px; min-width: 30px; }
  .weapon-slot { width: 56px; }
  .slot-icon { width: 42px; height: 14px; }
  .slot-ammo b { font-size: 14px; }
  .deck-vitals__head { gap: 4px; }
  .vitals-role { display: none; }
  .ability-track { width: 34px; }
  .armor-label { font-size: 5px; }
  .auto-lock-btn { width: 48px; height: 62px; }
}

/* ---- short landscape phones: keep the deck between the thumbs ---- */
@media (orientation: landscape) and (max-height: 560px) {
  .hud.is-touch .hud-deck { bottom: calc(10px + var(--safe-b)); width: min(52vw, 460px); }
  .hud.is-touch .hud-top-left { top: calc(8px + var(--safe-t)); left: calc(8px + var(--safe-l)); }
  .hud.is-touch .squad-hud { top: calc(8px + var(--safe-t)); right: calc(8px + var(--safe-r)); }
  .hud.is-touch .pause-btn { top: calc(8px + var(--safe-t)); right: calc(158px + var(--safe-r)); }
  .hud.is-touch .sound-btn { top: calc(8px + var(--safe-t)); right: calc(198px + var(--safe-r)); }
  .minimap-card { width: 104px; }
  .squad-hud { width: 124px; }
  .disc-fire { width: 76px; height: 76px; right: calc(10px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); }
  .disc-grenade { width: 48px; height: 48px; right: calc(94px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); }
  .disc-aim { width: 48px; height: 48px; right: calc(94px + var(--safe-r)); bottom: calc(66px + var(--safe-b)); }
  .disc-reload { width: 48px; height: 48px; right: calc(14px + var(--safe-r)); bottom: calc(93px + var(--safe-b)); }
  .disc-jump { width: 44px; height: 44px; right: calc(150px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); }
  .disc-switch { width: 44px; height: 44px; right: calc(150px + var(--safe-r)); bottom: calc(60px + var(--safe-b)); }
  .disc-ability { width: 44px; height: 44px; left: calc(10px + var(--safe-l)); bottom: calc(150px + var(--safe-b)); }
  .disc-vehicle { width: 44px; height: 44px; left: calc(60px + var(--safe-l)); bottom: calc(144px + var(--safe-b)); }
  .disc-sprint { width: 48px; height: 48px; left: calc(76px + var(--safe-l)); bottom: calc(70px + var(--safe-b)); }
  .disc-crouch { width: 46px; height: 46px; left: calc(10px + var(--safe-l)); bottom: calc(86px + var(--safe-b)); }
  .auto-lock-btn { width: 44px; height: 56px; top: 46%; }
  .health-track-h { height: 13px; }
  .objective-banner { padding-bottom: 2px; }
  .objective-kicker { display: none; }
}

/* drawn line icons for the discs the enamel sheet does not cover */
.disc-drawn svg { width: 26px; height: 26px; fill: none; stroke: rgba(237,231,219,.85); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.disc-drawn.is-held svg { stroke: rgba(255,235,205,.95); }

/* the three body-armour plates stay visible even when empty */
.armor-bars i { background: linear-gradient(90deg, #4a9eff var(--v, 0%), #232d3d var(--v, 0%)); box-shadow: inset 0 0 0 1px rgba(10,14,20,.4); }
.armor-bars i:not(.is-on) { background: repeating-linear-gradient(115deg, rgba(74,158,255,.16) 0 3px, rgba(20,24,32,.86) 3px 7px); }

/* ---- very narrow phones: smaller discs, tighter right cluster ---- */
@media (max-width: 380px) {
  .hud.is-touch .hud-deck { bottom: calc(214px + var(--safe-b)); width: 96vw; }
  .disc-fire { width: 80px; height: 80px; right: calc(10px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); }
  .disc-grenade { width: 46px; height: 46px; right: calc(96px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); }
  .disc-aim { width: 46px; height: 46px; right: calc(96px + var(--safe-r)); bottom: calc(62px + var(--safe-b)); }
  .disc-reload { width: 46px; height: 46px; right: calc(12px + var(--safe-r)); bottom: calc(94px + var(--safe-b)); }
  .disc-jump { width: 44px; height: 44px; right: calc(148px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); }
  .disc-switch { width: 44px; height: 44px; right: calc(148px + var(--safe-r)); bottom: calc(58px + var(--safe-b)); }
  .disc-ability { width: 44px; height: 44px; left: calc(8px + var(--safe-l)); bottom: calc(160px + var(--safe-b)); }
  .disc-vehicle { width: 44px; height: 44px; left: calc(62px + var(--safe-l)); bottom: calc(156px + var(--safe-b)); }
  .disc-sprint { width: 46px; height: 46px; left: calc(72px + var(--safe-l)); bottom: calc(82px + var(--safe-b)); }
  .disc-crouch { width: 44px; height: 44px; left: calc(8px + var(--safe-l)); bottom: calc(96px + var(--safe-b)); }
  .health-num { font-size: 13px; min-width: 26px; }
  .weapon-slot { width: 52px; }
  .slot-icon { width: 38px; height: 13px; }
  .slot-ammo b { font-size: 13px; }
  .armor-label { display: none; }
  .objective-main { font-size: 12px; }
}

@media (max-width: 380px) {
  .score-team { display: none; }
  .score-emblem { width: 20px; }
  .score-num { font-size: 18px; }
  .score-mid { min-width: 54px; padding: 0 2px; }
}

/* the ride readout sits under the score strip, or over the deck on a phone */
.vehicle-panel { top: calc(56px + var(--safe-t)); bottom: auto; left: 50%; right: auto; transform: translateX(-50%); flex-direction: row; align-items: center; gap: 8px; padding: 6px 12px; background: rgba(20,17,13,.82); border: 1px solid var(--chalk-rule-strong); z-index: 17; }
.vehicle-panel .vehicle-name { font-size: 8px; }
.vehicle-speed b { font-size: 22px; }
.vehicle-health { width: 90px; }
.vehicle-hint { display: none; }
@media (max-width: 820px), (orientation: portrait) {
  .hud.is-touch .vehicle-panel { top: auto; bottom: calc(322px + var(--safe-b)); flex-direction: column; gap: 2px; padding: 6px 10px; }
  .hud.is-touch .vehicle-panel .vehicle-hint { display: block; }
}
