#hotspots{position:absolute;inset:0;z-index:3;pointer-events:none}
#hotspots .hotspot{pointer-events:auto}
#town-speech-layer{position:absolute;inset:0;z-index:2;pointer-events:none}
.scene-character{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;width:clamp(24px,2.6cqw,36px);height:clamp(24px,2.6cqw,36px);border:0;border-radius:50%;background:transparent;padding:0;color:#193747}
.scene-character:focus-visible{outline:2px solid #193747;outline-offset:3px}
.scene-badge{position:absolute;inset:3px 0;display:grid;place-items:center;border:1px solid #8c7653;border-radius:50%;background:#fffdf2e8;box-shadow:0 1px 3px #18384735;font:bold 12px/1 Arial,sans-serif;letter-spacing:1px;pointer-events:none}
.scene-badge:after{content:'';position:absolute;width:5px;height:5px;left:4px;bottom:-2px;transform:skewX(-22deg) rotate(45deg);border-right:1px solid #8c7653;border-bottom:1px solid #8c7653;background:#fffdf2}
.scene-character:hover .scene-badge,.scene-character:focus-visible .scene-badge,.scene-character[aria-expanded="true"] .scene-badge{background:#fff2c9;border-color:#294956}
.scene-bubble{position:absolute;z-index:6;width:max-content;max-width:min(225px,calc(100cqw - 12px));display:flex;flex-direction:column;align-items:center;gap:13px;pointer-events:none;color:#203c48;font:14px/1.4 Arial,sans-serif;text-align:center}
.comic-balloon{position:relative;isolation:isolate;width:fit-content;max-width:100%;margin:0;padding:10px 16px;border:1.5px solid #294956;border-radius:48% 46% 47% 44% / 38% 43% 39% 42%;background:#fffef5;box-shadow:2px 3px 0 #19374720}
.comic-balloon:after{content:'';position:absolute;z-index:-1;width:13px;height:13px;left:clamp(20px,var(--tail-left,50%),calc(100% - 30px));bottom:-8px;transform:skewX(-20deg) rotate(45deg);border-right:1.5px solid #294956;border-bottom:1.5px solid #294956;background:#fffef5}
.scene-bubble .comic-balloon:first-child:not(:last-child){align-self:flex-end;font-size:15px;font-weight:600;--tail-left:55%}
.bubble-below .comic-balloon:after{top:-8px;bottom:auto;transform:skewX(-20deg) rotate(225deg)}
.scene-bubbles-hint{text-align:center;font-size:12px;color:#647177;margin:12px 20px}
.town-viewer-footer{flex:none;padding:3px 12px 8px}
.town-viewer-footer .town-viewer-hint{padding:4px 0}
@media(max-width:600px){.scene-bubble{max-width:min(205px,calc(100cqw - 12px));font-size:13px;gap:11px}.comic-balloon{padding:8px 13px}.scene-badge{font-size:10px}.scene-bubbles-hint{font-size:11px}.town-viewer-footer .town-viewer-hint{font-size:10px}}
@media print{#town-speech-layer,.scene-bubble,.scene-bubbles-hint,.town-viewer-footer{display:none!important}}

/* Hide numbers until a window is hovered, focused, touched or revealed. */
.town-canvas:not(.preview-open) .hotspot .number{opacity:0;transform:scale(.65)}
.town-canvas:not(.preview-open) .hotspot:hover .number,.town-canvas:not(.preview-open) .hotspot:focus-visible .number,.town-canvas:not(.preview-open) .hotspot:active .number,.town-canvas:not(.preview-open) .hotspot.revealed .number{opacity:1;transform:scale(1)}
.town-canvas:not(.preview-open) .hotspot:hover .shine,.town-canvas:not(.preview-open) .hotspot:focus-visible .shine,.town-canvas:not(.preview-open) .hotspot.revealed .shine{opacity:.8}

.family-banner{padding:10px 20px;text-align:center;background:#efe5d1;color:#203c48;font:13px/1.5 Arial,sans-serif;border-bottom:1px solid #d8c6a4}
@media print{.family-banner{display:none!important}}

/* A short hint reveals the numbers without changing access to stories. */
.town-canvas.numbers-hint .hotspot .number{transition:none;opacity:1;transform:scale(1);background:#fff3c9;border-color:#a8792f;box-shadow:0 0 0 4px #ffe8a166,0 3px 12px #14283375}
.town-canvas.numbers-hint .hotspot .shine{opacity:.8}
.town-help{display:flex;flex-direction:column;align-items:center;gap:7px;margin-top:15px;margin-bottom:18px}
.number-hint-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 17px;border:1px solid #d8bd7b;border-radius:7px;background:#f9e9bc;color:#243f49;font-size:13px;font-weight:600;line-height:1.4;white-space:normal;text-align:center}
.number-hint-button>span{display:inline-grid;place-items:center;border:1px solid currentColor;border-radius:50%;width:20px;height:20px;font:600 13px/1 Arial,sans-serif;flex:none}
.number-hint-button:hover,.number-hint-button[aria-pressed="true"]{background:#ffe4a0;border-color:#a8792f}
.town-help p{margin:0;color:#d6dedc;font-size:11px;text-align:center}
.town-viewer-footer{text-align:center;padding-top:9px}
.town-viewer-footer .number-hint-button{font-size:12px;min-height:40px;padding:8px 15px;margin-bottom:5px}
@media(max-width:600px){.town-help{margin-top:12px;margin-bottom:14px}.number-hint-button{font-size:12px;max-width:100%;padding:10px 13px}.town-viewer-footer .number-hint-button{font-size:11px;min-height:38px;padding:7px 12px}.town-viewer-footer .town-viewer-hint{margin:0}}
@media print{.town-help,.number-hint-button{display:none!important}}

#town-viewer-stage:not(.zoomed) .town-canvas{width:min(100%,calc((100dvh - 190px)*1.5))}
