:root {
  color-scheme: dark;
  --bg: #101417;
  --panel: #181e21;
  --line: #30373a;
  --ink: #f3f5ef;
  --muted: #9aa7aa;
  --orange: #ff7438;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ui:
    Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px var(--ui);
  -webkit-tap-highlight-color: transparent;
}
body.play {
  overflow: hidden;
  overscroll-behavior: none;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
button:active:not(:disabled) {
  filter: brightness(0.89);
}
button svg,
i svg {
  width: 1.14em;
  height: 1.14em;
  display: block;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  flex: none;
}
button {
  touch-action: manipulation;
}
.topbar {
  background: #101517;
  border-bottom: 1px solid #2c3234;
}
.navbody,
main {
  max-width: 1700px;
  margin: auto;
}
.navbody {
  height: 76px;
  padding: 0 clamp(18px, 3.6vw, 66px);
  display: flex;
  align-items: center;
  gap: clamp(26px, 6vw, 110px);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0;
  text-align: left;
  white-space: nowrap;
}
.brand img {
  width: 44px;
}
.brand span {
  font-size: 20px;
  letter-spacing: -1.3px;
  font-weight: 850;
  font-style: italic;
  line-height: 0.95;
}
.brand b {
  color: #e3e5e0;
}
.brand small {
  font: 9px var(--ui);
  letter-spacing: 3.6px;
  display: block;
  color: #b7c2c0;
  margin-top: 7px;
}
.navbody nav {
  align-self: stretch;
  display: flex;
  gap: clamp(16px, 2.3vw, 42px);
}
nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 0 2px;
}
nav button.chosen {
  color: var(--ink);
}
nav button.chosen:after {
  content: "";
  position: absolute;
  bottom: 0;
  background: var(--orange);
  height: 3px;
  inset-inline: 1px;
}
nav button.chosen i {
  color: var(--orange);
}
.top-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 12px;
}
.iconbtn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #c5cdce;
  border: 1px solid transparent;
  border-radius: 2px;
}
.iconbtn:hover {
  background: #ffffff10;
}
.profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-left: 19px;
  border-left: 1px solid var(--line);
  font-weight: 650;
  font-size: 13px;
}
.profile small {
  display: block;
  color: #9ea6a4;
  font: 9px var(--mono);
  letter-spacing: 1.4px;
  margin-top: 4px;
}
.profileicon {
  width: 34px;
  height: 34px;
  background: #2b3537;
  display: grid;
  place-items: center;
  border: 1px solid #4a5656;
  color: #d2dbd7;
}
.profileicon svg {
  width: 19px;
  height: 19px;
}
main {
  padding: clamp(16px, 2vw, 32px) clamp(18px, 3.6vw, 66px) 0;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 310px;
  height: clamp(315px, 47vh, 590px);
  background: #243031 url("assets/ui/relay.webp") center 6% / cover no-repeat;
  overflow: hidden;
  border: 1px solid #42494a;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #0d151beb 0%,
      #10191bb8 20%,
      #10191b30 49%,
      transparent 67%
    ),
    linear-gradient(0deg, #0a0f1585, transparent 28%);
  z-index: -1;
}
.herotext {
  height: 100%;
  padding: 24px clamp(25px, 4.1vw, 70px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.eyebrow,
.micro,
.sectiontitle > small,
.page-title > small,
.arm-label small {
  font: 600 11px var(--mono);
  letter-spacing: 2.1px;
}
.eyebrow {
  color: #ff9b68;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.orangebar {
  width: 24px;
  height: 3px;
  background: var(--orange);
}
.hero h1 {
  font-size: clamp(54px, 6.2vw, 102px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 2px 15px #10121430;
}
.hero-sub {
  font-size: clamp(14px, 1.08vw, 18px);
  color: #dae0de;
  letter-spacing: 0.04em;
  margin: 16px 0 26px;
}
.deploy {
  background: var(--orange);
  font-weight: 760;
  min-height: 47px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #171b1b;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 9px),
    calc(100% - 9px) 100%,
    0 100%
  );
  transition: background 0.18s;
}
.deploy:hover {
  background: #ff9162;
}
.deploy svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.hero-meta {
  position: absolute;
  bottom: 18px;
  right: 23px;
  font: 600 12px var(--ui);
  color: #e0e5df;
  display: flex;
  align-items: center;
  gap: 7px;
  text-shadow: 0 1px 8px #000;
}
.hero-meta svg {
  color: #ff9859;
}
.lobby-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(205px, 0.98fr);
  gap: 22px;
}
.sectiontitle {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 24px 0 13px;
}
.sectiontitle h2 {
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sectiontitle h2 > span {
  width: 4px;
  height: 16px;
  background: var(--orange);
  transform: skew(-12deg);
}
.sectiontitle > small,
.page-title > small {
  color: #839295;
  letter-spacing: 1.8px;
  font-size: 10px;
}
.modegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.mode,
.kit {
  height: clamp(149px, 23vh, 235px);
  position: relative;
  overflow: hidden;
  border: 1px solid #3a4142;
  text-align: left;
  isolation: isolate;
}
.mode {
  padding: 16px 17px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  background-color: #222a2c;
  background-size: cover;
  background-position: center 54%;
  transition:
    border-color 0.2s,
    filter 0.2s;
}
.mode:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0a0f13fc, #0a101ab9 27%, #10151810 75%);
  z-index: -1;
}
.mode:hover,
.kit:hover {
  border-color: #a89d84;
}
.mode.selected {
  border: 2px solid var(--orange);
  padding: 15px 16px;
}
.mode .check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 21px;
  height: 20px;
  display: none;
  background: var(--orange);
  color: #151a1c;
  align-items: center;
  justify-content: center;
}
.mode.selected .check {
  display: flex;
}
.mode .modeicon {
  width: 29px;
  height: 28px;
  margin-bottom: 8px;
  color: #f2f2e9;
}
.modeicon svg {
  width: 26px;
  height: 26px;
}
.mode b {
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: 0.015em;
}
.mode small,
.kit-name small {
  font: 10px var(--mono);
  letter-spacing: 1.3px;
  color: #a5b2b2;
  margin-top: 5px;
}
.kit {
  width: 100%;
  padding: 13px 17px;
  background:
    radial-gradient(ellipse at 60% 38%, #30383a80, transparent 63%),
    repeating-linear-gradient(125deg, transparent 0 8px, #76888808 9px 10px),
    #1a2023;
}
.kit-top {
  position: absolute;
  left: 16px;
  right: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9ba9a9;
}
.kit-top .micro {
  font-size: 9px;
}
.kit-top span:last-child {
  display: flex;
  gap: 4px;
  font-size: 11px;
}
.kit img {
  width: 92%;
  height: 67%;
  position: absolute;
  inset: 13% 4% auto;
  object-fit: contain;
  filter: drop-shadow(1px 7px 5px #0009);
}
.kit-name {
  position: absolute;
  bottom: 15px;
  left: 16px;
}
.kit-name b {
  display: block;
  font-size: 17px;
}
.kit-name small {
  display: block;
  letter-spacing: 0.8px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #93a1a2;
  font-size: 12px;
  margin-top: 22px;
  border-top: 1px solid #293133;
  padding: 13px 0 15px;
}
footer button,
footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.statusdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8cc2a0;
}
footer button:hover {
  color: var(--ink);
}
.page-title {
  margin: 16px 0 24px;
}
.page-title h1 {
  font-size: 38px;
  margin: 6px 0 0;
}
.arm-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
.arm-render,
.arm-panel,
.recordbox {
  border: 1px solid var(--line);
  background: var(--panel);
}
.arm-render {
  min-height: 345px;
  position: relative;
  overflow: hidden;
  touch-action: none;
  background: radial-gradient(ellipse, #394244, #181e21 76%);
}
.arm-render > img,
.arm-render > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.arm-render > img {
  padding: 10%;
}
.arm-render canvas {
  cursor: grab;
}
.arm-label,
.orbit-tip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.arm-label {
  left: 22px;
  top: 18px;
}
.arm-label h2 {
  margin: 5px 0;
  font-size: 26px;
}
.arm-label small,
.orbit-tip,
.arm-panel p {
  color: #acb7b7;
}
.orbit-tip {
  bottom: 16px;
  right: 17px;
  display: flex;
  gap: 6px;
  font-size: 12px;
}
.arm-panel {
  padding: 24px;
}
.arm-panel h2,
.arm-panel h3 {
  margin: 0 0 10px;
}
.arm-panel h3 {
  font-size: 15px;
  margin: 18px 0 9px;
}
.arm-panel p {
  font-size: 14px;
  line-height: 1.6;
}
#muzzle-options:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
}
#muzzle-options span {
  margin-right: 4px;
  color: #b8c3c3;
  font-size: 13px;
}
#muzzle-options button {
  min-height: 32px;
  padding: 5px 12px;
  color: #c6d0d0;
  border: 1px solid var(--line);
  background: #172126;
}
#muzzle-options button[aria-pressed="true"] {
  color: #ffe2bb;
  border-color: var(--orange);
}
.statrow {
  display: grid;
  grid-template-columns: 42px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: #bcc5c4;
  font-size: 13px;
}
.statrow span:nth-child(2) {
  height: 3px;
  background: #343d3f;
}
.statrow i {
  display: block;
  height: 3px;
  background: #9caaa9;
}
.statrow b {
  text-align: right;
  font: 12px var(--mono);
}
#detailzoom:focus-visible {
  outline: 2px solid #c1f0f3;
  outline-offset: 2px;
}
#detailzoom {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 1;
  border: 1px solid #75868985;
  background: #141e22ce;
  color: #e0ece9;
  font-size: 13px;
  padding: 7px 12px;
}
#detailzoom[aria-pressed="true"] {
  border-color: #dfad79;
}
#weapons {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}
.weapon {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 7px 12px;
  text-align: left;
}
.weapon.on {
  border-color: var(--orange);
}
.weapon img {
  width: 100%;
  height: 60px;
  object-fit: contain;
}
.weapon b {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}
.recordbox {
  padding: 22px;
}
.recordbox h2 {
  font-size: 20px;
  margin-top: 0;
}
.recordsums {
  display: flex;
  gap: 30px;
  margin-bottom: 24px;
}
.recordsums b {
  font: 700 28px var(--mono);
  display: block;
}
.recordsums small {
  color: var(--muted);
}
.resultrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}
.resultrow small,
.empty {
  color: var(--muted);
}
dialog {
  width: min(440px, calc(100% - 28px));
  max-height: 90dvh;
  background: #1b2225;
  border: 1px solid #4b595b;
  border-top: 3px solid var(--orange);
  padding: 20px 24px 26px;
  color: var(--ink);
  box-shadow: 0 20px 100px #0009;
}
dialog::backdrop {
  background: #070d11bd;
  backdrop-filter: blur(5px);
}
.dialogtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #adbab9;
}
.dialogtop .iconbtn {
  height: 28px;
  width: 28px;
}
dialog h2 {
  font-size: 28px;
  margin: 12px 0 18px;
}
dialog p {
  color: #bbc5c6;
  line-height: 1.65;
  font-size: 15px;
}
dialog label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}
input,
select {
  accent-color: var(--orange);
}
select,
.secondary {
  color: var(--ink);
  border: 1px solid #4b585b;
  background: #252e31;
  padding: 8px 12px;
}
.secondary:hover {
  background: #344045;
}
.dialogactions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.helpkeys {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 9px;
  font-size: 14px;
}
.helpkeys dt {
  color: #bcc6c7;
}
.helpkeys dd {
  margin: 0;
}
.sectionlink {
  display: block;
  color: #ffac80;
  text-align: left;
  margin: 16px 0 0;
  padding: 0;
}
#toast {
  position: fixed;
  z-index: 20;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #263032f5;
  padding: 10px 18px;
  border: 1px solid #536165;
  box-shadow: 0 4px 20px #0006;
  display: none;
  font-size: 14px;
  max-width: 90%;
  text-align: center;
}
.resultnums {
  display: flex;
  gap: 20px;
  border-block: 1px solid var(--line);
  padding: 12px 0;
}
.resultnums b {
  font: 700 23px var(--mono);
}
.resultnums small {
  display: block;
  font-size: 12px;
  color: #b0bdbc;
}
[hidden] {
  display: none !important;
}
#game {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: #10191e;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#viewport,
#viewport canvas,
#hud,
#damage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#viewport canvas {
  display: block;
}
#hud {
  pointer-events: none;
  text-shadow: 0 2px 6px #000;
}
#hud button {
  pointer-events: auto;
}
#damage {
  pointer-events: none;
  background: radial-gradient(ellipse, transparent 35%, #ca2e2360);
  opacity: 0;
}
.hud-map,
.hud-topright,
.vitals,
.munition,
.scoreline,
#cross,
#hitmark,
#focusmsg,
#feed,
#objective,
#targetmarkers,
.marker {
  position: absolute;
}
.hud-map {
  top: max(14px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  text-align: center;
}
.hud-map canvas {
  width: 99px;
  height: 99px;
  border: 1px solid #9db8b76e;
  background: #0b191dbb;
}
.hud-map small {
  display: block;
  font-size: 11px;
  letter-spacing: 1.2px;
}
.scoreline {
  top: max(13px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  background: #152024df;
  border-bottom: 1px solid #d6dac078;
}
.scoreline > b {
  font: 700 26px var(--mono);
  padding: 6px 15px;
  color: #a4e2e7;
  border-left: 3px solid #67c6cc;
}
.scoreline > b:last-child {
  color: #ffab80;
  border: 0;
  border-right: 3px solid #ff8344;
}
.scoreline > span {
  text-align: center;
  min-width: 72px;
}
.scoreline strong {
  display: block;
  font: 600 17px var(--mono);
}
.scoreline small {
  font-size: 10px;
  color: #c3c9c4;
}
.hud-topright {
  right: max(12px, env(safe-area-inset-right));
  top: max(11px, env(safe-area-inset-top));
  display: flex;
  gap: 4px;
}
.hud-topright button {
  background: #101b1ec9;
  color: white;
  border: 1px solid #76878466;
}
#cross,
#hitmark {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#cross {
  width: calc(10px + var(--gap, 4px) * 2);
  height: calc(10px + var(--gap, 4px) * 2);
  background: radial-gradient(circle, #fcfcf1 1px, transparent 2px);
  filter: drop-shadow(0 1px 1px #111);
}
#cross b,
#cross i {
  position: absolute;
  display: block;
}
#cross b {
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  border-inline: 5px solid #e6e7cf;
}
#cross i {
  inset: 0 auto 0 calc(50% - 1px);
  width: 2px;
  border-block: 5px solid #e6e7cf;
}
#hitmark {
  width: 24px;
  height: 24px;
  color: #eef7f5;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  filter: drop-shadow(0px 1px 1px #10202a);
}
#hitmark::before,
#hitmark::after {
  content: "";
  position: absolute;
}
#hitmark::before {
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  border-inline: 6px solid currentColor;
}
#hitmark::after {
  inset: 0 auto 0 calc(50% - 1px);
  width: 2px;
  border-block: 6px solid currentColor;
}
#hitmark.confirmed {
  color: #ffb27c;
  width: 29px;
  height: 29px;
}
.mode-rules {
  font: 500 12px/1.35 var(--mono);
  color: #e1e4df;
  margin-top: 7px;
}
@media (max-height: 520px) {
  .mode-rules {
    margin-top: 3px;
  }
}

#focusmsg {
  top: 59%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 15px;
  color: white;
  background: #0d161acc;
  padding: 6px 10px;
  white-space: nowrap;
}
#focusmsg:empty {
  display: none;
}
#feed {
  right: 16px;
  top: 65px;
  font-size: 12px;
  text-align: right;
  color: #dee4e3;
}
#feed div {
  margin: 3px 0;
  background: #152023a8;
  padding: 4px 8px;
}
.teal {
  color: #9ddce1;
}
.salmon {
  color: #ffad87;
}
#objective {
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: center;
  background: #121e22b0;
  padding: 5px 10px;
  font-size: 12px;
  white-space: nowrap;
}
#objective i {
  color: #ff9c63;
}
#targetmarkers {
  inset: 0;
  overflow: hidden;
}
.marker {
  transform: translate(-50%, -50%);
  color: #ffe2a9;
  background: #182024c7;
  border: 1px solid #d7b778;
  padding: 2px 6px;
  font: 700 13px var(--mono);
}
.vitals,
.munition {
  bottom: max(20px, env(safe-area-inset-bottom));
  background: #111a1dcc;
  padding: 8px 13px;
  border-bottom: 2px solid #8ac3c7;
}
.vitals {
  left: max(22px, env(safe-area-inset-left));
}
.vitals span,
.munition small {
  font-size: 12px;
  color: #c3cece;
}
.vitals strong,
.munition strong {
  font: 700 27px var(--mono);
}
.vitals b,
.munition span {
  font: 13px var(--mono);
  color: #b3c0c0;
}
.hpbar {
  height: 3px;
  margin-top: 4px;
  background: #384750;
  min-width: 110px;
}
.hpbar i {
  display: block;
  height: 100%;
  background: #8ed9cd;
}
.munition {
  right: max(20px, env(safe-area-inset-right));
  border-color: var(--orange);
  text-align: right;
}
#touch {
  display: none;
}
body.touch #touch {
  display: block;
}
#touch button,
#stick {
  position: absolute;
  touch-action: none;
  border: 1px solid #cee0dc6b;
  background: #20303768;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
#touch button {
  width: 46px;
  height: 46px;
}
#touch button.active {
  background: #de7c488c;
}
#tshoot {
  right: max(22px, env(safe-area-inset-right));
  bottom: 94px;
  width: 74px !important;
  height: 74px !important;
}
#tshoot svg {
  width: 32px;
  height: 32px;
}
#taim {
  right: 104px;
  bottom: 136px;
}
#treload {
  right: 105px;
  bottom: 80px;
}
#tswitch {
  right: 160px;
  bottom: 62px;
}
#tjump {
  right: 23px;
  bottom: 178px;
}
#tuse {
  left: 50%;
  bottom: 89px;
  transform: translateX(-50%);
}
#stick {
  width: 108px;
  height: 108px;
  bottom: 79px;
  left: max(26px, env(safe-area-inset-left));
  pointer-events: auto;
}
#stick b {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dbeae95e;
  border: 1px solid #cadcdd8c;
  pointer-events: none;
}
#touch button i {
  pointer-events: none;
}
#game canvas {
  touch-action: none;
}
@media (min-width: 1650px) {
  .hero {
    height: 54vh;
  }
  .mode,
  .kit {
    height: 23vh;
  }
}
@media (max-width: 900px) {
  .navbody {
    gap: 25px;
    height: 63px;
  }
  .profile {
    padding-left: 10px;
  }
  .profile > span:last-child {
    display: none;
  }
  .lobby-grid {
    gap: 14px;
    grid-template-columns: minmax(0, 3fr) minmax(166px, 1fr);
  }
  .modegrid {
    gap: 8px;
  }
  .mode {
    padding: 12px;
  }
  .mode.selected {
    padding: 11px;
  }
  .mode small {
    font-size: 9px;
  }
  .kit-top span:last-child {
    font-size: 10px;
  }
  .arm-grid {
    grid-template-columns: 1.35fr 1fr;
  }
}
@media (max-width: 680px) {
  .navbody {
    padding: 0 13px;
    gap: 10px;
    height: 57px;
  }
  .brand {
    gap: 5px;
  }
  .brand img {
    width: 29px;
  }
  .brand span {
    font-size: 14px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1px;
    margin-top: 4px;
  }
  .navbody nav {
    margin-left: auto;
    gap: 12px;
  }
  .navbody nav button {
    font-size: 12px;
  }
  .navbody nav i {
    display: none;
  }
  .top-actions {
    margin-left: 0;
    gap: 0;
  }
  .iconbtn {
    width: 29px;
  }
  .top-actions .profile {
    display: flex;
    padding: 0;
    border: 0;
  }
  .top-actions .profileicon {
    width: 27px;
    height: 30px;
    background: none;
    border: 0;
  }
  .top-actions .full {
    display: grid;
  }
  .navbody .top-actions .iconbtn {
    width: 26px;
  }
  main {
    padding: 12px 12px 0;
  }
  .hero {
    height: clamp(285px, 39vh, 350px);
    min-height: 0;
    background-position: 59% center;
  }
  .hero:before {
    background:
      linear-gradient(90deg, #10181cc9, #101a1e61 50%, transparent 88%),
      linear-gradient(0deg, #101518ba, transparent 60%);
  }
  .herotext {
    padding: 18px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  .hero h1 {
    font-size: 51px;
  }
  .hero-sub {
    max-width: 178px;
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0 19px;
  }
  .hero-meta {
    font-size: 9px;
    right: 9px;
    bottom: 9px;
  }
  .deploy {
    min-height: 43px;
    padding: 0 20px;
  }
  .lobby-grid {
    display: block;
  }
  .sectiontitle {
    margin: 17px 0 10px;
  }
  .sectiontitle h2 {
    font-size: 17px;
  }
  .modegrid {
    gap: 6px;
  }
  .mode,
  .mode.selected {
    height: 145px;
    padding: 10px 7px;
  }
  .mode.selected {
    padding: 9px 6px;
  }
  .mode b {
    font-size: 16px;
  }
  .mode small {
    font-size: 8px;
    letter-spacing: 0.2px;
  }
  .mode .modeicon {
    margin-bottom: 4px;
  }
  .mode.selected .check {
    top: 6px;
    right: 6px;
    width: 17px;
    height: 17px;
  }
  .kit {
    height: 96px;
  }
  .kit img {
    inset: 1% auto 0 29%;
    width: 57%;
    height: 93%;
  }
  .kit-name {
    bottom: 10px;
  }
  .kit-top {
    top: 11px;
  }
  .kit-name b {
    font-size: 15px;
  }
  .kit-top span:last-child {
    font-size: 12px;
  }
  footer {
    margin-top: 14px;
  }
  .arm-grid {
    display: block;
  }
  .arm-render {
    min-height: 235px;
  }
  .arm-panel {
    padding: 16px;
  }
  .page-title {
    margin: 8px 0 14px;
  }
  .page-title h1 {
    font-size: 28px;
  }
  .arm-panel h2 {
    font-size: 18px;
  }
  #weapons {
    grid-template-columns: repeat(3, 1fr);
  }
  .recordbox {
    padding: 14px;
  }
  .resultrow {
    font-size: 12px;
  }
  .hud-map canvas {
    width: 66px;
    height: 66px;
  }
  .hud-map {
    left: 9px;
  }
  .hud-map small {
    font-size: 9px;
  }
  .hud-topright .full {
    display: none;
  }
  #feed {
    top: 115px;
  }
  .hud-map small {
    letter-spacing: 0;
  }
  .scoreline > b {
    font-size: 21px;
    padding: 6px 9px;
  }
  #objective {
    top: 68px;
    max-width: 67%;
    white-space: normal;
    width: max-content;
  }
  #stick {
    left: 14px;
    width: 91px;
    height: 91px;
  }
  #tshoot {
    right: 12px;
  }
  #taim,
  #treload {
    right: 90px;
  }
  #tswitch {
    right: 142px;
  }
  .vitals,
  .munition {
    bottom: 12px;
  }
  .vitals {
    left: 11px;
  }
  .munition {
    right: 11px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  .navbody {
    height: 46px;
  }
  .hero {
    min-height: 0;
    height: 210px;
  }
  .hero h1 {
    font-size: 47px;
  }
  .eyebrow {
    margin-bottom: 8px;
  }
  .hero-sub {
    margin: 7px 0 12px;
  }
  .mode,
  .kit {
    height: 119px;
  }
  .sectiontitle {
    margin: 12px 0 8px;
  }
  .hud-map canvas {
    width: 65px;
    height: 65px;
  }
  .hud-map {
    left: max(12px, env(safe-area-inset-left));
    top: 7px;
  }
  .scoreline {
    top: 6px;
  }
  .scoreline > b {
    font-size: 20px;
  }
  #objective {
    top: 51px;
  }
  #feed {
    top: 50px;
  }
  .vitals,
  .munition {
    bottom: 6px;
    padding: 4px 8px;
  }
  .vitals strong,
  .munition strong {
    font-size: 20px;
  }
  #stick {
    bottom: 45px;
    width: 89px;
    height: 89px;
  }
  #tshoot {
    bottom: 55px;
    width: 61px !important;
    height: 61px !important;
  }
  #taim {
    bottom: 103px;
  }
  #treload {
    bottom: 50px;
  }
  #tswitch {
    bottom: 38px;
  }
  #tjump {
    bottom: 125px;
  }
  #tuse {
    bottom: 34px;
  }
}

.hero.frost-hero {
  background-image: url("assets/ui/froststrike.webp");
  background-position: center 24%;
}
.modegrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lobby-grid {
  grid-template-columns: minmax(0, 4fr) minmax(180px, 1fr);
}
.award-gallery {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #18232a, #151b20);
}
.award-gallery h2 {
  margin: 0 0 5px;
  font-size: 20px;
}
.award-gallery p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 4px 0 15px;
}
.award-gallery > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.award-gallery button {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 3px 12px;
  background: radial-gradient(ellipse at 50% 35%, #344047, #172026 70%);
  border: 1px solid #45535a;
  color: #e7edeb;
}
.award-gallery button:hover,
.award-gallery button:focus-visible {
  border-color: #b8c7ca;
  background-color: #27343a;
}
.award-gallery button b {
  font-size: 14px;
  font-weight: 600;
}
.strike-badge {
  width: 100%;
  height: auto;
  max-width: 148px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 2px 2px #080e13aa);
}
.strike-glint {
  opacity: 0;
}
#combat-medal {
  position: fixed;
  z-index: 8;
  left: 50%;
  top: 69%;
  transform: translate(-50%, -50%);
  width: clamp(126px, 15vmin, 166px);
  pointer-events: none;
  isolation: isolate;
  display: grid;
  justify-items: center;
  color: #fffaf0;
}
#combat-medal .strike-badge {
  max-width: none;
}
.strike-halo {
  position: absolute;
  inset: 18% -9% 34%;
  z-index: -1;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--strike-color) 46%, transparent),
    transparent 66%
  );
  opacity: 0;
}
.strike-caption {
  margin-top: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  padding: 2px 5px 4px;
  background: radial-gradient(
    ellipse at center,
    #101920f2 15%,
    #16212aaa 47%,
    transparent 72%
  );
  width: 100%;
}
.strike-caption strong {
  font: 800 clamp(15px, 2vmin, 20px) / 1.12 var(--sans, sans-serif);
  letter-spacing: 0.1em;
  text-shadow:
    0 2px 3px #050b11,
    0 0 5px #0c1922;
}
.strike-caption i {
  height: 1px;
  width: 22px;
  background: linear-gradient(90deg, transparent, var(--strike-color));
}
.strike-caption i:last-child {
  transform: rotate(180deg);
}
#combat-medal.pop {
  animation: strike-lifetime var(--strike-life) linear both;
}
#combat-medal.pop .strike-core {
  transform-origin: 80px 42px;
  animation: strike-press 320ms cubic-bezier(0.18, 0.8, 0.21, 1) both;
}
#combat-medal.pop .strike-wing {
  animation: strike-lock 320ms cubic-bezier(0.13, 0.79, 0.22, 1) both;
}
#combat-medal.pop .strike-caption {
  animation: strike-caption 260ms 50ms ease-out both;
}
#combat-medal.pop .strike-halo {
  animation: strike-light 470ms ease-out both;
}
#combat-medal.pop .strike-glint {
  animation: strike-glint 430ms 100ms ease-out both;
}
@keyframes strike-press {
  0% {
    transform: scale(1.22);
    opacity: 0;
  }
  32% {
    opacity: 1;
  }
  65% {
    transform: scale(0.965);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes strike-lock {
  from {
    opacity: 0;
    transform: translateX(-13px);
  }
  58% {
    opacity: 1;
    transform: translateX(2px);
  }
  to {
    transform: none;
  }
}
@keyframes strike-caption {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes strike-light {
  12% {
    opacity: 0.86;
  }
  to {
    opacity: 0;
  }
}
@keyframes strike-glint {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  27% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateX(94px);
  }
}
@keyframes strike-lifetime {
  0%,
  79% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .lobby-grid {
    grid-template-columns: minmax(0, 3.5fr) minmax(145px, 1fr);
  }
  .modegrid {
    gap: 6px;
  }
  .mode {
    padding: 12px 8px;
  }
  .mode.selected {
    padding: 11px 7px;
  }
  .mode b {
    font-size: 17px;
  }
}
@media (max-width: 680px) {
  .lobby-grid {
    display: block;
  }
  .modegrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .mode,
  .mode.selected {
    height: 104px;
  }
  .hero.frost-hero {
    background-position: 57% center;
  }
  .award-gallery {
    padding: 12px 9px;
  }
  .award-gallery small {
    display: none;
  }
  .award-gallery button > b {
    font-size: 12px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  #combat-medal {
    width: 95px;
    top: 67.5%;
  }
  .strike-caption {
    margin-top: -3px;
  }
  .strike-caption strong {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #combat-medal.pop,
  #combat-medal.pop * {
    animation: none !important;
  }
}
.standings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 20px;
}
.standings table {
  width: 100%;
  border-collapse: collapse;
  font: 13px var(--mono);
  font-variant-numeric: tabular-nums;
}
.standings caption {
  color: #9ed7d8;
  text-align: left;
  font-weight: 700;
  margin-bottom: 4px;
}
.standings table + table caption {
  color: #e7a48f;
}
.standings th,
.standings td {
  text-align: right;
  padding: 4px 2px;
  font-weight: 450;
}
.standings th:first-child {
  text-align: left;
}
.standings thead {
  color: #acb8be;
  border-bottom: 1px solid #38494e;
}
.standings .local-row {
  color: #f6cf8a;
  background: #ffffff09;
}
@media (max-height: 520px) {
  .standings th,
  .standings td {
    padding: 1px 2px;
  }
  .standings {
    margin: 5px 0;
  }
}

.profile:hover .profileicon,
.profile:focus-visible .profileicon {
  border-color: #a8c6c7;
  color: white;
}
dialog.roster-dialog {
  width: min(690px, calc(100% - 20px));
}
.squad-section {
  --team: #8bd2d5;
}
.squad-section.red {
  --team: #da9b87;
}
.squad-section h3 {
  color: var(--team);
  font-size: 14px;
  margin: 13px 0 6px;
}
.squad-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.squad-row figure {
  margin: 0;
  border: 1px solid #48565a;
  background: #162024;
  overflow: hidden;
}
.roster-portrait {
  aspect-ratio: 1;
  background: url("assets/operators/roster-portraits.webp") 0 0 / 700% 200%;
  border-bottom: 2px solid var(--team);
}
.squad-row figcaption {
  padding: 5px 7px 7px;
  display: grid;
  gap: 3px;
}
.squad-row figcaption b {
  font-size: 14px;
}
.squad-row figcaption small {
  color: #b9c6c7;
  font-size: 12px;
}
@media (max-width: 440px) {
  .roster-dialog {
    padding: 13px;
  }
  .squad-row {
    gap: 4px;
  }
  .squad-row figcaption {
    padding: 4px 2px;
  }
}

.weapon-notes {
  margin: 18px 0;
  border-top: 1px solid #465353;
}
.weapon-notes div {
  display: grid;
  grid-template-columns: 3em 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #465353;
  font-size: 14px;
}
.weapon-notes dt {
  color: #9cadaa;
}
.weapon-notes dd {
  margin: 0;
  line-height: 1.6;
}
#hitvalue {
  position: absolute;
  pointer-events: none;
  color: #c8f3ff;
  font: 750 16px/1 var(--mono);
  text-shadow:
    0 1px 3px #07131d,
    1px 0 2px #07131d;
}
#hitvalue.confirmed {
  color: #ffce89;
}
#chain {
  position: absolute;
  left: 50%;
  top: max(78px, calc(env(safe-area-inset-top) + 73px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffe1a3;
  background: linear-gradient(
    90deg,
    transparent,
    #101c26db 15%,
    #101c26db 85%,
    transparent
  );
  padding: 3px 14px 5px;
  font: 650 12px/1.2 var(--mono);
  white-space: nowrap;
}
#chain:not([hidden]) ~ #objective {
  visibility: hidden;
}
#chain::after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 0;
  left: 10%;
  width: 80%;
  background: #ffc979;
  transform: scaleX(var(--remaining, 1));
  transform-origin: left;
}
#chain span {
  display: flex;
  gap: 2px;
}
#chain i {
  display: block;
  width: 5px;
  height: 8px;
  background: #64727c;
  transform: skew(-18deg);
}
#chain i.lit {
  background: #ffd799;
}
#chain small {
  font-variant-numeric: tabular-nums;
}
.strike-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.strike-rays i {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 42%;
  height: 2px;
  transform-origin: 0 50%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--strike-color) 80%,
    #fff6cc
  );
  opacity: 0;
}
#combat-medal.pop .strike-rays i {
  animation: strike-ray 490ms var(--delay) ease-out both;
}
@keyframes strike-ray {
  0% {
    transform: rotate(var(--ray)) translateX(52%) scaleX(0.12);
    opacity: 0;
  }
  24% {
    opacity: 0.93;
  }
  100% {
    transform: rotate(var(--ray)) translateX(120%) scaleX(0.48);
    opacity: 0;
  }
}
#combat-medal[data-tier="4"] .strike-badge,
#combat-medal[data-tier="5"] .strike-badge {
  filter: drop-shadow(0 2px 2px #100f13) drop-shadow(0 0 5px #d5a44e85);
}
@media (max-width: 540px) {
  .squad-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  #chain {
    top: max(58px, calc(env(safe-area-inset-top) + 54px));
  }
}
@media (prefers-reduced-motion: reduce) {
  #combat-medal.pop .strike-rays i {
    animation: none;
  }
}

@media (pointer: coarse) {
  #armory {
    display: flex;
    flex-direction: column;
  }
  #armory > .page-title {
    order: 0;
  }
  #armory > .sectiontitle {
    display: none;
  }
  #weapons {
    order: 1;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    margin-bottom: 10px;
  }
  #weapons .weapon {
    flex: 1 0 82px;
    min-height: 64px;
    padding: 3px;
  }
  #weapons .weapon img {
    height: 34px;
  }
  #weapons .weapon b {
    font-size: 12px;
  }
  #armory > .arm-grid {
    order: 2;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  #armory .page-title {
    margin: 3px 0 7px;
  }
  #armory .page-title small {
    display: none;
  }
  #armory .page-title h1 {
    font-size: 23px;
  }
  #armory .arm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(180px, 1fr);
    gap: 10px;
    align-items: start;
  }
  #armstage {
    min-height: max(186px, 53svh);
  }
  #armory .arm-panel {
    padding: 13px;
  }
  #armory .arm-panel h2 {
    font-size: 17px;
  }
  #armory .arm-label {
    top: 8px;
    left: 12px;
  }
  #armory .arm-label h2 {
    font-size: 20px;
  }
}

#combat-medal[data-tier="3"] {
  width: clamp(142px, 17vmin, 178px);
}
#combat-medal[data-tier="4"] {
  width: clamp(150px, 18vmin, 187px);
}
#combat-medal[data-tier="5"] {
  width: clamp(161px, 19vmin, 198px);
}
#combat-medal.pop .strike-rim {
  animation: seal-release 0.46s ease-out both;
  transform-origin: 80px 42px;
}
@keyframes seal-release {
  from {
    opacity: 0;
    transform: rotate(-18deg) scale(0.75);
  }
  75% {
    opacity: 1;
  }
  to {
    transform: none;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  #combat-medal[data-tier="3"] {
    width: 102px;
  }
  #combat-medal[data-tier="4"] {
    width: 110px;
  }
  #combat-medal[data-tier="5"] {
    width: 118px;
  }
}

.rotate-panel {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 18px 3px;
}
.rotate-panel i {
  color: #ffb579;
}
.rotate-panel svg {
  width: 66px;
  height: 66px;
}
.rotate-panel p {
  margin: 0;
  max-width: 25em;
}
#scope-shade,
#sight-dot {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}
#scope-shade {
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 43%,
    #101c2438 100%
  );
}
#sight-dot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe0a5;
  box-shadow:
    0 0 0 1px #682f22,
    0 0 4px #ed9572;
}
#sight-dot.prism {
  background: #c0fffb;
  box-shadow:
    0 0 0 1px #164852,
    0 0 4px #6bcad0;
}
#sight-dot.prism i {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.3px solid #8aebe0b8;
  border-top-color: transparent;
}
#reinforce {
  --progress: 0;
  position: absolute;
  pointer-events: none;
  left: 50%;
  top: 64%;
  transform: translateX(-50%);
  min-width: 180px;
  display: grid;
  gap: 3px;
  padding: 9px 16px 11px;
  border-top: 2px solid #df9771;
  background: linear-gradient(105deg, #101d24e8, #192932e8);
  color: #f1eee5;
}
#reinforce > small {
  font-size: 12px;
  color: #dfb296;
}
#reinforce strong {
  font-size: 18px;
  letter-spacing: 0.06em;
}
#reinforce div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: #c8d9db;
  font-size: 12px;
}
#reinforce div b {
  font: 700 15px var(--mono);
}
#reinforce > i {
  display: block;
  height: 3px;
  background: #405058;
}
#reinforce em {
  display: block;
  height: 100%;
  background: #8ed4d0;
  transform-origin: left;
  transform: scaleX(var(--progress));
}
body.downed #cross,
body.downed #objective,
body.downed #touch {
  visibility: hidden;
}
body.downed #damage {
  background: linear-gradient(0deg, #1d2735aa, transparent 76%);
}
@media (max-height: 470px) and (orientation: landscape) {
  #reinforce {
    top: 57%;
  }
}
#combat-medal.pop.prismatic .strike-crystal {
  transform-origin: 80px 21px;
  animation: crystal-seat 0.49s cubic-bezier(0.17, 0.77, 0.3, 1) both;
}
@keyframes crystal-seat {
  from {
    opacity: 0;
    transform: translateY(-13px) scale(0.64);
  }
  64% {
    opacity: 1;
    transform: translateY(1px) scale(1.1);
  }
  to {
    transform: none;
  }
}
#combat-medal.prismatic .strike-caption i {
  background: linear-gradient(90deg, transparent, #72c4d5, var(--strike-color));
}
#combat-medal.prismatic .strike-halo {
  background: radial-gradient(ellipse, #7bebfb78 0%, transparent 68%);
}
.room-actions{display:flex;align-items:center;gap:16px;margin-top:12px}
.room-actions button{display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:.9rem;font-weight:650;cursor:pointer}
.room-share{background:#152428e8;color:#ecf5f3;border:1px solid #78989a85;padding:7px 12px}
.room-share svg{width:16px;height:16px}.room-practice{color:#eef1f0;border:0;border-bottom:1px solid #a5b7b977;background:transparent;padding:5px 0}
#room-hud{font-size:10px;letter-spacing:0;white-space:nowrap;color:#b5e7e8}
#invite-url{width:100%;padding:10px;color:#eef5f4;background:#142529;border:1px solid #68898d}
