/* COSMIC PINBALL — shared game interface tokens and material system. */
:root {
  --bg: #020a14;
  --panel: #061c2ddd;
  --line: #477b97;
  --accent: #75dfff;
  --gold: #efcb80;
  --muted: #91aebf;
  --font: "Bahnschrift", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --mono: "Bahnschrift", "Consolas", monospace;
  --cut: polygon(
    12px 0,
    calc(100% - 12px) 0,
    100% 12px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px),
    0 12px
  );
  --silver: #e3f6ff;
  --danger: #ff7766;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  min-height: 100svh;
  color: var(--silver);
  font-size: 14px;
  background: transparent;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 70% 5%, #183d63 0, transparent 55%),
    radial-gradient(ellipse at 20% 70%, #063047 0, transparent 55%), #020a14;
}
.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #020d19b3, #020b1538 70%),
    url("../assets/cosmic-hangar.webp") center/cover no-repeat;
  transition: filter 0.7s;
  pointer-events: none;
}
.space-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 11% 24%, #c8f2ff 95%, transparent),
    radial-gradient(1px 1px at 81% 43%, #c8f2ff 95%, transparent),
    radial-gradient(1px 1px at 40% 76%, #75dfff 95%, transparent);
  background-size:
    211px 179px,
    293px 313px,
    367px 251px;
  opacity: 0.3;
}
body:not([data-screen="home"]) .space-backdrop {
  filter: brightness(0.45) saturate(0.8);
}
button,
input,
select {
  font-family: inherit;
}
button {
  letter-spacing: 1px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.36;
  filter: saturate(0.1);
  cursor: not-allowed;
}
button[aria-busy="true"] {
  cursor: progress;
}
button[aria-busy="true"]:after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
button:active:not(:disabled) {
  transform: translateY(2px);
  filter: brightness(1.2);
}
.header {
  height: 92px;
  max-width: none;
  padding: 0 3.5vw;
  gap: 45px;
  border-bottom: 1px solid #6bcbff40;
  background: linear-gradient(#031220cb, #03122055);
  position: relative;
  z-index: 4;
}
.header:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8ddfff, transparent);
  box-shadow: 0 0 15px #55bfff;
}
.brand {
  gap: 8px;
  min-width: 190px;
  color: #bdeaff;
}
.brand > span:not(.brand-star) {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 3px;
  font-weight: 900;
  font-style: italic;
  text-shadow:
    0 2px #043454,
    0 0 15px #65c9ff50;
}
.brand .brand-star {
  font-size: 42px;
  color: var(--gold);
  text-shadow: 0 0 18px #f8c77899;
}
.brand small {
  font-size: 7px;
  font-style: normal;
  letter-spacing: 1px;
  color: #a9d9e9;
  margin-top: 6px;
}
.header nav {
  gap: 22px;
}
.nav-link {
  font-size: 12px;
  letter-spacing: 2px;
  color: #a6c7d9;
}
.nav-link:hover {
  color: white;
  text-shadow: 0 0 14px #63d7ff;
}
.nav-link.active {
  color: var(--gold);
}
.nav-link.active:after {
  background: var(--gold);
  box-shadow: 0 0 13px #ffcf65;
  left: 0;
  right: 0;
  height: 2px;
}
.header-right {
  gap: 8px;
}
.pilot-status {
  font-size: 10px;
  letter-spacing: 1px;
  color: #99cbdb;
  margin-right: 14px;
}
.iconbtn {
  border-radius: 0;
  background: #061d2c90;
  border-color: #497b91;
  min-width: 35px;
  height: 35px;
  color: #baeaff;
}
.iconbtn:hover {
  background: #17415b;
  border-color: var(--accent);
}
.screen {
  max-width: 1680px;
  padding: 0 3.5vw 26px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--accent);
}
.live-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.primary,
.secondary,
.control {
  position: relative;
  border-radius: 0;
  clip-path: var(--cut);
  border: 1px solid #6eacc3;
  min-height: 45px;
  transition:
    filter 0.2s,
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow:
    inset 0 0 0 3px #051420,
    inset 0 0 0 4px #416c83;
  font-size: 13px;
  letter-spacing: 2px;
  background: linear-gradient(170deg, #1a506bdd, #041c2df2 52%, #16465e);
  color: #c2eeff;
}
.primary:before,
.secondary:before {
  content: "";
  position: absolute;
  inset: 6px;
  clip-path: var(--cut);
  border-top: 1px solid #b4ebff60;
  border-bottom: 1px solid #487d9555;
  pointer-events: none;
}
.primary {
  border-color: #fff0b6;
  background: linear-gradient(
    155deg,
    #fff0b1 0,
    #be8c30 10%,
    #563808 50%,
    #9b6c20 75%,
    #d3ac55
  );
  color: #fff2c7;
  box-shadow:
    inset 0 0 0 3px #c79543,
    inset 0 0 0 4px #fff2ae;
  font-weight: 700;
  text-shadow: 0 2px 3px #452700;
  filter: drop-shadow(0 0 8px #e2ac4650);
}
.primary:hover {
  background: linear-gradient(
    155deg,
    #fff6c7,
    #b88930 25%,
    #6b480e 55%,
    #d8ad58
  );
  filter: drop-shadow(0 0 12px #ffcf7680) brightness(1.12);
}
.secondary:hover,
.control:hover {
  background: linear-gradient(145deg, #287196, #062335 50%, #235e78);
  border-color: #adf1ff;
  filter: drop-shadow(0 0 8px #69dcff55);
}
.compact {
  min-height: 34px;
  font-size: 10px;
  padding: 7px 16px;
}
.text-button {
  color: #91d3ea;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 1px;
}
.text-button:hover {
  color: var(--gold);
}
.hud-panel,
.mission-card,
.pressure-card,
.selection-panel,
.podium-card,
.dialog,
.record-table-wrap {
  background: linear-gradient(145deg, #0c3042df, #031421ec 70%);
  border: 1px solid #67a7bd;
  box-shadow:
    inset 0 0 24px #15577b35,
    0 12px 28px #0004;
  border-radius: 1px;
  position: relative;
}
.hud-panel:before,
.mission-card:before,
.selection-panel:before {
  content: "";
  position: absolute;
  inset: 4px;
  border-top: 1px solid #94d9ef66;
  border-bottom: 1px solid #67a7bd33;
  pointer-events: none;
}
.track {
  background: #07101b;
  border: 1px solid #41617a;
  border-radius: 0;
  height: 7px;
}
.track i {
  background: linear-gradient(90deg, #2686b5, #89eeff);
  box-shadow: 0 0 8px #71d9ff;
}
.home-screen {
  max-width: none;
  padding-bottom: 0;
}
.home-topline {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 10px;
  letter-spacing: 3px;
  color: #b0d4e6;
}
.home-composition {
  display: grid;
  grid-template-columns: minmax(220px, 26%) minmax(350px, 38%) 1fr;
  gap: 3%;
  align-items: center;
  min-height: calc(100svh - 229px);
  padding-bottom: 40px;
}
.home-intel {
  align-self: end;
  padding-bottom: 30px;
  max-width: 360px;
  display: grid;
  gap: 15px;
}
.home-intel > .eyebrow {
  font-size: 9px;
}
.home-intel .hud-panel {
  padding: 20px;
}
.panel-caption {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  display: block;
  color: #b7ebff;
}
.personal-record strong {
  font: italic 34px var(--mono);
  color: #92e7ff;
  display: block;
  margin: 10px 0 2px;
  letter-spacing: 1px;
  text-shadow: 0 0 20px #2abaef6e;
}
.personal-record > span:last-of-type {
  display: block;
  font-size: 10px;
  color: #b6cbd7;
  line-height: 1.8;
}
.personal-record .text-button {
  width: 100%;
  justify-content: space-between;
  margin-top: 10px;
  border-top: 1px solid #3d6f8466;
  padding-bottom: 0;
}
.home-progress-orbit {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 7px;
}
.home-progress-orbit span {
  font: 31px var(--mono);
  color: var(--gold);
}
.home-progress-orbit small {
  color: #a7cadb;
  font-size: 11px;
}
.home-resume p {
  font-size: 10px;
  margin: 9px 0 0;
  color: #a7bac6;
}
.home-resume .text-button {
  padding-bottom: 0;
}
.home-discovery {
  display: flex;
  text-align: left;
  gap: 12px;
  align-items: center;
}
.home-discovery img {
  width: 68px;
  height: 76px;
  object-fit: cover;
}
.home-discovery small {
  font: 8px var(--mono);
  color: var(--gold);
  display: block;
}
.home-discovery b {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
  margin: 5px 0;
}
.home-discovery em {
  font-size: 9px;
  font-style: normal;
  color: #90bed1;
  letter-spacing: 0;
}
.home-discovery:hover {
  border-color: var(--gold);
}
.home-center {
  text-align: center;
  align-self: center;
  padding-bottom: 10px;
}
.hero-kicker {
  font: 9px var(--mono);
  letter-spacing: 4px;
  color: #afd8e9;
  margin-bottom: 12px;
}
.game-logo {
  position: relative;
  isolation: isolate;
  margin: 0 -20px 6px;
  padding: 22px 0 16px;
}
.game-logo h1 {
  font-size: clamp(50px, 5.9vw, 102px);
  font-weight: 1000;
  font-style: italic;
  letter-spacing: -4px;
  line-height: 1.12;
  margin: 0;
  padding: 0 10px;
  background: linear-gradient(
    #fff 5%,
    #c0f0ff 34%,
    #4a9cc4 48%,
    #edfaff 52%,
    #8dd5f3 64%,
    #4c839b 90%
  );
  color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 4px 0 #07283e) drop-shadow(-1px -1px 0 #d4f7ff)
    drop-shadow(1px 6px 0 #ba994b);
  position: relative;
  z-index: 2;
}
.game-logo .logo-star {
  font-size: 56px;
  color: var(--gold);
  position: absolute;
  top: -28px;
  left: 49%;
  line-height: 1;
  text-shadow: 0 0 20px #ffc76c;
  z-index: 3;
}
.logo-orbit {
  position: absolute;
  inset: 19px -9px 18px;
  border: 3px solid #84e6ff;
  border-right: 7px solid var(--gold);
  border-left: 5px solid #38b1dc;
  border-radius: 50%;
  transform: rotate(-8deg);
  z-index: -1;
  box-shadow:
    0 0 15px #21a6ed66,
    inset 0 0 10px #2bdaff22;
}
.game-logo small {
  font-size: 9px;
  letter-spacing: 3px;
  color: #b9e9f9;
  display: block;
  margin-top: 20px;
}
.hero-motto {
  color: #b4daea;
  letter-spacing: 4px;
  font-size: 12px;
  white-space: nowrap;
  margin: 8px -30px 28px;
}
.main-menu {
  width: 82%;
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.main-menu button {
  width: 100%;
  height: 51px;
  font-size: 18px;
  letter-spacing: 4px;
}
.main-menu .menu-main {
  height: 79px;
  font-size: 27px;
  letter-spacing: 7px;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-bottom: 7px;
  padding: 10px 20px;
}
.menu-main > span {
  font-size: 26px;
}
.menu-main > small {
  display: block;
  width: 100%;
  font: 8px var(--mono);
  letter-spacing: 4px;
  opacity: 0.8;
}
.menu-signoff {
  margin-top: 25px;
  font-size: 10px;
  letter-spacing: 3px;
  color: #acd8e8;
}
.home-scene-caption {
  align-self: start;
  padding-top: 48px;
  padding-left: 20px;
  text-shadow: 0 3px 15px #000;
}
.home-scene-caption > span {
  font: 8px var(--mono);
  letter-spacing: 2px;
  color: #b7d3e3;
}
.home-scene-caption b {
  font-size: 25px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 5px;
  display: block;
  margin: 10px 0;
}
.home-scene-caption > div {
  font: 9px var(--mono);
  letter-spacing: 2px;
  color: #b1d7e5;
}
.resume-notice {
  display: none;
}
.global-footer {
  max-width: 1680px;
  margin: auto;
  padding: 18px 3.5vw 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font: 9px var(--mono);
  color: #9ac9dd;
  letter-spacing: 2px;
  border-top: 1px solid #5c9fbd45;
}
.global-footer > span:first-child {
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 4px;
}
.global-footer small {
  font-size: 6px;
  display: block;
  margin-top: 5px;
  letter-spacing: 2px;
}
.global-footer > span:last-child {
  font-size: 9px;
  letter-spacing: 1px;
}
body[data-screen="play"] .global-footer {
  display: none;
}
.map-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 18px;
}
.map-heading h1 {
  font-size: 30px;
  letter-spacing: 3px;
  margin: 5px 0;
  font-weight: 600;
}
.chapter-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.chapter-tabs button {
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  text-align: left;
  background: linear-gradient(120deg, #0b273acf, #05121ce6);
  border: 1px solid #466d86;
  clip-path: var(--cut);
  color: #99bed4;
}
.chapter-tabs button small {
  font: 8px var(--mono);
  letter-spacing: 2px;
  grid-column: 1/-1;
}
.chapter-tabs button b {
  font-size: 16px;
  letter-spacing: 3px;
  margin-top: 4px;
}
.chapter-tabs button span {
  font: 10px var(--mono);
  align-self: center;
}
.chapter-tabs button:hover {
  background: #0e3650;
}
.chapter-tabs button.active {
  border-color: var(--gold);
  color: #ffe4a4;
  background: linear-gradient(130deg, #594122b3, #072238 75%);
  box-shadow: inset 0 0 20px #ffc96618;
}
.library-title {
  margin: 0 0 12px;
}
.library-title > .eyebrow,
.library-title > div > .eyebrow {
  display: none;
}
.library-title h2 {
  font-size: 16px;
  letter-spacing: 3px;
}
.filters {
  gap: 2px;
}
.filters button {
  border-radius: 0;
  color: #a9c9dc;
  padding: 6px 14px;
  font-size: 10px;
}
.filters button.active {
  background: #173847;
  border-color: #6298ad;
  color: #d0f3ff;
}
.library-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 28px;
}
.star-map {
  position: relative;
  min-height: 490px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at 48% 48%, #20567c29, transparent 65%);
  border-top: 1px solid #36637c88;
  border-bottom: 1px solid #36637c88;
}
.map-orbit {
  position: absolute;
  width: 95%;
  height: 39%;
  border: 1px solid #60cfff55;
  border-radius: 50%;
  top: 11%;
  transform: rotate(-10deg);
  z-index: -1;
  box-shadow: 0 0 12px #62dcff0a;
}
.orbit-b {
  top: 47%;
  transform: rotate(9deg);
  border-color: #b7def630;
}
.map-orbit:after {
  content: "✧";
  position: absolute;
  color: #c0faff;
  font-size: 22px;
  left: 14%;
  top: 9%;
  text-shadow: 0 0 20px #32caff;
}
.level-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 28px 15px;
  align-content: center;
}
.level-card {
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  text-align: center;
  overflow: visible;
  min-width: 0;
  box-shadow: none;
  transition:
    transform 0.2s,
    background 0.2s;
}
.level-card:nth-child(5n + 4) {
  grid-column: 1 / 2;
  margin-left: 40%;
}
.level-card:nth-child(5n + 5) {
  grid-column: 2 / 4;
  margin-right: 25%;
  margin-left: 10%;
}
.level-card:hover {
  border-color: transparent;
  background: radial-gradient(ellipse, #52c4ec1c, transparent 70%);
  transform: translateY(-4px);
}
.level-card.selected {
  border-color: transparent;
  box-shadow: none;
  background: radial-gradient(ellipse, #ce9c3e22, transparent 67%);
}
.cover-wrap {
  aspect-ratio: auto;
  height: 114px;
  overflow: visible;
  position: relative;
}
.cover-wrap img {
  width: 114px;
  height: 114px;
  margin: auto;
  object-fit: cover;
  border-radius: 50%;
  mask-image: radial-gradient(ellipse, #000 45%, #000c 57%, transparent 72%);
  filter: drop-shadow(0 0 13px #309dd960);
}
.cover-wrap:after {
  content: "";
  position: absolute;
  width: 132px;
  height: 32px;
  border: 1px solid #80dafa88;
  box-shadow: 0 0 6px #3eadee44;
  border-radius: 50%;
  left: 50%;
  top: 64%;
  transform: translate(-50%, -50%) rotate(-15deg);
  pointer-events: none;
}
.selected .cover-wrap:after {
  border: 2px solid var(--gold);
  box-shadow: 0 0 14px #f4c774aa;
}
.level-card.selected:before {
  content: "⌄";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  font-size: 28px;
  color: var(--gold);
  text-shadow: 0 0 13px #ffcb79;
}
.card-top {
  left: 14%;
  right: 10%;
  top: 0;
  font: 9px var(--mono);
}
.card-top > span:first-child {
  background: #02122099;
  padding: 1px 5px;
  color: #bbebff;
}
.card-tag {
  border-radius: 0;
  font-size: 7px;
  border: 0;
  background: #081b2ed9;
}
.card-tag.boss {
  color: var(--gold);
}
.card-body {
  padding: 0 0 5px;
}
.card-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card-heading h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px black;
}
.card-star {
  font-size: 12px;
  letter-spacing: 4px;
  color: #55778f;
}
.card-star.complete {
  color: #f3d399;
}
.card-body p {
  font-size: 8px;
  color: #9ab7c7;
  margin: 2px 0;
}
.card-choice {
  display: none;
}
.selected .card-heading h3 {
  color: #ffe3a8;
}
.map-caption {
  display: flex;
  justify-content: space-between;
  padding: 14px 7px;
  font-size: 9px;
  color: #a0c4d4;
  letter-spacing: 1px;
  margin-top: auto;
}
.selection-panel {
  position: relative;
  top: auto;
  overflow: visible;
  border-radius: 0;
  padding: 7px;
  align-self: start;
}
.selection-panel > img {
  height: 155px;
  mask-image: linear-gradient(#000 60%, #0007);
  object-fit: cover;
  background: #0a1525;
}
.selection-content {
  padding: 12px 15px 16px;
  margin: 0;
}
.selection-content h2 {
  font-size: 27px;
  letter-spacing: 3px;
  margin: 4px 0;
}
.selection-content > p {
  font-size: 11px;
  min-height: 0;
  margin: 0 0 12px;
  color: #9fbfd2;
}
.selection-content > .eyebrow {
  font-size: 8px;
}
.mechanic-preview {
  border-bottom: 1px solid #456a7d66;
  margin-bottom: 12px;
  padding-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 10px;
}
.mechanic-preview > span {
  color: var(--gold);
}
.mechanic-preview > b {
  font-weight: 500;
  color: #ccedfc;
  text-align: right;
}
.mechanic-preview > p {
  grid-column: 1/-1;
  color: #9cbbcd;
  line-height: 1.7;
  font-size: 10px;
  margin: 5px 0 0;
}
.field-label {
  margin: 10px 0 6px;
  color: #cce7f4;
  font-size: 11px;
  letter-spacing: 1px;
}
.segmented {
  background: none;
  border: 0;
  padding: 0;
  gap: 8px;
  border-radius: 0;
}
.segmented button {
  border: 1px solid #416e87;
  background: #082030a8;
  border-radius: 0;
  clip-path: var(--cut);
  padding: 12px 4px;
}
.segmented button b {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.segmented button small {
  font-size: 8px;
  display: block;
  margin-top: 4px;
  letter-spacing: 1px;
  color: #b3cedc;
}
.segmented button.active {
  border-color: var(--gold);
  background: linear-gradient(130deg, #89652a80, #2d241a66);
  color: #fff1c6;
  box-shadow: inset 0 0 15px #eac6681c;
}
.difficulty-select {
  gap: 6px;
}
.difficulty-select button {
  border-radius: 0;
  clip-path: var(--cut);
  padding: 8px 4px;
  border-color: #486d85;
  background: #071d2c;
  color: #a7c9da;
}
.difficulty-select button.active {
  border-color: var(--gold);
  background: #5d43266e;
  color: #ffe3a2;
}
.difficulty-select button:hover,
.segmented button:hover {
  filter: brightness(1.4);
}
.selection-content .config-line {
  color: #bad5df;
  font-size: 9px;
  margin: 8px 0;
}
.rule-note {
  font-size: 10px;
  min-height: 0;
  background: #030e19aa;
  border-color: var(--gold);
  color: #b7cddc;
  padding: 9px;
  line-height: 1.8;
}
.start-button {
  margin-top: 12px;
  height: 50px;
  font-size: 17px;
  letter-spacing: 3px;
}
.selection-foot {
  font-size: 9px;
  margin-top: 9px;
}
.selection-foot > span {
  color: #eed08d;
}
.selection-foot button {
  color: #a7deef;
}
.home-footer {
  border: 0;
  margin-top: 8px;
  font-size: 9px;
  color: #9cbaca;
  padding-top: 12px;
}
.section-heading {
  padding: 34px 0 23px;
  border-color: #6ca8bd66;
  position: relative;
}
.section-heading h1 {
  font-size: 44px;
  font-style: italic;
  letter-spacing: 7px;
  margin: 8px 0 10px;
  color: #d6f5ff;
  text-shadow:
    0 3px 0 #244f65,
    0 0 25px #47b6e63b;
}
.section-heading p {
  font-size: 11px;
  margin: 0;
  color: #b1cbd9;
  letter-spacing: 1px;
}
.record-filters {
  background: linear-gradient(115deg, #0d3045de, #051624e6);
  border: 1px solid #487b99;
  clip-path: var(--cut);
  padding: 18px;
  margin: 23px 0;
}
.record-filters label {
  color: #c8e9f6;
  letter-spacing: 2px;
}
.record-filters select {
  border-radius: 0;
  border: 1px solid #598da8;
  background: #051d2f;
  color: #c6eaff;
  padding: 10px;
  font-size: 12px;
}
.record-filters option {
  background: #071c2a;
}
.podium {
  gap: 18px;
}
.podium-card {
  border-radius: 0;
  padding: 20px 24px;
  background: linear-gradient(130deg, #153650e8, #06121fe6);
  border-color: #588fad;
}
.podium-card:nth-child(1) {
  border-color: var(--gold);
  background: linear-gradient(130deg, #634820b5, #081b28ee 75%);
}
.podium-card:nth-child(3) {
  border-color: #a78768;
}
.podium-card strong {
  font-style: italic;
  font-size: 34px;
  color: #c2eeff;
  text-shadow: 0 0 18px #58cfff50;
}
.podium-card:first-child strong {
  color: var(--gold);
  text-shadow: 0 0 18px #ffc25a50;
}
.podium-card h3 {
  font-size: 15px;
  letter-spacing: 2px;
}
.podium-card small {
  font-size: 8px;
  color: var(--gold);
}
.podium-card p {
  font-size: 10px;
  color: #a7c5d5;
}
.podium-rank {
  font-size: 65px;
  color: #bdedff1c;
}
.record-table-wrap {
  min-height: 240px;
  border-color: #487b99;
  background: #061a27db;
}
.record-table th {
  padding: 16px 20px;
  background: #10334ac7;
  color: #b3e0f1;
  font-size: 11px;
  letter-spacing: 2px;
}
.record-table td {
  padding: 16px 20px;
  border-top: 1px solid #5985a333;
  color: #c3dce7;
  font-size: 12px;
}
.record-table td.score-cell {
  font-size: 21px;
  color: #a9e6fc;
}
.record-table tr:first-child {
  background: linear-gradient(90deg, #92703424, transparent);
}
.record-table tr.latest {
  background: #153e5488;
}
.record-table td small {
  color: #8caebb;
  font-size: 9px;
}
.rank-num {
  color: var(--gold);
  font-size: 18px;
}
.status-pill {
  border-radius: 0;
  border-color: #4c859f;
  color: #c5ebf8;
}
.empty-state {
  padding: 60px 25px;
  gap: 18px;
  background: radial-gradient(ellipse, #0c365452, transparent 70%);
}
.empty-state:before {
  content: "♛";
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
}
.empty-state strong {
  color: #c9e6f3;
  letter-spacing: 3px;
}
.empty-state span {
  color: #a7c2d3;
}
.records-foot {
  color: #92b4c9;
  font-size: 10px;
}
.records-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.records-actions button {
  min-width: 180px;
}
.workshop-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 25px;
  margin-top: 24px;
  min-height: 570px;
}
.workshop-inventory {
  border: 1px solid #54849e;
  background: #051a2bc7;
  padding: 20px;
  box-shadow: inset 0 0 35px #0b385540;
}
.workshop-bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #3a688366;
  padding-bottom: 15px;
  color: #b8e7fb;
  font-size: 14px;
  letter-spacing: 2px;
}
.workshop-bar b {
  font: 11px var(--mono);
  color: var(--gold);
}
.workshop-bar > span:last-child {
  font-size: 9px;
  align-self: center;
  color: #a2c2d4;
  letter-spacing: 1px;
}
.skin-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 20px;
}
.skin-card {
  border: 1px solid #3e7293;
  border-radius: 0;
  background: linear-gradient(155deg, #19364a88, #020e1b);
  padding: 10px 7px 14px;
  min-height: 199px;
  position: relative;
  clip-path: var(--cut);
}
.skin-card .skin-mini {
  height: 100px;
  width: 100px;
  max-width: 100%;
  margin: 0 auto 5px;
  background-color: transparent;
  box-shadow: none;
}
.skin-card h3 {
  font-size: 12px;
  letter-spacing: 1px;
}
.skin-card p {
  font-size: 8px;
  margin: 5px 0 11px;
  color: #96b2c7;
}
.skin-card > span {
  font-size: 9px;
  color: #a4d8ec;
}
.skin-card.active {
  border: 1px solid var(--gold);
  background: radial-gradient(ellipse at 50% 40%, #b5954436, #06121ee8);
  box-shadow: inset 0 0 20px #d9a53619;
}
.skin-card.active:after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 9px;
  color: var(--gold);
  font-size: 16px;
}
.skin-card.previewed {
  outline: 1px solid #90e5ff;
  outline-offset: -4px;
}
.skin-card:hover {
  background-color: #163e50;
  border-color: #c3f0ff;
}
.skin-showcase {
  position: relative;
  isolation: isolate;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 0 20px 22px;
  border-bottom: 0;
  background: radial-gradient(ellipse at 50% 43%, #0d50786b, transparent 60%);
  border: 1px solid #3c627933;
}
.skin-showcase h2 {
  font-size: 31px;
  letter-spacing: 4px;
  margin: 8px 0;
  color: #d8f3ff;
}
.skin-showcase p {
  font-size: 11px;
  color: #a9c8d7;
  letter-spacing: 2px;
}
.skin-showcase .eyebrow {
  color: var(--gold);
  font-size: 9px;
}
.skin-orbit-stage {
  height: 280px;
  width: 100%;
  display: grid;
  place-items: center;
  position: relative;
  perspective: 600px;
}
.skin-orb {
  width: 220px;
  height: 220px;
  box-shadow: none;
  border-radius: 50%;
  z-index: 1;
  animation: orbFloat 6s ease-in-out infinite;
  background-position: center;
  background-size: cover;
}
.skin-orb:after {
  inset: 0;
  border: none;
  transform: none;
}
.preview-rings {
  position: absolute;
  width: 85%;
  height: 75%;
  border: 1px solid #67b9d2;
  border-radius: 50%;
  transform: rotateX(62deg) rotate(-16deg);
  box-shadow:
    0 0 16px #62d9ff44,
    inset 0 0 23px #59baff22;
  top: 29%;
}
.preview-rings:before,
.preview-rings:after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid #b3edf940;
  border-radius: 50%;
}
.preview-rings:after {
  inset: -29px;
  border-color: #d6b87544;
}
.skin-showcase .primary {
  min-width: 220px;
  margin: 13px auto 0;
  font-size: 18px;
  display: flex;
}
.skin-showcase .text-button {
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}
.preview-parts {
  display: flex;
  gap: 22px;
  justify-content: center;
  padding-top: 18px;
  border-top: 1px solid #69b6d244;
  width: 100%;
  font-size: 10px;
  color: #acd4e8;
}
.play-screen {
  max-width: 1540px;
  padding-bottom: 10px;
}
.play-heading {
  height: 52px;
}
.play-heading > span {
  font-size: 9px;
  color: #9ab8ca;
  letter-spacing: 2px;
}
.play-layout {
  grid-template-columns: minmax(180px, 270px) minmax(270px, 560px) minmax(
      180px,
      270px
    );
  gap: 35px;
  align-items: start;
}
.table-column {
  width: min(100%, calc((100svh - 225px) * 0.68293));
  min-width: 285px;
  margin: 0 auto;
}
.board-frame {
  border: 1px solid #7cbfdc;
  border-radius: 22px;
  box-shadow:
    0 0 0 4px #132b3c,
    0 0 0 5px #b6c9ce88,
    0 0 0 8px #07111e,
    0 0 0 9px #9b7a4388,
    0 0 40px #008acd24,
    0 25px 60px #000b;
  overflow: hidden;
}
.table-topbar {
  font-size: 8px;
  letter-spacing: 1px;
  color: #c0d6e4;
  padding-bottom: 12px;
}
.game-left,
.game-right {
  padding-top: 21px;
}
.game-left h1 {
  font-size: 30px;
  letter-spacing: 3px;
  margin: 7px 0;
}
.run-badge {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
}
.score-panel {
  border: 1px solid #608c9f;
  padding: 20px;
  margin-top: 22px;
  background: linear-gradient(130deg, #0c3548d9, #041622e8);
  box-shadow: inset 0 0 20px #11679b30;
}
.score-panel label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #b8e1f2;
}
.score-panel > strong {
  font-size: clamp(28px, 3vw, 45px);
  font-style: italic;
  color: #9ce9ff;
  text-shadow: 0 0 20px #32b3e761;
  line-height: 1.5;
}
.score-panel > div {
  border-top: 1px solid #43768a66;
  padding-top: 7px;
  font-size: 10px;
}
.score-panel > div b {
  color: #b7daea;
  font-size: 13px;
}
.objective-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #496d8599;
  background: #041522c4;
}
.objective-panel h3 {
  margin: 0 0 18px;
  color: #bee3f2;
  font-size: 11px;
  letter-spacing: 1px;
}
.objective {
  font-size: 10px;
  gap: 9px;
  margin-bottom: 14px;
}
.objective > span {
  color: #adc8da;
}
.objective > strong {
  color: #d0eafa;
}
.run-stats {
  border: 1px solid #416e8399;
  background: #071e2eaa;
  padding: 13px 16px;
  margin-top: 12px;
  gap: 15px;
}
.run-stats label {
  color: #a0c9db;
  font-size: 10px;
  letter-spacing: 1px;
}
.run-stats b {
  font-size: 24px;
  color: var(--gold);
}
.run-stats #lives {
  color: #91e4ff;
  text-shadow: 0 0 12px #27c1ff;
  font-size: 18px;
  letter-spacing: 2px;
}
.rescue {
  background: linear-gradient(150deg, #155477aa, #041827);
  height: 47px;
  font-size: 12px;
  margin-top: 15px;
}
.small-note {
  color: #97b2c6;
  font-size: 10px;
}
.mission-card {
  padding: 20px;
  border-radius: 0;
}
.mission-card h2 {
  font-size: 18px;
  letter-spacing: 2px;
}
.mission-card p {
  font-size: 11px;
  color: #aac7d6;
  line-height: 2;
}
.game-right > h3 {
  font-size: 12px;
  margin: 0 0 12px;
  letter-spacing: 3px;
}
.equipped {
  margin-top: 10px;
  gap: 14px;
  border-color: #42768b66;
}
.equipped small {
  font-size: 9px;
  color: #9bb9cf;
}
.equipped b {
  font-size: 12px;
  color: #c4e3f0;
}
.controls-guide > div {
  color: #9bbbd0;
  font-size: 10px;
  margin: 13px 0;
}
.control {
  min-height: 40px;
  height: 40px;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 0 6px;
}
.control.launch {
  color: #f4dea8;
  background: linear-gradient(160deg, #655029, #0a2131);
  border-color: #bba56e;
}
.control.held {
  background: #186283;
  box-shadow: inset 0 0 18px #6fd9ff55;
}
.charge-mini {
  background: #0a2331;
  border-radius: 0;
  height: 4px;
  margin-top: 13px;
}
.charge-mini i {
  background: var(--gold);
}
.controls {
  margin-top: 8px;
}
.table-footer {
  font-size: 8px;
  color: #90b9ca;
}
.board-status {
  top: 64%;
  padding: 10px;
  background: linear-gradient(90deg, transparent, #03101be6, transparent);
}
.board-status strong {
  color: #e7f7ff;
  font-size: 18px;
  letter-spacing: 3px;
}
.board-status span {
  color: #adcfde;
  font-size: 10px;
}
.pressure-card {
  border-radius: 0;
  border-color: #bfa15d88;
  background: linear-gradient(130deg, #59422270, #081724ed);
  padding: 17px;
  margin-top: 15px;
}
.pressure-card #pressureDetail {
  font-size: 10px;
  line-height: 1.9;
  color: #d1cbb7;
}
.pressure-card p {
  font-size: 9px;
  line-height: 1.8;
  color: #b6ab8e;
}
.boss-banner {
  position: relative;
  margin: -3px -12px 13px;
  background: #03121ce8;
  border: 1px solid #ba91746b;
  padding: 9px 12px;
}
.boss-banner > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.boss-banner b {
  font-size: 15px;
  font-style: italic;
  letter-spacing: 2px;
}
.boss-banner #bossPhase {
  font-size: 8px;
  color: #ffc486;
}
.boss-health {
  height: 15px;
  position: relative;
  border: 1px solid #ad9f8d;
  background: #060f19;
  margin: 7px 0 4px;
  padding: 2px;
}
.boss-health i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ad312c, #ff8063, #ffe6ad);
  box-shadow: 0 0 12px #ff6f4980;
  transition: width 0.2s;
}
.boss-health > span {
  position: absolute;
  right: 5px;
  top: -1px;
  font-size: 9px;
  color: #fff;
  text-shadow: 0 1px 3px black;
}
.boss-banner > small {
  display: block;
  font-size: 8px;
  color: #bcdded;
  letter-spacing: 1px;
}
.boss-dossier {
  padding: 15px;
  margin-bottom: 15px;
}
.boss-dossier img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  float: right;
  mask-image: radial-gradient(ellipse, #000 48%, transparent 75%);
}
.boss-dossier h2 {
  font-size: 17px;
  margin: 7px 0;
  color: #ffe1b1;
}
.boss-dossier .eyebrow {
  font-size: 7px;
  color: var(--gold);
}
.boss-dossier ol {
  list-style: none;
  padding: 0;
  clear: both;
  font-size: 10px;
  color: #819eaf;
  margin: 15px 0 9px;
}
.boss-dossier li {
  padding: 6px 8px;
  border-bottom: 1px solid #6b9cab33;
}
.boss-dossier li.active {
  background: #0f3347;
  border: 1px solid #759cb0;
  color: #c5f0ff;
}
.boss-dossier p {
  font-size: 10px;
  color: #b4cad6;
  margin-bottom: 0;
  line-height: 1.8;
}
body.boss-fight .table-column {
  width: min(100%, calc((100svh - 309px) * 0.68293));
  min-width: 270px;
}
body.boss-fight .mission-card {
  padding: 13px;
}
body.boss-fight .mission-card p {
  font-size: 10px;
  line-height: 1.8;
}
body.boss-fight .game-right > .controls-guide,
body.boss-fight .game-right > .equipped {
  display: none;
}
.modal {
  background: #000915b8;
  backdrop-filter: blur(12px);
  z-index: 50;
  padding: 24px;
}
.dialog {
  border: 1px solid #74a9bf;
  box-shadow:
    0 0 0 4px #07101d,
    0 0 0 5px #40697d,
    0 0 50px #0d85c726,
    0 30px 120px #000b;
  border-radius: 0;
  padding: 32px;
  max-height: 90svh;
}
.dialog:before {
  content: "";
  position: absolute;
  top: 0;
  left: 17%;
  right: 17%;
  height: 1px;
  background: #adebff;
  box-shadow: 0 0 12px #72daff;
}
.dialog h2 {
  font-size: 29px;
  letter-spacing: 3px;
  color: #def5ff;
}
.dialog p {
  font-size: 12px;
  color: #b2cbd9;
  line-height: 1.9;
}
.dialog.narrow {
  width: 475px;
  padding: 36px;
}
.dialog.narrow > button {
  margin-top: 12px;
}
.pause-symbol {
  width: 82px;
  height: 82px;
  border: 1px solid #73c8e7;
  transform: rotate(45deg);
  margin: 35px auto;
  color: #8ddfff;
  display: grid;
  place-items: center;
  font-size: 41px;
  line-height: 1;
  box-shadow: 0 0 30px #34bde634;
  background: radial-gradient(#24537477, transparent);
}
.close {
  border-radius: 0;
  border-color: #5e8ca2;
  background: #112d3e;
  color: #c0e7f7;
  font-size: 18px;
}
.setting-row {
  border-color: #46718b55;
  padding: 13px 0;
}
.setting-row b {
  font-size: 12px;
  color: #d2e6f3;
  letter-spacing: 1px;
}
.setting-row small {
  font-size: 10px;
  color: #a3bece;
}
.setting-row input[type="text"],
#pilotInput {
  border-radius: 0;
  background: #041321;
  border-color: #618ea5;
}
.setting-row input[type="checkbox"],
.import-option input {
  accent-color: #e5c17a;
  width: 19px;
  height: 19px;
}
.setting-row input[type="range"] {
  accent-color: var(--gold);
}
.settings-buttons button {
  font-size: 10px;
  letter-spacing: 1px;
}
.help-controls > div {
  border-radius: 0;
  background: #062337;
  border-color: #4c7991;
  padding: 18px;
}
.help-controls b {
  color: var(--gold);
}
.help-dialog > h3 {
  color: #dfc68d;
  letter-spacing: 2px;
}
.import-option {
  font-size: 10px;
  color: #b1cddc;
}
.result-dialog {
  width: min(960px, 94vw);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: auto;
  padding: 0;
  border-color: #d2b77b;
}
.result-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background-position: center;
  height: 100%;
  min-height: 430px;
  border-right: 1px solid #6b93a044;
}
.result-cover:before {
  background: linear-gradient(#0622339c, #020c1ddb);
}
.result-cover .eyebrow {
  font-size: 9px;
  color: var(--gold);
  line-height: 1.8;
}
.result-cover h2 {
  font-size: 34px;
  color: #ffe4a6;
  font-style: italic;
  line-height: 1.4;
  text-shadow: 0 0 23px #e3b74f55;
}
.result-cover .medal {
  font-size: 90px;
  color: #f6d68d;
  text-shadow: 0 0 35px #eabd6666;
  line-height: 1.3;
}
.result-stars {
  font-size: 34px;
  color: var(--gold);
  letter-spacing: 9px;
}
.result-body {
  padding: 34px;
}
.result-score-row strong {
  font: italic 52px var(--mono);
  color: #ffe1a0;
  text-shadow: 0 0 16px #fbc96d33;
  display: block;
}
.result-score-row label {
  font-size: 11px;
  color: #c3dce7;
}
.result-stats {
  border-color: #547e8f66;
}
.result-stats b {
  color: var(--gold);
  font-size: 22px;
}
.result-stats span {
  color: #a6c4d5;
  font-size: 10px;
}
.result-details {
  font-size: 11px;
  color: #b8d2e1;
}
.rank-receipt {
  background: #0a293b;
  border: 1px solid #45718a;
  color: #b5e4f6;
  font-size: 10px;
  line-height: 1.8;
  padding: 12px;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.result-actions .text-button {
  justify-content: center;
}
.record-badge {
  border-radius: 0;
  color: #ffe5a3;
  border-color: var(--gold);
  background: #75552855;
  font-size: 10px;
}
.toast {
  border-radius: 0;
  bottom: 25px;
  background: #07283bec;
  color: #d6f4ff;
  border: 1px solid #85b9cd;
  box-shadow: 0 0 25px #0876a855;
  z-index: 100;
  font-size: 12px;
  max-width: calc(100% - 32px);
}
.intro {
  background:
    radial-gradient(ellipse at 50% 46%, #0b4362aa, #000a14ed 65%),
    url("../assets/cosmic-hangar.webp") center/cover;
  z-index: 80;
}
.intro-emblem {
  font-size: 100px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 40px #efd0908c;
  margin: 0 auto 25px;
  animation: emblemIn 1.4s ease-out both;
}
.intro-lockup h1 {
  font-size: clamp(55px, 8vw, 105px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 5px;
  background: linear-gradient(#f2fcff 15%, #79c8ed 45%, #f7ffff 49%, #5597b6);
  color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 4px 0 #274a60) drop-shadow(1px 5px 0 #c9ad74);
}
.intro-lockup > span {
  font-size: 11px;
  letter-spacing: 4px;
  color: #a9d5e8;
}
.intro-lockup p {
  color: #b0d0de;
  letter-spacing: 4px;
  font-size: 12px;
}
.intro-progress {
  background: #153447;
  height: 2px;
  width: 240px;
}
.intro-progress i {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 15px var(--gold);
}
.intro-ring {
  border-color: #88d8f333;
  box-shadow: 0 0 25px #59bfff0d;
}
.intro-ring.r1 {
  border-top-color: #e7c789aa;
}
.intro #skipIntro {
  border-radius: 0;
  border-color: #568ba1;
  background: #031927a6;
  color: #bddfef;
}
.low-fx *,
.low-fx *:before,
.low-fx *:after {
  animation: none !important;
}
.screen:not(.hidden) {
  animation: screenIn 0.35s ease-out;
}
.ui-loading {
  position: fixed;
  inset: 0;
  background: #020b16e8;
  z-index: 60;
  display: grid;
  place-items: center;
  color: #dcefff;
  font-size: 20px;
  letter-spacing: 4px;
}
.ui-loading:before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid #7ae7ff;
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.ui-loading span {
  margin-top: 180px;
  font-size: 12px;
}
.low-fx .ui-loading:before {
  animation: spin 1s linear infinite !important;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes orbFloat {
  50% {
    transform: translateY(-9px);
  }
}
@keyframes screenIn {
  from {
    opacity: 0.4;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes emblemIn {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-70deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1700px) {
  .home-center {
    padding-bottom: 30px;
  }
  .main-menu {
    max-width: 430px;
  }
  .main-menu button {
    height: 59px;
  }
  .main-menu .menu-main {
    height: 90px;
  }
  .home-intel {
    max-width: 390px;
  }
  .home-composition {
    min-height: calc(100svh - 245px);
  }
  .cover-wrap {
    height: 140px;
  }
  .cover-wrap img {
    height: 140px;
    width: 140px;
  }
  .cover-wrap:after {
    width: 168px;
    height: 38px;
  }
}
@media (max-width: 1200px) {
  .header {
    gap: 25px;
    height: 80px;
  }
  .header nav {
    gap: 15px;
  }
  .nav-link {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .pilot-status {
    display: none;
  }
  .home-composition {
    grid-template-columns: 26% 43% 1fr;
    gap: 3%;
    min-height: calc(100svh - 211px);
  }
  .home-intel .hud-panel {
    padding: 15px;
  }
  .home-discovery img {
    width: 50px;
    height: 62px;
  }
  .home-scene-caption {
    padding-left: 0;
  }
  .home-scene-caption b {
    font-size: 18px;
    letter-spacing: 3px;
  }
  .home-scene-caption > span {
    font-size: 7px;
  }
  .home-scene-caption > div {
    display: none;
  }
  .hero-motto {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .game-logo h1 {
    font-size: 68px;
  }
  .main-menu button {
    height: 46px;
    font-size: 16px;
  }
  .main-menu .menu-main {
    height: 67px;
    font-size: 24px;
  }
  .library-layout {
    gap: 20px;
    grid-template-columns: 1.25fr 1fr;
  }
  .skin-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .skin-card .skin-mini {
    width: 80px;
    height: 80px;
  }
  .skin-card {
    min-height: 172px;
  }
  .play-layout {
    gap: 25px;
    grid-template-columns: 210px minmax(270px, 500px) 210px;
  }
  .game-left h1 {
    font-size: 25px;
  }
  .score-panel {
    padding: 15px;
  }
  .run-stats {
    padding: 10px 13px;
  }
  .mission-card {
    padding: 16px;
  }
  .table-column {
    min-width: 260px;
  }
  .boss-dossier {
    padding: 12px;
  }
  .global-footer > span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 950px) {
  .header {
    padding: 0 22px;
    height: 73px;
    gap: 25px;
  }
  .brand {
    min-width: 155px;
  }
  .brand > span:not(.brand-star) {
    font-size: 22px;
  }
  .brand .brand-star {
    font-size: 32px;
  }
  .header nav {
    gap: 11px;
  }
  .header-right {
    gap: 5px;
  }
  .iconbtn {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
  }
  .headerResume {
    display: none;
  }
  .screen {
    padding-left: 24px;
    padding-right: 24px;
  }
  .home-composition {
    grid-template-columns: 31% 57%;
    gap: 8%;
    max-width: 760px;
    min-height: calc(100svh - 210px);
    padding-bottom: 25px;
  }
  .home-scene-caption {
    display: none;
  }
  .space-backdrop {
    background-position: 65% center;
  }
  .home-center {
    padding-top: 10px;
  }
  .home-topline {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .home-intel {
    padding-bottom: 0;
  }
  .hero-kicker {
    font-size: 7px;
    letter-spacing: 3px;
  }
  .main-menu {
    width: 89%;
  }
  .main-menu button {
    height: 49px;
  }
  .game-logo h1 {
    font-size: 66px;
  }
  .home-discovery {
    padding: 12px !important;
  }
  .home-discovery img {
    display: none;
  }
  .home-resume .panel-caption,
  .personal-record .panel-caption {
    font-size: 11px;
  }
  .personal-record strong {
    font-size: 27px;
  }
  .chapter-tabs button {
    padding: 10px 13px;
  }
  .chapter-tabs button b {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .chapter-tabs button span {
    font-size: 8px;
  }
  .map-heading h1 {
    font-size: 26px;
  }
  .library-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 17px;
  }
  .level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px 0;
    gap: 20px 3px;
  }
  .level-card:nth-child(5n + 4),
  .level-card:nth-child(5n + 5) {
    grid-column: auto;
    margin: 0;
  }
  .level-card:last-child {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
  }
  .selection-panel > img {
    height: 128px;
  }
  .selection-content {
    padding: 10px;
  }
  .selection-content h2 {
    font-size: 24px;
  }
  .selection-content > p {
    font-size: 10px;
  }
  .map-caption {
    font-size: 8px;
    gap: 10px;
  }
  .map-caption > span:first-child {
    max-width: 140px;
  }
  .workshop-layout {
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .skin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skin-card .skin-mini {
    width: 92px;
    height: 92px;
  }
  .skin-showcase {
    align-self: start;
    position: sticky;
    top: 20px;
  }
  .skin-orbit-stage {
    height: 235px;
  }
  .skin-orb {
    height: 190px;
    width: 190px;
  }
  .workshop-bar {
    font-size: 12px;
  }
  .workshop-bar > span:last-child {
    display: none;
  }
  .preview-parts {
    gap: 10px;
    flex-wrap: wrap;
  }
  .play-layout {
    display: grid;
    grid-template-columns: 170px minmax(280px, 420px);
    gap: 24px;
    justify-content: center;
  }
  .game-right {
    display: none;
  }
  .game-left {
    display: block;
  }
  .table-column {
    width: min(100%, calc((100svh - 212px) * 0.68293));
    min-width: 280px;
  }
  .mobile-hud {
    display: none;
  }
  .play-heading > span {
    display: none;
  }
  .game-left h1 {
    font-size: 22px;
  }
  .score-panel > strong {
    font-size: 28px;
  }
  .run-stats {
    gap: 9px;
  }
  .run-stats b {
    font-size: 19px;
  }
  .run-stats #lives {
    font-size: 13px;
  }
  .game-left .small-note {
    font-size: 9px;
  }
  .objective-panel {
    padding: 12px;
  }
  .objective {
    font-size: 9px;
  }
  .objective > strong {
    font-size: 9px;
  }
  .rescue {
    font-size: 9px;
    letter-spacing: 1px;
    padding: 8px;
  }
  .rescue kbd {
    display: none;
  }
  .result-body {
    padding: 24px;
  }
  .result-score-row strong {
    font-size: 38px;
  }
}
@media (max-width: 660px) {
  .header {
    padding: 0 16px;
    gap: 8px;
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 0;
  }
  .header .brand {
    min-width: 160px;
  }
  .header nav {
    order: 3;
    height: 38px;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 0;
  }
  .header nav .nav-link {
    padding: 0 7px;
    font-size: 10px;
  }
  .header-right {
    margin-left: 0;
  }
  .header #headerResume {
    display: none !important;
  }
  .screen {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 22px;
  }
  .home-topline {
    padding: 18px 0 10px;
    font-size: 7px;
    letter-spacing: 1px;
  }
  .home-topline > span:last-child {
    display: none;
  }
  .home-composition {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 24px;
    padding-bottom: 0;
  }
  .home-center {
    width: 100%;
    padding: 35px 10px 0;
    order: 0;
  }
  .home-intel {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    order: 1;
    padding-bottom: 0;
    align-self: stretch;
  }
  .home-intel > .eyebrow {
    grid-column: 1/-1;
    font-size: 8px;
  }
  .home-intel .home-discovery {
    display: none;
  }
  .home-intel .hud-panel {
    padding: 14px;
  }
  .home-resume .home-progress-orbit {
    margin: 6px 0;
  }
  .home-progress-orbit span {
    font-size: 25px;
  }
  .home-resume p {
    font-size: 9px;
  }
  .personal-record strong {
    font-size: 26px;
    line-height: 1.4;
  }
  .personal-record > span:last-of-type {
    font-size: 9px;
  }
  .personal-record .text-button {
    font-size: 9px;
  }
  .game-logo {
    max-width: 370px;
    margin: 0 auto;
    padding-top: 14px;
  }
  .game-logo h1 {
    font-size: 72px;
  }
  .game-logo .logo-star {
    font-size: 45px;
    top: -28px;
  }
  .hero-kicker {
    font-size: 7px;
    margin-bottom: 12px;
    letter-spacing: 2.5px;
  }
  .hero-motto {
    margin: 9px 0 23px;
    font-size: 10px;
    letter-spacing: 2px;
    white-space: normal;
  }
  .logo-orbit {
    inset: 11px 0 18px;
  }
  .game-logo small {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .main-menu {
    width: min(310px, 90%);
    gap: 9px;
  }
  .main-menu button {
    height: 43px;
    font-size: 15px;
  }
  .main-menu .menu-main {
    height: 65px;
    font-size: 25px;
    letter-spacing: 5px;
  }
  .menu-signoff {
    margin: 20px 0 0;
    font-size: 9px;
  }
  .space-backdrop {
    background-position: 63% center;
    background-image:
      linear-gradient(#020b1650, #020b16c9), url("../assets/cosmic-hangar.webp");
  }
  .global-footer {
    padding: 18px 16px;
    gap: 15px;
    align-items: flex-end;
  }
  .global-footer > span:first-child {
    font-size: 11px;
  }
  .global-footer > span:last-child {
    font-size: 8px;
    max-width: 175px;
    text-align: right;
    line-height: 1.8;
  }
  .map-heading {
    padding: 23px 0 17px;
  }
  .map-heading h1 {
    font-size: 23px;
    letter-spacing: 2px;
  }
  .map-heading .eyebrow {
    font-size: 8px;
  }
  .map-heading .compact {
    font-size: 8px;
    letter-spacing: 0;
    min-height: 30px;
    padding: 6px 10px;
  }
  .chapter-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .chapter-tabs button {
    padding: 10px 13px;
  }
  .chapter-tabs button b {
    font-size: 14px;
    letter-spacing: 2px;
  }
  .chapter-tabs button small {
    font-size: 7px;
  }
  .library-title {
    flex-wrap: wrap;
    gap: 12px;
  }
  .library-title h2 {
    font-size: 15px;
  }
  .filters button {
    padding: 5px 8px;
    font-size: 9px;
  }
  .library-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .star-map {
    width: 100%;
    min-height: 330px;
  }
  .level-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 17px 0;
    gap: 16px 5px;
  }
  .level-card:nth-child(5n + 4) {
    grid-column: 1 / 2;
    margin-left: 35%;
  }
  .level-card:nth-child(5n + 5) {
    grid-column: 2 / 4;
    margin-right: 20%;
    margin-left: 15%;
    width: auto;
    justify-self: stretch;
  }
  .cover-wrap {
    height: 92px;
  }
  .cover-wrap img {
    height: 92px;
    width: 92px;
  }
  .cover-wrap:after {
    width: 105px;
    height: 26px;
  }
  .card-top {
    left: 6%;
    right: 4%;
    font-size: 7px;
  }
  .card-tag {
    font-size: 6px;
  }
  .card-heading h3 {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .card-body p {
    display: none;
  }
  .card-star {
    font-size: 10px;
    letter-spacing: 3px;
  }
  .map-caption {
    font-size: 8px;
    padding: 8px 0;
  }
  .map-caption > span:first-child {
    max-width: none;
  }
  .selection-panel {
    width: 100%;
    padding: 7px;
  }
  .selection-panel > img {
    height: 160px;
  }
  .selection-content {
    padding: 12px;
  }
  .mechanic-preview {
    font-size: 11px;
  }
  .mechanic-preview > p {
    font-size: 11px;
  }
  .selection-content h2 {
    font-size: 29px;
  }
  .selection-content > p {
    font-size: 11px;
  }
  .segmented button b {
    font-size: 15px;
  }
  .segmented button small {
    font-size: 9px;
  }
  .rule-note {
    font-size: 11px;
  }
  .home-footer {
    gap: 10px;
    flex-direction: column;
    font-size: 9px;
  }
  .section-heading {
    padding: 27px 0 20px;
  }
  .section-heading h1 {
    font-size: 34px;
    letter-spacing: 5px;
  }
  .section-heading p {
    font-size: 10px;
    line-height: 1.9;
    letter-spacing: 0;
  }
  .record-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    margin: 18px 0;
  }
  .record-filters label:first-child {
    grid-column: 1/-1;
  }
  .record-filters label {
    font-size: 9px;
  }
  .record-filters select {
    font-size: 11px;
    padding: 8px;
  }
  .record-filters .secondary {
    grid-column: 1/-1;
    font-size: 11px;
    min-height: 37px;
  }
  .podium {
    gap: 8px;
  }
  .podium-card {
    padding: 14px 10px;
  }
  .podium-card strong {
    font-size: 20px;
  }
  .podium-card h3 {
    font-size: 10px;
    letter-spacing: 0;
  }
  .podium-card small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .podium-card p {
    font-size: 8px;
    line-height: 1.8;
  }
  .podium-rank {
    font-size: 40px;
    right: 5px;
  }
  .record-table {
    min-width: 610px;
  }
  .record-table th {
    font-size: 10px;
  }
  .record-table td {
    font-size: 11px;
  }
  .records-foot {
    flex-direction: column;
    font-size: 9px;
    gap: 6px;
  }
  .records-actions {
    gap: 10px;
    flex-wrap: wrap;
  }
  .records-actions button {
    flex: 1;
    min-width: 140px;
    font-size: 10px;
  }
  .workshop-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    margin-top: 15px;
  }
  .workshop-inventory {
    padding: 15px;
  }
  .workshop-bar {
    font-size: 13px;
  }
  .workshop-bar > span:last-child {
    display: block;
    font-size: 8px;
  }
  .skin-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    padding-top: 15px;
  }
  .skin-card {
    min-height: 132px;
    padding: 8px 3px;
  }
  .skin-card .skin-mini {
    width: 70px;
    height: 70px;
    margin-bottom: 4px;
  }
  .skin-card h3 {
    font-size: 10px;
    letter-spacing: 0;
  }
  .skin-card p {
    display: none;
  }
  .skin-card > span {
    font-size: 7px;
    display: block;
    margin-top: 8px;
    letter-spacing: 0;
  }
  .skin-card.active:after {
    font-size: 12px;
    right: 6px;
    top: 5px;
  }
  .skin-showcase {
    position: static;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    text-align: left;
    padding: 5px 12px 15px;
    gap: 0 12px;
  }
  .skin-orbit-stage {
    height: 170px;
  }
  .skin-orb {
    width: 130px;
    height: 130px;
  }
  .skin-showcase .eyebrow {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .skin-showcase h2 {
    font-size: 24px;
    letter-spacing: 2px;
  }
  .skin-showcase p {
    font-size: 9px;
    letter-spacing: 0;
  }
  .skin-showcase .primary {
    min-width: 0;
    width: 100%;
    height: 38px;
    min-height: 38px;
    font-size: 14px;
    margin-top: 10px;
  }
  .skin-showcase .text-button {
    font-size: 9px;
    letter-spacing: 0;
  }
  .preview-parts {
    grid-column: 1/-1;
    font-size: 9px;
    padding-top: 12px;
    gap: 20px;
  }
  .play-heading {
    height: 46px;
  }
  .play-heading .text-button {
    font-size: 9px;
  }
  .play-heading .compact {
    font-size: 9px;
    padding: 6px 12px;
    min-height: 31px;
  }
  .play-layout {
    display: block;
  }
  .game-left,
  .game-right {
    display: none;
  }
  .table-column {
    width: min(100%, calc((100svh - 265px) * 0.68293));
    min-width: 260px;
    max-width: 440px;
  }
  .mobile-hud {
    display: flex;
    padding: 0 0 10px;
    gap: 12px;
    align-items: center;
    margin: 0;
    min-height: 62px;
  }
  .mobile-hud strong {
    font: italic 27px var(--mono);
    color: #acf0ff;
    line-height: 1.2;
  }
  .mobile-hud span {
    font-size: 9px;
    color: var(--gold);
  }
  .mobile-hud small {
    font-size: 8px;
    color: #a5cada;
    letter-spacing: 0;
  }
  .mobile-right {
    margin-left: auto;
    text-align: right;
  }
  .mobile-right b {
    font-size: 12px;
    color: #a3e6ff;
  }
  .mobile-right button {
    border-radius: 0;
    padding: 5px 9px;
    font-size: 9px;
    background: #123749;
    border: 1px solid #679fb7;
    color: #d1f1ff;
    margin-top: 4px;
  }
  .table-topbar {
    display: none;
  }
  .board-frame {
    border-radius: 15px;
    box-shadow:
      0 0 0 3px #122637,
      0 0 0 4px #83b2c766,
      0 0 0 6px #07121e,
      0 8px 30px #0008;
  }
  .controls {
    gap: 7px;
  }
  .control {
    height: 40px;
    min-height: 40px;
    font-size: 9px;
  }
  .control kbd {
    display: none;
  }
  .table-footer {
    font-size: 7px;
    margin-top: 6px;
  }
  .board-status strong {
    font-size: 13px;
    letter-spacing: 2px;
  }
  .board-status span {
    font-size: 8px;
  }
  .boss-banner {
    margin: 0 0 8px;
    padding: 7px 9px;
  }
  .boss-banner b {
    font-size: 12px;
  }
  .boss-banner > small {
    font-size: 7px;
    letter-spacing: 0;
  }
  .boss-health {
    height: 11px;
    margin-top: 5px;
  }
  .boss-health > span {
    font-size: 7px;
  }
  .boss-banner #bossPhase {
    font-size: 7px;
  }
  body.boss-fight .table-column {
    width: min(100%, calc((100svh - 330px) * 0.68293));
    min-width: 250px;
  }
  .dialog {
    padding: 22px;
    max-height: 90svh;
  }
  .dialog.narrow {
    padding: 25px;
    width: 100%;
  }
  .dialog h2 {
    font-size: 25px;
  }
  .dialog p {
    font-size: 11px;
  }
  .modal {
    padding: 18px;
  }
  .pause-symbol {
    height: 60px;
    width: 60px;
    font-size: 30px;
    margin: 26px auto;
  }
  .setting-row {
    gap: 14px;
  }
  .setting-row b {
    font-size: 11px;
  }
  .setting-row small {
    font-size: 9px;
  }
  .setting-row input[type="text"],
  #pilotInput {
    width: 120px;
  }
  .setting-row input[type="range"] {
    width: 110px;
  }
  .help-controls {
    gap: 10px;
  }
  .help-controls > div {
    padding: 13px;
  }
  .help-controls b {
    font-size: 11px;
  }
  .help-controls kbd {
    font-size: 8px;
  }
  .help-controls p {
    font-size: 10px;
  }
  .result-dialog {
    display: block;
    width: 100%;
    padding: 0;
  }
  .result-cover {
    min-height: 0;
    height: auto;
    padding: 22px;
    background-position: center;
    border-right: 0;
    border-bottom: 1px solid #927943;
  }
  .result-cover .medal {
    font-size: 46px;
    line-height: 1.2;
  }
  .result-cover h2 {
    font-size: 26px;
    margin: 9px 0;
  }
  .result-stars {
    font-size: 23px;
    line-height: 1.3;
  }
  .result-body {
    padding: 22px;
  }
  .result-score-row strong {
    font-size: 42px;
  }
  .result-stats b {
    font-size: 20px;
  }
  .intro-lockup h1 {
    font-size: 60px;
    letter-spacing: 1px;
  }
  .intro-emblem {
    font-size: 80px;
  }
  .intro-lockup > span {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .intro-lockup p {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .intro-ring {
    max-width: 92vw;
  }
  .toast {
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
  }
}
@media (max-height: 750px) and (min-width: 951px) {
  .home-topline {
    padding: 17px 0;
  }
  .home-composition {
    min-height: calc(100svh - 195px);
    padding-bottom: 15px;
  }
  .home-intel {
    gap: 10px;
    padding-bottom: 0;
  }
  .home-intel .hud-panel {
    padding: 13px 17px;
  }
  .home-progress-orbit {
    margin: 6px 0;
  }
  .personal-record strong {
    font-size: 28px;
  }
  .home-resume p {
    margin: 5px 0 0;
  }
  .game-logo h1 {
    font-size: 66px;
  }
  .game-logo {
    padding-top: 13px;
  }
  .game-logo .logo-star {
    font-size: 44px;
    top: -23px;
  }
  .hero-motto {
    margin-bottom: 15px;
  }
  .main-menu {
    gap: 9px;
  }
  .main-menu button {
    height: 42px;
    font-size: 15px;
  }
  .main-menu .menu-main {
    height: 62px;
    font-size: 23px;
  }
  .menu-signoff {
    margin-top: 17px;
  }
  .global-footer {
    padding-top: 12px;
    padding-bottom: 14px;
  }
  .play-layout {
    gap: 28px;
  }
  .game-left,
  .game-right {
    padding-top: 10px;
  }
  .game-left h1 {
    font-size: 23px;
  }
  .score-panel {
    margin-top: 12px;
    padding: 12px 16px;
  }
  .score-panel > strong {
    font-size: 30px;
  }
  .objective-panel {
    padding: 12px;
    margin-top: 10px;
  }
  .objective-panel h3 {
    margin-bottom: 12px;
  }
  .objective {
    margin-bottom: 11px;
  }
  .run-stats {
    margin-top: 8px;
    padding: 7px 12px;
  }
  .run-stats b {
    font-size: 19px;
  }
  .rescue {
    margin-top: 10px;
    height: 40px;
    min-height: 40px;
  }
  .game-left > .small-note {
    font-size: 9px;
  }
  .table-column {
    min-width: 250px;
  }
  .boss-dossier img {
    width: 60px;
    height: 60px;
  }
  .boss-dossier ol {
    margin: 8px 0;
  }
  .boss-dossier li {
    padding: 4px 6px;
  }
  .boss-dossier p {
    font-size: 9px;
  }
  .mission-card p {
    font-size: 10px;
    line-height: 1.8;
  }
  .controls-guide > div {
    margin: 9px 0;
  }
  .boss-fight .game-left > .run-stats {
    padding: 6px 12px;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  .header {
    height: 57px;
    min-height: 57px;
    flex-wrap: nowrap;
    padding: 0 18px;
  }
  .header nav {
    order: 0;
    height: 57px;
    flex-basis: auto;
    gap: 12px;
  }
  .brand {
    min-width: 145px;
  }
  .brand > span:not(.brand-star) {
    font-size: 20px;
  }
  .brand small {
    font-size: 5px;
  }
  .header-right .iconbtn {
    height: 28px;
    min-width: 28px;
  }
  .home-composition {
    padding: 20px 0;
    min-height: 0;
  }
  .home-intel {
    display: none;
  }
  .home-composition {
    display: flex;
    align-items: flex-start;
  }
  .home-center {
    max-width: 400px;
  }
  .home-topline {
    padding: 12px 0;
  }
  .main-menu button {
    height: 38px;
  }
  .game-logo h1 {
    font-size: 55px;
  }
  .game-logo .logo-star {
    font-size: 35px;
    top: -14px;
  }
  .game-logo small {
    margin-top: 15px;
  }
  .hero-motto {
    margin-bottom: 15px;
  }
  .hero-kicker {
    font-size: 7px;
  }
  .main-menu .menu-main {
    height: 57px;
  }
  .global-footer {
    padding: 12px 20px;
  }
  .play-heading {
    height: 38px;
  }
  .play-layout {
    display: block;
  }
  .game-left,
  .game-right {
    display: none;
  }
  .table-column {
    min-width: 160px;
    width: calc((100svh - 166px) * 0.68293);
    max-width: 270px;
  }
  .mobile-hud {
    display: flex;
    position: absolute;
    left: 24px;
    top: 125px;
    width: 200px;
    max-width: calc(50% - 145px);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .mobile-right {
    margin-left: 0;
    text-align: left;
  }
  .table-topbar {
    display: none;
  }
  .table-footer {
    display: none;
  }
  .control {
    height: 31px;
    min-height: 31px;
    font-size: 7px;
  }
  .control kbd {
    display: none;
  }
  .board-status strong {
    font-size: 10px;
  }
  .board-status span {
    font-size: 6px;
  }
  .boss-banner {
    position: absolute;
    right: 20px;
    top: 130px;
    width: calc(50% - 160px);
    margin: 0;
  }
  .boss-banner b {
    font-size: 11px;
  }
  .boss-banner > div:first-child {
    display: block;
  }
  .boss-banner #bossPhase {
    display: block;
    font-size: 8px;
  }
  body.boss-fight .table-column {
    min-width: 160px;
    width: calc((100svh - 166px) * 0.68293);
  }
  .play-screen {
    padding-bottom: 10px;
  }
}
.main-menu .menu-main {
  flex-wrap: nowrap;
  padding-bottom: 20px;
}
.menu-main > small {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
}
.expanded-map .level-card:nth-child(n) {
  grid-column: auto;
  margin: 0;
  justify-self: stretch;
  width: auto;
}
.expanded-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.skin-mini,
.skin-orb {
  mask-image: radial-gradient(ellipse, #000 55%, #000b 65%, transparent 73%);
}
.legacy {
  border-radius: 0;
  background: #051826ce;
  color: #b4d6e7;
}
.legacy p {
  font-size: 11px;
}
.legacy summary {
  color: var(--gold);
  letter-spacing: 1px;
}
.legacy .record-table-wrap {
  margin-top: 12px;
  max-height: 300px;
  overflow: auto;
}
.home-screen .home-intel .hud-panel {
  clip-path: var(--cut);
}
@media (max-height: 810px) and (min-width: 951px) {
  .header {
    height: 72px;
  }
  .map-heading {
    padding: 12px 0 10px;
  }
  .map-heading h1 {
    font-size: 25px;
    margin: 3px 0;
  }
  .map-heading .eyebrow {
    font-size: 8px;
  }
  .chapter-tabs {
    gap: 10px;
    margin-bottom: 10px;
  }
  .chapter-tabs button {
    padding: 9px 17px;
  }
  .chapter-tabs button b {
    font-size: 14px;
    margin-top: 1px;
  }
  .chapter-tabs button small {
    font-size: 7px;
  }
  .library-title {
    margin-bottom: 8px;
  }
  .library-title h2 {
    font-size: 14px;
  }
  .star-map {
    min-height: 424px;
  }
  .selection-panel > img {
    height: 92px;
  }
  .selection-content {
    padding: 8px 12px 10px;
  }
  .selection-content h2 {
    font-size: 23px;
    margin: 3px 0;
  }
  .selection-content > p {
    font-size: 9px;
    margin-bottom: 7px;
  }
  .mechanic-preview {
    margin-bottom: 7px;
    padding-bottom: 7px;
    font-size: 9px;
  }
  .mechanic-preview > p {
    font-size: 9px;
    line-height: 1.6;
    margin-top: 4px;
  }
  .field-label {
    font-size: 10px;
    margin: 6px 0 4px;
  }
  .segmented button {
    padding: 7px 4px;
  }
  .segmented button b {
    font-size: 12px;
  }
  .segmented button small {
    font-size: 7px;
    margin-top: 2px;
  }
  .difficulty-select button {
    padding: 5px 3px;
    font-size: 10px;
  }
  .selection-content .config-line {
    font-size: 8px;
    margin: 6px 0;
  }
  .rule-note {
    padding: 7px;
    font-size: 9px;
    line-height: 1.6;
  }
  .start-button {
    height: 43px;
    min-height: 43px;
    font-size: 15px;
    margin-top: 9px;
  }
  .selection-foot {
    font-size: 8px;
    margin-top: 7px;
  }
  .selection-foot button {
    font-size: 8px;
  }
  .home-footer {
    margin-top: 5px;
    padding-top: 8px;
  }
  .map-screen {
    padding-bottom: 10px;
  }
  .play-heading {
    height: 43px;
  }
  .table-column {
    width: min(100%, calc((100svh - 198px) * 0.68293));
    min-width: 250px;
  }
  .game-left,
  .game-right {
    padding-top: 12px;
  }
  .game-left h1 {
    font-size: 23px;
  }
  .run-badge {
    font-size: 10px;
  }
  .score-panel {
    padding: 12px 15px;
    margin-top: 12px;
  }
  .score-panel > strong {
    font-size: 31px;
  }
  .objective-panel {
    padding: 12px;
    margin-top: 10px;
  }
  .objective-panel h3 {
    margin: 0 0 10px;
    font-size: 10px;
  }
  .objective {
    margin-bottom: 10px;
  }
  .objective-panel .small-note {
    font-size: 8px;
    margin-bottom: 0;
  }
  .run-stats {
    padding: 7px 12px;
    margin-top: 9px;
  }
  .run-stats b {
    font-size: 20px;
  }
  .run-stats #lives {
    font-size: 15px;
  }
  .rescue {
    min-height: 39px;
    height: 39px;
    margin-top: 10px;
  }
  .game-left > .small-note {
    font-size: 8px;
    margin-top: 8px;
  }
  .table-footer {
    font-size: 7px;
  }
  .controls .control {
    height: 37px;
    min-height: 37px;
  }
  body.boss-fight .table-column {
    width: min(100%, calc((100svh - 278px) * 0.68293));
    min-width: 250px;
  }
  .home-composition {
    min-height: calc(100svh - 195px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .intro-progress i {
    width: 100%;
  }
}

body:not([data-screen="home"]) .space-backdrop {
  background-image:
    linear-gradient(90deg, #020d19a8, #020b1580), url(../assets/deep-space.webp?v=track-hd-power);
  filter: brightness(0.8) saturate(0.85);
}
body[data-screen="play"] .space-backdrop {
  background-image:
    linear-gradient(90deg, #020d19db, #020b15ab), var(--sector-art);
  filter: brightness(0.8) saturate(0.7);
}
.mobile-hud > div span,
.mobile-hud > div strong {
  display: block;
}

@media (min-width: 951px), (max-width: 660px) {
  .level-grid:not(.expanded-map) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .level-grid:not(.expanded-map) .level-card {
    grid-column: span 2;
    margin: 0;
    width: auto;
    justify-self: stretch;
  }
  .level-grid:not(.expanded-map) .level-card:nth-child(5n + 4) {
    grid-column: 2 / 4;
  }
  .level-grid:not(.expanded-map) .level-card:nth-child(5n + 5) {
    grid-column: 4 / 6;
  }
  .card-top {
    left: 0;
    right: 0;
    white-space: nowrap;
    gap: 2px;
  }
}

@media (min-width: 951px) {
  body.boss-fight .table-column {
    width: min(100%, calc((100svh - 365px) * 0.68293));
    min-width: 225px;
  }
  .game-right,
  .game-left {
    max-height: calc(100svh - 142px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #395d70 transparent;
  }
}
@media (max-height: 810px) and (min-width: 951px) {
  body.boss-fight .table-column {
    width: min(100%, calc((100svh - 322px) * 0.68293));
    min-width: 220px;
  }
  .boss-banner {
    margin-bottom: 10px;
    padding: 7px 10px;
  }
  .boss-banner b {
    font-size: 12px;
  }
  .boss-banner #bossPhase {
    font-size: 7px;
  }
  .boss-banner > small {
    font-size: 7px;
    letter-spacing: 0;
  }
  .boss-dossier p {
    line-height: 1.6;
  }
  .game-right > .pressure-card > p {
    display: none;
  }
}

@media (max-height: 810px) and (min-width: 951px) {
  .selection-panel > img {
    height: 70px;
  }
  .selection-content > #selectedDesc {
    display: none;
  }
  .mechanic-preview {
    margin: 4px 0;
    padding: 0 0 5px;
  }
  .mechanic-preview > p {
    display: none;
  }
  .selection-content .field-label {
    margin: 5px 0 3px;
  }
  .segmented button {
    min-height: 40px;
    padding: 5px 3px;
  }
  .segmented button small {
    margin-top: 0;
  }
  .selection-content .rule-note {
    padding: 5px 7px;
  }
  .theme-caption {
    font-size: 8px;
    margin-top: 5px;
  }
  .level-grid {
    padding: 18px 10px;
  }
  .star-map {
    min-height: 380px;
  }
  .map-caption {
    padding: 8px 5px;
  }
}

@media (max-width: 660px) {
  .skin-showcase #themeSkinBtn {
    min-width: 0;
    width: 100%;
    font-size: 9px;
    padding: 8px 3px;
    letter-spacing: 0;
  }
  .skin-showcase > div {
    min-width: 0;
  }
  .skin-showcase .primary {
    letter-spacing: 1px;
    font-size: 12px;
  }
}

@media (max-width: 660px) {
  .skin-showcase {
    width: 100%;
    grid-template-columns: 40% minmax(0, 1fr);
  }
}
