:root {
  --navy: #061b38;
  --navy-2: #0a2a52;
  --cyan: #17e5ff;
  --cyan-soft: #84f7ff;
  --gold: #ffc547;
  --cream: #fff8e9;
  --ink: #051a36;
  --world-ratio: 1.939675;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
  color: white;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

button, a { font: inherit; }
button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: var(--ink);
  background: white;
  border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

.game-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 560px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 90%, rgba(25, 192, 255, .32), transparent 26%),
    linear-gradient(#071d3c, #023a65 65%, #05213b);
}

.game-shell::after {
  content: "";
  position: fixed;
  z-index: 15;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(2, 18, 43, .62) 24%, rgba(2, 18, 43, .96) 62%, #020f24);
}

.scene-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
}

.scene-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px 12px rgba(0, 16, 42, .4);
  z-index: 4;
}

.world {
  --light-shift-x: 0px;
  --light-shift-y: 0px;
  --water-shift-x: 0px;
  --water-shift-y: 0px;
  position: absolute;
  width: 1672px;
  height: 862px;
  transform-origin: 0 0;
  will-change: transform;
}

.world-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #063d73;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.world-art img { pointer-events: none; -webkit-touch-callout: none; }

.world-art__map {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.world-art::before,
.world-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.world-art::before {
  z-index: 1;
  inset: -3%;
  background:
    radial-gradient(ellipse at 47% 4%, rgba(255, 247, 188, .2), transparent 42%),
    linear-gradient(116deg, transparent 18%, rgba(211, 247, 255, .1) 29%, transparent 40%);
  mix-blend-mode: screen;
  translate: var(--light-shift-x) var(--light-shift-y);
  opacity: .48;
  animation: world-light-drift 11s ease-in-out infinite alternate;
}

.world-art::after {
  z-index: 3;
  inset: 36% -4% -5%;
  background:
    radial-gradient(ellipse at 8% 58%, rgba(129, 244, 255, .2), transparent 25%),
    radial-gradient(ellipse at 67% 72%, rgba(129, 244, 255, .16), transparent 31%),
    radial-gradient(ellipse at 96% 54%, rgba(129, 244, 255, .16), transparent 23%);
  mix-blend-mode: screen;
  translate: var(--water-shift-x) var(--water-shift-y);
  opacity: .28;
  animation: world-water-shimmer 7s ease-in-out infinite alternate;
}

.world-art__plaza-logo {
  position: absolute;
  z-index: 2;
  left: 49.6%;
  top: 57.5%;
  width: 176px;
  height: 176px;
  transform: translate(-50%, -50%) scaleY(.48);
  mix-blend-mode: multiply;
  opacity: .48;
  user-select: none;
  -webkit-user-drag: none;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: env(safe-area-inset-top);
  left: clamp(18px, 4vw, 70px);
  pointer-events: none;
}

.brand {
  width: clamp(205px, 19vw, 300px);
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 16, 42, .8));
}

.location--astraea, .map-point--astraea { --x: 21.8%; --y: 21.5%; }
.location--development, .map-point--development { --x: 54%; --y: 20%; }
.location--ai, .map-point--ai { --x: 83.5%; --y: 27%; }
.location--design, .map-point--design { --x: 21.2%; --y: 55%; }
.location--ideas, .map-point--ideas { --x: 82.5%; --y: 59%; }
.location--contact, .map-point--contact { --x: 49.5%; --y: 78.5%; }

.location {
  position: absolute;
  z-index: 7;
  left: var(--x);
  top: var(--y);
  width: 250px;
  height: 86px;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.location__label {
  position: absolute;
  left: 50%;
  bottom: 50%;
  min-width: 190px;
  transform: translate(-50%, 50%);
  padding: 9px 18px;
  color: var(--ink);
  background: linear-gradient(#fffef9, #f7ebd7);
  border: 4px solid rgba(5, 22, 48, .95);
  border-radius: 10px;
  box-shadow: 0 5px 0 rgba(2, 16, 38, .36), 0 0 0 2px rgba(255,255,255,.32) inset;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}

.location__pulse {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 66px;
  height: 38px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  box-shadow: 0 0 16px var(--cyan), inset 0 0 14px var(--cyan);
}

.location.is-near .location__label {
  transform: translate(-50%, calc(50% - 4px));
  box-shadow: 0 8px 0 rgba(2, 16, 38, .35), 0 0 22px rgba(23, 229, 255, .9);
}
.location.is-near .location__pulse { opacity: 1; animation: pulse-ring 1.5s ease-out infinite; }

.spawn-pad {
  display: none;
}

.player {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  width: 84px;
  height: 104px;
  transform: translate(-50%, -74%);
  pointer-events: none;
  will-change: left, top;
}
.player::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: -14px;
  width: 76px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 10, 25, .58), rgba(0, 10, 25, 0) 72%);
}
.player__sprite {
  --frame-x: 0%;
  --frame-y: 0%;
  display: block;
  width: 72px;
  height: 104px;
  margin: 0 auto;
  transform-origin: center bottom;
  filter: drop-shadow(0 8px 6px rgba(0, 9, 30, .55));
}
.player__sprite img { display: block; width: 100%; height: 100%; object-fit: contain; }
.player.has-sprite-sheet .player__sprite {
  background: url("assets/player-sprites-v1.png") var(--frame-x) var(--frame-y) / 400% 300% no-repeat;
  animation: player-idle 2.6s ease-in-out infinite;
}
.player.has-transition-sheet.uses-transition-sheet .player__sprite {
  background-image: url("assets/player-sprites-transitions-v2.png");
}
.player.has-sprite-sheet[data-frame="1"] .player__sprite,
.player.has-sprite-sheet[data-frame="2"] .player__sprite {
  clip-path: inset(4px 0 0);
}
.player.has-sprite-sheet .player__sprite img { display: none; }
.player.has-sprite-sheet.is-moving .player__sprite { animation: player-step .36s ease-in-out infinite alternate; }
.player__marker {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -16px;
  width: 70px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(150, 244, 255, .92);
  background: radial-gradient(ellipse at center, rgba(227, 253, 255, .58) 0, rgba(57, 213, 255, .34) 32%, rgba(18, 117, 246, .13) 62%, transparent 76%);
  box-shadow: 0 0 0 3px rgba(23, 229, 255, .09), 0 0 20px rgba(23, 229, 255, .42), inset 0 0 12px rgba(216, 251, 255, .45);
  animation: marker-breathe 2s ease-in-out infinite;
}
.player__marker::before, .player__marker::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.player__marker::before {
  inset: 4px 11px;
  border: 1px solid rgba(214, 251, 255, .7);
  box-shadow: 0 0 8px rgba(148, 242, 255, .7);
}
.player__marker::after {
  inset: -7px;
  border: 1px solid rgba(92, 226, 255, .68);
  opacity: 0;
}
.player.is-moving .player__marker::after { animation: aura-ripple .9s ease-out infinite; }
.player__intro {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -41px;
  width: 0;
  height: 0;
}
.player__welcome {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-50%);
  transform-origin: center bottom;
  padding: 7px 13px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(155deg, #fff, #d9faff);
  box-shadow: 0 5px 0 rgba(3, 26, 59, .38), 0 0 19px rgba(108, 236, 255, .68);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
  animation: welcome-pulse 1.7s ease-in-out infinite;
}
.player__welcome::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #d9faff;
}
.player__puff {
  position: absolute;
  left: -11px;
  top: 8px;
  width: 22px;
  height: 19px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 30%, #c9f9ff 55%, rgba(82, 215, 255, .35) 80%);
  box-shadow: 0 0 11px rgba(173, 245, 255, .8);
  opacity: 0;
}
.player__puff:nth-of-type(2) { --puff-x: -61px; --puff-y: -21px; }
.player__puff:nth-of-type(3) { --puff-x: -43px; --puff-y: -48px; }
.player__puff:nth-of-type(4) { --puff-x: 0px; --puff-y: -55px; }
.player__puff:nth-of-type(5) { --puff-x: 50px; --puff-y: -41px; }
.player__puff:nth-of-type(6) { --puff-x: 65px; --puff-y: -8px; }
.player__puff:nth-of-type(7) { --puff-x: 13px; --puff-y: 27px; }
.player.has-started .player__welcome { animation: welcome-burst .58s ease-out both; }
.player.has-started .player__puff { animation: puff-burst .7s ease-out both; }
.player:not(.has-started).has-context-hint .player__intro { visibility: hidden; }
.player__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: -37px;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: white;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 0 5px 0 rgba(3, 26, 59, .35);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, visibility .18s;
}
.player.has-context-hint .player__hint { opacity: 1; visibility: visible; }
.player.can-interact .player__hint {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(23, 229, 255, .8);
}

.hud-panel {
  position: fixed;
  z-index: 18;
  color: white;
  background: linear-gradient(140deg, #031837, #042b50);
  border: 1px solid rgba(25, 229, 255, .58);
  box-shadow: 0 12px 30px rgba(0, 10, 30, .42), inset 0 1px rgba(255,255,255,.05);
  clip-path: polygon(0 11px, 11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}
.eyebrow, .player-card__title {
  display: block;
  color: #d8ecff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.player-card { left: 22px; bottom: 18px; width: 360px; min-height: 150px; padding: 12px 16px; }
.player-card__title { padding-bottom: 7px; border-bottom: 1px solid rgba(33, 219, 255, .55); }
.player-card__body { display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: center; padding-top: 8px; }
.player-card__body img { width: 66px; height: 66px; object-fit: contain; background: rgba(6, 71, 119, .75); border: 2px solid #16dcff; border-radius: 4px; }
.hearts { color: #ff5d64; letter-spacing: .12em; text-shadow: 0 2px #6d1a2a; margin-bottom: 5px; }
.level-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.progress { height: 9px; margin: 6px 0 3px; border: 2px solid #bceeff; border-radius: 5px; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan), #55ffa6); transition: width .3s ease; }
.player-card small { color: #a9c8e8; font-size: 10px; }

.controls-card { left: 50%; bottom: 8px; width: min(720px, 48vw); min-height: 132px; padding: 12px 22px 16px; transform: translateX(-50%); }
.controls-card .eyebrow { border-bottom: 1px solid rgba(33, 219, 255, .45); padding-bottom: 7px; }
.control-row { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 51px; font-size: 12px; color: #d8e9fb; }
kbd { display: inline-grid; place-items: center; min-width: 29px; height: 29px; padding: 0 5px; border: 2px solid #bed8ee; border-radius: 5px; background: #0b2245; box-shadow: inset 0 -3px rgba(255,255,255,.08); color: white; font: 700 14px/1 monospace; }
.keys { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.keys span { display: flex; gap: 2px; }
.keys kbd { min-width: 23px; height: 21px; font-size: 11px; }
.separator { width: 1px; height: 34px; background: rgba(25, 229, 255, .34); margin: 0 7px; }
.pin-icon { color: var(--cyan); text-shadow: 0 0 9px var(--cyan); font-size: 24px; }

.mini-map { right: 22px; bottom: 18px; width: 340px; height: 185px; padding: 12px 15px; }
.mini-map__map {
  position: relative;
  height: 145px;
  margin-top: 6px;
  overflow: hidden;
  border: 2px solid rgba(172, 237, 255, .7);
  border-radius: 5px;
  background-color: #072442;
  background-image:
    radial-gradient(ellipse at 50% 48%, rgba(45, 155, 126, .34) 0 32%, transparent 34%),
    linear-gradient(rgba(132, 247, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 247, 255, .08) 1px, transparent 1px);
  background-position: center, 0 0, 0 0;
  background-size: auto, 24px 24px, 24px 24px;
}
.mini-map__map > span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px 3px var(--gold);
}
.mini-map__dot {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 3px solid white;
  border-radius: 50%;
  background: #127cff;
  box-shadow: 0 0 0 3px #127cff, 0 0 12px 5px var(--cyan);
}

.destination-dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 168px;
  display: flex;
  gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  transform: translateX(-50%) translateY(20px);
  border: 1px solid rgba(23, 229, 255, .55);
  border-radius: 12px;
  background: rgba(3, 24, 55, .94);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}
.destination-dock.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.destination-dock button {
  border: 1px solid rgba(23, 229, 255, .38);
  border-radius: 8px;
  padding: 9px 12px;
  background: #0b2c55;
  cursor: pointer;
  white-space: nowrap;
}
.destination-dock button:hover, .destination-dock button:focus-visible { border-color: var(--cyan); color: var(--cyan); }

.touch-controls { display: none; }

.info-dialog {
  width: min(620px, calc(100vw - 32px));
  margin: auto;
  padding: clamp(24px, 4vw, 44px);
  color: white;
  border: 1px solid rgba(23, 229, 255, .7);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 5%, rgba(23, 229, 255, .18), transparent 30%),
    linear-gradient(145deg, #071c3b, #0a315b);
  box-shadow: 0 24px 80px rgba(0, 5, 25, .75), inset 0 1px rgba(255,255,255,.09);
}
.info-dialog::backdrop { background: rgba(0, 10, 30, .78); }
.info-dialog[open] { animation: dialog-in .25s ease both; }
.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  font-size: 27px;
  cursor: pointer;
}
.dialog-kicker { display: block; color: var(--cyan); letter-spacing: .22em; text-transform: uppercase; font-size: 11px; font-weight: 800; }
.info-dialog h1 { margin: 10px 0 14px; font-size: clamp(28px, 5vw, 48px); line-height: 1; }
.info-dialog p { color: #cfe4f7; line-height: 1.65; }
.info-dialog ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 0; list-style: none; }
.info-dialog li { padding: 10px 12px; border: 1px solid rgba(23, 229, 255, .2); border-radius: 8px; background: rgba(255,255,255,.04); }
.dialog-actions { display: flex; gap: 10px; margin-top: 24px; }
.dialog-actions a, .dialog-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.dialog-actions .secondary { background: transparent; color: white; }

.noscript-panel { position: fixed; z-index: 100; inset: 10%; padding: 30px; background: var(--navy); border: 1px solid var(--cyan); }

@keyframes pulse-ring { from { transform: translate(-50%, -50%) scale(.7); opacity: .85; } to { transform: translate(-50%, -50%) scale(1.55); opacity: 0; } }
@keyframes marker-breathe { 50% { transform: translateX(-50%) scale(1.08); opacity: .74; } }
@keyframes aura-ripple { from { transform: scale(.72); opacity: .6; } to { transform: scale(1.26); opacity: 0; } }
@keyframes welcome-pulse { 50% { transform: translateX(-50%) translateY(-4px) scale(1.07); box-shadow: 0 8px 0 rgba(3, 26, 59, .34), 0 0 28px rgba(108, 236, 255, .9); } }
@keyframes welcome-burst { 0% { transform: translateX(-50%) scale(1); opacity: 1; } 25% { transform: translateX(-50%) scale(1.28); opacity: 1; } 100% { transform: translateX(-50%) translateY(-20px) scale(.25); opacity: 0; } }
@keyframes puff-burst { 0% { transform: translate(0, 0) scale(.35); opacity: 0; } 22% { opacity: .96; } 100% { transform: translate(var(--puff-x), var(--puff-y)) scale(1.2); opacity: 0; } }
@keyframes player-idle { 50% { transform: translateY(-1px) scaleY(1.015); } }
@keyframes player-step { to { transform: translateY(-1.5px); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes world-light-drift { to { transform: translate3d(1.4%, .7%, 0) scale(1.015); opacity: .62; } }
@keyframes world-water-shimmer { to { transform: translate3d(1.8%, -.8%, 0) scale(1.018); opacity: .38; } }

@media (max-width: 1400px) {
  .player-card { width: 320px; }
  .controls-card { width: 45vw; }
  .mini-map { width: 300px; }
}

@media (max-width: 1180px) {
  .player-card { width: 300px; }
  .mini-map { width: 260px; }
  .controls-card { width: 46vw; }
  .control-row .separator:last-of-type, .control-row .pin-icon, .control-row .pin-icon + span { display: none; }
}

@media (max-width: 900px) {
  .game-shell { min-height: 0; }
  .topbar { top: max(10px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); }
  .brand { width: 190px; }
  .controls-card, .mini-map { display: none; }
  .game-shell::after { height: 125px; }
  .player-card { left: 10px; bottom: 10px; width: 220px; min-height: 88px; padding: 8px 10px; }
  .player-card__title { display: none; }
  .player-card__body { grid-template-columns: 46px 1fr; gap: 8px; padding-top: 0; }
  .player-card__body img { width: 46px; height: 46px; }
  .hearts { font-size: 11px; margin: 0; }
  .level-row { font-size: 10px; }
  .player-card small { display: none; }
  .touch-controls {
    position: fixed;
    z-index: 22;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, 46px);
    grid-template-rows: repeat(3, 46px);
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(119, 231, 255, .56);
    border-radius: 27px;
    background: radial-gradient(circle at 50% 50%, rgba(19, 99, 153, .94), rgba(3, 27, 61, .96) 71%);
    box-shadow: 0 12px 28px rgba(0, 13, 38, .53), inset 0 1px rgba(215, 251, 255, .25), 0 0 18px rgba(23, 229, 255, .12);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  .touch-controls button {
    display: grid;
    place-items: center;
    border: 1px solid rgba(165, 239, 255, .72);
    border-radius: 13px;
    background: linear-gradient(145deg, #174878, #072a56 68%, #061f43);
    box-shadow: inset 0 1px rgba(233, 253, 255, .22), inset 0 -3px rgba(0, 15, 40, .32), 0 3px 7px rgba(0, 9, 29, .36);
    color: #e9fcff;
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(80, 223, 255, .55);
    user-select: none;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }
  .touch-controls button[data-move="up"] { grid-column: 2; grid-row: 1; }
  .touch-controls button[data-move="left"] { grid-column: 1; grid-row: 2; }
  .touch-controls button[data-action="interact"] {
    grid-column: 2;
    grid-row: 2;
    border-radius: 50%;
    border-color: rgba(255, 208, 87, .94);
    background: radial-gradient(circle at 35% 25%, #1a80b7, #083660 70%);
    box-shadow: 0 0 14px rgba(23, 229, 255, .42), inset 0 1px rgba(255, 255, 255, .35);
    color: #fff8df;
    font-size: 16px;
  }
  .touch-controls button[data-move="right"] { grid-column: 3; grid-row: 2; }
  .touch-controls button[data-move="down"] { grid-column: 2; grid-row: 3; }
  .touch-controls button.is-pressed, .touch-controls button:active {
    transform: translateY(2px) scale(.96);
    border-color: #ddfbff;
    background: linear-gradient(145deg, #1a87b7, #075385);
    box-shadow: 0 0 17px rgba(23, 229, 255, .7), inset 0 0 13px rgba(199, 251, 255, .25);
  }
  .touch-controls button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
  .destination-dock {
    left: 10px;
    right: 10px;
    bottom: 112px;
    max-width: none;
    overflow-x: auto;
    justify-content: flex-start;
    transform: translateY(16px);
  }
  .destination-dock.is-open { transform: translateY(0); }
  .location { width: 225px; height: 78px; }
  .location__label { font-size: 16px; min-width: 175px; }
}

@media (max-width: 520px) {
  .brand { width: 168px; }
  .player-card { width: 188px; }
  .player-card__body { grid-template-columns: 40px 1fr; }
  .player-card__body img { width: 40px; height: 40px; }
  .level-row span { display: none; }
  .location--contact .location__label { transform: translate(-50%, calc(50% - 26px)); }
  .location--contact.is-near .location__label { transform: translate(-50%, calc(50% - 30px)); }
  .info-dialog ul { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .player-card { bottom: 10px; width: 132px; min-height: 78px; padding: 6px 7px; }
  .player-card__body { grid-template-columns: 30px 1fr; gap: 5px; }
  .player-card__body img { width: 30px; height: 38px; }
  .hearts { font-size: 9px; margin-bottom: 2px; }
  .level-row { font-size: 9px; }
  .progress { height: 7px; margin-top: 4px; }
  .location--contact .location__label { transform: translate(-50%, calc(50% - 46px)); }
  .location--contact.is-near .location__label { transform: translate(-50%, calc(50% - 50px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
