:root {
  --ink: #e5e9df;
  --muted: #91aaa0;
  --teal: #9de1c0;
  --gold: #dec18a;
  --dark: #101b1b;
  --line: rgba(210, 232, 215, 0.2);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #101b1b;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 6px;
}
button {
  border: 0;
}
#world,
#world canvas,
.vignette,
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#world {
  touch-action: none;
}
#world canvas {
  display: block;
}
.vignette {
  pointer-events: none;
  background: radial-gradient(
    ellipse at 58% 42%,
    transparent 25%,
    rgba(7, 16, 17, 0.5) 100%
  );
  z-index: 1;
}
.grain {
  pointer-events: none;
  opacity: 0.045;
  z-index: 15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23ffffff' filter='url(%23n)' opacity='.8' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.topbar {
  position: absolute;
  z-index: 6;
  left: 40px;
  right: 40px;
  top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 55px;
}
.wordmark {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 3px;
  font-weight: 500;
}
.brand-icon {
  font-size: 40px;
  font-weight: 200;
  color: var(--gold);
}
.wordmark small {
  display: block;
  font-size: 8px;
  letter-spacing: 3px;
  margin-top: 3px;
  color: #aac1b3;
}
.chapter {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 3px;
  color: #c4d4c7;
}
.separator {
  opacity: 0.4;
  margin: 0 8px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px #a0f6d5;
}
.top-actions {
  display: flex;
  gap: 17px;
}
.icon-button {
  background: transparent;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 21px;
  padding: 10px;
}
.icon-button span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.landing {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(9, 21, 22, 0.9) 0%,
    rgba(9, 21, 22, 0.65) 28%,
    transparent 70%
  );
}
.landing-copy {
  position: absolute;
  left: 8%;
  top: 28%;
  max-width: 660px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.eyebrow > span:not(#elapsed) {
  width: 24px;
  height: 1px;
  background: var(--gold);
}
h1 {
  font-size: clamp(30px, 3.3vw, 53px);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 25px 0 19px;
  font-family: "Songti SC", "Noto Serif CJK SC", STSong, serif;
}
.emphasis {
  color: var(--teal);
}
.intro {
  font-size: 13px;
  line-height: 2.1;
  color: #b2c6bc;
  letter-spacing: 1.5px;
}
.primary-button {
  background: var(--teal);
  color: #182e29;
  padding: 0 24px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
  font-size: 13px;
  letter-spacing: 2px;
  transition: 0.2s;
  margin-top: 30px;
  box-shadow: 0 0 35px #9de1c014;
}
.primary-button:hover {
  background: #c9f5dd;
  box-shadow: 0 0 35px #9de1c035;
  transform: translateY(-2px);
}
.button-arrow {
  font-size: 23px;
}
.start-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  color: #799389;
  font-size: 10px;
  letter-spacing: 1px;
}
.start-note > span:nth-child(5) {
  margin-left: 7px;
}
.key {
  border: 1px solid #a8c9b63a;
  border-radius: 2px;
  display: inline-flex;
  min-width: 18px;
  height: 19px;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #b8cdbd;
  padding: 1px 4px;
}
.start-note i {
  width: 1px;
  height: 12px;
  background: var(--line);
  margin: 0 12px;
}
.mouse-symbol {
  font-size: 16px;
}
.landing-footer {
  position: absolute;
  left: 8%;
  bottom: 8%;
  right: 8%;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.edition {
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--gold);
}
.landing-footer p {
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 2px;
  color: #9db4a8;
}
.text-button {
  background: transparent;
  padding: 7px 0;
  letter-spacing: 1px;
  font-size: 11px;
  color: #adc2b4;
}
.text-button span {
  margin-left: 15px;
  color: var(--gold);
}
.side-label {
  position: absolute;
  right: 32px;
  top: 44%;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: 5px;
  color: #7d9c8e;
}
.prototype-tag {
  position: absolute;
  bottom: 28px;
  right: 40px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #7c998c;
}
.hidden {
  display: none !important;
}
.hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.hud button {
  pointer-events: auto;
}
.objective {
  position: absolute;
  left: 40px;
  top: 115px;
  padding: 20px 0 20px 18px;
  border-left: 1px solid var(--line);
  width: 265px;
  background: linear-gradient(90deg, #0a171966, transparent);
}
.objective .eyebrow {
  letter-spacing: 2px;
  font-size: 9px;
  justify-content: space-between;
}
.objective h2 {
  font-family: STSong, serif;
  font-weight: 400;
  letter-spacing: 3px;
  font-size: 21px;
  margin: 13px 0 8px;
}
.objective p {
  font-size: 10px;
  color: #a1b8aa;
  line-height: 1.9;
  letter-spacing: 1px;
}
.anchor-progress {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  align-items: center;
}
.anchor-progress > span {
  width: 32px;
  height: 32px;
  border: 1px solid #b2c7b740;
  display: grid;
  place-items: center;
  color: #6d8c7b;
  font-family: serif;
  font-size: 13px;
  transition: 0.5s;
}
.anchor-progress > span.active {
  color: var(--teal);
  border-color: var(--teal);
  background: #97e2bd1a;
  box-shadow: 0 0 15px #95dcb416;
}
.anchor-progress small {
  font-size: 10px;
  color: #b4c8b7;
  letter-spacing: 2px;
  margin-left: 6px;
}
.compass-note {
  font-size: 9px;
  letter-spacing: 1px;
  color: #6f9380;
  margin-top: 15px;
}
.status-panel {
  position: absolute;
  right: 40px;
  top: 128px;
  width: 165px;
}
.status-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  letter-spacing: 2px;
}
.status-line strong {
  font-family: monospace;
  font-size: 16px;
  font-weight: 400;
}
.status-line small {
  font-size: 9px;
  color: #778d7f;
}
.bar {
  height: 3px;
  background: #bed1bd1f;
  margin-top: 10px;
  position: relative;
}
.bar > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--teal);
  transition: width 0.2s;
}
.debt-line {
  margin-top: 24px;
}
.debt > span {
  background: var(--gold);
  width: 0%;
}
.debt i {
  position: absolute;
  left: 75%;
  width: 1px;
  height: 9px;
  background: #cc8976;
  top: -3px;
}
.status-panel > p {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: #8caa95;
  text-align: right;
  margin-top: 9px;
}
.mini-map {
  width: 125px;
  height: 135px;
  position: relative;
  margin: 24px 0 0 auto;
  background: #0c1b1b50;
  border: 1px solid #a1c3a422;
  padding: 8px;
}
.mini-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mini-map path {
  fill: none;
  stroke: #90ac9540;
  stroke-width: 1;
}
.mini-map .map-exit {
  stroke: var(--gold);
}
#map-player {
  fill: #c8f4d6;
  stroke: #283e36;
  stroke-width: 1.5;
}
.mini-map > span {
  position: absolute;
  right: 8px;
  top: 7px;
  font-size: 7px;
  color: #95ad92;
}
.target-card {
  position: absolute;
  left: 50%;
  bottom: 205px;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #0a191be6;
  border: 1px solid #8faf9055;
  text-align: center;
  min-width: 210px;
  backdrop-filter: blur(10px);
}
.target-card > span {
  display: block;
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 5px;
}
.target-card strong {
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 400;
}
.target-card div {
  font-size: 10px;
  letter-spacing: 1px;
  color: #9cb7a3;
  margin: 7px 0;
}
.target-card small {
  color: #94dfb8;
  letter-spacing: 1px;
  font-size: 9px;
}
.toast {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -10px);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--teal);
  text-align: center;
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
  text-shadow: 0 2px 8px #000;
  max-width: 80vw;
  background: #0b1b1bc9;
  padding: 12px 24px;
  border-top: 1px solid #9de1c045;
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  color: #e8b092;
  border-color: #e8b09245;
}
.storm-warning {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #edb09c;
  letter-spacing: 2px;
  animation: warning 1.5s infinite;
}
@keyframes warning {
  50% {
    opacity: 0.5;
  }
}
.bottom-hud {
  position: absolute;
  bottom: 27px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.player-status {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 265px;
  padding-bottom: 16px;
}
.player-emblem {
  color: var(--gold);
  font-size: 42px;
}
.player-status small {
  display: block;
  font-size: 8px;
  color: #89a890;
  letter-spacing: 2px;
  margin-bottom: 5px;
}
.player-status strong {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
}
.dash-meter {
  margin-left: 9px;
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.dash-meter .key {
  font-size: 8px;
}
.dash-meter > span:last-child {
  font-size: 8px;
  color: #9ab5a1;
  display: block;
  margin-top: 6px;
}
.ability-dock {
  width: 340px;
  flex-shrink: 0;
  background: linear-gradient(0deg, #0b181adc, transparent);
  padding: 12px 15px 0;
}
.charge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 2px;
  color: #a3bdac;
  margin: 0 10px 10px;
}
.charge-row strong {
  font-family: monospace;
  font-size: 11px;
  font-weight: 400;
  margin-left: auto;
}
.charge-pips {
  display: flex;
  gap: 5px;
  flex: 1;
}
.charge-pips i {
  height: 4px;
  flex: 1;
  background: #c5d8b525;
  border: 1px solid #c5d8b52a;
  transition: 0.3s;
}
.charge-pips i.filled {
  background: var(--gold);
  box-shadow: 0 0 9px #dec18a60;
}
.ability-buttons {
  display: flex;
  gap: 7px;
}
.ability {
  background: #0c1a1b9c;
  border: 1px solid #a8c8b12e;
  text-align: left;
  padding: 10px 11px;
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: 0.2s;
  position: relative;
}
.ability > .key {
  position: absolute;
  left: 6px;
  top: 5px;
  min-width: 12px;
  height: 13px;
  border: 0;
  color: #6e8e7c;
  font-size: 8px;
}
.ability-symbol {
  font-size: 27px;
  color: #91ab98;
  margin: 4px 2px 0 8px;
}
.ability strong {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
}
.ability small {
  display: block;
  font-size: 8px;
  color: #819c88;
  margin-top: 4px;
  letter-spacing: 1px;
}
.ability.active {
  border-color: var(--gold);
  background: #dec18a0c;
}
.ability.active .ability-symbol,
.ability.active strong {
  color: var(--gold);
}
#restore.active {
  border-color: var(--teal);
  background: #9de1c00d;
}
#restore.active .ability-symbol,
#restore.active strong {
  color: var(--teal);
}
#interaction-hint {
  text-align: center;
  font-size: 9px;
  letter-spacing: 1px;
  color: #8aa994;
  margin: 10px 0 0;
  height: 14px;
}
.controls-note {
  width: 265px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 9px;
}
.controls-note > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #8ba691;
}
.controls-note .text-button {
  font-size: 9px;
  padding-top: 6px;
}
.touch-controls {
  display: none;
}
.modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: #071316b8;
  backdrop-filter: blur(12px);
  padding: 24px;
}
.modal-panel {
  position: relative;
  width: min(610px, 100%);
  max-height: 88dvh;
  overflow: auto;
  padding: 45px;
  background: #152522ef;
  border: 1px solid #9eb99f40;
  box-shadow: 0 40px 100px #0007;
}
.modal h2 {
  font-family: STSong, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 4px;
  margin: 17px 0 24px;
}
.modal p {
  font-size: 12px;
  line-height: 2;
  color: #adbfad;
  letter-spacing: 0.7px;
}
.modal strong {
  color: #d3dfcb;
  font-weight: 500;
}
.modal h3 {
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 2px;
  margin: 25px 0 6px;
}
.modal .primary-button {
  width: 100%;
}
.close-button {
  position: absolute;
  top: 13px;
  right: 17px;
  background: transparent;
  font-size: 25px;
  font-weight: 200;
  color: #9cb29d;
  padding: 6px;
}
.instruction {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 15px;
  border-bottom: 1px solid #9daf9a25;
  padding: 13px 0;
  font-size: 11px;
  line-height: 1.8;
  color: #afc4ae;
}
.instruction > span:first-child {
  color: var(--gold);
}
.result-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 25px;
}
.result-stats strong {
  display: block;
  font-family: monospace;
  font-size: 24px;
  color: var(--teal);
  margin-bottom: 7px;
}
.result-stats span {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2px;
}
.loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #101b1b;
  transition: opacity 0.5s;
}
.loading-mark {
  font-size: 54px;
  color: var(--teal);
  animation: turn 5s linear infinite;
}
.loading p {
  font-size: 13px;
  letter-spacing: 4px;
  margin-top: 25px;
}
.loading small {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 3px;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
.damage-flash {
  animation: damage 0.4s;
}
@keyframes damage {
  0% {
    box-shadow: inset 0 0 150px #cf795577;
  }
  100% {
    box-shadow: inset 0 0 0 transparent;
  }
}
@media (min-width: 1700px) {
  .landing-copy {
    left: 10%;
    top: 29%;
  }
  .landing-footer {
    left: 10%;
    right: 10%;
  }
  .topbar {
    left: 55px;
    right: 55px;
  }
  .objective {
    left: 55px;
  }
  .status-panel {
    right: 55px;
  }
}
@media (max-width: 1000px) {
  .topbar {
    left: 24px;
    right: 24px;
    top: 20px;
  }
  .chapter {
    font-size: 9px;
    gap: 7px;
  }
  .landing-copy {
    left: 7%;
    top: 28%;
  }
  h1 {
    font-size: 37px;
  }
  .landing-footer {
    left: 7%;
    bottom: 7%;
  }
  .player-status {
    width: 160px;
  }
  .dash-meter {
    display: none;
  }
  .controls-note {
    width: 160px;
  }
  .bottom-hud {
    left: 24px;
    right: 24px;
  }
  .objective {
    left: 24px;
    top: 100px;
    width: 230px;
  }
  .status-panel {
    right: 24px;
    top: 115px;
    width: 130px;
  }
  .ability-dock {
    width: 305px;
  }
  .target-card {
    bottom: 195px;
  }
  .side-label {
    right: 20px;
  }
}
@media (max-width: 650px) {
  .topbar {
    left: 19px;
    right: 16px;
    top: 15px;
  }
  .wordmark {
    font-size: 20px;
    gap: 9px;
  }
  .brand-icon {
    font-size: 31px;
  }
  .wordmark small {
    font-size: 6px;
  }
  .chapter {
    display: none;
  }
  .top-actions {
    gap: 3px;
  }
  .icon-button {
    font-size: 19px;
    padding: 8px;
  }
  .icon-button span {
    font-size: 8px;
  }
  .landing {
    background:
      linear-gradient(90deg, #091516d9, transparent),
      linear-gradient(0deg, #091516bd, transparent);
  }
  .landing-copy {
    left: 8%;
    right: 7%;
    top: 27%;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  h1 {
    font-size: clamp(24px, 6.2vw, 35px);
    line-height: 1.6;
    margin-top: 21px;
  }
  .intro {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .primary-button {
    min-height: 50px;
    font-size: 12px;
  }
  .start-note {
    font-size: 8px;
  }
  .landing-footer {
    left: 8%;
    right: 8%;
    bottom: 8%;
  }
  .landing-footer p {
    font-size: 10px;
  }
  .edition {
    font-size: 7px;
  }
  .text-button {
    font-size: 10px;
  }
  .side-label {
    display: none;
  }
  .prototype-tag {
    right: 20px;
    bottom: 19px;
    font-size: 7px;
  }
  .objective {
    left: 20px;
    top: 88px;
    width: 190px;
    padding: 10px 0 10px 12px;
  }
  .objective h2 {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .objective p {
    font-size: 8px;
    max-width: 170px;
  }
  .objective .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .anchor-progress {
    gap: 5px;
    margin-top: 10px;
  }
  .anchor-progress > span {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }
  .anchor-progress small {
    font-size: 8px;
  }
  .compass-note {
    font-size: 7px;
    margin-top: 9px;
  }
  .status-panel {
    right: 20px;
    top: 100px;
    width: 100px;
  }
  .status-line {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .status-line strong {
    font-size: 13px;
  }
  .status-panel > p {
    font-size: 7px;
  }
  .debt-line {
    margin-top: 15px;
  }
  .mini-map {
    width: 80px;
    height: 85px;
    margin-top: 16px;
    padding: 5px;
  }
  .mini-map > span {
    font-size: 5px;
    right: 4px;
    top: 4px;
  }
  .bottom-hud {
    bottom: 20px;
    left: 20px;
    right: 20px;
    justify-content: center;
  }
  .player-status,
  .controls-note {
    display: none;
  }
  .ability-dock {
    width: 260px;
    padding-top: 8px;
  }
  .ability {
    padding: 8px 7px;
  }
  .ability strong {
    font-size: 11px;
  }
  .ability small {
    font-size: 7px;
  }
  .ability-symbol {
    font-size: 23px;
  }
  .charge-row {
    font-size: 7px;
  }
  .target-card {
    bottom: 230px;
    padding: 10px 16px;
    max-width: 80vw;
    min-width: 180px;
  }
  .target-card strong {
    font-size: 13px;
  }
  .target-card small {
    font-size: 8px;
  }
  .toast {
    top: 38%;
    font-size: 10px;
    letter-spacing: 1px;
    width: max-content;
    max-width: 85vw;
    padding: 11px 17px;
  }
  .storm-warning {
    font-size: 8px;
    top: 33%;
    max-width: 90%;
    width: max-content;
  }
  .modal-panel {
    padding: 32px 25px;
  }
  .modal h2 {
    font-size: 25px;
  }
  .modal p {
    font-size: 11px;
  }
  .instruction {
    grid-template-columns: 88px 1fr;
    font-size: 10px;
  }
  .touch-controls {
    display: flex;
    position: absolute;
    bottom: 155px;
    left: 22px;
    right: 22px;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
  }
  .dpad {
    display: grid;
    grid-template-columns: repeat(3, 32px);
    grid-template-rows: repeat(2, 32px);
    gap: 4px;
  }
  .dpad button {
    background: #152d27aa;
    border: 1px solid #9db69744;
    border-radius: 3px;
    font-size: 17px;
    touch-action: none;
  }
  .dpad button[data-move="up"] {
    grid-column: 2;
  }
  .dpad button[data-move="left"] {
    grid-column: 1;
    grid-row: 2;
  }
  .dpad button[data-move="down"] {
    grid-column: 2;
    grid-row: 2;
  }
  .dpad button[data-move="right"] {
    grid-column: 3;
    grid-row: 2;
  }
  #touch-dash,
  #touch-cast {
    border: 1px solid #b9d1af66;
    background: #183328bb;
    border-radius: 50%;
    width: 53px;
    height: 53px;
    font-size: 10px;
    letter-spacing: 1px;
    touch-action: none;
  }
  #touch-dash {
    margin-left: auto;
    width: 40px;
    height: 40px;
    font-size: 9px;
  }
  #touch-cast {
    border-color: var(--gold);
    color: var(--gold);
  }
}
@media (max-height: 600px) and (min-width: 651px) {
  .topbar {
    top: 12px;
  }
  .landing-copy {
    top: 24%;
  }
  .landing-footer {
    bottom: 4%;
  }
  .landing-footer p {
    display: none;
  }
  h1 {
    font-size: 29px;
    margin: 15px 0;
  }
  .intro {
    font-size: 11px;
  }
  .primary-button {
    margin-top: 18px;
    min-height: 45px;
  }
  .objective {
    top: 85px;
  }
  .mini-map {
    display: none;
  }
  .status-panel {
    top: 95px;
  }
  .bottom-hud {
    bottom: 17px;
  }
  .target-card {
    bottom: 175px;
  }
  .start-note {
    margin-top: 13px;
  }
  .side-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (pointer: coarse) and (min-width: 651px) {
  .touch-controls {
    display: flex;
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 180px;
    align-items: end;
    gap: 15px;
  }
  .dpad {
    display: grid;
    grid-template-columns: repeat(3, 42px);
    grid-template-rows: repeat(2, 42px);
    gap: 5px;
  }
  .dpad button {
    background: #152d27bb;
    border: 1px solid #9db69766;
    border-radius: 3px;
    font-size: 20px;
    touch-action: none;
  }
  .dpad button[data-move="up"] {
    grid-column: 2;
  }
  .dpad button[data-move="left"] {
    grid-column: 1;
    grid-row: 2;
  }
  .dpad button[data-move="down"] {
    grid-column: 2;
    grid-row: 2;
  }
  .dpad button[data-move="right"] {
    grid-column: 3;
    grid-row: 2;
  }
  #touch-dash,
  #touch-cast {
    border: 1px solid #b9d1af66;
    background: #183328cc;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 12px;
    letter-spacing: 1px;
    touch-action: none;
  }
  #touch-dash {
    margin-left: auto;
    width: 50px;
    height: 50px;
    font-size: 10px;
  }
  #touch-cast {
    border-color: var(--gold);
    color: var(--gold);
  }
}
@media (pointer: coarse) and (min-width: 651px) and (max-height: 600px) {
  .touch-controls {
    bottom: 143px;
  }
  .objective {
    max-height: 165px;
  }
  .dpad {
    grid-template-columns: repeat(3, 32px);
    grid-template-rows: repeat(2, 32px);
  }
  #touch-cast {
    width: 50px;
    height: 50px;
  }
  #touch-dash {
    width: 40px;
    height: 40px;
  }
  .target-card {
    bottom: 170px;
  }
  .compass-note {
    display: none;
  }
}
