@font-face {
  font-family: "Nova Raster";
  src: url("/nova-raster.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #101416;
  --panel: #1a2022;
  --border: #394342;
  --cream: #f4f3e8;
  --muted: #b4bdb8;
  --lime: #c3f687;
  --mono: "Courier New", monospace;
  --display: "Nova Raster", "Arial Black", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image: radial-gradient(#313739 0.65px, transparent 0.85px);
  background-size: 7px 7px;
  color: var(--cream);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.mast { background: #131819; border-bottom: 1px solid var(--border); }
.mast-inner { min-height: 76px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .icon { width: 29px; height: 29px; color: var(--lime); }
.brand span { font: 23px/1 var(--display); letter-spacing: -.7px; padding-top: 2px; }
.icon { width: 17px; height: 17px; flex: none; display: inline-block; }
.channel, .current-page, .monitor-strip, .kicker, .base, .pilot-caption > span {
  font: bold 11px/1.45 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.channel { padding-left: 20px; border-left: 1px solid #48504e; color: var(--muted); }
.current-page { margin-left: auto; display: flex; align-items: center; gap: 9px; color: #c8ceca; }
.current-page .icon { width: 13px; height: 13px; color: var(--lime); }
.main-wrap { padding-top: clamp(24px, 3vw, 46px); }
.monitor { border: 1px solid #535c5a; padding: 5px; background: #202727; box-shadow: 0 5px 0 #0b1011; }
.landscape { position: relative; isolation: isolate; overflow: hidden; }
.landscape { min-height: 350px; aspect-ratio: 576 / 204; background: #23233d; }
.scenery, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.scenery { z-index: -2; object-fit: cover; image-rendering: pixelated; }
.hero-shade { z-index: -1; background: linear-gradient(90deg,rgba(12,21,33,.9),rgba(15,23,36,.76) 23%,rgba(18,25,37,.23) 43%,transparent 58%); }
.hero-copy { padding: clamp(28px, 4vw, 62px); position: relative; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; color: var(--lime); margin: 0 0 22px; }
.dash { width: 23px; height: 6px; background: repeating-linear-gradient(130deg,transparent 0 3px,currentColor 3px 6px); }
h1, h2, h3, p { margin: 0; }
h1 { font: 400 clamp(56px,6.2vw,87px)/1.07 var(--display); text-transform: uppercase; letter-spacing: -.045em; text-shadow: 3px 4px 0 #152030; }
h1 em { font-style: normal; color: var(--lime); }
.hero-description { margin-top: 18px; color: #f2f0ee; font-size: clamp(15px,1.3vw,18px); line-height: 1.45; }
.reticle { position: absolute; right: 16px; top: 16px; width: 14px; height: 14px; border-top: 2px solid #e8dbc599; border-right: 2px solid #e8dbc599; }
.monitor-strip { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 4px 13px 0; color: #c7cec8; font-size: 10px; }
.monitor-strip span, .base span { display: inline-flex; align-items: center; gap: 10px; }
.monitor-strip .icon { width: 13px; height: 13px; color: #b6c6b7; }
.palette { width: 42px; height: 6px; background: linear-gradient(90deg,#636583 0 19%,transparent 19% 26%,#997788 26% 45%,transparent 45% 52%,#dda989 52% 71%,transparent 71% 78%,#c3f687 78%); }
.panel { border: 1px solid var(--border); background: var(--panel); }
.access { margin-top: 23px; display: grid; grid-template-columns: 1fr 1.14fr; gap: 35px; padding: 32px; align-items: center; }
.access-intro { display: flex; align-items: center; gap: 18px; }
.tile { display: grid; place-items: center; background: #29332a; border: 1px solid #4d6145; width: 50px; height: 50px; flex-shrink: 0; color: var(--lime); }
.tile .icon { width: 27px; height: 27px; }
h2 { font-size: clamp(22px,2vw,29px); letter-spacing: -.035em; line-height: 1.15; }
.access-intro p { margin-top: 7px; font-size: 14px; line-height: 1.5; color: var(--muted); }
form label[for], legend { font: bold 12px/1.4 var(--mono); letter-spacing: .055em; }
form label[for] { display: block; margin-bottom: 8px; }
.access-controls { display: flex; align-items: stretch; gap: 9px; }
button, input { font: inherit; }
input[type="password"], input[type="text"] { border: 1px solid #596462; background: #101617; color: var(--cream); width: 100%; height: 46px; border-radius: 0; padding: 0 13px; font-size: 15px; }
input::placeholder { color: #9ba7a3; opacity: 1; }
.password-wrap { flex: 1; min-width: 0; position: relative; }
.password-wrap input { padding-left: 39px; padding-right: 45px; }
.password-wrap > .icon { position: absolute; left: 13px; top: 16px; width: 14px; height: 14px; color: #a3ada8; pointer-events: none; }
button { cursor: pointer; }
.eye { position: absolute; inset: 2px 2px 2px auto; width: 40px; color: #b3c0b8; background: none; border: 0; display: grid; place-items: center; }
.eye:hover { color: var(--lime); }
.eye[aria-pressed=false] .icon:nth-child(2), .eye[aria-pressed=true] .icon:first-child { display: none; }
.primary { min-height: 46px; background: var(--lime); color: #172414; border: 1px solid #d5ffac; box-shadow: inset 0 -3px #9fc66c; padding: 0 24px; font-weight: 750; white-space: nowrap; }
.primary:hover { background: #d6ffa5; }
.primary:active { box-shadow: inset 0 2px #91af67; }
:focus-visible { outline: 3px solid #f5d996; outline-offset: 3px; }
.error, #join-error:not(:empty) { margin-top: 12px; color: #ffb7aa; font-size: 14px; line-height: 1.45; }
input[aria-invalid=true] { border-color: #f89c90; }
.base { color: #a2aea7; border-top: 1px solid #333b3a; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-block: 18px 28px; font-size: 10px; }
.base span:first-child { color: #b9c3bc; }
.base .icon { width: 13px; height: 13px; color: #8a9a8d; }

.loadout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 20px; margin-top: 23px; align-items: start; }
.config, .pilot-panel { padding: clamp(20px,2.2vw,32px); }
.config h2 { margin-bottom: 24px; }
fieldset { padding: 0; margin: 19px 0 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.skin-grid, .weapon-grid, .quality { display: grid; gap: 7px; }
.skin-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.weapon-grid,.quality { grid-template-columns: repeat(3,minmax(0,1fr)); }
fieldset label { position: relative; cursor: pointer; }
fieldset input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
fieldset input + span { display: flex; align-items: center; justify-content: center; border: 1px solid #46504f; background: #151b1c; min-height: 43px; color: #cbd3ce; font: bold 13px/1.3 var(--mono); text-align: center; }
fieldset input:checked + span { background: #273226; color: var(--lime); border-color: #a5cd77; box-shadow: inset 0 -2px #a5cd77; }
fieldset label:hover input + span { border-color: #a2b397; }
fieldset input:focus-visible + span { outline: 3px solid #f5d996; outline-offset: 2px; }
.skin-face { flex-direction: column; padding: 5px 0 9px; gap: 1px; }
canvas { image-rendering: pixelated; }
.skin-face canvas { width: 52px; height: 52px; }
.weapon-choice input + span { gap: 7px; }
.weapon-choice .icon { width: 19px; height: 19px; }
.quality span { font-size: 12px; padding: 5px; }
.preview-title { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.preview-title > .icon { color: var(--lime); width: 20px; height: 20px; }
.scanner { padding: 20px; display: grid; place-items: center; background-color: #182325; background-image: linear-gradient(#49635c38 1px,transparent 1px),linear-gradient(90deg,#49635c38 1px,transparent 1px); background-size: 16px 16px; border: 1px solid #3d5048; }
.scan-target { width: min(100%,170px); aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(ellipse, #667c652d, transparent 70%); }
#pilot-preview { display: block; width: 100%; height: auto; max-width: 160px; }
.pilot-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
.pilot-caption h3 { font: 23px var(--display); text-transform: uppercase; }
.pilot-caption > span { color: var(--muted); }
.launch { width: 100%; margin-top: 23px; }
@media(max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .access { grid-template-columns: 1fr; gap: 21px; padding: 25px; }
  .hero-copy { padding: 34px; }
  .landscape { min-height: 325px; }
  .loadout { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 12px; }
}
@media(max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .mast-inner { min-height: 62px; gap: 12px; }
  .brand { gap: 7px; }
  .brand span { font-size: 19px; }
  .brand .icon { width: 24px; height: 24px; }
  .channel { font-size: 9px; letter-spacing: .06em; padding-left: 12px; }
  .current-page { font-size: 9px; letter-spacing: .05em; gap: 5px; }
  .main-wrap { padding-top: 18px; }
  .landscape { min-height: 360px; }
  .landscape .scenery { object-position: 71% center; }
  .hero-shade { background: linear-gradient(0deg,#14202df2,rgba(20,28,39,.74) 31%,transparent 68%); }
  .hero-copy { position: absolute; inset: auto 19px 21px; padding: 0; }
  h1 { font-size: clamp(40px,9vw,60px); }
  .hero-copy h1 br { display: none; }
  .hero-copy h1 em::before { content: " "; }
  .kicker { font-size: 10px; margin-bottom: 11px; }
  .hero-description { margin-top: 8px; }
  .monitor-strip { padding: 4px 8px 0; font-size: 9px; }
  .access { padding: 20px; margin-top: 15px; }
  .access-intro { gap: 12px; }
  .access-intro p { font-size: 13px; }
  .tile { width: 41px; height: 41px; }
  .access-controls { flex-direction: column; gap: 12px; }
  .base { margin-top: 20px; font-size: 9px; }
  .loadout { grid-template-columns: 1fr; margin-top: 15px; gap: 15px; }
  .config, .pilot-panel { padding: 18px; }
  .skin-grid,.weapon-grid,.quality { gap: 5px; }
  .scanner { padding: 8px; }
}
@media(max-width: 390px) {
  .hero-copy h1 br { display: initial; }
  .hero-copy h1 em::before { content: none; }
  .quality span { font-size: 11px; }
}

.werf { background: #171e20; border: 1px solid #495658; }
.werf-view { position:relative; height:clamp(290px,34vw,440px); overflow:hidden; background:#e2b699; }
#map-view { display:block; width:100%; height:100%; image-rendering:auto; touch-action:pan-y; cursor:grab; }
#map-view:active { cursor:grabbing; }
.werf-view::after { content:""; position:absolute; inset:38% 0 0; pointer-events:none; background:linear-gradient(0deg,rgba(12,26,32,.85),transparent 70%); }
.werf-title { position:absolute; z-index:1; left:clamp(16px,3vw,42px); bottom:clamp(18px,2.3vw,32px); pointer-events:none; color:#fff8dd; }
.werf-label { display:inline-flex; align-items:center; gap:9px; font:700 12px var(--mono); letter-spacing:.14em; text-transform:uppercase; }
.werf-label::before { content:""; width:22px; height:6px; background:repeating-linear-gradient(125deg,transparent 0 3px,#c4ef87 3px 6px); }
.werf-title h1 { font-size:clamp(34px,5.2vw,77px); line-height:1.15; margin:7px 0 3px; }
.werf-title p:last-child { font:600 14px/1.4 var(--mono); color:#f5f1e6; }
.werf-title p span { color:#c3f687; padding:0 4px; }
#map-motion { position:absolute; top:14px; right:14px; border:1px solid #a9c0ba; border-radius:3px; background:#14252cd9; color:#fff7dd; width:36px; height:36px; font:700 17px var(--mono); }
.werf-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; border-top:1px solid #435052; }
.werf-hint { color:#bdc9c4; font:13px/1.35 var(--mono); }
.werf-angles { display:flex; gap:4px; }
.werf-angles button { color:#d4dcd4; background:transparent; border:1px solid transparent; padding:6px 11px; font:700 13px var(--mono); }
.werf-angles button[aria-pressed=true] { border-color:#8db46e; color:var(--lime); background:#2a3629; }
.werf-angles button:hover, #map-motion:hover { border-color:#c3f687; }
@media(max-width:680px){
 .werf-view { height:285px; }
 .werf-bar { padding:8px; justify-content:center; }
 .werf-hint { display:none; }
 .werf-angles { flex:1; }
 .werf-angles button { flex:1; padding:8px 3px; }
}

/* The map stays at viewport size while the equipment panel can scroll. */
body.lobby { isolation:isolate; background:#243a3c; }
.lobby .mast { position:relative; z-index:1; background:#10191dd9; }
.lobby .mast-inner { min-height:60px; }
.lobby .main-wrap { width:min(100% - 48px,1600px); padding:0 0 24px; }
.lobby .werf { background:transparent; border:0; }
.lobby .werf-view { height:auto; overflow:visible; background:transparent; position:static; }
.lobby #map-view { position:fixed; inset:0; width:100%; height:100%; z-index:-2; }
.lobby .werf-view::after { position:fixed; inset:0; z-index:-1; background:linear-gradient(90deg,#101c228a,transparent 54%),linear-gradient(0deg,#0e171b86,transparent 45%); }
.lobby .werf-title { position:static; padding:clamp(24px,5vh,70px) 0 18px; text-shadow:0 2px 5px #10191d; }
.lobby .werf-title h1 { font-size:clamp(32px,4vw,64px); }
.lobby .werf-bar { display:inline-flex; flex-wrap:wrap; border:1px solid #91aca666; background:#111c21dc; padding:7px 10px; }
.lobby #map-motion { top:76px; right:24px; }
.lobby .loadout { width:min(100%,470px); grid-template-columns:1fr; gap:0; border:1px solid #a1b7b477; box-shadow:0 10px 32px #0d191f44; margin-top:22px; background:#101c23d9; }
.lobby .loadout .panel { border:0; background:transparent; padding:18px 20px; }
.lobby .config h2 { margin-bottom:14px; }
.lobby fieldset { margin-top:12px; }
.lobby .pilot-panel { display:grid; align-items:center; grid-template-columns:54px 1fr auto; gap:12px; border-top:1px solid #98ada950 !important; }
.lobby .preview-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.lobby .scanner { padding:0; }
.lobby .pilot-caption { display:grid; gap:4px; margin:0; }
.lobby .pilot-caption h3 { font-size:18px; }
.lobby .launch { margin:0; }
.lobby #join-error { grid-column:1/-1; margin:0; }
.lobby #join-error:empty,.lobby .base { display:none; }
@media(max-width:680px) {
  .lobby .main-wrap { width:calc(100% - 28px); }
  .lobby .werf-title { padding-top:clamp(70px,17svh,150px); }
  .lobby #map-motion { right:14px; }
  .lobby .loadout .panel { padding:16px; }
  .lobby .werf-bar { width:100%; }
}
@media(max-width:390px) {
  .lobby .pilot-panel { grid-template-columns:42px 1fr; }
  .lobby .launch { grid-column:1/-1; }
}

.lobby .main-wrap { pointer-events:none; }
.lobby :is(#map-view,#map-motion,.werf-bar,.loadout) { pointer-events:auto; }
