:root {
  color-scheme: dark;
  --base: #111420;
  --panel: #1a1e2d;
  --line: #303546;
  --dim: #a1a7b9;
  --cream: #f6f5f0;
  --accent: #ff815b;
  --mint: #73e8ce;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: 'Inter', 'Avenir Next', 'Segoe UI', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--base);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--cream);
  font-family: var(--sans);
  min-height: 100svh;
  background: radial-gradient(ellipse at 63% 28%, #1d2131 0%, #141826 52%, #111420 90%);
}
button,
a {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  cursor: pointer;
  background: none;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-style: normal;
}
i svg {
  width: 100%;
  height: 100%;
  display: block;
}
button {
  touch-action: manipulation;
}
[hidden] {
  display: none !important;
}
.masthead {
  border-bottom: 1px solid #2a2e3b;
  background: rgba(16, 19, 30, 0.97);
}
.top-inner,
main {
  width: min(1500px, calc(100% - clamp(40px, 7vw, 128px)));
  margin: auto;
}
.top-inner {
  height: 70px;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 82px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 36px;
  color: var(--accent);
}
.wordmark {
  font-family: 'Avenir Next', Arial, sans-serif;
  font-style: italic;
  font-weight: 1000;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -2px;
  transform: skewX(-7deg);
}
.arcade {
  font: 700 9px var(--mono);
  letter-spacing: 1.55px;
  border-left: 1px solid #4a4b57;
  padding-left: 12px;
  margin-left: 4px;
  color: #c1c3ce;
}
.tabs {
  display: flex;
  align-self: stretch;
  gap: 24px;
}
.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: #a6aabb;
  padding: 0 3px;
}
.nav-tab i {
  width: 16px;
  height: 16px;
}
.nav-tab.active {
  color: var(--cream);
}
.nav-tab.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1px;
  right: 1px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.nav-tab.active i {
  color: var(--accent);
}
button:hover {
  color: white;
}
.utility {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.utility-btn,
.close-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #c6c8d6;
}
.utility-btn i,
.close-btn i {
  width: 19px;
  height: 19px;
}
.utility-btn:hover,
.close-btn:hover {
  background: #2b3041;
}
.utility-divider {
  width: 1px;
  height: 17px;
  background: #363a47;
}
.level-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 19px;
  gap: 16px;
}
.eyebrow,
.hud-label,
.loadout-title,
.control-heading {
  font: 700 10px/1.3 var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.world-label {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 9px;
}
.world-dashes {
  display: inline-block;
  width: 17px;
  height: 9px;
  transform: skewX(-24deg);
  background: repeating-linear-gradient(
    to right,
    var(--accent) 0px,
    var(--accent) 3px,
    transparent 3px,
    transparent 6px
  );
}
h1,
h2 {
  font-family: 'Avenir Next', var(--sans);
  margin: 0;
  letter-spacing: -2px;
  line-height: 1.06;
  font-weight: 850;
}
h1 {
  font-size: clamp(37px, 3.8vw, 60px);
  margin-top: 5px;
}
.title-dot {
  color: var(--accent);
}
.objective {
  display: flex;
  align-items: center;
  gap: 12px;
}
.objective-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid #48403e;
  background: #2c2426;
  color: var(--accent);
  border-radius: 10px;
}
.objective i {
  width: 20px;
  height: 20px;
}
.objective .eyebrow {
  letter-spacing: 1.1px;
  font-size: 9px;
  color: #a5a9b8;
  margin-bottom: 3px;
}
.objective strong {
  font-size: 14px;
  font-weight: 650;
}
.frame {
  overflow: hidden;
  border: 1px solid #3b4050;
  border-radius: 16px;
  background: #1a1e2b;
  box-shadow: 0 12px 40px #090a142e;
}
.screen {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(360px, calc(100svh - 285px), 830px);
  user-select: none;
  overflow: hidden;
  background: linear-gradient(#70c5e1, #f8eaca);
  touch-action: none;
}
.screen:after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 21%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(17, 29, 39, 0.32));
  z-index: 0;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none !important;
  touch-action: none;
  cursor: grab;
}
canvas:active {
  cursor: grabbing;
}
.hud-top,
.hud-location,
.route-hud,
.toast,
.touch-controls {
  position: absolute;
  z-index: 1;
}
.hud-top {
  top: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}
.shard-meter {
  background: linear-gradient(135deg, #252f40f2, #1d2739ee);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 15px 8px 10px;
  border: 1px solid #ffffff38;
  border-radius: 13px;
  box-shadow: 0 3px 8px #18323d2b;
}
.shard-medal {
  display: grid;
  place-items: center;
  width: 33px;
  height: 36px;
  filter: drop-shadow(0 2px 3px #993f2b48);
}
.shard-medal i {
  width: 33px;
  height: 36px;
}
.hud-label {
  color: #d4d7de;
  font-size: 8px;
  letter-spacing: 1.2px;
}
.digits {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.06;
  font-family: 'Avenir Next', var(--sans);
  font-variant-numeric: tabular-nums;
}
.digits b {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.7px;
}
.digits span {
  font-size: 12px;
  color: #bcc3cf;
  font-weight: 650;
}
.digits span:first-of-type {
  color: #74818e;
}
.screen-btn {
  pointer-events: auto;
  background: #202a3ae3;
  height: 37px;
  width: 37px;
  border: 1px solid #ffffff40;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.screen-btn i {
  width: 17px;
  height: 17px;
}
.screen-btn:hover {
  background: #1b283b;
}
.hud-location,
.route-hud {
  bottom: 19px;
  display: flex;
  align-items: center;
  color: #fff;
  filter: drop-shadow(0 1px 3px #123747aa);
}
.hud-location {
  left: 22px;
  gap: 7px;
  font: 700 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.35px;
}
.hud-location i {
  width: 15px;
  height: 15px;
}
.route-hud {
  right: 22px;
  gap: 8px;
}
.route-hud i {
  width: 14px;
  height: 14px;
}
.route-dots {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
}
.route-dots:before {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  height: 1px;
  background: #ffffff8a;
  z-index: -1;
}
.route-dots b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a9b7bb;
  outline: 1px solid #fff9;
}
.route-dots b.done {
  background: var(--mint);
  outline-color: #a6ffdf;
}
.route-dots b.current {
  background: white;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.toast {
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  background: #192637f2;
  border: 1px solid #7ae9c08c;
  border-radius: 11px;
  padding: 10px 16px;
  font-weight: 650;
  font-size: 13px;
  text-align: center;
  max-width: 60%;
  pointer-events: none;
}
.toast small {
  display: block;
  font: 700 9px var(--mono);
  letter-spacing: 1.2px;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.control-strip {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 0 22px;
  min-height: 51px;
  background: #1b1f2c;
}
.control-heading,
.loadout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b1b5c5;
  letter-spacing: 1.15px;
  font-size: 9px;
}
.control-heading {
  padding-right: 21px;
  border-right: 1px solid #383d4b;
}
.control-heading i,
.loadout-title i {
  width: 17px;
  height: 17px;
  color: #b5bbcc;
}
.bindings,
.binding,
.key-group,
.text-btn {
  display: flex;
  align-items: center;
}
.bindings {
  gap: 25px;
}
.binding,
.text-btn {
  font-size: 12px;
  color: #c7c9d4;
  gap: 7px;
}
.key-group {
  gap: 3px;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 21px;
  padding: 0 5px;
  background: #2b2f3e;
  border: 1px solid #454a5d;
  border-bottom-width: 2px;
  border-radius: 4px;
  font: 600 10px var(--mono);
  color: #dadde6;
}
.mouse-icon {
  height: 17px;
  width: 16px;
}
.text-btn {
  margin-left: auto;
  font-weight: 650;
  padding: 7px 0;
}
.text-btn i {
  width: 15px;
  height: 15px;
}
.loadout {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 2px 20px;
}
.loadout-title i {
  color: var(--accent);
}
#loadout-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skill-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a3a8b8;
  border: 1px solid #363b4b;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  padding: 6px 11px;
  background: #1c2030;
  white-space: nowrap;
}
.skill-chip i {
  width: 14px;
  height: 14px;
}
.skill-chip:not(.locked) i {
  color: var(--mint);
}
.skill-chip.locked {
  color: #a7abbb;
  background: #191d2b;
}
.chip-cost {
  font: 600 9px var(--mono);
  color: #aeb3c3;
  padding-left: 6px;
  border-left: 1px solid #434655;
}
.chip-cost i {
  display: inline;
  font-size: 8px;
  color: #ffd47d;
}
.skill-chip:hover,
.skill-chip:focus-visible {
  background: #2a2e40;
}
.loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1d293b;
  color: #f5eee4;
  font-weight: 650;
}
.loader {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff40;
  border-top-color: var(--accent);
  border-radius: 30px;
  animation: rotate 0.7s linear infinite;
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
.touch-controls {
  display: none;
}
.frame:fullscreen {
  border: 0;
  border-radius: 0;
  height: 100dvh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}
.frame:fullscreen .screen {
  height: auto;
  flex: 1;
}
dialog {
  color: var(--cream);
  background: #1b2030;
  border: 1px solid #464a5c;
  border-radius: 18px;
  padding: 0;
  width: min(455px, calc(100vw - 32px));
  max-height: 88dvh;
  box-shadow: 0 20px 100px #07091480;
}
dialog::backdrop {
  background: #0b0f1bb3;
  backdrop-filter: blur(5px);
}
.dialog-inner {
  padding: 25px 28px 29px;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-top .eyebrow {
  color: var(--accent);
}
.close-btn {
  width: 27px;
  height: 27px;
}
.close-btn i {
  width: 16px;
  height: 16px;
}
h2 {
  font-size: 33px;
  letter-spacing: -1.3px;
  margin: 6px 0 20px;
}
#dialog-body p {
  color: #bcc1d1;
  font-size: 14px;
  line-height: 1.55;
}
.guide-row,
.module-row {
  padding: 12px 0;
  border-top: 1px solid #383d4c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.guide-row > span:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #aeb6c4;
  font-size: 12px;
}
.module-row {
  gap: 13px;
  align-items: flex-start;
}
.module-art {
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #243c40;
  color: var(--mint);
  display: grid;
  place-items: center;
}
.module-art i {
  width: 21px;
  height: 21px;
}
.module-row.locked .module-art {
  background: #303346;
  color: #c6c8d9;
}
.module-info {
  flex: 1;
}
.module-info strong {
  display: block;
  font-size: 14px;
}
.module-info p {
  margin: 3px 0 7px;
  font-size: 12px !important;
}
.progress {
  height: 3px;
  background: #383d4e;
  border-radius: 2px;
  overflow: hidden;
  margin: 5px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.mini-label {
  font: 600 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--mint);
}
.module-row.locked .mini-label {
  color: #efbd8d;
}
#dialog-actions {
  display: flex;
  gap: 9px;
  margin-top: 19px;
}
.primary,
.secondary {
  padding: 10px 15px;
  border-radius: 7px;
  font-weight: 750;
  font-size: 13px;
}
.primary {
  background: var(--accent);
  color: #191b25;
}
.primary:hover {
  color: #171a28;
  background: #ff9775;
}
.secondary {
  border: 1px solid #4c5265;
}
.result-stats {
  display: flex;
  gap: 22px;
  margin: 18px 0;
}
.result-stats b,
.result-stats small {
  display: block;
}
.result-stats b {
  font-size: 23px;
}
.result-stats small {
  font: 600 9px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b7bccd;
}
@media (min-width: 1600px) {
  .top-inner {
    height: 78px;
  }
  .level-intro {
    margin: 32px 0 24px;
  }
  .screen {
    height: clamp(500px, calc(100svh - 318px), 840px);
  }
}
@media (max-width: 850px) {
  .top-inner,
  main {
    width: calc(100% - 36px);
  }
  .top-inner {
    height: 58px;
    gap: 30px;
  }
  .tabs {
    gap: 12px;
  }
  .arcade {
    display: none;
  }
  .level-intro {
    margin: 20px 0 14px;
  }
  .screen {
    height: clamp(340px, calc(100svh - 248px), 780px);
  }
  .bindings {
    gap: 13px;
  }
  .control-heading {
    display: none;
  }
  .control-strip {
    padding: 0 15px;
    gap: 8px;
  }
  .objective strong {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .top-inner,
  main {
    width: calc(100% - 24px);
  }
  .top-inner {
    height: 52px;
    gap: 0;
    justify-content: space-between;
  }
  .brand {
    gap: 6px;
  }
  .brand-mark {
    width: 29px;
    height: 28px;
  }
  .wordmark {
    font-size: 23px;
  }
  .tabs {
    gap: 10px;
    margin: 0 auto;
  }
  .nav-tab {
    font-size: 12px;
  }
  .nav-tab i {
    display: none;
  }
  .utility {
    gap: 0;
    margin: 0;
  }
  .utility-btn {
    width: 29px;
  }
  .utility-divider {
    display: none;
  }
  .level-intro {
    margin: 15px 0 12px;
  }
  .world-label {
    font-size: 8px;
  }
  h1 {
    font-size: 33px;
    margin-top: 3px;
  }
  .world-dashes {
    height: 7px;
  }
  .objective {
    gap: 7px;
  }
  .objective-icon {
    width: 27px;
    height: 27px;
    border-radius: 7px;
  }
  .objective i {
    width: 15px;
    height: 15px;
  }
  .objective strong {
    font-size: 10px;
  }
  .objective .eyebrow {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .frame {
    border-radius: 12px;
  }
  .screen {
    height: clamp(330px, calc(100svh - 220px), 730px);
  }
  .hud-top {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .hud-location {
    left: 13px;
    bottom: 12px;
    font-size: 8px;
  }
  .route-hud {
    right: 13px;
    bottom: 12px;
  }
  .shard-meter {
    gap: 5px;
    padding: 5px 9px 5px 6px;
    border-radius: 9px;
  }
  .shard-medal,
  .shard-medal i {
    width: 26px;
    height: 30px;
  }
  .digits b {
    font-size: 19px;
  }
  .hud-label {
    font-size: 6px;
  }
  .screen-btn {
    width: 31px;
    height: 31px;
  }
  .control-strip {
    min-height: 36px;
    font-size: 11px;
  }
  .binding {
    font-size: 10px;
  }
  .bindings {
    gap: 9px;
  }
  .binding:last-child {
    display: none;
  }
  .key-group {
    gap: 1px;
  }
  kbd {
    min-width: 14px;
    padding: 0 3px;
    height: 18px;
    font-size: 8px;
  }
  .text-btn {
    font-size: 10px;
  }
  .loadout {
    gap: 10px;
    padding: 12px 0;
    align-items: flex-start;
  }
  .loadout-title {
    font-size: 7px;
    gap: 4px;
    padding-top: 5px;
  }
  .loadout-title i {
    width: 13px;
    height: 13px;
  }
  .skill-chip {
    padding: 4px 6px;
    font-size: 9px;
    gap: 4px;
  }
  .skill-chip i {
    width: 10px;
    height: 10px;
  }
  #loadout-items {
    gap: 4px;
  }
  .chip-cost {
    font-size: 8px;
  }
  .toast {
    top: 60px;
    font-size: 11px;
    max-width: 85%;
    width: max-content;
  }
  .route-dots {
    gap: 5px;
  }
}
@media (pointer: coarse) {
  .touch-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    pointer-events: none;
    bottom: 41px;
    left: 18px;
    right: 18px;
  }
  .stick,
  .touch-buttons button {
    pointer-events: auto;
    touch-action: none;
    border-radius: 50%;
    border: 1px solid #fff8;
    background: #1d354a77;
  }
  .stick {
    width: 79px;
    height: 79px;
    display: grid;
    place-items: center;
  }
  .stick span {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffffe3;
    box-shadow: 0 2px 8px #15274255;
  }
  .touch-buttons {
    display: flex;
    align-items: flex-end;
    gap: 9px;
  }
  .touch-buttons button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: white;
  }
  .touch-buttons button i {
    width: 25px;
    height: 25px;
  }
  .touch-buttons button:disabled {
    opacity: 0.42;
  }
  .touch-buttons #touch-jump {
    width: 62px;
    height: 62px;
    background: #f27d57d6;
  }
  .bindings {
    display: none;
  }
  .control-heading {
    display: flex;
    border: 0;
  }
  .control-strip {
    min-height: 38px;
  }
  .screen:after {
    height: 27%;
  }
}
@media (max-height: 550px) and (orientation: landscape) {
  .masthead .top-inner {
    height: 40px;
  }
  .level-intro {
    margin: 8px 0;
  }
  .level-intro h1 {
    font-size: 25px;
  }
  .world-label {
    font-size: 7px;
  }
  .screen {
    height: calc(100svh - 149px);
    min-height: 190px;
  }
  .control-strip {
    min-height: 32px;
  }
  .loadout {
    padding: 8px 0;
  }
  .touch-controls {
    bottom: 25px;
  }
  .stick {
    width: 60px;
    height: 60px;
  }
  .hud-location,
  .route-hud {
    bottom: 8px;
  }
  .hud-top {
    top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .loader {
    animation: none;
  }
}
.touch-controls,
.touch-controls button {
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 851px) and (max-width: 1599px) {
  .screen {
    height: clamp(345px, calc(100svh - 314px), 815px);
  }
}
.hud-tally {
  display: flex;
  align-items: center;
  gap: 8px;
}
#pip-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d6fff080;
  border-radius: 8px;
  background: #1e3442e6;
  color: #abf8d9;
  padding: 6px 9px;
  font-weight: 700;
  font-size: 12px;
}
#pip-tag i {
  width: 15px;
  height: 15px;
}
.module-toggle {
  align-self: center;
  border: 1px solid #495063;
  border-radius: 6px;
  color: #c9cdd7;
  font-size: 11px;
  font-weight: 650;
  padding: 6px 9px;
}
.module-toggle:hover {
  background: #32394b;
}
.module-toggle.install {
  color: #172b30;
  background: var(--mint);
  border-color: var(--mint);
}
@media (max-width: 600px) {
  .loadout {
    display: block;
  }
  .loadout-title {
    font-size: 8px;
    margin-bottom: 6px;
    padding: 0;
  }
  .skill-chip {
    padding: 5px 7px;
  }
  .screen {
    height: clamp(330px, calc(100svh - 232px), 730px);
  }
}
.screen-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}
.leave-fullscreen {
  display: none;
}
.frame:fullscreen .leave-fullscreen {
  display: grid;
}

/* Expedition navigation and in-game combat readouts. */
.world-label,
.title-dot {
  color: var(--world-accent, var(--accent));
}
.world-dashes {
  background: repeating-linear-gradient(
    to right,
    var(--world-accent, var(--accent)) 0px,
    var(--world-accent, var(--accent)) 3px,
    transparent 3px,
    transparent 6px
  );
}
.combat-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 11px;
  background: linear-gradient(135deg, #252f40ef, #1d2739eb);
  border: 1px solid #ffffff38;
  border-radius: 11px;
  color: #ff9177;
  box-shadow: 0 3px 8px #18323d2b;
}
.vitality {
  display: grid;
  gap: 3px;
}
.vitality .hud-label {
  font-size: 7px;
  letter-spacing: 1.05px;
}
#hearts {
  display: flex;
  gap: 3px;
  line-height: 1;
}
#hearts i {
  width: 13px;
  height: 13px;
}
#hearts .empty {
  color: #74818d;
  opacity: 0.5;
}
.enemy-meter {
  height: 25px;
  border-left: 1px solid #ffffff30;
  padding-left: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #edeff0;
}
.enemy-meter > i {
  width: 17px;
  height: 17px;
  color: #e3b7ab;
}
.enemy-meter strong {
  font-size: 14px;
}
.enemy-meter small {
  font: 600 10px var(--mono);
  color: #bac2ce;
}
.damage-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  box-shadow: inset 0 0 55px 11px #ff654b;
}
#touch-attack {
  background: #484378d9;
  border-color: #e1c4ff;
}
#panel[data-kind='worlds'] {
  width: min(780px, calc(100vw - 28px));
}
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  padding: 0;
  border: 1px solid #3c4355;
  border-radius: 10px;
  background: #232938;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.world-card:hover,
.world-card:focus-visible {
  border-color: var(--postmark);
  transform: translateY(-2px);
}
.world-card.here {
  border-color: var(--postmark);
}
.world-image {
  display: block;
  width: 100%;
  aspect-ratio: 2.55;
  background-color: #344252;
  background-position: center;
  background-size: cover;
  position: relative;
}
.world-number,
.world-mark {
  display: grid;
  place-items: center;
  position: absolute;
  top: 7px;
  left: 8px;
  min-width: 23px;
  height: 20px;
  padding: 0 5px;
  background: #171d29d9;
  color: white;
  font: 700 10px var(--mono);
  border-radius: 4px;
}
.world-mark {
  right: 7px;
  left: auto;
  min-width: 20px;
  padding: 3px;
  color: #91efcb;
}
.world-mark i {
  width: 13px;
  height: 13px;
}
.world-card-info {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 10px 24px 12px 10px;
}
.world-card-info strong {
  font-size: 14px;
  font-weight: 750;
}
.world-card-info small {
  color: #b4bdce;
  font-size: 10px;
}
.world-card-info > i {
  position: absolute;
  right: 9px;
  top: 13px;
  width: 13px;
  height: 13px;
  color: var(--postmark);
}
#dialog-body .travel-hint {
  margin-bottom: 0;
  font-size: 12px;
}
#panel[data-kind='finish'] #dialog-actions,
#panel[data-kind='paused'] #dialog-actions {
  flex-wrap: wrap;
}
@media (max-width: 850px) {
  .top-inner {
    gap: 16px;
  }
  .tabs {
    gap: 12px;
  }
  .bindings {
    gap: 12px;
  }
  .result-stats {
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .nav-tab[data-action='play'] {
    display: none;
  }
  .top-inner {
    gap: 0;
  }
  .tabs {
    gap: 8px;
  }
  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .world-card-info {
    padding: 7px 19px 8px 8px;
  }
  .world-card-info strong {
    font-size: 12px;
  }
  .world-card-info small {
    font-size: 9px;
  }
  #panel[data-kind='worlds'] .dialog-inner {
    padding: 17px;
  }
  .combat-meter {
    gap: 6px;
    padding: 5px 7px;
    border-radius: 8px;
  }
  .enemy-meter {
    gap: 3px;
    padding-left: 6px;
  }
  .enemy-meter i {
    width: 13px;
    height: 13px;
  }
  .enemy-meter strong {
    font-size: 11px;
  }
  .enemy-meter small {
    font-size: 8px;
  }
  .hud-tally {
    gap: 4px;
  }
  #hearts {
    gap: 2px;
  }
  #hearts i {
    width: 10px;
    height: 10px;
  }
  .vitality .hud-label {
    font-size: 6px;
  }
  #pip-tag {
    padding: 4px;
    font-size: 0;
    gap: 0;
  }
  .result-stats {
    column-gap: 12px;
    flex-wrap: wrap;
  }
  .result-stats b {
    font-size: 18px;
  }
}
@media (max-width: 420px) {
  .level-intro:has(#world-name) h1 {
    font-size: clamp(23px, 7.2vw, 31px);
  }
  .objective {
    max-width: 39%;
  }
  .objective strong {
    display: block;
    line-height: 1.2;
  }
  .touch-controls {
    left: 12px;
    right: 12px;
  }
  .touch-buttons {
    gap: 5px;
  }
  .touch-buttons button {
    width: 42px;
    height: 42px;
  }
  .touch-buttons #touch-jump {
    width: 54px;
    height: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-card {
    transition: none;
  }
}
