#town-explorer .festival-shade{position:absolute;inset:0;z-index:75;display:grid;place-items:center;background:#101b19bb;color:#493b2c;font-family:'Velmora Pixel',Georgia,serif}
#town-explorer .festival-shade[hidden]{display:none}
#town-explorer .festival-book{position:relative;display:grid;grid-template-columns:39% 49%;gap:6%;width:min(1100px,97vw,143vh);aspect-ratio:1448/1086;box-sizing:border-box;padding:12% 9% 10% 8%;padding: min(11vh,95px) min(8vw,90px) min(10vh,75px);background:url('../assets/gardening/journal-menu.png') center/100% 100% no-repeat;image-rendering:pixelated}
#town-explorer .festival-left,#town-explorer .festival-right{min-height:0;min-width:0;overflow:auto;scrollbar-color:#98744e #e4d0a7}
#town-explorer .festival-left{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}
#town-explorer .festival-left h2{white-space:pre-line;font:28px/1.15 Georgia,serif;color:#3b513d;margin:12px 0}
#town-explorer .festival-left img{width:125px;height:105px;object-fit:contain;image-rendering:pixelated;margin:8px}
#town-explorer .festival-left p{margin:7px 0;font-size:15px;line-height:1.35}
#town-explorer .festival-eyebrow{letter-spacing:2px;font-size:11px!important;color:#885332}
#town-explorer .festival-right{display:flex;flex-direction:column;padding:7px 5px}
#town-explorer .festival-body{overflow:auto;min-height:0;flex:1}
#town-explorer .festival-body h3{font:24px/1.2 Georgia,serif;color:#3b513d;margin:0 0 14px}
#town-explorer .festival-body p{font-size:16px;line-height:1.45;margin:0 0 14px}
#town-explorer .festival-body label{display:block;font-size:15px;margin-bottom:10px}
#town-explorer .festival-body input,#town-explorer .festival-body select{display:block;width:100%;box-sizing:border-box;font:inherit;color:#493b2c;background:#f6e8c5;border:2px solid #9b8056;padding:8px;margin-top:4px;border-radius:0}
#town-explorer .festival-actions{display:flex;flex-direction:column;gap:7px;padding-top:12px}
#town-explorer .festival-actions button{font:15px/1.25 'Velmora Pixel',Georgia,serif;color:#f4e5c7;background:#4d6250;border:3px double #b59b63;border-radius:0;padding:9px 10px;cursor:pointer;box-shadow:0 2px #6a4c32}
#town-explorer .festival-actions button:disabled{opacity:.5;cursor:default}
#town-explorer .festival-book :focus-visible{outline:3px solid #80672f;outline-offset:2px}
#town-explorer .festival-ring-track{position:relative;height:32px;border:2px solid #8e7651;background:#bea982;margin:20px 5px}
#town-explorer .festival-ring-target{position:absolute;left:33%;width:34%;height:100%;background:#718366}
#town-explorer .festival-ring-marker{position:absolute;top:3px;width:6%;height:26px;background:#f6e8c5;border:2px solid #65462d;box-sizing:border-box}
@media(max-height:760px),(max-width:900px){#town-explorer .festival-book{width:min(96vw,135vh);padding:9vh 7vw 8vh;gap:5%;grid-template-columns:40% 51%}#town-explorer .festival-left h2{font-size:22px}#town-explorer .festival-body p{font-size:14px}#town-explorer .festival-body h3{font-size:20px}#town-explorer .festival-left img{width:86px;height:76px}#town-explorer .festival-actions button{font-size:13px;padding:6px}}

/* Reuse only the journal's illustrated frame, without unrelated baked-in tabs. */
#town-explorer .festival-book{background-image:url('../assets/festival/paper-frame.png');width:min(1100px,96vw);height:min(670px,90vh);aspect-ratio:auto;padding:48px 58px;gap:38px;grid-template-columns:36% minmax(0,1fr)}
#town-explorer .festival-left{border-right:2px solid #a0875c66;padding-right:25px}
#town-explorer .festival-actions button{min-height:38px}
@media(max-width:900px),(max-height:760px){#town-explorer .festival-book{height:89vh;padding:32px 38px;gap:22px;grid-template-columns:34% minmax(0,1fr)}#town-explorer .festival-left{padding-right:16px}#town-explorer .festival-left h2{font-size:22px}#town-explorer .festival-actions{gap:5px;padding-top:6px}}

#town-explorer .festival-book{padding:96px 95px;grid-template-columns:35% minmax(0,1fr);gap:32px}#town-explorer .festival-left{padding-right:18px}#town-explorer .festival-left img{width:100px;height:88px}#town-explorer .festival-right{padding:0}#town-explorer .festival-actions button{width:100%;box-sizing:border-box}#town-explorer .festival-body h3{font-size:22px;margin-bottom:12px}#town-explorer .festival-body input,#town-explorer .festival-body select{min-width:0}
@media(max-width:900px),(max-height:760px){#town-explorer .festival-book{padding:75px 65px;gap:22px}#town-explorer .festival-left h2{font-size:20px}#town-explorer .festival-body label{margin-bottom:6px;font-size:13px}#town-explorer .festival-body input,#town-explorer .festival-body select{padding:5px}#town-explorer .festival-actions button{min-height:30px}#town-explorer .festival-body h3{font-size:20px}}

@media(max-width:900px),(max-height:760px){#town-explorer .festival-book{padding-bottom:96px;padding-right:82px}}

#town-explorer .festival-shade{animation:festival-appear .22s ease-out;background:#101b1970}#town-explorer .festival-book{animation:festival-page .25s ease-out}@keyframes festival-appear{from{opacity:0}to{opacity:1}}@keyframes festival-page{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){#town-explorer .festival-shade,#town-explorer .festival-book{animation:none}}

#town-explorer .festival-shade.festival-game{place-items:end end;background:transparent;padding:12px;box-sizing:border-box}#town-explorer .festival-game .festival-book{display:block;width:min(440px,94vw);height:380px;max-height:80vh;padding:50px 52px 56px}#town-explorer .festival-game .festival-left{display:none}#town-explorer .festival-game .festival-right{height:100%}#town-explorer .festival-game .festival-body p{font-size:13px;margin-bottom:8px}#town-explorer .festival-game .festival-ring-track{height:24px;margin:10px 0}#town-explorer .festival-game .festival-ring-marker{height:18px}#town-explorer .festival-game .festival-actions button{font-size:13px;min-height:30px;padding:5px}#town-explorer .festival-game .festival-body h3{font-size:18px}

#town-explorer[data-festival="race"] #town-door,#town-explorer[data-festival="lake"] #town-door{bottom:auto;top:70px;left:auto;right:18px;transform:none;font-size:16px;max-width:310px}#town-explorer[data-festival="race"] #town-status,#town-explorer[data-festival="lake"] #town-status{bottom:auto;top:125px;max-width:390px;left:auto;right:18px;transform:none;font-size:13px}

#town-explorer .festival-left img.festival-balloon-preview{width:64px;height:96px;object-fit:contain}

/* The prompts live in a flex container; move that container off the river. */
#town-explorer:is([data-festival="race"],[data-festival="lake"]) .town-bottom{top:70px;bottom:auto;left:auto;right:18px;max-width:min(390px,46vw);align-items:flex-end}
#town-explorer:is([data-festival="race"],[data-festival="lake"]) #town-door{line-height:1.25;min-height:42px}
@media(max-width:700px){#town-explorer:is([data-festival="race"],[data-festival="lake"]) .town-bottom{top:105px;right:10px;max-width:43vw}#town-explorer:is([data-festival="race"],[data-festival="lake"]) #town-door{font-size:12px}}

.hound-dog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hound-dog-grid article{border:2px solid #9a7249;padding:10px}.hound-dog-grid canvas{image-rendering:pixelated}.hound-dog-grid h4{margin:4px 0}.hound-dog-grid p{font-size:.85em}.hound-shade .festival-body>button{display:block;margin:12px 0;width:100%}.hound-shade canvas{max-width:100%}@media(max-width:700px){.hound-dog-grid{grid-template-columns:1fr}}

#town-story-dialogue .town-story-name{position:absolute;left:3.52%;top:80.4%;width:13.31%;height:8.9%;display:flex;align-items:center;justify-content:center;background:transparent;color:#39271d;font:600 clamp(9px,1.55vw,22px)/1 'Velmora Pixel',sans-serif;white-space:nowrap;overflow:hidden;box-sizing:border-box;padding:0 4px}#town-story-dialogue .town-story-text{position:absolute;left:21.1%;top:17%;width:73.6%;height:54%;box-sizing:border-box;padding:1% .8%;text-align:left;background:transparent;color:#452817;font:400 clamp(11px,2.1vw,30px)/1.38 'Velmora Pixel',sans-serif;overflow:hidden;white-space:pre-wrap;pointer-events:none}
/* Observations occupy the existing wooden text frame, without a speaking portrait. */
#town-story-dialogue[data-narration=true] .town-story-name{left:4.8%;top:15%;width:87%;height:8%;justify-content:flex-start;color:#78603e;font-size:clamp(10px,1.4vw,20px);font-weight:400}
#town-story-dialogue[data-narration=true] .town-story-text{left:4.2%;top:26%;width:90%;height:49%;font-size:clamp(12px,2vw,28px)}
