button.busy {
  opacity: 0.65;
  cursor: progress;
}
body {
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 20% 25%, #1323337a, transparent 44%),
    radial-gradient(ellipse at 90% 100%, #251a326e, transparent 50%), #040811;
}
#shell {
  width: min(100%, 500px);
  margin: auto;
  min-height: 100svh;
  background: #09101c;
  box-shadow: 0 0 100px #0009;
  display: flex;
  flex-direction: column;
  border-inline: 1px solid #213044;
}
#hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  border-bottom: 1px solid #344252;
  background: #090f1be6;
  min-height: 61px;
}
.pilot {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  color: white;
  text-align: left;
  padding: 0;
}
.pilot img {
  height: 37px;
  width: 37px;
  border-radius: 50%;
  border: 1px solid #75b4ce;
}
.pilot strong {
  font-size: 14px;
  display: block;
}
.pilot small,
.money small,
.dim,
.kicker {
  color: #a5b4c7;
}
.pilot small {
  font-size: 11px;
}
.money {
  display: flex;
  gap: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.money i {
  font-style: normal;
  color: #fbc46f;
}
.money i.gem {
  color: #cd93ff;
}
#screen {
  flex: 1;
  min-width: 0;
}
.home-art {
  position: relative;
  isolation: isolate;
  background: #121b2e url("/art/orbitfall.webp") 68% 45% / cover no-repeat;
  padding: 24px 23px 19px;
  min-height: clamp(330px, 52svh, 510px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.home-art:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    #060d199c,
    transparent 37%,
    #09101c00 60%,
    #09101c 100%
  );
}
.game-title {
  font:
    italic 950 clamp(26px, 6vw, 38px)/0.93 "Arial Black",
    Arial,
    sans-serif;
  letter-spacing: -0.055em;
  text-shadow: 0 2px 12px #101b26;
}
.game-title span {
  display: block;
  letter-spacing: 0.36em;
  font:
    700 12px/1.6 "IBM Plex Mono",
    monospace;
  color: #ffe1a1;
  margin-left: 2px;
}
.kicker {
  font:
    700 11px/1.5 Consolas,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93d6df;
}
.home-art h1,
.panel h1,
.modal-title {
  font-size: clamp(30px, 7vw, 40px);
  letter-spacing: -0.052em;
  line-height: 1.04;
  margin: 6px 0 9px;
}
.home-art p {
  font-size: 14px;
  color: #c7d3dd;
}
.body-pad,
.panel {
  padding: 17px 20px 24px;
}
.body-pad {
  padding-top: 0;
}
.progress {
  height: 5px;
  background: #263446;
  border-radius: 10px;
  margin: 10px 0 15px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1781aa, #81f2ef);
}
button {
  color: var(--ink);
}
.btn,
.tile,
.choice,
.mini {
  background: #131e2e;
  border: 1px solid #304257;
  color: #edf6ff;
  border-radius: 7px;
  font-weight: 650;
}
.btn,
.choice,
.tile {
  padding: 12px 14px;
  min-height: 44px;
}
.btn:disabled,
.gold:disabled {
  opacity: 0.52;
  cursor: default;
}
.btn:hover,
.tile:hover,
.choice:hover {
  border-color: #6591a3;
}
.gold {
  cursor: pointer;
}
.wide {
  width: 100%;
}
.row,
.row-between,
.tabs,
.tiles,
.orb-grid,
.stats,
.action-list {
  display: flex;
  gap: 8px;
  align-items: center;
}
.row-between {
  justify-content: space-between;
}
.tiles,
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}
.tile {
  padding: 12px 4px;
  text-align: center;
  display: grid;
  place-items: center;
  gap: 4px;
  font-size: 12px;
}
.tile b {
  font-size: 20px;
  color: var(--cyan);
}
.tile:nth-child(2) b {
  color: #ffd185;
}
.tile:nth-child(3) b {
  color: #c49aff;
}
.hint {
  font-size: 13px;
  line-height: 1.55;
  color: #a6b7c9;
}
.action-list {
  flex-direction: column;
  align-items: stretch;
}
.choice {
  display: block;
  text-align: left;
  line-height: 1.4;
}
.choice strong,
.choice small {
  display: block;
}
.choice small {
  color: #acbbcb;
  font-weight: 400;
  line-height: 1.45;
}
.panel-head {
  margin-bottom: 18px;
}
.panel-head h1 {
  margin-bottom: 5px;
}
.panel h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
  margin: 19px 0 9px;
}
.panel h3 {
  font-size: 16px;
}
.dim {
  font-size: 14px;
  line-height: 1.6;
}
.tabs {
  overflow-x: auto;
  margin: 12px 0;
  flex-wrap: wrap;
}
.tabs button,
.mini {
  padding: 8px 12px;
  min-height: 36px;
  background: #111e2c;
  border: 1px solid #2e4053;
  border-radius: 6px;
  color: #c0cfe0;
}
.tabs .on,
.mini.on {
  border-color: #64cbd8;
  color: #9aeeef;
  background: #12303a;
}
.worlds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.worlds button,
.orb-grid button {
  background: #0d1724;
  color: white;
  border: 1px solid #2c4054;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  padding: 0 0 10px;
}
.worlds img {
  width: 100%;
  aspect-ratio: 2;
  object-fit: cover;
}
.worlds b,
.worlds small {
  display: block;
  margin: 3px 10px;
}
.worlds small {
  font-size: 12px;
  color: #a0b1c3;
}
.worlds .selected,
.orb-grid .on {
  border-color: var(--cyan);
}
.equipment {
  display: flex;
  gap: 16px;
  align-items: center;
  background:
    radial-gradient(ellipse at 25% 60%, #252139, transparent 65%), #0b1321;
  padding: 14px;
  border: 1px solid #304052;
  border-radius: 9px;
}
.equipment img {
  width: 44%;
  border-radius: 8px;
  mix-blend-mode: screen;
}
.equipment h2 {
  margin: 3px 0;
}
.orb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.orb-grid button {
  position: relative;
  padding: 0;
}
.orb-grid img {
  width: 100%;
  display: block;
}
.orb-grid .on:after {
  content: "◆";
  position: absolute;
  right: 4px;
  bottom: 1px;
  color: #ffd082;
  font-size: 10px;
}
.line-item,
.rankline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #243347;
  padding: 12px 0;
  gap: 10px;
}
.line-item > div {
  min-width: 0;
}
.line-item small,
.rankline small {
  display: block;
  color: #a6b8cb;
  font-size: 12px;
  line-height: 1.5;
}
.stat {
  padding: 12px 7px;
  background: #121e2f;
  border-radius: 6px;
  text-align: center;
}
.stat b,
.stat small {
  display: block;
}
.stat small {
  color: #acbbca;
  font-size: 12px;
}
.fields {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}
.fields label {
  font-size: 13px;
  color: #b7c8d7;
}
.fields input {
  width: 100%;
}
.panel a {
  color: var(--cyan);
}
#dock {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #080f1bf5;
  border-top: 1px solid #273749;
  display: flex;
  justify-content: space-around;
  padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
}
#dock button {
  flex: 1;
  border: 0;
  background: none;
  color: #9eafc2;
  padding: 6px 0;
  font-size: 11px;
  min-height: 46px;
}
#dock b {
  display: block;
  font-size: 18px;
  margin-bottom: 3px;
  color: #a3c9d7;
}
#dock .on,
#dock .on b {
  color: #ffc677;
}
#dock[hidden],
#hud[hidden] {
  display: none;
}
dialog {
  background: #101c2a;
  color: #eff8ff;
  border: 1px solid #486276;
  border-radius: 12px;
  width: min(92vw, 420px);
  padding: 22px;
  max-height: 85svh;
  overflow: auto;
}
dialog::backdrop {
  background: #020713c9;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 25px;
  margin: 0 0 9px;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
#notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  width: max-content;
  max-width: min(90vw, 440px);
  background: #223644;
  color: #f1faff;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 4px 24px #0007;
}
#notice:not(:empty) {
  padding: 10px 15px;
}
.battle {
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: max(7px, env(safe-area-inset-top)) 6px
    max(7px, env(safe-area-inset-bottom));
  background: #070e1d;
}
.battle-hud,
.combat-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.battle-hud {
  padding: 4px 4px 8px;
}
.battle-hud b,
.battle-hud small {
  display: block;
}
.battle-hud small {
  font: 11px monospace;
  color: #96d6df;
  margin-bottom: 3px;
}
.boardwrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boardwrap canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  aspect-ratio: 350/510;
  touch-action: none;
  border: 1px solid #274256;
  border-radius: 8px;
  background: #070e1d;
  user-select: none;
}
.combat-controls {
  padding: 7px 2px 1px;
  justify-content: center;
}
.combat-controls button {
  flex: 1;
  font-size: 13px;
}
.combat-tip {
  text-align: center;
  color: #a3cbdb;
  font-size: 12px;
  margin: 5px 0;
}
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #2a3a4c;
}
.switch input {
  width: 20px;
  height: 20px;
}
.podium {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}
.podium > div {
  width: 31%;
  text-align: center;
  padding: 12px 4px;
  border: 1px solid #5f5236;
  border-radius: 8px;
  background: linear-gradient(#352b1c, #121a24);
}
.podium img {
  width: 34px;
  border-radius: 50%;
}
.podium b,
.podium small {
  display: block;
  font-size: 12px;
}
.podium .first {
  padding-top: 20px;
  color: #ffd385;
}
.pinned {
  border: 1px solid #4ba9bb;
  background: #132a37;
  border-radius: 6px;
  padding: 10px;
}
.summary {
  text-align: center;
  padding: 8vh 22px;
}
.summary img {
  width: min(150px, 42%);
  border-radius: 50%;
}
.summary h1 {
  font-size: 42px;
  letter-spacing: -0.05em;
}
.boss-hp {
  color: #ffd083;
  text-align: center;
  font-size: 12px;
}
.native-ad {
  margin: 24px 0;
}
.stack {
  display: grid;
  gap: 10px;
}
.panel-head .kicker {
  margin: 0;
}
.toggle-help {
  font-size: 12px;
  color: #9bafc1;
}
.choice[disabled] {
  opacity: 0.55;
}
