:root {
    --paper:#f3efe4;
   --paper-solid:#f6f2e9;
   --paper-inset:#e8e1d2;
   --ink:#292d29;
   --muted:#62685f;
   --teal:#294b4a;
   --teal-hover:#375f5b;
   --red:#a34235;
   --bronze:#897246;
   --line:rgba(63,76,64,.28);
   --paper-glass:rgba(246,242,233,.92);
   --on-teal:#f7f3e8;
   --scrim:rgba(27,40,36,.32);
   --shadow:0 16px 64px rgba(30,45,40,.17);
   --focus:#a34235;
    --serif:"STKaiti","KaiTi","Kaiti SC","SimSun",serif;
   --body:"Microsoft YaHei","PingFang SC",sans-serif;
   --ease:cubic-bezier(.22,1,.36,1);
   --small:13px;
   --body-size:16px;
   --control:20px;
   --title:30px;
}
* {
  box-sizing:border-box
}
html,body {
  margin:0;
  min-height:100%;
  background:var(--paper);
  color:var(--ink)
}
body {
  font-family:var(--body);
  font-size:var(--body-size)
}
button,input,textarea {
  font:inherit
}
button {
  color:inherit;
  cursor:pointer;
  border:0;
  background:none;
  -webkit-tap-highlight-color:transparent
}
button:disabled {
  cursor:not-allowed;
  opacity:.5
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:2px solid var(--focus);
  outline-offset:5px
}
button {
  transition:color .16s,background .16s,transform .18s var(--ease)
}
button:active:not(:disabled) {
  transform:translateY(1px)
}
button[hidden],[hidden] {
  display:none!important
}
.icon-defs {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.icon {
  width:28px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
h1,h2,h3,p {
  margin:0
}
h1,h2,h3 {
  font-family:var(--serif)
}
.game {
  height:100svh;
  min-height:600px;
  display:grid;
  grid-template-rows:92px minmax(0,1fr) 76px;
  overflow:hidden;
  position:relative
}
.game:after {
  content:"";
  position:absolute;
  inset:9px;
  pointer-events:none;
  border:1px solid var(--line);
  z-index:8
}
.topbar {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 3%;
  gap:20px;
  background:var(--paper-solid);
  color:var(--ink);
  z-index:4
}
.topbar:after {
  content:"";
  position:absolute;
  bottom:0;
  left:24px;
  right:24px;
  border-bottom:1px solid var(--line)
}
.brand {
  display:flex;
  align-items:center;
  gap:15px;
  white-space:nowrap
}
.brand h1 {
  font-size:42px;
  letter-spacing:5px;
  font-weight:600
}
.seal {
  font-family:var(--serif);
  font-size:13px;
  line-height:1.1;
  border:1px solid var(--red);
  padding:3px;
  color:var(--red);
  border-radius:2px
}
.header-right {
  display:flex;
  align-items:center;
  gap:32px
}
.resources {
  display:flex;
  gap:28px;
  font-family:var(--serif);
  font-size:21px
}
.resources>span {
  display:flex;
  align-items:center;
  gap:9px
}
.resources>span+span {
  padding-left:24px;
  border-left:1px solid var(--line)
}
.resources .icon {
  width:26px;
  height:26px;
  color:var(--teal)
}
b {
  font-weight:500;
  font-variant-numeric:tabular-nums
}
.profile-button {
  display:flex;
  align-items:center;
  gap:13px;
  text-align:left;
  padding:4px 10px
}
.profile-button:hover {
  color:var(--teal)
}
.portrait {
  display:inline-block;
  width:56px;
  height:56px;
  border-radius:50%;
  border:1px solid var(--bronze);
  background-image:url('assets/style-reference.png');
  background-size:2100% auto;
  background-position:87.6% 0;
  background-color:var(--paper-inset);
  flex-shrink:0
}
.profile-button strong {
  display:block;
  font-family:var(--serif);
  font-size:22px;
  font-weight:500;
  letter-spacing:2px
}
.profile-button small {
  display:block;
  font-size:var(--small);
  margin-top:5px;
  color:var(--muted)
}
.world {
  position:relative;
  isolation:isolate;
  background:var(--paper);
  overflow:hidden
}
.landscape {
  position:absolute;
  inset:0;
  background-image:url('assets/city-background.png');
  background-size:cover;
  background-position:center center;
  transition:filter .28s;
  z-index:-3
}
.world:after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow:inset 0 18px 35px -25px var(--paper),inset 0 -30px 40px -20px var(--paper);
  z-index:-1
}
.city-heading {
  position:absolute;
  left:50%;
  top:18px;
  transform:translateX(-50%);
  text-align:center;
  pointer-events:none
}
.city-heading h2 {
  font-size:32px;
  letter-spacing:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  white-space:nowrap;
  margin:4px 0 8px;
  text-shadow:0 1px 7px var(--paper)
}
.city-heading h2 span {
  height:1px;
  width:32px;
  background:var(--teal)
}
.city-heading p {
  font-family:var(--serif);
  font-size:var(--small);
  letter-spacing:3px;
  color:var(--muted);
  margin-bottom:8px
}
.city-heading>div {
  font-size:12px;
  letter-spacing:2px;
  color:var(--muted)
}
.weather-dot {
  margin:0 8px
}
.side-nav {
  position:absolute;
  left:20px;
  top:15%;
  width:110px;
  display:flex;
  flex-direction:column;
  background:var(--paper-glass);
  color:var(--ink);
  padding:12px 0
}
.nav-button {
  position:relative;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-family:var(--serif);
  font-size:24px;
  letter-spacing:3px
}
.nav-button+.nav-button:before {
  content:"";
  position:absolute;
  top:0;
  left:20%;
  width:60%;
  height:1px;
  background:var(--line)
}
.nav-button span {
  white-space:nowrap;
}
.nav-button.active {
  background:var(--teal);
  color:var(--on-teal)
}
.nav-button:hover:not(.active) {
  color:var(--teal);
  background:var(--paper-inset)
}
.notice {
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--red);
  position:absolute;
  right:8px;
  top:20px
}
.map-places {
  position:absolute;
  inset:0;
  pointer-events:none
}
.place {
  position:absolute;
  left:var(--x);
  top:var(--y);
  transform:translate(-50%,-15%);
  pointer-events:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:64px;
  min-height:100px;
  padding:0 8px 12px
}
.place:active:not(:disabled) {
  transform:translate(-50%,-15%)
}
.place-plaque {
  writing-mode:vertical-rl;
  font-family:var(--serif);
  font-size:24px;
  letter-spacing:4px;
  line-height:1.2;
  padding:19px 13px 24px;
  background:var(--teal);
  color:var(--on-teal);
  clip-path:polygon(50% 0,100% 10px,100% calc(100% - 12px),50% 100%,0 calc(100% - 12px),0 10px);
  position:relative;
  transition:transform .2s var(--ease),background .2s
}
.place-plaque:after {
  content:"";
  position:absolute;
  inset:5px;
  border:1px solid rgba(243,239,228,.4);
  clip-path:polygon(50% 0,100% 7px,100% calc(100% - 7px),50% 100%,0 calc(100% - 7px),0 7px)
}
.anchor {
  width:8px;
  height:8px;
  background:var(--paper);
  border:1px solid var(--teal);
  transform:rotate(45deg);
  margin-top:8px
}
.place-tip {
  position:absolute;
  bottom:calc(100% + 9px);
  white-space:nowrap;
  background:var(--paper-solid);
  color:var(--teal);
  padding:9px 13px;
  font-family:var(--serif);
  font-size:16px;
  pointer-events:none;
  opacity:0;
  transform:translateY(5px);
  transition:opacity .18s,transform .18s;
  box-shadow:0 4px 20px rgba(30,45,40,.1)
}
.place:hover .place-plaque,.place:focus-visible .place-plaque {
  transform:translateY(-6px);
  background:var(--teal-hover)
}
.place:hover .place-tip,.place:focus-visible .place-tip {
  opacity:1;
  transform:none
}
.place.visited .anchor {
  background:var(--teal)
}
.place.current .anchor {
  background:var(--red);
  border-color:var(--red)
}
.world-note {
  position:absolute;
  left:35px;
  bottom:28px;
  display:flex;
  align-items:center;
  gap:12px;
  font-family:var(--serif);
  font-size:16px;
  background:var(--paper-glass);
  color:var(--muted);
  padding:9px 14px
}
.small-seal {
  color:var(--red);
  border:1px solid var(--red);
  font-family:var(--serif);
  padding:1px 3px;
  font-size:13px
}
.scene-toggle {
  position:absolute;
  right:30px;
  bottom:28px;
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--serif);
  font-size:16px;
  padding:9px 12px;
  background:var(--paper-glass);
  color:var(--teal)
}
.scene-toggle .icon {
  width:20px;
  height:20px
}
.quest-tracker {
  position:absolute;
  right:30px;
  top:30px;
  display:flex;
  align-items:center;
  gap:13px;
  text-align:left;
  background:var(--paper-glass);
  color:var(--ink);
  padding:14px 18px;
  max-width:240px
}
.tracker-line {
  height:35px;
  width:2px;
  background:var(--red)
}
.quest-tracker small {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:7px
}
.quest-tracker strong {
  font-family:var(--serif);
  font-size:17px;
  font-weight:500
}
.quest-tracker .icon {
  width:18px;
  height:18px
}
.bottom-nav {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:var(--paper-solid);
  color:var(--ink);
  padding:0 28px;
  position:relative;
  z-index:4
}
.bottom-nav:before {
  content:"";
  position:absolute;
  top:0;
  left:24px;
  right:24px;
  border-top:1px solid var(--line)
}
.bottom-nav>button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  font-family:var(--serif);
  font-size:25px;
  letter-spacing:3px;
  position:relative
}
.bottom-nav>button+button:before {
  content:"";
  height:25px;
  width:1px;
  background:var(--line);
  position:absolute;
  left:0
}
.bottom-nav>button:hover {
  color:var(--teal);
  background:var(--paper-inset)
}
.ink-dot {
  width:5px;
  height:5px;
  background:var(--red);
  border-radius:50%;
  position:absolute;
  left:calc(50% + 76px);
  top:24px
}
.atmosphere {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-2;
  overflow:hidden
}
.mist {
  position:absolute;
  width:70%;
  height:120px;
  border-radius:50%;
  background:rgba(247,245,235,.35);
  filter:blur(22px);
  animation:mist 28s ease-in-out infinite alternate
}
.mist-one {
  top:24%;
  left:25%
}
.mist-two {
  top:66%;
  left:44%;
  animation-delay:-15s;
  opacity:.6
}
.petal {
  position:absolute;
  width:6px;
  height:10px;
  border-radius:80% 10% 80% 20%;
  background:rgba(172,114,105,.65);
  left:15%;
  top:-30px;
  animation:petal 22s linear infinite
}
.p2 {
  left:42%;
  animation:petal 27s linear -7s infinite
}
.p3 {
  left:65%;
  animation-delay:-13s
}
.p4 {
  left:83%;
  animation:petal 30s linear -18s infinite
}
.p5 {
  left:25%;
  animation:petal 32s linear -20s infinite
}
@keyframes mist {
  from {
    transform:translateX(-5%)
  }
  to {
    transform:translateX(7%)
  }
}
@keyframes petal {
  0% {
    transform:translate(0,0) rotate(0);
    opacity:0
  }
  10% {
    opacity:.6
  }
  90% {
    opacity:.5
  }
  100% {
    transform:translate(140px,75vh) rotate(320deg);
    opacity:0
  }
}
body.dusk .landscape {
  filter:brightness(.73) saturate(.8) sepia(.12)
}
body.dusk .world {
  background:var(--paper-inset)
}
body.dusk .atmosphere {
  opacity:.5
}
dialog {
  padding:0;
  border:0;
  background:var(--paper-solid);
  color:var(--ink);
  width:min(600px,calc(100vw - 40px));
  max-height:min(80svh,820px);
  margin:auto;
  box-shadow:var(--shadow);
  overflow:hidden
}
dialog::backdrop {
  background:var(--scrim)
}
dialog[open] {
  display:flex;
  flex-direction:column;
  animation:panel-in .24s var(--ease)
}
@keyframes panel-in {
  from {
    opacity:0;
    transform:translateY(14px)
  }
  to {
    opacity:1;
    transform:none
  }
}
.dialog-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:25px 32px 20px;
  flex-shrink:0;
  border-bottom:1px solid var(--line)
}
.dialog-location {
  font-family:var(--serif);
  font-size:14px;
  letter-spacing:3px;
  color:var(--muted)
}
.dialog-head h2 {
  font-size:30px;
  letter-spacing:4px;
  font-weight:500;
  margin-top:5px
}
.close-button {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  color:var(--muted)
}
.close-button:hover {
  background:var(--paper-inset);
  color:var(--teal)
}
.dialog-content {
  padding:25px 32px 32px;
  overflow:auto;
  overscroll-behavior:contain;
  line-height:1.8
}
.dialog-content h3 {
  font-size:22px;
  font-weight:500;
  margin:22px 0 12px;
  letter-spacing:2px
}
.dialog-content h3:first-child {
  margin-top:0
}
.lead {
  font-family:var(--serif);
  font-size:20px;
  line-height:1.9;
  margin-bottom:20px
}
.muted {
  color:var(--muted);
  font-size:14px
}
.paragraph {
  margin:12px 0 20px;
  line-height:1.9
}
.actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px
}
.primary,.secondary {
  min-height:44px;
  padding:9px 23px;
  font-family:var(--serif);
  font-size:19px;
  letter-spacing:1px
}
.primary {
  background:var(--teal);
  color:var(--on-teal)
}
.primary:hover:not(:disabled) {
  background:var(--teal-hover)
}
.secondary {
  border:1px solid var(--line);
  color:var(--teal)
}
.secondary:hover:not(:disabled) {
  background:var(--paper-inset)
}
.text-button {
  color:var(--teal);
  text-decoration:underline;
  text-underline-offset:5px;
  padding:5px 0
}
.info-strip {
  padding:16px 20px;
  background:var(--paper-inset);
  color:var(--ink);
  margin:18px 0;
  display:flex;
  gap:24px;
  justify-content:space-between;
  flex-wrap:wrap;
  font-size:14px
}
.row-list {
  display:flex;
  flex-direction:column
}
.list-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 0;
  border-bottom:1px solid var(--line)
}
.list-row:first-child {
  padding-top:0
}
.list-row:last-child {
  border-bottom:0
}
.list-row h3 {
  margin:0 0 5px;
  font-size:21px
}
.list-row p {
  font-size:14px;
  color:var(--muted)
}
.list-row button {
  flex-shrink:0
}
.route-row {
  width:100%;
  text-align:left;
  padding:14px 0;
  display:flex;
  align-items:center;
  gap:16px;
  border-bottom:1px solid var(--line)
}
.route-row strong {
  font-family:var(--serif);
  font-size:21px;
  font-weight:500;
  min-width:85px
}
.route-row span {
  font-size:14px;
  color:var(--muted);
  flex:1
}
.route-row .icon {
  width:20px;
  height:20px;
  color:var(--teal)
}
.route-row:hover strong {
  color:var(--red)
}
.dialog-quote {
  padding:18px 22px;
  border-left:2px solid var(--teal);
  font-family:var(--serif);
  font-size:21px;
  line-height:1.9;
  margin:18px 0;
  background:var(--paper-inset);
  color:var(--ink)
}
.choice {
  width:100%;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:50px;
  padding:12px 16px;
  margin:10px 0;
  background:var(--paper-inset);
  color:var(--teal);
  font-family:var(--serif);
  font-size:19px
}
.choice:hover {
  background:var(--teal);
  color:var(--on-teal)
}
.choice .icon {
  width:20px;
  height:20px
}
.profile-top {
  display:flex;
  gap:20px;
  align-items:center;
  margin-bottom:24px
}
.profile-top .portrait {
  width:84px;
  height:84px
}
.profile-top h3 {
  margin:0;
  font-size:28px
}
.profile-top p {
  color:var(--muted);
  font-size:14px
}
.profile-stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin:20px 0
}
.profile-stats>div {
  padding:14px 0;
  border-top:1px solid var(--line)
}
.profile-stats small {
  display:block;
  color:var(--muted)
}
.profile-stats strong {
  font-family:var(--serif);
  font-size:24px;
  font-weight:500
}
.progress {
  height:5px;
  background:var(--paper-inset);
  margin:12px 0 7px
}
.progress>span {
  height:100%;
  display:block;
  background:var(--teal);
  transition:transform .3s
}
.record {
  position:relative;
  padding:0 0 20px 20px;
  margin-left:4px;
  border-left:1px solid var(--line)
}
.record:before {
  content:"";
  position:absolute;
  width:5px;
  height:5px;
  background:var(--teal);
  border-radius:50%;
  left:-3px;
  top:10px
}
.record time {
  font-size:12px;
  color:var(--muted)
}
.record p {
  font-size:15px
}
.field {
  display:block;
  margin:18px 0
}
.field>span {
  display:block;
  font-size:14px;
  color:var(--muted);
  margin-bottom:8px
}
input[type=text],textarea {
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  border-radius:0;
  font-size:16px
}
textarea {
  min-height:95px;
  resize:vertical
}
.settings-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 0;
  border-bottom:1px solid var(--line)
}
input[type=checkbox] {
  accent-color:var(--teal);
  width:20px;
  height:20px;
  cursor:pointer
}
.setting-label {
  display:block;
  font-size:17px
}
.settings-row p {
  font-size:13px;
  color:var(--muted)
}
.danger-text {
  color:var(--red)
}
.progress-message {
  font-family:var(--serif);
  font-size:22px;
  color:var(--teal);
  text-align:center;
  padding:26px 0
}
.message {
  padding:12px 16px;
  margin:12px 0;
  background:var(--paper-inset);
  color:var(--ink)
}
.message strong {
  font-family:var(--serif);
  font-size:18px
}
.message p {
  font-size:15px;
  overflow-wrap:anywhere
}
.message time {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:5px
}
.empty-state {
  text-align:center;
  padding:28px 10px;
  color:var(--muted)
}
.toast {
  position:fixed;
  bottom:100px;
  left:50%;
  transform:translate(-50%,8px);
  padding:12px 24px;
  background:var(--teal);
  color:var(--on-teal);
  font-family:var(--serif);
  font-size:18px;
  z-index:20;
  pointer-events:none;
  opacity:0;
  transition:opacity .2s,transform .2s;
  max-width:calc(100vw - 32px);
  text-align:center
}
.toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
.save-notice {
  position:fixed;
  top:0;
  left:0;
  right:0;
  text-align:center;
  padding:8px;
  background:var(--paper-solid);
  color:var(--red);
  z-index:30;
  font-size:13px
}
.noscript {
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  background:var(--paper);
  color:var(--ink)
}
.local-label {
  font-size:12px;
  color:var(--muted);
  margin-bottom:16px
}
body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after {
  animation:none!important;
  transition:none!important
}
@media(min-width:1800px) {
  .topbar {
    padding:0 4%
  }
  .brand h1 {
    font-size:46px
  }
  .side-nav {
    width:130px;
    left:30px
  }
  .nav-button {
    min-height:78px
  }
  .place-plaque {
    font-size:27px;
    padding:22px 15px 27px
  }
  .city-heading {
    top:25px
  }
}
@media(max-width:1100px) {
  .game {
    grid-template-rows:80px minmax(0,1fr) 66px
  }
  .brand h1 {
    font-size:34px;
    letter-spacing:3px
  }
  .header-right {
    gap:15px
  }
  .resources {
    font-size:18px;
    gap:15px
  }
  .resources>span+span {
    padding-left:15px
  }
  .profile-button {
    padding:0;
    gap:8px
  }
  .portrait {
    width:46px;
    height:46px
  }
  .profile-button strong {
    font-size:19px
  }
  .side-nav {
    width:90px;
    left:14px
  }
  .nav-button {
    font-size:21px;
    gap:7px;
    min-height:60px
  }
  .nav-button .icon {
    width:23px;
    height:23px
  }
  .place-plaque {
    font-size:22px;
    padding:16px 11px 22px
  }
  .quest-tracker {
    top:15px;
    right:20px;
    padding:10px 12px
  }
  .quest-tracker small {
    font-size:12px
  }
  .quest-tracker strong {
    font-size:15px
  }
  .city-heading {
    left:47%;
    top:12px
  }
  .city-heading p {
    display:none
  }
  .bottom-nav>button {
    font-size:22px
  }
  .world-note {
    left:20px;
    bottom:18px;
    font-size:14px
  }
  .scene-toggle {
    right:20px;
    bottom:18px
  }
  .place-mountain {
    --x:91%!important;
    --y:24%!important
  }
}
@media(max-width:700px) {
  .game {
    height:100svh;
    min-height:650px;
    grid-template-rows:108px minmax(0,1fr) 72px
  }
  .game:after {
    inset:5px
  }
  .topbar {
    align-items:flex-start;
    padding:16px 20px
  }
  .brand {
    gap:8px
  }
  .brand h1 {
    font-size:29px;
    letter-spacing:2px
  }
  .seal {
    font-size:10px
  }
  .header-right {
    display:block
  }
  .profile-button .portrait {
    width:36px;
    height:36px
  }
  .profile-button strong {
    font-size:17px;
    letter-spacing:1px
  }
  .profile-button small {
    font-size:11px;
    margin-top:2px
  }
  .resources {
    position:absolute;
    left:22px;
    bottom:13px;
    font-size:16px;
    gap:18px
  }
  .resources .icon {
    width:19px;
    height:19px
  }
  .resources>span {
    gap:5px
  }
  .resources>span+span {
    padding-left:18px
  }
  .topbar:after {
    left:14px;
    right:14px
  }
  .landscape {
    background-position:48% center
  }
  .city-heading {
    top:16px;
    left:50%
  }
  .city-heading h2 {
    font-size:26px;
    letter-spacing:5px;
    gap:10px
  }
  .city-heading h2 span {
    width:18px
  }
  .city-heading>div {
    font-size:11px
  }
  .side-nav {
    left:10px;
    top:100px;
    width:55px;
    padding:5px 0
  }
  .nav-button {
    flex-direction:column;
    gap:4px;
    min-height:63px;
    font-size:16px;
    letter-spacing:1px
  }
  .nav-button .icon {
    width:21px;
    height:21px
  }
  .notice {
    right:5px;
    top:9px
  }
  .place-plaque {
    font-size:21px;
    padding:15px 10px 22px;
    letter-spacing:3px
  }
  .place {
    min-width:50px;
    min-height:80px;
    padding:0 3px 8px
  }
  .place-gate {
    --x:31%!important;
    --y:26%!important
  }
  .place-market {
    --x:29%!important;
    --y:58%!important
  }
  .place-arena {
    --x:55%!important;
    --y:47%!important
  }
  .place-room {
    --x:70%!important;
    --y:27%!important
  }
  .place-mountain {
    --x:89%!important;
    --y:18%!important
  }
  .place-outskirts {
    --x:84%!important;
    --y:68%!important
  }
  .place-tip {
    display:none
  }
  .quest-tracker {
    top:auto;
    bottom:19px;
    left:20px;
    right:auto;
    max-width:210px;
    padding:8px 12px
  }
  .quest-tracker small {
    display:none
  }
  .quest-tracker strong {
    font-size:15px
  }
  .tracker-line {
    height:22px
  }
  .world-note {
    display:none
  }
  .scene-toggle {
    right:15px;
    bottom:20px;
    font-size:14px;
    gap:5px;
    padding:8px
  }
  .scene-toggle .icon {
    width:18px;
    height:18px
  }
  .bottom-nav {
    padding:0 10px
  }
  .bottom-nav:before {
    left:14px;
    right:14px
  }
  .bottom-nav>button {
    flex-direction:column;
    gap:6px;
    font-size:16px;
    letter-spacing:1px
  }
  .bottom-nav .icon {
    width:24px;
    height:24px
  }
  .bottom-nav>button+button:before {
    height:28px
  }
  .ink-dot {
    left:calc(50% + 17px);
    top:9px
  }
  dialog {
    width:calc(100vw - 24px);
    max-height:85svh
  }
  .dialog-head {
    padding:20px 22px 15px
  }
  .dialog-content {
    padding:20px 22px 25px
  }
  .dialog-head h2 {
    font-size:27px
  }
  .lead {
    font-size:19px
  }
  .profile-stats {
    gap:10px
  }
  .profile-stats strong {
    font-size:21px
  }
  .list-row {
    gap:12px
  }
  .list-row .primary,.list-row .secondary {
    padding:8px 14px;
    font-size:17px
  }
  .toast {
    bottom:90px;
    font-size:16px;
    min-width:230px
  }
  .route-row {
    gap:10px
  }
  .route-row span {
    font-size:13px
  }
  .route-row strong {
    min-width:75px;
    font-size:19px
  }
}
@media(max-height:650px) and (min-width:701px) {
  .game {
    min-height:480px;
    grid-template-rows:70px minmax(0,1fr) 58px
  }
  .side-nav {
    top:12%;
    padding:0
  }
  .nav-button {
    min-height:48px;
    font-size:19px
  }
  .place-plaque {
    font-size:19px;
    padding:12px 10px 17px
  }
  .city-heading>div {
    display:none
  }
  .quest-tracker {
    top:10px
  }
  .world-note,.scene-toggle {
    bottom:10px
  }
  .place-mountain {
    --y:22%!important
  }
  .bottom-nav>button {
    font-size:21px
  }
  .brand h1 {
    font-size:32px
  }
  .portrait {
    width:45px;
    height:45px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }
}
@media(max-height:500px) and (min-width:701px) {
  .game {
    min-height:360px;
    grid-template-rows:60px minmax(0,1fr) 54px
  }
  .topbar {
    padding:0 24px
  }
  .brand h1 {
    font-size:29px
  }
  .brand .seal {
    font-size:10px
  }
  .profile-button .portrait {
    width:36px;
    height:36px
  }
  .profile-button strong {
    font-size:17px
  }
  .profile-button small {
    font-size:11px
  }
  .resources {
    font-size:16px
  }
  .side-nav {
    top:8%;
    width:80px;
    padding:0
  }
  .nav-button {
    min-height:40px;
    font-size:18px
  }
  .nav-button .icon {
    width:20px;
    height:20px
  }
  .place-plaque {
    font-size:17px;
    letter-spacing:2px;
    padding:12px 9px 17px
  }
  .place {
    min-height:65px
  }
  .anchor {
    margin-top:5px;
    width:6px;
    height:6px
  }
  .city-heading {
    top:9px
  }
  .city-heading h2 {
    font-size:23px;
    margin:0
  }
  .city-heading p,.world-note,.quest-tracker {
    display:none
  }
  .scene-toggle {
    bottom:10px;
    padding:6px 10px;
    font-size:13px
  }
  .bottom-nav>button {
    font-size:18px;
    gap:9px
  }
  .bottom-nav .icon {
    width:22px;
    height:22px
  }
  .place-mountain {
    --y:17%!important
  }
  .place-room {
    --y:20%!important
  }
  .place-outskirts {
    --y:58%!important
  }
}
