:root {
  color-scheme: light;
  --ink: #243f35;
  --muted: #576b5c;
  --forest: #234a3d;
  --forest-dark: #173b30;
  --clay: #a75f3f;
  --gold: #f0ce91;
  --paper: #faf8ef;
  --line: #d6dacc;
  --surface: #fffdf4f5;
  --soft-shadow: 0 3px 12px #273e3021;
  --pad: clamp(18px, 3vw, 50px);
  --edge: clamp(15px, 2.25vw, 35px);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; width: 100%; min-width: 0; }
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
button, a { font: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:where(button, a, select, canvas):focus-visible { outline: 3px solid #c27c36; outline-offset: 3px; }
button { -webkit-appearance: none; }
:where(button, a) .ico, [data-icon] { flex: none; }
.ico {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mast {
  position: relative;
  z-index: 4;
  min-width: 0;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(8px, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 8px max(var(--pad), env(safe-area-inset-left));
  background: #f8f6ec;
  border-bottom: 1px solid #d3d7c8;
}
.wordmark, .mast nav, .topbtn, .wallet { display: inline-flex; align-items: center; }
.wordmark { flex: none; gap: 11px; }
.wordmark img { width: 39px; height: 39px; display: block; }
.wordmark h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .055em;
}
.mast nav { gap: 7px; }
.topbtn, .wallet {
  min-height: 44px;
  justify-content: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 25px;
  border: 1px solid transparent;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.topbtn { background: transparent; }
.wallet {
  color: #fffbed;
  background: var(--forest);
  box-shadow: inset 0 1px #ffffff0e;
}
.wallet .ico { color: #efd6a8; }
.wallet b {
  border-left: 1px solid #ffffff3d;
  padding-left: 10px;
  color: #ffe4a8;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

#stage {
  isolation: isolate;
  position: relative;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #f6f5e8, #e8ecdd 65%, #d5deca);
}
#world, #softwareRaster, #pins { position: absolute; inset: 0; width: 100%; height: 100%; }
#world { z-index: 1; display: block; touch-action: none; cursor: grab; }
#world:active { cursor: grabbing; }
#world:focus-visible { outline-offset: -4px; }
#softwareRaster { z-index: 0; display: none; pointer-events: none; }
#stage.soft #softwareRaster { display: block; }
#stage.soft #world { opacity: 0; }
#stage.soft:has(#world:focus-visible) { outline: 3px solid #c27c36; outline-offset: -4px; }
#pins { z-index: 2; overflow: hidden; pointer-events: none; }
.map-pin {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: min(180px, 45vw);
  padding: 5px 10px;
  border: 1px solid #aebfab;
  border-radius: 20px;
  color: #204636;
  background: #fffdf3f5;
  box-shadow: 0 2px 5px #253b2d30;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
  white-space: nowrap;
  pointer-events: auto;
}
.map-pin::after {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  bottom: -4px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #aebfab;
  border-bottom: 1px solid #aebfab;
  transform: rotate(45deg);
  background: #fffdf3;
}
.map-pin i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pin, var(--clay)); }
.map-pin span { overflow: hidden; text-overflow: ellipsis; }
.map-pin[aria-current="true"], .map-pin:focus-visible { background: var(--forest); color: #fffbed; z-index: 3; }
.map-pin[aria-current="true"]::after, .map-pin:focus-visible::after { background: var(--forest); }
#walkTarget {
  position: absolute;
  display: none;
  z-index: 2;
  left: 0;
  top: 0;
  width: 20px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #9b5934;
  box-shadow: 0 0 0 2px #fff9dd;
  pointer-events: none;
}

.viewtitle, #mode, .controls, #hint, #nearby, #stick, #progress, #toast { position: absolute; z-index: 3; }
.viewtitle {
  top: var(--edge);
  left: var(--pad);
  max-width: calc(100% - 155px);
  width: max-content;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 3px #fffef1, 0 1px 12px #fffce3;
}
.overline { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 750; letter-spacing: .1em; line-height: 1.4; }
.overline i { flex: none; display: inline-block; width: 19px; height: 3px; background: var(--clay); border-radius: 3px; }
.viewtitle h2 {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.45vw, 38px);
  line-height: 1.25;
  letter-spacing: .045em;
  overflow-wrap: anywhere;
}
#leave, #mode, .controls, #hint, #closeActivity {
  background: var(--surface);
  border: 1px solid #b9c5b4;
  box-shadow: var(--soft-shadow);
}
#leave, #mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  border-radius: 23px;
  padding: 8px 14px;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
#leave { margin-top: 9px; pointer-events: auto; }
#leave:not(:has(svg))::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-inline: 1px 2px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
#mode { top: var(--edge); right: var(--pad); }
#mode:not(:has(svg))::before {
  content: "";
  flex: none;
  width: 19px;
  height: 19px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d6352' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m2 5 6-2 8 2 6-2v16l-6 2-8-2-6 2zM8 3v16m8-14v16'/%3E%3C/svg%3E");
}
.controls {
  right: var(--pad);
  bottom: var(--edge);
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 24px;
}
.controls button, #closeActivity {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.controls button { padding: 0; border: 0; background: transparent; }
.controlRule { margin: 0 1px; width: 1px; height: 17px; background: #ccd5c4; }
#hint {
  left: var(--pad);
  bottom: var(--edge);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(35%, 450px);
  padding: 8px 12px;
  border-color: #d2d6c5;
  border-radius: 12px;
  color: #395442;
  pointer-events: none;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}
#hint .ico { width: 16px; height: 16px; }
#stage:has(#nearby:not([hidden])) #hint { opacity: 0; }
#nearby {
  left: 50%;
  bottom: var(--edge);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: min(50%, 380px);
  padding: 9px 17px 9px 10px;
  min-height: 46px;
  border: 1px solid #183a2e;
  border-radius: 24px;
  background: var(--forest);
  color: #fffaf0;
  box-shadow: 0 4px 15px #203a2f38;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
#nearby:not(:has(kbd))::before {
  content: "E";
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border: 1px solid #dccba9;
  border-radius: 7px;
  background: #eee2bb;
  color: #294c3d;
  font: 750 14px/1 system-ui, sans-serif;
}
#nearby kbd {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  min-height: 25px;
  padding: 4px;
  border-radius: 7px;
  background: #eee2bb;
  color: #294c3d;
}
#stick {
  display: none;
  left: var(--edge);
  bottom: var(--edge);
  width: 95px;
  height: 95px;
  border: 2px solid #ffffffb0;
  border-radius: 50%;
  background: #36534469;
  box-shadow: 0 3px 12px #243d302b, inset 0 0 0 1px #314c3f5e;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#stick::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #ffffff76;
  border-radius: 50%;
  pointer-events: none;
}
#knob {
  position: absolute;
  top: calc(50% - 18px);
  left: calc(50% - 18px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #f7e9c7;
  background: #345743;
  box-shadow: 0 2px 5px #142d254a, inset 0 1px #8f9c80;
  pointer-events: none;
}
#progress, #toast {
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  max-width: min(82%, 425px);
  padding: 11px 16px;
  border-radius: 15px;
  background: #244536f5;
  color: #fff9e9;
  box-shadow: var(--soft-shadow);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  text-align: center;
}
#progress { top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; }
#progress:not(:has(#retry:not([hidden])))::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid #e9d5ad55;
  border-top-color: var(--gold);
  animation: loading .85s linear infinite;
}
@keyframes loading { to { transform: rotate(1turn); } }
#retry { min-height: 40px; padding: 6px 12px; border: 1px solid #cad9c1; border-radius: 30px; background: #faf3d9; color: var(--ink); font-weight: 700; }
#toast { bottom: calc(var(--edge) + 64px); pointer-events: none; }
#toast:empty { display: none; }

.dock {
  z-index: 4;
  display: flex;
  align-items: center;
  gap: clamp(13px, 2vw, 34px);
  min-width: 0;
  min-height: 82px;
  padding: 8px max(var(--pad), env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
  border-top: 1px solid #365849;
  background: #234336;
  color: #fcf5dd;
}
.dockintro { flex: none; border-right: 1px solid #ffffff38; padding-right: clamp(15px, 2vw, 28px); }
.dockintro span, .dockintro strong { display: block; white-space: nowrap; }
.dockintro span { color: #c5d6c0; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.dockintro strong { margin-top: 3px; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
#stops {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #718a74 transparent;
}
.dockpoint {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  line-height: 1.25;
  text-align: start;
  white-space: nowrap;
  color: #fff8e6;
  background: transparent;
}
.dockpoint .miniicon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #adc2a951;
  border-radius: 10px;
  background: #ffffff0b;
  color: #e9d6a8;
}
.dockpoint strong, .dockpoint small { display: block; }
.dockpoint strong { font-size: 14px; font-weight: 750; }
.dockpoint small { color: #c2d3bd; font-size: 11px; font-weight: 550; margin-top: 4px; }
.dockpoint[aria-current="true"], .dockpoint.active { background: #ffffff14; border-color: #d3dfc865; }
.dockpoint:focus-visible { outline-offset: -3px; }

#activity {
  position: fixed;
  inset: 0;
  width: min(590px, 94vw);
  height: fit-content;
  max-width: none;
  max-height: min(88vh, 850px);
  max-height: min(88dvh, 850px);
  padding: 0;
  margin: auto;
  border: 1px solid #b8c3ae;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 18px 74px #132c2466;
  color: var(--ink);
  overflow: hidden;
}
#activity:not([open]) { display: none; }
#activity::backdrop { background: #142a24aa; backdrop-filter: blur(3px); }
#activity[data-kind="memory"], #activity[data-kind="rings"] {
  width: min(960px, 94vw);
  max-height: min(93vh, 940px);
  max-height: min(93dvh, 940px);
}
#activity[data-kind="product"] { width: min(735px, 94vw); }
.activityShell { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.activityHeader {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 17px clamp(18px, 3.3vw, 32px) 15px;
  border-bottom: 1px solid var(--line);
  background: #f3f2e6;
}
.activityHeading { min-width: 0; }
#activityCrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  color: #536856;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
  letter-spacing: .075em;
}
#activityCrumb::before { content: ""; width: 16px; height: 3px; flex: none; border-radius: 2px; background: var(--clay); }
#activityCrumb:empty { display: none; }
#activityTitle { margin: 0; font-family: var(--serif); font-size: clamp(23px, 2.6vw, 34px); letter-spacing: .035em; line-height: 1.3; overflow-wrap: anywhere; }
#closeActivity { width: 44px; height: 44px; padding: 0; box-shadow: none; }
#activityBody {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #99aa93 transparent;
  padding: clamp(15px, 2.6vw, 29px) clamp(18px, 3.3vw, 32px);
}
#activityBody > :first-child { margin-top: 0; }
#activityBody > :last-child { margin-bottom: 0; }
#activityBody p:not([class]), .guideText, .placeText { color: var(--muted); font-size: 15px; line-height: 1.75; }
.guideRow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 61px;
  padding: 7px 10px 7px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  text-align: start;
}
.guideRow:last-child { border-bottom-color: transparent; }
.guideRow::after { content: ""; margin-left: auto; width: 8px; height: 8px; flex: none; border-right: 1.75px solid #728675; border-top: 1.75px solid #728675; transform: rotate(45deg); }
.guideRow:has(.arr)::after { display: none; }
.guideRow .arr { margin-left: auto; }
.guideMedia {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 46px;
  padding: 5px;
  background: #eff1e4;
  color: #547462;
  border: 1px solid #d8dfcf;
  border-radius: 9px;
}
.guideMedia img { display: block; width: 100%; height: 100%; object-fit: contain; }
.guideMedia .ico { width: 25px; height: 25px; }
.guideRow b, .guideRow small { display: block; }
.guideRow b { font-size: 15px; font-weight: 750; line-height: 1.4; }
.guideRow small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.productLayout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(15px, 3.5vw, 30px); }
.productLayout > img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.productLayout h3 { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; margin: 7px 0; color: var(--ink); }
.productLayout p { margin-block: 7px 16px; }
.brandMark { display: block; width: auto; height: auto; max-width: 120px; max-height: 45px; object-fit: contain; object-position: left center; }
.brandMark img { width: auto; max-width: 100%; height: auto; max-height: 45px; object-fit: contain; }
.mainlink, .actionButton, .sectionlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--forest);
  border-radius: 12px;
  background: var(--forest);
  color: #fff9e9;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.mainlink .ico, .sectionlink .ico { width: 16px; height: 16px; }
.sectionlink { margin-top: 12px; background: transparent; color: var(--forest); border-color: #afc1aa; }
.actionButton:disabled { opacity: .58; }
@media (hover: hover) {
  .topbtn:hover, .controls button:hover, #leave:hover, #mode:hover, #closeActivity:hover, .guideRow:hover, .sectionlink:hover { background: #e8eddf; }
  .wallet:hover, #nearby:hover, .mainlink:hover, .actionButton:enabled:hover { background: var(--forest-dark); }
  .dockpoint:hover { background: #ffffff14; border-color: #ffffff3d; }
  .map-pin:hover, .map-pin:hover::after { background: var(--forest); color: #fffbed; border-color: var(--forest); z-index: 4; }
}

@media (min-width: 1580px) {
  #stops { justify-content: flex-start; gap: clamp(20px, 2.6vw, 54px); }
}
@media (max-width: 1050px) {
  .dock { padding-inline: 15px; gap: 11px; }
  .dockintro { padding-right: 13px; }
  .dockpoint { padding-inline: 6px; gap: 5px; }
}
@media (max-width: 900px) {
  .dockintro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #stops { justify-content: space-around; }
  #hint { max-width: 40%; }
}
@media (pointer: coarse), (max-width: 700px) {
  #stick { display: block; }
  #hint { left: var(--edge); bottom: calc(var(--edge) + 103px); max-width: min(43%, 260px); font-size: 11px; padding: 5px 8px; }
  #hint .ico { display: none; }
}
@media (max-width: 700px) {
  :root { --pad: 13px; --edge: 12px; }
  .mast { min-height: 56px; padding-block: 5px; padding-top: max(5px, env(safe-area-inset-top)); }
  .wordmark { gap: 7px; }
  .wordmark img { width: 33px; height: 33px; }
  .wordmark h1 { font-size: 20px; letter-spacing: .025em; }
  .mast nav { gap: 2px; }
  .topbtn, .wallet { font-size: 12px; padding-inline: 9px; gap: 5px; }
  .mast .ico { width: 17px; height: 17px; }
  .wallet b { padding-left: 6px; font-size: 12px; }
  .viewtitle { max-width: calc(100% - 126px); }
  .overline { font-size: 11px; }
  .overline i { width: 14px; }
  .viewtitle h2 { font-size: clamp(22px, 5.5vw, 29px); }
  #leave, #mode { min-height: 42px; padding-inline: 10px; font-size: 12px; }
  #mode:not(:has(svg))::before { width: 16px; height: 16px; }
  .controls { top: calc(var(--edge) + 49px); right: var(--pad); bottom: auto; flex-direction: column; padding: 1px; border-radius: 22px; }
  .controls button { width: 40px; height: 40px; }
  .controls .ico { width: 17px; height: 17px; }
  .controlRule { margin: 0; width: 17px; height: 1px; }
  #nearby { left: calc(50% + 40px); bottom: calc(var(--edge) + 12px); max-width: calc(100% - 130px); padding: 7px 12px 7px 8px; font-size: 13px; }
  #toast { bottom: calc(var(--edge) + 67px); max-width: calc(100% - 32px); font-size: 12px; }
  .map-pin { gap: 3px; padding: 4px 6px; font-size: 10px; }
  .map-pin i { width: 6px; height: 6px; }
  .dock { min-height: 66px; padding: 4px max(9px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); }
  #stops { justify-content: flex-start; gap: 2px; }
  .dockpoint { flex: 1 0 auto; flex-direction: column; justify-content: center; gap: 3px; min-width: 58px; padding: 3px 7px; }
  .dockpoint .miniicon { width: 28px; height: 26px; border-radius: 8px; }
  .dockpoint .ico { width: 16px; height: 16px; }
  .dockpoint strong { font-size: 11px; }
  .dockpoint small { display: none; }
  #activity { border-radius: 18px; width: min(95vw, 590px); }
  .activityHeader { gap: 8px; padding: 12px 15px; }
  #activityBody { padding: 13px 16px 18px; }
}
@media (max-width: 440px) {
  .topbtn { width: 44px; padding: 0; }
  .topbtn .navLabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wallet { padding-inline: 8px; }
  .productLayout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .productLayout > img { width: 100%; max-height: min(40dvh, 260px); }
  .productLayout .mainlink { width: 100%; }
  #activity[data-kind="memory"], #activity[data-kind="rings"] { width: 96vw; max-height: 95dvh; }
  #activity[data-kind="memory"] #activityBody, #activity[data-kind="rings"] #activityBody { padding-inline: 11px; }
}
@media (max-width: 355px) {
  :root { --pad: 9px; --edge: 9px; }
  .mast { gap: 2px; }
  .wordmark h1 { font-size: 17px; }
  .wordmark img { width: 29px; height: 29px; }
  .wallet { gap: 4px; }
}
@media (max-height: 530px) and (orientation: landscape) {
  .mast { min-height: 43px; padding-block: 2px; }
  .wordmark img { width: 30px; height: 30px; }
  .wordmark h1 { font-size: 19px; }
  .topbtn, .wallet { min-height: 38px; }
  .dock { min-height: 49px; padding-block: 2px; }
  .dockintro span, .dockpoint small { display: none; }
  .dockpoint { min-height: 42px; padding-block: 2px; }
  .viewtitle { top: 9px; }
  .viewtitle h2 { font-size: 22px; }
  #mode { top: 7px; }
  .controls { flex-direction: row; top: auto; bottom: 8px; padding: 1px; }
  .controls button { width: 36px; height: 36px; }
  .controlRule { height: 15px; width: 1px; }
  #stick { width: 77px; height: 77px; bottom: 8px; }
  #hint { display: none; }
  #nearby { bottom: 9px; left: 45%; max-width: calc(100% - 330px); }
  #activity, #activity[data-kind="memory"], #activity[data-kind="rings"] { max-height: 96dvh; }
  .activityHeader { padding-block: 6px; }
  #activityTitle { font-size: 21px; }
  #activityBody { padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

body:not(.key-nav) #world:focus-visible, body:not(.key-nav) #stage.soft:has(#world:focus-visible) { outline: none; }
.stallOfficial { display: flex; align-items: center; gap: 14px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.stallOfficial .sectionlink { margin: 0; }

.portalEntry { color: var(--forest); text-decoration: none; white-space: nowrap; }
@media (max-width: 700px) {
  .mast .portalEntry { width:auto; min-width:36px; padding-inline:6px; }
  .mast .adminLabel { display:none; }
}
@media (max-width: 480px) {
  .mast{gap:3px;}
  .mast nav{gap:0;}
  .mast #guide,.mast #account,.mast .portalEntry{min-width:36px;width:36px;padding:0;}
  .mast .portalEntry > span:last-child,.mast .topbtn .navLabel,.mast .walletLabel{
    position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);
  }
  .mast .wallet{padding-inline:8px;}
  .mast .wallet b{border-left:0;padding-left:0;}
}
@media (max-width: 345px) {
  .mast .wordmark img{width:24px;height:24px;}
  .mast .wordmark{gap:4px;}
  .mast #guide,.mast #account,.mast .portalEntry{min-width:31px;width:31px;}
}
