@charset "UTF-8";
:root {
  --bg:#10151d;
  --surface:#181f29;
  --surface-raised:#202a36;
  --ink:#edf1f5;
  --muted:#97a6b8;
  --border:#344151;
  --accent:#ff784c;
  --accent-dark:#f16436;
  --cyan:#61c8e8;
  --danger:#ff6767;
  --weapon-color:var(--accent);
  --sans:Inter,Pretendard,"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  color-scheme:dark;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
}

* { box-sizing:border-box; }
body { margin:0; min-width:360px; background:linear-gradient(135deg,#151d28 0,#10151d 55%); }
button,input,select { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; border:0; }
button:disabled { cursor:default; opacity:.4; }
button,a,input,select,canvas { outline-offset:3px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible { outline:2px solid var(--cyan); }
button svg,.icon-button svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:square; stroke-linejoin:miter; flex-shrink:0; }
a { color:inherit; text-decoration:none; }
[hidden] { display:none!important; }
.icon-definitions { position:absolute; width:0; height:0; overflow:hidden; }
.app-header { height:70px; display:flex; align-items:center; padding:0 3.2%; background:#121922; border-bottom:1px solid var(--border); gap:27px; }
.brand { display:flex; gap:12px; align-items:center; font-size:16px; line-height:1.05; font-weight:850; letter-spacing:1.4px; }
.brand-mark { height:38px; width:38px; border:1px solid #ff784c70; background:#ff784c0d; display:grid; place-items:center; color:var(--accent); }
.brand-mark svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.6; }
.brand-small { display:block; font-size:9px; letter-spacing:2.4px; margin-top:6px; color:#b6c2d1; }
.header-divider { height:25px; width:1px; background:var(--border); }
.header-tab { font-family:var(--mono); font-size:10px; letter-spacing:1px; font-weight:600; display:flex; gap:9px; align-items:center; color:#c6d0dc; }
.tiny-dot { width:5px; height:5px; background:var(--accent); display:inline-block; flex-shrink:0; }
.header-actions { display:flex; align-items:center; gap:9px; margin-left:auto; }
.version-tag { font-family:var(--mono); font-size:9px; letter-spacing:.8px; color:#8b9aab; margin-right:12px; }
.version-tag span { color:var(--accent); margin-left:6px; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:1px solid transparent; border-radius:3px; background:transparent; color:#a6b4c4; transition:background .15s,color .15s,border-color .15s; }
.icon-button:hover { background:#263240; border-color:#405168; color:#fff; }
.icon-button[aria-pressed=true] { color:var(--accent); border-color:#ff784c60; background:#ff784c12; }
.workspace { max-width:1800px; margin:0 auto; padding:25px 3.2% 0; }
.page-heading { display:flex; justify-content:flex-end; align-items:center; gap:24px; margin-bottom:23px; }
.eyebrow { font-family:var(--mono); font-size:9px; font-weight:600; letter-spacing:1.5px; color:#8e9eb1; margin-bottom:10px; }
h1 { font-size:clamp(23px,2vw,31px); letter-spacing:-1px; margin:0; font-weight:800; }
h1>span { color:var(--accent); margin-left:3px; }
.page-heading p { color:#9eacbd; font-size:12px; line-height:1.6; margin:8px 0 0; }
.page-actions { display:flex; gap:9px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:9px; border:1px solid transparent; border-radius:3px; height:40px; padding:0 16px; font-size:12px; font-weight:700; white-space:nowrap; transition:background .15s,border-color .15s; line-height:1.2; }
.button-secondary { background:#1d2733; border-color:#3c4c60; color:#d1dbe7; }
.button-secondary:hover { background:#2a3848; border-color:#627892; }
.button-dark { background:#2c3b4d; border-color:#526a85; color:#fff; }
.button-dark:hover { background:#384d64; border-color:#7d96af; }
.button-accent { background:var(--accent); color:#10151d; border-color:var(--accent); }
.button-accent:hover { background:#ff916d; border-color:#ffa382; }
.button-key { font-family:var(--mono); margin-left:4px; border:1px solid #4b5d73; border-radius:2px; font-size:9px; padding:2px 4px; color:#b9c6d6; }
.game-layout { display:grid; grid-template-columns:minmax(0,1fr) 282px; gap:18px; align-items:start; }
.arena-panel { border:1px solid #4a5b70; background:var(--surface); border-radius:4px; overflow:hidden; box-shadow:0 12px 38px #0003; align-self:start; }
.arena-toolbar { height:49px; display:flex; align-items:center; justify-content:space-between; padding:0 17px; background:#1b2531; }
.arena-title,.arena-info { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.status-light { width:6px; height:6px; background:var(--cyan); box-shadow:0 0 9px #61c8e83d; }
.arena-title strong { font-size:12px; font-weight:700; }
.round-label { color:#9baec3; font-family:var(--mono); font-size:9px; margin-left:8px; letter-spacing:.7px; }
.arena-info { gap:13px; }
.alive-label { font-size:10px; color:#b5c2d2; }
.toolbar-divider { height:14px; width:1px; background:#42536a; }
.timer { display:flex; align-items:center; gap:7px; color:#e2eaf3; font-size:14px; font-family:var(--mono); font-weight:600; }
.timer svg { width:14px; height:14px; fill:none; stroke:#8da4bd; stroke-width:1.5; }
.timer.urgent { color:var(--danger); }
.timer.urgent svg { stroke:var(--danger); }
.small { height:27px; width:27px; margin-right:-5px; }
.small svg { width:15px; height:15px; }
.arena-stage { position:relative; aspect-ratio:3/2; isolation:isolate; overflow:hidden; background:#121923; border-block:1px solid #405168; }
.arena-stage canvas { display:block; width:100%; height:100%; position:absolute; inset:0; touch-action:none; cursor:crosshair; }
.arena-corner { position:absolute; pointer-events:none; bottom:12px; left:13px; display:flex; gap:6px; align-items:center; color:#9badc0; font-size:7px; font-family:var(--mono); letter-spacing:1.3px; background:#10151dc9; border-left:2px solid #4c637b; padding:6px 8px; }
.arena-corner span { height:4px; width:4px; background:var(--accent); }
.arena-footer { height:39px; display:flex; justify-content:space-between; align-items:center; padding:0 15px; gap:8px; background:#171f29; }
.seed-label { display:flex; align-items:center; gap:9px; font-family:var(--mono); font-size:9px; min-width:0; }
.seed-label>span { font-size:8px; color:#91a2b8; letter-spacing:.7px; white-space:nowrap; }
.seed-label code { font-size:10px; color:#d2ddea; max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.text-button { color:#a2b8cf; font-size:9px; padding:3px 5px; background:transparent; border:1px solid #34465b; border-radius:2px; }
.text-button:hover { background:#2b3b4e; color:#fff; }
.arena-tip { font-size:9px; color:#a9b7c8; display:flex; align-items:center; gap:6px; }
.arena-tip .tiny-dot { width:4px; height:4px; }
.sidebar { display:flex; flex-direction:column; gap:11px; min-width:0; }
.side-card { background:#19222d; border:1px solid #36465a; border-radius:3px; overflow:hidden; }
.card-heading { display:flex; justify-content:space-between; align-items:center; padding:13px 14px 11px; }
.card-heading h2 { font-size:12px; letter-spacing:-.2px; margin:0; font-weight:750; }
.card-heading>span:not(.rarity-label) { font-family:var(--mono); font-size:9px; color:#9db0c5; }
.player-list { padding:0 8px 7px; }
.player-row { display:flex; align-items:center; gap:9px; padding:7px 7px; border-left:2px solid transparent; }
.player-row.self { background:#253242; border-left-color:var(--player-color); }
.player-avatar { height:25px; width:25px; display:flex; align-items:center; justify-content:center; flex-shrink:0; border:1px solid #ffffff17; background:#111a24; }
.player-dot { height:12px; width:12px; background:var(--player-color); border:1px solid #ffffffa0; border-radius:100%; box-shadow:0 0 9px color-mix(in srgb,var(--player-color) 30%,transparent); }
.player-row.dead .player-dot { opacity:.25; box-shadow:none; }
.player-name { font-size:10px; font-weight:700; color:#dde5ee; }
.player-name small { font-family:var(--mono); font-size:7px; color:var(--player-color); margin-left:5px; font-weight:500; }
.player-state { display:block; font-size:9px; color:#9aafc4; margin-top:3px; font-weight:400; }
.player-row.dead .player-name { color:#8b98a9; }
.player-row.dead .player-state { color:#d18a89; }
.player-score { font-family:var(--mono); font-size:17px; margin-left:auto; color:#f1f5fa; }
.player-score small { font-size:8px; color:#9aaabe; margin-left:3px; }
.match-rule { border-top:1px solid #344458; display:flex; align-items:center; gap:7px; padding:10px 14px; font-size:9px; color:#a6b7cb; line-height:1.6; }
.match-rule .tiny-dot { background:var(--cyan); width:4px; height:4px; }
.equipment-card .card-heading { padding-bottom:8px; }
.rarity-label { font-size:8px; border:1px solid #526478; border-radius:2px; padding:3px 6px; color:#b5c5d8; }
.rarity-label[data-rarity=rare] { color:#8fc1ff; border-color:#537fb4; }
.rarity-label[data-rarity=epic] { color:#caadff; border-color:#8263aa; }
.rarity-label[data-rarity=legendary] { color:#ffd18b; border-color:#a47a44; }
.equipment-body { display:grid; grid-template-columns:82px minmax(0,1fr); align-items:center; gap:9px; padding:0 14px 9px; }
.weapon-preview { position:relative; height:82px; display:flex; align-items:center; justify-content:center; overflow:hidden; color:var(--weapon-color,var(--accent)); border:1px solid #415167; background:linear-gradient(135deg,#223041,#121b26); }
.weapon-preview>svg { z-index:1; width:59px; height:59px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:square; stroke-linejoin:miter; }
.weapon-orbit { position:absolute; inset:6px; border-top:1px solid #8098b329; border-bottom:1px solid #8098b329; pointer-events:none; }
.weapon-badge { position:absolute; right:5px; bottom:2px; z-index:2; font-family:var(--mono); font-size:17px; color:var(--weapon-color,var(--accent)); text-shadow:0 1px 3px #000; }
.equipment-info { min-width:0; }
.weapon-details { display:flex; align-items:flex-start; gap:5px; flex-direction:column; }
.weapon-details h3 { margin:0; font-size:14px; font-weight:750; color:#f4f6f9; }
.weapon-details>span { font-size:9px; line-height:1.4; color:#a3b7cd; }
#weapon-description { font-size:10px; line-height:1.6; color:#b0bfd0; margin:8px 0 0; min-height:32px; word-break:keep-all; }
.weapon-telemetry { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 14px; padding:9px 0; border-top:1px solid #34465b; }
.ammo-readout { display:flex; align-items:center; gap:9px; }
.ammo-readout small { font-family:var(--mono); color:#8fa3ba; font-size:8px; letter-spacing:1px; }
#ammo-label { font-family:var(--mono); font-size:18px; line-height:1; color:#e8f0f8; }
#weapon-status { font-size:9px; line-height:1.5; text-align:right; color:var(--cyan); }
.spin-meter { appearance:none; display:block; width:calc(100% - 28px); height:3px; margin:0 14px 10px; border:0; background:#0e1620; color:var(--weapon-color,var(--accent)); }
.spin-meter::-webkit-progress-bar { background:#0e1620; }
.spin-meter::-webkit-progress-value { background:var(--weapon-color,var(--accent)); }
.spin-meter::-moz-progress-bar { background:var(--weapon-color,var(--accent)); }
.equipment-action { display:flex; align-items:center; justify-content:center; gap:9px; padding:6px 9px; background:#202e3e; border-top:1px solid #354a61; min-height:31px; color:#c1d0e0; font-size:10px; line-height:1.5; }
.equipment-action .mouse-key { flex-shrink:0; }
.equipment-action>span:last-child { min-width:0; overflow-wrap:anywhere; }
.mouse-key { font-family:var(--mono); font-size:8px; font-weight:600; line-height:1.2; color:#c8d5e5; border:1px solid #52667e; border-radius:2px; padding:3px 5px; background:#172332; white-space:nowrap; }
kbd { font-family:var(--mono); font-size:10px; color:#dfebf7; border:1px solid #52667e; border-bottom-width:2px; border-radius:2px; display:inline-flex; align-items:center; justify-content:center; min-width:23px; height:23px; padding:1px 6px; background:#223145; white-space:nowrap; }
.loadout-card .card-heading { padding-bottom:6px; }
.training-tag { color:var(--accent)!important; font-size:8px!important; letter-spacing:.8px; }
.loadout-hint { font-size:9px; color:#a6b7ca; margin:0 14px 10px; }
.loadout-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; padding:0 10px 9px; }
.loadout-grid button { display:flex; align-items:center; justify-content:center; gap:5px; height:33px; padding:0 3px; border:1px solid #41546d; border-radius:2px; background:#243246; color:#c8d6e6; font-size:9px; transition:background .15s,border-color .15s; }
.loadout-grid button svg { width:21px; height:21px; stroke-width:2; }
.loadout-grid button:hover { background:#344963; border-color:var(--accent); color:#fff; }
.loadout-grid button[aria-pressed=true] { border-color:var(--accent); color:var(--accent); background:#ff784c10; }
.shield-test { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; min-height:31px; background:#1b3444; border-top:1px solid #395a70; color:#8cdef4; font-size:10px; }
.shield-test svg { width:17px; height:17px; }
.shield-test small { font-size:8px; color:#a9c4d5; margin-left:6px; }
.shield-test:hover { background:#274a60; }
.control-strip { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:17px 2px 18px; font-size:10px; color:#b1c0d2; border-bottom:1px solid var(--border); }
.control-strip>span { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.controls-title { font-family:var(--mono); font-size:9px; letter-spacing:.8px; color:#91a5bd!important; }
.controls-title svg { height:18px; width:18px; fill:none; stroke:#9ab0ca; stroke-width:1.4; }
.control-strip .mouse-key { height:23px; display:flex; align-items:center; font-size:8px; }
.page-footer { display:flex; justify-content:space-between; padding:16px 0 22px; font-size:9px; color:#8497ae; gap:15px; }
.page-footer>span:first-child { font-family:var(--mono); font-size:8px; letter-spacing:.5px; }
.footer-slash { padding:0 9px; color:#526880; }
.creator-credit { font-size:9px; color:#9eacbd; white-space:nowrap; }
.game-overlay { position:absolute; inset:0; z-index:4; background:#0a101ab3; backdrop-filter:blur(2px); display:flex; align-items:center; justify-content:center; padding:20px; }
.overlay-card { position:relative; text-align:center; width:395px; max-width:100%; padding:28px 25px 24px; border:1px solid #62738b; border-top:3px solid var(--accent); background:#182331f2; border-radius:3px; box-shadow:0 14px 60px #0006; }
.overlay-eyebrow { font-family:var(--mono); font-size:8px; letter-spacing:1.5px; color:#a3b7cd; }
.overlay-emblem { width:54px; height:54px; display:grid; place-items:center; margin:22px auto 17px; color:var(--accent); background:#ff784c08; border:1px solid #ff784c60; }
.overlay-emblem svg { width:33px; height:33px; stroke:currentColor; stroke-width:1.4; fill:none; }
.overlay-card h2 { font-size:28px; letter-spacing:-1px; font-weight:800; margin:0 0 12px; }
.overlay-card p { white-space:pre-line; font-size:12px; line-height:1.8; color:#b5c4d7; margin:0 0 23px; word-break:keep-all; }
.overlay-card .button { height:42px; width:185px; justify-content:space-between; padding:0 17px; }
.overlay-hint { display:block; font-size:9px; color:#96abc3; margin:15px 0 0; line-height:1.6; word-break:keep-all; }
.arena-notice { color:#e5f2ff; font-variant-numeric:tabular-nums; }
.pickup-prompt { position:absolute; z-index:3; bottom:24px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:8px; padding:6px 11px 6px 6px; background:#1b2a3cef; border:1px solid #7994b1; box-shadow:0 3px 15px #0004; border-radius:2px; white-space:nowrap; pointer-events:none; font-size:10px; color:#e6f0fc; }
.modal { border:1px solid #586d87; border-top:3px solid var(--accent); border-radius:4px; padding:26px; width:490px; max-width:calc(100vw - 30px); background:#182330; color:var(--ink); box-shadow:0 20px 100px #0008; max-height:calc(100vh - 40px); overflow:auto; scrollbar-width:thin; scrollbar-color:#4d6581 #182330; }
.modal::backdrop { background:#080f1abf; backdrop-filter:blur(3px); }
.modal-header { display:flex; justify-content:space-between; align-items:center; }
.modal-header h2 { font-size:24px; margin:0; font-weight:800; letter-spacing:-.6px; }
.modal-header .eyebrow { font-size:8px; margin-bottom:7px; color:#91acc8; }
.modal-header>.icon-button { align-self:flex-start; margin:-8px -8px 0 0; }
.modal-intro { font-size:11px; line-height:1.6; color:#a8bcd2; margin:10px 0 22px; }
.settings-group { border:0; margin:0 0 19px; padding:0; }
.settings-group legend,.settings-field { font-size:11px; font-weight:650; color:#d2dfed; }
.settings-group legend { padding:0; margin-bottom:10px; }
.settings-section { min-width:0; border:1px solid #374c64; border-radius:3px; padding:4px 14px 14px; margin-top:18px; }
.settings-section legend { padding:0 6px; margin-left:-6px; }
.settings-section>.settings-field+.settings-field { margin-top:16px; }
.settings-section>.checkbox-field { margin:0; padding:13px 0; }
.settings-section>.checkbox-field:last-child { border-bottom:0; padding-bottom:2px; }
.segmented { background:#101a26; border:1px solid #40566e; border-radius:3px; display:flex; padding:3px; gap:3px; }
.segmented label { flex:1; position:relative; cursor:pointer; }
.segmented input { position:absolute; opacity:0; width:100%; height:100%; margin:0; }
.segmented label span { display:flex; justify-content:center; align-items:center; border:1px solid transparent; border-radius:2px; font-size:10px; height:32px; color:#a7bbd2; transition:background .15s,color .15s; }
.segmented input:checked+span { background:#354b65; border-color:#6483a5; color:#fff; }
.segmented input:focus-visible+span { outline:2px solid var(--cyan); }
.field-hint { font-size:9px; line-height:1.6; color:#9bb1ca; margin:9px 0 0; }
.settings-row { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.settings-field { display:flex; flex-direction:column; gap:9px; }
.settings-field select,.settings-field input { height:39px; border:1px solid #506780; background:#111c29; border-radius:2px; padding:0 11px; font-size:11px; color:#e1ecf9; min-width:0; width:100%; }
.settings-field select { cursor:pointer; appearance:none; -webkit-appearance:none; padding-right:40px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%239cacc0' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; background-size:12px; }
.settings-field input[type="number"] { transition:color .15s, background-color .15s, border-color .15s; }
.settings-field input[type="number"]:disabled { color:#65758a; -webkit-text-fill-color:#65758a; background:#131c27; border-color:#344357; opacity:1; cursor:not-allowed; }
.starting-weapon-field { margin-bottom:5px; }
.checkbox-field { position:relative; display:flex; align-items:center; justify-content:space-between; margin:16px 0 20px; padding:14px 0; border-bottom:1px solid #374c64; gap:20px; cursor:pointer; }
.checkbox-field strong { display:block; font-size:11px; color:#d3e0ef; }
.checkbox-field div>span { display:block; font-size:9px; line-height:1.6; color:#9eb4cf; margin-top:5px; }
.checkbox-field>input { position:absolute; right:0; width:34px; height:22px; opacity:0; }
.switch { width:33px; height:19px; border:1px solid #59718c; border-radius:2px; background:#24354a; flex-shrink:0; position:relative; transition:background .15s; }
.switch:after { content:""; position:absolute; top:3px; left:3px; width:11px; height:11px; border-radius:1px; background:#9fb2c8; transition:transform .15s; }
.checkbox-field input:checked+.switch { background:#a2452b; border-color:var(--accent); }
.checkbox-field input:checked+.switch:after { transform:translateX(13px); background:#fff0e8; }
.checkbox-field input:focus-visible+.switch { outline:2px solid var(--cyan); }
.respawn-field { transition:opacity .15s; }
.respawn-field.is-disabled { opacity:.4; cursor:not-allowed; }
.seed-field>label>span { font-size:9px; color:#9bb1c9; font-weight:400; margin-left:7px; }
.seed-field>div { display:flex; align-items:center; background:#111c29; border:1px solid #506780; border-radius:2px; padding-right:3px; }
.seed-field input { border:0; font-family:var(--mono); background:transparent; }
.seed-field .icon-button { flex-shrink:0; height:31px; width:31px; }
.settings-note { margin:18px 0; display:flex; gap:9px; color:#a7bed7; font-size:9px; line-height:1.8; }
.settings-note>svg { width:15px; height:15px; fill:none; stroke:var(--cyan); stroke-width:1.5; flex-shrink:0; margin-top:2px; }
.modal-submit { width:100%; justify-content:space-between; }
.settings-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
.settings-actions .button { width:100%; justify-content:center; }
.input-unit { display:flex; align-items:center; width:100%; position:relative; }
.input-unit input { width:100%; padding-right:42px!important; }
.input-unit>span { position:absolute; right:14px; width:12px; text-align:center; pointer-events:none; color:#9cacc0; font-size:12px; }
.input-unit input[type="number"] { appearance:textfield; -moz-appearance:textfield; }
.input-unit input::-webkit-inner-spin-button,.input-unit input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.rarity-weight-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.rarity-weight-grid input { width:100%; min-width:0; }
.help-modal { width:540px; }
.help-modal .modal-header { margin-bottom:23px; }
.guide-row { display:flex; gap:15px; margin:20px 0; }
.guide-number { font-family:var(--mono); font-size:10px; line-height:1.9; color:var(--accent); }
.guide-row h3 { margin:0 0 7px; font-size:12px; font-weight:750; color:#e6eef7; }
.guide-row p { font-size:11px; line-height:1.8; color:#aec2d9; margin:0; word-break:keep-all; }
.guide-row p+p { margin-top:8px; }
.guide-row>div { min-width:0; }
.manual-intro { margin-bottom:20px; padding:12px 14px; border:1px solid #374c64; border-radius:3px; }
.manual-intro p { margin:0; font-size:11px; line-height:1.8; color:#aec2d9; word-break:keep-all; }
.manual-intro p+p { margin-top:6px; }
.manual-facts { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.manual-facts span { padding:5px 8px; border:1px solid #374c64; border-radius:3px; background:#101923; color:#ffd3a7; font-size:11px; line-height:1.5; font-variant-numeric:tabular-nums; }
.manual-details { margin:0; }
.manual-weapon .manual-details p { margin:0; font-size:12px; line-height:1.85; color:#bdcddd; word-break:keep-all; overflow-wrap:anywhere; }
.manual-weapon .manual-details p+p { margin-top:0; }
.manual-weapon .manual-details p:first-child { color:#e3ecf6; }
.help-modal .modal-submit { margin-top:13px; }
.toast { position:fixed; bottom:27px; left:50%; transform:translateX(-50%); z-index:10; background:#23354aef; color:#eff6ff; border:1px solid #6c87a6; border-left:3px solid var(--accent); padding:12px 20px; border-radius:3px; font-size:12px; box-shadow:0 6px 25px #0005; max-width:calc(100vw - 30px); }
.player-row .shield-state { color:var(--cyan); }
.side-card,button { user-select:none; }
.paused .status-light { background:var(--accent); box-shadow:0 0 8px #ff784c33; }

@media(min-width:1700px) {
  .game-layout { grid-template-columns:minmax(0,1fr) 304px; gap:22px; }
  .sidebar { gap:13px; }
  .player-row { padding:9px 8px; }
  .equipment-body { grid-template-columns:92px minmax(0,1fr); }
  .weapon-preview { height:92px; }
  .weapon-preview>svg { width:66px; height:66px; }
}

@media(max-width:1150px) {
  .workspace { padding:23px 23px 0; }
  .app-header { padding:0 23px; }
  .game-layout { grid-template-columns:minmax(0,1fr) 253px; gap:14px; }
  .card-heading { padding:12px 12px 10px; }
  .equipment-body { grid-template-columns:72px minmax(0,1fr); padding:0 12px 8px; gap:8px; }
  .weapon-preview { height:77px; }
  .weapon-preview>svg { width:53px; height:53px; }
  .weapon-details h3 { font-size:13px; }
  #weapon-description { font-size:9px; }
  .player-row { gap:7px; padding:6px; }
  .match-rule { padding:9px 12px; font-size:8px; }
  .arena-toolbar { padding:0 13px; }
  .arena-info { gap:9px; }
  .round-label { margin-left:3px; font-size:8px; }
  .alive-label { display:none; }
  .page-heading p { max-width:420px; font-size:11px; }
  .arena-tip { font-size:8px; }
  .controls-title { display:none!important; }
  .control-strip { justify-content:center; gap:11px 20px; font-size:9px; }
}

@media(max-width:850px) {
  .app-header { height:64px; }
  .header-divider { display:none; }
  .header-tab { font-size:9px; }
  .game-layout { grid-template-columns:1fr; }
  .sidebar { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .players-card { grid-column:1; grid-row:1; }
  .equipment-card { grid-column:2; grid-row:1; }
  .loadout-card { grid-column:1/-1; }
  .loadout-grid { grid-template-columns:repeat(6,minmax(0,1fr)); padding-bottom:10px; }
  .loadout-grid button { height:36px; }
  .loadout-hint { margin-bottom:9px; }
  .shield-test { min-height:31px; }
  .page-heading { gap:14px; }
  .page-heading p { max-width:380px; }
  .page-actions { gap:7px; }
  .page-actions .button { font-size:10px; height:37px; padding:0 11px; }
  .page-actions svg { width:15px; height:15px; }
  .button-key { display:none; }
  .header-actions { gap:5px; }
  .version-tag { font-size:8px; margin-right:4px; }
}

@media(max-width:580px) {
  .workspace { padding:21px 14px 0; }
  .app-header { padding:0 15px; gap:15px; }
  .header-tab { display:none; }
  .brand { font-size:14px; }
  .brand-small { font-size:8px; }
  .brand-mark { width:33px; height:33px; }
  .version-tag { font-size:7px; }
  .page-heading { flex-wrap:wrap; margin-bottom:16px; gap:13px; }
  .page-heading h1 { font-size:25px; }
  .page-heading .eyebrow { font-size:7px; }
  .page-heading p { font-size:10px; }
  .page-actions { padding:0; width:100%; justify-content:flex-end; }
  .page-actions .button { height:34px; }
  .arena-toolbar { height:43px; padding:0 10px; }
  .arena-title { gap:7px; }
  .arena-title strong { font-size:10px; }
  .round-label { font-size:7px; }
  .timer { font-size:11px; gap:4px; }
  .arena-info { gap:6px; }
  .arena-footer { padding:0 9px; height:35px; }
  .arena-tip { display:none; }
  .seed-label { gap:7px; }
  .arena-stage { min-height:0; aspect-ratio:3/2; }
  .overlay-card { width:280px; padding:17px 15px 16px; }
  .overlay-eyebrow { font-size:7px; letter-spacing:1px; }
  .overlay-emblem { display:none; }
  .overlay-card h2 { font-size:23px; margin:13px 0 8px; }
  .overlay-card p { font-size:10px; line-height:1.65; margin-bottom:14px; }
  .overlay-card .button { height:35px; font-size:11px; }
  .overlay-hint { font-size:8px; margin-top:11px; }
  .sidebar { gap:9px; }
  .card-heading { padding:11px 10px 9px; }
  .card-heading h2 { font-size:11px; }
  .card-heading>span:not(.rarity-label) { font-size:8px; }
  .player-list { padding:0 5px 6px; }
  .player-row { gap:6px; padding:6px 4px; }
  .player-avatar { width:22px; height:22px; }
  .player-name { font-size:9px; }
  .player-name small { font-size:6px; margin-left:3px; }
  .player-score { font-size:14px; }
  .player-score small { font-size:7px; }
  .player-state { font-size:8px; }
  .match-rule { font-size:7px; line-height:1.6; padding:9px 8px; }
  .equipment-body { grid-template-columns:1fr; padding:0 10px 8px; gap:7px; }
  .weapon-preview { height:61px; }
  .weapon-preview>svg { width:53px; height:53px; }
  .weapon-details { flex-direction:row; justify-content:space-between; align-items:center; gap:5px; }
  .weapon-details h3 { font-size:11px; }
  .weapon-details>span { font-size:8px; text-align:right; }
  #weapon-description { font-size:8px; line-height:1.6; margin-top:5px; min-height:25px; }
  .weapon-telemetry { margin:0 10px; padding:7px 0; }
  .ammo-readout { gap:6px; }
  .ammo-readout small { font-size:7px; }
  #ammo-label { font-size:15px; }
  #weapon-status { font-size:8px; }
  .spin-meter { width:calc(100% - 20px); margin:0 10px 8px; }
  .equipment-action { font-size:8px; min-height:28px; gap:5px; }
  .equipment-action .mouse-key { font-size:7px; padding:2px 3px; }
  .loadout-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .loadout-grid button { height:34px; font-size:10px; }
  .loadout-grid button svg { width:24px; height:24px; }
  .control-strip { font-size:8px; gap:10px 14px; padding:15px 0; }
  .control-strip>span { gap:5px; }
  .control-strip kbd,.control-strip .mouse-key { height:20px; font-size:8px; }
  .page-footer { flex-direction:column; gap:9px; align-items:center; padding:15px 0; }
  .page-footer>span:first-child { font-size:7px; }
  .modal { padding:22px; }
  .seed-field>label>span { font-size:8px; margin-left:3px; }
  .settings-note { font-size:8px; }
  .arena-corner { font-size:5px; left:8px; bottom:8px; letter-spacing:.8px; }
  .pickup-prompt { bottom:12px; font-size:9px; }
}

/* Keep the complete desktop training surface inside the viewport at 100%.
   The stage keeps the world's 3:2 ratio and scales to either available axis. */
@media(min-width:851px) {
  body { height:100vh; height:100svh; overflow:hidden; }
  .app-header { height:48px; padding:0 max(24px,calc((100vw - 1172px)/2)); gap:20px; }
  .brand { font-size:13px; gap:9px; }
  .brand-mark { width:30px; height:30px; }
  .brand-mark svg { width:22px; height:22px; }
  .brand-small { font-size:7px; letter-spacing:2px; margin-top:4px; }
  .header-tab { font-size:9px; }
  .workspace { max-width:1220px; height:calc(100vh - 48px); height:calc(100svh - 48px); padding:12px 24px 8px; display:grid; grid-template-rows:56px minmax(0,1fr) 34px 22px; row-gap:8px; }
  .page-heading { margin:0; gap:18px; }
  .page-heading .eyebrow { display:none; }
  .page-heading h1 { font-size:24px; }
  .page-heading p { margin-top:5px; font-size:11px; line-height:1.5; }
  .page-actions { padding:0; }
  .page-actions .button { height:34px; }
  .game-layout { min-height:0; grid-template-columns:minmax(0,1fr) 272px; gap:14px; align-items:start; }
  .arena-panel { width:min(100%,calc((100vh - 276px)*1.5 + 2px)); width:min(100%,calc((100svh - 276px)*1.5 + 2px)); justify-self:center; }
  .arena-toolbar { height:40px; padding:0 12px; }
  .arena-title { gap:8px; }
  .arena-title strong { font-size:11px; }
  .arena-info { gap:9px; }
  .round-label { font-size:8px; margin-left:3px; }
  .arena-footer { height:30px; padding:0 11px; }
  .arena-tip { font-size:8px; }
  /* Cards must keep their content height. Shrinking auto tracks here clips
     their footers because each card hides overflow. Scroll the sidebar instead. */
  .sidebar { height:100%; max-height:663px; display:grid; grid-auto-rows:max-content; align-content:start; gap:8px; min-height:0; overflow-y:auto; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#475b74 transparent; }
  .side-card { min-height:0; }
  .card-heading,.equipment-card .card-heading,.loadout-card .card-heading { min-height:28px; padding:7px 11px 6px; }
  .card-heading h2 { font-size:11px; }
  .player-list { padding:0 7px 4px; }
  .player-row { height:26px; padding:3px 5px; gap:8px; }
  .player-avatar { width:20px; height:20px; }
  .player-dot { width:10px; height:10px; }
  .player-state { display:none; }
  .player-name { font-size:10px; }
  .player-score { font-size:15px; }
  .match-rule { padding:6px 11px; font-size:8px; line-height:1.5; }
  .equipment-body { grid-template-columns:60px minmax(0,1fr); gap:9px; padding:0 11px 6px; }
  .weapon-preview { height:60px; }
  .weapon-preview>svg { width:46px; height:46px; }
  .weapon-details h3 { font-size:13px; }
  .weapon-details>span { font-size:8px; }
  .weapon-details { gap:2px; }
  #weapon-description { font-size:9px; line-height:1.5; margin-top:4px; min-height:27px; max-height:27px; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
  .weapon-telemetry { margin:0 11px; padding:7px 0; }
  #ammo-label { font-size:15px; }
  #weapon-status { font-size:8px; }
  .spin-meter { width:calc(100% - 22px); margin:0 11px 5px; }
  .equipment-action { min-height:26px; font-size:9px; }
  .equipment-action .mouse-key { font-size:7px; padding:2px 4px; }
  .loadout-hint { margin:0 11px 6px; font-size:8px; }
  .loadout-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:0 8px 8px; }
  .loadout-grid button { height:28px; font-size:8px; gap:3px; }
  .loadout-grid button svg { width:17px; height:17px; }
  .control-strip { padding:4px 0; gap:8px; font-size:9px; flex-wrap:nowrap; }
  .control-strip>span { gap:5px; }
  .control-strip kbd,.control-strip .mouse-key { height:21px; font-size:8px; }
  .page-footer { padding:4px 0; align-items:center; }
  .page-footer>span:first-child { font-size:7px; }
  .creator-credit { font-size:8px; }
  .overlay-card { width:350px; padding:20px; }
  .overlay-emblem { width:42px; height:42px; margin:14px auto; }
  .overlay-emblem svg { width:27px; height:27px; }
  .overlay-card h2 { font-size:25px; margin-bottom:10px; }
  .overlay-card p { font-size:11px; margin-bottom:17px; }
  .overlay-hint { margin-top:12px; font-size:8px; }
}

@media(min-width:851px) and (max-width:1050px) {
  .workspace { padding-inline:16px; }
  .game-layout { grid-template-columns:minmax(0,1fr) 250px; gap:10px; }
  .page-heading p { font-size:10px; }
  .control-strip { font-size:8px; }
  .arena-tip { display:none; }
}

@media(min-width:851px) and (max-height:700px) {
  .sidebar { grid-template-rows:max-content max-content max-content; align-content:start; }
  .player-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px; }
  .player-row { gap:5px; }
  .player-avatar { width:16px; height:16px; }
  .player-name { font-size:9px; }
  .player-name small { display:none; }
  .player-score { font-size:13px; }
  .overlay-emblem { display:none; }
  .overlay-card { padding:16px 20px; }
}

@media(max-width:850px) and (min-width:581px) {
  .loadout-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

@media(prefers-reduced-motion:reduce) {
  * { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}

/* v0.3 field manual */
.help-modal { width:720px; }
.help-tabs { display:flex; gap:8px; margin-bottom:20px; border-bottom:1px solid var(--border); padding-bottom:10px; }
.help-tabs button { cursor:pointer; border:1px solid #4d6581; border-radius:3px; padding:10px 16px; background:#17222d; color:#bacbdd; font:inherit; font-size:12px; }
.help-tabs button[aria-selected="true"] { background:#ff764c; color:#121b25; border-color:#ff764c; font-weight:700; }
.help-tabs button:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.help-modal [hidden] { display:none !important; }
.manual-weapon { padding:16px 0; border-bottom:1px solid var(--border); }
.manual-weapon h3 { display:flex; align-items:center; gap:10px; margin:0 0 10px; font-size:15px; }
.manual-weapon svg { width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:2; }
.manual-weapon h3 small { margin-left:auto; font-size:11px; color:#b3c6df; }
.manual-weapon p { font-size:12px; line-height:1.85; margin:8px 0; color:#bdcddd; word-break:keep-all; }
.manual-weapon .manual-specs { color:#ffd3a7; background:#101923; padding:10px 12px; border-left:2px solid #ff764c; font-variant-numeric:tabular-nums; }

/* Equipment visibility and rarity use the same palette in every loadout. */
.player-score.minion-tag { font-family:var(--sans); font-size:11px; font-weight:500; letter-spacing:0; }
.player-row { height:auto; min-height:38px; }
.player-name { min-width:0; flex:1; }
.player-equipment { display:block; font-family:var(--sans); font-size:9px; font-weight:400; color:#bcc8d5; line-height:1.6; white-space:normal; overflow-wrap:anywhere; }
.player-list { max-height:260px; overflow-y:auto; scrollbar-width:thin; }
[data-rarity="basic"] { --rarity-color:#818b96; }
[data-rarity="common"] { --rarity-color:#d4dce5; }
[data-rarity="rare"] { --rarity-color:#65b5ff; }
[data-rarity="epic"] { --rarity-color:#bb8fff; }
[data-rarity="legendary"] { --rarity-color:#ffa454; }
.loadout-grid button[data-rarity] { color:var(--rarity-color); border-color:var(--rarity-color); background:#202b38; }
.loadout-grid button[data-rarity="basic"] { background:#191f26; border-color:#505a65; color:#818b96; }
.loadout-grid button[data-rarity]:hover { background:#324052; color:var(--rarity-color); }
.loadout-grid button[data-rarity][aria-pressed="true"] { color:var(--rarity-color); outline:1px solid var(--rarity-color); outline-offset:1px; background:#303b49; }
.player-equipment[data-rarity] { color:var(--rarity-color); }
#weapon-status { white-space:normal; overflow-wrap:anywhere; }
#arena-notice.flight-urgent { color:#ffe0bc; }
#weapon-status.flight-urgent { color:#ffb480; }

/* Short weapon overview, with numbers separated from the description. */
#weapon-description { display:block; font-size:11px; line-height:1.65; min-height:0; max-height:none; overflow:visible; -webkit-line-clamp:unset; margin:7px 0; }
.equipment-body { align-items:start; }
.equipment-info { min-width:0; }
.weapon-specs { display:flex; flex-wrap:wrap; gap:4px 6px; margin-top:8px; }
.weapon-specs span { display:inline-block; padding:3px 5px; border:1px solid #405168; border-radius:3px; color:#c5d2df; font-size:9px; line-height:1.4; }
.training-tag { font-family:var(--sans); letter-spacing:0; }
.match-rule { min-width:0; flex-wrap:wrap; overflow-wrap:anywhere; }
.weapon-telemetry { flex-wrap:wrap; }
.ammo-readout { min-width:0; flex-wrap:wrap; }
#weapon-status { flex:1 1 90px; min-width:0; }

.page-actions { flex-wrap:wrap; justify-content:flex-end; }
#network-ping { font-family:var(--mono); font-size:10px; font-weight:500; padding-left:7px; border-left:1px solid #10151d50; }
.online-modal { width:500px; }
.online-rules { min-width:0; margin:14px 0; }
.online-rules:disabled { opacity:0.7; }
.online-rules input[type="number"] { width:100%; min-width:0; }
.online-rules .settings-row { margin-bottom:12px; }
.online-connection { color:#8bd4bc; font-size:12px; margin:16px 0 10px; }
.online-error { color:#ffb398; font-size:12px; line-height:1.6; margin:0 0 12px; }
.online-error:empty { display:none; }
.online-server-settings { margin:16px 0; color:#9fb0c4; font-size:11px; }
.online-server-settings summary { cursor:pointer; margin-bottom:10px; }
.online-create-options { display:flex; align-items:end; gap:20px; margin:16px 0; }
.online-create-options .settings-field { flex:1; }
.online-checkbox { display:flex; align-items:center; gap:6px; font-size:11px; margin-bottom:10px; }
.online-checkbox input { accent-color:var(--accent); }
.online-wide { width:100%; justify-content:center; }
#online-room-settings + #online-start,
.online-room-actions + #online-settings-save { margin-top:16px; }
.online-divider { text-align:center; color:#8295ad; font-size:11px; margin:20px 0; }
.online-join-row { display:flex; align-items:end; gap:10px; }
.online-join-row .settings-field { flex:1; min-width:0; }
#online-code { text-transform:uppercase; letter-spacing:4px; font:700 18px var(--mono); }
.online-code-card { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:18px 14px; background:#111b27; border:1px solid #4b6178; }
.online-code-card>span { color:#9bb0c7; font-size:11px; }
.online-code-card strong { flex:1; letter-spacing:4px; font:700 26px var(--mono); color:#ffb07b; }
.online-members { list-style:none; margin:18px 0; padding:0; }
.online-members li { display:flex; justify-content:space-between; gap:12px; padding:12px 4px; border-bottom:1px solid #34465b; font-size:12px; }
.online-members li>span:last-child { color:#9fb2c7; font-size:11px; white-space:nowrap; }
.online-members small { margin-left:8px; color:#ffae7f; font-size:10px; }
.online-room-actions { display:flex; justify-content:space-between; gap:10px; margin-top:12px; }
#online-settings-actions.is-playing { justify-content:center; }
#online-settings-actions.is-playing #online-settings-back { width:100%; min-height:44px; justify-content:center; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media (min-width:851px) { .workspace { grid-template-rows:minmax(56px,max-content) minmax(0,1fr) 34px 22px; } }

/* Status shares the existing toolbar, between the round and alive count. */
.arena-toolbar { gap:10px; }
.arena-title,.arena-info { flex-shrink:0; }
#arena-notice { flex:1; min-width:0; margin:0; padding:3px 8px; border:1px solid #6bcde5; border-radius:4px; background:linear-gradient(100deg,#194558,#203646); box-shadow:inset 3px 0 #8deaff,0 0 8px #61c8e822; color:#f1fcff; font-size:12px; font-weight:750; font-variant-numeric:tabular-nums; line-height:20px; text-align:center; white-space:nowrap; overflow-x:auto; scrollbar-width:none; }
#arena-notice::-webkit-scrollbar { display:none; }
#arena-notice:focus-visible { outline:2px solid #a5eaff; outline-offset:-2px; }
.arena-panel { container-type:inline-size; container-name:arena; }
@container arena (max-width:650px) {
  .arena-toolbar.has-status #mode-label,.arena-toolbar.has-status .status-light { display:none; }
  .arena-toolbar.has-status .round-label { margin-left:0; }
  .arena-toolbar.has-status { gap:6px; }
  #arena-notice { padding-inline:6px; font-size:11px; }
}
.loadout-grid [data-loadout="barricade"] span,.loadout-grid [data-loadout="wind"] span,.loadout-grid [data-loadout="shoes"] span { line-height:1.15; }
.room-chat { padding-bottom:12px; }
.chat-messages { height:150px; overflow-y:auto; padding:0 14px; font-size:12px; line-height:1.65; overflow-wrap:anywhere; user-select:text; }
.chat-message { margin:5px 0; }
.chat-message strong { color:var(--cyan); margin-right:6px; }
.chat-form { display:flex; gap:6px; padding:8px 12px 0; }
.chat-form input { min-width:0; width:100%; background:var(--surface); color:var(--ink); border:1px solid #4a5b70; border-radius:3px; padding:8px; }
.chat-form button { padding:6px 10px; flex-shrink:0; }
