@font-face {
  font-family: system;
  src: local("Arial");
}
* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --ink: #dfe8e5;
  --muted: #81928f;
  --lime: #d3ed8e;
  --cyan: #85d4d5;
  --coral: #f19a7a;
  --line: #ffffff20;
}
body {
  margin: 0;
  background: #0c1419;
  color: var(--ink);
  font:
    14px system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  min-height: 100dvh;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #152225;
  color: var(--ink);
  border-radius: 3px;
  font-weight: 650;
  letter-spacing: 0.05em;
}
button:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
input:not([type="range"]):not([type="checkbox"]) {
  width: 100%;
  background: #0b1416;
  border: 1px solid #ffffff24;
  border-radius: 3px;
  color: var(--ink);
  padding: 16px;
  font-size: 16px;
  min-height: 50px;
}
input[type="range"] {
  accent-color: var(--lime);
  min-width: 0;
  width: 100%;
  height: 44px;
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: var(--lime);
  width: 22px;
  height: 22px;
}
label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 600;
}
label {
  display: block;
  color: #9eada7;
}
label span {
  float: right;
  color: #60726c;
}
button span {
  pointer-events: none;
}
#battlefield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.grain {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, #071116d9 0%, #07111622 65%),
    linear-gradient(0deg, #071116c0, transparent 40%);
  pointer-events: none;
  z-index: -1;
}
.masthead {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5vw;
  border-bottom: 1px solid #ffffff12;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 700;
}
.brand-icon {
  color: var(--lime);
  font-size: 24px;
  font-style: italic;
}
.muted {
  color: var(--muted);
}
.edition {
  color: #7a938c;
  font: 10px monospace;
  letter-spacing: 0.15em;
}
.edition span {
  margin-left: 24px;
  color: #c4d2c9;
}
.quiet {
  background: transparent;
  border-color: transparent;
  font-size: 10px;
  color: #acbbb5;
  padding: 0 10px;
}
.lobby {
  max-width: 1600px;
  margin: auto;
  padding: clamp(50px, 9vh, 120px) 6.5vw 0;
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 5vw;
  min-height: calc(100dvh - 96px);
  align-content: center;
}
.eyebrow {
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 15px #d3ed8e66;
}
h1 {
  font-size: clamp(66px, 7.9vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  margin: 30px 0;
  font-weight: 850;
  position: relative;
}
h1 span {
  color: var(--lime);
}
h1 i {
  font: 45px monospace;
  color: var(--lime);
  vertical-align: top;
  margin-left: 14px;
}
.lede {
  color: #aebfb8;
  font-size: 17px;
  line-height: 1.8;
  margin: 32px 0;
}
.specs {
  display: flex;
  gap: 22px;
  margin-top: 46px;
  color: #6e8479;
  font: 10px monospace;
}
.specs b {
  font-weight: 400;
  color: #a9bcb1;
  margin-left: 7px;
  letter-spacing: 0.05em;
}
.deploy-card {
  padding: 28px;
  background: #101c20ed;
  border: 1px solid #d3ed8e30;
  border-top: 2px solid var(--lime);
  border-radius: 3px;
  box-shadow: 0 24px 80px #0004;
  align-self: center;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.version {
  font: 10px monospace;
  color: #738d81;
}
.deploy-card h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin: 26px 0;
}
.deploy-card label {
  margin-bottom: 10px;
}
.deploy-card small {
  display: block;
  font-size: 10px;
  color: #6f857b;
  margin-top: 8px;
}
.primary {
  background: var(--lime);
  color: #172015;
  border: 0;
  padding: 0 18px;
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.primary:hover:not(:disabled) {
  background: #e1f9a6;
  color: #172015;
}
.divider {
  text-align: center;
  margin: 25px 0 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #6d8679;
  white-space: nowrap;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.join-row {
  display: flex;
  gap: 8px;
}
.join-row input {
  min-width: 0;
  letter-spacing: 0.18em;
}
.join-row button {
  white-space: nowrap;
  padding: 0 15px;
  font-size: 11px;
}
.private-note {
  font-size: 10px;
  color: #7e9689;
  margin: 17px 0 0;
}
.lobby-footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 20px 0;
  color: #6c8579;
  font: 9px monospace;
  letter-spacing: 0.1em;
}
.lobby-footer button {
  padding-left: 0;
  color: var(--lime);
}
.playing {
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  height: 100dvh;
}
.playing .masthead {
  height: 54px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.playing .edition {
  display: none;
}
.playing .grain {
  background: linear-gradient(#06121880, transparent 30%);
}
#arena {
  height: calc(100dvh - 54px);
  padding: 18px max(24px, env(safe-area-inset-right))
    max(6px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  position: relative;
}
.match-top {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(210px, 1fr) minmax(
      160px,
      1fr
    );
  gap: 25px;
  max-width: 1400px;
  margin: auto;
  align-items: start;
}
.player-card {
  padding: 15px 18px;
  background: #0d1b22e8;
  border: 1px solid var(--line);
  max-width: 330px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.cyan {
  color: var(--cyan);
}
.coral {
  color: var(--coral);
  justify-self: end;
  width: 100%;
  text-align: right;
}
.health {
  margin: 9px 0 4px;
}
.health progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border: 0;
  background: #ffffff15;
}
.health progress::-webkit-progress-bar {
  background: #ffffff15;
}
.cyan progress::-webkit-progress-value {
  background: var(--cyan);
}
.coral progress::-webkit-progress-value {
  background: var(--coral);
}
.health progress::-moz-progress-bar {
  background: currentColor;
}
.player-card small {
  font: 10px monospace;
  color: #a9bdbb;
}
.match-center {
  text-align: center;
  padding: 2px;
}
.match-center > div:first-child {
  font: 10px monospace;
  letter-spacing: 0.15em;
  color: #a2b6ab;
  margin: 4px 0 12px;
}
.match-center strong {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--lime);
}
.telemetry {
  display: flex;
  justify-content: center;
  gap: 18px;
  font: 9px monospace;
  color: #9fbbb0;
  margin-top: 12px;
}
.controls {
  position: absolute;
  bottom: 52px;
  left: max(24px, env(safe-area-inset-left));
  right: max(24px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: 1fr 1fr 1.8fr 160px;
  gap: 22px;
  align-items: center;
  background: #0d1b22f2;
  border: 1px solid var(--line);
  border-top-color: #c4e3ae40;
  padding: 18px 22px;
  max-width: 1400px;
  margin: auto;
}
.adjust label,
.armory > label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
.adjust output {
  font: 16px monospace;
  color: var(--ink);
  letter-spacing: 0;
}
.adjust > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adjust button {
  width: 44px;
  flex: none;
  font-size: 22px;
}
.weapon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.weapon-row button {
  font-size: 15px;
  padding: 3px 5px;
  height: 48px;
}
.weapon-row span {
  display: block;
  font-size: 8px;
  line-height: 16px;
}
.weapon-row [aria-pressed="true"] {
  border-color: var(--lime);
  color: var(--lime);
  background: #d3ed8e12;
}
.fire {
  background: var(--lime);
  color: #142011;
  min-height: 74px;
  font-size: 23px;
  border: none;
  position: relative;
}
.fire:hover:not(:disabled) {
  background: #e1f9a6;
  color: #142011;
}
.fire span {
  margin-left: 14px;
}
.fire small {
  display: block;
  font: 8px monospace;
  letter-spacing: 0.15em;
  margin-top: 4px;
}
.match-footer {
  position: absolute;
  bottom: max(4px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  right: max(24px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px monospace;
  color: #8ea69c;
  gap: 10px;
}
.waiting-panel {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  max-width: 90%;
  text-align: center;
  padding: 24px;
  background: #101c20f5;
  border: 1px solid #d3ed8e66;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 20px 80px #0008;
}
.waiting-panel .eyebrow {
  justify-content: center;
}
.waiting-panel h2 {
  font-size: 27px;
  margin: 12px 0;
}
.waiting-panel p {
  color: #9aafa3;
  font-size: 12px;
}
.waiting-panel small {
  color: #71857c;
  font-size: 10px;
}
#invite-code {
  display: block;
  color: var(--lime);
  font: 38px monospace;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}
.connection-banner {
  position: absolute;
  left: 50%;
  top: 135px;
  transform: translateX(-50%);
  background: #392919ec;
  padding: 15px;
  color: #f3c98d;
  font: 11px monospace;
  z-index: 3;
  width: max-content;
  max-width: 90%;
  text-align: center;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: #d3ed8e;
  color: #152111;
  padding: 15px 24px;
  max-width: 90%;
  text-align: center;
  z-index: 10;
  border-radius: 4px;
  box-shadow: 0 8px 30px #0007;
}
dialog {
  background: #122127;
  color: #dce8df;
  border: 1px solid #d3ed8e50;
  padding: 32px;
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  border-radius: 4px;
  line-height: 1.7;
}
dialog::backdrop {
  background: #020b10c9;
  backdrop-filter: blur(8px);
}
dialog h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
}
dialog p,
dialog li {
  color: #a5baae;
  font-size: 13px;
}
dialog li {
  padding: 5px;
}
.dialog-close {
  float: right;
  font-size: 24px;
  width: 44px;
  background: transparent;
  border: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0;
  min-height: 48px;
}
.rotate {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
.no-js {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #182b2d;
  padding: 20px;
}
.phone-icon {
  width: 55px;
  height: 90px;
  border: 3px solid var(--lime);
  border-radius: 10px;
  margin: auto auto 32px;
  transform: rotate(25deg);
  display: grid;
  place-items: center;
  font-size: 32px;
  color: var(--lime);
}
@media (max-width: 1050px) {
  .lobby {
    grid-template-columns: 1fr 325px;
    padding: 45px 5vw 0;
    gap: 25px;
  }
  h1 {
    font-size: 8.6vw;
  }
  .specs {
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
  }
  .deploy-card {
    padding: 22px;
  }
  .edition {
    display: none;
  }
  .controls {
    gap: 12px;
    grid-template-columns: 1fr 1fr 1.6fr 120px;
    padding: 12px;
  }
  .lobby-footer .sector {
    display: none;
  }
  .armory > label {
    font-size: 9px;
  }
  .adjust > div {
    gap: 2px;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  .masthead {
    height: 72px;
    padding: 0 20px;
  }
  .masthead .muted {
    display: none;
  }
  .lobby {
    display: flex;
    flex-direction: column;
    padding: 40px 24px 10px;
    gap: 20px;
  }
  .intro h1 {
    font-size: 18vw;
    margin: 22px 0;
  }
  .intro .lede {
    font-size: 15px;
    margin: 20px 0;
  }
  .specs {
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 8px;
    gap: 12px;
    margin-top: 20px;
  }
  .deploy-card {
    width: 100%;
    margin-top: 12px;
  }
  .lobby-footer {
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
  }
  .lobby-footer > span {
    font-size: 7px;
  }
  .playing .rotate {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9;
    background: #0c191fee;
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  .rotate p {
    line-height: 1.8;
    color: var(--muted);
  }
  .rotate a {
    margin-top: 20px;
    color: var(--lime);
  }
  .rotate h2 {
    font-size: 18px;
  }
  .phone-icon {
    margin: 0 0 36px;
  }
}
@media (max-height: 600px) and (orientation: landscape) {
  .masthead {
    height: 50px;
  }
  .lobby {
    padding: 20px 5vw 0;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    min-height: calc(100dvh - 50px);
  }
  h1 {
    font-size: 63px;
    margin: 20px 0;
  }
  .lede {
    font-size: 13px;
    margin: 20px 0;
  }
  .specs {
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 8px;
    gap: 10px;
    margin-top: 18px;
  }
  .deploy-card {
    padding: 16px;
  }
  .deploy-card h2 {
    font-size: 20px;
    margin: 12px 0;
  }
  .deploy-card input:not([type="range"]) {
    min-height: 44px;
    padding: 10px;
  }
  .deploy-card .primary {
    margin-top: 15px;
    min-height: 44px;
  }
  .divider {
    margin: 14px 0 10px;
  }
  .private-note {
    font-size: 8px;
  }
  .lobby-footer {
    margin-top: 5px;
    padding: 0;
  }
  .playing .masthead {
    height: 38px;
  }
  .playing .brand {
    font-size: 9px;
  }
  .playing .brand-icon {
    font-size: 18px;
  }
  .playing .masthead button {
    min-height: 34px;
  }
  .playing #arena {
    height: calc(100dvh - 38px);
    padding-top: 5px;
  }
  .match-top {
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 15px;
  }
  .player-card {
    padding: 8px 10px;
    font-size: 10px;
    max-width: 240px;
  }
  .health {
    margin: 4px 0 2px;
  }
  .match-center > div:first-child {
    margin: 2px 0 5px;
    font-size: 8px;
  }
  .match-center strong {
    font-size: 12px;
  }
  .telemetry {
    font-size: 8px;
    margin-top: 5px;
    gap: 8px;
  }
  .controls {
    bottom: 39px;
    padding: 8px;
    gap: 8px;
    grid-template-columns: 1fr 1fr 1.5fr 90px;
  }
  .adjust label {
    margin-bottom: 0;
    font-size: 8px;
  }
  .adjust output {
    font-size: 13px;
  }
  .adjust button {
    width: 44px;
    height: 44px;
  }
  .armory > label {
    margin-bottom: 4px;
    font-size: 8px;
  }
  .weapon-row {
    gap: 3px;
  }
  .weapon-row button {
    height: 44px;
    min-width: 44px;
    font-size: 12px;
    padding: 2px;
  }
  .weapon-row span {
    font-size: 7px;
  }
  .fire {
    font-size: 18px;
    min-height: 62px;
  }
  .fire small {
    display: none;
  }
  .match-footer {
    bottom: 0;
  }
  .match-footer button {
    font-size: 8px;
    min-height: 36px;
  }
  .match-footer > span {
    font-size: 7px;
  }
  .waiting-panel {
    top: 44%;
    width: 330px;
    padding: 12px 20px;
  }
  .waiting-panel h2 {
    font-size: 21px;
    margin: 4px 0;
  }
  .waiting-panel p {
    margin: 7px 0;
    font-size: 10px;
  }
  #invite-code {
    font-size: 25px;
  }
  .waiting-panel .primary {
    margin-top: 12px;
    min-height: 44px;
  }
  .waiting-panel .eyebrow {
    font-size: 8px;
  }
  .waiting-panel small {
    font-size: 8px;
  }
  .connection-banner {
    top: 82px;
    padding: 8px;
    font-size: 9px;
  }
  .controls input[type="range"] {
    width: 100%;
  }
}
@media (max-width: 740px) and (orientation: landscape) {
  .controls {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    gap: 8px;
    grid-template-columns: 100px 100px 1fr 80px;
  }
  .adjust input[type="range"] {
    display: none;
  }
  .adjust > div {
    justify-content: space-between;
  }
  .weapon-row span {
    font-size: 6px;
  }
  .match-footer > span {
    display: none;
  }
  .match-top {
    gap: 7px;
  }
  .match-center strong {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Classic duel compact layout: prevent content-driven mobile viewport expansion. */
.lobby > *,
.intro {
  min-width: 0;
}
@media (max-width: 740px) {
  h1 i {
    display: none;
  }
  .specs {
    flex-wrap: wrap;
  }
}
@media (max-height: 600px) and (orientation: landscape) {
  .lobby {
    grid-template-columns: minmax(0, 1fr) minmax(0, 270px);
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .intro h1 {
    font-size: clamp(32px, 6.5vw, 60px);
  }
  .match-footer {
    bottom: env(safe-area-inset-bottom);
  }
  .controls {
    bottom: calc(39px + env(safe-area-inset-bottom));
  }
}
