.rpg-theme{background:#647b8d}
.site-header{position:fixed;inset:0 0 auto;width:100%;height:76px;border:0!important;box-shadow:none!important;background:transparent;backdrop-filter:none;z-index:30;padding-inline:34px;transition:background .25s}.site-header.is-scrolled{background:#0b1824e8;backdrop-filter:blur(10px)}.brand{font-size:22px;text-shadow:2px 2px 2px #061624}.main-nav a{text-shadow:1px 2px 3px #071525;font-size:14px}.main-nav a:hover{color:#ffe3a0}.main-nav a{border-bottom-color:transparent!important}.main-nav a[aria-current]{color:#ffe3a0}
.hero{height:100svh;min-height:540px;isolation:isolate;overflow:hidden;background:#246c9c}.town-wrap{height:100%;width:100%;display:block;place-items:start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:0;touch-action:auto;scroll-behavior:auto;background:none;cursor:grab}.town-wrap::-webkit-scrollbar{display:none}.town-wrap.is-dragging{cursor:grabbing}.town-scene{position:relative;width:max(100vw,177.7778svh);height:max(100svh,56.25vw);min-width:100%;aspect-ratio:16/9}.town-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill;image-rendering:pixelated;user-select:none;pointer-events:none}.town-scene:after{display:none}.town-life{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;image-rendering:pixelated;z-index:1}.hero:after{content:"";position:absolute;inset:0;height:100%;z-index:2;pointer-events:none;background:linear-gradient(180deg,#06182a50,transparent 21%,transparent 64%,#071623a6)}
.hero-intro{position:absolute;left:5.5%;top:calc(var(--header-height) + 16px);bottom:auto;max-width:260px;z-index:6;pointer-events:none;text-shadow:2px 3px 0 #0b2736,0 2px 14px #05111ac9}.hero-roman{font-size:12px;letter-spacing:.18em;margin:0 0 8px}.hero-intro h1{font-size:clamp(36px,4vw,60px);line-height:1.5;margin:0 0 8px;letter-spacing:.08em}.hero-role{font-size:16px;letter-spacing:.04em}.hero-description{font-size:14px;line-height:1.9;margin-top:14px;max-width:400px;color:#f0eee1}.hero-rule{display:none}
.map-link{position:absolute;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:7px;transform:translate(-50%,-100%);width:auto;height:auto;min-height:0;min-width:90px;padding:0;background:none!important;border:0;outline:none;box-shadow:none!important;font-size:13px;line-height:1.7;letter-spacing:0;color:#fff4d8;z-index:5;user-select:none;text-shadow:1px 1px #0c1723}.map-label{display:block;padding:6px 13px;border:1px solid #ddd8b393;border-radius:2px;background:#0c1b27a8;box-shadow:0 2px 10px #0a152b55;backdrop-filter:blur(3px);white-space:nowrap;transition:background .2s,transform .2s}.map-label:after{content:"";display:block;position:absolute;width:1px;height:8px;bottom:39px;left:50%;background:#ede1a9a6}.map-npc{position:relative;display:block;width:36px;height:36px}.map-npc:after{content:"";position:absolute;bottom:-1px;left:7px;width:23px;height:5px;background:#0720346e;border-radius:50%;z-index:-1}.map-sprite{width:36px;height:36px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(1px 2px 0 #0c233c80);animation:npc-breathe 2.6s steps(2,end) infinite}.quest-mark{position:absolute;right:-7px;top:0;color:#ffe09a;text-shadow:1px 2px 0 #715229;font-size:14px;line-height:1;animation:quest-idle 2.2s steps(4,end) infinite}.map-link:hover .map-label,.map-link:focus-visible .map-label{background:#263d45eb;border-color:#ffdf97;transform:translateY(-3px);color:#ffe5aa}.map-link:hover .map-sprite{filter:drop-shadow(0 0 4px #ffdd8d)}.map-link:focus-visible{outline:none}.map-link:focus-visible .map-npc{outline:2px solid #e8c67f;outline-offset:3px}.map-profile{left:70.5%;top:44%}.map-services{left:33%;top:75%}.map-learning{left:76%;top:63%}.map-quiz{left:66%;top:72%}.map-contact{left:85%;top:84%}
.fountain-touch{position:absolute;z-index:3;left:57.5%;top:62%;width:8%;height:11%;transform:translateX(-50%);border:0;background:transparent;cursor:pointer;border-radius:50%;touch-action:manipulation}.fountain-touch:hover{background:radial-gradient(ellipse,#cbf0ff14,transparent 70%)}.fountain-touch:focus-visible{outline:1px dashed #fff0b8;outline-offset:4px}
.town-controls{position:absolute;right:28px;bottom:35px;z-index:7;display:flex;gap:9px}.map-view-toggle,.motion-toggle{display:block;position:static;min-height:40px;padding:7px 13px;color:#fff1ce;font-size:13px;line-height:1.7;border:1px solid #d6d6bd70;border-radius:2px;background:#0b1c2b9c;box-shadow:none;backdrop-filter:blur(6px)}.motion-toggle{font-size:17px;min-width:43px;padding:5px 9px}.map-view-toggle:hover,.motion-toggle:hover{background:#284754e3;border-color:#efd399}.scroll-cue{position:absolute;left:50%;bottom:19px;z-index:6;transform:translateX(-50%);width:36px;height:30px;background:none;border:0;color:#ffe6a5;animation:scroll-hint 2.4s ease-in-out infinite}
.hero.is-overview{height:auto;min-height:0}.town-wrap.is-overview{height:auto;min-height:0;overflow:hidden;display:block}.is-overview .town-scene{width:100%;height:auto;min-width:0;aspect-ratio:16/9}.hero.is-overview .hero-intro{display:none}.hero.is-overview:after{display:block;background:linear-gradient(#07172738,transparent 35%,transparent 70%,#06172833)}.hero.is-overview .town-controls{bottom:16px}.hero.is-overview .scroll-cue{display:none}
.content-section{background:linear-gradient(135deg,#10222d9c,#0b1723b0);backdrop-filter:blur(4px);border:1px solid #bfc4b294;box-shadow:inset 0 0 0 3px #172d37a3,0 0 0 2px #081017,0 12px 36px #040c1659;border-radius:3px}.content-section:after{background:#d3bd84a6;width:5px;height:5px}.quiz-window{background:#0b1c2d7a;border-color:#c7c9b29e;box-shadow:inset 0 0 0 1px #5a6e7b,0 0 0 2px #071420}.quiz-window-bar{background:#213849b8}.site-footer{background:#071724dc;border:0!important}.journal-archive>summary{background:#0e2331bd}.answer-button{background:#1f384bd9}.service-card{border-color:#70859466}
[data-world-motion="paused"] .map-npc,[data-world-motion="paused"] .map-sprite,[data-world-motion="paused"] .quest-mark,[data-world-motion="paused"] .scroll-cue{animation-play-state:paused}
@keyframes npc-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-1px)}}@keyframes quest-idle{0%,100%{transform:translateY(0);opacity:.75}50%{transform:translateY(-3px);opacity:1}}@keyframes scroll-hint{0%,100%{transform:translate(-50%,0);opacity:.55}50%{transform:translate(-50%,4px);opacity:1}}
@media(max-width:900px){.site-header{padding-inline:23px}.main-nav{gap:18px}.hero-intro{left:5%;bottom:auto;max-width:260px}.hero-intro h1{font-size:42px}.hero-description{font-size:13px;max-width:310px}}
@media(max-width:600px){.site-header{height:auto;min-height:104px;padding:12px 15px 9px;gap:8px;background:transparent}.brand{font-size:22px}.main-nav a{font-size:12px;text-shadow:1px 2px 3px #0b1f35}.hero{height:100svh;min-height:570px}.town-wrap{height:100%;padding:0;overflow-x:auto;overflow-y:hidden;display:block}.town-scene{width:calc(100svh*1.777778);height:100%;min-width:100%;aspect-ratio:16/9}.hero-intro{left:23px;top:auto;bottom:13%;max-width:280px}.hero-roman{font-size:9px;margin-bottom:5px}.hero-intro h1{font-size:34px;margin-bottom:5px;line-height:1.5}.hero-role{font-size:13px}.hero-description{display:none}.hero:after{height:100%;background:linear-gradient(#061b2d50,transparent 24%,transparent 59%,#06182b94)}.map-link{font-size:12px;min-width:78px;gap:6px}.map-label{padding:5px 10px}.map-sprite,.map-npc{width:32px;height:32px}.map-label:after{bottom:34px;height:7px}.quest-mark{font-size:12px;right:-6px}.town-controls{right:16px;bottom:23px;gap:8px}.map-view-toggle,.motion-toggle{min-height:38px;font-size:12px;padding:7px 10px}.motion-toggle{font-size:16px;min-width:38px}.scroll-cue{bottom:19px;left:25px;transform:none;animation:none}.is-overview .town-scene{width:100%;height:auto;aspect-ratio:16/9}.hero.is-overview .map-link{font-size:10px;min-width:60px;gap:3px}.hero.is-overview .map-label{padding:3px 6px}.hero.is-overview .map-sprite,.hero.is-overview .map-npc{width:22px;height:22px}.hero.is-overview .map-label:after{display:none}.hero.is-overview .quest-mark{font-size:9px;right:-3px}.hero.is-overview .town-controls{right:10px;bottom:10px}.hero.is-overview .map-view-toggle{font-size:10px;padding:4px 8px;min-height:29px}.hero.is-overview .motion-toggle{display:none}.rpg-theme{background-attachment:scroll}}
@media(prefers-reduced-motion:reduce){.map-npc,.map-sprite,.quest-mark,.scroll-cue{animation:none!important}.site-header,.map-label{transition:none}}

.map-link>span{font-size:inherit;color:inherit}.hero.is-overview{padding-top:var(--header-height);background:#0c1e2d}.hero.is-overview .map-link{z-index:5}

.site-header.town-overview{background:#0c1e2de0}@media(max-width:600px){.site-header:not(.is-scrolled):not(.town-overview){background:linear-gradient(#04182d77,#061a2c00)}.main-nav a{text-shadow:1px 1px 0 #071728,0 2px 5px #06121e}.hero.is-overview .map-link{min-width:44px;min-height:44px}.hero.is-overview .map-label{position:absolute;bottom:100%;opacity:0;pointer-events:none}.hero.is-overview .map-link:hover .map-label,.hero.is-overview .map-link:focus-visible .map-label{opacity:1}}

/* The town stays visible through reading panels; the text keeps a dark backing. */
.rpg-theme{background-attachment:fixed}
.hero-intro{isolation:isolate;padding:18px 0}
.hero-intro:before{content:"";position:absolute;inset:-5px -115px -5px -110px;z-index:-1;background:linear-gradient(90deg,#000b 0%,#0009 48%,#0005 72%,transparent 100%);pointer-events:none}
.hero-intro h1,.hero-role,.hero-description{color:#fff6df}
.map-link{font-size:20px;gap:8px;min-width:110px}.map-label{padding:8px 16px;line-height:1.6}.map-label:after{height:10px;bottom:39px}
.hero-social{position:absolute;right:34px;top:calc(var(--header-height) + 14px);z-index:8;pointer-events:auto}
.social-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;color:#fff;border:1px solid #eee3c776;background:#06121b70;border-radius:3px;pointer-events:auto;transition:background .2s,border-color .2s}.social-link img{width:22px;height:22px;display:block}.social-link:hover{background:#223d4bd9;border-color:#ffe2a2}
.site-footer .social-link{margin-left:10px}.site-footer>a:last-child{margin-left:10px}.site-footer>span{margin-left:auto}
.service-kind{font-size:13px;line-height:1.7;color:#d8cfae;letter-spacing:.02em;padding:1px 7px;background:#102b3655;border:1px solid #80918d70;white-space:nowrap}
.quiz-window-bar{background:#21384988}.feedback{background:#1b3043b8}.result-list li{background:#193247b8}
@media(max-width:600px){.hero-intro{padding:14px 0}.hero-intro:before{inset:-6px -60px -6px -35px;background:linear-gradient(90deg,#000b,#0008 62%,transparent)}.map-link{font-size:16px;gap:8px;min-width:86px}.map-label{padding:6px 12px}.map-sprite,.map-npc{width:36px;height:36px}.map-label:after{bottom:39px;height:9px}.hero-social{right:16px;top:calc(var(--header-height) + 10px)}.service-kind{font-size:12px}.site-footer{gap:9px}.site-footer .social-link{width:40px;height:40px;margin-left:0}.site-footer>a:last-child{margin-left:0}.hero.is-overview .hero-social{display:none}.hero.is-overview .map-link{font-size:10px;min-width:44px;gap:3px}.hero.is-overview .map-label{padding:3px 6px}.hero.is-overview .map-sprite,.hero.is-overview .map-npc{width:22px;height:22px}}

.map-contact{left:84%}

.map-link{z-index:9}

/* Residents belong to doorways in the illustration; markers use their feet as anchors. */
.hero{height:max(100svh,56.25vw)}
.resident-icon{display:block;overflow:hidden;image-rendering:pixelated}.resident-icon image{image-rendering:pixelated}
.map-link{min-width:0;gap:7px}
.map-label{position:relative;text-align:center;font-family:inherit}
.map-label:after{content:none!important}
.map-label:before{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #ddd8b393}
.map-building{display:block;font-size:11px;line-height:1.4;letter-spacing:.06em;color:#e4c68f;margin-bottom:1px}
.map-npc{width:var(--resident-size,40px);height:var(--resident-size,40px)}
.map-npc .resident-icon{width:100%;height:100%;transform:translateY(3%)}
.map-npc:after{left:30%;width:40%;height:8%;bottom:0;background:#13211f55}
@media(max-width:600px){.map-building{font-size:10px}.map-link{gap:7px}}

.map-link.is-offscreen{visibility:hidden}

@media(min-width:601px) and (max-width:1100px){.hero-description{max-width:225px}}

/* The five guides are painted into the town; the empty foot boxes only anchor their labels. */
.map-npc:after{content:none}

.hero.is-exploring .hero-intro{visibility:hidden;opacity:0}

/* Keep doorway labels inside the viewport without moving their residents. */
.map-label{transform:translateX(var(--label-shift,0px));transition:background .2s}
.map-label:before{left:var(--pointer-left,50%)}
.map-link:hover .map-label,.map-link:focus-visible .map-label{transform:translate(var(--label-shift,0px),-3px)}

/* The floating stone plaza replaces the waterfront fountain. */
.fountain-touch{left:62.2%;top:49%;width:5%;height:6%}
.town-life{filter:saturate(.35);opacity:.8;image-rendering:auto}
.map-npc .resident-icon{filter:saturate(.45)}
.map-npc{animation:npc-breathe 2.6s steps(2,end) infinite}

/* Phones use the persistent header navigation instead of building speech bubbles. */
@media(max-width:600px){.hero .map-label{display:none}}
