@font-face {
  font-family: "Alk Life";
  src: url("assets/fonts/alk-life-webfont.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #020711;
  --panel: rgba(3, 16, 31, 0.84);
  --panel-strong: rgba(7, 25, 46, 0.92);
  --line: rgba(49, 167, 255, 0.55);
  --line-dim: rgba(49, 167, 255, 0.22);
  --cyan: #57e7ff;
  --blue: #168cff;
  --green: #28f46f;
  --red: #ff3656;
  --gold: #ffd13f;
  --text: #eef7ff;
  --muted: #8eb5d2;
  --shadow: 0 0 24px rgba(18, 139, 255, 0.22);
  font-family: "Alk Life", "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(22, 140, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(255, 54, 86, 0.09), transparent 24%),
    #01040b;
  color: var(--text);
}

button {
  font: inherit;
}

.game-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 980px;
  min-height: 620px;
  overflow: hidden;
  background: var(--bg);
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #050b14;
}

.hud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 22px;
}

.hud-column {
  position: absolute;
  top: 22px;
  z-index: 2;
  display: grid;
  gap: 18px;
  width: 318px;
}

.hud-left {
  left: 22px;
}

.hud-right {
  right: 22px;
  width: 292px;
}

.hud-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(3, 14, 26, 0.62), rgba(1, 7, 16, 0.82)),
    url("assets/ui/panels/ui-panel-frame.png") center / 100% 100% no-repeat,
    linear-gradient(145deg, rgba(11, 34, 58, 0.94), rgba(1, 9, 20, 0.8)),
    var(--panel);
  border: 1px solid var(--line-dim);
  box-shadow: var(--shadow), inset 0 0 30px rgba(27, 139, 255, 0.08);
  clip-path: polygon(18px 0, calc(100% - 10px) 0, 100% 12px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 12px 100%, 0 calc(100% - 12px), 0 18px);
}

.hud-panel::before,
.hud-panel::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(87, 231, 255, 0.8), transparent);
}

.hud-panel::before {
  top: 0;
}

.hud-panel::after {
  bottom: 0;
  opacity: 0.5;
}

.panel-title {
  color: #bfe9ff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(87, 231, 255, 0.45);
}

.player-panel {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 132px;
  padding: 19px 24px 18px 20px;
}

.avatar-ring {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(87, 231, 255, 0.65));
}

.avatar-core {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.player-readout {
  display: grid;
  gap: 8px;
}

.readout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #b6faff;
}

.readout-row strong {
  font-size: 22px;
}

.readout-row span {
  color: var(--muted);
  font-weight: 900;
}

.bar {
  position: relative;
  overflow: hidden;
  height: 17px;
  background: rgba(1, 7, 16, 0.86);
  border: 1px solid rgba(64, 169, 255, 0.23);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  transition: width 160ms ease;
}

.health-bar span {
  background: linear-gradient(90deg, #0b8d35, #19f169 66%, #c6ff8a);
  box-shadow: 0 0 16px rgba(40, 244, 111, 0.65);
}

.shield-bar {
  height: 10px;
  width: 68%;
}

.shield-bar span {
  width: 64%;
  background: linear-gradient(90deg, #1167ff, #54e9ff);
}

.weapons-panel,
.stats-panel,
.perks-panel,
.objective-panel,
.radar-panel {
  padding: 17px 18px;
}

.weapons-panel {
  pointer-events: auto;
}

.weapon-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.weapon-row {
  display: grid;
  grid-template-columns: 28px 54px 1fr;
  align-items: center;
  width: 100%;
  min-height: 55px;
  padding: 7px 10px;
  color: var(--text);
  border: 1px solid rgba(49, 167, 255, 0.2);
  background: rgba(2, 12, 25, 0.72);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.weapon-row.active {
  border-color: rgba(87, 231, 255, 0.95);
  box-shadow: inset 0 0 18px rgba(22, 140, 255, 0.17), 0 0 14px rgba(22, 140, 255, 0.18);
}

.weapon-row.locked {
  opacity: 0.68;
}

.weapon-row.locked .weapon-icon {
  filter: grayscale(0.35) drop-shadow(0 0 6px rgba(87, 231, 255, 0.28));
}

.weapon-row:hover {
  border-color: rgba(87, 231, 255, 0.58);
}

.weapon-slot {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.weapon-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(87, 231, 255, 0.55));
}

.weapon-name {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
}

.weapon-cost {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ammo-pips {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.ammo-pips span {
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background: rgba(18, 87, 130, 0.7);
}

.ammo-pips span.filled {
  background: linear-gradient(180deg, #69f5ff, #158cff);
  box-shadow: 0 0 8px rgba(87, 231, 255, 0.5);
}

.stats-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.stats-grid div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.stats-grid dt {
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.stats-grid dt::before {
  content: "✦";
  margin-right: 8px;
  color: #86f5ff;
}

.stats-grid dd {
  margin: 0;
  font-weight: 900;
}

.wave-banner {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  transform: translateX(-50%);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}

.wave-banner strong {
  font-size: 28px;
  line-height: 1;
}

.wave-banner span {
  color: var(--red);
  font-size: 19px;
  font-weight: 900;
}

.currency-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 13px 16px;
}

.currency-panel strong {
  font-size: 24px;
}

.resource-readout {
  flex: 1;
  display: grid;
  gap: 2px;
}

.resource-readout span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.coin-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 209, 63, 0.72));
}

.gear-button {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(87, 231, 255, 0.42);
  border-radius: 8px;
  background: rgba(3, 16, 31, 0.84);
  padding: 4px;
}

.gear-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(87, 231, 255, 0.72));
}

.radar-panel {
  height: 210px;
  background:
    linear-gradient(145deg, rgba(2, 9, 18, 0.12), rgba(1, 7, 16, 0.18)),
    url("assets/ui/panels/radar-panel-square.png") center / cover no-repeat;
}

#radar {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.objective-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.objective-panel p {
  margin: 9px 0 0;
  color: #f0f6ff;
  font-size: 17px;
  font-weight: 700;
}

.objective-check {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  border: 2px solid rgba(49, 167, 255, 0.6);
  border-radius: 3px;
  box-shadow: inset 0 0 10px rgba(22, 140, 255, 0.25);
}

.perk-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 14px;
  margin-top: 15px;
}

.perk-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.perk-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(87, 231, 255, 0.32));
}

.perk-name {
  max-width: 78px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.bottom-hud {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  width: 488px;
  transform: translateX(-50%);
  display: grid;
  gap: 12px;
}

.xp-strip,
.ability-dock {
  background: rgba(3, 16, 31, 0.88);
  border: 1px solid var(--line-dim);
  box-shadow: var(--shadow), inset 0 0 25px rgba(22, 140, 255, 0.08);
  clip-path: polygon(14px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 14px) 100%, 12px 100%, 0 calc(100% - 12px), 0 14px);
}

.xp-strip {
  display: grid;
  grid-template-columns: 42px 1fr 82px;
  align-items: center;
  gap: 10px;
  height: 39px;
  padding: 7px 17px;
  color: var(--cyan);
  font-weight: 900;
}

.xp-bar {
  height: 18px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.xp-bar span {
  width: 0;
  background: linear-gradient(90deg, #244bff, #19a4ff, #6ff5ff);
  box-shadow: 0 0 18px rgba(22, 140, 255, 0.85);
}

.ability-dock {
  display: grid;
  grid-template-columns: repeat(4, 72px);
  justify-content: center;
  gap: 22px;
  padding: 16px 22px;
}

.ability-card {
  pointer-events: auto;
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(87, 231, 255, 0.45);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(11, 38, 66, 0.9), rgba(3, 12, 24, 0.96));
  box-shadow: inset 0 0 18px rgba(22, 140, 255, 0.18);
  color: var(--text);
}

.ability-card strong {
  position: absolute;
  right: 7px;
  bottom: 4px;
  font-size: 19px;
}

.ability-card.locked {
  opacity: 0.5;
}

.ability-icon {
  position: absolute;
  inset: 8px;
  display: block;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(87, 231, 255, 0.75));
}

.mobile-controls {
  position: absolute;
  inset: auto 34px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  opacity: 0.86;
}

.stick,
.shoot-button,
.dash-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: transparent;
  font-size: 0;
  text-transform: uppercase;
  filter: drop-shadow(0 0 18px rgba(87, 231, 255, 0.36));
}

.stick {
  width: 132px;
  height: 132px;
  background-image: url("assets/ui/controls/joystick.png");
}

.stick span {
  display: none;
}

.shoot-button {
  width: 146px;
  height: 146px;
  margin-left: auto;
  margin-right: 26px;
  background-image: url("assets/ui/controls/shoot.png");
}

.dash-button {
  width: 88px;
  height: 88px;
  background-image: url("assets/ui/controls/dash.png");
}

.site-credit {
  position: absolute;
  right: 18px;
  bottom: 8px;
  z-index: 7;
  display: flex;
  gap: 6px;
  align-items: center;
  color: rgba(191, 233, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(87, 231, 255, 0.22);
  pointer-events: auto;
}

.site-credit a {
  color: var(--cyan);
  text-decoration: none;
}

.site-credit a:hover,
.site-credit a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 10px rgba(87, 231, 255, 0.8);
}

@media (max-width: 1180px) {
  .game-shell {
    min-width: 0;
  }

  .hud-column {
    width: 264px;
  }

  .hud-right {
    width: 252px;
  }

  .perks-panel,
  .stats-panel {
    display: none;
  }

  .bottom-hud {
    width: min(488px, 48vw);
  }
}

@media (max-height: 700px) {
  .stats-panel,
  .perks-panel {
    display: none;
  }

  .radar-panel {
    height: 170px;
  }
}

.pilot-select {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 40%, rgba(23, 168, 255, 0.18), transparent 34%),
    rgba(1, 5, 12, 0.82);
  backdrop-filter: blur(8px);
}

.pilot-select.hidden {
  display: none;
}

.orientation-guard {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(87, 231, 255, 0.18), transparent 26%),
    rgba(1, 5, 12, 0.94);
  backdrop-filter: blur(10px);
}

.orientation-guard.hidden {
  display: none;
}

.orientation-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 28px 24px 26px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(3, 14, 26, 0.82), rgba(1, 7, 16, 0.96)),
    url("assets/ui/panels/ui-panel-frame.png") center / 100% 100% no-repeat;
  border: 1px solid rgba(87, 231, 255, 0.28);
  box-shadow: 0 0 42px rgba(22, 140, 255, 0.22), inset 0 0 30px rgba(22, 140, 255, 0.08);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

.orientation-card strong {
  color: #f1fbff;
  font-size: 28px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(87, 231, 255, 0.34);
}

.orientation-card p {
  margin: 0;
  color: #b9d8ee;
  font-size: 18px;
  line-height: 1.2;
}

.orientation-phone {
  width: 88px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(87, 231, 255, 0.68);
  border-radius: 24px;
  box-shadow: 0 0 22px rgba(22, 140, 255, 0.22);
  animation: rotate-phone 1.8s ease-in-out infinite;
}

.orientation-phone span {
  width: 50px;
  height: 84px;
  border: 2px solid rgba(191, 233, 255, 0.86);
  border-radius: 12px;
  box-shadow: inset 0 0 16px rgba(87, 231, 255, 0.12);
}

@keyframes rotate-phone {
  0%,
  18%,
  100% {
    transform: rotate(0deg);
  }
  42%,
  76% {
    transform: rotate(90deg);
  }
}

.pilot-select-panel {
  width: min(1120px, 94vw);
  max-height: min(88vh, 760px);
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(3, 14, 26, 0.72), rgba(1, 7, 16, 0.92)),
    url("assets/ui/panels/ui-panel-frame.png") center / 100% 100% no-repeat;
  border: 1px solid rgba(87, 231, 255, 0.28);
  box-shadow: 0 0 42px rgba(22, 140, 255, 0.28), inset 0 0 30px rgba(22, 140, 255, 0.08);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

.pilot-select-header {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-bottom: 22px;
  text-align: center;
  text-transform: uppercase;
}

.pilot-select-header span {
  color: var(--cyan);
  font-size: 15px;
  font-weight: 900;
}

.pilot-select-header h1 {
  margin: 0;
  color: #f1fbff;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(87, 231, 255, 0.38);
}

.pilot-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
  max-height: min(56vh, 470px);
  overflow: auto;
  padding: 2px 6px 4px;
  scrollbar-color: rgba(87, 231, 255, 0.62) rgba(3, 16, 31, 0.42);
}

.pilot-card {
  pointer-events: auto;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 9px 13px;
  color: var(--text);
  background: rgba(2, 12, 25, 0.78);
  border: 1px solid rgba(49, 167, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.pilot-card.active {
  border-color: rgba(87, 231, 255, 0.94);
  box-shadow: inset 0 0 24px rgba(22, 140, 255, 0.18), 0 0 20px rgba(22, 140, 255, 0.22);
}

.pilot-card img {
  width: min(100%, 142px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(87, 231, 255, 0.34));
}

.pilot-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 17px;
  text-transform: uppercase;
}

.pilot-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.confirm-pilot {
  pointer-events: auto;
  display: block;
  width: 190px;
  height: 50px;
  margin: 24px auto 0;
  color: #eafaff;
  background: linear-gradient(180deg, rgba(27, 192, 255, 0.28), rgba(11, 43, 78, 0.9));
  border: 1px solid rgba(87, 231, 255, 0.7);
  border-radius: 7px;
  box-shadow: 0 0 18px rgba(22, 140, 255, 0.28);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .pilot-card-list {
    grid-template-columns: 1fr;
  }

  .pilot-select {
    overflow: auto;
    place-items: start center;
  }
}

@media (max-width: 768px) {
  :root {
    --mobile-ui-scale: 0.82;
  }

  body {
    overflow: hidden;
  }

  .game-shell {
    min-width: 0;
    min-height: 0;
  }

  .hud-layer {
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      calc(170px + env(safe-area-inset-bottom))
      12px;
    transform: scale(var(--mobile-ui-scale));
    transform-origin: top left;
    width: calc(100% / var(--mobile-ui-scale));
    min-height: calc(100% / var(--mobile-ui-scale));
  }

  .hud-column,
  .hud-left,
  .hud-right,
  .wave-banner,
  .bottom-hud {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    transform: none;
    margin: 0 0 10px;
  }

  .hud-column {
    gap: 10px;
  }

  .hud-left,
  .hud-right {
    display: contents;
  }

  .player-panel {
    order: 1;
  }

  .currency-panel {
    order: 2;
  }

  .wave-banner {
    order: 3;
  }

  .weapons-panel {
    order: 4;
  }

  .radar-panel {
    order: 5;
  }

  .objective-panel {
    order: 6;
  }

  .bottom-hud {
    order: 7;
  }

  .wave-banner {
    justify-items: start;
    gap: 2px;
    padding: 0 4px;
    text-align: left;
  }

  .wave-banner strong {
    font-size: 22px;
  }

  .wave-banner span {
    font-size: 15px;
  }

  .player-panel {
    min-height: 0;
    padding: 14px 16px;
    grid-template-columns: 62px 1fr;
    gap: 12px;
  }

  .avatar-ring {
    width: 58px;
    height: 58px;
  }

  .avatar-core {
    width: 76px;
    height: 76px;
  }

  .panel-title {
    font-size: 16px;
  }

  .readout-row strong {
    font-size: 18px;
  }

  .readout-row span {
    font-size: 13px;
  }

  .weapons-panel,
  .radar-panel,
  .objective-panel,
  .currency-panel {
    padding: 12px 14px;
  }

  .weapon-list {
    gap: 7px;
    margin-top: 10px;
  }

  .weapon-row {
    grid-template-columns: 24px 42px 1fr;
    min-height: 46px;
    padding: 6px 8px;
  }

  .weapon-slot {
    font-size: 18px;
  }

  .weapon-icon {
    width: 34px;
    height: 34px;
  }

  .ammo-pips {
    gap: 3px;
    margin-top: 4px;
  }

  .ammo-pips span {
    width: 8px;
    height: 6px;
  }

  .currency-panel {
    min-height: 0;
    gap: 10px;
  }

  .currency-panel strong {
    font-size: 20px;
  }

  .resource-readout span {
    font-size: 11px;
  }

  .coin-icon {
    width: 30px;
    height: 30px;
  }

  .gear-button {
    width: 34px;
    height: 34px;
  }

  .radar-panel {
    height: 126px;
  }

  .objective-panel {
    gap: 12px;
  }

  .objective-panel p {
    margin-top: 6px;
    font-size: 14px;
  }

  .objective-check {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
  }

  .stats-panel,
  .perks-panel {
    display: none;
  }

  .bottom-hud {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
  }

  .xp-strip {
    grid-template-columns: 34px 1fr 70px;
    gap: 8px;
    height: 34px;
    padding: 5px 12px;
    font-size: 14px;
  }

  .xp-bar {
    height: 14px;
  }

  .ability-dock {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 10px 12px;
  }

  .ability-card {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
  }

  .ability-card strong {
    right: 6px;
    bottom: 4px;
    font-size: 15px;
  }

  .mobile-controls {
    position: fixed;
    inset: auto 0 0;
    z-index: 6;
    padding:
      0 14px
      calc(10px + env(safe-area-inset-bottom))
      14px;
    align-items: flex-end;
    pointer-events: none;
  }

  .stick,
  .shoot-button,
  .dash-button {
    pointer-events: auto;
  }

  .stick {
    width: 96px;
    height: 96px;
  }

  .shoot-button {
    width: 114px;
    height: 114px;
    margin-right: 14px;
  }

  .dash-button {
    width: 68px;
    height: 68px;
  }

  .site-credit {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    font-size: 9px;
  }
}
