body {
  overflow: hidden;
}
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 8;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #769780;
  color: #fff6dd;
  transition: opacity 0.48s ease-out;
}
#loading-screen.ready {
  opacity: 0;
  pointer-events: none;
}
.loading-landscape {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  z-index: -2;
}
#loading-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgba(16, 42, 36, 0.94),
    rgba(22, 49, 40, 0.74) 21%,
    transparent 60%
  );
}
.loading-caption {
  width: 100%;
  padding: clamp(25px, 6vw, 95px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Batang", "AppleMyungjo", serif;
  font-weight: bold;
  letter-spacing: 0.06em;
  font-size: 23px;
}
.brand i {
  width: 29px;
  height: 29px;
}
.loading-copy .brand {
  font-size: 18px;
}
.loading-copy .brand i {
  width: 24px;
  height: 24px;
}
.loading-caption h1 {
  font:
    500 clamp(32px, 5vw, 78px) / 1.24 "Batang",
    "AppleMyungjo",
    serif;
  letter-spacing: -0.075em;
  margin: 0.35em 0 0.18em;
}
.loading-caption p {
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.8;
  margin: 0;
  word-break: keep-all;
}
.load-status {
  display: grid;
  gap: 9px;
  min-width: 126px;
  color: #f7efda;
  font-size: 13px;
}
#load-stage {
  width: 100%;
  height: 3px;
  border: 0;
  border-radius: 10px;
  appearance: none;
  background: #f9eedb4d;
  color: #efd39d;
}
#load-stage::-webkit-progress-bar {
  background: #f9eedb4d;
  border-radius: 10px;
}
#load-stage::-webkit-progress-value {
  background: #efd39d;
  border-radius: 10px;
  transition: width 0.15s;
}
#retry-entry,
#guide .enter {
  border: 1px solid #e1dcc7;
  border-radius: 7px;
  padding: 10px 16px;
  background: #f4f0df;
  color: #244637;
  font-size: 15px;
}
#entry-error {
  background: #254638cc;
  padding: 16px;
  border-radius: 8px;
}
#entry-error p {
  margin: 0 0 8px;
}
#guide .enter {
  width: 100%;
  background: #294939;
  color: #fff8e4;
  font-weight: 650;
}
#place-map {
  width: min(870px, calc(100vw - 28px));
  max-width: none;
  padding: 8px;
  border: 1px solid #b2b69b;
  border-radius: 16px;
  background: #f6eedb;
  box-shadow: 0 20px 70px #19382e55;
  overflow: visible;
}
#place-map::backdrop {
  background: #20392d60;
  backdrop-filter: blur(4px);
}
.atlas-sheet {
  position: relative;
  border: 1px solid #abb49b;
  border-radius: 9px;
  overflow: hidden;
  background: #cfd4b7;
}
.atlas-field {
  position: relative;
  width: 100%;
  aspect-ratio: 900/510;
  max-height: 76dvh;
}
#map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-pin,
.map-close {
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  pointer-events: auto;
  color: #375542;
  border: 1.5px solid #71836c;
  background: #faf3dd;
  box-shadow:
    0 3px 0 #455a4233,
    0 3px 8px #304a3824;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(39px, 5.4vw, 54px);
  height: clamp(39px, 5.4vw, 54px);
  transition:
    background 0.15s,
    transform 0.15s;
}
.map-pin svg {
  width: 55%;
  height: 55%;
}
.map-pin[aria-current="true"] {
  background: #335a46;
  color: #fff5d9;
  border-color: #294435;
}
.map-pin:hover,
.map-pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}
.map-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
}
.map-close i {
  width: 19px;
  height: 19px;
}
#my-position {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #fffbeb;
  background: #b55434;
  box-shadow: 0 0 0 3px #ab59344d;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#context-rest[aria-pressed="true"] {
  background: #d4e0cd;
}
@media (max-width: 620px) {
  .loading-caption {
    display: grid;
    gap: 22px;
    padding: 28px 22px 38px;
  }
  .load-status {
    width: 100px;
    min-width: 0;
  }
  .atlas-field {
    aspect-ratio: 1.28;
  }
  .map-close {
    width: 34px;
    height: 34px;
    right: 6px;
    top: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #loading-screen,
  .map-pin {
    transition: none;
  }
}
:root {
  color-scheme: light;
  --paper: #f6f2e7;
  --ink: #223d32;
  --quiet: #617265;
  --line: #d7d6c6;
  --rust: #a75534;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
canvas:focus-visible {
  outline: 3px solid #cc7647;
  outline-offset: 4px;
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
button i,
.brand i,
.season-line i,
.local-note i {
  display: inline-grid;
  place-items: center;
  font-style: normal;
}
i svg {
  width: 100%;
  height: 100%;
  display: block;
}
button {
  touch-action: manipulation;
}
button:hover:not(:disabled) {
  filter: brightness(0.96);
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  clip-path: inset(50%);
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
#guide {
  border: 1px solid #b9bbaa;
  color: var(--ink);
  background: var(--paper);
  width: min(435px, calc(100vw - 32px));
  max-height: 88svh;
  padding: 23px 26px;
  border-radius: 14px;
  box-shadow: 0 16px 90px #1a302e40;
}
#guide::backdrop {
  background: #233c3470;
  backdrop-filter: blur(5px);
}
#guide header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
#guide .brand {
  font-size: 20px;
  letter-spacing: -0.04em;
}
#guide .brand i {
  width: 30px;
  height: 30px;
}
#guide header button {
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
}
#guide header button i {
  width: 21px;
  height: 21px;
}
#guide dt {
  margin: 15px 0 3px;
  font-weight: 700;
}
#guide dd {
  margin: 0;
  color: #526052;
  font-size: 14px;
  line-height: 1.65;
}
#guide form {
  margin: 20px 0 0;
}
#room {
  height: 100dvh;
  width: 100%;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #acbcab;
}
#world {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    #172e2617,
    transparent 19%,
    transparent 85%,
    #20362e08
  );
}
.top-left,
.top-right {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  display: flex;
  gap: 8px;
}
.top-left {
  left: max(22px, env(safe-area-inset-left));
}
.top-right {
  right: max(22px, env(safe-area-inset-right));
}
.token,
.island,
.visual-alert {
  border: 1px solid #f5f0d9a3;
  background: #f7f5e9eb;
  color: #254438;
  box-shadow: 0 3px 12px #20342822;
  backdrop-filter: blur(14px);
}
.token {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.token i {
  width: 23px;
  height: 23px;
}
.token.logo {
  background: #2d493de8;
  color: #fff4d8;
}
.token.logo i {
  width: 28px;
  height: 28px;
}
.island {
  border-radius: 40px;
  display: flex;
  align-items: center;
  padding: 5px;
  gap: 3px;
}
.island button {
  height: 43px;
  width: 46px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  border-radius: 50%;
  padding: 9px;
}
.island button:hover,
.island button[aria-pressed="true"],
.island button[aria-current="true"] {
  background: #dce4d5;
}
.island button i {
  width: 25px;
  height: 25px;
}
.dock {
  position: absolute;
  bottom: max(25px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
}
#net-status {
  position: absolute;
  left: 22px;
  bottom: 26px;
  background: #f5ddc4;
  color: #843e32;
}
.visual-alert {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 30px;
  padding: 10px 22px;
  pointer-events: none;
}
.visual-alert svg {
  width: 25px;
  height: 25px;
}
@media (max-width: 620px) {
  .top-left,
  .top-right {
    top: max(12px, env(safe-area-inset-top));
    gap: 5px;
  }
  .top-left {
    left: 12px;
  }
  .top-right {
    right: 12px;
  }
  .token {
    width: 41px;
    height: 41px;
  }
  .token i {
    width: 20px;
    height: 20px;
  }
  .dock {
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
