:root {
  color-scheme: dark;
  --ink: #f9fbff;
  --muted: rgba(249, 251, 255, 0.72);
  --panel: rgba(7, 10, 18, 0.78);
  --panel-strong: rgba(8, 11, 22, 0.92);
  --line: rgba(255, 255, 255, 0.18);
  --fire: #ff6a19;
  --sky: #48c7ff;
  --pink: #ff75cf;
  --gold: #ffd36a;
  --cabinet-red: #e93424;
  --cabinet-blue: #20bfff;
  --arcade-black: #02030a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #05070c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  display: grid;
  place-items: center;
}

.shell {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  min-width: 320px;
  min-height: 180px;
  background: #080b12;
  overflow: hidden;
  border: clamp(4px, 0.7vw, 10px) solid #0a0d18;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 0 0 clamp(7px, 1.2vw, 16px) rgba(98, 12, 18, 0.9),
    0 28px 90px rgba(0, 0, 0, 0.76),
    inset 0 0 42px rgba(255, 255, 255, 0.08);
}

.shell::before,
.shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.shell::before {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 45%, transparent 56%, rgba(0, 0, 0, 0.35) 100%);
  mix-blend-mode: screen;
  opacity: 0.4;
}

.shell::after {
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.42);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
  transform: translateZ(0);
}

body[data-screen="fight"] .shell {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-screen="fight"] .shell::before,
body[data-screen="fight"] .shell::after {
  display: none;
}

.rotate-hint,
.mobile-controls {
  display: none;
}

.mobile-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 8;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
  pointer-events: none;
}

.touch-cluster {
  display: flex;
  align-items: end;
  gap: 9px;
  pointer-events: auto;
}

.touch-cluster--action {
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: min(50vw, 360px);
}

.touch-btn {
  min-width: 52px;
  width: 52px;
  min-height: 52px;
  height: 52px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.56);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38), inset 0 0 18px rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 2px 8px #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.touch-btn:active,
.touch-btn.is-pressed {
  transform: translateY(2px) scale(0.94);
  border-color: rgba(255, 255, 255, 0.72);
  filter: brightness(1.28);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.38), inset 0 0 18px rgba(255, 255, 255, 0.18);
}

.touch-btn--jump {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 1000;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(180deg, rgba(55, 205, 255, 0.72), rgba(5, 8, 16, 0.56));
  box-shadow: 0 0 20px rgba(70, 202, 255, 0.46), 0 8px 22px rgba(0, 0, 0, 0.38);
}

.touch-btn--small {
  width: 58px;
  min-width: 58px;
  font-size: 10px;
}

.touch-cluster--action .touch-btn {
  width: 50px;
  min-width: 50px;
  height: 46px;
  min-height: 46px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0;
}

.touch-btn--ultra {
  color: #1b0b00;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.74), transparent 34%),
    linear-gradient(180deg, #fff47a, #ff9d1d 48%, #ff3f9e);
  box-shadow: 0 0 22px rgba(255, 218, 69, 0.54), 0 8px 22px rgba(0, 0, 0, 0.38);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 105, 24, 0.32), transparent 34%),
    radial-gradient(circle at 78% 30%, rgba(55, 172, 255, 0.34), transparent 35%),
    linear-gradient(145deg, rgba(3, 5, 10, 0.96), rgba(9, 12, 24, 0.88));
  z-index: 10;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 45, 31, 0.12), transparent 34%, transparent 66%, rgba(38, 194, 255, 0.14)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.035) 78px 80px);
  opacity: 0.56;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.screen[hidden] {
  display: none;
}

.screen > * {
  position: relative;
  z-index: 1;
}

.loading-panel,
.menu-panel,
.message-screen {
  width: min(520px, calc(100% - 40px));
  padding: 28px;
  border: 2px solid rgba(255, 211, 106, 0.7);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 20, 38, 0.96), rgba(4, 5, 12, 0.96)),
    var(--panel-strong);
  box-shadow:
    0 0 28px rgba(255, 211, 106, 0.32),
    0 26px 70px rgba(0, 0, 0, 0.54),
    inset 0 0 44px rgba(255, 255, 255, 0.06);
  text-align: center;
}

.loading-panel {
  position: absolute;
  left: 19.45%;
  top: 86.85%;
  width: 56.6%;
  height: 2.45%;
  max-width: none;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.loading-panel h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.loading-panel p {
  display: none;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 78px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);
}

.loading-panel p,
.message-screen p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 20px);
}

.load-bar {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  clip-path: polygon(2.2% 0, 100% 0, 97.8% 100%, 0 100%);
  overflow: hidden;
  box-shadow: none;
}

.load-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #23eaff, #f7f6ff 52%, #ff3ad7);
  box-shadow: 0 0 18px rgba(35, 234, 255, 0.62), 0 0 22px rgba(255, 58, 215, 0.48);
  opacity: 0.94;
  transition: width 90ms linear;
}

.loading-screen {
  background: #050507 url("assets/ui/loading/load-screen.png") center / cover no-repeat;
}

button {
  appearance: none;
  min-width: 150px;
  min-height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
    linear-gradient(90deg, rgba(255, 68, 36, 0.26), rgba(44, 198, 255, 0.22));
  color: var(--ink);
  font: 900 15px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.38), 0 18px 34px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:hover,
button:focus-visible {
  border-color: rgba(255, 255, 255, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
  outline: none;
}

.title-screen {
  background: #02040a;
}

.title-screen::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("assets/ui/backgrounds/Background 1.png") center / cover no-repeat;
  opacity: 0.36;
  filter: blur(14px);
}

.title-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title-screen::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.44)),
    radial-gradient(circle at 50% 74%, transparent 0 23%, rgba(0, 0, 0, 0.62) 62%);
}

.arcade-marquee {
  position: absolute;
  left: 50%;
  top: clamp(18px, 4vh, 36px);
  display: grid;
  justify-items: center;
  min-width: min(720px, 82%);
  padding: 11px 28px 13px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  transform: translateX(-50%) skewX(-8deg);
  background:
    linear-gradient(90deg, rgba(255, 45, 31, 0.82), rgba(255, 221, 75, 0.94) 48%, rgba(44, 196, 255, 0.86));
  color: #fff;
  box-shadow:
    0 0 26px rgba(255, 210, 75, 0.62),
    inset 0 0 22px rgba(255, 255, 255, 0.28),
    0 16px 34px rgba(0, 0, 0, 0.48);
  text-transform: uppercase;
}

.arcade-marquee span {
  max-width: min(900px, 90vw);
  font-size: clamp(24px, 4.8vw, 58px);
  font-weight: 1000;
  line-height: 0.85;
  text-align: center;
  text-shadow: 0 4px 0 #570408, 0 0 24px rgba(255, 255, 255, 0.62);
}

.arcade-marquee small {
  margin-top: 5px;
  color: #120713;
  font-size: clamp(12px, 1.6vw, 18px);
  font-weight: 1000;
  letter-spacing: 0;
}

.coin-prompt {
  position: absolute;
  left: 50%;
  bottom: clamp(104px, 15vh, 142px);
  display: grid;
  justify-items: center;
  gap: 3px;
  transform: translateX(-50%);
  text-transform: uppercase;
  animation: arcadePulse 1.05s steps(2, end) infinite;
}

.coin-prompt span {
  color: #ffd94e;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 1000;
  text-shadow: 0 0 16px rgba(255, 217, 78, 0.9), 0 3px 0 #4d2500;
}

.coin-prompt small {
  color: #fff;
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 1000;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.8);
}

.game-title-mark {
  position: absolute;
  left: 24px;
  top: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: clamp(15px, 2.2vw, 24px);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.title-actions {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 14px;
  transform: translateX(-50%);
}

.difficulty-select {
  position: absolute;
  left: 50%;
  bottom: clamp(104px, 14vh, 142px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 63, 205, 0.54);
  border-radius: 6px;
  background: rgba(5, 0, 12, 0.7);
  box-shadow: 0 0 26px rgba(255, 42, 211, 0.28), inset 0 0 22px rgba(37, 220, 255, 0.1);
  transform: translateX(-50%) skewX(-7deg);
}

.difficulty-select span,
.difficulty-select button {
  transform: skewX(7deg);
}

.difficulty-select span {
  color: #f5f5ff;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.difficulty-select button {
  min-width: clamp(58px, 7vw, 84px);
  min-height: clamp(30px, 4vh, 40px);
  padding: 0 12px;
  border: 1px solid rgba(64, 225, 255, 0.58);
  border-radius: 4px;
  background: rgba(2, 12, 26, 0.88);
  color: #42e8ff;
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(66, 232, 255, 0.7);
  box-shadow: inset 0 0 14px rgba(66, 232, 255, 0.16);
}

.difficulty-select button.is-selected {
  border-color: rgba(255, 218, 65, 0.98);
  background: linear-gradient(180deg, #ffe96c, #ff9e18);
  color: #170800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(255, 181, 26, 0.68), inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.title-actions button {
  min-width: clamp(154px, 19vw, 238px);
  min-height: 58px;
  border-color: rgba(255, 236, 119, 0.9);
  background:
    linear-gradient(180deg, #fff979, #ffbd15 48%, #f06a10),
    #ffbd15;
  color: #1b1100;
  font-size: clamp(15px, 1.9vw, 22px);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 24px rgba(255, 196, 32, 0.76),
    0 9px 0 rgba(89, 35, 0, 0.76),
    0 20px 38px rgba(0, 0, 0, 0.52);
}

.title-actions button:nth-child(2) {
  border-color: rgba(90, 212, 255, 0.86);
  background:
    linear-gradient(180deg, #dff8ff, #35c8ff 45%, #1163ff),
    #35c8ff;
  color: #020b1a;
  box-shadow:
    0 0 22px rgba(53, 200, 255, 0.66),
    0 9px 0 rgba(0, 26, 83, 0.78),
    0 20px 38px rgba(0, 0, 0, 0.52);
}

.select-screen {
  align-content: center;
  gap: clamp(7px, 1.3vh, 14px);
  padding: clamp(14px, 2.6vw, 32px);
  background:
    radial-gradient(circle at 50% 42%, rgba(156, 48, 255, 0.46), transparent 28%),
    radial-gradient(circle at 24% 38%, rgba(0, 186, 255, 0.28), transparent 30%),
    radial-gradient(circle at 77% 38%, rgba(255, 62, 180, 0.3), transparent 30%),
    linear-gradient(180deg, rgba(2, 4, 14, 0.16), rgba(1, 2, 8, 0.82)),
    url("assets/ui/backgrounds/Background 1.png") center / cover no-repeat;
}

.select-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 168, 255, 0.2), transparent 32%, transparent 68%, rgba(255, 55, 178, 0.22)),
    radial-gradient(circle at 50% 95%, rgba(102, 51, 255, 0.42), transparent 38%);
  pointer-events: none;
}

.select-screen h1 {
  font-size: clamp(32px, 5.3vw, 62px);
  line-height: 0.94;
  text-align: center;
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 26px rgba(68, 201, 255, 0.82),
    0 0 34px rgba(255, 64, 201, 0.68),
    0 8px 0 rgba(0, 0, 0, 0.48);
}

.arcade-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: -6px;
}

.arcade-status span {
  min-width: 122px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(3, 6, 18, 0.74);
  color: #fff;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 0 18px rgba(72, 199, 255, 0.22);
  font-size: clamp(10px, 1.2vw, 13px);
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.select-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(500px, 0.82fr);
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  width: min(1220px, 100%);
}

.level-select {
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 17px 18px 18px;
  border: 2px solid rgba(255, 211, 106, 0.56);
  border-radius: 9px;
  background: rgba(4, 7, 20, 0.62);
  box-shadow: 0 0 32px rgba(255, 211, 106, 0.22), inset 0 0 70px rgba(255, 211, 106, 0.1);
}

.ladder-note {
  margin-top: -4px;
  color: rgba(255, 244, 190, 0.76);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.level-select h2 {
  color: #fff;
  font-size: clamp(17px, 2.1vw, 25px);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.52), 0 3px 16px rgba(0, 0, 0, 0.72);
}

.level-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 8px;
  max-height: min(45vh, 330px);
  overflow-y: auto;
  padding-right: 4px;
}

.level-card {
  position: relative;
  min-width: 0;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(5, 8, 18, 0.74);
  box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.06), 0 16px 30px rgba(0, 0, 0, 0.36);
  cursor: default;
}

.level-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 180ms ease, opacity 180ms ease;
}

.level-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.level-card span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 8px;
  color: #fff;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}

.level-card.is-selected {
  border-color: rgba(255, 216, 90, 0.94);
  box-shadow:
    0 0 0 2px rgba(255, 216, 90, 0.44),
    0 0 30px rgba(255, 216, 90, 0.52),
    inset 0 0 40px rgba(255, 216, 90, 0.12);
}

.level-card.is-selected img {
  opacity: 0.9;
  transform: scale(1.04);
}

.level-card.is-locked {
  border-color: rgba(255, 255, 255, 0.12);
  filter: grayscale(0.8);
  opacity: 0.54;
}

.level-card.is-locked::before {
  content: "LOCKED";
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 9px;
  font-weight: 1000;
}

.level-row.tour-map {
  position: relative;
  display: block;
  aspect-ratio: 1402 / 1122;
  max-height: min(57vh, 570px);
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(188, 72, 255, 0.64);
  border-radius: 8px;
  background: #060712;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.46),
    0 0 28px rgba(166, 57, 255, 0.34),
    inset 0 0 36px rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.tour-map-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-stop.level-card {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(24px, 4.4%, 42px);
  height: clamp(24px, 4.4%, 42px);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(180deg, #cf49ff, #52158a);
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(205, 74, 255, 0.72),
    0 10px 18px rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.tour-map .level-card::after,
.tour-map .level-card img {
  display: none;
}

.tour-map .level-card span {
  min-height: 0;
  padding: 0;
}

.tour-stop-number {
  color: #fff;
  font-size: clamp(13px, 1.35vw, 20px);
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 2px 8px #000;
}

.tour-stop-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  width: max-content;
  max-width: 118px;
  padding: 4px 7px 5px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 5px;
  background: rgba(3, 4, 12, 0.82);
  color: #fff;
  font-size: clamp(8px, 0.82vw, 11px);
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #000;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tour-stop.is-selected {
  border-color: rgba(255, 232, 83, 0.98);
  background:
    radial-gradient(circle at 50% 42%, #fff2a4, transparent 36%),
    linear-gradient(180deg, #ffc93f, #8b27ff);
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.54),
    0 0 22px rgba(255, 230, 90, 0.94),
    0 0 38px rgba(169, 62, 255, 0.74),
    0 12px 22px rgba(0, 0, 0, 0.52);
}

.tour-stop.is-selected .tour-stop-name,
.tour-stop:hover .tour-stop-name,
.tour-stop:focus-visible .tour-stop-name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tour-van {
  position: absolute;
  z-index: 4;
  width: clamp(44px, 7.8%, 82px);
  aspect-ratio: 3 / 2;
  background-image: url("assets/ui/van/anurocki_van_sprite_sheet_clean_transparent.png");
  background-repeat: no-repeat;
  background-size: 500% 400%;
  background-position: 0 0;
  filter:
    drop-shadow(0 0 8px rgba(255, 133, 34, 0.84))
    drop-shadow(0 0 14px rgba(177, 43, 255, 0.72))
    drop-shadow(0 9px 8px rgba(0, 0, 0, 0.62));
  pointer-events: none;
  transform: translate(-50%, -66%);
  transition:
    left 900ms cubic-bezier(0.2, 0.86, 0.2, 1),
    top 900ms cubic-bezier(0.2, 0.86, 0.2, 1);
}

.tour-van[data-direction="west"] {
  transform: translate(-50%, -66%) scaleX(-1);
}

.tour-progress-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  max-width: calc(100% - 24px);
  padding: 7px 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: rgba(3, 5, 13, 0.78);
  color: #fff;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 10px #000;
  box-shadow: 0 0 18px rgba(168, 70, 255, 0.36);
}

.player-select {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 18px 18px 20px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 7, 20, 0.62);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.05), 0 24px 60px rgba(0, 0, 0, 0.45);
  clip-path: polygon(4% 0, 88% 0, 100% 16%, 100% 100%, 0 100%, 0 14%);
}

.player-select::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid currentColor;
  opacity: 0.68;
  pointer-events: none;
  clip-path: inherit;
}

.player-select--p1 {
  color: #35caff;
  border-color: rgba(52, 203, 255, 0.76);
  box-shadow:
    0 0 32px rgba(44, 196, 255, 0.28),
    inset 0 0 70px rgba(0, 180, 255, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.select-screen .player-select--p1 {
  color: #8ddcff;
}

.player-select--p2 {
  color: #ff4cc4;
  border-color: rgba(255, 75, 198, 0.76);
  box-shadow:
    0 0 32px rgba(255, 63, 195, 0.28),
    inset 0 0 70px rgba(255, 55, 180, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.select-screen .player-select--p2 {
  display: none;
}

.player-select h2 {
  color: currentColor;
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 18px currentColor, 0 4px 18px rgba(0, 0, 0, 0.86);
}

.pick-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(58px, 1fr));
  gap: 8px;
  padding: 2px 2px 4px;
}

.pick-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: end;
  min-width: 0;
  min-height: clamp(158px, 24vh, 186px);
  padding: 10px 5px 11px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(10, 10, 24, 0.78);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.56));
  pointer-events: none;
}

.pick-card::after {
  content: "SELECTED";
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 3;
  min-width: 72px;
  padding: 5px 8px;
  border-radius: 6px;
  background: currentColor;
  color: #06101c;
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  box-shadow: 0 0 18px currentColor;
}

.pick-card--maddie {
  color: #ff4cc4;
  box-shadow: inset 0 0 80px rgba(255, 108, 201, 0.16);
}

.pick-card--hendo {
  color: #25bfff;
  box-shadow: inset 0 0 80px rgba(255, 119, 26, 0.18);
}

.pick-card--mega {
  color: #b886ff;
  box-shadow: inset 0 0 80px rgba(255, 153, 35, 0.18);
}

.pick-card--keyla {
  color: #9d6cff;
}

.pick-card--krevin {
  color: #31d6ff;
}

.pick-card--shred {
  color: #ff4a35;
}

.pick-card--stixi {
  color: #ff65c8;
}

.pick-card--thump {
  color: #ff8d2d;
}

.pick-card--vox {
  color: #4ae6ff;
}

.pick-card--zorgon {
  color: #8aff4f;
}

.pick-card--lordReverb {
  color: #bf8cff;
}

.pick-card--autoTonix {
  color: #70f0ff;
}

.pick-card--brivvvon {
  color: #b56cff;
}

.pick-card--shurb {
  color: #76ff4f;
}

.pick-card--branda {
  color: #71ff67;
}

.pick-card--crypsy {
  color: #c76cff;
}

.pick-card--bev {
  color: #ffd24f;
}

.pick-card--dante {
  color: #ff3f52;
}

.pick-card.is-selected {
  border-color: currentColor;
  transform: translateY(-6px);
}

.pick-card.is-selected::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pick-card--hendo.is-selected {
  box-shadow: 0 0 34px rgba(37, 191, 255, 0.52), inset 0 0 92px rgba(0, 175, 255, 0.22);
}

.pick-card--maddie.is-selected {
  box-shadow: 0 0 34px rgba(255, 112, 207, 0.48), inset 0 0 92px rgba(255, 108, 201, 0.24);
}

.pick-card--mega.is-selected {
  box-shadow: 0 0 34px rgba(184, 134, 255, 0.5), inset 0 0 92px rgba(145, 62, 255, 0.22);
}

.pick-card img {
  position: absolute;
  bottom: 49px;
  height: calc(100% - 64px);
  max-width: 96%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.46));
}

.pick-card span,
.pick-card small {
  position: relative;
  z-index: 1;
}

.pick-card span {
  color: #fff;
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 1000;
  line-height: 0.94;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 16px #000;
}

.pick-card small {
  color: currentColor;
  margin-top: 4px;
  margin-bottom: 16px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 10px #000;
}

.pick-card.is-secret-locked {
  cursor: not-allowed;
  opacity: 1;
  filter: saturate(0.7);
}

.pick-card.is-secret-locked img {
  opacity: 0.78;
  filter: brightness(0) drop-shadow(0 0 24px rgba(118, 168, 255, 0.58));
}

.pick-card.is-secret-locked small {
  color: rgba(255, 255, 255, 0.66);
}

.secret-unlock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: min(660px, 100%);
}

.secret-unlock input {
  width: min(238px, 48vw);
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(3, 6, 18, 0.76);
  color: #fff;
  font: 900 14px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  outline: none;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.34);
}

.secret-unlock input:focus-visible {
  border-color: rgba(255, 211, 106, 0.88);
}

.secret-unlock button {
  min-width: 112px;
  min-height: 42px;
  font-size: 13px;
}

#secretStatus {
  min-width: 142px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 10px #000;
}

#secretStatus[data-state="success"] {
  color: #95ff7b;
}

#secretStatus[data-state="error"] {
  color: #ff9b9b;
}

.versus {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 54%),
    conic-gradient(from 130deg, rgba(44, 201, 255, 0.72), rgba(255, 58, 190, 0.76), rgba(44, 201, 255, 0.72));
  box-shadow:
    0 0 28px rgba(61, 195, 255, 0.56),
    0 0 38px rgba(255, 67, 197, 0.52),
    inset 0 0 34px rgba(0, 0, 0, 0.7);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 1000;
  color: #fff;
  font-style: italic;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.86), 0 0 36px rgba(255, 55, 198, 0.88);
}

.select-screen .versus {
  display: none;
}

#fightButton {
  min-width: min(330px, 72vw);
  min-height: 68px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  background:
    linear-gradient(180deg, #fff66a 0%, #ffb315 48%, #ff7a11 100%);
  color: #1c1304;
  box-shadow:
    0 0 26px rgba(255, 198, 35, 0.8),
    0 13px 0 rgba(99, 35, 0, 0.56),
    0 28px 44px rgba(0, 0, 0, 0.52);
  font-size: clamp(29px, 4.1vw, 50px);
  font-style: italic;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.36);
}

.control-hint {
  margin-top: -6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(10px, 1.2vw, 14px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 12px #000;
}

.pause-screen {
  background: rgba(0, 0, 0, 0.58);
}

.menu-panel {
  display: grid;
  gap: 14px;
}

.menu-panel h1,
.message-screen h1 {
  color: #fff66a;
  text-shadow:
    0 0 18px rgba(255, 246, 106, 0.9),
    0 5px 0 rgba(91, 25, 0, 0.9);
}

.menu-panel button,
.message-screen button {
  background:
    linear-gradient(180deg, #ffffff, #68dcff 42%, #135fff);
  color: #041326;
  box-shadow: 0 8px 0 rgba(0, 22, 84, 0.7), 0 20px 34px rgba(0, 0, 0, 0.4);
}

@keyframes arcadePulse {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0.38;
  }
}

.menu-panel h1 {
  margin-bottom: 8px;
}

.message-screen {
  gap: 18px;
}

@media (max-width: 1180px) {
  .select-layout {
    grid-template-columns: 1fr;
    width: min(100%, 680px);
  }

  .level-row.tour-map {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .arcade-marquee {
    min-width: 84%;
    padding: 8px 16px 10px;
  }

  .coin-prompt {
    bottom: 88px;
  }

  .title-actions {
    bottom: 18px;
  }

  .select-layout {
    grid-template-columns: 1fr;
  }

  .pick-row {
    gap: 8px;
  }

  .pick-card {
    min-height: 230px;
    padding: 12px;
  }

  .pick-card img {
    bottom: 58px;
    height: 68%;
  }

  .level-row {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 6px;
  }

  .level-card,
  .level-card span {
    min-height: 54px;
  }

  button {
    min-width: 128px;
    min-height: 42px;
    font-size: 13px;
  }
}

@media (pointer: coarse), (max-width: 900px) {
  body {
    display: block;
  }

  .shell {
    width: 100vw;
    height: 100svh;
    min-width: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .title-screen img {
    object-fit: cover;
  }

  body[data-screen="fight"] .mobile-controls {
    display: flex;
  }
}

@media (pointer: coarse) and (orientation: portrait), (max-width: 720px) and (orientation: portrait) {
  .screen {
    place-items: start center;
  }

  .select-screen {
    align-content: start;
    justify-content: center;
    gap: 9px;
    padding: max(18px, env(safe-area-inset-top)) 12px max(82px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .select-screen h1 {
    font-size: clamp(30px, 9vw, 48px);
    line-height: 0.95;
    text-align: center;
  }

  .arcade-status {
    gap: 6px;
  }

  .arcade-status span {
    min-width: 88px;
    padding: 6px 9px;
    font-size: 9px;
  }

  .select-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(100%, 460px);
  }

  .player-select {
    gap: 8px;
    padding: 14px 12px 16px;
  }

  .player-select h2 {
    font-size: 20px;
  }

  .pick-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .pick-card {
    min-height: 158px;
    padding: 10px;
    border-radius: 7px;
  }

  .pick-card img {
    bottom: 50px;
    height: 54%;
  }

  .pick-card span {
    font-size: clamp(15px, 5.4vw, 23px);
  }

  .pick-card small {
    margin-top: 4px;
    font-size: 10px;
  }

  .versus {
    display: none;
  }

  .level-select {
    width: min(100%, 460px);
    gap: 6px;
    padding: 12px;
  }

  .level-select h2 {
    font-size: 17px;
  }

  .level-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 2px;
  }

  .level-card {
    min-height: 58px;
  }

  .level-card span {
    min-height: 58px;
    font-size: 11px;
  }

  #fightButton {
    position: sticky;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(260px, 72vw);
    min-height: 46px;
    font-size: 22px;
  }

  body[data-screen="fight"] .rotate-hint {
    display: grid;
    position: absolute;
    left: 50%;
    top: max(16px, env(safe-area-inset-top));
    z-index: 9;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    place-items: center;
    transform: translateX(-50%);
    background: rgba(4, 6, 12, 0.62);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    pointer-events: none;
  }
}

@media (pointer: coarse) and (orientation: landscape), (max-width: 900px) and (orientation: landscape) {
  .title-actions {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .arcade-marquee {
    top: max(10px, env(safe-area-inset-top));
    min-width: min(520px, 70%);
    padding: 7px 18px 9px;
  }

  .arcade-marquee span {
    font-size: clamp(24px, 8vh, 44px);
  }

  .arcade-marquee small {
    font-size: 11px;
  }

  .coin-prompt {
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 78px));
  }

  .select-screen {
    gap: 6px;
    padding: 7px max(14px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .arcade-status span {
    min-width: 92px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .select-screen h1 {
    font-size: clamp(26px, 7vh, 40px);
    line-height: 0.9;
  }

  .select-layout {
    grid-template-columns: minmax(230px, 0.9fr) minmax(260px, 1.1fr);
    gap: 10px;
  }

  .player-select {
    gap: 5px;
  }

  .player-select h2 {
    font-size: clamp(18px, 5vh, 25px);
  }

  .pick-row {
    gap: 8px;
  }

  .pick-card {
    min-height: clamp(150px, 44vh, 190px);
    padding: 8px;
  }

  .pick-card img {
    bottom: 48px;
    height: 53%;
  }

  .pick-card span {
    font-size: clamp(18px, 5vh, 27px);
  }

  .pick-card small {
    margin-top: 3px;
    font-size: 9px;
  }

  .versus {
    font-size: clamp(36px, 12vh, 60px);
  }

  .level-select {
    gap: 4px;
    padding: 12px;
  }

  .level-select h2 {
    font-size: 14px;
  }

  .level-row {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }

  .level-card,
  .level-card span {
    min-height: 42px;
  }

  .level-card span {
    font-size: 10px;
  }

  #fightButton {
    min-height: 34px;
    min-width: 132px;
    font-size: 12px;
  }

  .mobile-controls {
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  .touch-cluster {
    gap: 7px;
  }

  .touch-cluster--action {
    max-width: min(54vw, 356px);
  }

  .touch-btn {
    width: 43px;
    min-width: 43px;
    height: 43px;
    min-height: 43px;
    font-size: 21px;
  }

  .touch-cluster--action .touch-btn {
    width: 44px;
    min-width: 44px;
    height: 38px;
    min-height: 38px;
    border-radius: 12px;
    font-size: 9px;
  }

  .touch-btn--jump {
    font-size: 10px;
  }

  .touch-btn--jump {
    margin-bottom: 14px;
  }

  .touch-btn--small {
    width: 49px;
    min-width: 49px;
    font-size: 9px;
  }
}

@media (max-height: 520px) {
  .select-screen {
    gap: 8px;
    padding: 10px 18px;
  }

  .select-screen h1 {
    font-size: clamp(34px, 7vh, 46px);
    line-height: 0.9;
  }

  .player-select {
    gap: 7px;
  }

  .player-select h2 {
    font-size: clamp(21px, 5vh, 28px);
  }

  .pick-row {
    gap: 8px;
  }

  .pick-card {
    min-height: 206px;
    padding: 10px;
  }

  .pick-card img {
    bottom: 54px;
    height: 58%;
  }

  .level-select {
    gap: 5px;
  }

  .level-select h2 {
    font-size: 16px;
  }

  .level-row {
    gap: 6px;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
  }

  .level-card,
  .level-card span {
    min-height: 46px;
  }

  .pick-card span {
    font-size: clamp(20px, 5vh, 28px);
  }

  .pick-card small {
    margin-top: 4px;
    font-size: 10px;
  }

  .versus {
    font-size: clamp(34px, 10vh, 54px);
  }

  #fightButton {
    min-height: 38px;
  }
}

@media (pointer: coarse) and (orientation: landscape), (max-width: 900px) and (orientation: landscape) {
  .select-screen {
    gap: 6px;
    padding: 7px max(14px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .select-screen h1 {
    font-size: clamp(26px, 7vh, 40px);
  }

  .player-select h2 {
    font-size: clamp(18px, 5vh, 25px);
  }

  .pick-card {
    min-height: clamp(150px, 44vh, 190px);
    padding: 8px;
  }

  .pick-card img {
    bottom: 48px;
    height: 53%;
  }

  .level-card,
  .level-card span {
    min-height: 42px;
  }

  #fightButton {
    min-height: 34px;
  }
}

.select-screen {
  place-items: stretch center;
  align-content: stretch;
  padding: clamp(12px, 2vw, 24px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 4, 12, 0.18), rgba(2, 3, 9, 0.76)),
    radial-gradient(circle at 20% 18%, rgba(255, 221, 72, 0.22), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(45, 213, 255, 0.26), transparent 26%),
    url("assets/ui/backgrounds/Background 1.png") center / cover no-repeat;
}

.select-screen::before {
  background:
    linear-gradient(105deg, rgba(35, 205, 255, 0.24), transparent 28%, transparent 66%, rgba(255, 68, 148, 0.28)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 5px);
  opacity: 0.7;
}

.select-cinema {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.5vh, 18px);
  width: min(1240px, 100%);
  height: 100%;
  min-height: 0;
}

.select-cinema::before,
.select-cinema::after {
  content: "";
  position: absolute;
  inset: -3% -5%;
  z-index: -1;
  pointer-events: none;
}

.select-cinema::before {
  background:
    linear-gradient(80deg, transparent 0 14%, rgba(54, 208, 255, 0.18) 16% 17%, transparent 23% 100%),
    linear-gradient(-74deg, transparent 0 16%, rgba(255, 70, 158, 0.18) 18% 19%, transparent 26% 100%);
}

.select-cinema::after {
  background: radial-gradient(ellipse at 47% 100%, rgba(255, 220, 74, 0.28), transparent 42%);
}

.select-cinema .arcade-status {
  justify-content: space-between;
  width: min(800px, 90%);
  margin: 0 auto;
}

.select-cinema .arcade-status span {
  min-width: clamp(104px, 16vw, 176px);
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(90deg, rgba(255, 197, 45, 0.2), rgba(56, 213, 255, 0.2)),
    rgba(3, 6, 15, 0.72);
  color: #f8fbff;
}

.character-stage {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(12px, 2vw, 28px);
  min-height: 0;
  align-items: stretch;
}

.fighter-hero,
.roster-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(2, 5, 14, 0.68);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.48),
    inset 0 0 70px rgba(255, 255, 255, 0.045);
}

.fighter-hero {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(18px, 2.4vw, 30px);
  clip-path: polygon(0 0, 88% 0, 100% 13%, 100% 100%, 8% 100%, 0 88%);
}

.fighter-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 66%, rgba(255, 224, 75, 0.24), transparent 24%),
    radial-gradient(circle at 52% 74%, rgba(55, 217, 255, 0.32), transparent 32%),
    linear-gradient(90deg, rgba(255, 66, 47, 0.18), transparent 42%, rgba(59, 207, 255, 0.18));
  opacity: 0.92;
  pointer-events: none;
}

.fighter-hero::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 10%;
  bottom: 6%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.68), transparent 66%);
  filter: blur(8px);
  pointer-events: none;
}

.fighter-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  align-content: start;
}

.fighter-hero-copy span {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 5px;
  background: rgba(1, 4, 13, 0.7);
  color: #48e4ff;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(72, 228, 255, 0.3);
}

.fighter-hero-copy h1 {
  max-width: 10ch;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 0.84;
  text-align: left;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.72),
    0 0 28px rgba(72, 220, 255, 0.64),
    0 7px 0 rgba(0, 0, 0, 0.64);
}

.fighter-hero-copy p {
  color: #ffd85c;
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 216, 92, 0.56), 0 3px 12px #000;
}

.fighter-spotlight {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  place-items: end center;
}

#selectedFighterArt {
  max-width: 112%;
  max-height: min(58vh, 520px);
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(255, 237, 113, 0.26))
    drop-shadow(0 0 28px rgba(42, 214, 255, 0.3))
    drop-shadow(0 34px 28px rgba(0, 0, 0, 0.6));
  transform-origin: center bottom;
  animation: heroReady 2.1s ease-in-out infinite;
}

.roster-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: clamp(14px, 1.8vw, 22px);
  border-color: rgba(71, 218, 255, 0.42);
  clip-path: polygon(7% 0, 100% 0, 100% 88%, 94% 100%, 0 100%, 0 12%);
}

.roster-panel h2 {
  color: #fff;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(72, 216, 255, 0.78), 0 4px 0 rgba(0, 0, 0, 0.66);
}

.roster-panel .pick-row {
  grid-template-columns: repeat(6, minmax(74px, 1fr));
  align-content: start;
  gap: clamp(7px, 1vw, 10px);
  min-height: 0;
  overflow-y: auto;
  padding: 4px 6px 10px;
  scrollbar-color: rgba(72, 216, 255, 0.72) rgba(0, 0, 0, 0.3);
}

.roster-panel .pick-card {
  min-height: clamp(116px, 17.8vh, 150px);
  border-color: rgba(255, 255, 255, 0.3);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(6, 8, 20, 0.8));
}

.roster-panel .pick-card img {
  bottom: 42px;
  height: calc(100% - 50px);
}

.roster-panel .pick-card span {
  font-size: clamp(10px, 0.94vw, 14px);
}

.roster-panel .pick-card small {
  max-width: 100%;
  margin-bottom: 10px;
  font-size: clamp(7px, 0.7vw, 9px);
  white-space: nowrap;
}

.select-actions {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: clamp(10px, 1.5vw, 18px);
}

.select-actions .secret-unlock {
  justify-content: start;
  width: 100%;
}

.select-actions .control-hint {
  margin: 0;
  text-align: right;
}

.map-screen {
  place-items: stretch center;
  padding: clamp(10px, 1.6vw, 20px);
  overflow: hidden;
  background: #02040a;
}

.map-screen::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 71, 0.14), transparent 24%),
    radial-gradient(circle at 85% 78%, rgba(53, 206, 255, 0.18), transparent 28%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px);
  opacity: 0.86;
}

.map-cinema {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1240px, 100%);
  height: 100%;
  min-height: 0;
}

.map-hud {
  position: absolute;
  left: clamp(16px, 2.6vw, 34px);
  top: clamp(14px, 2.4vh, 28px);
  z-index: 8;
  max-width: min(470px, 56%);
  padding: 14px 16px 16px;
  border-left: 4px solid #ffd545;
  background: linear-gradient(90deg, rgba(2, 5, 14, 0.86), rgba(2, 5, 14, 0.3));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38);
  text-transform: uppercase;
}

.map-hud span {
  color: #44e4ff;
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 1000;
  text-shadow: 0 0 14px rgba(68, 228, 255, 0.72);
}

.map-hud h1 {
  margin-top: 3px;
  color: #fff;
  font-size: clamp(34px, 4.8vw, 70px);
  line-height: 0.84;
  text-align: left;
}

.map-hud p {
  margin-top: 8px;
  color: #ffd85c;
  font-size: clamp(11px, 1.28vw, 16px);
  font-weight: 950;
  line-height: 1.15;
  text-shadow: 0 2px 10px #000;
}

.map-screen .tour-map {
  width: min(100%, calc(100vh * 1402 / 1122));
  max-width: 100%;
  max-height: calc(100vh - 40px);
  aspect-ratio: 1402 / 1122;
  border-color: rgba(255, 212, 68, 0.66);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 42px rgba(255, 216, 84, 0.22),
    0 0 60px rgba(56, 206, 255, 0.2),
    0 26px 72px rgba(0, 0, 0, 0.66);
}

.map-screen .tour-map-image {
  filter: saturate(1.16) contrast(1.08);
}

.map-screen .tour-stop {
  width: clamp(22px, 3.35%, 40px);
  height: clamp(22px, 3.35%, 40px);
}

.map-screen .tour-van {
  width: clamp(72px, 8.5%, 118px);
  transition:
    left 300ms linear,
    top 300ms linear;
}

.tour-map.is-path-animating .tour-van {
  transition: none;
}

#mapContinueButton {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(16px, 2.8vh, 36px);
  z-index: 9;
  min-width: clamp(190px, 23vw, 330px);
  min-height: clamp(50px, 7vh, 72px);
  border-color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(180deg, #f9ff83, #ffc42b 46%, #ff6f1d),
    #ffc42b;
  color: #1b1000;
  font-size: clamp(16px, 2.2vw, 26px);
  font-style: italic;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.36);
  box-shadow:
    0 0 24px rgba(255, 206, 47, 0.78),
    0 11px 0 rgba(86, 35, 0, 0.72),
    0 24px 42px rgba(0, 0, 0, 0.48);
}

#mapContinueButton:disabled {
  opacity: 0.74;
  filter: saturate(0.78);
  transform: translateY(5px);
  box-shadow:
    0 0 12px rgba(255, 206, 47, 0.36),
    0 6px 0 rgba(86, 35, 0, 0.72),
    0 18px 36px rgba(0, 0, 0, 0.42);
  cursor: wait;
}

@keyframes heroReady {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.012);
  }
}

@media (max-width: 1040px) {
  .character-stage {
    grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr);
  }

  .roster-panel .pick-row {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
  }

  .select-actions {
    grid-template-columns: 1fr auto;
  }

  .select-actions .control-hint {
    display: none;
  }
}

@media (max-width: 760px), (pointer: coarse) and (orientation: portrait) {
  .select-screen {
    overflow-y: auto;
    place-items: start center;
    padding: max(12px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom));
  }

  .select-cinema {
    height: auto;
    min-height: 100%;
  }

  .select-cinema .arcade-status {
    gap: 6px;
    justify-content: center;
  }

  .character-stage {
    grid-template-columns: 1fr;
  }

  .fighter-hero {
    min-height: 470px;
  }

  .fighter-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(36px, 12vw, 58px);
  }

  #selectedFighterArt {
    max-height: 320px;
  }

  .roster-panel .pick-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .roster-panel .pick-card {
    min-height: 150px;
  }

  .select-actions {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .select-actions .secret-unlock {
    justify-content: center;
  }

  .map-screen {
    place-items: center;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }

  .map-hud {
    left: 10px;
    right: 10px;
    top: 10px;
    max-width: none;
    padding: 10px 12px;
  }

  .map-hud h1 {
    font-size: clamp(30px, 11vw, 48px);
  }

  .map-hud p {
    font-size: 11px;
  }

  .map-screen .tour-map {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  #mapContinueButton {
    left: 50%;
    right: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    min-width: min(300px, 78vw);
    transform: translateX(-50%);
  }

  #mapContinueButton:disabled {
    transform: translateX(-50%) translateY(5px);
  }
}

@media (pointer: coarse) and (orientation: landscape), (max-width: 940px), (max-height: 540px) {
  .select-cinema {
    gap: 7px;
  }

  .select-cinema .arcade-status span {
    min-height: 24px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .character-stage {
    grid-template-columns: minmax(220px, 0.72fr) minmax(430px, 1.28fr);
    gap: 9px;
  }

  .fighter-hero {
    padding: 12px;
  }

  .fighter-hero-copy h1 {
    font-size: clamp(28px, 8vh, 48px);
  }

  .fighter-hero-copy p {
    font-size: clamp(11px, 2.5vh, 16px);
  }

  #selectedFighterArt {
    max-height: min(48vh, 300px);
  }

  .roster-panel {
    gap: 6px;
    padding: 10px;
  }

  .roster-panel h2 {
    font-size: clamp(18px, 5vh, 28px);
  }

  .roster-panel .pick-row {
    grid-template-columns: repeat(6, minmax(58px, 1fr));
    gap: 6px;
  }

  .roster-panel .pick-card {
    min-height: clamp(92px, 24vh, 124px);
  }

  .select-actions {
    gap: 8px;
  }

  #fightButton {
    min-height: 44px;
    min-width: 190px;
    font-size: 20px;
  }

  .secret-unlock input,
  .secret-unlock button {
    min-height: 34px;
  }

  .map-hud {
    max-width: 42%;
    padding: 10px 12px;
  }

  .map-hud h1 {
    font-size: clamp(28px, 9vh, 54px);
  }

  .map-hud p {
    font-size: 10px;
  }

  #mapContinueButton {
    min-height: 44px;
    min-width: 190px;
    font-size: 16px;
  }
}

/* Screenshot-backed screen art supplied by the user. */
.title-screen {
  background: #020005;
}

.title-screen::before,
.title-screen::after {
  display: none;
}

.title-screen img {
  inset: 0;
  opacity: 1;
  filter: none;
  object-fit: cover;
}

.title-screen .arcade-marquee,
.title-screen .coin-prompt {
  display: none;
}

.title-screen .title-actions {
  inset: 0;
  display: block;
  transform: none;
  pointer-events: none;
}

.title-screen .title-actions button {
  position: absolute;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: transparent;
  box-shadow: none;
  text-shadow: none;
  outline: 0;
  pointer-events: auto;
}

.title-screen .title-actions button:first-child {
  left: 22.6%;
  top: 84.4%;
  width: 30.0%;
  height: 10.2%;
}

.title-screen .title-actions button:nth-child(2) {
  left: 53.2%;
  top: 85.0%;
  width: 24.0%;
  height: 9.2%;
}

.title-screen .title-actions button:hover,
.title-screen .title-actions button:focus-visible {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.select-screen {
  place-items: stretch;
  padding: 0;
  background: #020005 var(--character-page, url("assets/ui/screens/character-page.png")) center / cover no-repeat;
}

.select-screen::before,
.select-screen::after {
  display: none;
}

.select-cinema {
  width: 100%;
  max-width: none;
  height: 100%;
  gap: 0;
}

.select-cinema::before,
.select-cinema::after,
.select-cinema .arcade-status,
.roster-panel h2,
.fighter-spotlight,
.control-hint {
  display: none;
}

.select-highlight {
  display: none !important;
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.character-stage {
  position: absolute;
  inset: 0;
  display: block;
}

.fighter-hero {
  position: absolute;
  left: 0;
  top: 0;
  width: 54%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  clip-path: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.fighter-hero::before,
.fighter-hero::after {
  display: none;
}

.fighter-hero-copy {
  display: none;
  position: absolute;
  left: 4.1%;
  top: 29.2%;
  z-index: 3;
  width: min(30vw, 390px);
  gap: 4px;
}

.fighter-hero-copy span {
  display: none;
}

.fighter-hero-copy h1 {
  max-width: 9ch;
  color: #fff;
  font-size: clamp(50px, 7.4vw, 108px);
  line-height: 0.82;
  text-align: left;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.58), 0 0 20px rgba(255, 255, 255, 0.62);
}

.fighter-hero-copy p {
  margin-top: 12px;
  color: #ff37d5;
  font-size: clamp(22px, 2.8vw, 44px);
  font-weight: 1000;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 55, 213, 0.82), 0 4px 0 #000;
}

.roster-panel {
  position: absolute;
  top: 18.0%;
  right: 2.1%;
  width: 42.6%;
  height: 58.4%;
  min-height: 0;
  padding: 0;
  border: 0;
  clip-path: none;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.roster-panel .pick-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  gap: clamp(5px, 0.55vw, 9px);
  padding: 0;
  overflow: visible;
}

.select-screen .pick-card {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 6px 4px 8px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.select-screen .pick-card.is-selected {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.select-screen .pick-card::before,
.select-screen .pick-card::after {
  display: none;
}

.select-screen .pick-card img {
  bottom: 33%;
  height: 60%;
  max-width: 94%;
  opacity: 0;
  filter:
    drop-shadow(0 0 10px rgba(255, 75, 230, 0.34))
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.68));
}

.select-screen .pick-card span {
  opacity: 0;
  font-size: clamp(8px, 0.98vw, 16px);
  line-height: 0.88;
}

.select-screen .pick-card small {
  opacity: 0;
  margin-top: 3px;
  margin-bottom: 0;
  font-size: clamp(6px, 0.68vw, 10px);
  line-height: 1;
  white-space: normal;
}

.select-screen .pick-card.is-secret-locked {
  border-color: transparent;
  background: transparent;
}

.select-screen .pick-card.is-secret-locked img {
  opacity: 0;
  filter: brightness(0) drop-shadow(0 0 13px rgba(255, 68, 255, 0.95));
}

.select-actions {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.select-actions .secret-unlock {
  position: absolute;
  left: auto;
  right: 1.3%;
  top: 1.3%;
  bottom: auto;
  z-index: 5;
  justify-content: start;
  width: min(300px, 26vw);
  padding: 4px 8px;
  border: 1px solid rgba(52, 208, 255, 0.42);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0.12;
  transform: scale(0.84);
  transform-origin: top right;
  pointer-events: auto;
  transition: opacity 120ms ease;
}

.select-actions .secret-unlock:hover,
.select-actions .secret-unlock:focus-within {
  opacity: 1;
}

.select-actions .secret-unlock input {
  width: min(190px, 17vw);
  min-height: 30px;
  border-color: rgba(47, 213, 255, 0.66);
  background: rgba(3, 5, 14, 0.74);
  font-size: 11px;
}

.select-actions .secret-unlock button {
  min-width: 78px;
  min-height: 30px;
  border-color: rgba(255, 212, 55, 0.72);
  background: rgba(255, 199, 37, 0.88);
  color: #170900;
  font-size: 10px;
  box-shadow: 0 0 14px rgba(255, 206, 39, 0.34);
}

#secretStatus {
  min-width: 94px;
  font-size: 9px;
}

#fightButton {
  position: absolute;
  left: 20.5%;
  top: auto;
  bottom: 1.3%;
  z-index: 5;
  width: 19.2%;
  min-width: 0;
  height: 7.1%;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: transparent;
  box-shadow: none;
  text-shadow: none;
  outline: 0;
  pointer-events: auto;
}

#fightButton:hover,
#fightButton:focus-visible {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.map-screen {
  place-items: stretch;
  padding: 0;
  background: #020005;
}

.map-screen::before,
.map-screen::after {
  display: none;
}

.map-cinema {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
}

.map-screen .tour-map {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  aspect-ratio: 1680 / 935;
  border: 0;
  border-radius: 0;
  background: #020005;
  box-shadow: none;
}

.map-screen .tour-map-image {
  object-fit: cover;
  filter: none;
}

.map-screen .tour-stop,
.map-screen .tour-progress-badge {
  display: none;
}

.map-screen .tour-van {
  width: clamp(74px, 8.4%, 132px);
  aspect-ratio: 3 / 2;
  filter:
    drop-shadow(0 0 10px rgba(255, 106, 24, 0.92))
    drop-shadow(0 0 18px rgba(224, 44, 255, 0.82))
    drop-shadow(0 12px 12px rgba(0, 0, 0, 0.76));
}

.tour-map.is-path-animating .tour-van {
  animation: vanSpriteDrive 560ms steps(4) infinite;
}

.map-hud {
  display: none;
}

.map-hud span {
  color: #ff4edb;
  font-size: clamp(9px, 1vw, 13px);
}

.map-hud h1 {
  margin-top: 3px;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 38px);
  line-height: 0.9;
  text-align: left;
}

.map-hud p {
  margin-top: 5px;
  color: #ffd94d;
  font-size: clamp(9px, 0.95vw, 13px);
  line-height: 1.12;
}

#mapContinueButton {
  right: 2.7%;
  bottom: 2.0%;
  z-index: 9;
  width: min(25.8vw, 440px);
  min-width: 0;
  height: clamp(58px, 9.2vh, 100px);
  min-height: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: transparent;
  font-size: clamp(17px, 2.6vw, 38px);
  font-weight: 1000;
  font-style: italic;
  text-shadow: none;
  box-shadow: none;
  outline: 0;
}

#mapContinueButton:hover,
#mapContinueButton:focus-visible {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

#mapContinueButton:disabled {
  opacity: 0.76;
  transform: translateY(5px);
}

@keyframes vanSpriteDrive {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 0%;
  }
}

@media (max-width: 760px), (pointer: coarse) and (orientation: portrait) {
  .title-screen .title-actions {
    inset: 0;
  }

  .title-screen .title-actions button:first-child,
  .title-screen .title-actions button:nth-child(2) {
    height: 9.4%;
  }

  .select-screen {
    overflow: hidden;
    background-position: center;
  }

  .fighter-hero-copy {
    top: 24%;
    width: 36vw;
  }

  .fighter-hero-copy h1 {
    font-size: clamp(34px, 11vw, 62px);
  }

  .fighter-hero-copy p {
    font-size: clamp(16px, 5vw, 28px);
  }

  .roster-panel {
    top: 18%;
    right: 2%;
    width: 48%;
    height: 55%;
  }

  .roster-panel .pick-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    overflow-y: auto;
  }

  .select-actions .secret-unlock {
    right: 1%;
    top: 1%;
    width: 34vw;
  }

  .select-actions .secret-unlock input {
    width: 24vw;
  }

  #fightButton {
    left: 21%;
    top: auto;
    bottom: max(7px, env(safe-area-inset-bottom));
    width: 19%;
    height: 7.5%;
  }

  .map-hud {
    width: min(270px, 45vw);
  }

  #mapContinueButton {
    right: 3%;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: auto;
    width: 34vw;
    transform: none;
  }

  #mapContinueButton:disabled {
    transform: translateY(5px);
  }
}

.title-screen .title-actions button,
.title-screen .title-actions button:hover,
.title-screen .title-actions button:focus,
.title-screen .title-actions button:focus-visible,
.select-screen .pick-card,
.select-screen .pick-card:hover,
.select-screen .pick-card:focus,
.select-screen .pick-card:focus-visible,
.select-screen .pick-card.is-selected,
#fightButton,
#fightButton:hover,
#fightButton:focus,
#fightButton:focus-visible,
#mapContinueButton,
#mapContinueButton:hover,
#mapContinueButton:focus,
#mapContinueButton:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-tap-highlight-color: transparent;
}

.title-screen .title-actions button,
.select-screen .pick-card,
#fightButton,
#mapContinueButton {
  color: transparent !important;
  text-shadow: none !important;
  user-select: none;
}

.select-screen .roster-panel {
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.select-screen .roster-panel .pick-row {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  gap: 0;
  padding: 0;
  overflow: visible;
  pointer-events: none;
}

.select-screen .roster-panel .pick-card {
  position: absolute;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: auto;
}

.select-screen #fightButton,
.select-screen #fightButton:hover,
.select-screen #fightButton:focus,
.select-screen #fightButton:focus-visible {
  left: 20.8% !important;
  right: auto !important;
  top: auto !important;
  bottom: 1.65% !important;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(23vw, 390px) !important;
  height: clamp(46px, 6.4vh, 72px) !important;
  border: 2px solid rgba(255, 214, 74, 0.86) !important;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 190, 25, 0.96), rgba(255, 121, 10, 0.94)) !important;
  color: #120500 !important;
  font-size: clamp(14px, 1.65vw, 30px);
  font-weight: 1000;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    0 0 18px rgba(255, 190, 25, 0.82),
    0 0 34px rgba(255, 76, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
  cursor: pointer;
  pointer-events: auto;
}

.select-screen #fightButton::before {
  content: "A";
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  margin-right: 0.42em;
  border-radius: 50%;
  background: #1fca25;
  color: #061700;
  font-size: 0.76em;
  font-style: normal;
  box-shadow: 0 0 12px rgba(47, 255, 73, 0.7);
}

.select-screen #fightButton:hover,
.select-screen #fightButton:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

@media (max-width: 760px), (pointer: coarse) and (orientation: portrait) {
  .select-screen #fightButton,
  .select-screen #fightButton:hover,
  .select-screen #fightButton:focus,
  .select-screen #fightButton:focus-visible {
    left: 17% !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    width: 30vw !important;
    height: clamp(40px, 6.6vh, 62px) !important;
    font-size: clamp(12px, 3.4vw, 20px);
  }
}

.select-screen #fightButton,
.select-screen #fightButton:hover,
.select-screen #fightButton:focus,
.select-screen #fightButton:focus-visible {
  left: 26.6% !important;
  right: auto !important;
  top: auto !important;
  bottom: 1.8% !important;
  width: 48.2% !important;
  height: 11.4% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  cursor: pointer;
  pointer-events: auto;
}

.select-screen #fightButton::before {
  content: none !important;
}

@media (max-width: 760px), (pointer: coarse) and (orientation: portrait) {
  .select-screen #fightButton,
  .select-screen #fightButton:hover,
  .select-screen #fightButton:focus,
  .select-screen #fightButton:focus-visible {
    left: 21% !important;
    bottom: max(7px, env(safe-area-inset-bottom)) !important;
    width: 58% !important;
    height: 12% !important;
  }
}
