@font-face {
  font-family:Circuit Pixel;
  src:url('/circuit-pixel.woff') format('woff');
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
.game-shell {
  --pixel-text:#fff2d6;
  --pixel-accent:#88ffdf;
  --pixel-brass:#e8ad75;
  --pixel-ink:#0b0c1e;
  --pixel-idle:url('/pixel-ui-frame.png');
  --pixel-selected:url('/pixel-ui-active.png');
  --pixel-console:url('/pixel-ui-console.png');
  --pixel-font:Circuit Pixel,'IBM Plex Mono',monospace;
}
#station-modal .station-toolbar,
#station-content #rpg-station > .circuit-nav {
  background:#10132b;
  border-bottom:2px solid #76517d;
  box-shadow:inset 0 -2px #090a17;
}
#station-modal .station-toolbar h2,
.game-shell .lobby-heading h1,
#station-content :is(.world-destination h3,#district-hub:not([hidden]) h4,.stage-select-heading h4,.formation-heading h5),
#game-menu h2 {
  font-family:var(--pixel-font);
  font-weight:400;
  color:var(--pixel-text);
  text-transform:uppercase;
  text-shadow:0 3px #371b3d,2px 0 #161021,0 0 14px #151023;
}
#station-modal .station-toolbar h2 {
  font-size:clamp(.85rem,2cqw,1.35rem);
  letter-spacing:.075em;
}
#station-content :is(.world-destination h3,#district-hub:not([hidden]) h4) {
  font-size:clamp(2rem,4.7cqw,4.5rem);
  line-height:1.04;
  letter-spacing:.025em;
}
#station-content .stage-select-heading h4 {font-size:clamp(1.35rem,3cqw,2.7rem)}
#station-content .formation-heading h5 {font-size:clamp(.95rem,2cqw,1.7rem);line-height:1.22}
#station-content button,
#station-modal .station-toolbar button,
#game-menu :is(button,a.secondary),
.game-shell .touch-cabinet,
.game-shell .game-hud :is(button,#arcade-membership,#credits) {
  --pixel-button-frame:var(--pixel-idle);
  color:var(--pixel-text);
  border:8px solid transparent;
  border-image:var(--pixel-button-frame) 12 fill / 8px / 0 stretch;
  border-radius:0;
  background:none;
  box-shadow:none;
  image-rendering:pixelated;
}
#station-content button:where(.cta,[aria-pressed=true],[aria-expanded=true]),
#station-modal .station-toolbar button:hover,
#game-menu :is(.cta,a.secondary:hover),
.game-shell .game-hud button:hover {--pixel-button-frame:var(--pixel-selected)}
#station-content #rpg-station > .circuit-nav button {
  position:relative;
  min-height:46px;
  padding:0 4px;
  color:var(--pixel-text);
  border:8px solid transparent;
  border-image:var(--pixel-button-frame) 12 fill / 8px / 0 stretch;
  border-radius:0;
  background:none;
  box-shadow:none;
  image-rendering:pixelated;
  font:400 clamp(.73rem,1.4cqw,1.05rem)/1.2 var(--pixel-font);
  text-transform:uppercase;
  text-shadow:1px 2px #130e22;
}
#station-content #rpg-station > .circuit-nav button[aria-pressed=true] {
  --pixel-button-frame:var(--pixel-selected);
  color:#ffe19b;
  background:none;
  box-shadow:none;
}
#station-content #rpg-station > .circuit-nav button::before {
  content:"";
  display:inline-block;
  vertical-align:-.22em;
  width:18px;
  height:18px;
  margin-right:.45em;
  background:url('/pixel-ui-icons.png') calc(var(--icon,0) * -18px) 0/108px 18px no-repeat;
  image-rendering:pixelated;
}
#station-content .circuit-nav [data-screen="hangar"] {--icon:1}
#station-content .circuit-nav [data-screen="missions"] {--icon:2}
#station-content .circuit-nav [data-screen="duels"] {--icon:3}
#station-content .circuit-nav [data-screen="skills"] {--icon:4}
#station-content .circuit-nav [data-screen="shop"] {--icon:5}
#station-content .circuit-nav button:hover,
#station-content :is(.world-interaction,.world-console-close):hover {
  --pixel-button-frame:var(--pixel-selected);
  color:#fff1bc;
}
#station-content :is(.world-interaction,.world-console-close),
#station-modal :is(.hud-control,#close-station),
#station-content :is(#expedition-start,#district-plan,#expedition-plan-cancel,.story-next,.story-skip),
#game-menu .cta {
  color:var(--pixel-text);
  border:8px solid transparent;
  border-image:var(--pixel-button-frame) 12 fill / 8px / 0 stretch;
  border-radius:0;
  min-height:42px;
  background:none;
  box-shadow:none;
  font:400 clamp(.79rem,1.4cqw,.95rem)/1.25 var(--pixel-font);
  text-transform:uppercase;
}
#station-content .world-interaction::before {
  width:8px;height:8px;margin-right:.55em;
  clip-path:polygon(25% 0,75% 0,75% 25%,100% 25%,100% 75%,75% 75%,75% 100%,25% 100%,25% 75%,0 75%,0 25%,25% 25%);
  transform:none;
  box-shadow:none;
  vertical-align:1px;
}
#station-content :is(#expedition-stage-label,.story-panel,.expedition-victory,.formation-heading,.stage-brief,.formation-slot),
#station-content :is(.duel-actions,.arena-rankings,.mission-combat,.shop-offer,.skill-node,.stash,.stash-item,.inventory-doll,.equip-slot),
#game-menu {
  border-radius:0;
  image-rendering:pixelated;
}
#station-content :is(#expedition-stage-label,.story-panel,.expedition-victory,.mission-combat,.shop-offer,.arena-rankings),
#game-menu {
  color:var(--pixel-text);
  border:10px solid transparent;
  border-image:var(--pixel-console) 12 fill / 10px / 0 stretch;
  box-shadow:none;
  background:#10152dcb;
}
#station-content #expedition-stage-label {
  font:400 clamp(.76rem,1.25cqw,.96rem)/1.15 var(--pixel-font);
  text-transform:uppercase;
}
#station-content #jrpg-story .story-panel {
  background:#10152de8;
  border-image:var(--pixel-console) 12 fill / 10px / 0 stretch;
}
#station-content :is(#story-speaker,.expedition-victory h3,.formation-slot>small,#fighters .fighter-room h3,#skill-tree-title,#shop-heading,#mission>h3,#arena-rankings-heading) {
  font:400 clamp(.95rem,2.2cqw,1.52rem)/1.27 var(--pixel-font);
  text-transform:uppercase;
  color:var(--pixel-text);
}
#station-content #rpg-station.world-active.console-open > :is(#fighters,#combat,#skill-tree,#circuit-shop):not([hidden]) {
  border-inline-start:4px solid #86627f;
  box-shadow:inset 3px 0 #40314f,-4px 0 #070714a8;
  background:linear-gradient(180deg,#14172beb,#0b1021f5);
}
#station-content #rpg-station.console-open[data-screen="duels"] > #combat:has(#battle[data-screen="duels"] .duel-arena),
#station-content #rpg-station.console-open[data-screen="missions"] > #combat:has(#mission-live) {
  width:100%;
  border-inline-start:0;
}
#station-content :is(progress,#expedition-actors progress,.combatant progress) {
  --life:#83f5d1;
  appearance:none;
  height:9px;
  background:#09091a;
  border:2px solid #241b3d;
  border-radius:0;
  overflow:hidden;
}
#station-content .expedition-enemy progress,#station-content .combatant.side-1 progress {--life:#ffa487}
#station-content progress::-webkit-progress-bar {background:#0b0a1a}
#station-content progress::-webkit-progress-value {
  background:repeating-linear-gradient(90deg,transparent 0 6px,#17203b50 6px 8px),linear-gradient(0deg,#36243a 0 20%,var(--life) 20% 75%,#fff5b4 75%);
}
#station-content progress::-moz-progress-bar {
  background:repeating-linear-gradient(90deg,transparent 0 6px,#17203b50 6px 8px),linear-gradient(0deg,#36243a 0 20%,var(--life) 20% 75%,#fff5b4 75%);
}
#station-content button:focus-visible,
#station-modal .station-toolbar button:focus-visible,
#game-menu :is(button,a,select):focus-visible {
  outline:2px solid var(--pixel-accent);
  outline-offset:1px;
}
#station-content button:disabled {opacity:.55}
@media (max-width:715px) {
  #station-modal .station-toolbar h2 {white-space:nowrap;letter-spacing:.025em}
  #station-modal .station-toolbar :is(.hud-control,#close-station) {
    padding-inline:5px;
    min-height:36px;
    font-size:.72rem;
  }
  #station-content #rpg-station > .circuit-nav button {
    min-height:38px;
    padding-inline:2px;
    font-size:clamp(.66rem,2.5cqw,.79rem);
  }
  #station-content #rpg-station > .circuit-nav button::before {
    width:12px;
    height:12px;
    background-size:72px 12px;
    background-position-x:calc(var(--icon,0) * -12px);
    margin-right:.35em;
  }
  #station-content :is(.world-destination h3,#district-hub:not([hidden]) h4) {
    font-size:clamp(1.7rem,8.5cqw,2.5rem);
    max-width:15ch;
  }
  #station-content .world-interaction {min-height:44px;font-size:.73rem}
  #station-content #rpg-station.world-active.console-open > :is(#fighters,#combat,#skill-tree,#circuit-shop):not([hidden]) {
    border-inline-start:0;
    border-top:3px solid #86627f;
    box-shadow:inset 0 3px #40314f,0 -3px #070714a8;
  }
}
