:root {
  --ink: #193b43;
  --paper: #f1eee2;
  --orange: #f27b31;
  --cyan: #72e3e9;
  --muted: #687b78;
  --line: #c9cdbf;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #e3e6d7;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #00a7b8;
  outline-offset: 4px;
}
button {
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
}
button[hidden],
[hidden] {
  display: none !important;
}
#app {
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}
#world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
#vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 180px #314c3823;
  background: linear-gradient(
    180deg,
    #e3e6d722,
    transparent 26%,
    transparent 80%,
    #edf0dd50
  );
}
#flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.24s;
}
#flash.active {
  opacity: 1;
  transition: none;
}
.masthead {
  height: 94px;
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid #25423b21;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.brand svg {
  width: 31px;
  height: 38px;
  fill: var(--orange);
}
.brand > span {
  font-weight: 900;
  font-style: italic;
  font-size: 27px;
  letter-spacing: -1px;
  line-height: 0.87;
}
.brand small {
  font-size: 8px;
  display: block;
  font-style: normal;
  letter-spacing: 3.6px;
  margin-top: 7px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.session-label {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: bold;
  margin-right: 28px;
}
.session-label i {
  background: var(--ink);
  color: var(--paper);
  font-style: normal;
  padding: 4px 6px;
  margin-left: 12px;
}
.icon-button {
  background: transparent;
  border: 0;
  min-width: 38px;
  min-height: 40px;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
}
.icon-button span {
  font-size: 20px;
  vertical-align: middle;
  margin-left: 6px;
}
.help-button {
  border: 1px solid #8c9b8c;
  border-radius: 50%;
  min-width: 25px;
  min-height: 25px;
  font-size: 13px;
  letter-spacing: 0;
}
.menu {
  position: absolute;
  inset: 94px 0 0;
  background: linear-gradient(
    90deg,
    #f1eee2 0%,
    #f1eee2fa 32%,
    #eeeaddbb 50%,
    #e4e8d22a 68%,
    #dce6d920 100%
  );
}
.intro-copy {
  position: relative;
  z-index: 2;
  width: 47%;
  padding: 42px 0 0 5.3%;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 11px;
}
.eyebrow > span {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.eyebrow em {
  font-style: normal;
  opacity: 0.48;
  margin-left: 11px;
}
h1 {
  font-size: clamp(75px, 8.55vw, 132px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -8px;
  margin: 29px 0 26px;
  transform: scaleX(0.95);
  transform-origin: left;
}
h1 span,
h2 span {
  color: var(--orange);
}
.dek {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 28px;
  color: #556d6c;
}
.mission-spec {
  display: flex;
  gap: 35px;
  margin: 0 0 22px;
}
.mission-spec > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mission-spec b {
  font-size: 34px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}
.mission-spec span {
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 1.2px;
}
.brief {
  max-width: 330px;
  font-size: 12px;
  line-height: 1.65;
  color: #627672;
  margin: 0 0 22px;
}
.difficulty {
  display: flex;
  gap: 5px;
  margin: 0 0 12px;
}
.difficulty button {
  background: none;
  border: 1px solid #c9ccbe;
  font-size: 8px;
  letter-spacing: 0.8px;
  padding: 9px 11px;
  font-weight: bold;
}
.difficulty button.selected {
  color: #eff2e4;
  background: #23444a;
  border-color: #23444a;
}
.primary {
  min-height: 61px;
  width: 335px;
  text-align: left;
  background: var(--orange);
  border: 0;
  padding: 13px 23px;
  color: #fff8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 25px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.7px;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 96% 100%, 0 100%);
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #de6220;
  transform: translateY(-2px);
}
.primary span {
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
}
.start-note {
  display: flex;
  gap: 19px;
  margin-top: 14px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: #6f8078;
}
kbd {
  font: inherit;
  font-size: 9px;
  border: 1px solid #acb9af;
  padding: 3px 4px;
  border-radius: 2px;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
}
.hero-panel {
  position: absolute;
  inset: 0 0 43px 45%;
  overflow: hidden;
}
.hero-number {
  position: absolute;
  right: 9%;
  top: 12%;
  font-size: 330px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -25px;
  color: #f0efdd90;
  -webkit-text-stroke: 1px #95a99955;
  transform: rotate(-8deg);
}
#showcase {
  position: absolute;
  width: 100%;
  height: 93%;
  left: -2%;
  top: -4%;
  z-index: 1;
  pointer-events: none;
}
.orbital {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid #6e9c975e;
  border-radius: 50%;
  top: 21%;
  left: 20%;
  transform: rotate(-24deg) scaleY(0.8);
}
.orbital-two {
  transform: rotate(36deg) scaleY(0.47);
  border-style: dashed;
}
.chronal-tag {
  position: absolute;
  z-index: 2;
  left: 9%;
  top: 30%;
  font-size: 7px;
  line-height: 1.7;
  letter-spacing: 1px;
  padding-left: 19px;
  color: #507471;
}
.chronal-tag strong {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: #21464a;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #15bac5;
  position: absolute;
  left: 3px;
  top: 5px;
  box-shadow: 0 0 0 4px #44ccd02a;
}
.hero-caption {
  position: absolute;
  right: 9%;
  top: 58%;
  z-index: 3;
  text-align: right;
  display: flex;
  flex-direction: column;
}
.hero-caption > span {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
}
.hero-caption b {
  font-size: 26px;
  font-style: italic;
  letter-spacing: -1px;
  margin: 7px 0;
}
.hero-caption small {
  font-size: 7px;
  letter-spacing: 1.6px;
  color: #67817b;
}
.map-location {
  position: absolute;
  bottom: 31px;
  right: 10%;
  text-align: right;
}
.map-location > span {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
}
.map-location > div {
  font-size: 8px;
  letter-spacing: 1.25px;
  opacity: 0.65;
  margin-top: 10px;
}
.entry-footer {
  position: absolute;
  bottom: 0;
  left: 5.3%;
  right: 5%;
  height: 44px;
  border-top: 1px solid #a9b5a447;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #5b7671;
  z-index: 3;
}
.entry-footer button {
  background: none;
  border: 0;
  font-size: 7px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 12px;
}
.playing .masthead {
  height: 69px;
  padding: 0 3%;
  background: #f2eee2df;
  backdrop-filter: blur(9px);
}
.playing .brand > span {
  font-size: 22px;
}
.playing .brand small {
  font-size: 6px;
  letter-spacing: 3px;
}
.playing .brand svg {
  width: 27px;
  height: 30px;
}
.playing .session-label {
  display: none;
}
.playing .header-right {
  gap: 10px;
}
.top-hud {
  position: absolute;
  top: 87px;
  left: 3%;
  right: 3%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}
.mission-title {
  background: #f5f0e5ee;
  border-left: 3px solid var(--orange);
  padding: 14px 20px;
  box-shadow: 0 5px 25px #193b4310;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mission-title > span {
  font-size: 8px;
  letter-spacing: 1.4px;
  font-weight: bold;
  color: #7c8d7b;
}
.mission-title > b {
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.7px;
}
.mission-title > small {
  font-size: 10px;
  color: #6b817b;
}
.run-stats {
  display: flex;
  gap: 24px;
  background: #f5f0e5ee;
  padding: 12px 22px;
  align-self: start;
}
.run-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 50px;
}
.run-stats span {
  font-size: 8px;
  letter-spacing: 1.3px;
  font-weight: bold;
  color: #6c847d;
}
.run-stats b {
  font-size: 31px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -1px;
}
.run-stats b em {
  font-size: 17px;
  color: #829084;
  font-style: normal;
  padding-left: 2px;
}
.run-stats .urgent b {
  color: #dc493b;
}
.bottom-hud {
  position: absolute;
  bottom: 24px;
  left: 3%;
  right: 3%;
  display: flex;
  align-items: end;
  gap: 22px;
  flex-wrap: wrap;
  pointer-events: none;
}
.vitals {
  width: 254px;
  padding: 15px 17px 12px;
  background: #f6f0e5eb;
}
.health-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.health-label b {
  font-size: 12px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.4px;
}
.health-label b > span {
  font-size: 24px;
  margin-left: 8px;
  letter-spacing: -1px;
}
.health-label small {
  font-size: 11px;
  font-weight: 400;
  color: #688379;
}
.health-label > span {
  font-size: 10px;
  font-weight: bold;
}
.health-track {
  height: 6px;
  background: #d1d6c6;
}
.health-track > div {
  height: 100%;
  background: var(--orange);
  width: 100%;
  transition: width 0.1s;
}
.vital-caption {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 6px;
  font-weight: bold;
  letter-spacing: 1px;
}
.vital-caption kbd {
  font-size: 7px;
  padding: 1px 3px;
}
.abilities {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.ability {
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
  min-width: 145px;
  height: 78px;
  padding: 12px 14px;
  background: #f5f0e5ee;
  border: 0;
  border-bottom: 3px solid var(--cyan);
  transition:
    transform 0.1s,
    background 0.1s;
}
.ability:hover {
  background: #fff9ed;
  transform: translateY(-2px);
}
.ability-symbol {
  font-size: 36px;
  font-weight: bold;
  line-height: 1;
  color: #234b54;
}
.ability > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.ability b {
  font-size: 11px;
  font-style: italic;
  font-weight: 900;
  white-space: nowrap;
}
.ability small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #357c86;
}
.ability kbd {
  position: absolute;
  right: 7px;
  top: 5px;
  font-size: 6px;
  padding: 1px 3px;
}
.ability.bomb {
  border-color: var(--orange);
}
.ability.cooldown {
  opacity: 0.62;
}
.ability.ready {
  background: #bdedf0;
}
.desktop-tip {
  font-size: 7px;
  letter-spacing: 0.7px;
  width: 100%;
  text-align: center;
  font-weight: 700;
  margin-top: -9px;
}
.desktop-tip kbd {
  font-size: 7px;
  background: #f2eee2a0;
}
.world-label {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  padding: 5px 9px 5px 5px;
  background: #233d45ed;
  color: #f8efdc;
  font-size: 8px;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px #122a3433;
  white-space: nowrap;
}
.world-label b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 22px;
  background: #ed8b43;
  font-size: 12px;
}
.world-label.unlocked {
  background: #eaf2dc;
  color: #245257;
}
.world-label.unlocked b {
  background: #70dce3;
}
.world-label.home b {
  background: #71dfe7;
  color: #23474d;
}
.world-label.home {
  background: #264c56;
}
#radar {
  position: absolute;
  top: 208px;
  right: 3%;
  width: 108px;
  height: 108px;
  background: #f3efdfc9;
  border: 1px solid #869c8970;
  border-radius: 50%;
  pointer-events: none;
}
#toast {
  position: absolute;
  bottom: 153px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f4efe4ec;
  box-shadow: 0 5px 25px #29433914;
  padding: 13px 19px;
  max-width: 650px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
}
#toast b {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #d66e28;
  white-space: nowrap;
}
#toast span {
  font-size: 11px;
  line-height: 1.5;
}
#touch-controls {
  display: none;
}
.overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: #193f426b;
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 25px;
}
.overlay-card {
  width: 460px;
  padding: 42px;
  background: var(--paper);
  box-shadow: 0 30px 100px #17363c40;
  position: relative;
}
.overlay-card:after {
  content: "»";
  position: absolute;
  right: 30px;
  top: 30px;
  font-size: 44px;
  color: var(--orange);
}
h2 {
  font-size: 58px;
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -3px;
  margin: 28px 0 22px;
}
.overlay-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #637a73;
  margin-bottom: 24px;
}
.overlay-card .primary {
  width: 100%;
  font-size: 23px;
  min-height: 55px;
}
.secondary {
  background: transparent;
  border: 1px solid #9eaea0;
  width: 100%;
  min-height: 43px;
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: bold;
  margin-top: 9px;
}
.text-button {
  display: block;
  margin: 14px auto 0;
  background: transparent;
  border: 0;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: bold;
  min-height: 30px;
}
.overlay-card #result-stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 8px 0 22px;
  display: flex;
  justify-content: space-between;
}
.result-stat span {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: bold;
  color: #75867b;
  margin-bottom: 6px;
}
.result-stat b {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
}
dialog {
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 44px;
  max-width: 670px;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 30px 80px #12313960;
}
dialog::backdrop {
  background: #1a414877;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font-size: 48px;
}
dialog p {
  font-size: 12px;
  line-height: 1.7;
  color: #617a72;
}
.close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: 0;
  font-size: 28px;
  min-width: 40px;
  min-height: 40px;
}
.guide-steps {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}
.guide-steps li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 15px;
}
.guide-steps b {
  font-size: 10px;
  min-width: 153px;
  padding-top: 2px;
}
.guide-steps span {
  font-size: 11px;
  line-height: 1.6;
  color: #60796f;
}
.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 25px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.control-grid > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}
.control-grid b {
  font-size: 10px;
}
.control-grid small {
  font-size: 9px;
  line-height: 1.5;
  color: #647b70;
}
.guide-note {
  padding: 15px;
  background: #dce6d850;
}
.credits {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 9px;
  line-height: 1.6;
  color: #637a70;
}
.credits a {
  display: block;
  color: #1c7880;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-top: 13px;
}
#load-error {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  background: var(--paper);
  padding: 30px;
  text-align: center;
}
#load-error button {
  padding: 15px;
  background: var(--orange);
  border: 0;
  color: white;
}
.dpad button.pressed,
#touch-fire.pressed {
  background: #86eced !important;
  transform: scale(0.95);
}
@media (min-width: 1500px) {
  .intro-copy {
    padding-top: 60px;
  }
  h1 {
    margin: 35px 0;
  }
  .dek {
    margin-bottom: 33px;
  }
  .brief {
    margin-bottom: 27px;
  }
  .mission-spec {
    margin-bottom: 27px;
  }
  .primary {
    min-height: 66px;
  }
}
@media (max-height: 780px) and (min-width: 761px) {
  .masthead {
    height: 76px;
  }
  .menu {
    top: 76px;
  }
  .intro-copy {
    padding-top: 25px;
  }
  h1 {
    font-size: 94px;
    margin: 22px 0;
  }
  .dek {
    font-size: 14px;
    margin-bottom: 19px;
  }
  .mission-spec {
    margin-bottom: 17px;
  }
  .mission-spec b {
    font-size: 29px;
  }
  .brief {
    margin-bottom: 14px;
  }
  .hero-caption {
    top: 58%;
  }
  .entry-footer {
    height: 35px;
  }
  .hero-panel {
    bottom: 35px;
  }
  .primary {
    min-height: 54px;
    font-size: 22px;
  }
  .start-note {
    margin-top: 11px;
  }
  .map-location {
    bottom: 19px;
  }
  .chronal-tag {
    left: 4%;
  }
}
@media (max-width: 1050px) and (min-width: 761px) {
  h1 {
    font-size: 90px;
    letter-spacing: -6px;
  }
  .session-label {
    display: none;
  }
  .intro-copy {
    width: 49%;
  }
  .hero-panel {
    left: 44%;
  }
  .chronal-tag {
    display: none;
  }
  .hero-caption {
    right: 5%;
    top: 64%;
  }
  .hero-caption b {
    font-size: 23px;
  }
  .mission-spec {
    gap: 25px;
  }
  .dek {
    font-size: 15px;
  }
  .bottom-hud {
    gap: 13px;
  }
  .ability {
    min-width: 126px;
    padding: 11px;
  }
  .vitals {
    width: 230px;
  }
  .ability-symbol {
    font-size: 29px;
  }
}
@media (max-width: 760px) {
  #app {
    min-height: 0;
  }
  .masthead {
    height: 65px;
    padding: 0 6%;
  }
  .brand > span {
    font-size: 23px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 3.5px;
  }
  .brand svg {
    width: 26px;
  }
  .header-right {
    gap: 6px;
  }
  .session-label {
    display: none;
  }
  .icon-button {
    font-size: 7px;
    min-height: 34px;
    min-width: 34px;
  }
  .help-button {
    min-height: 23px;
    min-width: 23px;
    font-size: 12px;
  }
  .menu {
    top: 65px;
    background: linear-gradient(
      180deg,
      #f1eee2d9 0%,
      #f1eee2b5 30%,
      #f1eee2 58%
    );
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 45px;
  }
  .intro-copy {
    width: 100%;
    padding: 25px 6% 0;
    z-index: 3;
    pointer-events: none;
  }
  .intro-copy button {
    pointer-events: auto;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
    gap: 8px;
  }
  .eyebrow em {
    margin-left: 0;
  }
  h1 {
    font-size: 70px;
    line-height: 0.87;
    letter-spacing: -5px;
    margin: 25px 0 19px;
    max-width: 300px;
  }
  .dek {
    font-size: 12px;
    line-height: 1.6;
    width: 190px;
    margin-bottom: 27px;
  }
  .mission-spec {
    gap: 25px;
    margin-top: 170px;
    margin-bottom: 17px;
  }
  .mission-spec b {
    font-size: 28px;
  }
  .mission-spec span {
    font-size: 7px;
    letter-spacing: 0.8px;
  }
  .brief {
    font-size: 11px;
    max-width: 100%;
    margin-bottom: 14px;
  }
  .difficulty {
    margin-bottom: 10px;
  }
  .difficulty button {
    font-size: 7px;
    padding: 8px 10px;
  }
  .primary {
    width: 100%;
    min-height: 55px;
    font-size: 23px;
  }
  .start-note {
    font-size: 6px;
    gap: 14px;
    margin-top: 13px;
  }
  .start-note kbd {
    font-size: 7px;
  }
  .hero-panel {
    left: 0;
    right: 0;
    top: 102px;
    bottom: auto;
    height: 337px;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
  }
  .hero-number {
    font-size: 230px;
    right: 0;
    top: 30px;
    letter-spacing: -22px;
    color: #f2efdfc0;
  }
  .orbital {
    width: 250px;
    height: 250px;
    top: 42px;
    left: 31%;
  }
  #showcase {
    height: 400px;
    width: 340px;
    top: -15px;
    left: calc(50% - 103px);
  }
  .chronal-tag {
    display: none;
  }
  .hero-caption {
    top: 236px;
    right: 7%;
  }
  .hero-caption > span {
    font-size: 7px;
  }
  .hero-caption b {
    font-size: 20px;
    margin: 5px 0;
  }
  .hero-caption small {
    font-size: 6px;
  }
  .map-location {
    display: none;
  }
  .entry-footer {
    left: 6%;
    right: 6%;
    bottom: 0;
    position: relative;
    margin-top: 25px;
    width: 88%;
    height: 38px;
    font-size: 6px;
    gap: 8px;
    letter-spacing: 0.8px;
  }
  .entry-footer > span:first-child {
    display: none;
  }
  .entry-footer button {
    font-size: 6px;
    padding: 10px 0;
  }
  .playing .masthead {
    height: 55px;
    padding: 0 4%;
  }
  .playing .brand > span {
    font-size: 18px;
  }
  .playing .brand small {
    font-size: 5px;
    letter-spacing: 2.5px;
  }
  .playing .brand svg {
    width: 22px;
  }
  .playing .header-right {
    gap: 3px;
  }
  .top-hud {
    top: 67px;
    left: 4%;
    right: 4%;
    gap: 10px;
    flex-wrap: wrap;
  }
  .mission-title {
    width: 100%;
    max-width: none;
    padding: 10px 12px;
    gap: 5px;
    position: relative;
  }
  .mission-title > span {
    font-size: 7px;
  }
  .mission-title > b {
    font-size: 18px;
  }
  .mission-title > small {
    font-size: 9px;
  }
  .run-stats {
    padding: 8px 11px;
    gap: 19px;
    position: absolute;
    left: 0;
    top: 98px;
    background: #f3eee2e0;
  }
  .run-stats > div {
    gap: 3px;
    min-width: 44px;
  }
  .run-stats span {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .run-stats b {
    font-size: 22px;
    letter-spacing: -0.6px;
  }
  .run-stats b em {
    font-size: 13px;
  }
  .score-stat {
    display: none !important;
  }
  #radar {
    width: 80px;
    height: 80px;
    top: 163px;
    right: 4%;
    background: #f3efdfa8;
  }
  .bottom-hud {
    left: 4%;
    right: 4%;
    bottom: calc(15px + env(safe-area-inset-bottom));
    gap: 8px;
    align-items: stretch;
    flex-direction: column;
  }
  .vitals {
    width: 100%;
    padding: 10px 12px;
    position: absolute;
    bottom: 220px;
    background: #f6f0e5d6;
  }
  .health-label {
    margin-bottom: 6px;
  }
  .health-label b {
    font-size: 10px;
  }
  .health-label b > span {
    font-size: 17px;
  }
  .health-label small {
    font-size: 9px;
  }
  .health-label > span {
    font-size: 9px;
  }
  .vital-caption {
    font-size: 5px;
    margin-top: 6px;
  }
  .health-track {
    height: 4px;
  }
  .abilities {
    gap: 7px;
    justify-content: space-between;
    width: 100%;
  }
  .ability {
    height: 58px;
    min-width: 0;
    flex: 1;
    gap: 6px;
    padding: 10px 8px;
  }
  .ability-symbol {
    font-size: 26px;
  }
  .ability b {
    font-size: 9px;
  }
  .ability small {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  .ability > span:nth-child(2) {
    gap: 5px;
  }
  .ability kbd {
    display: none;
  }
  .desktop-tip {
    display: none;
  }
  #toast {
    left: 4%;
    right: 4%;
    transform: none;
    bottom: calc(308px + env(safe-area-inset-bottom));
    max-width: none;
    padding: 9px 12px;
    gap: 9px;
  }
  #toast b {
    font-size: 7px;
  }
  #toast span {
    font-size: 9px;
    line-height: 1.45;
  }
  #touch-controls {
    display: block;
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: calc(86px + env(safe-area-inset-bottom));
    height: 138px;
    pointer-events: none;
  }
  .dpad {
    width: 145px;
    height: 138px;
    position: absolute;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 46px);
    grid-template-rows: repeat(3, 44px);
    gap: 2px;
    pointer-events: auto;
  }
  .dpad button {
    border: 1px solid #cdd5c9;
    background: #f3f1e1e8;
    font-size: 21px;
    color: #325962;
    touch-action: none;
    user-select: none;
  }
  .dpad .up {
    grid-area: 1/2;
  }
  .dpad .left {
    grid-area: 2/1;
  }
  .dpad .down {
    grid-area: 3/2;
  }
  .dpad .right {
    grid-area: 2/3;
  }
  #touch-fire {
    position: absolute;
    right: 5px;
    bottom: 12px;
    pointer-events: auto;
    width: 87px;
    height: 87px;
    border-radius: 50%;
    border: 2px solid #e8f0de;
    background: #275562dd;
    color: #cbfbf3;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    touch-action: none;
    user-select: none;
    box-shadow: 0 0 0 5px #254c5021;
  }
  #touch-fire span {
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 700;
  }
  #touch-reload {
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 37px;
    border: 0;
    background: #f2efddd9;
    font-size: 24px;
    pointer-events: auto;
  }
  .world-label {
    font-size: 6px;
    letter-spacing: 0.5px;
    padding: 4px 6px 4px 4px;
    gap: 4px;
  }
  .world-label b {
    width: 17px;
    height: 18px;
    font-size: 10px;
  }
  .overlay {
    padding: 19px;
  }
  .overlay-card {
    width: 100%;
    padding: 29px;
  }
  .overlay-card h2 {
    font-size: 54px;
  }
  .overlay-card p {
    font-size: 12px;
  }
  .overlay-card .eyebrow {
    font-size: 7px;
  }
  .overlay-card:after {
    right: 20px;
    top: 19px;
  }
  .result-stat b {
    font-size: 22px;
  }
  dialog {
    width: calc(100% - 25px);
    padding: 30px 24px;
    max-height: 91dvh;
  }
  dialog h2 {
    font-size: 42px;
    margin-top: 25px;
  }
  dialog p {
    font-size: 11px;
  }
  .guide-steps li {
    flex-direction: column;
    gap: 7px;
  }
  .guide-steps b {
    font-size: 9px;
  }
  .guide-steps span {
    font-size: 10px;
  }
  .control-grid {
    gap: 17px 15px;
  }
  .control-grid kbd {
    font-size: 7px;
  }
  .control-grid b {
    font-size: 9px;
  }
  .control-grid small {
    font-size: 8px;
  }
}
@media (max-width: 760px) and (max-height: 740px) {
  .playing .vitals {
    bottom: 188px;
  }
  .playing #touch-controls {
    height: 116px;
  }
  .playing .dpad {
    height: 114px;
    grid-template-rows: repeat(3, 37px);
    grid-template-columns: repeat(3, 40px);
    width: 124px;
  }
  .playing #toast {
    bottom: 267px;
  }
  .playing .mission-title {
    padding: 8px 10px;
  }
  .playing .run-stats {
    top: 86px;
  }
  .playing #radar {
    top: 151px;
    width: 70px;
    height: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  #flash {
    display: none;
  }
}
@media (max-width: 760px) {
  .masthead {
    background: #eeeadee8;
  }
  .dek {
    width: 175px;
  }
  .hero-panel {
    top: 105px;
  }
  #showcase {
    height: 330px;
    width: 310px;
    top: 25px;
    left: calc(50% - 67px);
  }
  .hero-caption {
    display: none;
  }
}

.world-label[data-offscreen="true"]:after {
  content: "→";
  font-size: 12px;
  transform: rotate(var(--bearing));
  margin-left: 3px;
}
@media (max-width: 760px) {
  .hero-panel {
    overflow: hidden;
    height: 349px;
  }
}
/* Compact landscape controls keep the complete touch loop visible on a rotated phone. */
@media (max-height: 560px) {
  #app { min-height: 0; }
  .menu { overflow-y: auto; overflow-x: hidden; }
  .intro-copy { padding-bottom: 60px; }
  .entry-footer { display: none; }
}
@media (max-height: 500px) and (max-width: 1000px) {
  .masthead { height: 56px; }
  .menu { top: 56px; }
  .intro-copy { width: 48%; padding-top: 22px; }
  h1 { font-size: 70px; letter-spacing: -5px; margin: 20px 0; }
  .dek { font-size: 12px; width: auto; }
  .mission-spec { margin-top: 0; }
  .hero-panel { position: fixed; inset: 56px 0 0 48%; height: auto; overflow: hidden; }
  #showcase { width: 100%; height: 100%; left: 0; top: 0; }
  .hero-caption, .chronal-tag, .map-location { display: none; }
  .hero-number { font-size: 220px; top: 8%; }
  .playing .masthead { height: 44px; padding: 0 3%; }
  .playing .brand > span { font-size: 18px; }
  .playing .brand small { font-size: 5px; }
  .playing .brand svg { width: 22px; }
  .playing .icon-button { min-height: 30px; }
  .playing .top-hud { top: 53px; left: 3%; right: 3%; flex-wrap: nowrap; }
  .playing .mission-title { width: 260px; padding: 9px 12px; gap: 4px; }
  .playing .mission-title > b { font-size: 16px; }
  .playing .mission-title > span { font-size: 6px; }
  .playing .mission-title > small { display: none; }
  .playing .run-stats { position: static; gap: 19px; padding: 8px 13px; }
  .playing .run-stats > div { min-width: 40px; gap: 2px; }
  .playing .run-stats b { font-size: 21px; }
  .playing .run-stats span { font-size: 6px; }
  .playing #radar { top: 120px; right: 3%; width: 65px; height: 65px; }
  .playing .bottom-hud { width: 330px; left: 50%; right: auto; bottom: 10px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 5px; }
  .playing .vitals { position: static; width: 100%; padding: 8px 11px; }
  .playing .health-label { margin-bottom: 4px; }
  .playing .health-label b { font-size: 9px; }
  .playing .health-label b > span { font-size: 16px; }
  .playing .health-label small { font-size: 8px; }
  .playing .health-track { height: 3px; }
  .playing .vital-caption { font-size: 5px; margin-top: 4px; }
  .playing .abilities { width: 100%; gap: 5px; }
  .playing .ability { flex: 1; min-width: 0; height: 43px; padding: 7px 8px; gap: 5px; }
  .playing .ability-symbol { font-size: 23px; }
  .playing .ability b { font-size: 8px; }
  .playing .ability small { font-size: 6px; }
  .playing .ability > span:nth-child(2) { gap: 4px; }
  .playing .ability kbd, .playing .desktop-tip { display: none; }
  .playing #toast { bottom: 117px; left: 50%; right: auto; transform: translateX(-50%); width: auto; max-width: 430px; padding: 7px 10px; gap: 8px; }
  .playing #toast b { font-size: 6px; }
  .playing #toast span { font-size: 9px; }
  .playing #touch-controls { display: block; position: absolute; left: 18px; right: 18px; bottom: 14px; height: 120px; pointer-events: none; }
  .playing .dpad { width: 132px; height: 120px; position: absolute; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3,43px); grid-template-rows: repeat(3,39px); gap: 2px; pointer-events: auto; }
  .playing .dpad button { border: 1px solid #cdd5c9; background: #f3f1e1e8; color: #325962; font-size: 21px; touch-action: none; user-select: none; }
  .playing .dpad .up { grid-area: 1/2; }.playing .dpad .left { grid-area: 2/1; }.playing .dpad .down { grid-area: 3/2; }.playing .dpad .right { grid-area: 2/3; }
  .playing #touch-fire { position: absolute; right: 2px; bottom: 5px; pointer-events: auto; width: 79px; height: 79px; border-radius: 50%; border: 2px solid #e8f0de; background: #275562dd; color: #cbfbf3; font-size: 33px; display: flex; align-items: center; justify-content: center; flex-direction: column; touch-action: none; user-select: none; }
  .playing #touch-fire span { font-size: 9px; letter-spacing: 2px; font-weight: 700; }
  .playing #touch-reload { position: absolute; right: 0; top: 0; width: 40px; height: 32px; border: 0; background: #f2efddd9; font-size: 23px; pointer-events: auto; }
  .overlay { padding: 12px; overflow-y: auto; align-items: start; }
  .overlay-card { width: 460px; padding: 23px; }
  .overlay-card h2 { font-size: 44px; margin: 17px 0 14px; }
  .overlay-card p { font-size: 11px; margin-bottom: 14px; }
  .overlay-card .primary { min-height: 43px; font-size: 20px; }
  .overlay-card #result-stats { padding: 11px 0; margin-bottom: 13px; }
}
