@import url('/town-theme.css');
.game-guide { width:min(29rem,calc(100% - 2rem)); padding:1.6rem; border-radius:1rem; }
.game-guide h2 { margin:0 0 1.15rem; }
.game-guide ol { padding-inline-start:1.4rem; }
.game-guide li { margin-block:1rem; }
.game-guide li p { margin:.2rem 0 0; line-height:1.55; }
.game-guide button { margin-top:.5rem; }
:root {
  --gutter: clamp(18px,4.1vw,72px);
  line-height: 1.55;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0; min-width: 300px; min-height: 100vh }
button, input, select, textarea { font: inherit; color: inherit }
button { border: 0; cursor: pointer; background: transparent }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation }
button:disabled { cursor: default; opacity: .44 }
button:not(:disabled):active { transform: translateY(1px) }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px }
button svg, i[data-icon] svg, .event-icon svg, .section-icon svg, .filter-icon svg { width: 1.16em; height: 1.16em; display: block; flex: none }
i[data-icon] { font-style: normal; display: inline-grid; place-items: center; flex: none }
img { vertical-align: middle; max-width: 100% }
button, a, h1, h2, h3, h4 { overflow-wrap: anywhere }
h1, h2, h3, p { margin: 0 }
[hidden] { display: none !important }
.skip-link { position: fixed; left: 20px; top: -5rem; background: #fff; z-index: 80; padding: .7rem 1rem; color: var(--purple-dark); border: 1px solid var(--purple); border-radius: 5px }
.skip-link:focus { top: 10px }
.site-header { background: var(--panel); border-bottom: 1px solid var(--line) }
.header-inner, .main-wrap { max-width: 1584px; margin-inline: auto; padding-inline: var(--gutter) }
.header-inner { min-height: 77px; display: flex; align-items: center; gap: clamp(16px,2.2vw,36px) }
.brand { flex:none;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 }
.brand picture,.brand img { display:block }
.brand img { width:clamp(7rem,11vw,9.25rem);height:auto }
.main-nav { display: flex; align-items: center; gap: clamp(1px,.55vw,9px) }
.nav-link { border-radius: 7px; padding: 9px clamp(9px,1.15vw,19px); font-size: .91rem; font-weight: 680; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #6f6878 }
.nav-link:hover, .section-more:hover, .icon-btn:hover, .feed-more:hover { background: #f5f1fa; color: var(--purple-dark) }
.nav-link.active, .nav-link[aria-current="page"] { background: var(--lavender); color: var(--purple-dark) }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 13px; flex: none }
.icon-btn, .section-more, .feed-more { display: inline-flex; align-items: center; justify-content: center; gap: .48em; font-weight: 700 }
.icon-btn { border: 1px solid #d8d3df; background: #fff; border-radius: 7px }
.audio-btn[data-sound-on], .volume-panel[open] .audio-btn { color: var(--purple-dark); background: #eee7fc; border-color: #ad97c8 }
.icon-btn { width: 38px; height: 38px; padding: 0; color: #665f70 }
.btn.danger,button.danger { color: #a13e47 }
.join-btn { padding: 8px 14px; gap: 7px; white-space: nowrap }
.join-btn svg { stroke-width: 2.3 }
.main-wrap { padding-top: clamp(23px,2.5vw,38px); padding-bottom: 48px }
.view-bar,.section-bar,.dialog-heading,.section-label,.view-title,.world-date,.map-meta,.map-guide,.map-caption,.zoom-group,.feed-heading { display: flex; align-items: center }
.view-bar,.section-bar { justify-content: space-between; gap: 12px }
.view-bar { margin-bottom: clamp(17px,1.4vw,24px); flex-wrap: wrap }
.view-title { gap: 14px; flex-wrap: wrap }
h1 { font-size: clamp(1.72rem,2.4vw,2.36rem); line-height: 1.3; font-weight: 800; letter-spacing: .025em }
h2 { font-size: clamp(1.15rem,1.5vw,1.43rem); line-height: 1.35; letter-spacing: .025em; font-weight: 760 }
.live-tag { padding: .2rem .62rem; background: #e6f3e9; color: #346d4e; border: 1px solid #cadfd0; border-radius: 20px; font-size: .75rem; font-weight: 730; line-height: 1.45; letter-spacing: .025em; display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap }
.status-dot { width: 7px; height: 7px; background: #4d996a; border-radius: 50% }
.world-date { gap: .55rem; color: var(--muted); font-size: .87rem; font-weight: 550; font-variant-numeric: tabular-nums }
.world-date i { color: #c18334; background: #fcf0d6; border-radius: 6px; padding: 5px; font-size: .91rem }
.world-date b { font-family: ui-monospace, Consolas, monospace; letter-spacing: .01em; font-size: .95rem; color: #554e60 }
.world-grid { display: grid; grid-template-columns: minmax(0,2.8fr) minmax(265px,1fr); gap: clamp(14px,1.6vw,26px); align-items: stretch }
.map-panel,.feed-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 0 #40354d0c; overflow: hidden; min-width: 0 }
.map-panel { display: flex; flex-flow: column; border-color: #d6d2da }
.map-viewport { position: relative; isolation: isolate; overflow: hidden; width: 100%; aspect-ratio: 1.83; container-type: size; background: #a2c381; touch-action: pan-y }
.map-stage, .terrain, #map-markers { position: absolute; inset: 0; width: 100%; height: 100% }
.resident-timeline{margin:.75rem 0;padding:.6rem .75rem;border:1px solid #cbd7ce;border-radius:8px;background:#f5f8f4}
.resident-timeline summary{cursor:pointer;font-weight:700}
.resident-timeline ol{list-style:none;padding:0;margin:.65rem 0 0}
.resident-timeline li{display:grid;grid-template-columns:4.2rem 1fr;gap:.6rem;padding:.55rem 0;border-top:1px solid #dbe4dc}
.resident-timeline li>span{color:#3e6850;font-weight:700;font-size:.85rem}
.resident-timeline li p{margin:.15rem 0 0;color:#3d5145;font-size:.9rem}
.stage-activity-marker{position:absolute;transform:translate(-50%,-70%);z-index:110;white-space:nowrap}
.stage-activity-marker{border:1px solid #8b6545;border-radius:12px;padding:.23rem .5rem;color:#3b2b23;background:#fff1d6;font-weight:700;font-size:.75rem}
.stage-activity-marker span{color:#087560}
.walker[data-outdoor]::before{content:attr(data-outdoor);position:absolute;top:32%;right:-.32rem;width:1.08rem;height:1.08rem;display:grid;place-items:center;border-radius:50%;background:#fff5db;color:#845438;font-size:.76rem;pointer-events:none}
.map-stage { inset: 50% auto auto 50%; width: max(300%,450cqh); height: max(100%,66.6667cqw); translate: -50% -50%; transform-origin: center; transition: transform .25s ease }
.terrain { display:flex; user-select: none; pointer-events: none }
.terrain img { min-width:0; height:100%; width:66.6666667%; object-fit:fill }
.terrain img + img { width:33.3333333% }
.map-pan { display: inline-flex; align-items: center; gap: .45em; color: #554d61; font-size: .82rem }
.map-pan input { width: clamp(75px,9vw,130px); accent-color: #69588b }
.map-pan[hidden] { display: none }
#map-markers { pointer-events: none }
#map-markers button, #map-markers [role=button] { pointer-events: auto }
.map-caption { position: absolute; z-index: 2; inset: 14px auto auto 14px; padding: 6px 10px; gap: 6px; background: #fffdf4f5; border: 1.5px solid #595047; border-radius: 6px; box-shadow: 0 2px 0 #44352c55; color: #3f3b35; font-size: .83rem; font-weight: 730; pointer-events: none }
.map-caption svg { color: #69588b; width: 1.15em; height: 1.15em }
.cast-map { position:absolute;z-index:4;inset:auto auto 13px 13px;max-width:min(20rem,calc(100% - 9rem)); }
.cast-map-card { display:grid;gap:.14rem;padding:.52rem .68rem;text-align:left;background:#fffaf0;color:#362b38;border:1px solid #744b64;border-left:4px solid #c26572;border-radius:9px;box-shadow:0 2px 7px #38203345;font:inherit;line-height:1.25;text-decoration:none;overflow-wrap:anywhere; }
.cast-map-card:hover,.cast-map-card:focus-visible { background:#faecf0;color:#362b38; }
.cast-map-card strong { font-size:.94rem }
.cast-map-live,.cast-map-watch,.cast-map-phase { font-size:.76rem }
.cast-map-live { color:#793749;font-weight:800 }
.cast-map-live::before { content:'';display:inline-block;margin-right:.4em;width:.55em;height:.55em;border-radius:50%;background:#b75566;vertical-align:.08em }
.cast-map-watch { color:#5a4078;font-weight:750 }
.map-pin.all-cast-place { background:#fff2ed;border-color:#a54f60;box-shadow:0 0 0 3px #ffefa4e8,0 2px 4px #39252b70;z-index:2 }
.map-pin.all-cast-place::after { background:#fff2ed;border-color:#a54f60 }
.zoom-group { gap: 1px; position: absolute; bottom: 13px; right: 13px; z-index: 2; border: 1.5px solid #534b4a; border-radius: 7px; box-shadow: 0 2px 0 #342c3452; overflow: hidden; background: #fffef8f5; color: #3c3941; }
.zoom-group button { width: 31px; height: 32px; display: grid; place-content: center; padding: 0 }
.zoom-group button:hover { background: #e9e3ef }
.zoom-group button svg { width: 16px; height: 16px; stroke-width: 2.3 }
#zoom-level { min-width: 35px; text-align: center; font: 700 .78rem/1 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums }
.map-pin { --pin-color: #7055a2; position: absolute; transform: translate(-50%,-100%); display: flex; align-items: center; justify-content: center; gap: .3em; border: 1.5px solid #514750; border-radius: 6px; background: #fffdf4f7; color: #3a333d; font-size: .82rem; line-height: 1.35; font-weight: 700; padding: 4px 8px; box-shadow: 0 2px 0 #42374460; white-space: nowrap; z-index: 1 }
.map-pin::after { content: ''; position: absolute; width: 7px; height: 7px; background: #fffdf4; border-bottom: 1.5px solid #514750; border-right: 1.5px solid #514750; bottom: -4px; transform: rotate(45deg); left: calc(50% - 4px) }
.map-pin:hover { z-index: 3; background: #f3edf9; border-color: var(--purple-dark) }
.map-pin:not(:disabled):active { transform: translate(-50%,calc(-100% + 1px)) }
.map-pin svg { width: 14px; height: 14px; color: var(--pin-color) }
.pin-dot { width: 7px; height: 7px; background: var(--pin-color); border-radius: 2px }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 15px; min-height: 40px; font-size: .8rem; color: var(--muted); border-top: 1px solid #a7a38c50 }
.map-meta { gap: 7px; font-weight: 620; color: #58535f }
.map-meta i { color: #7c6699 }
.map-guide { gap: 5px; color: #77717c }
.feed-panel { display: flex; flex-direction: column; min-height: 0; position: relative }
.feed-heading { flex: none; padding: 17px 18px 14px; gap: 10px; border-bottom: 1px solid #e8e5eb }
.feed-heading h2 { font-size: clamp(1.04rem,1.23vw,1.23rem) }
.section-icon,.event-icon { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; color: #7b5aa9; background: #f0eafa }
.section-icon.peach, .event-icon.amber,.event-icon.orange { color: #956235; background: #f9ead8 }
.event-icon.green { color: #448364; background: #e2f0e6 }
.event-icon.blue { color: #4b80a1; background: #e3eef6 }
.event-icon.rose { color: #b36c7d; background: #fae8eb }
.event-stream { flex: 1 1 0; overflow-y: auto; min-height: 0; padding: 1px 17px; scrollbar-width: thin; scrollbar-color: #d9d1e2 transparent }
.event-row { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: clamp(11px,1.03vw,16px) 0; border-bottom: 1px solid #eeeaf0; text-align: left; line-height: 1.5 }
.event-row:last-child { border-bottom: 0 }
.event-icon { width: 30px; height: 30px; border-radius: 7px; margin-top: 2px }
.event-body { min-width: 0; flex: 1; display: grid; gap: 3px }
.event-meta { display: flex; gap: 6px; align-items: baseline; color: var(--muted); font-size: .76rem; flex-wrap: wrap }
.event-meta time { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; font-variant-numeric: tabular-nums; letter-spacing: .01em }
.event-text { font-size: .91rem; color: #49424e; overflow-wrap: anywhere }
.event-text b,.event-text strong { color: #3e3446; font-weight: 715 }
.feed-more { margin: 0; padding: 11px 16px; min-height: 41px; border-top: 1px solid #e8e3ec; font-size: .85rem; color: #6f578f; background: #fcfbfe; flex: none }
.residents-section { margin-top: clamp(22px,2.1vw,34px) }
.section-label { gap: 10px }
.section-bar { margin-bottom: 14px }
.section-more { border-radius: 6px; gap: 7px; padding: 6px 7px; font-size: .85rem; color: #72589a }
.count-pill,.pill { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; border-radius: 20px; line-height: 1.4; padding: 3px 8px; background: #ebe6f2; color: #685779; font-size: .77rem; font-weight: 690 }
.count-pill:empty { display: none }
.resident-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(175px,100%),1fr)); gap: 11px }
.resident-card { display: flex; align-items: center; min-width: 0; gap: 10px; text-align: left; padding: 13px 12px; border: 1px solid #dfdbe4; border-radius: 10px; background: #fff; box-shadow: 0 2px 0 #3529390b; transition: background .15s,border-color .15s }
.resident-card:hover { background: #f9f6fe; border-color: #beaed3 }
.avatar,.resident-card>img,.face { display: block; background: #f0ebf4; width: 47px; height: 47px; border: 1px solid #382d441c; border-radius: 8px; object-fit: cover; image-rendering: pixelated; flex: none }
.resident-info { min-width: 0; display: grid; gap: 3px; align-content: center; flex: 1 }
.resident-info strong { font-weight: 750; font-size: .99rem; line-height: 1.45; overflow-wrap: anywhere }
.resident-activity { min-width: 0; display: flex; gap: 4px; align-items: center; color: var(--muted); font-size: .76rem; line-height: 1.5; overflow-wrap: anywhere }
.resident-activity svg { width: 13px; height: 13px }
.resident-activity .status-dot { width: 6px; height: 6px }
.subtle,.muted { color: var(--muted) }
.empty-state { padding: 1.25rem .8rem; color: var(--muted); text-align: center; font-size: .91rem; font-weight: 500 }
.empty-state h3 { color: var(--ink); margin-bottom: .35rem }
#other-view:empty { display: none }
#other-view>h1:first-child,#other-view>h2:first-child { margin-bottom: 1rem }
#other-view .resident-grid { grid-template-columns: repeat(auto-fill,minmax(min(240px,100%),1fr)) }
.resident-directory-entry { min-width: 0; background: #fff; border: 1px solid #dfdbe4; border-radius: 10px; box-shadow: 0 2px 0 #3529390b }
.resident-directory-entry .resident-card { width: 100%; border: 0; box-shadow: none; background: transparent }
.resident-directory-entry .resident-card:hover { background: #f9f6fe }
.resident-directory-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 12px; margin: 0 12px 12px; padding-top: 9px; border-top: 1px solid #efebf2; font-size: .82rem }
.resident-directory-stats>div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px }
.resident-directory-stats dt { color: var(--muted); overflow-wrap: anywhere }
.resident-directory-stats dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums }
.resident-directory-stats .resident-directory-goal { grid-column: 1/-1; display: grid; gap: 2px }
.resident-directory-goal dd { overflow-wrap: anywhere }
.resident-directory-stats .resident-directory-wallet { grid-column: 1/-1; margin-bottom: 4px; padding-block: 5px; border-bottom: 1px solid #efebf2 }
.resident-purchases { margin: 0 12px 12px; font-size: .82rem }
#profile-purchases ul { display: grid; gap: .5rem; list-style: none; padding: 0; margin: .65rem 0 }
#profile-purchases li { display: flex; justify-content: space-between; gap: .75rem }
#profile-purchases small,#profile-purchases time { color: var(--muted) }
#profile-purchases time { flex: none; font-size: .82rem }
#other-view .event-row { padding: 16px; border-radius: 7px; background: #fff }
dialog { width: min(520px,calc(100% - 24px)); max-height: min(86dvh,820px); border: 1px solid #c7bfce; border-radius: 13px; padding: 0; box-shadow: 0 14px 65px #2e253e45; color: var(--ink); background: #fff; overscroll-behavior: contain }
#dialog:has(.social-media-preview) { width: min(940px,calc(100% - 24px)) }
dialog::backdrop { background: #27203372; backdrop-filter: blur(2px) }
.dialog-heading { position: sticky; top: 0; padding: 16px 19px; background: #fff; border-bottom: 1px solid var(--line); justify-content: space-between; gap: 12px; z-index: 3 }
.dialog-heading h2 { font-size: 1.21rem; margin: 0 }
.close-btn { width: 31px; height: 31px; flex: none }
#dialog-content { padding: 20px; overflow-wrap: anywhere }
#dialog-content p + p { margin-top: .65rem }
#dialog-content h3,#other-view h3 { margin: 1rem 0 .5rem; font-size: 1.03rem }
#dialog-content h3:first-child { margin-top: 0 }
#dialog-content > :first-child { margin-top: 0 }
#dialog-content > :last-child { margin-bottom: 0 }
form { display: grid; gap: 13px }
.field,form label { display: grid; gap: 5px; font-weight: 650; font-size: .9rem }
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea { width: 100%; min-height: 40px; border: 1px solid #d5cedd; border-radius: 6px; background: #fff; color: var(--ink); padding: 7px 10px; font-size: 1rem; font-weight: 450; line-height: 1.45 }
select { appearance: none; padding-inline-end: 32px; background-image: linear-gradient(45deg,transparent 50%,#776d81 50%),linear-gradient(135deg,#776d81 50%,transparent 50%); background-position: calc(100% - 15px) 50%,calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat }
textarea { min-height: 85px; resize: vertical }
input[type=checkbox],input[type=radio]{ accent-color: var(--purple) }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(64px,1fr)); gap: 8px }
.choice-grid button,.choice-grid label { padding: 7px; border: 1px solid var(--line); border-radius: 7px; text-align: center; place-items: center; line-height: 1.3; background: #fbfafc }
.choice-grid button.selected,.choice-grid button[aria-pressed=true],.choice-grid label:has(input:checked) { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); background: var(--lavender) }
.choice-grid img { width: 45px; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; image-rendering: pixelated }
.form-actions,.dialog-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px }
.dialog-tabs { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 15px }
.dialog-tabs button { font-size: .86rem; padding: 5px 8px; border-radius: 5px; color: var(--muted) }
.dialog-tabs button.active,.dialog-tabs [aria-selected=true] { color: var(--purple-dark); background: var(--lavender) }
#dialog-content details { padding: .65rem 0; border-bottom: 1px solid var(--line) }
#dialog-content summary { font-weight: 650; cursor: pointer }
#dialog-content pre { white-space: pre-wrap; word-break: break-all; background: #f5f2f7; padding: .75rem; border-radius: 7px }
#dialog-content a,#other-view a { color: var(--purple-dark); text-underline-offset: 2px }
#dialog-content .btn.primary,#other-view .btn.primary { color: #fff }
#toast { position: fixed; inset: auto auto 21px 50%; transform: translateX(-50%); z-index: 80; max-width: min(90vw,48rem); background: #423745; color: #fff; border-radius: 9px; padding: 10px 16px; box-shadow: 0 3px 14px #23152d2c; font-size: .9rem; text-align: center }
#toast:empty { display: none }
@media(min-width:1550px) { .map-viewport { aspect-ratio: 1.9 } }
@media(max-width:1100px) {
  .game-guide { width:min(29rem,calc(100% - 2rem)); padding:1.6rem; border-radius:1rem; }
.game-guide h2 { margin:0 0 1.15rem; }
.game-guide ol { padding-inline-start:1.4rem; }
.game-guide li { margin-block:1rem; }
.game-guide li p { margin:.2rem 0 0; line-height:1.55; }
.game-guide button { margin-top:.5rem; }
:root { --gutter: clamp(17px,2.8vw,36px) }
  .header-inner { gap: 20px }
  .world-grid { grid-template-columns: minmax(0,2.35fr) minmax(235px,1fr); gap: 15px }
  .nav-link { padding-inline: 10px }
  .resident-grid { grid-template-columns: repeat(3,minmax(0,1fr)) }
  .feed-heading { padding: 13px }
  .event-stream { padding-inline: 12px }
  .map-viewport { aspect-ratio: 1.58 }
}
@media(max-width:1180px) {
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 12px }
  .header-tools { order: 1; gap: 7px }
  .main-nav { order: 2; width: 100%; margin: 10px 0 7px; gap: 5px }
  .nav-link { flex: 1; min-width: 0; justify-content: center; padding: 7px 8px; text-align: center; white-space: normal }
}
@media(max-width:790px) {
  .world-grid { grid-template-columns: minmax(0,1fr) }
  .map-viewport { aspect-ratio: 1.73 }
  .event-stream { max-height: 295px; flex-basis: auto }
  .feed-heading { padding: 13px 16px }
  .event-stream { padding-inline: 16px }
  .event-row { padding: 11px 0 }
  .world-date { font-size: .79rem }
}
@media(max-width:510px) {
  .game-guide { width:min(29rem,calc(100% - 2rem)); padding:1.6rem; border-radius:1rem; }
.game-guide h2 { margin:0 0 1.15rem; }
.game-guide ol { padding-inline-start:1.4rem; }
.game-guide li { margin-block:1rem; }
.game-guide li p { margin:.2rem 0 0; line-height:1.55; }
.game-guide button { margin-top:.5rem; }
:root { --gutter: 14px }
  .main-wrap { padding-top: 18px; padding-bottom: 30px }
  .header-inner { padding-top: 10px }
  .brand img { width:34px;height:34px;object-fit:contain }
  .join-btn { font-size: .82rem; padding: 7px 9px; min-height: 34px; gap: 3px }
  .audio-btn, .account-btn { width: 32px; height: 32px }
  .nav-link { font-size: .85rem }
  .view-title { gap: 8px }
  .view-bar { gap: 7px; margin-bottom: 12px }
  h1 { font-size: 1.53rem }
  .world-date { gap: 4px; font-size: .74rem }
  .world-date i { padding: 3px }
  .world-date b { font-size: .76rem }
  .live-tag { padding: 2px 6px; font-size: .69rem; gap: 4px }
  .map-viewport { aspect-ratio: 1.32 }
  .map-caption { inset: 8px auto auto 8px; padding: 4px 7px; font-size: .76rem }
  .cast-map { bottom:8px;left:8px;max-width:calc(100% - 7.5rem) }
  .zoom-group { bottom: 8px; right: 8px }
  .zoom-group button { width: 26px; height: 28px }
  #zoom-level { min-width: 30px; font-size: .7rem }
  .map-pin { font-size: .72rem; padding: 3px 5px }
  .map-foot { padding: 8px 10px; font-size: .73rem; min-height: 35px }
  .map-guide { gap: 2px }
  .resident-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px }
  .resident-card { padding: 9px 7px; gap: 7px }
  .resident-card img { width: 39px; height: 39px }
  .section-label { gap: 6px }
  .section-icon { width: 28px; height: 28px }
  #dialog-content { padding: 15px }
}
@media(max-width:355px) {
  .world-date i,.map-guide i,.join-btn i { display:none }
  .view-bar { align-items: flex-start }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important } }
#error-panel {position:fixed;z-index:150;bottom:1rem;right:1rem;width:min(28rem,calc(100% - 2rem));max-height:88dvh;overflow:auto;box-sizing:border-box;padding:1rem;background:#fffdf6;color:#302e29;border:1px solid #ab7364;border-radius:12px;box-shadow:0 4px 22px #37322538}
#error-panel textarea {display:block;box-sizing:border-box;width:100%;margin:.6rem 0;padding:.5rem;resize:vertical;font:inherit;font-size:.85rem;user-select:text}
#error-panel output {display:block;font-size:.85rem}
.print-model{margin:1rem 0}
.print-model canvas{display:block;max-width:100%;height:auto;margin:.5rem auto 0;background:#f7f3ec;border-radius:12px;touch-action:none;cursor:grab}
.print-model canvas:active{cursor:grabbing}
[data-workshop-model]{position:absolute;left:49%;top:34%;width:min(38%,22rem);background:#fffdf5ed;border:1px solid #9d8a64;border-radius:12px;z-index:1;}
[data-workshop-model]:empty{display:none}
[data-workshop-model] .print-model{margin:.4rem;}
[data-workshop-model] figcaption{position:static;transform:none;width:auto;max-width:none;border:0;background:transparent;padding:.15rem;}
