:root {
  --navy: #102d3a;
  --ink: #18323e;
  --paper: #f4efe2;
  --gold: #dfb878;
  --sea: #99d4c8;
  --muted: #a6babf;
  --line: rgba(221, 232, 224, 0.14);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--paper);
  background: var(--navy);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.landing {
  position: relative;
  min-height: 100dvh;
  background: #133640 url("/assets/tidebound-keyart.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 7vw 110px;
  gap: 50px;
}
.land-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 29, 42, 0.7),
      rgba(8, 29, 42, 0.22) 55%,
      rgba(8, 29, 42, 0.28)
    ),
    linear-gradient(0deg, rgba(7, 25, 32, 0.65), transparent 35%);
}
.land-header,
.land-footer {
  position: absolute;
  left: 7vw;
  right: 7vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.land-header {
  top: 38px;
}
.wordmark {
  font-family: Georgia, serif;
  font-size: 23px;
  letter-spacing: 0.22em;
  color: #fff3cf;
}
.world-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #e1ebe7;
  background: #153947a6;
  border: 1px solid #b9d7d72b;
  border-radius: 24px;
  padding: 10px 15px;
  backdrop-filter: blur(10px);
}
i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ddcae;
  box-shadow: 0 0 10px #9ddcae88;
  margin-right: 7px;
}
.welcome-copy {
  position: relative;
  z-index: 1;
  max-width: 550px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.21em;
  color: var(--gold);
  margin: 0 0 15px;
}
.welcome-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(55px, 5.5vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  text-shadow: 0 3px 30px #051b2866;
}
.intro {
  font-size: 16px;
  line-height: 1.8;
  color: #dbe4e0;
}
.landing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 38px;
  font-size: 11px;
  color: #e7d6b7;
}
.voyage-card {
  position: relative;
  z-index: 2;
  width: 420px;
  flex-shrink: 0;
  padding: 32px;
  background: linear-gradient(135deg, #173b49ed, #102d3af5);
  border: 1px solid #e0cfaa35;
  border-radius: 18px;
  box-shadow: 0 20px 80px #03162370;
  backdrop-filter: blur(16px);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-top .eyebrow {
  font-size: 8px;
  margin: 0;
}
.edition {
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #9eb6bc;
}
.voyage-card h2,
.modal h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  margin: 21px 0 8px;
  letter-spacing: -0.02em;
}
.card-description {
  font-size: 12px;
  color: #adc3c7;
  margin: 0 0 23px;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.class-card {
  border: 1px solid #99bab52b;
  background: #0b263633;
  border-radius: 9px;
  padding: 12px 3px 14px;
  text-align: center;
  transition: 0.2s;
}
.class-card:hover {
  background: #35616b55;
  transform: translateY(-2px);
}
.class-card.selected {
  border-color: #d8b477;
  background: #dbc28f13;
  box-shadow: inset 0 0 20px #d9c28b08;
}
.class-card canvas {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  image-rendering: pixelated;
}
.class-card strong {
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}
.class-card span {
  display: block;
  font-size: 6px;
  letter-spacing: 0.11em;
  color: #98b2b9;
  margin-top: 6px;
}
.class-description {
  font-size: 11px;
  color: #c7d4cd;
  min-height: 16px;
  margin: 14px 0 23px;
}
label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #afc4c7;
  margin: 12px 0 8px;
}
input {
  width: 100%;
  border: 1px solid #b1c4b82b;
  background: #09243080;
  color: var(--paper);
  border-radius: 6px;
  padding: 12px 13px;
  font-size: 13px;
}
input::placeholder {
  color: #7e9ba4;
}
.primary-button {
  border: 1px solid #eaca91;
  background: linear-gradient(120deg, #edd29e, #d7ad6b);
  color: #173441;
  padding: 14px 18px;
  border-radius: 6px;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
  box-shadow: 0 3px 10px #0002;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.primary-button:hover {
  filter: brightness(1.08);
}
.primary-button span {
  font-size: 17px;
}
.form-error {
  font-size: 11px;
  color: #f4ae9b;
  min-height: 2px;
  margin: 9px 0;
}
.guest-note {
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  color: #99afb5;
  margin: 16px 7px;
}
.resume-note {
  font-size: 11px;
  color: var(--sea);
  text-align: center;
}
.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9px;
  color: #c8d8d8;
}
.auth-links button,
.land-footer button {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
}
.land-footer {
  bottom: 28px;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #c3d0c8;
}
.land-footer button {
  letter-spacing: 0.04em;
}
.game {
  width: 100vw;
  height: 100dvh;
  position: relative;
  isolation: isolate;
  background: #154956;
}
.game > #world {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.game-header {
  position: absolute;
  top: 24px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.region-plate {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #0c293aea, transparent);
  padding: 9px 60px 9px 12px;
  border-radius: 7px;
}
.crest {
  font-family: Georgia;
  font-size: 36px;
  line-height: 1;
  color: var(--gold);
}
.region-plate small {
  font-size: 7px;
  letter-spacing: 0.24em;
  color: #b2cbc8;
}
.region-plate h2 {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  margin: 4px 0;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: auto;
}
.connection {
  font-size: 9px;
  background: #102d3adc;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 20px;
  margin-right: 5px;
}
.connection.bad {
  color: #f4b58e;
}
.connection.bad i {
  background: #e4a377;
}
.header-tools button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #102d3adc;
  border-radius: 7px;
  font-size: 16px;
  color: #e6d3aa;
}
.hero-plate {
  position: absolute;
  top: 100px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #112e3be8;
  border-radius: 10px;
  box-shadow: 0 5px 20px #06182022;
}
.hero-plate canvas {
  width: 46px;
  height: 52px;
  image-rendering: pixelated;
}
.hero-vitals {
  width: 182px;
}
.hero-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 7px;
}
.hero-name span {
  font-size: 8px;
  color: var(--gold);
  background: #d5b47518;
  border-radius: 3px;
  padding: 3px 5px;
}
.health-track {
  height: 14px;
  background: #071c26;
  border: 1px solid #59737344;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.health-track > div {
  background: linear-gradient(90deg, #438d7d, #89c5a2);
  height: 100%;
  transition: width 0.2s;
}
.health-track > span {
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 8px;
  line-height: 12px;
  text-shadow: 0 1px 2px #0009;
}
.xp-track {
  height: 3px;
  background: #061f2c;
  margin-top: 4px;
  border-radius: 3px;
  overflow: hidden;
}
.xp-track > div {
  height: 100%;
  background: #deb570;
  transition: width 0.2s;
}
.hero-caption {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #a7c0c3;
  margin-top: 6px;
}
.hero-caption > span:last-child {
  color: #dfbd85;
}
.quest-tracker {
  position: absolute;
  top: 100px;
  right: 26px;
  width: 242px;
  padding: 16px 17px;
  background: #112e3be8;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 5px 20px #06182022;
}
.tracker-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #e0bb81;
}
.tracker-heading button {
  border: 0;
  background: none;
  color: #c4d7d4;
  font-size: 18px;
  padding: 0;
}
.quest-tracker h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  margin: 8px 0;
}
.quest-tracker p {
  font-size: 10px;
  line-height: 1.6;
  color: #b6cdcc;
  margin: 0;
}
.quest-tracker #tracked-progress {
  font-size: 9px;
  color: #e0bc82;
  margin-top: 9px;
}
.minimap-wrap {
  position: absolute;
  right: 26px;
  top: 274px;
  background: #102d3ae8;
  border: 1px solid #c6ba922c;
  border-radius: 10px;
  padding: 7px;
  box-shadow: 0 5px 20px #06182022;
}
.minimap-wrap canvas {
  display: block;
  border-radius: 5px;
  width: 174px;
  height: 130px;
}
.minimap-wrap > span {
  display: block;
  font-size: 7px;
  letter-spacing: 0.13em;
  text-align: center;
  padding: 7px 0 0;
  color: #acbfbb;
}
.minimap-wrap kbd {
  font-size: 6px;
  margin-left: 6px;
}
.bottom-nav {
  position: absolute;
  bottom: 30px;
  left: 26px;
  display: flex;
  gap: 5px;
}
.bottom-nav button {
  background: #102d3ae8;
  border: 1px solid var(--line);
  padding: 10px 11px;
  border-radius: 6px;
  font-size: 9px;
  color: #bdceca;
  display: flex;
  gap: 7px;
  align-items: center;
}
.bottom-nav button > span {
  color: #e1c089;
  font-size: 14px;
}
kbd {
  font: inherit;
  font-size: 7px;
  background: #061d2822;
  border: 1px solid #97b0ac33;
  border-radius: 3px;
  padding: 2px 4px;
  color: #c3d2cf;
}
.action-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  display: flex;
  gap: 6px;
  background: #102d3aed;
  border: 1px solid #e8d6a72b;
  border-radius: 12px;
  box-shadow: 0 8px 30px #0003;
}
.action-bar button {
  position: relative;
  width: 76px;
  height: 73px;
  border: 1px solid #b4c6b12b;
  border-radius: 7px;
  background: linear-gradient(145deg, #2a4a51, #133440);
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.action-bar button:hover {
  border-color: #e3c186aa;
}
.skill-icon {
  font-size: 23px;
  line-height: 1;
  color: var(--gold);
}
.potion-icon {
  color: #c99a97;
}
.action-bar strong {
  font-size: 8px;
  font-weight: 500;
  color: #dbdfce;
}
.action-bar kbd {
  font-size: 6px;
  background: none;
  padding: 1px 3px;
  color: #8fa9ad;
}
.cooldown-cover {
  position: absolute;
  inset: 0;
  background: #041d2bbb;
  transform: translateY(100%);
  pointer-events: none;
  z-index: 1;
}
.cooldown-cover:after {
  content: attr(data-seconds);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #dcd1b3;
}
.chat-box {
  position: absolute;
  left: 26px;
  bottom: 85px;
  width: 300px;
  padding: 12px;
  background: linear-gradient(0deg, #0c293ada, transparent);
  border-radius: 8px;
  transition: opacity 0.2s;
}
.chat-lines {
  font-size: 9px;
  line-height: 1.7;
  max-height: 104px;
  overflow: auto;
  color: #c1d3d1;
  text-shadow: 0 1px 2px #09222c;
}
.chat-lines strong {
  font-weight: 600;
  color: var(--gold);
}
.chat-lines .system {
  color: #9ed3c8;
}
.chat-box form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #bdd2ca38;
  margin-top: 8px;
}
.chat-box form > span {
  font-size: 6px;
  letter-spacing: 0.12em;
  color: #8fb4b6;
}
.chat-box input {
  border: 0;
  background: none;
  font-size: 10px;
  padding: 7px 8px;
  border-radius: 0;
}
.chat-box button {
  border: 0;
  background: none;
  color: #d0b47d;
  padding: 2px 5px;
}
.interact-hint {
  position: absolute;
  bottom: 132px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b2a38ed;
  border: 1px solid #d4c29344;
  border-radius: 6px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  white-space: nowrap;
}
.interact-hint kbd {
  font-size: 10px;
  color: #e6c48c;
  padding: 4px 7px;
}
.toast-stack {
  position: absolute;
  top: 205px;
  left: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  width: 280px;
}
.toast {
  padding: 9px 12px;
  background: #102d3aed;
  border: 1px solid #a8c5b62a;
  border-left: 2px solid #d9b878;
  border-radius: 5px;
  color: #d9e4db;
  font-size: 10px;
  animation: toastIn 0.25s ease-out;
}
.toast.success {
  border-left-color: #86c9a2;
}
.toast.error {
  border-left-color: #df998a;
}
.region-announcement {
  position: absolute;
  top: 23%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s;
  text-shadow: 0 3px 14px #08242f;
}
.region-announcement.show {
  opacity: 1;
}
.region-announcement small {
  font-size: 8px;
  letter-spacing: 0.3em;
  color: #f0d4a0;
}
.region-announcement h2 {
  font:
    400 38px Georgia,
    serif;
  margin: 9px 0;
  color: #fff4d7;
}
.region-announcement p {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #deebdf;
  margin: 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #071d2a80;
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.modal {
  position: relative;
  background: linear-gradient(140deg, #1b3d49, #112e3b);
  border: 1px solid #d5cba844;
  border-radius: 16px;
  box-shadow: 0 25px 100px #03132088;
  width: 570px;
  max-width: 100%;
  max-height: 85dvh;
  overflow: auto;
  padding: 32px;
}
.modal h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 30px;
}
.modal p {
  font-size: 12px;
  line-height: 1.8;
  color: #b7cbc9;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: none;
  border: 0;
  font-size: 26px;
  font-weight: 200;
  color: #adbfbc;
}
.modal .eyebrow {
  font-size: 8px;
  margin-bottom: 10px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.item-card {
  padding: 14px;
  border: 1px solid var(--line);
  background: #0b29362e;
  border-radius: 8px;
  text-align: center;
}
.item-card canvas {
  display: block;
  width: 44px;
  height: 44px;
  margin: auto;
  image-rendering: pixelated;
}
.item-card strong {
  display: block;
  font-size: 11px;
  margin: 9px 0 3px;
}
.item-card span {
  font-size: 18px;
  color: var(--gold);
}
.item-card small {
  display: block;
  color: #95b1b7;
  font-size: 9px;
  margin-top: 7px;
}
.quest-row {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.quest-row > small {
  font-size: 7px;
  letter-spacing: 0.14em;
  color: #dcba82;
}
.quest-row h3 {
  font:
    400 19px Georgia,
    serif;
  margin: 7px 0;
}
.quest-row p {
  font-size: 11px;
  margin: 5px 0;
}
.quest-row .reward {
  font-size: 9px;
  color: #ddbb85;
}
.quest-row.complete {
  opacity: 0.55;
}
.subtle-button {
  background: #163a47;
  border: 1px solid #a4c5ba44;
  border-radius: 5px;
  padding: 9px 13px;
  font-size: 10px;
  color: #e5dbbf;
  margin: 8px 5px 0 0;
}
.map-large {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.map-legend {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 9px;
  color: #b6cac8;
}
.map-legend b {
  color: #e3ba7b;
}
.dialogue-portrait {
  float: right;
  width: 72px;
  height: 72px;
  margin: 0 0 12px 20px;
  image-rendering: pixelated;
}
.dialogue-body {
  font:
    400 17px/1.7 Georgia,
    serif !important;
  color: #d4ddcf !important;
}
.craft-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.craft-row h4 {
  font-family: Georgia;
  font-weight: 400;
  font-size: 17px;
  margin: 0;
}
.craft-row p {
  font-size: 10px;
  margin: 4px 0;
}
.death-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #081e2bb3;
  backdrop-filter: blur(4px);
  text-align: center;
}
.death-overlay > div {
  width: 360px;
  padding: 28px;
}
.death-overlay h2 {
  font:
    400 43px Georgia,
    serif;
  margin: 14px 0;
}
.death-overlay p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.8;
  color: #b5cccb;
  margin-bottom: 25px;
}
.death-overlay button {
  justify-content: center;
}
.mobile-stick {
  display: none;
  position: absolute;
  bottom: 55px;
  left: 35px;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  border: 1px solid #e6d4a44a;
  background: #132f3c66;
  touch-action: none;
}
.mobile-stick > div {
  position: absolute;
  top: 31px;
  left: 31px;
  width: 38px;
  height: 38px;
  background: #e1cca04a;
  border: 1px solid #f2deb86b;
  border-radius: 50%;
  pointer-events: none;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 1100px) {
  .landing {
    padding: 110px 5vw 80px;
    gap: 30px;
  }
  .voyage-card {
    width: 380px;
    padding: 25px;
  }
  .welcome-copy h1 {
    font-size: 64px;
  }
  .landing-features {
    flex-direction: column;
    gap: 10px;
  }
  .land-header,
  .land-footer {
    left: 5vw;
    right: 5vw;
  }
  .action-bar {
    left: auto;
    right: 26px;
    transform: none;
  }
  .chat-box {
    bottom: 90px;
    width: 290px;
  }
  .quest-tracker {
    width: 220px;
  }
  .minimap-wrap {
    top: 265px;
  }
}
@media (max-width: 760px) {
  body {
    overflow: auto;
  }
  .landing {
    min-height: 100dvh;
    display: block;
    padding: 100px 22px 75px;
    background-position: 58% center;
  }
  .land-header {
    left: 22px;
    right: 22px;
    top: 25px;
  }
  .wordmark {
    font-size: 18px;
  }
  .world-label {
    font-size: 6px;
    padding: 8px 9px;
    letter-spacing: 0.1em;
  }
  .welcome-copy {
    margin-bottom: 30px;
  }
  .welcome-copy h1 {
    font-size: 48px;
    line-height: 1.05;
    margin-bottom: 13px;
  }
  .welcome-copy .eyebrow {
    font-size: 8px;
  }
  .intro {
    font-size: 12px;
    line-height: 1.6;
  }
  .landing-features {
    display: none;
  }
  .voyage-card {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 24px;
  }
  .land-footer {
    left: 22px;
    right: 22px;
    bottom: 20px;
    font-size: 6px;
  }
  .land-footer > span:last-child {
    display: none;
  }
  .game-header {
    top: 12px;
    left: 12px;
    right: 12px;
  }
  .region-plate {
    gap: 7px;
    padding: 6px 20px 6px 8px;
  }
  .crest {
    font-size: 25px;
  }
  .region-plate small {
    font-size: 6px;
  }
  .region-plate h2 {
    font-size: 15px;
    margin: 3px 0;
  }
  .header-tools {
    gap: 4px;
  }
  .header-tools button {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .connection {
    display: none;
  }
  .hero-plate {
    left: 12px;
    top: 76px;
    padding: 8px;
    gap: 5px;
  }
  .hero-plate canvas {
    width: 32px;
    height: 40px;
  }
  .hero-vitals {
    width: 132px;
  }
  .hero-name {
    font-size: 10px;
  }
  .hero-caption {
    font-size: 7px;
  }
  .quest-tracker {
    top: 76px;
    right: 12px;
    width: 163px;
    padding: 11px;
  }
  .tracker-heading {
    font-size: 6px;
  }
  .quest-tracker h3 {
    font-size: 14px;
    margin: 5px 0;
  }
  .quest-tracker p {
    font-size: 8px;
  }
  .quest-tracker #tracked-progress {
    font-size: 8px;
    margin-top: 5px;
  }
  .minimap-wrap {
    display: none;
  }
  .bottom-nav {
    bottom: 14px;
    left: 12px;
    gap: 4px;
  }
  .bottom-nav button {
    padding: 7px;
    font-size: 8px;
  }
  .bottom-nav kbd {
    display: none;
  }
  .action-bar {
    right: 12px;
    bottom: 54px;
    padding: 5px;
    gap: 4px;
    flex-wrap: wrap;
    width: 130px;
  }
  .action-bar button {
    width: 56px;
    height: 55px;
  }
  .action-bar kbd {
    display: none;
  }
  .action-bar strong {
    font-size: 7px;
  }
  .skill-icon {
    font-size: 20px;
  }
  .chat-box {
    left: 12px;
    bottom: 202px;
    width: 220px;
    padding: 6px;
    opacity: 0.85;
  }
  .chat-lines {
    font-size: 8px;
    max-height: 56px;
  }
  .chat-box form {
    display: none;
  }
  .chat-box:focus-within form {
    display: flex;
  }
  .interact-hint {
    bottom: 205px;
    font-size: 9px;
  }
  .toast-stack {
    top: 166px;
    left: 12px;
    width: 200px;
  }
  .toast {
    font-size: 8px;
    padding: 7px 9px;
  }
  .mobile-stick {
    display: block;
  }
  .region-announcement h2 {
    font-size: 28px;
  }
  .region-announcement {
    top: 34%;
    width: 100%;
  }
  .modal-backdrop {
    padding: 16px;
  }
  .modal {
    padding: 25px;
    max-height: 90dvh;
  }
  .modal h2 {
    font-size: 27px;
  }
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Readability and generous touch targets for the compact game-native HUD. */
.card-top .eyebrow {
  font-size: 9px;
}
.class-card span {
  font-size: 8px;
}
label {
  font-size: 11px;
}
.guest-note,
.auth-links {
  font-size: 11px;
}
.card-description {
  font-size: 13px;
}
.class-description {
  font-size: 12px;
}
.quest-tracker {
  width: 260px;
}
.quest-tracker p {
  font-size: 12px;
}
.quest-tracker #tracked-progress {
  font-size: 11px;
}
.tracker-heading {
  font-size: 9px;
}
.chat-lines,
.chat-box input {
  font-size: 11px;
}
.action-bar strong {
  font-size: 10px;
}
.action-bar kbd {
  font-size: 8px;
}
.bottom-nav button {
  font-size: 11px;
  min-height: 42px;
}
.toast {
  font-size: 12px;
}
.hero-caption {
  font-size: 10px;
}
.region-plate small {
  font-size: 9px;
}
.connection {
  font-size: 11px;
}
.modal p {
  font-size: 13px;
}
.quest-row p {
  font-size: 12px;
}
.quest-row .reward,
.item-card small,
.craft-row p {
  font-size: 11px;
}
.subtle-button {
  font-size: 12px;
  min-height: 40px;
}
.item-card strong {
  font-size: 12px;
}
@media (max-width: 1100px) {
  .quest-tracker {
    width: 240px;
  }
}
@media (max-width: 760px) {
  .header-tools button {
    min-width: 38px;
    min-height: 38px;
  }
  .region-plate h2 {
    font-size: 14px;
  }
  .region-plate small {
    font-size: 7px;
  }
  .quest-tracker {
    width: 175px;
    top: 176px;
  }
  .quest-tracker p,
  .quest-tracker #tracked-progress {
    font-size: 10px;
  }
  .tracker-heading {
    font-size: 7px;
  }
  .hero-vitals {
    width: 140px;
  }
  .hero-name {
    font-size: 12px;
  }
  .hero-caption {
    font-size: 9px;
  }
  .toast-stack {
    top: 167px;
    width: 180px;
  }
  .toast {
    font-size: 10px;
  }
  .chat-lines {
    font-size: 10px;
  }
  .chat-box {
    width: 205px;
    bottom: 210px;
  }
  .bottom-nav button {
    font-size: 10px;
    min-height: 42px;
  }
  .mobile-stick {
    bottom: 66px;
  }
  .action-bar strong {
    font-size: 9px;
  }
}
@media (max-height: 560px) and (max-width: 1000px) {
  .quest-tracker {
    display: none;
  }
  .hero-plate {
    top: 72px;
  }
  .chat-box {
    display: none;
  }
  .minimap-wrap {
    display: none;
  }
  .region-announcement {
    top: 35%;
  }
}
.wayfinder {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  width: 100%;
  margin-top: 12px;
  padding: 9px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  color: #e5c588;
  font-size: 11px;
  line-height: 1.45;
}
.wayfinder > span:first-child {
  font-size: 17px;
  color: #f0d59c;
}
@media (max-width: 760px) {
  .wayfinder {
    font-size: 10px;
    margin-top: 8px;
    padding-top: 7px;
  }
}
.story-progress {
  color: #ddc28e;
  font-size: 11px;
  margin-bottom: 18px;
}
.story-track {
  height: 4px;
  border-radius: 4px;
  background: #092535;
  margin-top: 9px;
  overflow: hidden;
}
.story-track > div {
  height: 100%;
  background: #dabb7e;
}
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.milestone {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #112f3c66;
  padding: 10px;
  opacity: 0.5;
}
.milestone.earned {
  opacity: 1;
  border-color: #d5bd8555;
}
.milestone canvas {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.milestone strong {
  display: block;
  font:
    400 13px Georgia,
    serif;
  color: #e2d9bd;
}
.milestone small {
  display: block;
  font-size: 9px;
  color: #9db8bb;
  line-height: 1.5;
  margin-top: 4px;
}
.milestone > span {
  font-size: 12px;
  color: #d9c18c;
  margin-left: auto;
}
.realm-person {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}
.realm-person canvas {
  width: 45px;
  height: 45px;
  image-rendering: pixelated;
}
.realm-person strong {
  display: block;
  font:
    400 18px Georgia,
    serif;
  color: #e7daba;
}
.realm-person small {
  display: block;
  font-size: 11px;
  color: #9ebbbc;
  margin-top: 6px;
}
.realm-list {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .milestone-grid {
    grid-template-columns: 1fr;
  }
  .bottom-nav {
    gap: 3px;
  }
  .bottom-nav button {
    padding: 7px 6px;
    gap: 4px;
    font-size: 9px;
  }
  .bottom-nav button > span {
    font-size: 12px;
  }
}
.party-hud {
  position: absolute;
  top: 205px;
  left: 26px;
  width: 258px;
  text-align: left;
  padding: 13px 14px;
  border: 1px solid #a4c7b536;
  border-radius: 9px;
  background: #112f3be8;
}
.party-hud > span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #dfc38b;
  margin-bottom: 9px;
}
.party-hud small {
  font-size: 10px;
  color: #a9c3c2;
}
.party-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.party-mini canvas {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
.party-mini > div {
  flex: 1;
}
.party-mini strong {
  font-size: 11px;
  font-weight: 500;
}
.party-health {
  height: 4px;
  background: #061e2b;
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}
.party-health > div {
  height: 100%;
  background: #a0c7ac;
  transition: width 0.2s;
}
.party-invitation {
  padding: 17px;
  border: 1px solid #e3c18566;
  border-radius: 9px;
  margin-bottom: 17px;
  background: #cbb06a0c;
}
.party-invitation h3 {
  font:
    400 22px Georgia,
    serif;
  margin: 0;
}
.realm-person .subtle-button {
  margin-left: auto;
  flex-shrink: 0;
}
.bottom-nav .attention {
  border-color: #e8c78b;
  color: #ffe0a3;
}
.minimap-wrap {
  top: 338px;
}
.toast-stack {
  top: 102px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
}
@media (max-width: 760px) {
  .party-hud {
    top: 176px;
    left: 12px;
    width: 175px;
    padding: 10px;
  }
  .party-hud > span {
    font-size: 7px;
  }
  .party-mini canvas {
    width: 22px;
    height: 22px;
  }
  .party-mini strong {
    font-size: 10px;
  }
  .toast-stack {
    top: 335px;
    left: 50%;
    width: 230px;
  }
  .realm-person {
    gap: 8px;
  }
  .realm-person canvas {
    width: 35px;
    height: 35px;
  }
  .realm-person strong {
    font-size: 16px;
  }
  .realm-person small {
    font-size: 10px;
  }
  .realm-person .subtle-button {
    font-size: 10px;
    padding: 6px 8px;
  }
}
@media (max-height: 560px) and(max-width:1000px) {
  .party-hud {
    display: none;
  }
  .toast-stack {
    top: 160px;
  }
}
.connection-overlay {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  background: #0923319c;
  backdrop-filter: blur(5px);
  padding: 25px;
}
.connection-overlay section {
  max-width: 390px;
  text-align: center;
  padding: 28px;
  background: #102f3ee8;
  border: 1px solid #e2ca9844;
  border-radius: 13px;
  box-shadow: 0 15px 60px #031b2677;
}
.connection-overlay h2 {
  font:
    400 34px Georgia,
    serif;
  margin: 14px 0;
}
.connection-overlay p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.75;
  color: #bbd0ce;
}
.connection-overlay small {
  display: block;
  font-size: 11px;
  color: #d9c08b;
  line-height: 1.6;
  margin-top: 18px;
}
.recovery-actions {
  margin-top: 22px;
}
.recovery-actions .primary-button {
  justify-content: center;
}
.recovery-actions .subtle-button {
  margin-top: 12px;
}
.expedition-card {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #d9c08b44;
  border-radius: 9px;
  background: linear-gradient(135deg, #224e4f80, #142f3d99);
}
.expedition-goals {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.expedition-goals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #c8d6cb;
}
.expedition-goals strong {
  flex-shrink: 0;
  color: #e7cc99;
}
