:root {
  --ink: #1f3330;
  --deep-ink: #17312f;
  --celadon: #99c9bd;
  --celadon-dark: #5e968c;
  --paper: #f9f4e9;
  --paper-deep: #efe4ce;
  --verm: #b7473d;
  --gold: #d29b45;
  --muted: #6f7b73;
  --shadow: 0 20px 60px rgba(22, 54, 50, .18);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
  color: var(--ink);
  background: #b5d9ce;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #b5d9ce; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.screen { min-height: 100vh; position: relative; overflow: hidden; }
.screen.entering { animation: screen-in .65s cubic-bezier(.2,.8,.2,1) both; }
@keyframes screen-in { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
.paper-grain { position: absolute; inset: 0; opacity: .28; pointer-events: none; background-image: radial-gradient(rgba(35, 61, 54, .17) .7px, transparent .7px); background-size: 7px 7px; mix-blend-mode: multiply; }
.landing-screen { display: grid; place-items: center; background: linear-gradient(140deg, #acd8ca 0%, #d6e9d1 47%, #98c4b7 100%); }
.landing-copy { z-index: 3; width: min(560px, 90vw); text-align: center; padding: 9vh 0 12vh; }
.eyebrow { letter-spacing: .22em; font-size: 11px; color: var(--verm); font-weight: 700; margin: 0 0 17px; }
h1, h2, h3 { font-family: 'Noto Serif SC', serif; }
.landing-copy h1 { font-size: clamp(72px, 14vw, 150px); line-height: .92; letter-spacing: .16em; margin: 0 -0.16em 15px 0; color: var(--deep-ink); text-shadow: 5px 6px 0 rgba(255,255,255,.48), 10px 12px 0 rgba(79,117,105,.18); }
.subtitle { font-family: 'Noto Serif SC', serif; font-size: clamp(15px, 2vw, 20px); margin: 0; color: #315b54; }
.seal-mark { display: grid; place-items: center; margin: 27px auto 35px; width: 48px; height: 48px; border: 2px solid var(--verm); color: var(--verm); font-family: 'Noto Serif SC', serif; font-size: 25px; transform: rotate(-8deg); box-shadow: 3px 3px 0 rgba(183,71,61,.18); }
.choice-label { color: #486c64; font-size: 13px; margin: 0 0 13px; }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.role-card { border: 1px solid rgba(37, 86, 78, .28); background: rgba(255,255,255,.62); color: var(--ink); padding: 21px 16px 18px; border-radius: 4px; text-align: left; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; box-shadow: 0 7px 0 rgba(45, 93, 84, .09); }
.role-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.9); box-shadow: 0 14px 22px rgba(47, 90, 80, .18); }
.role-card:focus-visible, .nav-item:focus-visible, .npc-node:focus-visible, .map-pavilion:focus-visible, .button-primary:focus-visible, .button-secondary:focus-visible { outline: 3px solid rgba(183,71,61,.42); outline-offset: 3px; }
.role-card strong, .role-card span { display: block; }
.role-icon { color: var(--verm); font-size: 25px; margin-bottom: 10px; }
.role-card strong { font-family: 'Noto Serif SC', serif; font-size: 19px; margin-bottom: 7px; }
.role-card span:last-child { font-size: 12px; line-height: 1.6; color: var(--muted); }
.landing-note { color: #67867c; font-size: 11px; margin-top: 22px; }
.landing-island { position: absolute; width: min(690px, 72vw); aspect-ratio: 1.25; left: -7%; bottom: -19%; transform: rotate(-9deg); background: radial-gradient(ellipse at 50% 40%, #c3dfb5 0 25%, #8daf91 26% 50%, #678776 51% 69%, transparent 70%); filter: drop-shadow(18px 25px 10px rgba(36, 79, 69, .2)); }
.island-rim { position: absolute; inset: 18% 11% 14%; border-radius: 48% 44% 52% 43%; background: #d7dfb8; border: 13px solid #6d988b; transform: rotate(9deg); }
.mountain { position: absolute; background: #5d857a; border-radius: 80% 20% 10% 10%; transform: rotate(38deg); opacity: .75; }
.mountain-one { width: 190px; height: 170px; left: 36%; top: 11%; }
.mountain-two { width: 145px; height: 125px; left: 54%; top: 31%; opacity: .6; }
.island-house { position: absolute; background: #d8b478; border: 4px solid #655b4c; transform: rotate(9deg); z-index: 3; box-shadow: 8px 8px 0 rgba(61,83,69,.25); }
.house-main { width: 100px; height: 78px; left: 44%; top: 34%; display: grid; place-items: center; color: #fff8df; font-family: 'Noto Serif SC', serif; font-size: 19px; line-height: 1.15; text-align: center; background: #c75c4c; }
.house-small { width: 60px; height: 45px; left: 64%; top: 48%; background: #e7c88c; }
.island-lantern { position: absolute; z-index: 4; color: var(--verm); font-size: 22px; transform: rotate(9deg); }
.lantern-one { left: 38%; top: 50%; } .lantern-two { left: 71%; top: 33%; }
.island-bridge { position: absolute; z-index: 2; width: 230px; height: 15px; left: 15%; top: 62%; border-top: 5px solid #9b744c; border-bottom: 5px solid #9b744c; transform: rotate(24deg); }
.landing-cloud, .stage-cloud { position: absolute; border-radius: 50%; background: rgba(255,255,255,.36); filter: blur(1px); }
.landing-cloud:before, .landing-cloud:after, .stage-cloud:before, .stage-cloud:after { content: ''; position: absolute; background: inherit; border-radius: inherit; }
.landing-cloud { width: 160px; height: 32px; right: 12%; top: 16%; } .cloud-a:before { width: 78px; height: 62px; left: 23px; bottom: 0; } .cloud-a:after { width: 50px; height: 47px; left: 85px; bottom: 1px; }
.cloud-b { width: 110px; height: 25px; left: 8%; top: 28%; opacity: .5; } .cloud-b:before { width: 44px; height: 43px; left: 18px; bottom: 0; } .cloud-b:after { width: 38px; height: 38px; right: 10px; bottom: 0; }

.world-screen { background: #d7e9db; }
.topbar { height: 67px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: rgba(250,246,234,.93); border-bottom: 1px solid rgba(36,75,65,.16); position: relative; z-index: 10; }
.brand-lockup { display: flex; align-items: center; gap: 10px; font-family: 'Noto Serif SC', serif; font-weight: 700; letter-spacing: .14em; color: var(--deep-ink); }
.brand-lockup small { font: 11px 'Noto Sans SC', sans-serif; color: var(--muted); letter-spacing: .08em; margin-left: 4px; }
.brand-seal { display: grid; place-items: center; width: 28px; height: 28px; color: var(--verm); border: 1px solid var(--verm); font-size: 16px; transform: rotate(-7deg); }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.role-badge { font-size: 12px; color: var(--celadon-dark); border-bottom: 1px solid #a1c0b4; padding-bottom: 3px; }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 8px; }
.text-button:hover { color: var(--verm); }
.world-layout { height: calc(100vh - 67px); min-height: 620px; display: grid; grid-template-columns: 235px minmax(450px, 1fr) 370px; }
.world-sidebar { background: rgba(242,237,220,.8); padding: 33px 23px 22px; border-right: 1px solid rgba(36,75,65,.13); display: flex; flex-direction: column; }
.sidebar-intro h2 { margin: 0 0 9px; font-size: 26px; color: var(--deep-ink); }
.sidebar-intro p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.world-nav { margin-top: 30px; display: grid; gap: 5px; }
.nav-item { border: 0; border-radius: 3px; padding: 12px 13px; text-align: left; background: transparent; color: #58756a; font-size: 13px; display: flex; gap: 12px; align-items: center; }
.nav-item span { color: var(--verm); font-size: 17px; width: 18px; text-align: center; }
.nav-item.active, .nav-item:hover { background: #e5d7b8; color: var(--deep-ink); }
.progress-card { margin-top: auto; background: rgba(255,255,255,.5); padding: 15px; border: 1px solid rgba(99,120,99,.18); }
.progress-heading { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 9px; }
.progress-heading strong { color: var(--verm); }
.progress-track { height: 5px; background: #d5ddcc; border-radius: 4px; overflow: hidden; }
.progress-track span { display: block; width: 0%; height: 100%; background: var(--verm); transition: width .5s ease; }
.progress-card p { font-size: 11px; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
.world-stage { min-width: 0; position: relative; overflow: hidden; background: linear-gradient(#a7d2c7 0%, #d0e5ce 55%, #d9e5c5 100%); }
#three-layer { position: absolute; inset: 0; z-index: 5; pointer-events: auto; touch-action: none; }
#three-layer canvas { width: 100%; height: 100%; display: block; }
.stage-sky { position: absolute; inset: 0; background: radial-gradient(ellipse at 55% 22%, rgba(255,253,215,.72), transparent 35%); }
.stage-sun { position: absolute; top: 55px; right: 16%; color: #b77f36; border: 1px solid rgba(183,127,54,.5); width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; font: 22px 'Noto Serif SC', serif; opacity: .8; }
.stage-cloud { width: 170px; height: 25px; top: 14%; left: 8%; opacity: .37; } .stage-cloud:before { width: 65px; height: 55px; left: 25px; bottom: 0; } .stage-cloud:after { width: 54px; height: 44px; left: 84px; bottom: 0; } .cloud-two { top: 32%; left: auto; right: 5%; transform: scale(.7); }
.island-map { position: absolute; width: min(650px, 88%); aspect-ratio: 1.18; left: 50%; top: 48%; transform: translate(-50%, -50%) rotate(-6deg); z-index: 6; pointer-events: none; }
.world-stage[data-view="post"] .island-map { opacity: 0; pointer-events: none; }
.world-stage[data-view="post"] .stage-caption { color: #eadbb9; }
.world-stage[data-view="track"] .island-map { opacity: .15; }
.world-stage[data-view="track"] .stage-caption { color: #8d7650; }
.map-island-shape { position: absolute; inset: 9% 7% 6%; border-radius: 53% 47% 54% 43% / 54% 43% 57% 46%; background: radial-gradient(ellipse at 52% 47%, #dfe2ba 0 20%, #bbc998 21% 57%, #86a98b 58% 68%, #537f75 69% 73%, transparent 74%); box-shadow: 15px 23px 0 rgba(60, 103, 88, .16); opacity: 0; }
.map-island-shape:after { content: ''; position: absolute; inset: 10% 13%; border-radius: 50%; background: repeating-linear-gradient(28deg, transparent 0 28px, rgba(89,125,92,.2) 29px 31px), repeating-linear-gradient(-25deg, transparent 0 42px, rgba(255,251,204,.24) 43px 45px); opacity: .7; }
.map-river { position: absolute; width: 29%; height: 68%; left: 43%; top: 10%; border-left: 31px solid rgba(90,164,165,.12); border-radius: 48%; transform: rotate(26deg); filter: blur(.2px); }
.map-path { position: absolute; height: 3px; background: #a88862; transform-origin: left; opacity: .8; z-index: 2; }
.path-a { width: 36%; left: 28%; top: 47%; transform: rotate(-22deg); } .path-b { width: 30%; left: 43%; top: 50%; transform: rotate(37deg); } .path-c { width: 27%; left: 45%; top: 51%; transform: rotate(-72deg); }
.map-water-watermark { position: absolute; left: 3%; bottom: 16%; font: 18px/1.45 'Noto Serif SC', serif; color: rgba(45,103,103,.45); letter-spacing: .22em; transform: rotate(-22deg); z-index: 2; }
.map-pavilion, .npc-node, .player-token { position: absolute; z-index: 7; text-align: center; transform: rotate(6deg); pointer-events: auto; }
.map-pavilion { cursor: pointer; }
.map-pavilion:after { content: ''; position: absolute; left: 50%; top: 2px; width: 48px; height: 48px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(183,71,61,.35); animation: node-pulse 2.8s ease-out infinite; pointer-events: none; }
@keyframes node-pulse { 0%, 60% { opacity: 0; transform: translateX(-50%) scale(.72); } 18% { opacity: .75; } 100% { opacity: 0; transform: translateX(-50%) scale(1.45); } }
.map-pavilion .node-roof { width: 44px; height: 38px; display: grid; place-items: center; margin: auto; background: var(--verm); color: #fff4dc; border: 2px solid #6e3d37; border-radius: 50% 50% 4px 4px; font-family: 'Noto Serif SC', serif; font-size: 17px; box-shadow: 4px 5px 0 rgba(75,75,55,.23); }
.map-pavilion small, .npc-node small { display: block; white-space: nowrap; font-size: 10px; color: #315a4e; margin-top: 6px; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.post-node { left: 48%; top: 43%; } .track-node { left: 70%; top: 24%; } .track-node .node-roof { background: #557f76; }
.npc-node { width: 50px; cursor: pointer; transition: transform .2s ease, filter .2s ease; } .npc-node:hover, .npc-node.selected { transform: translateY(-6px) rotate(6deg); filter: drop-shadow(0 8px 5px rgba(65,93,74,.2)); }
.npc-node.selected span { border-color: var(--verm); box-shadow: 0 0 0 5px rgba(183,71,61,.15), 3px 4px 0 rgba(54,78,65,.2); }
.npc-node span { display: grid; place-items: center; width: 42px; height: 42px; margin: auto; border-radius: 50%; border: 2px solid #365e55; background: #f6e6b7; color: var(--deep-ink); font: 17px 'Noto Serif SC', serif; box-shadow: 3px 4px 0 rgba(54,78,65,.2); }
.npc-node small { font-size: 10px; }
.npc-0 { left: 22%; top: 32%; } .npc-1 { left: 32%; top: 63%; } .npc-2 { left: 15%; top: 57%; } .npc-3 { left: 62%; top: 65%; } .npc-4 { left: 75%; top: 46%; } .npc-5 { left: 41%; top: 15%; }
.player-token { left: 54%; top: 57%; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50% 50% 50% 2px; background: var(--verm); color: #fff6dc; font: 12px 'Noto Serif SC', serif; box-shadow: 0 0 0 5px rgba(183,71,61,.16), 3px 4px 0 rgba(75,75,55,.24); }
.player-token:after { content: ''; position: absolute; inset: -9px; border: 1px solid rgba(183,71,61,.38); border-radius: 50%; animation: player-pulse 2.4s ease-out infinite; }
@keyframes player-pulse { from { opacity: .7; transform: scale(.75); } to { opacity: 0; transform: scale(1.35); } }
.stage-caption { position: absolute; left: 28px; bottom: 25px; color: #50756b; font: 13px 'Noto Serif SC', serif; display: flex; align-items: center; gap: 8px; }
.caption-dot { display: block; width: 7px; height: 7px; background: var(--verm); border-radius: 50%; }
.detail-panel { background: rgba(249,244,233,.95); border-left: 1px solid rgba(36,75,65,.13); padding: 33px 30px; overflow: auto; }
.panel-kicker { color: var(--verm); letter-spacing: .16em; font-size: 10px; font-weight: 700; margin: 0 0 11px; }
.detail-panel h2 { font-size: 28px; margin: 0 0 9px; line-height: 1.3; color: var(--deep-ink); }
.panel-copy { color: #63776c; font-size: 13px; line-height: 1.8; margin: 0 0 21px; }
.npc-portrait { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff5d9; background: var(--verm); font: 27px 'Noto Serif SC', serif; margin-bottom: 20px; box-shadow: 7px 8px 0 rgba(89,116,91,.16); }
.task-paper, .form-card, .letter-card, .track-result { background: #fffaf0; border: 1px solid #ded3ba; box-shadow: 5px 7px 0 rgba(105,121,93,.12); padding: 18px; margin-top: 17px; }
.task-paper { position: relative; }
.task-paper:before { content: '驿'; position: absolute; right: 14px; top: 12px; color: rgba(183,71,61,.45); border: 1px solid rgba(183,71,61,.45); width: 25px; height: 25px; display: grid; place-items: center; transform: rotate(9deg); font: 14px 'Noto Serif SC', serif; }
.task-paper h3 { margin: 0 0 8px; font-size: 17px; } .task-paper p { margin: 0; color: #66776a; line-height: 1.75; font-size: 13px; }
.button-primary, .button-secondary { border: 0; padding: 12px 18px; border-radius: 2px; font-size: 13px; transition: transform .15s ease, box-shadow .15s ease; }
.button-primary { background: var(--verm); color: #fff8e8; box-shadow: 3px 4px 0 #7e433d; } .button-primary:hover { transform: translateY(-2px); box-shadow: 3px 6px 0 #7e433d; }
.button-secondary { background: #dfebdf; color: var(--deep-ink); border: 1px solid #a9c4b5; }
.button-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 17px; }
.form-card label { display: block; font-size: 12px; color: #49685d; margin: 15px 0 6px; } .form-card label:first-child { margin-top: 0; }
.form-card input, .form-card textarea { width: 100%; border: 1px solid #cfccb8; background: #fffdf6; color: var(--ink); padding: 10px 11px; border-radius: 2px; outline: none; }
.form-card input:focus, .form-card textarea:focus { border-color: var(--celadon-dark); box-shadow: 0 0 0 3px rgba(94,150,140,.13); }
.form-card textarea { min-height: 155px; resize: vertical; line-height: 1.7; }
.counter { text-align: right; margin-top: 4px; font-size: 11px; color: #899287; }
.code-options { display: flex; gap: 7px; } .code-options label { margin: 0 !important; flex: 1; } .code-options input { display: none; } .code-options span { display: block; text-align: center; padding: 8px 4px; border: 1px solid #d3cbb6; color: #6b786d; cursor: pointer; font-size: 12px; } .code-options input:checked + span { color: var(--verm); border-color: var(--verm); background: #fbebe1; }
.form-help { font-size: 11px; color: #879188; margin: 6px 0 0; line-height: 1.6; }
.success-seal { width: 62px; height: 62px; border: 2px solid var(--verm); color: var(--verm); display: grid; place-items: center; font: 23px 'Noto Serif SC', serif; transform: rotate(-7deg); margin-bottom: 20px; }
.tracking-code { letter-spacing: .2em; color: var(--verm); font-weight: 700; font-size: 17px; word-break: break-all; }
.status-line { display: flex; gap: 8px; align-items: center; color: #5e7569; font-size: 12px; margin-top: 13px; } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); } .status-dot.read { background: var(--celadon-dark); }
.letter-card { background: #f9f0d8; position: relative; padding: 23px 20px 21px; } .letter-card:after { content: '收'; position: absolute; right: 15px; top: 15px; color: rgba(183,71,61,.46); border: 1px solid rgba(183,71,61,.46); width: 27px; height: 27px; display: grid; place-items: center; font: 15px 'Noto Serif SC', serif; transform: rotate(10deg); }
.letter-meta { color: #8b7660; font-size: 11px; margin-bottom: 14px; } .letter-content { white-space: pre-wrap; color: #39493f; line-height: 2; font: 16px/2 'Noto Serif SC', serif; }
.track-result { padding: 20px; } .track-result h3 { margin: 0 0 12px; font-size: 17px; } .track-result p { font-size: 12px; color: #63776c; line-height: 1.7; }
.empty-state { text-align: center; padding: 15vh 10px; color: #80948a; } .empty-state .empty-icon { font: 43px 'Noto Serif SC', serif; color: var(--verm); opacity: .75; margin-bottom: 13px; } .empty-state p { font-size: 13px; line-height: 1.8; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 27px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--deep-ink); color: #fff5df; padding: 10px 16px; font-size: 12px; border-radius: 3px; transition: all .25s ease; } .toast.show { opacity: 1; transform: translate(-50%, 0); }
.transition-curtain { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: grid; place-items: center; background: #183d3b; color: #f9f0d8; font: 17px 'Noto Serif SC', serif; letter-spacing: .2em; opacity: 0; transform: translateY(100%); }
.transition-curtain.play { animation: curtain .9s cubic-bezier(.76,0,.24,1) both; }
@keyframes curtain { 0% { opacity: 0; transform: translateY(100%); } 18% { opacity: 1; } 52% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-100%); } }
.letter-card { animation: letter-open .55s cubic-bezier(.2,.8,.2,1) both; transform-origin: top center; }
@keyframes letter-open { from { opacity: 0; transform: perspective(700px) rotateX(-16deg) translateY(13px); } to { opacity: 1; transform: perspective(700px) rotateX(0) translateY(0); } }
@media (max-width: 1050px) { .world-layout { grid-template-columns: 200px minmax(390px, 1fr) 315px; } .world-sidebar { padding-left: 16px; padding-right: 16px; } .detail-panel { padding-left: 22px; padding-right: 22px; } }
@media (max-width: 820px) { .world-layout { height: auto; min-height: 0; grid-template-columns: 1fr; display: block; } .world-sidebar { border-right: 0; border-bottom: 1px solid rgba(36,75,65,.13); padding: 17px 20px; display: block; } .sidebar-intro p { max-width: 520px; } .world-nav { display: flex; margin-top: 13px; overflow-x: auto; } .nav-item { white-space: nowrap; } .progress-card { display: none; } .world-stage { height: 57vh; min-height: 430px; } .detail-panel { min-height: 510px; border-left: 0; border-top: 1px solid rgba(36,75,65,.13); } }
@media (max-width: 520px) { .topbar { padding: 0 15px; } .brand-lockup small { display: none; } .role-grid { grid-template-columns: 1fr; } .landing-copy { padding-top: 11vh; } .landing-island { width: 110vw; left: -25%; bottom: -13%; } .world-stage { height: 52vh; min-height: 390px; } .stage-caption { left: 15px; bottom: 14px; font-size: 11px; } .island-map { width: 115%; } .detail-panel { padding: 25px 18px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
.game-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 22px; background: rgba(24,61,59,.48); backdrop-filter: blur(4px); }
.game-modal { width: min(520px, 94vw); background: #fffaf0; border: 1px solid #d9cdb3; box-shadow: 12px 16px 0 rgba(25,66,60,.2); padding: 30px; position: relative; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .28s ease, transform .28s ease; }
.game-modal.is-open { opacity: 1; transform: translateY(0) scale(1); }
.game-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: #6f8175; font-size: 25px; cursor: pointer; }
.game-stage { min-height: 190px; margin: 18px 0 12px; border: 1px solid #d5c9ae; background: radial-gradient(circle at 50% 45%, #f5edcf, #d8e6cf); position: relative; overflow: hidden; display: grid; place-items: center; }
.game-orbit { position: absolute; width: 155px; height: 155px; border: 1px dashed rgba(82,126,111,.45); border-radius: 50%; animation: game-spin 12s linear infinite; }
@keyframes game-spin { to { transform: rotate(360deg); } }
.game-targets { width: 76%; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.game-target { width: 54px; height: 54px; border-radius: 50%; border: 2px solid #416e62; background: #f8e7b4; color: #234f48; font: 17px 'Noto Serif SC', serif; cursor: pointer; box-shadow: 3px 4px 0 rgba(49,82,69,.2); transition: transform .15s ease, background .15s ease, opacity .15s ease; animation: target-float 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * .22s); }
.game-target:hover { transform: translateY(-5px) scale(1.06); }
.game-target.done { background: #b7473d; color: #fff6df; border-color: #7e433d; opacity: .58; transform: scale(.9); pointer-events: none; }
.game-target.shake { animation: target-shake .32s ease; }
@keyframes target-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes target-shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.game-instruction { text-align: center; color: #56766b; font-size: 12px; margin: 8px 0 11px; }
.game-progress { height: 6px; background: #e2dfcb; margin-bottom: 18px; overflow: hidden; }
.game-progress span { display: block; width: 0; height: 100%; background: var(--verm); transition: width .25s ease; }
.game-3 .game-target:nth-child(2) { transform: translateY(-20px); } .game-3 .game-target:nth-child(3) { transform: translateY(17px); }
.game-4 .game-target { background: #eef4dc; border-color: #bd9a4c; } .game-5 .game-target { border-radius: 4px; transform: rotate(-7deg); }

/* Shared poetry typography. Street composition overrides follow below. */
.poetry-modal { position: fixed; inset: 0; margin: auto; width: min(610px,calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 30px 32px 25px; background: #f9f3e3; color: #344f45; border-color: #8e9a7b; border-radius: 4px; overflow: auto; box-shadow: 8px 12px 45px #193b3644; }
.poetry-modal::backdrop { background: #233f3aa8; backdrop-filter: blur(5px); }
.poetry-modal h2 { font: 25px 'Noto Serif SC',serif; margin: 8px 0 22px; }
.poetry-modal .panel-kicker { margin-top: 0; font-size: 10px; letter-spacing: .17em; color: #a46851; }
.poetry-speaker { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-top: 1px solid #afaf9455; }
.poetry-seal { display: grid; place-items: center; width: 34px; height: 38px; background: var(--npc-color); color: #fff1d9; font: 18px 'Noto Serif SC',serif; border-radius: 3px; transform: rotate(-4deg); }
.poetry-speaker > div { display: grid; gap: 4px; }
.poetry-speaker strong { font: 14px 'Noto Serif SC',serif; }
.poetry-speaker div span { font-size: 10px; color: #85907a; }
.poetry-speaker > small { margin-left: auto; font-size: 10px; padding: 5px 9px; border: 1px solid #8c9c7766; border-radius: 20px; color: #6c7e60; }
.poetry-prompt { margin: 4px 0 18px; padding: 25px 15px; min-height: 96px; display: flex; justify-content: center; align-items: center; background: linear-gradient(100deg,#e8ebd5,#f0ead5); border-left: 3px solid #a9664d; color: #345648; font: 26px/1.7 'Noto Serif SC',serif; letter-spacing: .08em; text-align: center; overflow-wrap: anywhere; }
.poetry-prompt span { color: #9d7058; }
.poetry-instruction { color: #7d846c; font-size: 11px; line-height: 1.8; margin: 0 0 13px; }
.poetry-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.poetry-option { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid #a8ac9177; background: #fffaf0; border-radius: 3px; padding: 14px 11px; min-height: 67px; color: #425d4e; font: 14px/1.6 'Noto Serif SC',serif; cursor: pointer; }
.poetry-option > span:nth-child(2) { flex: 1; overflow-wrap: anywhere; }
.option-letter { flex-shrink: 0; font: 10px 'Noto Sans SC',sans-serif; color: #a58e6c; border: 1px solid #c4bea7; border-radius: 50%; width: 23px; height: 23px; display: grid; place-items: center; }
.poetry-option small { font: 9px 'Noto Sans SC',sans-serif; flex-shrink: 0; }
.poetry-option:hover:not(:disabled) { border-color: #5e846a; background: #ebefdc; }
.poetry-option:focus-visible { outline: 2px solid #456e56; outline-offset: 3px; }
.poetry-option.incorrect { color: #94786a; background: #eee4d6; border-style: dashed; }
.poetry-option.correct { color: #f9f1d5; background: #456d58; border-color: #456d58; }
.poetry-option.correct .option-letter { color: #f9f1d5; border-color: #d3dfba88; }
.poetry-option:disabled { cursor: default; }
.poetry-feedback { min-height: 20px; margin: 17px 0 14px; font-size: 11px; line-height: 1.7; color: #956c51; }
.poetry-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid #b4b49844; }
.poetry-footer > span { color: #979981; font-size: 9px; line-height: 1.7; }
.poetry-footer .button-secondary { white-space: nowrap; font-size: 11px; padding: 9px 12px; }
.poetry-result { border-top: 1px solid #b4b49866; padding: 16px 0 0; }
.poetry-result h3 { font: 20px 'Noto Serif SC',serif; margin: 0 0 8px; color: #a45f46; }
.poetry-source { font: 12px/1.8 'Noto Serif SC',serif; color: #61765b; margin: 0 0 11px; }
.poetry-full { font-size: 11px; color: #708168; }
.poetry-full summary { padding: 8px 0; cursor: pointer; }
.poetry-full-lines { max-height: 235px; overflow-y: auto; padding: 10px 14px; margin: 8px 0 14px; background: #eee9d8; border: 1px solid #b8bba055; }
.poetry-full-lines p { margin: 0; padding: 5px 8px; font: 14px/1.7 'Noto Serif SC',serif; }
.poetry-full-lines p > span { font: 9px 'Noto Sans SC',sans-serif; display: inline-block; min-width: 24px; color: #a2a28a; }
.poetry-full-lines .poetry-highlight { color: #8e583e; background: #e3d7bba6; }
.poetry-full a { color: #5e795e; }
.poetry-edition { font-size: 10px; line-height: 1.8; }
.poetry-actions { margin-top: 20px; }
.poetry-actions button { font-size: 12px; }
.poetry-status { padding: 30px 0; color: #738365; font-size: 14px; }
@media (max-width: 520px) {
 .game-modal.poetry-modal { padding: 27px 18px 20px; max-height: calc(100dvh - 24px); }
 .poetry-modal h2 { font-size: 22px; margin-bottom: 17px; }
 .poetry-prompt { font-size: 23px; padding: 19px 10px; min-height: 85px; }
 .poetry-options { grid-template-columns: 1fr; gap: 8px; }
 .poetry-option { min-height: 53px; padding: 11px; font-size: 14px; }
 .poetry-footer > span { max-width: 170px; }
 .poetry-actions { gap: 8px; } .poetry-actions button { padding: 11px 12px; }
}

/* V4: world-space labels, the cutaway post room and mail choreography. */
[hidden] { display: none !important; }
.world-stage[data-view="post"] { background: radial-gradient(ellipse at 50% 38%, #d9cda9, #b4bca2 75%); }
.world-stage[data-view="post"] .stage-cloud, .world-stage[data-view="post"] .stage-sun { display: none; }
.world-stage[data-view="post"] .stage-caption { color: #344f43; }
.stage-caption { z-index: 8; pointer-events: none; max-width: calc(100% - 44px); font-size: 12px; line-height: 1.7; }
.scene-tools { position: absolute; left: 22px; right: 22px; top: 20px; z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.scene-version { font-size: 10px; letter-spacing: .15em; color: #405e52; }
.scene-tools button { pointer-events: auto; border: 1px solid #78998b55; padding: 7px 10px; background: #fff8e7b8; color: #405e52; border-radius: 3px; font-size: 11px; }
.scene-tooltip { position: absolute; z-index: 9; left: 50%; bottom: 66px; transform: translateX(-50%); font-size: 12px; background: #274f46e6; color: #fff2d6; border-radius: 3px; padding: 8px 14px; pointer-events: none; }
.scene-tooltip:empty { display: none; }
.island-map.three-labels { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; opacity: 1; }
.three-labels .map-path, .three-labels .map-river, .three-labels .map-water-watermark, .three-labels .map-island-shape { display: none; }
.three-labels .npc-node, .three-labels .map-pavilion, .three-labels .player-token { transform: translate(-50%, -100%); margin: 0; padding: 0; border: 0; background: transparent; width: auto; }
.three-labels .npc-node span, .three-labels .node-roof { display: none; }
.three-labels .npc-node small, .three-labels .map-pavilion small { display: block; padding: 5px 8px; margin: 0; background: #fff4d8ec; color: #34554a; font-size: 10px; border: 1px solid #60877955; border-radius: 3px; box-shadow: 0 2px 6px #264a3920; text-shadow: none; }
.three-labels .npc-node.selected small { border-color: #ad6554; background: #f8e2bf; color: #8c493c; }
.three-labels .npc-node:hover, .three-labels .map-pavilion:hover { filter: brightness(1.07); }
.three-labels .npc-node.selected span, .three-labels .map-pavilion:after, .three-labels .player-token:after { display: none; }
.three-labels .player-token { color: #fff8e7; background: #ad6653; padding: 2px 6px; height: auto; font-size: 10px; border-radius: 2px; box-shadow: none; }
.post-hotspots { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.object-label { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; white-space: nowrap; border: 1px solid #947957; border-radius: 3px; background: #fff1d9eb; color: #634b36; padding: 6px 10px; font-size: 11px; box-shadow: 0 3px 12px #45351c1a; }
.object-label:hover, .object-label:focus-visible { background: #fff6e6; border-color: #a94d3f; color: #a94d3f; }
.mail-busy .nav-item, .mail-busy #reset-button, .mail-busy #camera-reset { pointer-events: none; opacity: .45; }
.mail-moment { text-align: center; padding: 70px 0; animation: letter-open .5s ease both; }
.mail-symbol { display: inline-grid; place-items: center; width: 76px; height: 92px; margin-bottom: 24px; border: 1px solid #b48d58; background: #f5e2b8; color: #a35643; font: 26px serif; box-shadow: 6px 8px 0 #ae987222; animation: target-float 1.8s ease-in-out infinite; }
.letter-choice { width: 100%; display: grid; gap: 8px; text-align: left; border: 1px solid #d6c6a9; background: #fff6e2; color: #344e42; padding: 19px; margin: 12px 0; }
.letter-choice small { color: #84715a; font-size: 11px; }
.letter-choice:hover { border-color: #b0654c; }
.letter-content { overflow-wrap: anywhere; }
.code-options { position: relative; }
.code-options input { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.code-options input:focus-visible + span { outline: 2px solid #325f50; outline-offset: 2px; }
.game-target { font-size: 13px; }
.game-modal { max-height: 90dvh; overflow-y: auto; }
.toast { z-index: 50; max-width: calc(100vw - 30px); text-align: center; }
.world-layout { grid-template-columns: 205px minmax(0, 1fr) 355px; min-height: 600px; }
@media (min-width: 821px) and (max-width: 1100px) { .world-layout { grid-template-columns: 170px minmax(0, 1fr) 310px; } .world-sidebar { padding: 25px 15px; } }
@media (max-width: 820px) { .world-layout { min-height: 0; } .scene-tools { left: 16px; right: 16px; top: 14px; } .sidebar-intro h2 { font-size: 22px; } .world-stage { height: 54vh; min-height: 390px; } .stage-caption { left: 18px; bottom: 15px; font-size: 11px; } }
@media (max-width: 520px) { .game-modal { padding: 26px 20px; } .three-labels .npc-node small { font-size: 9px; padding: 4px 5px; } .object-label { padding: 5px 7px; } }

/* The world is the page: a third-person street with contextual UI. */
.world-screen { height: 100dvh; min-height: 0; background: #9fc9bb; }
.world-layout { position: absolute; inset: 0; display: block; height: 100%; min-height: 0; }
.world-stage { position: absolute; inset: 0; height: 100% !important; min-height: 0 !important; }
.world-stage .stage-sky,.world-stage .stage-cloud,.world-stage .stage-sun { display: none; }
.world-sidebar { display: none; }
.topbar { position: absolute; inset: 0 0 auto; height: 80px; background: linear-gradient(#243e3755, transparent); border: 0; z-index: 12; color: #fff8df; pointer-events: none; }
.topbar .brand-lockup,.topbar .brand-lockup small,.topbar .role-badge,.topbar .text-button { color: #f7f1d6; text-shadow: 0 1px 3px #263c3855; }
.topbar .brand-seal { color: #fff0d3; border-color: #fff0d3; }
.topbar-actions { pointer-events: auto; }
.role-badge { border: 0; font-size: 11px; }
.topbar .text-button { border: 1px solid #f0ead24d; border-radius: 20px; padding: 8px 13px; background: #31584b22; }
.scene-tools { top: 105px; left: 32px; right: 32px; }
.scene-version { font-size: 12px; letter-spacing: .25em; color: #eef2d9; text-shadow: 0 1px 3px #2b4f44; }
.scene-tools button { color: #f6ecd1; border: 0; background: #34574675; border-radius: 30px; }
.scene-tool-buttons { display: flex; gap: 8px; }
.town-map-panel { position: absolute; top: 151px; right: 32px; width: 286px; z-index: 11; padding: 10px 8px; background: #f4edd8ed; border: 1px solid #7b896c; box-shadow: 4px 5px 0 #29473b29; }
.town-map-panel[hidden],.route-hint[hidden] { display: none; }
.map-heading { display: flex; align-items: center; justify-content: space-between; padding: 3px 5px 10px; color: #46614c; }
.map-heading strong { font: 13px 'Noto Serif SC',serif; letter-spacing: .2em; }
.map-heading span { font-size: 9px; color: #8d6550; }
#town-map-canvas { width: 100%; height: auto; display: block; cursor: pointer; border-radius: 2px; }
.map-destinations { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin-top: 9px; }
.map-destinations button { padding: 7px 2px; border: 1px solid #9fa99155; color: #48614d; font-size: 10px; background: #e7e4cf; cursor: pointer; }
.map-destinations button:hover,.map-destinations button:focus-visible { background: #d3d9bd; }
.town-map-panel p { font-size: 9px; text-align: center; color: #7b836a; margin: 9px 0 2px; }
.route-hint { position: absolute; bottom: 77px; left: 50%; transform: translateX(-50%); z-index: 9; padding: 7px 10px 7px 15px; background: #f7eedbdc; color: #52634c; font-size: 11px; border-radius: 18px; display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.route-hint button { background: transparent; border: 0; color: #8d6550; font-size: 19px; line-height: 1; }
.panel-open .town-map-panel,.panel-open .route-hint,.panel-open #town-map-toggle { display: none; }
.journey-hud { position: absolute; z-index: 9; left: 32px; top: 156px; display: grid; gap: 6px; padding: 17px 20px; max-width: 265px; background: #f6efd9ec; border: 1px solid #64745a66; box-shadow: 4px 4px 0 #2d453429; transform: rotate(-1deg); }
.journey-hud p { font-size: 9px; margin: 0 0 4px; color: #9d6550; letter-spacing: .25em; }
.journey-hud strong { font: 15px 'Noto Serif SC',serif; color: #344e40; }
.journey-hud span { font-size: 10px; line-height: 1.8; color: #677660; }
.journey-hud button { border: 0; text-align: left; padding: 8px 0 0; font-size: 10px; color: #a06a4f; background: transparent; }
.walk-help { position: absolute; z-index: 9; bottom: 27px; left: 50%; transform: translateX(-50%); display: flex; gap: 22px; white-space: nowrap; color: #fffae8; font-size: 10px; letter-spacing: .07em; text-shadow: 0 1px 3px #233e35; background: #304a3870; padding: 10px 20px; border-radius: 20px; }
.stage-caption { left: 32px; bottom: 34px; max-width: 280px; font-size: 10px; color: #fff5d8; text-shadow: 0 1px 3px #284a3b; }
.nearby-action { position: absolute; z-index: 10; left: 50%; bottom: 112px; transform: translateX(-50%); background: #f9edc8; color: #3c5849; padding: 12px 21px; border: 1px solid #475d46; box-shadow: 3px 4px 0 #354a403d; font-size: 13px; white-space: nowrap; }
.nearby-action kbd { padding: 2px 5px; margin-right: 8px; border: 1px solid #64775d; }
.three-labels .npc-node small,.three-labels .map-pavilion small { padding: 7px 12px; background: #f6f0d9e8; border: 1px solid #52675488; font: 12px 'Noto Serif SC',serif; }
.three-labels .npc-node small:after { content: ''; display: block; position: absolute; border: 5px solid transparent; border-top-color: #f6f0d9; bottom: -9px; left: calc(50% - 5px); }
.detail-panel { display: none; }
.panel-shade,.panel-close { display: none; }
.panel-open .detail-panel { display: block; position: absolute; z-index: 17; top: 100px; right: 32px; width: min(410px, calc(100% - 40px)); bottom: 40px; min-height: 0; padding: 28px; background: #faf3dfea; border: 1px solid #7b806464; box-shadow: 10px 15px 40px #253d3825; border-radius: 3px; backdrop-filter: blur(10px); }
.panel-open .panel-close { display: block; position: absolute; z-index: 18; right: 44px; top: 108px; border: 0; background: transparent; color: #516652; padding: 3px 8px; font-size: 25px; }
.panel-open .panel-shade { display: block; position: absolute; z-index: 15; inset: 0; background: linear-gradient(90deg,transparent 35%,#2a423b3d); }
.panel-open .journey-hud,.panel-open .walk-help,.panel-open .nearby-action,.panel-open .touch-walk { display: none; }
.panel-open .npc-portrait { width: 44px; height: 44px; font-size: 20px; margin-bottom: 16px; }
.panel-open .detail-panel h2 { font-size: 26px; }
.empty-state { padding: 70px 0; }
.world-screen[data-view="post"] .journey-hud,.world-screen[data-view="track"] .journey-hud { display: none; }
.world-screen[data-view="post"] .stage-caption { color: #fff3cd; }
.touch-walk { display: none; position: absolute; bottom: 85px; left: 22px; z-index: 10; text-align: center; }
.touch-walk button { background: #f7f0d6b8; border: 1px solid #576b5788; border-radius: 50%; width: 42px; height: 42px; margin: 3px; color: #344e41; touch-action: none; }
.landing-island,.landing-cloud { display: none; }
.landing-screen { background: radial-gradient(ellipse at 50% 30%, #d8e3c0, #79b1a3 80%); }
.landing-copy { width: min(620px,90vw); }
@media (max-width: 1000px) { .stage-caption { display: none; } .journey-hud { left: 20px; max-width: 225px; padding: 13px 16px; } }
@media (max-width: 680px) { .topbar { height: 65px; padding: 0 18px; } .topbar-actions { gap: 7px; } .role-badge,.brand-lockup small { display: none; } .brand-lockup { gap: 6px; font-size: 13px; } .scene-tools { top: 82px; left: 20px; right: 20px; } .journey-hud { top: 125px; max-width: 190px; } .journey-hud strong { font-size: 13px; } .walk-help { bottom: 20px; gap: 9px; font-size: 9px; padding: 9px 12px; } .walk-help span:first-child { display: none; } .touch-walk { display: block; } .nearby-action { bottom: 110px; left: auto; right: 20px; transform: none; padding: 10px 12px; font-size: 11px; } .panel-open .detail-panel { top: 78px; right: 16px; bottom: 24px; width: calc(100% - 32px); padding: 28px 22px; } .panel-open .panel-close { top: 86px; right: 27px; } }
@media (max-width: 680px) { .scene-version { font-size: 10px; letter-spacing: .12em; } .scene-tool-buttons { gap: 4px; } .scene-tools button { font-size: 10px; padding: 7px 9px; } .town-map-panel { top: 123px; right: 16px; width: 250px; max-height: calc(100dvh - 310px); overflow: auto; } .world-stage:has(.town-map-panel:not([hidden])) .journey-hud { visibility: hidden; } .route-hint { bottom: 63px; font-size: 10px; } }

/* The cover and the walking view render the same spherical town. */
.character-open { position: absolute; z-index: 10; right: 32px; bottom: 29px; display: grid; grid-template-columns: auto auto; gap: 3px 16px; padding: 11px 15px; border: 1px solid #f2e8cf88; border-radius: 3px; background: #f3ead8e8; color: #415b51; text-align: left; box-shadow: 3px 4px 0 #29473b29; }
.character-open span { font: 13px 'Noto Serif SC',serif; }
.character-open small { grid-column: 1; font-size: 9px; color: #8f755c; }
.character-open b { grid-column: 2; grid-row: 1 / 3; align-self: center; font-weight: normal; }
.panel-open .character-open,[data-camera="planet"] .character-open { display: none; }
.character-dialog { position: fixed; inset: 0; margin: auto; width: min(520px,calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 27px 25px 16px; border: 1px solid #6d7768; background: #f3eddd; color: #354f47; border-radius: 5px; overflow: auto; box-shadow: 10px 15px 65px #19352f55; }
.character-dialog::backdrop { background: #233e3b9c; backdrop-filter: blur(5px); }
.character-close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; font: 26px serif; color: #53665b; padding: 4px 9px; }
.portrait-heading { text-align: center; padding: 0 17px; }
.portrait-heading > span { font-size: 9px; color: #a5785c; letter-spacing: .35em; }
.portrait-heading h2 { font: 25px 'Noto Serif SC',serif; margin: 10px 0 9px; }
.portrait-heading p { margin: 0; min-height: 2.8em; font-size: 11px; line-height: 1.7; color: #7c806e; }
.portrait-canvas { width: 100%; height: clamp(260px,45dvh,430px); background: radial-gradient(ellipse at center,#fcf9ed 0,#e5e3cd90 63%,transparent 75%); cursor: grab; }
.portrait-canvas:active { cursor: grabbing; }
.portrait-canvas canvas { display: block; width: 100%; height: 100%; }
.portrait-caption { display: flex; justify-content: center; gap: 19px; font-size: 10px; color: #7e806d; margin: 0 0 15px; }
#portrait-color::before { content: ''; width: 9px; height: 9px; display: inline-block; background: var(--cloth-color); border: 1px solid #53625455; border-radius: 50%; margin-right: 6px; }
.portrait-turns { display: flex; justify-content: center; gap: 8px; margin: 6px 0 19px; }
.portrait-turns button { padding: 5px 17px; border: 1px solid #8a94754a; background: #e7e8d8; border-radius: 20px; color: #5c6c57; font-size: 10px; }
.portrait-people { display: flex; justify-content: center; gap: 9px; padding-top: 15px; border-top: 1px solid #abb09655; }
.portrait-people button { width: 34px; height: 36px; border: 1px solid #8b98765c; background: transparent; color: #788168; font: 15px 'Noto Serif SC',serif; border-radius: 3px; }
.portrait-people button[aria-pressed="true"] { background: #466556; color: #f6edd8; border-color: #466556; }
.portrait-note { margin: 15px 0 0; font-size: 9px; letter-spacing: .10em; color: #899079; text-align: center; }
.portrait-wardrobe{margin:0 0 16px;padding:12px 0 0;border-top:1px solid #abb09655}
.portrait-wardrobe[hidden]{display:none}
.wardrobe-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;color:#4e6457;margin-bottom:10px}
.wardrobe-heading a{font-size:11px;color:#856344;text-underline-offset:3px}
.portrait-swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.character-dialog .portrait-swatches button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:6px 5px;border:1px solid #8a9475;background:#faf7ed;border-radius:2px;color:#354f47;font-size:12px;box-shadow:none}
.character-dialog .portrait-swatches button[aria-pressed="true"]{border:2px solid #354f47;background:#e8e9db;box-shadow:2px 2px 0 #354f47}
.outfit-dot{width:14px;height:14px;flex:none;border-radius:50%;background:var(--outfit-color);border:1px solid #394d4555}
.outfit-status{margin:10px 0 0;text-align:center;font-size:11px;color:#647060}
.character-dialog:has(.portrait-wardrobe:not([hidden])) .portrait-canvas{height:clamp(220px,33dvh,340px)}
@media(max-width:680px) { .character-open { right: 23px; bottom: 159px; padding: 9px 11px; } .character-open small { display: none; } .character-open b { grid-row: 1; } .character-open span { font-size: 11px; } .character-dialog { padding: 26px 15px 14px; } .portrait-heading h2 { font-size: 21px; } .portrait-canvas { height: clamp(210px,42dvh,365px); } .portrait-people { gap: 7px; } }
#cover-world { position: absolute; inset: 0; z-index: 1; }
.landing-screen { min-height: 100dvh; justify-items: start; background: #70b5ae; }
.landing-copy { width: min(500px,40vw); margin-left: 6vw; padding: 8vh 0; text-align: left; }
.landing-copy h1 { font-size: clamp(78px,8vw,128px); color: #f5ecd3; text-shadow: 3px 4px 0 #32564e,6px 8px 0 #345b492c; }
.landing-copy .eyebrow { color: #345e51; font-size: 10px; letter-spacing: .15em; }
.landing-copy .subtitle { font-size: 17px; color: #284f45; }
.landing-copy .seal-mark { margin: 26px 0 34px; }
.landing-copy .role-grid { gap: 10px; }
.landing-copy .role-card { background: #f6edd8f0; border: 1px solid #416555; border-radius: 2px; box-shadow: 4px 5px 0 #34564645; padding: 19px 15px; }
.landing-copy .choice-label,.landing-copy .landing-note { color: #345f53; }
.planet-help { display: none; position: absolute; z-index: 9; bottom: 7vh; width: 100%; text-align: center; color: #f7ecd2; font: 17px 'Noto Serif SC',serif; line-height: 2; text-shadow: 0 1px 3px #31564b; pointer-events: none; }
.planet-help span { font: 11px 'Noto Sans SC',sans-serif; letter-spacing: .13em; }
[data-camera="planet"] .planet-help { display: block; }
[data-camera="planet"] .journey-hud,[data-camera="planet"] .island-map,[data-camera="planet"] .walk-help,[data-camera="planet"] .touch-walk,[data-camera="planet"] .touch-run,[data-camera="planet"] .stage-caption,[data-camera="planet"] #town-map-toggle,[data-camera="planet"] #camera-reset { display: none; }
.touch-run { display: none; position: absolute; bottom: 85px; right: 28px; z-index: 10; width: 53px; height: 53px; border-radius: 50%; border: 1px solid #5d735a; color: #fff1d3; background: #9c6957bb; touch-action: none; font: 17px 'Noto Serif SC',serif; }
.touch-run.pressed { background: #b96c50; transform: scale(.94); }
.panel-open .touch-run,.panel-open #planet-toggle { display: none; }
@media(max-width: 680px){
 .landing-screen { align-items: end; min-height: 100dvh; }
 #cover-world { inset: 0 0 auto; height: 52dvh; }
 .landing-copy { width: calc(100% - 40px); margin: 0 20px; padding: 44vh 0 25px; text-align: center; pointer-events: none; }
 .landing-copy h1 { font-size: 62px; letter-spacing: .18em; margin-bottom: 10px; }
 .landing-copy .eyebrow { font-size: 9px; margin-bottom: 13px; }
 .landing-copy .subtitle { font-size: 12px; }
 .landing-copy .seal-mark { display: none; }
 .landing-copy .role-choice { margin-top: 24px; }
 .landing-copy .role-grid { grid-template-columns: 1fr 1fr; pointer-events: auto; }
 .landing-copy .role-card { padding: 13px 10px; }
 .landing-copy .role-icon { display: none; }
 .landing-copy .role-card strong { font-size: 16px; }
 .landing-copy .role-card span:last-child { font-size: 10px; }
 .landing-copy .landing-note { font-size: 9px; margin: 18px 0 0; }
 .touch-run { display: block; }
 .scene-tools { align-items: start; }
 .scene-tool-buttons { max-width: 265px; justify-content: end; flex-wrap: wrap; }
 .scene-tools #camera-reset { display: none; }
}

/* Street poetry: a clear view of the encounter, with paper answers at hand. */
.game-modal.poetry-modal { inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; transform: none; color: #344f45; }
.game-modal.poetry-modal::backdrop { background: #203d3610; backdrop-filter: none; }
.poetry-conversation .scene-tools, .poetry-conversation .journey-hud, .poetry-conversation .character-open, .poetry-conversation .walk-help, .poetry-conversation .touch-walk, .poetry-conversation .touch-run, .poetry-conversation .stage-caption, .poetry-conversation .scene-tooltip { visibility: hidden; }
.poetry-conversation > .topbar { visibility: hidden; }
.poetry-topline { position: absolute; inset: 0 0 auto; padding: 22px 32px; display: flex; justify-content: space-between; align-items: center; color: #fff7df; background: linear-gradient(#263e3b66,transparent); font: 14px 'Noto Serif SC',serif; letter-spacing: .12em; }
.poetry-topline i { padding: 0 10px; font-style: normal; opacity: .6; }
.poetry-topline .game-close { position: static; display: flex; gap: 18px; align-items: center; font: 12px 'Noto Serif SC',serif; color: #fff7df; padding: 10px 14px; border: 1px solid #fff4d750; background: #26494055; border-radius: 3px; }
.poetry-topline .game-close b { font: 22px sans-serif; }
.npc-speech { position: absolute; left: 50%; top: 30%; transform: translate(-50%,-100%); width: max-content; max-width: min(410px,calc(100vw - 32px)); min-width: 240px; padding: 17px 23px 14px; background: #fff9e9f5; border: 1px solid #e1d4b6; border-radius: 14px 14px 14px 3px; box-shadow: 0 8px 20px #243d3825; pointer-events: none; }
.npc-speech::after { content: ''; position: absolute; left: var(--tail-x,50%); bottom: -10px; width: 18px; height: 18px; background: #fff9e9; border-right: 1px solid #e1d4b6; border-bottom: 1px solid #e1d4b6; transform: translateX(-50%) rotate(45deg); }
.npc-speech .poetry-speaker { padding: 0; border: 0; gap: 9px; }
.npc-speech .poetry-seal { width: 25px; height: 28px; font-size: 14px; }
.npc-speech .poetry-speaker small { border: 0; padding-right: 0; }
.npc-speech .poetry-prompt { display: block; min-height: 0; margin: 12px 0 8px; padding: 0; background: none; border: 0; text-align: left; font-size: 24px; line-height: 1.55; letter-spacing: .055em; }
.npc-speech > p { margin: 0; font-size: 11px; color: #8b8975; line-height: 1.6; }
.poetry-dock { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: min(1080px,calc(100% - 48px)); max-height: 47dvh; overflow: auto; padding: 19px 24px 13px; border: 1px solid #e7d8b9; border-radius: 8px; background: #f8f1e0f5; box-shadow: 0 16px 50px #1e40394a; }
.poetry-dock-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.poetry-dock .panel-kicker { font-size: 9px; margin: 0 0 6px; letter-spacing: .12em; }
.poetry-dock h2 { font-size: 20px; margin: 0; }
.poetry-key-hint { font-size: 10px; color: #96927b; white-space: nowrap; }
.poetry-dock .poetry-options { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.poetry-dock .poetry-option { position: relative; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 124px; padding: 14px 17px 18px; border-radius: 3px; border-color: #c8b995; background: linear-gradient(110deg,#fffbee,#f3e9d2); font-size: 17px; box-shadow: 0 3px 0 #cfbda452; transition: transform .18s ease,background .18s ease; }
.poetry-dock .poetry-option:hover:not(:disabled) { transform: translateY(-4px); background: #fdf9ed; border-color: #9c5f49; }
.poetry-dock .option-letter { border: 0; border-radius: 0; border-bottom: 1px solid #c9b796; width: 20px; height: 20px; justify-content: start; font: 11px 'Noto Serif SC',serif; }
.poetry-dock .poetry-option small { position: absolute; right: 12px; top: 17px; font-size: 9px; color: #ad9f86; }
.poetry-dock .poetry-option.incorrect { opacity: .6; background: #e7dece; transform: none; }
.poetry-dock .poetry-feedback { margin: 12px 0 0; min-height: 18px; font-size: 11px; }
.poetry-dock .poetry-result { border: 0; padding: 0; position: relative; }
.poetry-dock .poetry-result h3 { font-size: 25px; margin: 5px 0; color: #9c5544; letter-spacing: .07em; }
.poetry-dock .poetry-result h3:focus { outline: none; }
.poetry-dock .poetry-source { margin-bottom: 5px; }
.poetry-dock .poetry-full summary { display: inline-block; padding: 6px 0; border-bottom: 1px solid #aabb9580; }
.poetry-dock .poetry-full-lines { max-height: 150px; margin: 7px 0; }
.poetry-result-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.poetry-result-footer .poetry-feedback { margin: 0; }
.poetry-dock .poetry-actions { margin: 0; }
.poetry-pocket { position: absolute; top: 96px; right: 32px; padding: 12px 47px 12px 15px; background: #fcf5dfeb; border: 1px solid #cfc1a2; border-radius: 3px; display: grid; gap: 5px; box-shadow: 0 5px 16px #23423b1a; }
.poetry-pocket span { font: 12px 'Noto Serif SC',serif; }.poetry-pocket b { font-size: 9px; font-weight: 400; color: #8d8972; }
.poetry-pocket i { position: absolute; right: 12px; top: 17px; color: #ac6553; border: 1px dashed #b99977; padding: 3px; font: 15px 'Noto Serif SC',serif; }
.poetry-pocket.received i { background: #ad5343; color: #fff4d6; border-style: solid; }
.flying-poetry-seal { position: fixed; z-index: 4; display: grid; place-items: center; width: 42px; height: 46px; background: #ac493c; border: 3px double #f4dfb6; box-shadow: 0 7px 20px #55291b33; color: #fff0d0; font: 25px 'Noto Serif SC',serif; pointer-events: none; }
.poetry-loading { text-align: center; }.poetry-loading .poetry-status { padding: 12px; }.poetry-loading button { margin: 0 4px; }
@media (max-width: 650px) and (max-height: 679px) {
 .game-modal.poetry-modal .poetry-pocket { display: block; top: 14px; right: 97px; padding: 3px; }
 .game-modal.poetry-modal .poetry-pocket span, .game-modal.poetry-modal .poetry-pocket b { display: none; }
 .game-modal.poetry-modal .poetry-pocket i { display: block; position: static; font-size: 13px; padding: 3px; }
 .game-modal.poetry-modal .npc-speech { padding: 9px 12px; min-width: 180px; }
 .game-modal.poetry-modal .npc-speech .poetry-prompt { font-size: 19px; margin: 5px 0 0; }
 .game-modal.poetry-modal .npc-speech > p { display: none; }
 .game-modal.poetry-modal .poetry-dock .poetry-option { min-height: 65px; padding: 8px 10px; gap: 4px; font-size: 14px; }
 .game-modal.poetry-modal .poetry-dock .poetry-key-hint { display: none; }
}
@media (max-width: 650px) {
 .poetry-topline { padding: 12px 16px; font-size: 12px; }.poetry-topline .game-close { padding: 7px 10px; gap: 10px; }
 .poetry-pocket { top: 67px; right: 16px; padding: 8px 34px 8px 10px; }.poetry-pocket span { font-size: 10px; }.poetry-pocket b { font-size: 8px; }.poetry-pocket i { top: 12px; right: 8px; font-size: 12px; padding: 2px; }
 .npc-speech { min-width: 200px; max-width: calc(100vw - 40px); padding: 12px 16px 11px; }.npc-speech .poetry-prompt { font-size: 21px; margin: 9px 0 5px; }.npc-speech > p { font-size: 10px; }
 .poetry-dock { bottom: max(12px,env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 14px 14px 11px; max-height: 49dvh; }
 .poetry-dock-heading { margin-bottom: 11px; gap: 7px; }.poetry-dock h2 { font-size: 17px; }.poetry-dock .panel-kicker { font-size: 8px; }.poetry-key-hint { font-size: 8px; }
 .poetry-dock .poetry-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
 .poetry-dock .poetry-option { min-height: 83px; padding: 10px 12px 12px; gap: 6px; font-size: 15px; }.poetry-dock .poetry-option small { top: 12px; right: 9px; }
 .poetry-dock .poetry-feedback { margin-top: 9px; font-size: 10px; }.poetry-dock .poetry-result h3 { font-size: 21px; }
 .poetry-result-footer { display: block; }.poetry-dock .poetry-actions { margin-top: 11px; display: flex; gap: 8px; }.poetry-dock .poetry-actions button { flex: 1; padding: 10px 8px; font-size: 11px; }
 .poetry-dock .poetry-full-lines { max-height: 100px; }.poetry-dock .poetry-full-lines p { font-size: 12px; }
}
@media (max-height: 560px) and (min-width: 651px) {
 .poetry-dock { bottom: 10px; padding: 10px 16px; max-height: 42dvh; }.poetry-dock-heading { margin-bottom: 8px; }.poetry-dock .poetry-option { min-height: 65px; flex-direction: row; align-items: center; padding: 10px; font-size: 13px; }.poetry-dock .poetry-option small { display: none; }.poetry-dock .poetry-feedback { margin-top: 7px; }.npc-speech { padding: 10px 14px; }.npc-speech .poetry-prompt { font-size: 18px; margin: 6px 0; }.npc-speech > p { display: none; }.poetry-pocket { top: 75px; }
}
