@font-face {
  font-family: Rubik;
  src: url('/assets/rubik-cyrillic.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Rubik;
  src: url('/assets/rubik-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: dark;
  font-family: Rubik, system-ui, sans-serif;
  --bg: #0a0a0c;
  --paper: #151518;
  --paper-raised: #222226;
  --line: #36363c;
  --line-bright: #686871;
  --text: #f4f1eb;
  --muted: #bdbbc1;
  --subtle: #96959d;
  --accent: #ff783d;
  --accent-strong: #ffae77;
  --map-accent: #e8a66d;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 320px;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(#ffffff08 .7px, transparent .9px);
  background-size: 6px 6px;
}
button, input { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  white-space: nowrap;
  clip-path: inset(50%);
  overflow: hidden;
}
.application { max-width: 1472px; margin: 0 auto; padding: 0 34px 34px; }
.topbar {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #39383d;
  margin-bottom: 22px;
}
.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 890;
  font-style: italic;
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  letter-spacing: -.045em;
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #191513;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.brand-icon i, .bomb-symbol {
  display: inline-block;
  position: relative;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: currentColor;
}
.brand-icon i { color: #26251b; transform: translate(-1px, 2px); }
.brand-icon i::after, .bomb-symbol::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(38deg);
  border-radius: 2px;
  left: 12px;
  top: -5px;
}
.brand-icon i::before {
  content: '';
  position: absolute;
  inset: 3px 7px 7px 3px;
  border-top: 1px solid #ffd590;
  border-left: 1px solid #ffd590;
  border-radius: 50%;
}
.topbar-tools { display: flex; align-items: center; gap: 8px; }
.tool-button, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: inset 0 1px #ffffff0b, 0 2px #090909;
  background: #1b1b1f;
  color: #eae9e3;
  padding: 0 13px;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
}
.tool-button:hover, .secondary:hover { background: #303036; border-color: #74737b; }
.profile-button { display: block; max-width: 13ch; overflow: hidden; text-overflow: ellipsis; }
.language-button { font-variant-numeric: tabular-nums; }
.sound-icon {
  width: 15px;
  height: 14px;
  flex: none;
  color: var(--accent);
  background: linear-gradient(currentColor,currentColor) 0 55% / 3px 6px,
              linear-gradient(currentColor,currentColor) 50% 55% / 3px 13px,
              linear-gradient(currentColor,currentColor) 100% 55% / 3px 9px;
  background-repeat: no-repeat;
}
#sound[aria-pressed="false"] .sound-icon { color: var(--subtle); background-size: 3px 2px; }
.question-icon {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid #85848c;
  border-radius: 50%;
  font-size: .68rem;
  color: #e4e2e2;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(244px, 284px) minmax(0, 1fr);
  grid-template-areas: "sidebar arena";
  gap: 22px;
  align-items: start;
}
.sidebar { grid-area: sidebar; display: grid; gap: 13px; min-width: 0; }
.panel, .arena-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 8px 20px #0004;
}
.panel { padding: 18px; }
.panel h2 {
  font-size: 1.12rem;
  letter-spacing: -.035em;
  font-weight: 620;
  margin-bottom: 15px;
}
.game-menu {
  padding-top: 17px;
  border-top: 3px solid var(--accent);
  background: linear-gradient(145deg,#202023,#141416 46%);
}
.mode-tabs {
  display: flex;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mode-tabs button {
  padding: 6px 12px;
  font-size: .85rem;
  font-weight: 620;
  min-height: 36px;
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
}
.mode-tabs button[aria-pressed="true"] {
  color: #fff3e5;
  border-color: var(--accent);
  background: linear-gradient(0deg,#ff793c14,transparent);
}
.arena-picker, .fighter-picker { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.arena-picker legend, .fighter-picker legend {
  color: #cfccd0;
  font: 650 .76rem/1.3 var(--mono);
  letter-spacing: .065em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0;
}
.map-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.map-choice {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 2px 7px;
  background: #111114;
  color: #c5c4ca;
  border: 1px solid #3c3c43;
  border-radius: 1px;
  font-weight: 560;
  font-size: .78rem;
}
.map-choice[aria-pressed="true"] {
  color: #fff;
  border-color: var(--map-ink);
  box-shadow: inset 0 -2px var(--map-ink);
  background: color-mix(in srgb,var(--map-ink) 12%,#151519);
}
.map-choice:hover { border-color: #aaa9b2; }
.map-choice canvas { display: block; max-width: 100%; width: 51px; height: auto; image-rendering: pixelated; }
.map-hint { color: var(--muted); margin-top: 8px; font-size: .83rem; line-height: 1.4; }
.menu-row, .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.menu-row { color: var(--muted); font-size: .88rem; min-height: 35px; }
.bot-controls {
  display: flex;
  gap: 1px;
  padding: 2px;
  border: 1px solid #44444a;
  background: #0d0d10;
}
.bot-controls button {
  background: #222227;
  border: 1px solid transparent;
  border-radius: 0;
  min-width: 32px;
  height: 30px;
  color: var(--muted);
  font: 650 .86rem var(--mono);
}
.bot-controls button[aria-pressed="true"] {
  background: #e9e5dc;
  color: #141418;
}
.bot-controls button:hover, .mode-tabs button:hover { border-color: #8c8a91; }
.primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 0;
  color: #190e0b;
  background: var(--accent);
  box-shadow: inset 0 2px #ffb07d, inset 0 -4px #ce4b22;
  clip-path: polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);
  font-size: .94rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.primary:hover:enabled {
  background: #ff945a;
}
.primary::after {
  position: absolute;
  content: '';
  right: 6px;
  top: 7px;
  width: 14px;
  height: 9px;
  background: repeating-linear-gradient(116deg, transparent 0 2px, #71331aa8 2px 4px);
  pointer-events: none;
}
.primary:active:enabled { background: #ed692f; box-shadow: inset 0 3px #bc4c20; }
.primary:focus-visible { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #19191c; }
.game-menu .primary { margin-top: 14px; }
.play-icon {
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-radius: 1px;
}
.fighter-console {
  display: grid;
  grid-template-columns: minmax(63px,.81fr) minmax(117px,1.19fr);
  border-block: 1px solid #39393e;
  min-width: 0;
  background: #121215;
}
.fighter-display {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 75%, color-mix(in srgb, var(--fighter) 18%, transparent), transparent 72%),
    repeating-linear-gradient(135deg,#19191e 0 7px,#1e1e23 7px 8px);
  border-right: 1px solid #37373e;
}
.fighter-display::before {
  position: absolute;
  content: '';
  inset: 7px;
  border: 1px solid #ffffff14;
  clip-path: polygon(0 0,16px 0,16px 2px,2px 2px,2px calc(100% - 2px),calc(100% - 2px) calc(100% - 2px),calc(100% - 2px) calc(100% - 16px),100% calc(100% - 16px),100% 100%,0 100%);
}
.fighter-display canvas { width: min(100%,102px); height: auto; filter: drop-shadow(0 4px 3px #09090b80); }
.fighter-options { display: grid; align-content: center; }
.fighter-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  min-width: 0;
  padding: 1px 4px 1px 8px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  text-align: left;
  font-size: .78rem;
  background: transparent;
  color: #c8c7ce;
}
.fighter-choice + .fighter-choice { border-top: 1px solid #2b2b30; }
.fighter-choice:hover { background: #27272c; color: #fff; }
.fighter-choice[aria-pressed="true"] {
  border-left-color: var(--fighter);
  color: #fffaf2;
  background: linear-gradient(95deg,color-mix(in srgb,var(--fighter) 18%,#202027),#222226);
}
.fighter-choice canvas { width: 21px; height: 21px; flex: none; }
.feedback, .hint {
  font-size: .86rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 12px;
}
.feedback[data-kind="error"] { color: #ffad96; }
.controls-panel { background: #101013; }
.controls-panel h2 { margin-bottom: 13px; }
.control-row { min-height: 31px; font-size: .88rem; color: var(--muted); }
.control-row + .control-row { margin-top: 8px; }
.key-group { display: inline-flex; gap: 4px; align-items: center; color: var(--subtle); }
kbd {
  color: #e8e7e3;
  font: 530 .76rem Rubik, sans-serif;
  line-height: 1;
  padding: 6px 6px;
  white-space: nowrap;
  border: 1px solid #48484f;
  border-radius: 5px;
  background: #25252a;
  box-shadow: 0 2px #09090b;
}
kbd.arrows { font-family: system-ui, sans-serif; font-weight: 650; letter-spacing: -.08em; }

.arena-panel { overflow: hidden; grid-area: arena; }
.arena-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  gap: 12px;
  background: #18181c;
  border-left: 4px solid var(--map-accent);
}
.arena-heading::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#19191d 4%,#19191ddd 29%,#19191d40 70%,#101012cc),url('/assets/reactor-art.webp') 55% 54% / cover;
  filter: grayscale(1);
}
.arena-title-block { display: grid; gap: 4px; }
.arena-title-block h1 {
  font-size: clamp(1.68rem,3vw,2.35rem);
  font-style: italic;
  font-weight: 810;
  letter-spacing: -.045em;
  text-transform: uppercase;
  line-height: 1.04;
}
.arena-phase { display: flex; align-items: center; gap: 7px; color: #d4d2d6; font-size: .83rem; }
.arena-phase i {
  width: 7px;
  height: 7px;
  background: #aaa8a5;
}
.arena-phase i.live {
  background: var(--accent);
}
.telemetry { display: flex; gap: 8px; align-items: center; }
.telemetry-item {
  min-width: 70px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 33px;
  font-size: .76rem;
  white-space: nowrap;
  color: #c8c5c9;
  font-family: var(--mono);
  background: #0b0b0ee8;
  border: 1px solid #56555c;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.telemetry-item b { color: var(--text); font-weight: 600; }
.telemetry-item.timer { font-size: .96rem; font-weight: 560; color: #f3efeb; letter-spacing: .035em; }
.stage-frame {
  background: #0d0d10;
  padding: 8px;
  border-block: 1px solid #38383f;
}
.stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #121215;
  outline: 1px solid #434249;
}
#arena {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 11;
  touch-action: none;
  user-select: none;
}
.hud {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  padding: 14px 19px;
  gap: 13px;
  background: #18181c;
}
.hud-health, .hud-stat { min-width: 0; display: flex; align-items: center; gap: 9px; }
.hud-health { flex-direction: column; align-items: flex-start; gap: 2px; }
.hud-stat { border-left: 1px solid #3b3b43; padding-left: 14px; }
.hud-tag { display: block; font-size: .7rem; font-weight: 610; letter-spacing: .07em; color: #bab8bf; }
.hud-stat b { display: block; font-size: 1rem; font-weight: 620; font-variant-numeric: tabular-nums; margin-top: 2px; }
.hearts { display: flex; gap: 5px; color: #ff927e; font: 600 1.28rem/1.16 system-ui, sans-serif; }
.hearts .empty { color: #505058; }
.stat-symbol {
  flex: 0 0 auto;
  font: normal 1.46rem/1 system-ui, sans-serif;
  text-align: center;
  color: var(--accent);
}
.hud-stat .bomb-symbol { width: 15px; height: 15px; margin-left: 2px; margin-right: 2px; }
.hud-stat .bomb-symbol::after { left: 10px; }
.range-symbol { color: #ff9071; }
.speed-symbol { color: #90ecdf; font-weight: 650; }

.field-label { display: block; font-size: .86rem; margin-bottom: 6px; color: var(--muted); }
input[type="text"], input[type="password"], input[type="url"], .lobby-setting select {
  color: var(--text);
  background: #101013;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  min-height: 40px;
  border: 1px solid #4b4b53;
  border-radius: 2px;
}
.lobby-browser {
  grid-area: arena;
  min-width: 0;
  background: linear-gradient(155deg,#202023,#141416 46%);
  border-top: 3px solid var(--accent);
  padding: clamp(14px, 2.3vw, 30px);
}
.browser-heading, .browser-filters, .lobby-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.browser-heading h1 {
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.06em;
}
.directory-tools { display: flex; align-items: center; gap: 10px; }
.directory-tools .lobby-seats { color: var(--muted); }
.lobby-form-row .secondary { flex: 0 0 auto; }
.browser-filters {
  flex-wrap: wrap;
  margin: 18px 0 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.browser-filters label { display: flex; gap: 6px; align-items: center; font-size: .875rem; color: var(--muted); }
#open-lobbies { margin: 0; accent-color: var(--accent); width: 16px; height: 16px; }
.lobby-map-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.lobby-map-filter .secondary { min-height: 35px; padding: 0 9px; font-size: .875rem; }
.lobby-map-filter [aria-pressed="true"] { color: var(--accent-strong); border-color: var(--accent); }
.directory-status { color: var(--muted); margin: 18px 0 6px; }
.directory-list { display: grid; gap: 6px; }
.directory-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(8px, 2vw, 24px);
  align-items: center;
  padding: 9px 10px 9px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lobby-accent);
  background: #19191d;
}
.directory-row h2, #lobby-title { overflow-wrap: anywhere; }
.directory-row h2 { margin: 0; font-size: 1rem; }
.directory-row p { color: var(--muted); margin-top: 4px; font-size: .875rem; }
.lobby-seats { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lobby-access { margin-bottom: 9px; color: var(--muted); font-size: .875rem; }
.invite-button { width: 100%; }
#invite-link { margin-top: 8px; }
.lobby-setting { margin: 14px 0 10px; }
.lobby-form-row { gap: 6px; }
.lobby-dialog {
  width: min(400px, calc(100% - 28px));
  border: 1px solid #514c4b;
  border-top: 3px solid var(--accent);
  border-radius: 2px;
  background: #19191d;
  padding: 20px;
  color: var(--text);
  box-shadow: 0 14px 45px #020202c0;
}
.lobby-dialog::backdrop { background: #070709d9; }
.lobby-dialog form { display: grid; gap: 10px; }
.lobby-dialog .field-label span:not(.field-main) { color: var(--muted); font-weight: normal; }
.lobby-dialog .field-label { margin-bottom: 0; }
.lobby-dialog #nickname { margin-top: -5px; }
.lobby-dialog .result-actions { margin-top: 6px; }
.roster { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.roster li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #37373e;
  border-radius: 2px;
  background: #19191c;
}
.roster-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seat); flex: 0 0 auto; }
.roster-face { width: 23px; height: 23px; object-fit: cover; border-radius: 5px; }
.roster-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; }
.roster-role { color: var(--muted); font-size: .79rem; white-space: nowrap; }
.roster-crown {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 29px;
  margin: -4px -4px -4px 0;
  color: #ffc76e;
}
.roster-crown svg { width: 22px; height: 22px; }
.crown-transfer { border: 1px solid #6c5437; border-radius: 2px; background: #28201b; padding: 0; }
.crown-transfer:hover, .crown-transfer:focus-visible { background: #3a2920; border-color: #ffc76e; }
@media (hover: hover) and (pointer: fine) {
  .roster li:not(:hover):not(:focus-within) .crown-transfer { opacity: 0; }
}
.roster li.out { opacity: .56; }
.exit {
  display: inline-block;
  margin-top: 15px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: .88rem;
}
.exit:hover { color: var(--accent-strong); }
.arena-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #050507bb;
}
.round-card {
  text-align: center;
  width: min(365px, 100%);
  padding: 24px;
  border: 1px solid #6a6664;
  border-radius: 3px;
  background: linear-gradient(145deg, #2c2a2b, #18181c 82%);
  box-shadow: 0 15px 60px #050505bb;
}
.result-mark { display: block; font: 500 2.3rem/1 system-ui, sans-serif; color: var(--accent); margin-bottom: 8px; }
.round-card h2 { font-size: clamp(1.38rem, 4vw, 2rem); font-weight: 720; letter-spacing: -.06em; }
.round-card p { color: var(--muted); margin: 8px 0 16px; font-size: .92rem; }
.result-actions { display: flex; gap: 8px; }
.result-actions .primary, .result-actions .secondary { min-height: 44px; }
.rules {
  width: min(530px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  border: 1px solid #524d4c;
  border-radius: 3px;
  background: #19191d;
  padding: 22px;
  box-shadow: 0 14px 45px #020202c0;
  color: var(--text);
}
.rules::backdrop { background: #070709d9; }
.rules-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rules-header button { min-width: 38px; padding: 0 8px; font-size: 1.3rem; }
.rules h2 { font-weight: 680; font-size: 1.5rem; letter-spacing: -.03em; }
.rules p { line-height: 1.48; color: #d7d4d8; margin-top: 12px; }
.rules h3 { font-size: 1.02rem; margin: 16px 0 8px; }
.pickup-list { margin: 0; padding: 0; list-style: none; }
.pickup-list li { display: flex; align-items: center; gap: 10px; min-height: 37px; }
.pickup-list canvas { width: 30px; height: 30px; flex: 0 0 auto; }
.touch-controls { display: none; }

@media (min-width: 1051px) {
  .application { max-width: clamp(930px, calc((100dvh - 287px) * 17 / 11 + 398px), 1472px); }
}
@media (max-width: 1050px) {
  .application { padding: 0 23px 24px; }
  .game-layout { grid-template-columns: minmax(226px, 244px) minmax(0, 1fr); gap: 14px; }
  .panel { padding: 15px; }
  .hud { gap: 6px; padding: 12px 12px; }
  .hud-stat { padding-left: 8px; gap: 7px; }
  .hud-tag { font-size: .64rem; }
}
@media (max-width: 790px) {
  .game-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "arena" "sidebar"; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-menu { grid-row: span 2; }
  .application { padding: 0 12px 20px; }
  .topbar { margin-bottom: 12px; min-height: 65px; }
  .arena-heading { min-height: 77px; padding: 10px 14px; }
  .stage-frame { padding: 6px; }
}
@media (max-width: 475px) {
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .brand-icon { width: 32px; height: 32px; }
  .wordmark { gap: 7px; font-size: 1.1rem; }
  .topbar-tools { gap: 5px; }
  .topbar-tools #help-button span:not(.question-icon), .topbar-tools #sound-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .profile-button { max-width: 10ch; }
  .tool-button { min-height: 34px; padding: 0 7px; font-size: .76rem; gap: 5px; }
  .telemetry { gap: 4px; }
  .telemetry-item { min-width: 56px; min-height: 30px; font-size: .68rem; }
  .telemetry-item.timer { font-size: .82rem; }

  .hud-stat { gap: 4px; padding-left: 6px; }
  .hud-tag { font-size: .58rem; letter-spacing: 0; }
  .stat-symbol { font-size: 1.1rem; }
  .hud-stat .bomb-symbol { margin: 0 2px 0 0; width: 11px; height: 11px; }
  .hud-stat .bomb-symbol::after { left: 6px; top: -4px; }
  .result-mark { font-size: 1.5rem; margin-bottom: 5px; }
  .round-card { padding: 14px; }
}
@media (pointer: coarse) {
  .touch-controls:not([hidden]) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 22px 14px;
    gap: 20px;
    border-top: 1px solid var(--line);
    user-select: none;
    touch-action: none;
  }
  .direction-pad { display: grid; grid-template: repeat(2, 40px) / repeat(3, 42px); gap: 4px; }
  .direction-pad button, .touch-bomb {
    border-radius: 2px;
    border: 1px solid #525259;
    background: #29292e;
    color: #f3f0eb;
    font-size: 1.5rem;
    touch-action: none;
  }
  .direction-pad button:active { background: var(--accent); color: #151515; }
  .pad-up { grid-area: 1 / 2; }
  .pad-left { grid-area: 2 / 1; }
  .pad-down { grid-area: 2 / 2; }
  .pad-right { grid-area: 2 / 3; }
  .touch-bomb { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: .97rem; color: #211711; font-weight: 750; background: var(--accent); border-color: #ffdcb2; }
}
