@font-face {
  font-family: Spectral;
  src: url("/fonts/heading.woff2");
}
@font-face {
  font-family: Barlow;
  src: url("/fonts/body.woff2");
}
@font-face {
  font-family: Barlow;
  src: url("/fonts/bold.woff2");
  font-weight: 600 900;
}
:root {
  --deep: #182820;
  --panel: #1c3028f5;
  --edge: #53654d;
  --muted: #b7c4aa;
  --warm: #eaca84;
  --gold: #d2ac66;
  --ivory: #f3ead3;
  --shadow: #10271d55;
  font:
    16px Barlow,
    system-ui,
    sans-serif;
  color: var(--ivory);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #182b23;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #f9d094;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.54;
  cursor: default;
}
h1,
h2,
h3,
p {
  margin: 0;
}
img,
canvas {
  image-rendering: pixelated;
}
i[data-i] {
  display: inline-flex;
  font-style: normal;
}
i svg,
svg.ico {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
  stroke-linecap: round;
}
#shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
header {
  height: calc(65px + env(safe-area-inset-top));
  flex: none;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 max(22px, env(safe-area-inset-right)) 0
    max(22px, env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top);
  background: #1b2b23;
  border-bottom: 2px solid #9e885a;
  position: relative;
  z-index: 5;
  box-shadow: 0 2px 8px #18281c50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand img {
  width: 36px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 #d0b77880);
}
.brand strong {
  font:
    600 32px/1 Spectral,
    Georgia,
    serif;
  letter-spacing: -1.9px;
  color: #f6e6bc;
}
.divider {
  height: 24px;
  width: 1px;
  background: #4b5b48;
}
nav,
.header-end {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-end {
  margin-left: auto;
  gap: 12px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  border-radius: 5px;
  color: #c0cfbc;
  padding: 0 13px;
  font-size: 15px;
  font-weight: 600;
}
.nav.active {
  color: #f7e7be;
  background: #354636;
  box-shadow: inset 0 0 0 1px #5a6548;
}
.nav:hover,
.square:hover,
#profile:hover {
  background: #34463a;
}
.nav i svg {
  width: 17px;
  height: 17px;
}
.square {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  color: #d9dfcc;
}
#profile {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 11px;
  border: 1px solid #53614c;
  background: #2d3e30;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}
#profile i:last-child svg {
  width: 12px;
}
#field {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  isolation: isolate;
}
#world {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: 0;
  background: #8ca665;
}
.fieldShade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      0deg,
      #12271956,
      transparent 16%,
      transparent 85%,
      #172b1b20
    ),
    radial-gradient(ellipse at 50% 49%, transparent 47%, #293c2433 100%);
}
.panel {
  background: var(--panel);
  border: 1px solid #687457;
  border-radius: 6px;
  box-shadow:
    0 3px 0 #192c23a8,
    0 5px 16px #192c2333;
}
.vitals {
  position: absolute;
  top: 18px;
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  min-width: 218px;
  pointer-events: none;
}
.portrait {
  background: radial-gradient(ellipse at 55% 15%, #7f9167, #465b45 74%);
  border: 1px solid #9aa47b;
  box-shadow: inset 0 0 0 3px #53634e;
  border-radius: 4px;
  width: 47px;
  height: 49px;
  overflow: hidden;
  position: relative;
}
.portrait img {
  position: absolute;
  width: 88px;
  max-width: none;
  bottom: -28px;
  left: -21px;
}
.vitalsText {
  flex: 1;
}
.nameLine,
.meterLine {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nameLine {
  justify-content: space-between;
  margin-bottom: 6px;
}
.nameLine strong {
  font:
    600 17px/1.1 Spectral,
    Georgia,
    serif;
}
.nameLine span {
  color: var(--warm);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
}
.meterLine {
  margin-top: 4px;
}
.meterLine i svg {
  width: 12px;
  height: 12px;
  color: #de907c;
  fill: #c47866;
  stroke-width: 1;
}
.meterLine.xp i svg {
  color: #dfc178;
  fill: #dbc27f;
}
.meter {
  height: 5px;
  background: #43513d;
  border-radius: 1px;
  flex: 1;
  min-width: 64px;
  overflow: hidden;
}
.meter b {
  height: 100%;
  background: #d6826d;
  display: block;
}
.xp .meter b {
  background: #d4b775;
  width: 0;
}
.meterLine small {
  font:
    10px/1 Barlow,
    sans-serif;
  color: #d6ddc9;
  min-width: 31px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#sideHud {
  position: absolute;
  top: 18px;
  right: max(20px, env(safe-area-inset-right));
  width: 185px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
#miniBox {
  display: block;
  padding: 8px;
  text-align: left;
}
#mini {
  width: 100%;
  height: 74px;
  display: block;
  border: 1px solid #6f7857;
  background: #698956;
}
.miniTop,
.clock,
.tracked {
  display: flex;
  gap: 7px;
  align-items: center;
}
.miniTop {
  padding-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}
.miniTop i svg,
.clock i svg,
.tracked svg {
  width: 15px;
  height: 15px;
  color: var(--warm);
}
.miniTop small {
  margin-left: auto;
  font: 600 11px Barlow;
  color: var(--muted);
}
.clock {
  margin-top: 6px;
  font-size: 12px;
  color: #dce0c7;
}
.tracked {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.tracked i:last-child {
  margin-left: auto;
}
.tracked i:last-child svg {
  width: 12px;
  height: 12px;
  transform: rotate(-90deg);
}
#tracker {
  text-align: left;
  padding: 12px 13px;
}
#trackName {
  font:
    600 18px/1.05 Spectral,
    Georgia,
    serif;
}
.goal {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  font-size: 13px;
  color: #d9dfc9;
}
.goal img {
  width: 17px;
  height: 17px;
}
.goal small {
  margin-left: auto;
  color: #c7d0b6;
}
.goal.done,
.goal.done small {
  color: #e2c479;
}
#regionTitle {
  position: absolute;
  pointer-events: none;
  top: 27px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff5d5;
  text-shadow:
    0 2px 2px #263520,
    0 1px 7px #243b28;
  transition: opacity 1s;
}
#regionTitle > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 700;
}
#regionTitle b {
  height: 1px;
  width: 25px;
  background: #f7e1a9;
  box-shadow: 0 1px 2px #243322;
}
#regionTitle h1 {
  font:
    600 34px/1.1 Spectral,
    Georgia,
    serif;
  letter-spacing: -1px;
}
.bottom {
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  right: max(20px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.bottom button,
.toolbox {
  pointer-events: auto;
}
#realmTag,
#controls {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  color: #e0e4d1;
  font-size: 13px;
}
.liveDot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #d5b874;
  box-shadow: 0 0 4px #d5b87444;
  transform: rotate(45deg);
}
.liveDot.online {
  background: #a7cd87;
}
#realmTag b,
#realmTag small {
  display: block;
}
#realmTag b {
  font-size: 12px;
}
#realmTag small {
  font-size: 11px;
  color: #bdc9b1;
  margin-top: 2px;
}
#controls i svg {
  width: 16px;
  height: 16px;
}
.toolbox {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
}
.hotWrap {
  display: flex;
  align-items: stretch;
  gap: 7px;
}
.hotbar {
  display: flex;
  background: #26392bef;
  padding: 5px;
  gap: 4px;
  border: 1px solid #aa9d72;
  border-radius: 7px;
  box-shadow:
    0 3px 0 #26382b,
    0 5px 12px #12271c63;
}
.slot,
.pack {
  position: relative;
  width: 51px;
  height: 49px;
  background: linear-gradient(#40523c, #344733);
  border: 1px solid #69775b;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.slot:hover,
.pack:hover {
  background: #506448;
}
.slot.active {
  background: linear-gradient(#70714c, #5b6141);
  border: 2px solid #ebc778;
  box-shadow:
    0 0 0 1px #202e1a,
    inset 0 0 0 1px #8f8155;
}
.slot.active:after {
  position: absolute;
  content: "";
  top: -6px;
  width: 6px;
  height: 3px;
  background: #eed189;
}
.slot img,
.pack img {
  width: 33px;
  height: 33px;
}
.slot small,
.pack small {
  position: absolute;
  left: 4px;
  top: 1px;
  font-size: 10px;
  font-weight: 600;
  color: #ccd0b5;
}
.slot em {
  position: absolute;
  right: 3px;
  bottom: 1px;
  color: #fff4d3;
  font: 600 10px Barlow;
}
.pack {
  align-self: center;
  width: 47px;
  height: 50px;
  background: #25392c;
  border-color: #8c9170;
}
.pack i svg {
  width: 26px;
  height: 26px;
  color: #d9c18b;
}
#toolName {
  color: #f3ebce;
  font:
    600 14px/1.2 Spectral,
    Georgia,
    serif;
  margin-bottom: 6px;
  text-shadow:
    0 1px 3px #14251b,
    0 1px 6px #14251b;
  background: #233823cf;
  padding: 2px 12px;
  border-radius: 3px;
}
#notice {
  position: absolute;
  left: 50%;
  bottom: 106px;
  transform: translateX(-50%);
  max-width: 82%;
  padding: 6px 12px;
  background: #233527ed;
  border: 1px solid #798568;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
}
#notice.show {
  opacity: 1;
}
#targetInfo {
  position: absolute;
  background: #182b21e8;
  border: 1px solid #788067;
  border-radius: 3px;
  color: #f3ead3;
  font-size: 12px;
  padding: 3px 7px;
  pointer-events: none;
  display: none;
  white-space: nowrap;
}
#touch {
  display: none;
}
#shade {
  position: absolute;
  inset: 0;
  background: #11251c77;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  backdrop-filter: blur(2px);
}
#shade[hidden] {
  display: none;
}
#drawer {
  width: min(530px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: #26392e;
  border: 1px solid #98a181;
  box-shadow:
    0 10px 60px #0e211a88,
    inset 0 0 0 3px #3b4c3c;
  border-radius: 9px;
  overflow: hidden;
}
.drawerHead {
  padding: 15px 19px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #58644d;
}
.symbol {
  display: flex;
  color: var(--warm);
}
.drawerHead h2 {
  font:
    600 27px/1 Spectral,
    Georgia,
    serif;
  letter-spacing: -0.8px;
}
.drawerHead .square {
  margin-left: auto;
}
.drawerHead .square svg {
  width: 18px;
}
#drawerBody {
  padding: 17px 19px 20px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #7f8867 #2c3c30;
}
#drawerBody p {
  color: #d2dcc7;
  line-height: 1.4;
  font-size: 15px;
}
#drawerBody h3 {
  font:
    600 21px Spectral,
    Georgia,
    serif;
  margin: 15px 0 6px;
}
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}
.tabs button,
.btn {
  padding: 7px 11px;
  color: #e6e8d4;
  border: 1px solid #66765c;
  border-radius: 4px;
  background: #384d3b;
  font-size: 14px;
  font-weight: 600;
}
.tabs .selected,
.btn.primary {
  background: #dec38b;
  color: #2c372a;
  border-color: #ebd3a2;
}
.row {
  border-top: 1px solid #485b47;
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
}
.row img,
.item img {
  width: 31px;
  height: 31px;
}
.row > div {
  flex: 1;
}
.row strong {
  font-size: 15px;
}
.row small,
.muted {
  display: block;
  color: #bfceb5;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 2px;
}
.row .cost {
  color: #dec793;
}
.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.item {
  background: #324638;
  border: 1px solid #56694f;
  border-radius: 5px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.item small {
  font-size: 11px;
  color: #bfccb4;
  display: block;
}
.item b {
  font-size: 15px;
}
.questCard {
  background: #304333;
  border: 1px solid #5d7054;
  border-radius: 5px;
  padding: 12px;
  margin: 7px 0;
}
.questCard h3 {
  margin: 0 !important;
}
.questCard .btn {
  margin-top: 9px;
}
.detail {
  color: #d9c18d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.atlas {
  display: block;
  width: min(100%, 390px);
  height: auto;
  margin: 0 auto;
  border: 1px solid #839172;
  border-radius: 4px;
}
.atlasFoot,
.providerRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.atlasFoot {
  font-size: 14px;
  color: #d3dbc7;
}
.providerRow .btn {
  flex: 1;
}
.accountForm {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
input {
  width: 100%;
  border: 1px solid #66795e;
  background: #1b2e24;
  border-radius: 4px;
  padding: 9px;
  color: #eef1dd;
}
.statusText {
  margin-top: 9px;
  color: #e8cf94;
  font-size: 14px;
  line-height: 1.4;
}
.studioLine {
  font:
    italic 14px Spectral,
    Georgia,
    serif;
  color: #b6c5ad;
  text-align: center;
  margin-top: 18px;
}
kbd {
  font: 600 12px Barlow;
  padding: 2px 6px;
  background: #415440;
  border: 1px solid #738369;
  border-radius: 3px;
}
@media (max-width: 820px) {
  header {
    gap: 15px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .nav {
    padding: 0 9px;
  }
  .header-end {
    gap: 4px;
  }
  #sideHud {
    width: 156px;
  }
  .slot {
    width: 46px;
  }
  #regionTitle {
    top: 20px;
  }
  #regionTitle h1 {
    font-size: 27px;
  }
}
@media (max-width: 640px) {
  header {
    height: calc(50px + env(safe-area-inset-top));
    gap: 7px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .brand {
    gap: 2px;
  }
  .brand img {
    width: 26px;
    height: 32px;
  }
  .brand strong {
    font-size: 24px;
    letter-spacing: -1.4px;
  }
  .divider {
    display: none;
  }
  nav {
    gap: 0;
  }
  .nav {
    padding: 0 8px;
  }
  .nav span {
    display: none;
  }
  .nav svg {
    width: 17px !important;
  }
  .header-end {
    gap: 1px;
  }
  .square {
    width: 32px;
    height: 32px;
  }
  #profile {
    height: 31px;
    padding: 0 6px;
    gap: 4px;
  }
  #profile i:last-child {
    display: none;
  }
  .vitals {
    top: 9px;
    left: 9px;
    min-width: 140px;
    gap: 6px;
    padding: 5px 7px;
  }
  .portrait {
    width: 30px;
    height: 36px;
  }
  .portrait img {
    width: 66px;
    left: -18px;
    bottom: -20px;
  }
  .nameLine strong {
    font-size: 13px;
  }
  .meter {
    min-width: 36px;
  }
  .meterLine {
    gap: 3px;
    margin-top: 2px;
  }
  .nameLine {
    margin-bottom: 2px;
  }
  .meterLine small {
    font-size: 9px;
    min-width: 23px;
  }
  .nameLine span {
    font-size: 9px;
  }
  #sideHud {
    top: 9px;
    right: 9px;
    width: 116px;
    gap: 6px;
  }
  #miniBox {
    padding: 5px;
  }
  .miniTop {
    font-size: 11px;
    gap: 3px;
    padding-bottom: 3px;
  }
  #mini {
    height: 42px;
  }
  .clock {
    font-size: 10px;
    margin-top: 3px;
  }
  .clock i svg,
  .miniTop i svg {
    width: 11px;
    height: 11px;
  }
  #tracker {
    padding: 6px 7px;
  }
  .tracked {
    font-size: 8px;
    gap: 3px;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
  }
  .tracked i svg {
    width: 11px;
    height: 11px;
  }
  #trackName {
    font-size: 13px;
  }
  .goal {
    font-size: 10px;
    margin-top: 2px;
  }
  .goal img {
    width: 13px;
    height: 13px;
  }
  .bottom {
    left: 7px;
    right: 7px;
    bottom: max(7px, env(safe-area-inset-bottom));
  }
  .hotbar {
    gap: 2px;
    padding: 3px;
  }
  .slot {
    width: clamp(32px, 10vw, 45px);
    height: 39px;
  }
  .pack {
    width: 36px;
    height: 39px;
  }
  .slot img {
    width: 28px;
    height: 28px;
  }
  .hotWrap {
    gap: 4px;
  }
  #regionTitle {
    top: 90px;
  }
  #regionTitle h1 {
    font-size: 21px;
  }
  #regionTitle > div {
    font-size: 7px;
  }
  #realmTag,
  #controls {
    display: none;
  }
  #notice {
    bottom: 167px;
    font-size: 12px;
  }
  #toolName {
    font-size: 12px;
    margin-bottom: 3px;
  }
  .items {
    grid-template-columns: repeat(2, 1fr);
  }
  .row {
    gap: 6px;
  }
  .row .btn {
    font-size: 12px;
    padding: 7px;
  }
  #drawerBody {
    padding: 12px;
  }
  .drawerHead {
    padding: 8px 12px;
  }
  .drawerHead h2 {
    font-size: 23px;
  }
}
@media (pointer: coarse),
  (max-width: 640px),
  (max-height: 530px) and (max-width: 950px) {
  #touch {
    display: block;
    pointer-events: none;
  }
  #stick,
  #useTouch {
    position: absolute;
    bottom: max(80px, calc(env(safe-area-inset-bottom) + 67px));
    touch-action: none;
    pointer-events: auto;
    border-radius: 50%;
    border: 1px solid #d6dcac90;
    background: #273d2c99;
    box-shadow: inset 0 0 0 3px #21352844;
    display: grid;
    place-items: center;
  }
  #stick {
    width: 92px;
    height: 92px;
    left: max(18px, env(safe-area-inset-left));
    background: radial-gradient(
      circle,
      transparent 30%,
      #31463479 32%,
      #2e452d95 100%
    );
  }
  #stick div {
    width: 37px;
    height: 37px;
    background: #d2d7a980;
    border: 1px solid #e1dfb696;
    border-radius: 50%;
  }
  #useTouch {
    width: 64px;
    height: 64px;
    right: max(20px, env(safe-area-inset-right));
    margin-bottom: 8px;
  }
  #useTouch img {
    width: 38px;
    height: 38px;
  }
  #targetInfo {
    display: none !important;
  }
}
@media (max-height: 530px) and (orientation: landscape) {
  header {
    height: calc(39px + env(safe-area-inset-top));
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  .brand strong {
    font-size: 23px;
  }
  .brand img {
    height: 31px;
  }
  .nav {
    height: 28px;
  }
  .vitals {
    top: 7px;
    left: max(8px, env(safe-area-inset-left));
    padding: 5px 7px;
    min-width: 170px;
    gap: 7px;
  }
  .portrait {
    width: 32px;
    height: 34px;
  }
  .portrait img {
    width: 66px;
    left: -17px;
    bottom: -21px;
  }
  #sideHud {
    width: 135px;
    top: 7px;
    right: max(8px, env(safe-area-inset-right));
  }
  #miniBox {
    padding: 4px;
  }
  #mini {
    height: 42px;
  }
  #tracker {
    display: none;
  }
  .bottom {
    bottom: max(5px, env(safe-area-inset-bottom));
  }
  .hotbar {
    padding: 3px;
    gap: 3px;
  }
  .slot,
  .pack {
    width: 37px;
    height: 34px;
  }
  .slot img {
    width: 26px;
    height: 26px;
  }
  #toolName {
    font-size: 11px;
    margin-bottom: 3px;
  }
  #stick {
    width: 76px;
    height: 76px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  #useTouch {
    width: 55px;
    height: 55px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  #notice {
    bottom: 70px;
  }
  #realmTag,
  #controls {
    display: none;
  }
  #regionTitle {
    top: 12px;
  }
  #regionTitle h1 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 389px) {
  #profile span {
    display: none;
  }
  .header-end {
    margin-left: auto;
  }
  .nav {
    padding: 0 6px;
  }
  .brand strong {
    font-size: 22px;
  }
}
@media (max-width: 640px), (max-height: 530px) {
  .portrait:after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    bottom: 2px;
    right: 2px;
    background: #d7ad68;
    border: 1px solid #354b36;
  }
  .portrait.connected:after {
    background: #b4d994;
  }
}

#route {
  color: #f2d99b;
  padding: 7px 9px;
  text-align: left;
  font-size: 13px;
  line-height: 1.25;
}
#route[hidden] {
  display: none;
}
.fieldCard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #304638;
  border: 1px solid #657654;
  border-radius: 6px;
}
.fieldCard img {
  width: 40px;
  height: 50px;
  object-fit: contain;
  image-rendering: pixelated;
}
.fieldCard h3,
.fieldCard p {
  margin: 0;
}
.fieldCard p {
  margin-top: 4px;
}
.progressNote {
  color: #e1c788;
}
.pair {
  display: flex;
  gap: 4px;
}
@media (max-width: 480px) {
  .pair {
    flex-direction: column;
  }
  .pair .btn {
    min-height: 36px;
  }
}
#interact {
  padding: 7px 9px;
  font-size: 14px;
  color: #f4e8c8;
  background-color: #41573d;
  border-color: #84926c;
}
#interact[hidden],
#panelNotice:empty {
  display: none;
}
#panelNotice {
  padding: 8px 14px;
  background: #243c30;
  color: #ffe5a7;
  border-top: 1px solid #758364;
}
@media (pointer: coarse),
  (max-width: 640px),
  (max-height: 530px) and (max-width: 950px) {
  #interact,
  #route,
  .pair .btn {
    min-height: 44px;
  }
}
#tide {
  display: block;
  text-align: center;
  color: #b9d8c8;
  font-size: 12px;
  line-height: 1.15;
  margin-top: 2px;
}
.tideCard {
  margin: 12px 0 18px;
  border-left: 3px solid #86afa5;
  background: #30453c;
  padding: 9px 12px;
}
.tideCard strong {
  color: #e4dab2;
}
.tideCard p {
  margin: 4px 0 0;
}

#elevation {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #e7d6ad;
}
#field, #touch { -webkit-user-select: none; user-select: none; }
#drawerBody { -webkit-user-select: text; user-select: text; }
#useTouch.aiming { box-shadow: 0 0 0 3px #e5cd8e; background: #4d603e; }
#useTouch.cancel { box-shadow: 0 0 0 3px #eb9986; background: #624a3d; }

@media (pointer: coarse), (max-width: 640px), (max-height: 530px) and (max-width: 950px) {
  body.left-tools #stick { left: auto; right: max(18px, env(safe-area-inset-right)); }
  body.left-tools #useTouch { right: auto; left: max(20px, env(safe-area-inset-left)); }
  #hotbar .slot, .pack { min-height: 44px; }
  .toolbox { max-width: 100%; }
  #touch { -webkit-touch-callout: none; }
}
@media (orientation: portrait) and (max-width: 640px) {
  .slot { width: clamp(36px, 11.1vw, 46px); }
  .pack { width: clamp(36px, 11.1vw, 46px); }
  #stick, #useTouch { bottom: calc(86px + env(safe-area-inset-bottom)); }
  #useTouch { width: 68px; height: 68px; }
}
@media (orientation: landscape) and (max-height: 530px) {
  .slot, .pack { width: clamp(38px, 6.7vw, 48px); }
  #useTouch { width: 64px; height: 64px; }
  #stick, #useTouch { bottom: calc(12px + env(safe-area-inset-bottom)); }
}
