#home-reopen {
  pointer-events:auto; text-align:left; color:#fff2d4; cursor:pointer;
  font:inherit; line-height:1; border:0;
}
#home-reopen:hover {background:#1e594b}
.sign-name {display:block;font:800 27px/1.05 var(--serif);letter-spacing:.08em;margin:0 0 3px;}
.home-sign {
  --home-paper:#f6e7c6;
  --home-ink:#173f34;
  --home-red:#a43c2c;
  position:absolute; z-index:2;
  top:50%; left:clamp(20px,4vw,72px); transform:translateY(-44%);
  width:clamp(295px,26vw,360px);
  padding:9px;
  border:1px solid #163b2f; border-radius:2px;
  background:var(--home-paper); color:var(--home-ink);
  box-shadow:2px 3px 0 #284338b0, 6px 10px 28px #172c202d;
}
.home-sign:focus {outline:0;}
.home-sign:focus-visible {outline:3px solid #f7bd4f;outline-offset:3px;}
.home-letterpress {
  position:relative; padding:clamp(18px,2vw,27px) clamp(17px,1.9vw,25px) 17px;
  border:1px solid #718165;
  background:linear-gradient(117deg,#fff5dc55,#f6e7c600 55%);
}
.home-place {
  display:flex;align-items:center;gap:10px; margin:0 0 10px;
  font:700 12px/1.3 var(--sans);letter-spacing:.16em;color:var(--home-red);
}
.home-place::after {content:"";height:1px;width:32px;background:currentColor;}
.home-sign h1 {font:900 clamp(40px,3.5vw,55px)/1.1 var(--serif);letter-spacing:.025em;white-space:nowrap;margin:0;}
.home-verse {margin:8px 0 15px;font:600 15px/1.4 var(--serif);letter-spacing:.06em;}
.home-print {
  display:block; width:100%; height:auto; aspect-ratio:2.4;
  object-fit:cover; object-position:50% 57%; mix-blend-mode:multiply;
  border-block:1px solid #9caa8a;
}
.home-actions,.story-actions {display:flex;align-items:center;justify-content:space-between;gap:7px;}
.home-actions {margin-top:13px;}
.home-actions button,.story-actions button {border:0;font-family:var(--sans);font-weight:700;}
#home-enter,#story-enter {
  display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:42px;
  padding:8px 15px;border-radius:2px;background:#a3402d;color:#fff2d5;
  box-shadow:0 2px 0 #693324;font-size:15px;
}
#home-enter:hover,#story-enter:hover {background:#8f3727;}
#home-read,#story-back {min-height:42px;padding:6px 0;background:transparent;color:#255142;font-size:14px;text-decoration:underline;text-underline-offset:5px;text-decoration-color:#7c8e73;}
#home-read:hover,#story-back:hover,.story-source:hover {color:#9b3827;}
#home-story {
  position:fixed; width:min(510px,calc(100vw - 26px)); max-height:calc(100dvh - 36px); overflow:auto;
  margin:auto;padding:8px; border:1px solid #435346;border-radius:2px;
  background:#f7ebd0;color:#254339;box-shadow:3px 5px 0 #23382b55, 0 18px 60px #0d231a4d;
}
#home-story::backdrop {background:#142c24ab;}
.story-sheet {position:relative;border:1px solid #809177;padding:27px 30px 21px;}
.story-heading {display:flex;align-items:center;gap:10px;margin:0 25px 23px 0;}
.story-rule {width:18px;height:3px;background:#ac4a31;flex:none;}
#story-title {font:850 35px/1.25 var(--serif);margin:0;}
#story-title:focus {outline:0;}
#story-close {position:absolute;right:8px;top:8px;display:grid;place-items:center;width:40px;height:40px;border:0;background:transparent;}
.story-sheet h3 {margin:16px 0 5px;font:750 19px/1.3 var(--serif);color:#853c2c;}
.story-sheet p {font-size:15px;line-height:1.7;margin:5px 0 8px;}
.story-source {display:inline-block;color:#34594b;font-size:12px;text-decoration:underline;text-underline-offset:3px;line-height:1.5;}
.story-source+p {margin-top:15px;}
.story-actions {border-top:1px solid #a7aa89;margin-top:21px;padding-top:11px;}
.at-stall .home-sign {display:none;}
@media (max-width:760px),(pointer:coarse) {
  .home-sign {
    top:max(96px,calc(env(safe-area-inset-top) + 80px));left:12px;transform:none;width:min(264px,calc(100vw - 24px));padding:5px;
  }
  .home-letterpress {
    padding:12px 11px 9px;display:grid;
    grid-template-columns:minmax(0,1fr) 64px;column-gap:6px;
  }
  .home-place {margin:0 0 4px;font-size:10px;gap:6px;letter-spacing:.09em;}
  .home-place::after {width:19px;}
  .home-sign h1 {grid-column:1;font-size:29px;letter-spacing:0;}
  .home-verse {grid-column:1;margin:3px 0 1px;font-size:11px;letter-spacing:0;}
  .home-print {grid-column:2;grid-row:1/4;align-self:stretch;height:100%;width:100%;aspect-ratio:auto;object-position:10% 45%;border:0;}
  .home-actions {grid-column:1/-1;margin-top:7px;border-top:1px solid #a5ae8d;padding-top:5px;}
  #home-enter,#story-enter {min-height:38px;gap:13px;padding:6px 12px;font-size:14px;}
  #home-read,#story-back {min-height:38px;font-size:13px;}
}
@media (pointer:coarse),(max-width:650px){.sign-name{font-size:21px;}}
@media(max-height:480px) {
  .home-sign {top:76px; transform:none; width:235px; padding:4px;}
  .home-letterpress {padding:8px 10px;}
  .home-print {display:none;}
  .home-sign h1 {font-size:27px;}
  .home-place {margin:0 0 2px;}
  .home-verse {margin:3px 0;}
  .home-actions {margin-top:4px;}
}
@media(max-width:520px){
  .story-sheet {padding:22px 15px 12px;}
  .story-heading {margin-bottom:15px;}
  #story-title {font-size:28px;}
  .story-sheet p{font-size:14px;}
}

#home-language {
  flex:none; display:grid; place-items:center; min-width:35px; min-height:38px; padding:4px;
  background:transparent; color:var(--home-ink); border:1px solid #82917a; border-radius:3px;
}
#home-language svg {width:19px;height:19px}
html:not(:lang(zh)) .home-sign h1 {white-space:normal;font-size:clamp(29px,3.2vw,47px);line-height:1.04;}
html:not(:lang(zh)) .home-place {letter-spacing:.035em}
html:not(:lang(zh)) .home-actions {gap:5px}
html:not(:lang(zh)) #home-enter {gap:6px}
@media (max-width:760px),(pointer:coarse) {
  html:not(:lang(zh)) .home-sign {width:min(292px,calc(100vw - 24px))}
  html:not(:lang(zh)) .home-sign h1 {font-size:27px}
}
@media (max-width:435px){
  .world-tools {display:grid;grid-template-columns:repeat(3,36px);justify-content:end}
  .world-tools button {width:36px;height:36px}
}
@media(max-width:435px) {
  .hud-top .room {max-width:100%;white-space:nowrap}
  .hud-top .room .bb-name-trigger {min-width:24px;flex:1 1 auto}
  .interaction #nearby {max-width:calc(100vw - 139px);text-align:right}
  html:lang(en) #home-enter {white-space:nowrap;gap:5px;font-size:13px;padding-inline:9px}
  html:lang(en) #home-read {font-size:12px;line-height:1.18}
}
html:lang(en) #home-reopen small {display:none}
@media(max-width:355px){
  .world-tools [data-language-menu] {grid-column:2}
  .hud-top .room {max-width:calc(100vw - 116px)}
  html:lang(en) #home-reopen .sign-name {font-size:15px;letter-spacing:0;white-space:nowrap}
}

/* A clear first action; exploring remains one tap away. */
.home-actions {display:grid;grid-template-columns:1fr auto auto;gap:6px 10px;}
#home-start {grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:9px 14px;background:#a3402d;color:#fff2d5;border-radius:2px;box-shadow:0 2px 0 #693324;font-size:16px;}
#home-start:hover {background:#8f3727;}
#home-enter {background:transparent;color:#255142;box-shadow:none;font-size:13px;padding:6px 0;justify-content:flex-start;gap:8px;}
#home-enter:hover {background:transparent;color:#9b3827;}
#home-read {font-size:12px;}
body:has(#home-sign:not([hidden])) .presence-feed {visibility:hidden;}
@media(max-height:480px) {.home-actions {gap:2px 7px;} #home-start {min-height:38px;padding:5px 11px;font-size:14px;} #home-read {font-size:11px;}}
