:root  {
  --paper:#f4f3eb;
  --panel:#eae9df;
  --ink:#22231f;
  --muted:#68695e;
  --lime:#d4ff3f;
  --line:#c8c9bb;
  --white:#fffef6;
  --arena:#1d2b25;
  --mono:"Courier New",monospace;
  --display:"Arial Black",Arial,sans-serif;
  font-family:Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  color-scheme:light;
}
* {
  box-sizing:border-box;
}
[hidden] {
  display:none!important;
}
html {
  min-height:100%;
  overflow-x:clip;
}
body {
  margin:0;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
body.in-run {
  overflow:hidden;
  background:var(--arena);
}
body.in-run .skip-link {
  display:none;
}
button,a,select {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
  font:inherit;
  color:inherit;
  border-radius:0;
}
button:disabled {
  cursor:not-allowed;
}
button,a,select {
  touch-action:manipulation;
}
button:focus-visible,a:focus-visible,select:focus-visible {
  outline:3px solid #637b00;
  outline-offset:5px;
}
button:active:not(:disabled) {
  transform:translate(1px,1px);
}
a {
  color:inherit;
  text-decoration:none;
}
h1,h2,h3,p {
  margin:0;
}
img {
  display:block;
  width:100%;
  height:auto;
}
.game-icon {
  display:inline-block;
  width:var(--icon-size,48px);
  height:var(--icon-size,48px);
  flex-shrink:0;
  background-image:var(--icon-sheet,none);
  background-size:var(--icon-grid,100% 100%);
  background-position:var(--icon-position,center);
  background-repeat:no-repeat;
  vertical-align:middle;
  pointer-events:none;
}
h1,h2,h3 {
  font-family:var(--display);
  font-weight:900;
  letter-spacing:-.065em;
  line-height:.95;
}
.page-width {
  width:min(1360px,calc(100% - 88px));
  margin-inline:auto;
}
.domain-strip {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  background:var(--lime);
  padding:8px 44px;
  border-bottom:1px solid var(--ink);
  font:700 10px/1.5 var(--mono);
  letter-spacing:.04em;
}
.online-dot:before,.arena-status-dot {
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  display:inline-block;
  background:currentColor;
  margin-right:7px;
  vertical-align:middle;
}
.menu-header {
  height:105px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  border-bottom:1px solid var(--line);
}
.site-brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--display);
  font-size:16px;
  line-height:.91;
  font-weight:900;
  letter-spacing:-.055em;
}
.brand-face {
  font-family:Arial,sans-serif;
  display:grid;
  place-items:center;
  border:2px solid currentColor;
  border-radius:50%;
  font-size:38px;
  width:42px;
  height:42px;
  line-height:1;
}
.site-brand>span:last-child {
  position:relative;
}
.brand-dot {
  position:absolute;
  font:10px Arial;
  right:-12px;
  top:-4px;
}
.menu-tabs {
  display:flex;
  gap:25px;
}
.menu-tab {
  background:none;
  border:0;
  padding:16px 0;
  color:var(--muted);
  font:11px var(--mono);
  display:flex;
  gap:9px;
  align-items:center;
  white-space:nowrap;
}
.menu-tab span {
  font-weight:700;
}
.menu-tab.active {
  color:var(--ink);
}
.menu-tab.active span {
  box-shadow:0 3px 0 var(--lime);
}
.header-tools {
  display:flex;
  align-items:center;
  gap:16px;
}
.wallet {
  font:700 15px var(--mono);
  white-space:nowrap;
}
.wallet>span {
  font-size:25px;
  vertical-align:-2px;
}
.icon-button {
  background:none;
  border:1px solid var(--line);
  padding:8px 10px;
  font:12px var(--mono);
  white-space:nowrap;
}
.back-link {
  font:700 10px var(--mono);
  white-space:nowrap;
}
.sound-toggle[aria-pressed="true"] {
  background:var(--lime);
  color:var(--ink);
  border-color:var(--ink);
}
.selection-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:34px 0 18px;
  min-height:78px;
}
.eyebrow {
  font:700 10px/1.6 var(--mono);
  letter-spacing:.1em;
}
.tiny-square {
  display:inline-block;
  background:var(--ink);
  width:7px;
  height:7px;
  margin-right:9px;
}
.handwritten {
  font-family:var(--mono);
  font-size:14px;
  line-height:1.1;
  transform:rotate(-6deg);
  margin-right:30px;
}
.selection-grid {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr);
  gap:50px;
  align-items:start;
}
.roster-column h1 {
  font-size:clamp(60px,6.7vw,102px);
  position:relative;
  letter-spacing:-.075em;
  line-height:.92;
}
h1>span {
  color:var(--paper);
  -webkit-text-stroke:2px var(--ink);
}
.roster-column h1 i {
  font:normal 70px/1 Arial;
  position:absolute;
  right:8px;
  top:3px;
  transform:rotate(-8deg);
}
.intro-copy {
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  margin-top:24px;
}
.roster-label {
  display:flex;
  justify-content:space-between;
  font:700 9px var(--mono);
  letter-spacing:.05em;
  margin:32px 0 11px;
}
.roster-label>span:last-child {
  color:var(--muted);
  font-weight:400;
}
.character-list {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.character-card {
  background:transparent;
  border:1px solid var(--ink);
  padding:0;
  text-align:left;
  position:relative;
  overflow:hidden;
  transition:box-shadow .16s,transform .16s;
}
.character-card:hover {
  box-shadow:3px 3px 0 var(--ink);
  transform:translate(-2px,-2px);
}
.character-card.selected {
  box-shadow:4px 4px 0 var(--ink);
}
.character-photo {
  height:165px;
  overflow:hidden;
  position:relative;
  background:#dadbd0;
}
.character-photo img {
  height:100%;
  object-fit:cover;
  object-position:center 32%;
  filter:saturate(.45);
  transition:filter .2s,transform .3s;
}
.character-card.selected .character-photo img,.character-card:hover img {
  filter:saturate(1);
}
.character-card:hover img {
  transform:scale(1.04);
}
.character-id {
  position:absolute;
  top:8px;
  left:8px;
  background:var(--paper);
  padding:2px 5px;
  font:9px var(--mono);
}
.character-check {
  position:absolute;
  right:7px;
  top:7px;
  background:var(--lime);
  width:24px;
  height:24px;
  display:none;
  place-items:center;
  border:1px solid var(--ink);
  font-weight:900;
}
.character-card.selected .character-check {
  display:grid;
}
.character-caption {
  padding:11px 10px;
  background:var(--paper);
  border-top:1px solid var(--ink);
}
.selected .character-caption {
  background:var(--lime);
}
.character-caption strong {
  display:block;
  font:900 19px/.98 var(--display);
  letter-spacing:-.045em;
}
.character-caption small {
  font:8px/1.5 var(--mono);
  display:block;
  margin-top:6px;
  letter-spacing:.015em;
}
.run-promise {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:22px;
  max-width:470px;
}
.run-promise>span {
  font-size:33px;
  line-height:1;
}
.run-promise p {
  font-size:11px;
  line-height:1.6;
  color:var(--muted);
}
.run-promise b {
  color:var(--ink);
}
.kit-panel {
  border:1px solid var(--ink);
  background:var(--panel);
  padding:20px 24px 15px;
  position:relative;
  box-shadow:6px 6px 0 rgba(34,35,31,.09);
}
.kit-topline {
  display:flex;
  justify-content:space-between;
  font:8px var(--mono);
  letter-spacing:.06em;
  border-bottom:1px solid var(--line);
  padding-bottom:13px;
  margin-bottom:18px;
}
.selected-character {
  display:grid;
  grid-template-columns:76px 1fr;
  gap:15px;
  align-items:center;
  margin-bottom:19px;
}
.selected-portrait {
  width:76px;
  height:82px;
  object-fit:cover;
  object-position:center 30%;
  border:1px solid var(--ink);
  transform:rotate(-4deg);
  box-shadow:3px 3px 0 var(--lime);
}
.selected-identity h2 {
  font-size:36px;
}
.selected-identity .character-title {
  font:9px/1.5 var(--mono);
  margin-top:6px;
}
.selected-identity p:last-child {
  font-size:11px;
  color:var(--muted);
  margin-top:6px;
  line-height:1.45;
}
.ability-list {
  display:flex;
  flex-direction:column;
}
.ability-row {
  padding:10px 0;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:12px;
  align-items:start;
}
.ability-mark {
  position:relative;
  display:block;
  width:40px;
  height:44px;
}
.game-icon.ability-icon {
  --icon-size:36px;
}
.ability-key {
  position:absolute;
  bottom:0;
  right:-2px;
  font:700 7px var(--mono);
  border:1px solid #a6a899;
  min-width:25px;
  padding:2px 3px;
  text-align:center;
  background:var(--paper);
}
.ability-row:last-child .ability-key {
  background:var(--ink);
  color:var(--lime);
}
.ability-row h3 {
  font-family:Arial,sans-serif;
  font-size:12px;
  letter-spacing:-.02em;
  line-height:1.2;
  margin-bottom:4px;
}
.ability-row p {
  font-size:10px;
  color:#606257;
  line-height:1.45;
}
.primary-button {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border:1px solid var(--ink);
  padding:17px 20px;
  background:var(--lime);
  color:var(--ink);
  font-family:var(--display);
  font-size:15px;
  font-weight:900;
  letter-spacing:-.03em;
  text-align:left;
  box-shadow:3px 3px 0 var(--ink);
}
.primary-button:hover {
  background:#e0ff78;
}
.primary-button>span:last-child {
  font-family:Arial,sans-serif;
  font-size:25px;
  line-height:.8;
}
.start-button {
  width:100%;
  margin-top:17px;
  font-size:21px;
}
.start-note {
  font:8px var(--mono);
  text-align:center;
  padding-top:13px;
  color:var(--muted);
}
.menu-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:26px 0;
  margin-top:35px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.control-legend {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  font:8px var(--mono);
}
.control-legend>span {
  white-space:nowrap;
}
kbd {
  font-family:var(--mono);
  font-size:.95em;
  border:1px solid #8a8d7f;
  padding:3px 4px;
  line-height:1.7;
  white-space:nowrap;
}
.touch-note {
  display:none;
}
.best-stats {
  font:9px var(--mono);
  text-align:right;
  line-height:1.8;
  color:var(--muted);
  white-space:nowrap;
}
.best-stats b {
  color:var(--ink);
}
.page-footer {
  display:flex;
  justify-content:space-between;
  font:8px var(--mono);
  padding:23px 0 26px;
  letter-spacing:.025em;
  color:var(--muted);
}
.shop-view {
  padding-top:45px;
}
.shop-intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:50px;
}
.shop-intro h1 {
  font-size:clamp(64px,7vw,95px);
  margin-top:16px;
}
.shop-note {
  border:1px solid var(--ink);
  background:var(--lime);
  transform:rotate(3deg);
  padding:22px 26px;
  min-width:280px;
  box-shadow:5px 5px 0 var(--ink);
}
.shop-note>span:first-child {
  font-size:45px;
  line-height:1;
}
.shop-note p {
  font-family:var(--display);
  font-size:22px;
  line-height:1.05;
  letter-spacing:-.05em;
  margin:8px 0 20px;
}
.shop-note>span:last-child {
  font:8px var(--mono);
}
.shop-section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--ink);
  border-bottom:1px solid var(--line);
  padding:16px 0;
  margin-bottom:17px;
  gap:16px;
}
.shop-section-heading h2 {
  font:700 12px var(--mono);
  letter-spacing:.025em;
}
.shop-section-heading>span {
  font:9px var(--mono);
  color:var(--muted);
}
.shop-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:45px;
}
.shop-card {
  border:1px solid var(--line);
  padding:18px;
  background:#eeeee5;
  display:flex;
  flex-direction:column;
}
.shop-card.maxed {
  background:#e7edcf;
}
.shop-card-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font:9px var(--mono);
  margin-bottom:17px;
  color:var(--muted);
}
.game-icon.shop-icon {
  --icon-size:64px;
}
.shop-card h3 {
  font-family:Arial,sans-serif;
  font-size:17px;
  letter-spacing:-.03em;
  line-height:1.1;
}
.shop-level-dots {
  display:flex;
  gap:4px;
  margin-top:12px;
}
.shop-level-dots span {
  height:4px;
  background:#d2d4c5;
  flex:1;
}
.shop-level-dots span.filled {
  background:var(--ink);
}
.shop-current {
  font-size:10px;
  color:var(--muted);
  margin-top:13px;
  line-height:1.5;
}
.shop-next {
  font-size:11px;
  line-height:1.5;
  min-height:50px;
  margin:10px 0 14px;
  flex:1;
}
.purchase-button {
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font:700 10px var(--mono);
  background:var(--lime);
  border:1px solid var(--ink);
  padding:11px 10px;
}
.purchase-button:not(:disabled):hover {
  box-shadow:2px 2px 0 var(--ink);
}
.purchase-button:disabled {
  background:transparent;
  border-color:var(--line);
  color:#878a7b;
}
.shop-character-label {
  font:9px var(--mono);
  display:flex;
  align-items:center;
  gap:10px;
}
.shop-character-label select {
  font:700 10px var(--mono);
  padding:8px 26px 8px 10px;
  background:var(--paper);
  border:1px solid var(--ink);
  color:var(--ink);
}
.exclusive-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.shop-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding:25px 0;
}
.shop-footer p {
  font-size:11px;
  color:var(--muted);
}
.storage-note {
  border:1px solid #b6a370;
  background:#fff0bd;
  padding:12px;
  font-size:11px;
  margin:15px 0;
}
.game-screen {
  position:fixed;
  inset:0;
  overflow:hidden;
  background:var(--arena);
  color:var(--paper);
  height:100dvh;
  min-height:280px;
}
#game-canvas {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  touch-action:none;
}
#game-canvas.manual-aim {
  cursor:crosshair;
}
.arena-vignette {
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(ellipse at center,transparent 30%,rgba(5,12,7,.32) 100%);
}
.game-hud {
  position:absolute;
  top:max(18px,env(safe-area-inset-top));
  left:24px;
  right:24px;
  display:flex;
  align-items:start;
  gap:25px;
  pointer-events:none;
  z-index:2;
}
.hud-character {
  display:flex;
  gap:11px;
  width:270px;
}
.hud-character img {
  width:49px;
  height:55px;
  object-fit:cover;
  object-position:50% 30%;
  border:1px solid #788465;
  background:#1a211b;
}
.hud-vitals {
  flex:1;
  min-width:0;
}
.hud-name-line {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:6px;
  font:10px var(--mono);
}
.hud-name-line>b {
  font:900 15px var(--display);
  letter-spacing:-.04em;
}
.hud-name-line>span {
  font-size:9px;
  color:#d0d7c3;
}
.meter {
  position:relative;
  overflow:hidden;
}
.meter>span {
  position:absolute;
  inset:0 auto 0 0;
  width:100%;
  transform-origin:left;
  transition:transform .12s linear;
}
.hp-meter {
  height:11px;
  background:#532d33;
  border:1px solid #819373;
}
.hp-meter>span {
  background:var(--lime);
  width:100%;
}
.hp-meter.low>span {
  background:#ff796d;
}
.passive-label {
  margin-top:7px;
  font:8px var(--mono);
  color:#c1d29a;
  letter-spacing:.04em;
}
.hud-timer {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  text-align:center;
}
.hud-timer>span {
  display:block;
  font:8px var(--mono);
  letter-spacing:.13em;
  color:#b8c6ad;
  margin-bottom:3px;
}
.hud-timer>b {
  display:block;
  font:900 36px/1.1 var(--display);
  letter-spacing:-.045em;
  text-shadow:0 2px 10px #0e1c13;
}
.hud-numbers {
  margin-left:auto;
  display:flex;
  gap:20px;
  padding-top:9px;
  font:8px var(--mono);
  color:#b8c6ad;
}
.hud-numbers>span {
  display:flex;
  flex-direction:column;
  gap:3px;
}
.hud-numbers b {
  font:700 20px var(--mono);
  color:var(--paper);
}
.hud-actions {
  display:flex;
  gap:7px;
  pointer-events:auto;
  padding-top:4px;
}
.hud-actions button {
  height:37px;
  min-width:37px;
  border:1px solid #788465;
  background:rgba(19,32,24,.8);
  color:var(--paper);
  font:14px var(--mono);
  padding:8px;
}
.hud-actions .sound-toggle {
  font-size:11px;
}
.hud-actions .sound-toggle[aria-pressed="true"] {
  background:var(--lime);
  color:var(--ink);
}
.xp-strip {
  position:absolute;
  top:calc(max(18px,env(safe-area-inset-top)) + 74px);
  left:24px;
  right:24px;
  pointer-events:none;
}
.xp-meter {
  height:4px;
  background:rgba(220,233,200,.13);
}
.xp-meter>span {
  background:#a3bff7;
  width:100%;
  transform:scaleX(0);
}
.xp-strip>span {
  display:block;
  text-align:right;
  font:7px var(--mono);
  color:#a3b3a2;
  margin-top:6px;
}
.arena-caption {
  position:absolute;
  top:calc(max(18px,env(safe-area-inset-top)) + 96px);
  left:24px;
  font:8px var(--mono);
  letter-spacing:.08em;
  color:#9aab91;
  pointer-events:none;
}
.arena-caption>span:not(.arena-status-dot) {
  padding:0 7px;
  color:#63755b;
}
.arena-status-dot {
  color:var(--lime);
  width:5px;
  height:5px;
}
.attack-mode-button {
  position:absolute;
  top:calc(max(18px,env(safe-area-inset-top)) + 105px);
  right:24px;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  min-width:198px;
  padding:7px 10px;
  border:1px solid #788465;
  background:rgba(19,32,24,.92);
  color:var(--paper);
  text-align:left;
  z-index:2;
}
.attack-mode-button:hover {
  border-color:var(--lime);
}
.attack-mode-button[aria-pressed="true"] {
  border-color:var(--lime);
  color:var(--lime);
  background:rgba(34,49,25,.96);
}
.aim-mode-mark {
  font:27px/1 var(--mono);
}
.aim-mode-copy {
  display:flex;
  flex:1;
  flex-direction:column;
  gap:2px;
}
.aim-mode-copy strong {
  font:700 11px/1 var(--mono);
  letter-spacing:.08em;
}
.aim-mode-copy>span {
  font:6px/1.3 var(--mono);
  color:#bccbb2;
  white-space:nowrap;
}
.attack-mode-button kbd {
  font-size:8px;
  border-color:#788465;
  color:#c8d6bc;
}
.skill-bar {
  position:absolute;
  bottom:38px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  z-index:2;
}
.skill-button {
  width:170px;
  min-height:97px;
  padding:10px 11px;
  border:1px solid #8c9b73;
  background:rgba(19,32,24,.94);
  color:var(--paper);
  position:relative;
  overflow:hidden;
  text-align:left;
  isolation:isolate;
  touch-action:none;
}
.skill-button:before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:100%;
  transform:scaleY(var(--cooldown,0));
  transform-origin:bottom;
  background:rgba(163,177,145,.16);
  z-index:-1;
  pointer-events:none;
  transition:transform .1s linear;
}
.skill-button.is-ready {
  border-color:var(--lime);
}
.skill-button.is-ready:hover {
  background:#314729;
}
.skill-button.ultimate-skill {
  background:rgba(212,255,63,.94);
  color:var(--ink);
  border-color:var(--ink);
  box-shadow:3px 3px 0 #142219;
}
.skill-button.ultimate-skill.is-cooling {
  background:rgba(67,76,44,.94);
  color:#d2dcbf;
  border-color:#77825e;
}
.skill-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:7px;
  font:9px var(--mono);
}
.skill-key {
  border:1px solid currentColor;
  min-width:22px;
  padding:2px 4px;
  line-height:1;
  text-align:center;
}
.skill-status {
  font-size:9px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.skill-content {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.game-icon.skill-icon {
  --icon-size:48px;
  filter:drop-shadow(0 2px 0 rgba(0,0,0,.3));
}
.skill-button.is-cooling .skill-icon {
  opacity:.55;
  filter:saturate(.55);
}
.skill-button.skill-cast {
  border-color:#fffef6;
  box-shadow:0 0 0 2px #d4ff3f,0 0 22px rgba(212,255,63,.4);
}
.skill-name {
  font-family:Arial,sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1.25;
  display:block;
  min-height:14px;
  min-width:0;
  overflow-wrap:anywhere;
}
.desktop-hint {
  position:absolute;
  bottom:11px;
  left:50%;
  transform:translateX(-50%);
  white-space:nowrap;
  font:7px var(--mono);
  color:#9eae94;
  pointer-events:none;
}
.desktop-hint>span {
  padding:0 7px;
}
.desktop-hint kbd {
  padding:1px 3px;
  border-color:#52644b;
}
.run-notice {
  position:absolute;
  top:23%;
  left:50%;
  transform:translateX(-50%);
  max-width:min(80%,560px);
  background:var(--lime);
  color:var(--ink);
  padding:9px 16px;
  font:700 12px var(--mono);
  text-align:center;
  border:1px solid var(--ink);
  box-shadow:3px 3px 0 #142219;
  opacity:0;
  transition:opacity .16s;
  pointer-events:none;
  z-index:3;
}
.run-notice.visible {
  opacity:1;
}
.joystick {
  display:none;
  position:absolute;
  bottom:30px;
  left:27px;
  width:112px;
  height:112px;
  border:1px solid rgba(212,255,63,.34);
  border-radius:50%;
  background:rgba(15,27,18,.32);
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  z-index:3;
}
.joystick:before {
  content:"";
  position:absolute;
  inset:18px;
  border:1px dashed rgba(212,255,63,.15);
  border-radius:50%;
}
.joystick-knob {
  position:absolute;
  top:35px;
  left:35px;
  width:40px;
  height:40px;
  border:1px solid #b8d177;
  background:rgba(182,212,120,.28);
  border-radius:50%;
  pointer-events:none;
}
.joystick-label {
  position:absolute;
  top:-19px;
  left:0;
  right:0;
  text-align:center;
  font:8px var(--mono);
  letter-spacing:.14em;
  color:#9eae94;
}
.joystick-cross:before,.joystick-cross:after {
  content:"";
  position:absolute;
  background:rgba(212,255,63,.13);
  pointer-events:none;
}
.joystick-cross:before {
  width:1px;
  top:12px;
  bottom:12px;
  left:50%;
}
.joystick-cross:after {
  height:1px;
  left:12px;
  right:12px;
  top:50%;
}
.aim-joystick {
  display:none;
  position:absolute;
  right:24px;
  bottom:max(172px,calc(env(safe-area-inset-bottom) + 145px));
  width:84px;
  height:84px;
  border:1px solid rgba(212,255,63,.62);
  border-radius:50%;
  background:rgba(15,27,18,.54);
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  z-index:3;
}
.aim-joystick:before {
  content:"";
  position:absolute;
  inset:13px;
  border:1px dashed rgba(212,255,63,.25);
  border-radius:50%;
}
.aim-joystick-knob {
  position:absolute;
  top:24px;
  left:24px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid var(--lime);
  border-radius:50%;
  background:rgba(212,255,63,.22);
  color:var(--lime);
  font:26px/1 var(--mono);
  pointer-events:none;
}
.aim-joystick .joystick-label {
  color:var(--lime);
}
.overlay {
  position:fixed;
  inset:0;
  background:rgba(8,18,12,.78);
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
  overflow:auto;
  overscroll-behavior:contain;
  backdrop-filter:blur(5px);
}
.modal {
  width:min(100%,490px);
  background:var(--paper);
  color:var(--ink);
  padding:34px 38px;
  border:1px solid var(--ink);
  box-shadow:8px 8px 0 rgba(0,0,0,.35);
  position:relative;
  max-height:calc(100dvh - 50px);
  overflow-y:auto;
}
.modal .eyebrow {
  font-size:8px;
}
.pause-panel h2 {
  font-size:90px;
  margin:22px 0 20px;
}
.pause-panel>p:not(.eyebrow):not(.modal-tip) {
  font-size:13px;
  color:var(--muted);
}
.pause-controls {
  display:grid;
  gap:11px;
  margin-top:30px;
}
.secondary-button {
  background:transparent;
  border:1px solid var(--ink);
  padding:13px 17px;
  font:700 11px var(--mono);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.secondary-button:hover {
  background:#e3e5d7;
}
.modal-tip {
  font:9px var(--mono);
  text-align:center;
  color:var(--muted);
  margin-top:21px;
}
.quit-confirm {
  margin-top:20px;
  padding:14px;
  background:#f3e1d5;
  border:1px solid #b77b64;
}
.quit-confirm p {
  font-size:12px;
  line-height:1.5;
  margin-bottom:11px;
}
.quit-confirm>div {
  display:flex;
  gap:8px;
}
.quit-confirm button {
  flex:1;
  font-size:9px;
  padding:11px 7px;
}
.danger-button {
  border:1px solid #623a2e;
  color:#fff4e9;
  background:#703f33;
  font:700 10px var(--mono);
}
.upgrade-panel {
  width:min(100%,900px);
  padding:30px;
}
.upgrade-title-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.upgrade-title-row h2 {
  font-size:65px;
  margin-top:12px;
}
.upgrade-title-row h2 span {
  color:#91a914;
}
.level-sticker {
  border:1px solid var(--ink);
  background:var(--lime);
  padding:13px 14px;
  transform:rotate(7deg);
  font:900 28px var(--display);
  letter-spacing:-.06em;
}
.upgrade-description {
  font-size:12px;
  color:var(--muted);
  margin-top:16px;
}
.upgrade-choices {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
  margin-top:25px;
}
.upgrade-choice {
  border:1px solid var(--ink);
  padding:18px;
  background:var(--panel);
  color:var(--ink);
  text-align:left;
  display:flex;
  flex-direction:column;
  min-height:245px;
}
.upgrade-choice:hover {
  background:var(--lime);
  box-shadow:4px 4px 0 var(--ink);
  transform:translate(-2px,-2px);
}
.choice-meta {
  font:8px var(--mono);
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
}
.game-icon.choice-icon {
  --icon-size:88px;
  margin-top:18px;
}
.upgrade-choice strong {
  font-family:var(--display);
  font-size:21px;
  letter-spacing:-.05em;
  line-height:1.05;
  margin-top:15px;
}
.choice-description {
  font-size:11px;
  line-height:1.6;
  margin:12px 0 22px;
  flex:1;
}
.choice-action {
  font:700 9px var(--mono);
  border-top:1px solid #a6ab91;
  padding-top:12px;
  display:flex;
  justify-content:space-between;
}
.result-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-top:24px;
}
.result-heading h2 {
  font-size:67px;
}
.result-heading img {
  width:95px;
  height:110px;
  border:1px solid var(--ink);
  object-fit:cover;
  object-position:center 25%;
  transform:rotate(7deg);
  box-shadow:4px 4px 0 var(--lime);
  filter:grayscale(1);
}
#result-copy {
  font-size:12px;
  color:var(--muted);
  margin:17px 0 23px;
}
.result-stats {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
}
.result-stat {
  padding:13px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.result-stat span {
  display:block;
  font:8px var(--mono);
  color:var(--muted);
  letter-spacing:.04em;
}
.result-stat b {
  display:block;
  font:700 25px var(--mono);
  margin-top:4px;
}
.reward-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 0;
}
.reward-row>span {
  font:700 9px var(--mono);
}
.reward-row>strong {
  font:900 35px var(--display);
  letter-spacing:-.05em;
}
.reward-row>strong>span {
  color:#7b940d;
  font:35px Arial;
}
.result-actions {
  display:grid;
  gap:11px;
}
.toast {
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translate(-50%,12px);
  max-width:calc(100% - 36px);
  background:var(--ink);
  color:var(--lime);
  padding:12px 20px;
  border:1px solid var(--lime);
  box-shadow:4px 4px 0 rgba(34,35,31,.2);
  font:700 12px/1.5 var(--mono);
  opacity:0;
  pointer-events:none;
  transition:transform .2s,opacity .2s;
  z-index:30;
  text-align:center;
}
.toast.visible {
  opacity:1;
  transform:translate(-50%,0);
}
.loading {
  position:fixed;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  background:var(--paper);
  z-index:50;
}
.loading-mark {
  font:900 140px/1 var(--display);
  letter-spacing:-.12em;
  text-shadow:5px 5px 0 var(--lime);
}
.loading p {
  font:700 12px var(--mono);
  margin-top:27px;
  letter-spacing:.1em;
}
.loading small {
  font:10px var(--mono);
  color:var(--muted);
  margin-top:12px;
}
.skip-link {
  position:fixed;
  top:12px;
  left:12px;
  z-index:100;
  transform:translateY(-170%);
  background:var(--lime);
  border:1px solid var(--ink);
  padding:10px 15px;
  font:12px var(--mono);
}
.skip-link:focus {
  transform:none;
}
.noscript {
  padding:30px;
  position:fixed;
  bottom:0;
  z-index:100;
  background:#fff2b5;
  border-top:1px solid var(--ink);
  width:100%;
}
@media(pointer:coarse) {
  .joystick {
    display:block;
  }
  .aim-joystick {
    display:block;
  }
  .desktop-hint {
    display:none;
  }
  .skill-bar {
    left:auto;
    right:24px;
    transform:none;
    bottom:35px;
  }
  .skill-button {
    width:110px;
    min-height:111px;
    padding:10px;
  }
  .skill-content {
    flex-direction:column;
    gap:5px;
    text-align:center;
  }
  .game-icon.skill-icon {
    --icon-size:40px;
  }
  .skill-name {
    font-size:10px;
  }
  .skill-key {
    font-size:8px;
  }
  .touch-note {
    display:block!important;
  }
}
@media(min-width:1600px) {
  .selection-grid {
    gap:80px;
  }
  .character-photo {
    height:205px;
  }
  .kit-panel {
    padding:25px 30px 19px;
  }
  .ability-row {
    padding:12px 0;
  }
  .ability-row p {
    font-size:11px;
  }
  .ability-row h3 {
    font-size:13px;
  }
  .selection-heading {
    padding-top:43px;
  }
  .roster-column h1 {
    font-size:112px;
  }
  .selected-character {
    margin-bottom:22px;
  }
}
@media(max-width:1150px) {
  .page-width {
    width:calc(100% - 56px);
  }
  .domain-strip {
    padding-inline:28px;
  }
  .menu-tabs {
    gap:18px;
  }
  .header-tools {
    gap:12px;
  }
  .back-link {
    display:none;
  }
  .selection-grid {
    gap:28px;
    grid-template-columns:minmax(0,1.22fr) minmax(320px,1fr);
  }
  .roster-column h1 {
    font-size:7.4vw;
  }
  .roster-column h1 i {
    font-size:50px;
  }
  .character-photo {
    height:145px;
  }
  .character-caption {
    padding:10px 8px;
  }
  .character-caption strong {
    font-size:17px;
  }
  .character-caption small {
    font-size:7px;
  }
  .kit-panel {
    padding:17px 20px 13px;
  }
  .selected-identity h2 {
    font-size:32px;
  }
  .ability-row {
    padding:9px 0;
  }
  .ability-row p {
    font-size:9px;
  }
  .intro-copy {
    font-size:12px;
  }
  .menu-footer {
    align-items:start;
  }
  .control-legend {
    gap:12px;
  }
  .best-stats {
    font-size:8px;
  }
  .shop-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .hud-numbers {
    gap:15px;
  }
  .game-hud {
    gap:15px;
  }
  .hud-character {
    width:240px;
  }
}
@media(max-width:860px) {
  .page-width {
    width:calc(100% - 40px);
  }
  .domain-strip {
    padding:7px 20px;
    font-size:8px;
  }
  .domain-strip>span:nth-child(2) {
    display:none;
  }
  .menu-header {
    height:88px;
    gap:15px;
    flex-wrap:wrap;
    padding-block:14px;
  }
  .site-brand {
    font-size:13px;
  }
  .brand-face {
    width:34px;
    height:34px;
    font-size:30px;
  }
  .menu-tabs {
    gap:15px;
  }
  .menu-tab {
    font-size:9px;
    gap:6px;
  }
  .header-tools {
    gap:10px;
  }
  .wallet {
    font-size:12px;
  }
  .wallet>span {
    font-size:21px;
  }
  .icon-button {
    font-size:10px;
    padding:7px;
  }
  .selection-grid {
    grid-template-columns:minmax(0,1fr) minmax(290px,.95fr);
    gap:25px;
  }
  .selection-heading {
    padding:28px 0 18px;
  }
  .handwritten {
    font-size:12px;
  }
  .roster-column h1 {
    font-size:7.1vw;
  }
  .roster-column h1 i {
    display:none;
  }
  .intro-copy br {
    display:none;
  }
  .character-list {
    gap:8px;
  }
  .character-photo {
    height:120px;
  }
  .character-caption strong {
    font-size:15px;
  }
  .character-caption small {
    font-size:6px;
  }
  .character-id {
    font-size:7px;
    left:5px;
    top:5px;
  }
  .character-check {
    width:19px;
    height:19px;
    font-size:12px;
  }
  .roster-label {
    font-size:8px;
    margin-top:25px;
  }
  .kit-panel {
    padding:15px;
  }
  .kit-topline {
    font-size:7px;
  }
  .selected-character {
    grid-template-columns:62px 1fr;
    gap:11px;
    margin-bottom:15px;
  }
  .selected-portrait {
    width:62px;
    height:74px;
  }
  .selected-identity h2 {
    font-size:29px;
  }
  .selected-identity .character-title {
    font-size:8px;
  }
  .selected-identity p:last-child {
    font-size:10px;
  }
  .ability-row {
    grid-template-columns:38px minmax(0,1fr);
    gap:10px;
  }
  .ability-key {
    font-size:7px;
  }
  .ability-row h3 {
    font-size:11px;
  }
  .ability-row p {
    font-size:9px;
  }
  .start-button {
    font-size:17px;
    padding:16px;
  }
  .menu-footer {
    margin-top:28px;
  }
  .run-promise {
    gap:8px;
  }
  .run-promise p {
    font-size:10px;
  }
  .shop-intro h1 {
    font-size:72px;
  }
  .shop-note {
    min-width:220px;
    padding:18px;
  }
  .shop-note p {
    font-size:19px;
  }
  .hud-character {
    width:215px;
  }
  .hud-numbers {
    gap:12px;
  }
  .hud-actions {
    gap:5px;
  }
  .game-hud {
    left:16px;
    right:16px;
    gap:12px;
  }
  .hud-timer>b {
    font-size:30px;
  }
  .hud-timer>span {
    font-size:7px;
  }
  .hud-name-line>b {
    font-size:13px;
  }
  .hud-name-line>span {
    font-size:8px;
  }
  .hud-character img {
    width:43px;
    height:51px;
  }
  .hud-numbers b {
    font-size:17px;
  }
  .hud-numbers {
    font-size:7px;
  }
  .hud-actions button {
    height:33px;
    min-width:33px;
  }
  .hud-actions .sound-toggle span {
    display:none;
  }
  .xp-strip {
    left:16px;
    right:16px;
  }
  .arena-caption {
    left:16px;
  }
  .skill-button {
    width:145px;
  }
  .skill-bar {
    gap:8px;
  }
  .upgrade-title-row h2 {
    font-size:55px;
  }
  .upgrade-choice {
    padding:15px;
  }
  .upgrade-choice strong {
    font-size:18px;
  }
}
@media(max-width:650px) {
  .page-width {
    width:calc(100% - 32px);
  }
  .domain-strip {
    padding-inline:16px;
    font-size:7px;
  }
  .menu-header {
    height:auto;
    min-height:110px;
    gap:13px;
    display:grid;
    grid-template-columns:1fr auto;
    padding-top:18px;
    padding-bottom:0;
  }
  .site-brand {
    font-size:14px;
  }
  .brand-face {
    width:36px;
    height:36px;
    font-size:32px;
  }
  .header-tools {
    grid-column:2;
    grid-row:1;
  }
  .menu-tabs {
    grid-column:1/-1;
    grid-row:2;
    gap:24px;
    border-top:1px solid var(--line);
  }
  .menu-tab {
    font-size:9px;
    padding:13px 0;
  }
  .selection-heading {
    padding-top:25px;
    padding-bottom:17px;
    min-height:0;
  }
  .selection-heading .eyebrow {
    font-size:8px;
  }
  .handwritten {
    font-size:10px;
    margin-right:4px;
  }
  .selection-grid {
    display:block;
  }
  .roster-column h1 {
    font-size:clamp(52px,13vw,83px);
    max-width:500px;
    letter-spacing:-.075em;
  }
  .roster-column h1 i {
    display:block;
    font-size:50px;
    right:14px;
  }
  .intro-copy {
    font-size:12px;
    margin-top:19px;
    max-width:340px;
  }
  .roster-label {
    font-size:8px;
    margin-top:25px;
    margin-bottom:10px;
  }
  .character-list {
    gap:10px;
  }
  .character-photo {
    height:155px;
  }
  .character-caption {
    padding:12px 9px 11px;
  }
  .character-caption strong {
    font-size:19px;
  }
  .character-caption small {
    font-size:7px;
  }
  .character-id {
    font-size:8px;
  }
  .character-check {
    width:22px;
    height:22px;
    font-size:14px;
  }
  .run-promise {
    margin-top:18px;
    margin-bottom:27px;
  }
  .run-promise p {
    font-size:10px;
    max-width:310px;
  }
  .kit-panel {
    padding:20px;
  }
  .kit-topline {
    font-size:8px;
  }
  .selected-character {
    grid-template-columns:75px 1fr;
    gap:16px;
  }
  .selected-portrait {
    width:75px;
    height:83px;
  }
  .selected-identity h2 {
    font-size:36px;
  }
  .selected-identity .character-title {
    font-size:9px;
  }
  .selected-identity p:last-child {
    font-size:11px;
  }
  .ability-row {
    padding:12px 0;
    grid-template-columns:42px minmax(0,1fr);
    gap:10px;
  }
  .ability-key {
    font-size:7px;
  }
  .ability-row h3 {
    font-size:12px;
  }
  .ability-row p {
    font-size:10px;
    line-height:1.5;
  }
  .start-button {
    font-size:20px;
    padding:19px 18px;
    margin-top:19px;
  }
  .start-note {
    font-size:9px;
  }
  .menu-footer {
    flex-direction:column;
    align-items:stretch;
    gap:18px;
    padding-block:20px;
    margin-top:29px;
  }
  .control-legend {
    font-size:8px;
    gap:13px;
  }
  .best-stats {
    text-align:left;
    font-size:9px;
  }
  .page-footer {
    font-size:7px;
    gap:18px;
    padding-block:20px;
  }
  .page-footer>span {
    max-width:200px;
  }
  .page-footer>a {
    white-space:nowrap;
  }
  .shop-view {
    padding-top:27px;
  }
  .shop-intro {
    gap:15px;
    align-items:start;
    margin-bottom:35px;
  }
  .shop-intro h1 {
    font-size:clamp(48px,10.5vw,70px);
  }
  .shop-intro .eyebrow {
    font-size:7px;
  }
  .shop-intro .intro-copy {
    font-size:10px;
    max-width:220px;
    margin-top:17px;
  }
  .shop-note {
    min-width:0;
    width:116px;
    padding:12px;
    margin:12px 3px 0 0;
  }
  .shop-note>span:first-child {
    font-size:28px;
  }
  .shop-note p {
    font-size:12px;
    margin:8px 0 13px;
  }
  .shop-note>span:last-child {
    font-size:6px;
    display:block;
    line-height:1.6;
  }
  .shop-section-heading {
    padding-block:13px;
    gap:10px;
    flex-wrap:wrap;
  }
  .shop-section-heading h2 {
    font-size:10px;
  }
  .shop-section-heading>span {
    font-size:7px;
  }
  .shop-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:30px;
  }
  .shop-card {
    padding:14px;
  }
  .shop-card h3 {
    font-size:15px;
  }
  .shop-card-top {
    font-size:8px;
    margin-bottom:14px;
  }
  .game-icon.shop-icon {
    --icon-size:56px;
  }
  .shop-current {
    font-size:9px;
  }
  .shop-next {
    font-size:10px;
    min-height:46px;
  }
  .purchase-button {
    font-size:9px;
    padding:11px 8px;
  }
  .exclusive-grid {
    grid-template-columns:1fr;
  }
  .exclusive-grid .shop-next {
    min-height:0;
  }
  .shop-character-label {
    font-size:8px;
  }
  .shop-footer {
    align-items:stretch;
    flex-direction:column;
    gap:18px;
  }
  .shop-footer p {
    font-size:10px;
  }
  .shop-footer .primary-button {
    font-size:15px;
  }
  .game-hud {
    top:max(12px,env(safe-area-inset-top));
    left:12px;
    right:12px;
    gap:8px;
    flex-wrap:wrap;
  }
  .hud-character {
    width:180px;
    gap:8px;
  }
  .hud-character img {
    width:36px;
    height:44px;
  }
  .hud-name-line {
    gap:5px;
    margin-bottom:5px;
  }
  .hud-name-line>b {
    font-size:12px;
  }
  .hud-name-line>span {
    font-size:7px;
  }
  .hp-meter {
    height:9px;
  }
  .passive-label {
    font-size:6px;
    margin-top:6px;
  }
  .hud-timer {
    left:53%;
    top:1px;
  }
  .hud-timer>b {
    font-size:26px;
  }
  .hud-timer>span {
    font-size:6px;
    margin-bottom:2px;
  }
  .hud-numbers {
    position:absolute;
    right:0;
    top:51px;
    padding-top:0;
    gap:16px;
    font-size:6px;
  }
  .hud-numbers>span {
    flex-direction:row;
    align-items:center;
    gap:5px;
  }
  .hud-numbers b {
    font-size:11px;
  }
  .hud-actions {
    margin-left:auto;
    padding-top:2px;
    gap:5px;
  }
  .hud-actions button {
    height:30px;
    min-width:30px;
    font-size:13px;
    padding:6px;
  }
  .hud-actions .sound-toggle {
    font-size:11px;
  }
  .xp-strip {
    top:calc(max(12px,env(safe-area-inset-top)) + 76px);
    left:12px;
    right:12px;
  }
  .xp-strip>span {
    font-size:6px;
  }
  .arena-caption {
    top:calc(max(12px,env(safe-area-inset-top)) + 53px);
    left:12px;
    font-size:6px;
    letter-spacing:.025em;
  }
  .arena-caption>span:not(.arena-status-dot) {
    padding-inline:3px;
  }
  .skill-bar {
    bottom:max(24px,env(safe-area-inset-bottom));
    left:auto;
    right:14px;
    transform:none;
    gap:6px;
  }
  .skill-button {
    width:79px;
    min-height:108px;
    padding:8px 6px;
  }
  .skill-key {
    font-size:7px;
    min-width:18px;
    padding:2px 3px;
  }
  .skill-topline {
    margin-bottom:5px;
    gap:2px;
  }
  .skill-status {
    font-size:8px;
  }
  .skill-name {
    font-size:8px;
    line-height:1.2;
    min-height:29px;
  }
  .skill-content {
    flex-direction:column;
    gap:5px;
    text-align:center;
  }
  .game-icon.skill-icon {
    --icon-size:32px;
  }
  .desktop-hint {
    display:none;
  }
  .joystick {
    display:block;
    bottom:27px;
    left:18px;
    width:100px;
    height:100px;
  }
  .joystick-knob {
    left:31px;
    top:31px;
    width:36px;
    height:36px;
  }
  .joystick-label {
    font-size:7px;
    top:-17px;
  }
  .overlay {
    padding:17px;
    align-items:center;
  }
  .modal {
    padding:26px 24px;
    max-height:calc(100dvh - 34px);
    box-shadow:5px 5px 0 rgba(0,0,0,.35);
  }
  .modal .eyebrow {
    font-size:7px;
  }
  .pause-panel h2 {
    font-size:77px;
    margin-block:22px 19px;
  }
  .pause-panel>p:not(.eyebrow):not(.modal-tip) {
    font-size:12px;
  }
  .pause-controls {
    margin-top:25px;
  }
  .upgrade-panel {
    padding:23px 20px;
  }
  .upgrade-title-row {
    gap:10px;
  }
  .upgrade-title-row h2 {
    font-size:44px;
  }
  .upgrade-title-row .eyebrow {
    font-size:6px;
  }
  .level-sticker {
    font-size:22px;
    padding:10px;
  }
  .upgrade-description {
    font-size:10px;
    margin-top:16px;
  }
  .upgrade-choices {
    grid-template-columns:1fr;
    gap:10px;
    margin-top:20px;
  }
  .upgrade-choice {
    min-height:0;
    display:grid;
    grid-template-columns:60px minmax(0,1fr) auto;
    column-gap:11px;
    row-gap:6px;
    padding:14px;
  }
  .choice-meta {
    grid-column:2/-1;
    grid-row:1;
    font-size:7px;
  }
  .game-icon.choice-icon {
    --icon-size:60px;
    grid-column:1;
    grid-row:1/4;
    align-self:center;
    margin-top:0;
  }
  .upgrade-choice strong {
    grid-column:2/-1;
    font-size:17px;
    margin-top:1px;
  }
  .choice-description {
    grid-column:2/-1;
    font-size:10px;
    margin:0;
    line-height:1.5;
  }
  .choice-action {
    grid-column:2/-1;
    font-size:7px;
    padding-top:8px;
    margin-top:3px;
  }
  .result-heading h2 {
    font-size:58px;
  }
  .result-heading img {
    width:77px;
    height:91px;
  }
  .result-stat {
    padding:12px;
  }
  .result-stat b {
    font-size:23px;
  }
  .result-stat span {
    font-size:7px;
  }
  .reward-row>span {
    font-size:8px;
  }
  .reward-row>strong {
    font-size:31px;
  }
  .reward-row>strong>span {
    font-size:30px;
  }
  .result-actions .primary-button {
    font-size:15px;
  }
  .toast {
    font-size:10px;
    padding:11px 15px;
    bottom:18px;
  }
  .run-notice {
    font-size:10px;
    max-width:85%;
    top:24%;
  }
}
@media(max-width:390px) {
  .character-photo {
    height:126px;
  }
  .character-caption {
    padding:10px 7px;
  }
  .character-caption strong {
    font-size:17px;
  }
  .character-caption small {
    font-size:6px;
  }
  .character-list {
    gap:8px;
  }
  .kit-panel {
    padding:16px;
  }
  .roster-column h1 i {
    font-size:42px;
    right:4px;
  }
  .hud-character {
    width:160px;
  }
  .hud-timer {
    left:55%;
  }
  .hud-timer>b {
    font-size:23px;
  }
  .hud-timer>span {
    font-size:5px;
  }
  .hud-actions button {
    height:27px;
    min-width:27px;
  }
  .hud-actions {
    gap:4px;
  }
  .skill-bar {
    right:10px;
    gap:5px;
  }
  .skill-button {
    width:72px;
    padding:8px 6px;
    min-height:105px;
  }
  .skill-name {
    font-size:8px;
  }
  .joystick {
    left:13px;
    width:90px;
    height:90px;
  }
  .joystick-knob {
    top:26px;
    left:26px;
  }
  .hud-numbers {
    gap:10px;
  }
  .arena-caption {
    font-size:5px;
  }
  .shop-intro h1 {
    font-size:45px;
  }
  .shop-note {
    width:100px;
    padding:10px;
  }
  .shop-note p {
    font-size:11px;
  }
}
@media(max-height:570px) and (min-width:651px) {
  .overlay {
    padding:14px;
  }
  .modal {
    max-height:calc(100dvh - 28px);
  }
  .pause-panel {
    padding:23px 30px;
  }
  .pause-panel h2 {
    font-size:65px;
    margin:15px 0;
  }
  .pause-controls {
    margin-top:20px;
  }
  .pause-panel .modal-tip {
    margin-top:14px;
  }
  .upgrade-panel {
    padding:20px 25px;
  }
  .upgrade-title-row h2 {
    font-size:42px;
  }
  .upgrade-choices {
    margin-top:15px;
  }
  .upgrade-choice {
    min-height:205px;
    padding:14px;
  }
  .game-icon.choice-icon {
    --icon-size:64px;
    margin-top:12px;
  }
  .upgrade-choice strong {
    font-size:18px;
    margin-top:12px;
  }
  .choice-description {
    margin-bottom:14px;
  }
  .result-panel {
    padding:20px 28px;
  }
  .result-heading {
    margin-top:16px;
  }
  .result-heading h2 {
    font-size:51px;
  }
  .result-heading img {
    width:70px;
    height:75px;
  }
  #result-copy {
    margin:12px 0;
  }
  .result-stat {
    padding:8px 12px;
  }
  .result-stat b {
    font-size:20px;
  }
  .reward-row {
    padding:12px 0;
  }
  .result-actions {
    grid-template-columns:1fr 1fr;
  }
  .result-actions .primary-button {
    font-size:11px;
    padding:14px;
  }
  .result-actions .secondary-button {
    font-size:9px;
  }
  .result-panel .modal-tip {
    margin-top:13px;
  }
  .skill-bar {
    bottom:20px;
  }
  .skill-button {
    min-height:91px;
  }
  .desktop-hint {
    bottom:3px;
  }
  .joystick {
    bottom:20px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}
@media(prefers-reduced-motion:no-preference) {
  .skill-button.skill-cast .skill-icon {
    animation:skill-cast-pop .42s cubic-bezier(.2,.8,.2,1);
  }
}
@keyframes skill-cast-pop {
  0% { transform:scale(.82); }
  35% { transform:scale(1.12); }
  100% { transform:scale(1); }
}
@media(max-width:650px) {
  .hud-timer {
    left:auto;
    right:83px;
    transform:none;
    min-width:64px;
  }
  .attack-mode-button {
    top:calc(max(12px,env(safe-area-inset-top)) + 119px);
    right:12px;
    min-width:146px;
    min-height:42px;
    gap:6px;
    padding:6px 8px;
  }
  .aim-mode-mark {
    font-size:23px;
  }
  .aim-mode-copy strong {
    font-size:9px;
  }
  .aim-mode-copy>span {
    font-size:5px;
  }
  .attack-mode-button kbd {
    font-size:6px;
    padding:2px 3px;
  }
  .aim-joystick {
    display:block;
    right:20px;
    bottom:max(153px,calc(env(safe-area-inset-bottom) + 135px));
    width:76px;
    height:76px;
  }
  .aim-joystick-knob {
    top:20px;
    left:20px;
  }
  .aim-joystick .joystick-label {
    font-size:7px;
    top:-17px;
  }
}
@media(max-width:390px) {
  .hud-timer {
    left:auto;
    right:76px;
    min-width:57px;
  }
}
.quick-start-button {
  display:none;
}
@media(max-width:650px) {
  .quick-start-button {
    display:flex;
    width:100%;
    margin-top:20px;
    font-size:17px;
  }
}
@media(max-width:360px) {
  .skill-button {
    width:60px;
    min-height:101px;
    padding:7px 4px;
  }
  .skill-key {
    font-size:6px;
  }
  .skill-name {
    font-size:7px;
  }
  .joystick {
    width:78px;
    height:78px;
    left:11px;
    bottom:25px;
  }
  .joystick-knob {
    width:32px;
    height:32px;
    left:22px;
    top:22px;
  }
  .hud-character {
    width:145px;
  }
}
@media(max-height:570px) and (min-width:651px) {
  .attack-mode-button {
    left:50%;
    right:auto;
    transform:translateX(-50%);
  }
  .aim-joystick {
    width:72px;
    height:72px;
    bottom:max(132px,calc(env(safe-area-inset-bottom) + 120px));
  }
  .aim-joystick-knob {
    left:18px;
    top:18px;
  }
}

/* Illustrated schoolyard: full-body previews retain the real circle portraits. */
.game-avatar {
  display:block;
  width:var(--actor-size,100px);
  aspect-ratio:var(--actor-aspect,1);
  background-image:var(--actor-sheet,none);
  background-size:var(--actor-grid,100% 100%);
  background-position:var(--actor-position,center);
  background-repeat:no-repeat;
  pointer-events:none;
  flex-shrink:0;
}
.character-photo {
  background:#dde5ce;
  isolation:isolate;
}
.character-card:nth-child(2) .character-photo {
  background:#e9d6b8;
}
.character-card:nth-child(3) .character-photo {
  background:#dcd3e7;
}
.character-photo:after {
  content:"";
  position:absolute;
  width:64%;
  height:13px;
  left:18%;
  bottom:8px;
  border-radius:50%;
  background:rgba(44,64,44,.16);
  z-index:-1;
}
.character-photo .identity-photo {
  position:absolute;
  left:8px;
  top:8px;
  width:34px;
  height:38px;
  border:1px solid var(--ink);
  object-fit:cover;
  filter:saturate(.8);
  transform:rotate(-5deg);
  z-index:2;
  box-shadow:2px 2px 0 rgba(255,254,246,.75);
}
.character-photo .roster-avatar {
  position:absolute;
  bottom:13px;
  left:50%;
  height:118px;
  width:auto;
  max-width:94%;
  transform:translateX(-50%);
}
.character-id {
  top:auto;
  bottom:8px;
  left:7px;
  z-index:2;
}
.character-check {
  z-index:2;
}
.selected-character {
  grid-template-columns:94px minmax(0,1fr);
  gap:15px;
  min-height:120px;
}
.selected-actor-stage {
  position:relative;
  height:120px;
  display:flex;
  justify-content:center;
  align-items:flex-end;
  isolation:isolate;
}
.selected-actor-stage:before {
  content:"";
  position:absolute;
  width:85%;
  height:12px;
  bottom:0;
  border-radius:50%;
  background:rgba(63,79,53,.16);
  z-index:-1;
}
.selected-avatar {
  height:116px;
  width:auto;
  max-width:100%;
}
.selected-actor-stage .selected-portrait {
  position:absolute;
  left:-3px;
  bottom:1px;
  width:32px;
  height:36px;
  border-width:1px;
  box-shadow:2px 2px 0 var(--lime);
}
.primary-button:disabled {
  background:var(--panel);
  color:var(--muted);
  box-shadow:none;
}
.loading {
  padding:24px;
  text-align:center;
}
.loading-progress {
  width:min(280px,76vw);
  height:9px;
  margin-top:23px;
  border:1px solid var(--ink);
  background:#dce0d2;
  position:relative;
  overflow:hidden;
}
.loading-progress>span {
  position:absolute;
  inset:0;
  background:#799a42;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .18s ease-out;
}
.loading small {
  max-width:350px;
  line-height:1.6;
}
.loading-retry {
  margin-top:24px;
  min-height:44px;
  font-size:12px;
  gap:24px;
}
.loading-failed .loading-mark {
  text-shadow:5px 5px 0 #e7ac82;
}
.loading-failed small {
  color:#884128;
}

/* Dark, quiet HUD surfaces keep the sunlit arena and attack tells readable. */
.game-hud {
  color:var(--white);
  isolation:isolate;
}
.game-hud:before {
  content:"";
  position:absolute;
  inset:-10px -12px -10px;
  background:rgba(18,42,37,.96);
  border:1px solid #647a64;
  box-shadow:0 3px 0 rgba(16,30,22,.22);
  z-index:-1;
}
.hud-name-line>span {
  font-size:11px;
  color:#f1f2df;
  font-variant-numeric:tabular-nums;
}
.passive-label {
  font-size:9px;
  color:#c9d9b3;
}
.hud-numbers {
  font-size:9px;
}
.hud-numbers b {
  font-size:22px;
  font-variant-numeric:tabular-nums;
}
.xp-strip>span {
  color:#f2f0dc;
  font-size:8px;
  text-shadow:0 1px 3px #142d22,0 1px 3px #142d22;
}
.arena-caption {
  width:240px;
  padding:7px 9px;
  border:1px solid #62765e;
  background:rgba(18,42,37,.94);
  color:#e6edda;
  letter-spacing:.02em;
  z-index:1;
}
.district-name {
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.district-name strong {
  font:700 9px/1.15 var(--mono);
  letter-spacing:.04em;
  white-space:nowrap;
}
.district-name .arena-status-dot {
  display:block;
  background:var(--lime);
  flex-shrink:0;
}
.arena-wave-line {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:5px;
  font:8px/1.1 var(--mono);
  color:#bfcdb1;
  white-space:nowrap;
}
.arena-wave-line>span:last-child {
  color:#eccd92;
}
.boss-arrival {
  height:2px;
  overflow:hidden;
  background:rgba(219,234,197,.18);
  margin-top:5px;
}
.boss-arrival>span {
  display:block;
  height:100%;
  background:#e5c17c;
  transform-origin:left;
  transform:scaleX(0);
  transition:transform .18s linear;
}
.boss-arrival.boss-active>span {
  background:#ff9e81;
}
.skill-name {
  font-size:12px;
}
.skill-status {
  font-size:10px;
}
.aim-mode-copy>span {
  font-size:8px;
}
@media(min-width:1600px) {
  .character-photo .roster-avatar { height:146px; }
}
@media(max-width:1150px) {
  .character-photo .roster-avatar { height:108px; }
  .hud-name-line>span { font-size:10px; }
  .hud-numbers b { font-size:20px; }
}
@media(max-width:860px) {
  .character-photo .identity-photo { width:27px; height:31px; left:5px; top:5px; }
  .character-photo .roster-avatar { height:96px; bottom:8px; }
  .selected-character { grid-template-columns:79px minmax(0,1fr); gap:12px; }
  .selected-actor-stage { height:116px; }
  .selected-avatar { height:111px; }
  .hud-name-line>span { font-size:9px; }
  .hud-numbers b { font-size:18px; }
  .hud-numbers { font-size:8px; }
  .passive-label { font-size:8px; }
}
@media(max-width:650px) {
  .character-photo .identity-photo { width:30px; height:34px; left:7px; top:7px; }
  .character-photo .roster-avatar { height:116px; bottom:12px; }
  .selected-character { grid-template-columns:94px minmax(0,1fr); }
  .selected-actor-stage { height:120px; }
  .selected-avatar { height:116px; }
  .game-hud:before { inset:-8px -8px -24px; }
  .hud-name-line>span { font-size:8px; }
  .passive-label { font-size:7px; }
  .hud-timer>b { font-size:25px; }
  .hud-timer>span { font-size:6px; }
  .hud-numbers { font-size:7px; gap:13px; }
  .hud-numbers b { font-size:12px; }
  .xp-strip>span { font-size:7px; }
  .arena-caption {
    top:calc(max(12px,env(safe-area-inset-top)) + 47px);
    width:154px;
    border:0;
    padding:0;
    background:#122a25;
  }
  .district-name { gap:4px; }
  .district-name strong { font-size:7px; line-height:8px; letter-spacing:0; }
  .district-name .arena-status-dot { width:4px; height:4px; }
  .arena-wave-line { margin-top:3px; gap:4px; font-size:6px; line-height:8px; }
  .boss-arrival { margin-top:3px; }
  .skill-name { font-size:9px; }
  .skill-status { font-size:9px; }
  .aim-mode-copy>span { font-size:7px; }
}
@media(max-width:390px) {
  .character-photo .roster-avatar { height:101px; bottom:9px; }
  .character-photo .identity-photo { width:24px; height:28px; left:5px; top:5px; }
  .selected-character { grid-template-columns:81px minmax(0,1fr); gap:12px; }
  .selected-actor-stage { height:114px; }
  .selected-avatar { height:110px; }
  .hud-timer>b { font-size:23px; }
  .hud-numbers { gap:9px; font-size:6px; }
  .hud-numbers b { font-size:11px; }
  .arena-caption { width:145px; }
  .skill-name { font-size:8px; }
}
@media(max-width:360px) {
  .character-photo .roster-avatar { height:93px; }
  .character-photo .identity-photo { width:22px; height:25px; }
  .selected-identity h2 { font-size:32px; }
  .skill-name { font-size:7.5px; }
  .skill-status { font-size:8px; }
  .passive-label { font-size:6px; }
}
@media(prefers-reduced-motion:reduce) {
  .loading-progress>span,.boss-arrival>span { transition:none; }
}
