:root {
  --ink: #0B0E12;
  --ink-2: #171E26;
  --amber: #E8871E;
  --amber-hi: #FFB45C;
  --yellow: #FFD166;
  --cyan: #7FD6E8;
  --zone: #17384A;
  --bone: #EFE9DD;
  --muted: #969A9E;
  --line: rgba(232, 135, 30, .42);
  --line-soft: rgba(232, 135, 30, .26);
  --plate: rgba(11, 14, 18, .78);
  --display: 'Staatliches', 'Arial Narrow', sans-serif;
  --num: 'Chakra Petch', ui-monospace, monospace;
  --text: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: var(--ink); color: var(--bone);
  font-family: var(--text);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
img { display: block; }

#stage { position: fixed; inset: 0; background: var(--ink); }
#stage canvas { display: block; width: 100%; height: 100%; }

/* ---------- chamfered plate ---------- */
.plate {
  --cut: 9px;
  position: relative;
  background: var(--line);
  padding: 1px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.plate__in {
  height: 100%;
  background: var(--plate);
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px));
  display: flex; align-items: center;
}

.eyebrow {
  font-family: var(--text);
  font-size: 9px; line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot { color: var(--amber); }

/* ---------- wordmark ---------- */
.lockup { text-align: center; }
.lockup__top {
  font-family: var(--display);
  font-weight: 400;
  line-height: .82;
  letter-spacing: .035em;
  color: var(--bone);
  text-transform: uppercase;
}
.lockup__rule {
  height: 1px; background: var(--amber);
  margin: 10px auto 8px;
  position: relative;
  opacity: .85;
}
.lockup__rule i {
  position: absolute; left: 0; top: -4px;
  width: 1px; height: 9px; background: var(--amber);
  transform: rotate(45deg); transform-origin: bottom center;
}
.lockup__sub {
  font-family: var(--text);
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  line-height: 1;
}
.lockup--entry {
  width: fit-content; margin: 0 auto;
  padding: 14px 58px 6px;
  background: radial-gradient(ellipse at 50% 48%, rgba(8, 10, 13, .66) 0%, rgba(8, 10, 13, .34) 58%, transparent 78%);
}
.lockup--entry .lockup__top { font-size: clamp(46px, 8.4vw, 104px); }
.lockup--entry .lockup__sub { font-size: clamp(14px, 1.7vw, 22px); letter-spacing: .46em; padding-left: .46em; color: #FFC172; }
.lockup--entry .lockup__rule { width: clamp(230px, 34vw, 420px); margin-top: 14px; margin-bottom: 11px; }
.lockup--boot .lockup__top { font-size: clamp(34px, 5vw, 64px); }
.lockup--boot .lockup__sub { font-size: 13px; letter-spacing: .42em; padding-left: .42em; }
.lockup--boot .lockup__rule { width: 220px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; }

/* ---------- loading ---------- */
.loading {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(232, 135, 30, .11), transparent 55%),
    #080A0D;
  z-index: 60;
}
.loading__in { width: min(440px, 86vw); text-align: center; }
.loading__label {
  margin-top: 34px;
  font-family: var(--num); font-size: 11px; letter-spacing: .28em;
  color: var(--amber);
}
.loading__bar {
  margin: 12px 0 9px; height: 2px; background: rgba(232, 135, 30, .18);
  position: relative; overflow: hidden;
}
.loading__bar i {
  position: absolute; inset: 0; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s linear;
}
.loading__pct { font-family: var(--num); font-size: 11px; color: var(--muted); letter-spacing: .12em; }
.loading__err { margin-top: 18px; font-family: var(--num); font-size: 12px; color: var(--yellow); letter-spacing: .08em; }
.linkbtn { color: var(--amber); text-decoration: underline; font-family: var(--num); font-size: 12px; }

/* ---------- entry ---------- */
.entry {
  z-index: 30;
  overflow: hidden;
  display: flex; flex-direction: column;
  pointer-events: auto;
  animation: fadein .55s ease-out both;
}
.entry__chart {
  position: absolute; inset: -6%;
  width: 112%; height: 112%;
  object-fit: cover;
  opacity: .045;
  mix-blend-mode: normal;
  filter: saturate(.8) brightness(.78) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 76% 72% at 48% 58%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 76% 72% at 48% 58%, #000 0%, transparent 78%);
  pointer-events: none;
}
.entry__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(11, 14, 18, .02) 0%, rgba(11, 14, 18, .34) 52%, rgba(11, 14, 18, .82) 100%),
    linear-gradient(to bottom, rgba(11, 14, 18, .55), transparent 24%, transparent 62%, rgba(11, 14, 18, .92));
  pointer-events: none;
}
.entry__top {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(16px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) 0 calc(18px + env(safe-area-inset-left));
}
.entry__plate .plate__in { padding: 10px 15px; display: block; }
.entry__island {
  margin-top: 5px;
  font-family: var(--num); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; color: var(--bone);
}
.entry__island span { color: var(--amber); }
.entry__who { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.entry__sound { width: 32px; height: 32px; }
.entry__name {
  margin-top: 4px;
  font-family: var(--num); font-size: 15px; font-weight: 600;
  letter-spacing: .1em; color: var(--amber);
}
.entry__body {
  position: relative; z-index: 2;
  margin: auto;
  width: min(760px, 94vw);
  padding-bottom: 24px;
  display: flex; flex-direction: column; align-items: center;
}
.entry__tag {
  margin-top: 24px;
  font-family: var(--num); font-size: 10px; font-weight: 500;
  letter-spacing: .3em; color: rgba(239, 233, 221, .82); text-transform: uppercase;
  text-align: center;
  padding: 5px 14px; background: rgba(8, 10, 13, .34);
}
.modes {
  display: flex; gap: 10px; margin-top: clamp(18px, 4vh, 40px);
  justify-content: center; flex-wrap: wrap;
}
.mode {
  position: relative;
  width: clamp(92px, 14vw, 152px); height: clamp(66px, 9.4vh, 88px);
  background: rgba(11, 14, 18, .52);
  border: 1px solid var(--line-soft);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: background .18s ease, border-color .18s ease;
}
.mode__name {
  font-family: var(--display); font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: .16em; color: var(--muted);
}
.mode__meta {
  margin-top: 6px; font-family: var(--num); font-size: 8px;
  letter-spacing: .14em; color: var(--amber); opacity: .8;
}
.mode.is-live {
  background: rgba(232, 135, 30, .13);
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(232, 135, 30, .2);
}
.mode.is-live .mode__name { color: var(--amber); }
.mode.is-locked .mode__name { opacity: .55; }
.mode__tag {
  position: absolute; top: 5px; right: 5px;
  font-family: var(--num); font-size: 7px; font-weight: 700;
  letter-spacing: .1em; color: var(--yellow);
  border: 1px solid rgba(255, 209, 102, .45);
  padding: 2px 4px;
}
.mode.is-locked:active { background: rgba(255, 209, 102, .07); }

.start {
  position: relative; overflow: hidden;
  margin-top: clamp(18px, 4vh, 38px);
  width: min(520px, 88vw); height: clamp(52px, 7.4vh, 64px);
  background: rgba(11, 14, 18, .72);
  border: 1px solid var(--amber);
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.start__fill {
  position: absolute; inset: 0;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .38s cubic-bezier(.22, .68, .18, 1);
}
.start__text {
  position: relative; z-index: 2;
  font-family: var(--display);
  font-size: clamp(17px, 2.2vw, 24px);
  letter-spacing: .17em;
  color: var(--amber);
  transition: color .2s ease;
}
.start__arrow {
  position: relative; z-index: 2;
  font-size: 17px; color: var(--amber); transition: color .2s ease;
}
.start.is-arming .start__fill { transform: scaleX(1); }
.start.is-arming .start__text, .start.is-arming .start__arrow { color: var(--ink); }
.start:disabled { cursor: default; }
.entry__hint {
  margin-top: 15px;
  font-family: var(--num); font-size: 9px; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase; text-align: center;
  min-height: 12px;
}
.entry__hint b { color: var(--bone); font-weight: 500; }
.entry__foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 14px;
  padding: 0 calc(18px + env(safe-area-inset-right)) calc(13px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
  font-family: var(--num); font-size: 8px; letter-spacing: .14em;
  color: rgba(150, 154, 158, .7); text-transform: uppercase;
}
.entry__foot b { color: var(--amber); font-weight: 500; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; inset: 0; z-index: 10;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease;
}
.hud.is-live { opacity: 1; visibility: visible; }

.hud__top {
  position: absolute; inset: 0 0 auto 0;
  padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 0 calc(14px + env(safe-area-inset-left));
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
}
.brandplate { flex: 0 0 auto; padding-top: 2px; }
.brandplate__top {
  font-family: var(--display); font-size: 20px; line-height: .9;
  letter-spacing: .05em; color: var(--bone); white-space: nowrap;
}
.brandplate__rule { width: 104px; height: 1px; background: var(--amber); margin: 4px 0 3px; opacity: .9; }
.brandplate__sub {
  font-family: var(--text); font-size: 8px; font-weight: 600;
  letter-spacing: .34em; color: var(--amber); padding-left: 1px;
}

.compass {
  position: absolute; left: 50%; top: calc(9px + env(safe-area-inset-top));
  transform: translateX(-50%);
  width: min(44vw, 540px); height: 34px;
  overflow: hidden;
}
.compass canvas { width: 100%; height: 100%; display: block; }
.compass__mark {
  position: absolute; left: 50%; top: 0;
  width: 0; height: 0; transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--amber);
}
.status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.status__row { display: flex; gap: 5px; }
.stat { --cut: 7px; height: 34px; min-width: 62px; }
.stat .plate__in { padding: 0 9px 0 6px; gap: 6px; justify-content: flex-start; }
.stat img { width: 19px; height: 19px; object-fit: contain; opacity: .95; }
.stat__value {
  font-family: var(--num); font-size: 19px; font-weight: 600;
  line-height: 1; color: var(--bone); letter-spacing: .02em;
}
.stat__value--time { font-size: 16px; color: var(--yellow); }
.stat--clock { min-width: 82px; }

.minimap { --cut: 11px; width: clamp(112px, 20vh, 168px); aspect-ratio: 1; }
.minimap .plate__in { position: relative; display: block; overflow: hidden; }
.minimap canvas { width: 100%; height: 100%; display: block; }
.minimap__n {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  font-family: var(--num); font-size: 8px; font-weight: 700;
  color: var(--amber); letter-spacing: .1em;
}
.minimap__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 56%, rgba(11, 14, 18, .4) 100%);
}

/* top-left small controls */
.hud__corner {
  position: absolute; left: calc(16px + env(safe-area-inset-left));
  top: calc(64px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  pointer-events: none;
}
.iconbtn {
  pointer-events: auto;
  width: 30px; height: 30px;
  border: 1px solid var(--line-soft);
  background: rgba(11, 14, 18, .55);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--num); font-size: 13px; font-weight: 600;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.iconbtn:active { background: rgba(232, 135, 30, .16); }
.iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn .ico-off { display: none; }
.iconbtn.is-off .ico-on { display: none; }
.iconbtn.is-off .ico-off { display: block; color: var(--muted); }
.hud__readout {
  pointer-events: none;
  display: flex; align-items: baseline; gap: 4px;
  padding-left: 3px;
  font-family: var(--num); font-size: 8px; letter-spacing: .12em; color: var(--muted);
  opacity: .9;
}
.hud__readout b { font-size: 13px; color: var(--bone); font-weight: 600; letter-spacing: .02em; min-width: 30px; }

/* vitals, bottom left */
.hud__left { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.vitals {
  position: absolute; left: calc(16px + env(safe-area-inset-left));
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: clamp(176px, 27vw, 242px);
  display: flex; flex-direction: column; gap: 7px;
}
.vital { display: flex; align-items: center; gap: 7px; }
.vital img { width: 19px; height: 19px; object-fit: contain; opacity: .95; }
.vital__icon {
  width: 19px; height: 19px; display: flex; align-items: center; justify-content: center;
  font-family: var(--num); font-size: 8px; font-weight: 700;
  color: var(--amber); border: 1px solid var(--line-soft);
}
.vital__body { flex: 1; min-width: 0; }
.vital__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--num); font-size: 7px; letter-spacing: .16em;
  color: var(--muted); margin-bottom: 3px;
}
.vital__head b { font-size: 11px; font-weight: 600; color: var(--bone); letter-spacing: .02em; }
.bar {
  position: relative; height: 8px;
  background: rgba(11, 14, 18, .7);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #C46B12, var(--amber) 40%, var(--amber-hi));
  transition: width .12s linear;
}
.bar--stamina i { background: linear-gradient(90deg, #8E5A15, var(--amber) 55%, #FFD166); }
.bar u {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(11, 14, 18, .85);
}
.bar u:nth-of-type(1) { left: 20%; }
.bar u:nth-of-type(2) { left: 40%; }
.bar u:nth-of-type(3) { left: 60%; }
.bar u:nth-of-type(4) { left: 80%; }

/* loadout, bottom centre */
.loadout {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: clamp(200px, 34vw, 300px);
}
.loadout__tag {
  font-family: var(--num); font-size: 7px; letter-spacing: .24em; color: var(--muted);
}
.loadout__slots { display: flex; gap: 5px; width: 100%; }
.slot { --cut: 7px; flex: 1; height: 42px; }
.slot .plate__in {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 8px; gap: 2px;
}
.slot span {
  font-family: var(--num); font-size: 6px; letter-spacing: .14em; color: var(--muted);
}
.slot b {
  font-family: var(--num); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; color: rgba(239, 233, 221, .3);
}
.loadout__note {
  font-family: var(--num); font-size: 7px; letter-spacing: .14em;
  color: var(--muted); white-space: nowrap;
}
.loadout__note span { color: var(--amber); }

/* joystick + sprint */
.stick {
  position: absolute;
  left: calc(20px + env(safe-area-inset-left));
  bottom: calc(74px + env(safe-area-inset-bottom));
  width: clamp(104px, 17vh, 138px); aspect-ratio: 1;
  pointer-events: none;
  opacity: .42;
  transition: opacity .18s ease;
}
.stick.is-active { opacity: 1; }
.stick__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(232, 135, 30, .62);
  background: radial-gradient(circle at 50% 50%, rgba(11, 14, 18, .28) 0%, rgba(11, 14, 18, .55) 62%, rgba(11, 14, 18, .1) 100%);
}
.stick__ring::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%;
  border: 1px dashed rgba(232, 135, 30, .24);
}
.stick__ticks {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    linear-gradient(var(--amber), var(--amber)) 50% 2px / 1px 7px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 50% calc(100% - 2px) / 1px 7px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 2px 50% / 7px 1px no-repeat,
    linear-gradient(var(--amber), var(--amber)) calc(100% - 2px) 50% / 7px 1px no-repeat;
  opacity: .55;
}
.stick__knob {
  position: absolute; left: 50%; top: 50%;
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(11, 14, 18, .82);
  border: 1px solid var(--amber);
}
.stick.is-active .stick__knob { background: rgba(232, 135, 30, .18); }
.stick__label {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  font-family: var(--num); font-size: 7px; letter-spacing: .22em; color: var(--amber); opacity: .8;
}

.ctl { pointer-events: auto; }
.ctl--sprint {
  position: absolute;
  left: calc(24px + env(safe-area-inset-left));
  bottom: calc(74px + clamp(104px, 17vh, 138px) + 14px + env(safe-area-inset-bottom));
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 14, 18, .62);
  color: var(--amber);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.ctl--sprint svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ctl--sprint span {
  font-family: var(--num); font-size: 6px; letter-spacing: .12em; color: var(--muted);
}
.ctl__led {
  position: absolute; top: 5px; right: 7px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(232, 135, 30, .25);
}
.ctl--sprint.is-on { background: rgba(232, 135, 30, .16); border-color: var(--amber); }
.ctl--sprint.is-on .ctl__led { background: var(--amber); }
.ctl--sprint.is-on span { color: var(--amber); }
.ctl--sprint.is-empty { opacity: .5; }

.hud__right { position: absolute; right: 0; bottom: 0; }
.actions { position: absolute; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 190px; height: 190px; }
.ctl--jump {
  position: absolute; right: 0; bottom: 0;
  width: clamp(76px, 13vh, 100px); aspect-ratio: 1;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
  transition: transform .09s ease;
}
.ctl--jump img { width: 100%; height: 100%; }
.ctl--jump:active { transform: scale(.95); }
.ctl--small {
  position: absolute;
  width: clamp(40px, 6.4vh, 54px); aspect-ratio: 1;
  opacity: .8;
}
.ctl--small img { width: 100%; height: 100%; object-fit: contain; }
.ctl--small:active { opacity: 1; transform: scale(.94); }
#zoomBtn { right: 6px; bottom: calc(clamp(76px, 13vh, 100px) + 12px); }
#recenterBtn { right: calc(clamp(40px, 6.4vh, 54px) + 18px); bottom: calc(clamp(76px, 13vh, 100px) + 34px); }

.toast {
  position: absolute; left: 50%; top: calc(84px + env(safe-area-inset-top));
  transform: translateX(-50%);
  padding: 8px 14px;
  background: rgba(11, 14, 18, .9);
  border: 1px solid var(--yellow);
  font-family: var(--num); font-size: 9px; letter-spacing: .16em;
  color: var(--yellow); text-transform: uppercase;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  white-space: nowrap;
  animation: toastin .18s ease-out;
}
.hintstrip {
  position: absolute; left: 50%; top: calc(52px + env(safe-area-inset-top));
  transform: translateX(-50%);
  font-family: var(--num); font-size: 8px; letter-spacing: .16em;
  color: rgba(239, 233, 221, .66); text-transform: uppercase;
  padding: 6px 12px; background: rgba(11, 14, 18, .5);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  opacity: 0; transition: opacity .4s ease; white-space: nowrap;
  max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
}
.hintstrip.is-on { opacity: 1; }

/* ---------- panel ---------- */
.panel { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.panel__scrim { position: absolute; inset: 0; background: rgba(4, 6, 8, .72); }
.panel__card { --cut: 14px; width: min(740px, 92vw); max-height: 88vh; }
.panel__card .plate__in { display: block; padding: clamp(16px, 2.4vw, 26px); overflow: auto; max-height: 88vh; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel__title {
  font-family: var(--display); font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: .07em; color: var(--bone); line-height: 1; margin-top: 4px;
}
.panel__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 34px); margin-top: 20px; }
.panel__label {
  margin: 16px 0 8px; font-family: var(--num); font-size: 8px;
  letter-spacing: .22em; color: var(--muted); text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: baseline;
}
.panel__label:first-child { margin-top: 0; }
.panel__label b { color: var(--amber); font-weight: 600; font-size: 10px; letter-spacing: .06em; }
.keylist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.keylist li {
  font-family: var(--text); font-size: 12.5px; line-height: 1.25;
  color: rgba(239, 233, 221, .72);
  padding-left: 10px; border-left: 1px solid rgba(232, 135, 30, .22);
}
.keylist b { font-family: var(--num); font-size: 9px; letter-spacing: .1em; color: var(--bone); font-weight: 600; }
.range { width: 100%; accent-color: var(--amber); height: 22px; }
.check {
  display: flex; align-items: center; gap: 8px; margin: 9px 0;
  font-family: var(--num); font-size: 9px; letter-spacing: .1em; color: rgba(239, 233, 221, .8);
}
.check input { accent-color: var(--amber); width: 14px; height: 14px; }
.seg { display: flex; gap: 4px; }
.seg button {
  flex: 1; height: 32px; border: 1px solid var(--line-soft);
  font-family: var(--num); font-size: 8px; letter-spacing: .14em; color: var(--muted);
}
.seg button.is-on { border-color: var(--amber); color: var(--amber); background: rgba(232, 135, 30, .12); }
.hairbtn {
  margin-top: 20px; width: 100%; height: 40px;
  border: 1px solid var(--line);
  font-family: var(--num); font-size: 9px; letter-spacing: .2em; color: var(--amber);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.hairbtn:active { background: rgba(232, 135, 30, .14); }
.panel__fine {
  margin-top: 14px; font-family: var(--num); font-size: 7.5px;
  letter-spacing: .12em; color: rgba(150, 154, 158, .6); line-height: 1.5;
}

/* ---------------- field pack ---------------- */
.pack-panel { z-index: 52; }
.pack-panel .panel__card { width: min(480px, 92vw); }
.pack__cap {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-family: var(--num);
}
.pack__cap span { font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.pack__cap b { font-size: 12px; color: var(--amber); font-weight: 600; }
.pack__cap .pack__capbar { flex: 1; height: 4px; background: rgba(232,135,30,.15); position: relative; overflow: hidden; }
.pack__capbar i { position: absolute; inset: 0; background: var(--amber); transform-origin: left; transition: transform .25s ease; }
.pack__list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.pack__row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-soft); background: rgba(11,14,18,.55);
  padding: 7px 10px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.pack__row img { width: 22px; height: 22px; object-fit: contain; opacity: .92; }
.pack__row .pack__glyph {
  width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center;
  font-family: var(--num); font-size: 8px; color: var(--amber);
  border: 1px solid var(--line-soft);
}
.pack__name { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pack__name span { font-family: var(--num); font-size: 9px; letter-spacing: .1em; color: var(--bone); }
.pack__name em { font-style: normal; font-family: var(--num); font-size: 7px; letter-spacing: .08em; color: var(--muted); }
.pack__count { font-family: var(--num); font-size: 15px; color: var(--amber); min-width: 26px; text-align: right; }
.pack__act {
  font-family: var(--num); font-size: 8px; letter-spacing: .1em; color: var(--bone);
  border: 1px solid var(--line-soft); padding: 4px 8px; background: rgba(232,135,30,.05);
}
.pack__act:active { background: rgba(232,135,30,.2); }
.pack__act.is-use { color: var(--amber); border-color: var(--line); }
.pack__empty {
  padding: 18px 0; text-align: center; font-family: var(--num);
  font-size: 9px; letter-spacing: .14em; color: var(--muted);
}
.pack__foot {
  margin-top: 12px; font-family: var(--num); font-size: 7px; line-height: 1.6;
  letter-spacing: .1em; color: rgba(150,154,158,.65);
}

.rotatenote {
  position: fixed; inset: 0; z-index: 55;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 13, .92);
  font-family: var(--num); color: var(--amber);
  font-size: 12px; letter-spacing: .18em; text-align: center; padding: 20px;
}

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }


/* scope view */
.scope-overlay {
  position: absolute; inset: 0; display: none; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0 27vmin, rgba(4, 6, 8, .94) calc(27vmin + 2px) 100%);
}
.scope-overlay__ring {
  position: absolute; left: 50%; top: 50%; width: 54vmin; height: 54vmin;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(232, 135, 30, .38);
  box-shadow: inset 0 0 0 1px rgba(232, 135, 30, .12);
}
.hud.is-scoped .scope-overlay { display: block; }
.hud.is-scoped .crosshair { opacity: 1; }

/* end state */
.hud.is-live.is-ended { opacity: .16; }
.endscreen__note { text-transform: uppercase; }


/* decorations must never swallow the look drag */
.hintstrip, .toast, .crosshair, .hitmarker, .combat-feed,
.zone-warning, .damage-vignette, .zone-tint, .scope-overlay,
.hurtdir, .hud__readout, .drop-panel, .pickup,
.weaponrow, .slot { pointer-events: none; }
.drop-panel__deploy, .pickup button, .use, .loadout .use { pointer-events: auto; }

/* ---------------- portrait warning (landscape required on phones) ---------------- */
.rotatenote {
  position: fixed; inset: 0; z-index: 70;
  display: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(232,135,30,.10), transparent 58%),
    #080A0D;
  padding: 22px;
}
.is-portrait-blocked .rotatenote { display: flex; }
.rotatenote__in { width: min(420px, 90vw); margin: auto; }
.rotatenote__in .plate__in {
  display: block; padding: 30px 24px 26px; text-align: center;
}
.rotatenote__icon {
  width: 58px; height: 58px; margin: 0 auto 18px;
  fill: none; stroke: var(--amber); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .95;
}
.rotatenote__kicker {
  font-family: var(--num); font-size: 8px; letter-spacing: .24em;
  color: var(--muted); text-transform: uppercase;
}
.rotatenote__kicker span { color: var(--amber); }
.rotatenote__title {
  margin-top: 12px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 9vw, 46px); line-height: .92;
  letter-spacing: .04em; color: var(--bone); text-transform: uppercase;
}
.rotatenote__rule { width: 74px; height: 1px; background: var(--amber); margin: 16px auto 14px; }
.rotatenote__sub {
  font-family: var(--num); font-size: 10px; font-weight: 600;
  letter-spacing: .22em; color: var(--amber); text-transform: uppercase;
}
.rotatenote__hint {
  margin-top: 18px; font-family: var(--num); font-size: 7.5px;
  line-height: 1.6; letter-spacing: .13em; color: rgba(150,154,158,.8);
  text-transform: uppercase;
}


/* ================= combat HUD additions ================= */
.stat .plate__in { min-width: 68px; }
.stat img { width: 17px; height: 17px; }
.stat__value { font-size: 18px; }

.zonebar { --cut: 7px; width: clamp(112px, 20vh, 168px); }
.zonebar .plate__in {
  display: flex; align-items: center; gap: 6px; padding: 4px 8px;
  border-left: 2px solid rgba(255, 209, 102, .55);
}
.zonebar img { width: 15px; height: 15px; object-fit: contain; }
.zonebar__text { display: flex; flex-direction: column; line-height: 1; }
.zonebar__text span {
  font-family: var(--num); font-size: 6px; letter-spacing: .14em; color: var(--muted);
}
.zonebar__text b {
  font-family: var(--num); font-size: 13px; font-weight: 600; color: var(--yellow);
  letter-spacing: .04em; margin-top: 2px;
}
.zonebar__tag {
  margin-left: auto; font-family: var(--num); font-size: 5.5px;
  letter-spacing: .12em; color: rgba(255, 209, 102, .7); text-align: right;
}
.zonebar.is-danger { border-color: var(--yellow); }
.zonebar.is-danger .plate__in { background: rgba(60, 40, 8, .62); }

/* vitals */
.vitals { gap: 5px; }
.vital img { width: 17px; height: 17px; }
.vital__head { margin-bottom: 2px; }
.vital__head b { font-size: 10px; }
.bar { height: 7px; }
.bar--health > i { background: linear-gradient(90deg, #b55320, var(--amber) 55%, var(--amber-hi)); }
.bar--armor > i { background: linear-gradient(90deg, #6a7c86, #aab7bd 55%, #d4d9d6); }
.bar--stamina > i { background: linear-gradient(90deg, #8a641c, #d8a33c 55%, var(--yellow)); }
.vital__icon { color: var(--muted); }

/* weapon + consumables */
.loadout {
  width: clamp(236px, 35vw, 350px); gap: 5px;
}
.weaponrow { --cut: 9px; width: 100%; height: 52px; }
.weaponrow .plate__in {
  display: flex; align-items: center; gap: 9px; padding: 0 10px; position: relative;
  border-left: 2px solid var(--amber);
}
.weaponrow__icon { width: 38px; height: 24px; object-fit: contain; }
.weaponrow__meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.weaponrow__meta > span {
  font-family: var(--num); font-size: 7px; letter-spacing: .12em; color: var(--amber);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.weaponrow__ammo {
  display: flex; align-items: baseline; gap: 4px; margin-top: 2px;
}
.weaponrow__ammo b { font-family: var(--num); font-size: 24px; line-height: 1; color: var(--bone); }
.weaponrow__ammo i { font-style: normal; color: var(--amber); font-family: var(--num); }
.weaponrow__ammo span { font-family: var(--num); font-size: 11px; color: var(--muted); }
.weaponrow__reload {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
}
.weaponrow.is-reloading .weaponrow__reload { animation: reloadbar 1.7s linear forwards; }
.weaponrow.is-empty .weaponrow__ammo b { color: var(--yellow); }
@keyframes reloadbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.consumables { display: flex; gap: 5px; width: 100%; align-items: stretch; }
.use { --cut: 6px; flex: 0 0 auto; width: 72px; height: 34px; pointer-events: auto; }
.use .plate__in { padding: 0 6px; gap: 5px; display: flex; align-items: center; }
.use img { width: 18px; height: 18px; object-fit: contain; opacity: .9; }
.use div { display: flex; flex-direction: column; line-height: 1; }
.use b { font-family: var(--num); font-size: 12px; color: var(--bone); font-weight: 600; }
.use span { font-family: var(--num); font-size: 5.5px; letter-spacing: .12em; color: var(--muted); margin-top: 2px; }
.use:active { background: rgba(232, 135, 30, .2); }
.use.is-empty { opacity: .42; }
.use.is-ready { border-color: var(--amber); }
.lootstrip {
  flex: 1; min-width: 40px; height: 34px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.lootstrip i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--amber); transform: translateX(-10px); opacity: 0;
}
.lootstrip.is-hit i { animation: lootFlash .45s ease-out; }
@keyframes lootFlash { 0% { transform: translateX(-10px); opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }

/* right action cluster */
.hud__right { position: absolute; right: 0; bottom: 0; }
.actions { position: absolute; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 186px; height: 186px; }
.ctl--fire {
  position: absolute; right: 0; bottom: 0;
  width: clamp(88px, 14.5vh, 108px); aspect-ratio: 1;
  transition: transform .08s ease;
}
.ctl--fire img { width: 100%; height: 100%; }
.ctl--fire:active { transform: scale(.94); }
.ctl--small {
  position: absolute;
  width: clamp(40px, 6.2vh, 52px); aspect-ratio: 1;
  opacity: .82;
}
.ctl--small img { width: 100%; height: 100%; object-fit: contain; }
.ctl--small:active { opacity: 1; transform: scale(.94); }
.ctl--aim { right: 8px; bottom: calc(clamp(88px, 14.5vh, 108px) + 10px); }
.ctl--scope { right: 56px; bottom: calc(clamp(88px, 14.5vh, 108px) + 36px); }
.ctl--reload { right: 104px; bottom: calc(clamp(88px, 14.5vh, 108px) + 44px); }
.ctl--jump { right: 128px; bottom: 12px; }
.ctl--grenade { right: 148px; bottom: calc(clamp(88px, 14.5vh, 108px) + 16px); }
.ctl__badge {
  position: absolute; right: -2px; bottom: -2px;
  min-width: 15px; height: 15px; padding: 0 3px;
  display: grid; place-items: center;
  font-family: var(--num); font-size: 8px; font-weight: 600;
  color: #10130E; background: var(--amber);
  border-radius: 50%;
}
.ctl--grenade.is-empty { opacity: 0.35; }
.ctl--grenade.is-empty .ctl__badge { background: var(--muted); }
.ctl--aim.is-on, .ctl--scope.is-on { opacity: 1; filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
.ctl--aim.is-on img, .ctl--scope.is-on img { filter: brightness(1.5) saturate(1.2); }

/* crosshair */
.crosshair {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  --spread: 8px; opacity: 0; transition: opacity .25s ease;
}
.hud.is-live.is-playing .crosshair { opacity: 1; }
.crosshair span { position: absolute; background: var(--amber); }
.crosshair__t, .crosshair__b { width: 1.5px; height: 7px; left: -0.75px; }
.crosshair__l, .crosshair__r { height: 1.5px; width: 7px; top: -0.75px; }
.crosshair__t { top: calc(-1 * var(--spread) - 7px); }
.crosshair__b { top: var(--spread); }
.crosshair__l { left: calc(-1 * var(--spread) - 7px); }
.crosshair__r { left: var(--spread); }
.crosshair__dot {
  width: 2.5px; height: 2.5px; left: -1.25px; top: -1.25px;
  border-radius: 50%; opacity: .9;
}
.crosshair.is-aim { --spread: 4px; }
.hud.is-drop .crosshair { display: none; }

.hitmarker {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  opacity: 0; pointer-events: none;
}
.hitmarker i { position: absolute; width: 9px; height: 1.5px; background: var(--amber); }
.hitmarker i:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hitmarker i:nth-child(2) { transform: rotate(-45deg) translate(7px, -7px); }
.hitmarker i:nth-child(3) { transform: rotate(45deg) translate(-7px, -7px); }
.hitmarker i:nth-child(4) { transform: rotate(-45deg) translate(-7px, 7px); }
.hitmarker.is-on { animation: hitpop .22s ease-out; }
@keyframes hitpop { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.15); } }

/* feeds, warnings, flashes */
.combat-feed {
  position: absolute; right: calc(16px + env(safe-area-inset-right));
  top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  pointer-events: none; max-width: 40vw;
}
.combat-feed div {
  font-family: var(--num); font-size: 8px; letter-spacing: .12em;
  color: var(--bone); background: rgba(11,14,18,.6);
  border-right: 2px solid var(--amber); padding: 3px 7px; white-space: nowrap;
  animation: feedin .2s ease-out;
}
.combat-feed div b { color: var(--amber); font-weight: 600; }
@keyframes feedin { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }

.zone-warning {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; background: rgba(11,14,18,.82);
  border: 1px solid rgba(255, 209, 102, .55);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  animation: zonePulse 1s steps(2) infinite;
}
.zone-warning__tag {
  font-family: var(--num); font-size: 7px; font-weight: 700; letter-spacing: .16em;
  color: var(--ink); background: var(--yellow); padding: 2px 4px;
}
.zone-warning__text {
  font-family: var(--num); font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--yellow);
  white-space: nowrap;
}
.zone-warning__dmg { font-family: var(--num); font-size: 8px; letter-spacing: .1em; color: rgba(255,209,102,.7); }
@keyframes zonePulse { 0%, 49% { opacity: .58; } 50%, 100% { opacity: 1; } }

.damage-vignette {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 46%, rgba(232,135,30,.22) 100%);
  transition: opacity .12s ease;
}
.zone-tint {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(23,56,74,.08) 30%, rgba(23,56,74,.42) 100%);
  transition: opacity .4s ease;
}
.hud.is-outside .zone-tint { opacity: 1; }
.hurtdir {
  position: absolute; left: 50%; top: 50%; width: 130px; height: 130px;
  margin: -65px 0 0 -65px; border-radius: 50%; pointer-events: none; opacity: 0;
  border-top: 3px solid var(--yellow); transform-origin: 50% 50%;
}
.hurtdir.is-on { animation: hurtPing .6s ease-out; }
@keyframes hurtPing { 0% { opacity: 1; transform: scale(.8) rotate(var(--dir, 0deg)); } 100% { opacity: 0; transform: scale(1.1) rotate(var(--dir, 0deg)); } }

.pickup {
  position: absolute; left: 50%; bottom: calc(112px + env(safe-area-inset-bottom));
  transform: translateX(-50%); pointer-events: none;
}
.pickup button {
  pointer-events: auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 13px; background: rgba(11,14,18,.86);
  border: 1px solid var(--amber);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-family: var(--num); font-size: 8px; letter-spacing: .10em; color: var(--yellow);
}
.pickup b { font-size: 10px; color: var(--amber); letter-spacing: .12em; }
.pickup em {
  font-style: normal; font-size: 7px; color: #0B0E18; background: var(--amber);
  padding: 1px 4px; border-radius: 1px;
}

/* ---------------- vehicles ---------------- */
.use__pack {
  width: 18px; height: 18px; flex: 0 0 auto; position: relative;
  border: 1px solid var(--amber); opacity: .9;
  clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
}
.use__pack::after {
  content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px;
  transform: translateY(-50%); background: var(--amber);
}
.use__pack::before {
  content: ''; position: absolute; left: 2px; right: 2px; top: 4px; bottom: 4px;
  border-top: 1px solid var(--amber); border-bottom: 1px solid var(--amber);
}
.vehicle-prompt {
  position: absolute; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom));
  transform: translateX(-50%); pointer-events: none; z-index: 4;
}
.vehicle-prompt button {
  pointer-events: auto; display: flex; align-items: center; gap: 8px;
  padding: 8px 13px; background: rgba(11,14,18,.88);
  border: 1px solid var(--amber);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-family: var(--num); font-size: 8px; letter-spacing: .10em; color: var(--yellow);
}
.vehicle-prompt b { font-size: 10px; color: var(--amber); letter-spacing: .12em; }
.vehicle-prompt em {
  font-style: normal; font-size: 7px; color: #0B0E18; background: var(--amber);
  padding: 1px 4px; border-radius: 1px;
}
.vehicle-hud {
  position: absolute;
  left: 50%; bottom: 14px; transform: translateX(-50%);
  pointer-events: none; z-index: 4;
}
.vehicle-hud__plate { --cut: 9px; }
.vehicle-hud .plate__in {
  gap: 16px; padding: 6px 12px; min-width: 280px; justify-content: space-between;
}
.vehicle-hud__meta { display: flex; flex-direction: column; gap: 4px; min-width: 92px; }
.vehicle-hud__meta span {
  font-family: var(--num); font-size: 7px; letter-spacing: .14em; color: var(--muted);
  white-space: nowrap;
}
.vehicle-hud__bar {
  height: 5px; background: rgba(232,135,30,.16); position: relative; overflow: hidden;
}
.vehicle-hud__bar i {
  position: absolute; inset: 0; background: var(--amber); transform-origin: left;
  transition: transform .2s linear;
}
.vehicle-hud__speed { display: flex; align-items: baseline; gap: 4px; }
.vehicle-hud__speed b {
  font-family: var(--num); font-size: 24px; line-height: 1; color: var(--bone); font-weight: 600;
  min-width: 44px; text-align: right;
}
.vehicle-hud__speed span { font-family: var(--num); font-size: 8px; color: var(--muted); letter-spacing: .12em; }
.vehicle-hud__exit {
  pointer-events: auto; padding: 6px 12px; border: 1px solid var(--line);
  font-family: var(--num); font-size: 8px; letter-spacing: .14em; color: var(--amber);
  background: rgba(232,135,30,.08);
}
.hud.is-driving .loadout, .hud.is-driving .crosshair, .hud.is-driving .actions,
.hud.is-driving .pickup, .hud.is-driving .vehicle-prompt { display: none !important; }
.hud.is-driving .vehicle-hud { display: block; }

.drop-panel {
  position: absolute; left: 50%; top: calc(58px + env(safe-area-inset-top));
  transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 4px;
  min-width: 280px; text-align: center;
  pointer-events: none;
  padding: 13px 24px 11px;
  background: rgba(11, 14, 18, .62);
  border: 1px solid var(--line-soft);
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
}
.drop-panel__tag {
  font-family: var(--num); font-size: 8px; letter-spacing: .3em; color: var(--amber);
  background: rgba(11,14,18,.7); padding: 4px 12px; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.drop-panel__alt { display: flex; align-items: baseline; gap: 4px; }
.drop-panel__alt b { font-family: var(--num); font-size: 34px; font-weight: 600; color: var(--bone); line-height: 1; }
.drop-panel__alt span { font-family: var(--num); font-size: 11px; color: var(--muted); }
.drop-panel__hint { font-family: var(--num); font-size: 8px; letter-spacing: .12em; color: var(--muted); }
.drop-panel__deploy {
  pointer-events: auto; margin-top: 7px; height: 40px; min-width: 190px;
  border: 1px solid var(--amber); color: var(--amber); background: rgba(232,135,30,.13);
  font-family: var(--display); font-size: 17px; letter-spacing: .12em;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.drop-panel__auto { font-family: var(--num); font-size: 7px; letter-spacing: .14em; color: var(--yellow); }
.drop-panel__auto b { font-weight: 600; }

.hud.is-drop .combat-feed, .hud.is-drop .zone-warning, .hud.is-drop .pickup,
.hud.is-drop .hintstrip { display: none; }
.hud.is-drop .drop-panel { display: flex; }
.hud.is-drop .minimap { transform: scale(1.42); transform-origin: top right; }

.hud.is-plane .drop-panel__deploy { display: block; }
.hud.is-plane .drop-panel__alt { display: none; }
.hud.is-freefall .drop-panel__deploy { display: none; }
.hud.is-chute .drop-panel__deploy { display: none; }
.hud.is-freefall .drop-panel__auto, .hud.is-chute .drop-panel__auto { display: none; }

/* end screen */
.endscreen {
  position: fixed; inset: 0; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 13, .52);
  animation: fadein .5s ease-out both;
}
.endscreen__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(8,10,13,.02) 0%, rgba(8,10,13,.30) 55%, rgba(8,10,13,.78) 100%),
    linear-gradient(to bottom, rgba(8,10,13,.22), transparent 30%, rgba(8,10,13,.46));
  pointer-events: none;
}
.endscreen__rank {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  font-family: var(--num); font-size: clamp(120px, 26vh, 240px); font-weight: 700;
  color: rgba(150, 154, 158, .08); letter-spacing: .02em; line-height: 1;
  pointer-events: none; white-space: nowrap;
}
.endscreen__in {
  position: relative; z-index: 2; width: min(690px, 92vw);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.endscreen__crest {
  width: clamp(86px, 15vh, 128px); height: auto; object-fit: contain;
  filter: drop-shadow(0 0 0 transparent);
  opacity: 0; transform: translateY(6px) scale(.92);
  animation: crestIn .6s cubic-bezier(.2,.8,.2,1) .1s forwards;
}
.endscreen.is-defeat .endscreen__crest { filter: grayscale(.9) brightness(.75); }
@keyframes crestIn { to { opacity: 1; transform: none; } }
.endscreen__verdict {
  margin-top: 12px; font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 8vh, 74px); line-height: .88; letter-spacing: .08em;
  color: var(--amber); text-transform: uppercase;
}
.endscreen.is-defeat .endscreen__verdict { color: #C5C7C4; }
.endscreen__rule { width: clamp(190px, 30vw, 330px); height: 1px; background: var(--amber); margin: 10px 0 8px; opacity: .75; }
.endscreen__sub { font-family: var(--num); font-size: 8px; letter-spacing: .28em; color: var(--muted); text-transform: uppercase; }
.endscreen__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 22px);
  width: 100%; margin-top: clamp(14px, 3vh, 26px);
}
.endscreen__stats div { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.endscreen__stats span { font-family: var(--num); font-size: 7px; letter-spacing: .14em; color: var(--muted); }
.endscreen__stats b { font-family: var(--num); font-size: clamp(20px, 3.4vh, 30px); font-weight: 600; color: var(--amber); line-height: 1; }
.endscreen.is-defeat .endscreen__stats b { color: #B9BDBA; }
.endscreen__reward {
  margin-top: clamp(12px, 2.8vh, 22px); width: min(330px, 74vw);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.endscreen__reward span { font-family: var(--num); font-size: 7px; letter-spacing: .18em; color: var(--muted); }
.endscreen__reward b { font-family: var(--num); font-size: 16px; color: var(--bone); letter-spacing: .04em; }
.endscreen__reward b span { font-size: 19px; color: var(--amber); }
.endscreen__xpbar { width: 100%; height: 2px; background: rgba(232,135,30,.15); position: relative; overflow: hidden; }
.endscreen__xpbar i { position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.endscreen__actions { display: flex; gap: 8px; margin-top: clamp(12px, 2.6vh, 20px); width: min(420px, 84vw); }
.endscreen__actions .hairbtn { margin-top: 0; }
.hairbtn--quiet { color: var(--muted); border-color: var(--line-soft); }
.endscreen__note { margin-top: 9px; font-family: var(--num); font-size: 7px; letter-spacing: .14em; color: rgba(150,154,158,.7); }

/* short landscape refinements for combat */
@media (orientation: landscape) and (max-height: 520px) {
  .stat { min-width: 56px; height: 30px; }
  .stat img { width: 15px; height: 15px; }
  .stat__value { font-size: 15px; }
  .stat__value--time { font-size: 12px; }
  .stat--clock { min-width: 70px; }
  .zonebar { width: clamp(96px, 17vh, 128px); }
  .zonebar .plate__in { padding: 3px 6px; }
  .zonebar__text b { font-size: 11px; }
  .zonebar__tag { font-size: 5px; }
  .minimap { width: clamp(92px, 17vh, 128px); }
  .vitals { width: clamp(150px, 30vw, 196px); gap: 4px; }
  .vital img { width: 15px; height: 15px; }
  .vital__head { font-size: 6px; }
  .vital__head b { font-size: 9px; }
  .bar { height: 6px; }
  .loadout { width: clamp(210px, 31vw, 300px); }
  .weaponrow { height: 46px; }
  .weaponrow__ammo b { font-size: 20px; }
  .use { width: 64px; height: 31px; }
  .actions { width: 168px; height: 168px; }
  .ctl--fire { width: clamp(80px, 13.5vh, 100px); }
  .ctl--small { width: clamp(36px, 5.8vh, 48px); }
  .ctl--aim { bottom: calc(clamp(80px, 13.5vh, 100px) + 8px); }
  .ctl--scope { bottom: calc(clamp(80px, 13.5vh, 100px) + 30px); right: 52px; }
  .ctl--reload { bottom: calc(clamp(80px, 13.5vh, 100px) + 37px); right: 96px; }
  .ctl--jump { right: 118px; bottom: 7px; }
  .endscreen__stats { margin-top: 10px; }
  .endscreen__crest { width: clamp(64px, 12vh, 96px); }
  .endscreen__verdict { font-size: clamp(34px, 7vh, 58px); margin-top: 7px; }
  .endscreen__reward { margin-top: 9px; }
  .endscreen__actions { margin-top: 9px; }
  .endscreen__note { display: none; }
  .drop-panel { top: calc(52px + env(safe-area-inset-top)); }
  .drop-panel__alt b { font-size: 28px; }
  .drop-panel__deploy { height: 36px; }
}

/* ---------------- portrait / narrow ---------------- */
@media (orientation: portrait) {
  .brandplate__top { font-size: 17px; }
  .brandplate__rule { width: 86px; }
  .compass { width: min(38vw, 160px); opacity: .9; }
  .stat { min-width: 54px; height: 30px; }
  .stat img { width: 16px; height: 16px; }
  .stat__value { font-size: 16px; }
  .stat__value--time { font-size: 13px; }
  .stat--clock { min-width: 70px; }
  .minimap { width: clamp(96px, 15vh, 128px); }
  .hud__corner { top: calc(58px + env(safe-area-inset-top)); }
  .vitals { width: clamp(142px, 40vw, 186px); }
  .stick { width: clamp(92px, 14vh, 118px); bottom: calc(66px + env(safe-area-inset-bottom)); }
  .ctl--sprint { left: calc(24px + env(safe-area-inset-left)); bottom: calc(66px + clamp(92px, 14vh, 118px) + 12px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .actions { width: 160px; height: 160px; right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .loadout { width: clamp(160px, 46vw, 220px); bottom: calc(12px + env(safe-area-inset-bottom)); }
  .slot { height: 36px; }
  .loadout__note { display: none; }
  .hintstrip { font-size: 7px; letter-spacing: .1em; }
  .lockup--entry .lockup__top { font-size: clamp(38px, 12vw, 64px); }
  .lockup--entry .lockup__sub { font-size: 11px; letter-spacing: .34em; padding-left: .34em; }
  .lockup--entry .lockup__rule { width: min(68vw, 280px); }
  .entry__body { width: 96vw; }
  .modes { gap: 6px; }
  .mode { width: clamp(88px, 27vw, 116px); height: 70px; }
  .start { width: min(88vw, 380px); }
  .entry__foot { flex-direction: column; gap: 3px; align-items: center; text-align: center; font-size: 7px; }
  .entry__plate { max-width: 58vw; }
  .entry__island { font-size: 9px; }
  .panel__cols { grid-template-columns: 1fr; gap: 8px; }
  .panel__card { width: 94vw; }
  .panel__card .plate__in { padding: 16px; }
}

/* short landscape: keep the entry, including DEPLOY, inside the screen */
@media (orientation: landscape) and (max-height: 520px) {
  .entry__top { padding-top: calc(8px + env(safe-area-inset-top)); }
  .entry__plate .plate__in { padding: 6px 11px; }
  .entry__island { font-size: 9px; margin-top: 2px; }
  .entry__top .eyebrow { font-size: 7px; }
  .entry__name { font-size: 12px; margin-top: 2px; }
  .entry__sound { width: 28px; height: 28px; }
  .lockup--entry { padding: 3px 34px 0; }
  .lockup--entry .lockup__top { font-size: clamp(30px, 5.6vw, 54px); }
  .lockup--entry .lockup__sub { font-size: 9px; letter-spacing: .3em; padding-left: .3em; }
  .lockup--entry .lockup__rule { width: clamp(160px, 24vw, 280px); margin-top: 6px; margin-bottom: 5px; }
  .entry__tag { margin-top: 8px; font-size: 7.5px; padding: 3px 10px; }
  .entry__body { padding-bottom: 4px; }
  .modes { margin-top: 8px; gap: 6px; }
  .mode { width: clamp(84px, 12vw, 120px); height: 58px; }
  .mode__name { font-size: 16px; }
  .mode__meta { font-size: 6.5px; margin-top: 3px; }
  .mode__tag { font-size: 6px; top: 3px; right: 3px; }
  .start { margin-top: 8px; height: 42px; width: min(430px, 72vw); }
  .start__text { font-size: 14px; letter-spacing: .12em; }
  .entry__hint { margin-top: 7px; font-size: 7px; }
  .entry__foot { font-size: 6.5px; padding-bottom: calc(5px + env(safe-area-inset-bottom)); }
}

@media (orientation: landscape) and (max-height: 420px) {
  .hud__corner { top: calc(56px + env(safe-area-inset-top)); }
  .vitals { bottom: calc(10px + env(safe-area-inset-bottom)); gap: 5px; }
  .stick { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .ctl--sprint { bottom: calc(64px + clamp(104px, 17vh, 138px) + 12px + env(safe-area-inset-bottom)); }
  .loadout { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .actions { bottom: calc(10px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .entry, .hud, .hintstrip, .start__fill, .stick { transition: none !important; animation: none !important; }
}
