@font-face {
  font-family: gal;
  src: url(assets/Galmuri11-Bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #222733;
  --muted: #606875;
  --lime: #c2f76b;
  --line: #d4d7d4;
  --lav: #eeeafd;
  --pixel: gal, monospace;
  --body:
    Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: #f6f7f3;
  background-image: radial-gradient(#d9ddd6 0.8px, transparent 0.85px);
  background-size: 8px 8px;
  color: var(--ink);
  font-family: var(--body);
  word-break: keep-all;
}
button,
a {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #7855c7;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
header {
  background: #fff;
  border-bottom: 1px solid #cdd0ca;
}
.bar,
main {
  max-width: 1216px;
  margin: auto;
  padding-left: 40px;
  padding-right: 40px;
}
.bar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 50px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font: 700 22px var(--pixel);
  letter-spacing: -1px;
}
.brand-mark {
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 7px;
  width: 37px;
  height: 35px;
  display: grid;
  place-items: center;
  box-shadow: 2px 2px 0 var(--ink);
}
svg {
  display: block;
  width: 20px;
  height: 20px;
}
i {
  display: inline-flex;
  font-style: normal;
}
nav {
  display: flex;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 720;
  color: #646972;
  border-radius: 6px;
}
nav a.active {
  background: #eeeafa;
  color: #45326a;
}
nav svg {
  width: 17px;
  height: 17px;
}
.head-end {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
}
.sound,
.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.grade {
  border-left: 1px solid var(--line);
  padding-left: 17px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.title-row,
.section-head,
.panel-title,
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
main {
  padding-top: 29px;
  padding-bottom: 28px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font: 700 29px/1.45 var(--pixel);
  letter-spacing: -1.8px;
}
.title-row {
  margin-bottom: 17px;
}
.status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #506259;
  font-weight: 650;
}
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #52aa78;
  border-radius: 50%;
}
.hero {
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 4px 0 #292d3b;
  overflow: hidden;
  background: #171b33;
  color: #fff;
}
.hero-main {
  position: relative;
  isolation: isolate;
  padding: 30px 34px 28px;
  min-height: 279px;
  display: flex;
  align-items: center;
}
.hero-main:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url(assets/orbit-scene.png) center center/100% 100% no-repeat;
  image-rendering: pixelated;
}
.hero-main:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #14192cb0 0%,
    #14192c88 31%,
    transparent 55%
  );
}
.eyebrow,
.tag {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border-radius: 4px;
  font-weight: 750;
  font-size: 12px;
}
.eyebrow {
  color: #d8f7a4;
  background: #35423f;
  border: 1px solid #707e63;
  padding: 4px 9px;
}
.eyebrow svg {
  width: 14px;
  height: 14px;
}
.hero h2 {
  font: 700 clamp(36px, 4.1vw, 60px)/1.35 var(--pixel);
  letter-spacing: -3px;
  margin: 6px 0 1px;
  text-shadow: 3px 4px 0 #45415f;
}
.orbit-en {
  font: 700 14px/1.5 var(--pixel);
  letter-spacing: 4px;
  color: #b7a8eb;
}
.hero p {
  margin: 12px 0 18px;
  font-size: 15px;
  color: #e2e2ed;
  line-height: 1.6;
}
.btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  border: 1.5px solid #292d38;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 9px 16px;
  background: white;
  font-size: 14px;
  font-weight: 760;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--lime);
  color: #202c26;
  box-shadow: 2px 2px 0 #202a33;
}
.primary:hover {
  background: #d2ff93;
  transform: translateY(-1px);
}
.ghost {
  background: #252940d9;
  color: #f3f3fa;
  border-color: #818399;
}
.hero-meta {
  background: #202339;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid #45485e;
  padding: 11px 32px;
  color: #d4d4e2;
  font-size: 12px;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-meta svg {
  width: 15px;
  height: 15px;
  color: #b8b2c8;
}
.hero-meta b {
  font-weight: 550;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(280px, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.section-head {
  margin-bottom: 13px;
}
.section-head h2,
.panel-title h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 20px/1.4 var(--pixel);
  letter-spacing: -1px;
}
.section-head svg,
.panel-title svg {
  width: 19px;
  height: 19px;
}
.count {
  font-size: 13px;
  color: #656d75;
}
.missions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mission {
  background: #fff;
  text-align: left;
  border: 1px solid #cbd0ce;
  border-radius: 9px;
  padding: 15px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-height: 91px;
}
.mission.rec {
  border: 1.5px solid #7a9766;
  background: #f9fff2;
}
.mission:hover {
  border-color: #535c66;
  box-shadow: 2px 2px 0 #c8cdc4;
}
.thumb {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background-color: #22283d;
  background-image:
    radial-gradient(#94969b 0.65px, transparent 1px),
    radial-gradient(#c6c6aa 0.6px, transparent 1px);
  background-size:
    17px 13px,
    22px 25px;
  background-position:
    2px 3px,
    8px 1px;
}
.thumb img {
  width: 57px;
  height: 57px;
  image-rendering: pixelated;
}
.mission:nth-child(2) .thumb {
  background-color: #302943;
}
.mission:nth-child(3) .thumb {
  background-color: #392a36;
}
.mission:nth-child(4) .thumb {
  background-color: #222e40;
}
.mission:nth-child(5) .thumb {
  background-color: #38303c;
}
.mission:nth-child(6) .thumb {
  background-color: #35283a;
}
.mission-content {
  min-width: 0;
}
.mission small,
.mono {
  font: 700 11px/1.4 var(--pixel);
  letter-spacing: 1px;
  color: #606679;
}
.mission strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.65px;
  margin-top: 3px;
}
.mission .chev {
  margin-left: auto;
  color: #737782;
  width: 15px;
}
.recommend {
  font-size: 10px;
  color: #49682b;
  border-radius: 3px;
  background: #e4f4c9;
  padding: 2px 5px;
  margin-left: 5px;
  vertical-align: 2px;
  font-weight: 750;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 20px;
}
.coach {
  background: #efedfb;
  border-color: #d5cde7;
}
.coach .panel-title h2 {
  font-size: 17px;
}
.coach-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bot {
  width: 41px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #d8d0f1;
  border-radius: 8px;
  border: 1px solid #bfb4df;
}
.bot svg {
  width: 30px;
  height: 30px;
}
.coach p {
  font-size: 14px;
  line-height: 1.65;
  margin: 13px 0 0;
  color: #454451;
}
.aside-stack {
  display: grid;
  align-content: start;
  gap: 13px;
}
.panel-title h2 {
  font-size: 16px;
}
.panel-title a {
  font-size: 12px;
  font-weight: 650;
  color: #57606a;
}
.stats {
  margin-top: 15px;
  display: flex;
  justify-content: space-around;
}
.stat {
  text-align: center;
  flex: 1;
}
.stat + .stat {
  border-left: 1px solid #e0e2de;
}
.stat b {
  font: 700 21px/1.2 var(--pixel);
}
.stat span {
  display: block;
  font-size: 12px;
  color: #657074;
  margin-top: 6px;
}
.foot {
  color: #747a79;
  font-size: 12px;
  margin-top: 23px;
  border-top: 1px solid #d5d9d4;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.foot svg {
  width: 14px;
  height: 14px;
}
.tag {
  padding: 4px 8px;
  background: #e9e5fa;
  color: #4d4177;
}
.sub {
  color: #606775;
  font-size: 15px;
  line-height: 1.65;
  margin: 6px 0 17px;
}
.stack {
  display: grid;
  gap: 12px;
}
.info {
  line-height: 1.7;
}
.info h3 {
  font-size: 17px;
  margin-bottom: 3px;
}
.info p,
.info li {
  font-size: 15px;
}
.info ul,
.info ol {
  padding-left: 21px;
  margin: 8px 0;
}
.info a {
  text-decoration: underline;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e1e3df;
}
.review {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.6;
}
.review summary {
  cursor: pointer;
}
.review p {
  padding: 7px 0;
  color: #555c67;
}
.empty {
  padding: 20px 0;
  color: #5b6570;
}
.fullpanel {
  max-width: 840px;
  margin: auto;
}
.gamebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.gamebar h1 {
  font-size: 23px;
}
.arena {
  position: relative;
  border: 2px solid var(--ink);
  background: #191d34;
  border-radius: 10px;
  overflow: hidden;
}
.arena canvas {
  width: 100%;
  aspect-ratio: 2/1;
  display: block;
  image-rendering: pixelated;
  touch-action: none;
}
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ecebf5;
  background: #262b45;
  gap: 8px;
  padding: 10px 15px;
  font-size: 13px;
}
.flight-controls {
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dpad {
  display: flex;
  gap: 7px;
}
.dpad button {
  touch-action: none;
  min-width: 43px;
}
.pad-help {
  font-size: 14px;
  color: #5c626c;
}
.question h2 {
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.55;
  margin: 18px 0;
}
.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 15px 0;
}
.option {
  background: #f8f8f6;
  border: 1.5px solid #9299a5;
  border-radius: 7px;
  font-size: 20px;
  font-weight: bold;
  padding: 14px 6px;
}
.option:hover {
  background: #eeeafa;
}
.option.correct {
  background: #e0f4c7;
  border-color: #628d43;
}
.option.wrong {
  background: #fae2d9;
  border-color: #b56850;
}
.feedback {
  background: #eeedf9;
  padding: 13px 15px;
  margin: 12px 0;
  border-radius: 7px;
  font-size: 15px;
  line-height: 1.65;
}
.feedback strong {
  display: block;
}
.result h2 {
  font: 700 26px var(--pixel);
  margin: 12px 0;
}
.result .stats {
  margin: 20px 0;
}
.result p {
  line-height: 1.65;
}
.result .btns {
  margin-top: 20px;
}
dialog {
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 12px;
  width: min(440px, 92vw);
  box-shadow: 5px 5px 0 #252a3b;
  max-height: 85vh;
}
dialog::backdrop {
  background: #13192faa;
}
#modal {
  padding: 23px;
}
#modal h2 {
  font: 700 21px var(--pixel);
  margin: 12px 0;
}
#modal p {
  line-height: 1.65;
  margin: 10px 0 16px;
}
.keys {
  font: 700 13px var(--pixel);
}
.warn {
  color: #873f24;
}
.screen-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.screen-title svg {
  width: 23px;
  height: 23px;
}
@media (min-width: 1450px) {
  main {
    padding-top: 37px;
  }
  .hero-main {
    min-height: 315px;
  }
  .mission {
    min-height: 100px;
  }
}
@media (max-width: 900px) {
  .bar,
  main {
    padding-left: 22px;
    padding-right: 22px;
  }
  .bar {
    gap: 15px;
  }
  .bar nav a {
    padding: 9px;
  }
  .layout {
    gap: 16px;
    grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr);
  }
  .mission {
    gap: 8px;
    padding: 11px 8px;
  }
  .thumb {
    width: 44px;
    height: 48px;
  }
  .thumb img {
    width: 46px;
    height: 46px;
  }
  .mission strong {
    font-size: 15px;
  }
  .chev {
    display: none;
  }
  .panel {
    padding: 16px;
  }
  .hero-main {
    min-height: 254px;
  }
}
@media (max-width: 700px) {
  .bar,
  main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .bar {
    height: auto;
    min-height: 91px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 9px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 29px;
    height: 28px;
  }
  .head-end {
    order: 1;
    gap: 9px;
  }
  .grade {
    font-size: 12px;
    padding-left: 10px;
  }
  .sound {
    width: 30px;
    height: 30px;
  }
  nav {
    order: 2;
    width: 100%;
    margin: 6px 0;
    justify-content: space-between;
  }
  nav a {
    font-size: 13px;
    justify-content: center;
    flex: 1;
    gap: 5px;
  }
  .layout {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .aside-stack {
    grid-template-columns: 1fr 1fr;
  }
  .hero-main {
    min-height: 258px;
    padding: 21px;
  }
  .hero-main:before {
    background-size: auto 100%;
    background-position: 65% center;
  }
  .hero-main:after {
    background: linear-gradient(
      90deg,
      #171c32e8 0%,
      #171c32b5 40%,
      transparent 75%
    );
  }
  .hero h2 {
    font-size: 40px;
  }
  .hero p {
    max-width: 260px;
    text-wrap: balance;
    font-size: 14px;
  }
  .hero-meta {
    padding: 10px 15px;
    gap: 15px;
  }
  .hero-meta span:last-child {
    margin-left: auto;
  }
  .hero-meta b {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  main {
    padding-top: 17px;
  }
  .title-row {
    margin-bottom: 12px;
  }
  .section-head h2 {
    font-size: 18px;
  }
  .mission {
    min-height: 78px;
  }
  .section-head {
    margin-bottom: 10px;
  }
  .panel-title h2 {
    font-size: 15px;
  }
  .pad-help {
    display: none;
  }
  .hud {
    font-size: 12px;
  }
  .arena canvas {
    aspect-ratio: 1.4/1;
  }
  .foot {
    gap: 12px;
  }
  .thumb {
    width: 42px;
    height: 44px;
  }
  .recommend {
    margin-left: 2px;
  }
}
@media (max-width: 490px) {
  .hero-main:before {
    background-position: 64% center;
  }
  .hero-main:after {
    background: linear-gradient(90deg, #171c32f5, #171c32c2 48%, #171c3210 87%);
  }
  .hero-main {
    padding: 19px 15px;
    min-height: 244px;
  }
  .hero h2 {
    font-size: 36px;
  }
  .hero p {
    max-width: 205px;
  }
  .missions {
    gap: 8px;
  }
  .mission {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    min-height: 100px;
  }
  .mission .thumb {
    width: 38px;
    height: 38px;
  }
  .mission .thumb img {
    width: 38px;
    height: 38px;
  }
  .mission small {
    font-size: 10px;
  }
  .mission strong {
    font-size: 16px;
  }
  .mission .chev {
    display: block;
    position: absolute;
    right: 8px;
    top: 20px;
  }
  .aside-stack {
    grid-template-columns: 1fr;
  }
  .status {
    font-size: 11px;
  }
  .hero-meta {
    gap: 10px;
    font-size: 11px;
  }
  .hero-meta span {
    gap: 4px;
  }
  .foot {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .gamebar h1 {
    font-size: 18px;
  }
  .btn {
    padding: 9px 12px;
  }
  .hero-meta svg {
    width: 13px;
  }
  .panel {
    padding: 15px;
  }
  .hud {
    padding: 9px;
  }
  .hero .btn {
    font-size: 13px;
  }
  .flight-controls .btn {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.hud .icon-btn {
  color: #292f42;
}
.arena:fullscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.arena:fullscreen .hud {
  width: 100%;
}
.arena:fullscreen canvas {
  width: min(100%, calc((100dvh - 58px) * var(--arena-ratio)));
  height: auto;
}
.hint-model {
  margin: 12px 0 0;
}
.strip {
  display: flex;
  max-width: 340px;
  gap: 1px;
  border: 1px solid #6b637d;
  background: #afa8bc;
}
.strip i {
  flex: 1;
  height: 25px;
  background: white;
}
.strip i.filled {
  background: #b2d894;
}
.strip i.group-start:not(:first-child) {
  border-left: 2px solid #6b637d;
}
.hint-model figcaption {
  font-size: 13px;
  margin-top: 5px;
}
