:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #eef2f8; background: #000; }
*, *::before, *::after { box-sizing: border-box; }
html, body, #stage { margin: 0; width: 100%; height: 100%; overflow: hidden; }
[hidden] { display: none !important; }
#view { display: block; position: absolute; inset: 0; width: 100%; height: 100%; outline: none; }
#hallucination-readout {
  position: absolute; z-index: 3; top: .8rem; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 2rem); padding: .45rem .75rem; border-radius: .3rem;
  background: #161017df; color: #fff2df; font: 600 .75rem/1.4 system-ui, sans-serif; text-align: center;
  pointer-events: none;
}
#hallucination-readout:empty, [data-mode=captured] #hallucination-readout { display: none; }
.glass { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 51% 47%, transparent 35%, #02030a74 91%, #000d 100%); }
.glass::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,#01010800 0px 2px,#01010846 3px 4px); opacity: .10; }
[data-mode=running] .glass { background: radial-gradient(ellipse at 51% 48%, transparent calc(48% - 13% * var(--motion, 0)), #01010790 89%, #000e 100%); }
[data-mode=running] .glass::after { opacity: calc(.12 + .26 * var(--motion, 0)); }
[data-variant=arachnofobio]:is([data-mode=running], [data-death-sequence]) .glass { background: radial-gradient(ellipse at 51% 48%, transparent 53%, #01010738 89%, #0008 100%); }
[data-death-sequence] .glass::after { content: none; }
#stage[data-variant=arachnofobio][data-mode=running]:not([data-death-sequence]) .glass::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 50% 48%, transparent 58%, #480b151b 80%, #73172546 100%);
  transition: opacity .38s ease-out;
}
#stage[data-variant=arachnofobio][data-mode=running][data-stress] .glass::before { opacity: .78; transition-duration: .22s; }
#stage[data-hit=true] .glass { background: radial-gradient(ellipse at center, transparent 26%, #4f0909a9 100%); }
#overlay { position: absolute; inset: 0; display: grid; align-items: end; background: linear-gradient(0deg, #020308 0%, #03040bd9 14%, #03040b20 54%, transparent 74%); }
.panel { padding: 4vh clamp(24px, 6vw, 104px) clamp(26px, 7vh, 80px); }
.eyebrow { margin: 0 0 .65rem; color: #a7bcda; font: 650 .69rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .25em; }
h1 { font: 750 clamp(2.8rem, 8.3vw, 8rem)/.91 'Bahnschrift', 'Arial Narrow', sans-serif; letter-spacing: -.038em; margin: 0; max-width: 12ch; }
#details { font-size: clamp(.95rem, 1.4vw, 1.12rem); color: #d7d9d1; margin: 1rem 0 1.4rem; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; }
button, select { font: 640 .86rem/1.3 system-ui, sans-serif; min-height: 42px; border-radius: 3px; }
button { padding: .72rem 1.10rem; border: 1px solid #c4d4ea; background: #c4d4ea; color: #10151e; cursor: pointer; }
button:hover { background: #e8f1ff; border-color: #e8f1ff; }
button:disabled { opacity: .55; cursor: default; }
button.secondary { background: #151c19d9; color: #e1ddd2; border-color: #a5a99b62; }
button.secondary:hover { background: #313931; border-color: #d3d6bb; }
:focus-visible { outline: 2px solid #ffd992; outline-offset: 4px; }
.keys { display: flex; flex-wrap: wrap; gap: .35rem .42rem; margin: 1.08rem 0 0; font-size: .75rem; color: #b8bdb2; align-items: center; }
.keys span { width: .55rem; }
kbd { font-size: .69rem; color: #e5e4d8; padding: .15rem .35rem; border: 1px solid #aeb0a352; border-radius: 2px; }
#indicators { position: absolute; pointer-events: none; inset: 0; display: none; text-shadow: 0 1px 5px black, 0 1px 15px black; }
[data-mode=running] #indicators { display: block; }
#audio-control { position: absolute; z-index: 1; top: 18px; right: clamp(16px, 3vw, 44px); pointer-events: auto;
  min-height: 32px; padding: .28rem .60rem; font-size: .72rem; }
[data-death-sequence] #audio-control { display: none; }
#game-sound-presets { display: none; position: absolute; z-index: 5; top: 18px; right: clamp(16px, 3vw, 44px); }
:is([data-mode=ready], [data-mode=pause], [data-mode=captured], [data-mode=survived]) #game-sound-presets { display: block; }
#game-sound-presets summary { display: block; width: fit-content; margin-left: auto; padding: .48rem .74rem;
  border: 1px solid #a5a99b62; border-radius: 3px; background: #101511ed; color: #e1ddd2; font-size: .78rem; cursor: pointer; }
#game-sound-presets summary::-webkit-details-marker { display: none; }
#game-sound-presets section { display: grid; gap: .5rem; margin-top: .35rem; padding: .7rem; width: min(82vw, 254px);
  border: 1px solid #a5a99b62; border-radius: 3px; background: #101511f5; }
#game-sound-presets button { min-height: 32px; padding: .35rem .6rem; font-size: .75rem; text-align: left; }
#game-sound-presets p { margin: 0; color: #d1d3c8; font-size: .74rem; }
#fps { display: none; position: absolute; z-index: 1; pointer-events: none; top: max(6px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left)); color: #dee3ec; text-shadow: 0 1px 3px #000;
  font: 500 9px/1 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; opacity: .72; }
[data-mode=running] #fps:not(:empty) { display: block; }
#status { position: absolute; left: 22px; bottom: 46px; font-size: .78rem; color: #c6d3e8; }
#wave { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #e0e9f8; font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
#boss-status { position: absolute; z-index: 3; top: max(49px, calc(env(safe-area-inset-top) + 42px)); inset-inline: 0; margin: auto; width: min(360px, 50vw);
  display: none; gap: 6px; color: #f5e2ee; text-align: center; text-shadow: 0 2px 6px #000; pointer-events: none; }
:is([data-mode=running], [data-mode=survived]) #boss-status { display: grid; }
#stage:has(#arena-record:not([hidden])) #boss-status { top: max(73px, calc(env(safe-area-inset-top) + 66px)); }
#boss-status > :first-child { font: 500 1.11rem/1.2 Georgia, serif; letter-spacing: .08em; }
#boss-health { appearance: none; width: 100%; height: 5px; border: 1px solid #f1c6e67a; border-radius: 3px; overflow: hidden; background: #1f1527; }
#boss-health::-webkit-progress-bar { background: #1f1527; }
#boss-health::-webkit-progress-value { background: linear-gradient(90deg, #8e4e83, #e3afd4); }
#boss-count { font-size: .77rem; }
.comparison-marker { position: absolute; z-index: 4; transform: translate(-50%, -100%); pointer-events: none; padding: .28rem .55rem; border: 1px solid #8b8a9a; border-radius: .24rem; background: #101219d9; color: #f5ece6; font-size: clamp(.7rem, 1.15vw, .86rem); white-space: nowrap; }
.aim-dot { position: absolute; width: 3px; height: 3px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: #c2d0dfb9; box-shadow: 0 0 4px #141821; }
#weapon-reticle { --cone: 4px; --accent: #e8e5d6; --gap: max(4px, var(--cone)); --tick: 4px;
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; color: var(--accent); opacity: .82; }
#weapon-reticle[data-ready=false] { opacity: .30; }
#weapon-reticle[data-zoom=true] { opacity: .97; }
#weapon-reticle[data-zoom=true][data-ready=false] { opacity: .30; }
#weapon-reticle[data-weapon=forgia] { --tick: 5px; }
#weapon-reticle[data-weapon=scarto] { --accent: #ffd89a; --tick: 6px; }
#weapon-reticle[data-weapon=risonanza] { --accent: #bce7ff; --gap: max(7px, var(--cone)); --tick: 4px; }
.reticle-center, .reticle-horizontal::before, .reticle-horizontal::after, .reticle-vertical::before, .reticle-vertical::after {
  position: absolute; display: block; background: currentColor; box-shadow: 0 0 1px 1px #07080cbd;
}
.reticle-center { width: 3px; height: 3px; border-radius: 50%; transform: translate(-50%,-50%); }
.reticle-horizontal::before, .reticle-horizontal::after { content: ''; top: -.5px; width: var(--tick); height: 1px; }
.reticle-horizontal::before { right: var(--gap); }
.reticle-horizontal::after { left: var(--gap); }
.reticle-vertical::before, .reticle-vertical::after { content: ''; left: -.5px; width: 1px; height: var(--tick); }
.reticle-vertical::before { bottom: var(--gap); }
.reticle-vertical::after { top: var(--gap); }
[data-weapon=mano] .reticle-center { width: 5px; height: 5px; background: transparent; border: 1px solid currentColor; }
[data-weapon=mano] .reticle-vertical, [data-weapon=scarto] .reticle-vertical,
[data-zoom=true] .reticle-vertical, [data-zoom=true] .reticle-horizontal { display: none; }
[data-weapon=risonanza] .reticle-center {
  width: 5px; height: 5px; border-radius: 1px; background: transparent;
  border: 1px solid currentColor; transform: translate(-50%,-50%) rotate(45deg);
}
.reticle-hit { display: none; color: #fff3dc; }
[data-hit=true] > .reticle-hit { display: block; }
.reticle-hit::before, .reticle-hit::after { content: ''; position: absolute; width: 25px; height: 1px; left: -12.5px; top: -.5px;
  background: linear-gradient(to right, currentColor 0 22%, transparent 22% 78%, currentColor 78%);
  filter: drop-shadow(0 0 2px #0b0908); transform: rotate(45deg); }
.reticle-hit::after { transform: rotate(-45deg); }
.ammo-panel { position: absolute; right: clamp(23px,4vw,62px); bottom: clamp(26px,5vh,66px); text-align: right; font-family: ui-monospace, Consolas, monospace; }
.magazine { display: flex; justify-content: flex-end; align-items: baseline; gap: .45rem; }
#weapon-name { color: #e1d7bf; font-size: .78rem; font-weight: 650; margin-bottom: .25rem; }
#weapon-name:empty { display: none; }
#ammo-type { color: #9de648; font-size: .66rem; line-height: 1.35; margin-bottom: .24rem; }
#ammo-type:empty { display: none; }
#weapon-slots { display: flex; gap: .35rem; position: absolute; right: clamp(23px,4vw,62px); bottom: 7px; font: .66rem/1.4 ui-monospace, Consolas, monospace; }
#weapon-slots span { padding: .02rem .31rem; border: 1px solid #c8c6b758; border-radius: 2px; color: #d1cec2; }
#weapon-slots [aria-current=true] { background: #e1d7bf; border-color: #e1d7bf; color: #191715; text-shadow: none; }
#ammo { color: #e5edf8; font-size: 1.16rem; font-variant-numeric: tabular-nums; }
#ammo[data-reload=true], .rounds-total { color: #79869a; font-size: .76rem; }
#stamina { position: absolute; left: 22px; bottom: 26px; width: 92px; height: 2px; background: #e0e1cb3d; }
#stamina::before { content: ''; display: block; width: calc(100% * var(--energy)); height: 100%; background: #e3c68f; }
#laboratory { position: absolute; inset: 0; padding: clamp(14px, 3vw, 40px); pointer-events: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
#laboratory > * { pointer-events: auto; }
.clip-controls { padding: 1rem; width: min(276px, 52vw); background: #171e1adc; border: 1px solid #a5a99b54; border-radius: 3px; }
#laboratory[data-specimen=swarm] .clip-controls { align-self: flex-end; }
.clip-controls label { display: block; }
.clip-controls p { font-size: .72rem; color: #b8bdb2; margin: .7rem 0 0; }
select { width: 100%; background: #242d28; border: 1px solid #a5a99b70; color: #f0ede2; padding: .45rem; }
.transport { display: flex; gap: .45rem; align-items: center; margin-top: .6rem; }
.transport button { padding: .4rem .5rem; min-height: 33px; }
.transport input { width: 100%; min-width: 30px; accent-color: #e1c08d; }

@property --title-inset {
  syntax: "<length>";
  inherits: true;
  initial-value: 42px;
}
[data-variant=arachnofobio] {
  --title-inset: max(clamp(36px, 5.2vh, 53px), calc(env(safe-area-inset-bottom, 0px) + 38px));
  --title-width: .98;
}
[data-variant=arachnofobio] #overlay {
  place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #0006 8%, #000b 66%, #000f 100%);
}
[data-variant=arachnofobio][data-mode=running] #overlay { background: none; pointer-events: none; }
[data-variant=arachnofobio][data-title3d=true] #overlay { background: none; }
[data-variant=arachnofobio] :is(.panel, .actions) { width: 100%; height: 100%; padding: 0; }
[data-variant=arachnofobio] .actions { display: block; }
[data-variant=arachnofobio] .panel > :not(.actions),
[data-variant=arachnofobio] .actions > :is(#lab, #swarm),
[data-variant=arachnofobio] #indicators { display: none; }
[data-variant=arachnofobio][data-mode=error] .panel { width: min(90vw, 540px); height: auto; }
[data-variant=arachnofobio][data-mode=error] .panel :is(#title, #details) { display: block; }
[data-variant=arachnofobio][data-mode=error] .actions { display: none; }
[data-variant=arachnofobio] :is(#play, #play-intro) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  transform-origin: center;
  -webkit-tap-highlight-color: transparent;
}
[data-variant=arachnofobio] :is(#play, #play-intro):focus-visible { outline: 2px solid #cdb5b9; outline-offset: -4px; }
#title-image {
  position: absolute;
  inset: 0;
  margin: auto;
  width: calc(100% * var(--title-width));
  height: max(1px, calc(100% - 2 * var(--title-inset)));
  object-fit: contain;
  pointer-events: none;
}
[data-variant=arachnofobio][data-mode=loading] #play { opacity: 1; }
[data-variant=arachnofobio][data-mode=loading]:not([data-title3d=true]) #view { visibility: hidden; }
[data-title3d=true] #title-image { visibility: hidden; }
[data-title-blend=true] #title-image { visibility: visible; animation: title-plate-out .48s ease-in both; }
@keyframes title-plate-out { from { opacity: 1; } to { opacity: 0; } }
:is(#start-prompt, #title-loading) { display: none; }
[data-mode=loading] #play-intro span,
[data-mode=ready] #start-prompt,
[data-mode=loading] #title-loading {
  display: block;
  position: absolute;
  inset-inline: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  margin: 0;
  pointer-events: none;
  color: #eeeaf1;
  font: 400 clamp(.75rem, 3.6vh, 1.15rem)/1.3 "Times New Roman", Times, serif;
  letter-spacing: .14em;
  text-align: center;
  text-shadow: 0 1px 8px #000, 0 1px 3px #000;
}
#play-intro:is(:hover, :focus-visible) span { color: #fff; text-shadow: 0 0 12px #ad8fe3; }
.loading-track {
  position: relative;
  width: min(56vw, 200px);
  height: 3px;
  overflow: hidden;
  margin: 7px auto 0;
  border-radius: 3px;
  background: #323232;
}
#loading-fill { height: 100%; background: #929292; transform: scaleX(0); transform-origin: left; transition: transform .24s ease-out; }
.loading-track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 26%, #d4d4d4bf 50%, transparent 74%);
  animation: title-loading-sweep 1.65s linear infinite;
}
@keyframes title-loading-sweep { from { transform: translateX(-75%); } to { transform: translateX(75%); } }
@media (prefers-reduced-motion: reduce) {
  .loading-track::after { animation: none; opacity: 0; }
  #loading-fill { transition: none; }
}
#arena-hud { --arena-serif: "Times New Roman", Times, serif; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  color: #eeeaf1; text-shadow: 0 1px 6px #000, 0 2px 14px #000; }
#death-cause { position: absolute; top: 50%; inset-inline: 20px; margin: 0; transform: translateY(-50%);
  font: 400 clamp(.9rem, 1.9vw, 1.25rem)/1.24 var(--arena-serif); letter-spacing: .025em; text-align: center; text-wrap: balance; }
[data-death-sequence] #death-cause { top: auto; bottom: 15%; transform: none; }
.arena-scoreboard { position: absolute; top: max(7px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); text-align: center; }
#arena-score { min-height: 36px; padding: .2rem .75rem; color: #eeeaf1; background: transparent; border-color: transparent;
  font: 400 clamp(.95rem, 2vw, 1.25rem)/1.15 var(--arena-serif); letter-spacing: .065em; text-shadow: inherit;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
#arena-score:disabled { cursor: default; }
#arena-score:enabled { pointer-events: auto; }
#arena-score:enabled:hover { color: #fff; text-decoration: underline; text-underline-offset: .22em; }
#arena-record { margin: .32rem 0 0; color: #efce9c; font: 400 .83rem/1.25 var(--arena-serif); white-space: nowrap; }
#leaderboard { width: min(440px, calc(100% - 32px)); max-height: min(550px, calc(100% - 32px)); padding: 21px 22px;
  color: #f0e9f2; background: #15101c; border: 1px solid #817086; border-radius: 8px; }
#leaderboard::backdrop { background: #06040baf; }
#leaderboard header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#leaderboard h2 { margin: 0; font-size: 1.12rem; }
#leaderboard button { min-height: 34px; padding: .38rem .7rem; }
#leaderboard-rows { padding-left: 1.6rem; margin: .8rem 0 0; }
#leaderboard-rows:empty { display: none; }
#leaderboard-rows li { padding: .5rem .15rem; border-top: 1px solid #ad91ba30; font-variant-numeric: tabular-nums; }
#leaderboard-rows li span { float: right; color: #c7b7ce; font-size: .78rem; }
#leaderboard-empty { color: #c7b7ce; font-size: .84rem; }

[data-variant=incubo] #overlay { background: linear-gradient(0deg,#0e0812 0%,#10091ade 16%,#0c07154d 51%,transparent 74%); }
[data-variant=incubo] .eyebrow { color: #df9caf; }
[data-variant=incubo] h1 { color: #f3e7e8; text-shadow: 3px 1px #9d405d87, -2px -1px #80a8bf77; }
[data-variant=incubo] #details { color: #e6cbd9; }
[data-variant=incubo] #play { color: #1c0d15; background: #e4afb9; border-color: #e4afb9; }
[data-variant=incubo] #play:hover { background: #f5cbd5; border-color: #f5cbd5; }
[data-variant=incubo] #status { color: #e4bdca; font-variant-numeric: tabular-nums; }

#scarto-cursor-hud { position: absolute; inset: 0; z-index: 3; display: none; pointer-events: none; text-shadow: 0 1px 5px black, 0 1px 15px black; }
[data-mode=running] #scarto-cursor-hud { display: block; }
[data-arsenal="scarto"] #weapon-reticle {
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  background: #bac0c7;
  mask: var(--scarto-reticle) center / contain no-repeat;
  opacity: .5;
}
[data-arsenal="scarto"] #weapon-reticle[hidden] { display: none; }
#sight-test-cursors {
  display: none;
  position: absolute;
  z-index: 8;
  inset-inline: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 46px);
  width: min(720px, calc(100% - 24px));
  margin: auto;
  padding: 9px 10px 10px;
  border: 1px solid #5c606b;
  border-radius: 8px;
  background: #171a22f5;
  color: #f1f4f5;
  pointer-events: none;
}
[data-prova-mirini]:is([data-mode=loading], [data-mode=ready], [data-mode=pause], [data-mode=error]) #sight-test-cursors { display: block; }
#sight-test-cursors h2 { margin: 0 0 4px; font: 650 .8rem/1.2 system-ui, sans-serif; }
#sight-test-cursors ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
#sight-test-cursors li { display: grid; justify-items: center; text-align: center; padding: 2px 3px 5px; border-radius: 4px; background: #292d37; font: 600 .7rem/1.2 system-ui, sans-serif; }
#sight-test-cursors kbd { font-size: .65rem; }
#sight-test-cursors .preview-cursor { display: block; width: 42px; height: 38px; background: currentColor; mask: var(--preview-shape) center / contain no-repeat; }
@media (max-width: 540px) {
  #sight-test-cursors ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#bonus-readout {
  position: absolute;
  bottom: max(29px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  margin: 0;
  color: #e1d8c8;
  font-size: .78rem;
}
#resume-prompt { display: none; }
[data-mode=pause] #resume-prompt {
  display: block; position: absolute; bottom: max(72px, calc(env(safe-area-inset-bottom) + 58px));
  inset-inline: 0; color: #eeeaf1; letter-spacing: .12em; text-shadow: 0 2px 8px #000;
  font: 400 clamp(.85rem, 3.6vh, 1.15rem)/1.3 "Times New Roman", Times, serif;
}
#arena-menu { position: absolute; z-index: 4; inset-inline: 16px; bottom: max(22px, env(safe-area-inset-bottom));
  display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; pointer-events: none; }
#arena-menu button { padding: .40rem .85rem; border: 0; background: transparent; pointer-events: auto; color: #eeeaf1;
  font: 400 clamp(.75rem, 3.6vh, 1.15rem)/1.3 "Times New Roman", Times, serif; letter-spacing: .14em;
  text-shadow: 0 1px 8px #000, 0 1px 3px #000; }
#arena-menu button:is(:hover, :focus-visible) { color: #fff; text-shadow: 0 0 12px #ad8fe3; }

#touch-controls, .touch-prompt { display: none; }
[data-touch] .touch-prompt { display: inline; }
[data-touch] :is(.desktop-prompt, .keys) { display: none; }
[data-touch] #view, #touch-controls { touch-action: none; }
[data-touch][data-mode=running] :is(.ammo-panel, #weapon-slots, #wave, #fps, #boss-status > span, #arena-record) {
  display: none;
}
#stage[data-touch][data-mode=running] #boss-status {
  top: max(16px, calc(env(safe-area-inset-top) + 10px));
  width: min(32vw, 260px);
}
[data-touch] #boss-health { border: 0; height: 4px; }
[data-touch][data-mode=running] .arena-scoreboard {
  top: max(7px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  transform: none;
}
[data-touch][data-mode=running] #arena-score {
  padding-inline: 0;
  opacity: 1;
}
[data-touch][data-mode=running]:not([data-death-sequence]) #touch-controls {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  -webkit-touch-callout: none;
  --touch-left: max(16px, env(safe-area-inset-left));
  --touch-right: max(16px, env(safe-area-inset-right));
  --touch-bottom: max(17px, env(safe-area-inset-bottom));
  --touch-top: max(9px, env(safe-area-inset-top));
  --touch-joystick: clamp(80px, 22vmin, 106px);
  --touch-fire: clamp(62px, 18vmin, 78px);
}
#touch-move, #touch-controls .touch-button {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #50505096;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
#touch-move {
  left: var(--touch-left);
  bottom: var(--touch-bottom);
  width: var(--touch-joystick);
  height: var(--touch-joystick);
  background: #4a4a4a80;
}
#touch-move::after {
  content: '';
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #b6b6b694;
  transform: translate(var(--joystick-x, 0), var(--joystick-y, 0));
}
#touch-controls .touch-button {
  width: 44px;
  height: 44px;
  padding: 0;
  color: #f0f0f0;
}
#touch-controls .touch-button:is(:active, [aria-pressed=true], [data-pressed]) { background: #777c82d9; }
#touch-controls .touch-button i { display: block; position: relative; pointer-events: none; }
#touch-controls #touch-fire {
  right: var(--touch-right);
  bottom: var(--touch-bottom);
  width: var(--touch-fire);
  height: var(--touch-fire);
  background: #62656ac4;
}
#touch-controls #touch-fire[data-pressed] { background: #8c9097e8; }
#touch-fire i {
  width: 9px;
  height: 23px;
  border-radius: 5px 5px 1.5px 1.5px;
  transform: rotate(38deg);
  background: linear-gradient(currentColor 0 42%, transparent 42% 52%, currentColor 52% 80%, transparent 80% 87%, currentColor 87%);
}
#touch-aim {
  right: calc(var(--touch-right) + var(--touch-fire) + 10px);
  bottom: calc(var(--touch-bottom) + 9px);
}
#touch-aim i {
  width: 19px;
  height: 19px;
  background: linear-gradient(currentColor, currentColor) center top / 2px 6px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom / 2px 6px no-repeat,
    linear-gradient(currentColor, currentColor) left center / 6px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 6px 2px no-repeat;
}
#touch-aim i::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: currentColor;
}
#touch-jump {
  right: calc(var(--touch-right) + 5px);
  bottom: calc(var(--touch-bottom) + var(--touch-fire) + 10px);
}
#touch-jump i {
  width: 16px;
  height: 18px;
  background: linear-gradient(currentColor, currentColor) bottom / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center 2px / 2px 12px no-repeat;
}
#touch-jump i::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}
#touch-search {
  right: calc(var(--touch-right) + var(--touch-fire) + 10px);
  bottom: calc(var(--touch-bottom) + 65px);
}
#touch-search i {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}
#touch-search i::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: currentColor;
  transform: rotate(45deg);
}
#touch-pause { right: var(--touch-right); top: var(--touch-top); }
#touch-pause i {
  width: 11px;
  height: 14px;
  background: linear-gradient(90deg, currentColor 0 33%, transparent 33% 67%, currentColor 67%);
}
