@font-face { font-family: GarazhkaHand; src: url('/static/fonts/GarazhkaHand.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url('/static/fonts/montserrat-var-cyr.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Montserrat; src: url('/static/fonts/montserrat-var-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: Montserrat; src: url('/static/fonts/montserrat-var-cyrext.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Montserrat; src: url('/static/fonts/montserrat-var-latinext.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02FF, U+1D00-1DBF, U+1E00-1EFF, U+2C60-2C7F, U+A720-A7FF; }
:root { --paper: #fffdf5; --scene-ink: #26231d; --ink: #29251e; --lime: #dfed9a; --peach: #f4d4b6; --pink: #f1d2cb; --blue: #d9e8ed; --line: #393329; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 Montserrat, sans-serif; overflow: hidden; }
html, body, #festival-world, .scene-stage { background-color: #fffdf5; }
html { overflow-x: hidden; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
b, strong { font-weight: 600; }
code, pre, kbd, samp { font-family: Montserrat, sans-serif; font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: 4px; }
button:disabled, [aria-disabled="true"] { opacity: .45; cursor: default; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #567432; outline-offset: 5px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 50; padding: 10px 16px; background: var(--lime); }
.site-header { min-height: 56px; padding: 8px clamp(14px, 3vw, 42px); display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; border-bottom: 1px solid #d9d3c6; }
.site-brand { display: flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; }
.site-brand img { display: block; width: 34px; height: 34px; object-fit: contain; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.header-actions :is(button, a) { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 11px; border: 0; background: none; border-radius: 2px 8px 3px 9px; font-size: 14px; line-height: 1.15; white-space: nowrap; flex-shrink: 0; text-decoration: none; }
.header-actions :is(button, a):hover { background: #efe9da; }
.header-actions .participate-button { border: 1.5px solid var(--line); background: var(--lime); transform: rotate(-1deg); }
.floor-caption { position: relative; z-index: 2; padding: 12px 20px 0; display: flex; justify-content: center; align-items: baseline; gap: 16px; }
.floor-tag, .cities-button { font: 19px/1.1 GarazhkaHand, sans-serif; letter-spacing: .04em; }
.floor-caption p { margin: 0; font-size: 12px; color: #756b5b; }
.scene-stage { position: relative; width: 100%; aspect-ratio: var(--scene-ratio, 1536 / 2752); overflow: hidden; isolation: isolate; }
.scene-layer { position: absolute; inset: 0; transform-origin: 50% 50%; }
#scene-market { background-color: #fffdf5; isolation: isolate; }
.festival-scene { display: block; position: absolute; z-index: 1; left: 50%; top: 50%; width: 100%; height: 100%; max-width: 100%; max-height: 100%; transform: translate(-50%, -50%); transform-origin: 50% 50%; object-fit: contain; object-position: center; overflow: hidden; }
.scene-stage, .scene-layer, .festival-scene, .scene-transition-canvas { -webkit-mask-image: none; mask-image: none; filter: none; }
.festival-side-layer { position: absolute; z-index: 0; max-width: none; max-height: none; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.festival-side-layer:not([data-ready="true"]) { visibility: hidden; }
.scene-annotation { font-family: GarazhkaHand, sans-serif; }
.hotspot { cursor: pointer; outline: none; }
.hotspot .hit { pointer-events: fill; transition: fill .16s, stroke .16s; }
.hotspot:hover .hit, .hotspot:focus-visible .hit { fill: #e9d78755; stroke: #4f513388; }
.hotspot--character:hover .hit, .hotspot--character:focus-visible .hit { fill: #dfed9a55; stroke: #657b3780; }
.hotspot--account:hover .hit, .hotspot--account:focus-visible .hit { fill: #dfed9a66; stroke: #657b37; }
.hotspot--level:hover .hit, .hotspot--level:focus-visible .hit { fill: #d9e8ed88; stroke: #496571; }
.sign-idle-hit { fill: transparent; stroke: none; pointer-events: fill; }
.scene-recycle-restoration, .scene-sign-hangers, .scene-sign-hangers * { pointer-events: none; }
.scene-sign-hangers { transition: opacity .18s ease; }
.sign-hanger-support, .sign-hanger-cord { fill: none; stroke: var(--scene-ink); stroke-linecap: round; stroke-linejoin: round; }
.sign-hanger-support { stroke-width: calc(var(--sign-hanger-stroke, 3px) * .88); opacity: .75; }
.sign-hanger-cord { stroke-width: var(--sign-hanger-stroke, 3px); opacity: .85; }
.scene-stage:is([data-transitioning="true"], [data-intro-active="true"]) .scene-sign-hangers { opacity: 0; }
.sign-swing .sign-idle-float, .sign-swing .sign-idle-float * { pointer-events: none; }
.sign-idle-float { animation: sign-idle-float var(--sign-float-duration) ease-in-out var(--sign-float-delay) infinite; }
.sign-idle-roll, .sign-idle-tilt { transform-box: fill-box; transform-origin: center; }
.sign-idle-roll { animation: sign-idle-roll var(--sign-roll-duration) ease-in-out var(--sign-roll-delay) infinite; }
.sign-idle-tilt { animation: sign-idle-tilt var(--sign-tilt-duration) ease-in-out var(--sign-tilt-delay) infinite; }
.scene-layer[hidden] :is(.sign-idle-float, .sign-idle-roll, .sign-idle-tilt),
.scene-stage:is([data-transitioning="true"], [data-intro-active="true"], [data-sign-idle-paused="true"]) :is(.sign-idle-float, .sign-idle-roll, .sign-idle-tilt) { animation-play-state: paused; }
@keyframes sign-idle-float {
  0%, 100% { transform: translate(var(--sign-float-x, 0px), var(--sign-float-y, 0px)); }
  50% { transform: translate(calc(-1 * var(--sign-float-x, 0px)), calc(-1 * var(--sign-float-y, 0px))); }
}
@keyframes sign-idle-roll {
  0%, 100% { transform: rotate(calc(-1 * var(--sign-roll-angle))); }
  50% { transform: rotate(var(--sign-roll-angle)); }
}
@keyframes sign-idle-tilt {
  0%, 100% { transform: skewX(calc(-1 * var(--sign-tilt-angle))); }
  50% { transform: skewX(var(--sign-tilt-angle)); }
}
.figure { transform-box: fill-box; transform-origin: center bottom; }
.object-marker { display: none; }
.fairy-lights { animation: lights-glow 4s ease-in-out infinite alternate; }
@keyframes lights-glow { from { opacity: .48; } to { opacity: 1; } }
.scene-loading { position: absolute; inset: 0; z-index: 20; display: grid; align-content: center; justify-items: center; gap: 12px; background: var(--paper); font: 25px/1.3 GarazhkaHand, sans-serif; }
.loading-doodle { font-size: 65px; color: #7e8b47; animation: turn 6s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.scene-loading p { margin: 0; }
.scene-tooltip { position: absolute; z-index: 5; max-width: 240px; padding: 5px 13px; background: var(--lime); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 #29251e1a; font: 21px/1.2 GarazhkaHand, sans-serif; pointer-events: none; transform: rotate(-2deg); }
.room-book-frame { position: absolute; z-index: 2; pointer-events: none; }
.room-book-hit { position: absolute; display: block; cursor: default; pointer-events: auto; background: transparent; border: 0; outline: 0; -webkit-tap-highlight-color: transparent; }
.room-book-frame[data-debug-easter] .room-book-hit { outline: 2px solid rgb(215 25 25 / .56); outline-offset: -1px; }
.scene-stage:is([data-transitioning="true"], [data-intro-active="true"]) .room-book-hit { pointer-events: none; }
.room-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.room-object-label { position: absolute; min-height: 30px; max-width: calc(100% - 16px); padding: 4px 9px; background: var(--lime); border: 1.5px solid var(--ink); border-radius: 3px 2px 4px 1px; box-shadow: 2px 2px 0 #29251e1a; font: 18px/1.12 GarazhkaHand, sans-serif; white-space: nowrap; pointer-events: auto; transform: rotate(-1deg); }
.room-object-label::after { content: ''; position: absolute; left: var(--pointer-x, 50%); bottom: -5px; width: 8px; height: 8px; background: var(--lime); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateX(-50%) rotate(45deg); pointer-events: none; }
.room-object-label[data-side="below"]::after { bottom: auto; top: -5px; border-right: 0; border-bottom: 0; border-left: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); }
.room-object-label:hover { background: #d1e286; }
.scene-extensions { pointer-events: none; }
.scene-stage:is([data-transitioning="true"], [data-intro-active="true"]) .scene-layer { pointer-events: none; }
.scene-stage[data-transition-phase]:not([data-transition-compositor="flat"]) > .scene-layer { will-change: transform, opacity; }
.scene-arrival-sign { pointer-events: none; }
.scene-stage:is([data-transitioning="true"], [data-intro-active="true"]) :is(.scene-object-image, .fairy-lights) { animation-play-state: paused; }
.scene-transition-canvas { position: absolute; inset: 0; z-index: 8; display: block; width: 100%; height: 100%; background: transparent !important; pointer-events: none; }
.journey-stage { position: absolute; inset: 0; z-index: 7; overflow: hidden; isolation: isolate; background: #fff1df; perspective: 1200px; perspective-origin: 50% 50%; pointer-events: none; }
.journey-depth-plane, .journey-middle-left, .journey-middle-right, .journey-foreground-left, .journey-foreground-right, .journey-entry-doors, .journey-pavement, .journey-ceiling, .journey-arch, .journey-gate { position: absolute; inset: 0; transform-style: var(--journey-transform-style, preserve-3d); transform-origin: 50% 50%; pointer-events: none; }
.journey-depth-plane[data-depth="0"] { z-index: 0; }
.journey-depth-plane[data-depth="1"] { z-index: 1; }
.journey-depth-plane[data-depth="2"] { z-index: 2; }
.journey-depth-plane[data-depth="3"] { z-index: 3; }
.journey-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
.journey-art text { font-family: GarazhkaHand, sans-serif; fill: var(--scene-ink); stroke: none; }
.journey-entry-doors { perspective: 950px; }
.journey-door-leaf { position: absolute; backface-visibility: hidden; transform-style: preserve-3d; }
.journey-door-left { transform-origin: 0 50%; }
.journey-door-right { transform-origin: 100% 50%; }
.journey-arch-0 { z-index: 0; }
.journey-arch-1 { z-index: 1; }
.journey-arch-2 { z-index: 2; }
@media (orientation: portrait) { .journey-stage { perspective: 850px; } .journey-entry-doors { perspective: 700px; } }
.journey-stage[data-compositor="flat"] { perspective: none; --journey-transform-style: flat; }
.scene-transition-shield { position: fixed; inset: 0; z-index: 45; background: transparent; cursor: pointer; touch-action: manipulation; }
.scene-transition-skip { position: absolute; top: max(var(--transition-top, 12px), env(safe-area-inset-top)); right: max(var(--transition-right, 14px), env(safe-area-inset-right)); min-height: 42px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px 7px 2px 5px; background: #fffdf5ed; box-shadow: 2px 3px 0 #29251e0a; font: clamp(15px, 1.4vw, 18px)/1.1 GarazhkaHand, sans-serif; }
.scene-transition-skip:hover { background: var(--lime); }
.scene-transition-status { position: absolute; bottom: max(var(--transition-bottom, 20px), env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) rotate(-1deg); width: max-content; max-width: calc(100vw - 28px); margin: 0; padding: 8px 16px; border: 1px solid #39332955; border-radius: 4px 2px 6px 3px; background: #fffdf5e8; color: var(--ink); font: clamp(18px, 2vw, 26px)/1.15 GarazhkaHand, sans-serif; text-align: center; pointer-events: none; }
#lock-shackle { transform-box: view-box; transform-origin: 65px 65px; }
.scene-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 7px clamp(18px, 4vw, 60px) 13px; }
.scene-navigation :is(button, a) { display: inline-block; min-height: 44px; background: none; border: 0; padding: 8px 0; font: 22px/1.2 GarazhkaHand, sans-serif; text-decoration: none; }
.scene-navigation :is(button, a):hover { text-decoration: underline wavy #8c9656 1px; text-underline-offset: 7px; }
.scene-navigation p { margin: 0; text-align: center; font-size: 12px; color: #7a715f; }
.scene-navigation > :is(#directory-button, #stairs-button) { white-space: nowrap; }
body:is([data-level="room"], [data-level="franchise"]) { --paper: #fffaf0; }
body:is([data-level="room"], [data-level="franchise"]) .floor-tag { color: #8b5a36; }
.site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; padding: 10px 24px 18px; border-top: 1px solid #e2ddcf; color: #82786a; font-size: 11px; }
.site-notice { position: fixed; z-index: 60; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); background: #29251e; color: var(--paper); padding: 12px 20px; border-radius: 3px 10px 5px 7px; box-shadow: 0 4px 18px #29251e33; }
.character-bubble { position: absolute; z-index: 6; width: clamp(235px, 28vw, 350px); filter: drop-shadow(0 8px 8px #29251e13); }
.character-bubble > img { display: block; width: 100%; height: auto; }
.bubble-close { position: absolute; top: 13%; left: 79%; transform: translate(-50%, -50%); width: 44px; height: 44px; padding: 0; background: transparent; color: transparent; border: 0; font-size: 0; }
.character-bubble[data-speaker="garik"] .bubble-close { left: 70%; top: 12%; }
.character-bubble[data-speaker="galya"] .bubble-close { left: 75.5%; top: 11%; }
.bubble-action { display: block; margin: -4px auto 0; width: calc(100% - 30px); min-height: 44px; padding: 7px 12px; font: 21px/1.2 GarazhkaHand, sans-serif; background: var(--lime); border: 1.5px solid; border-radius: 3px; transform: rotate(-1deg); }
.bubble-text { margin: 0; padding: 30px 22px 24px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px 18px 24px 16px; font: 28px/1.18 GarazhkaHand, sans-serif; text-align: center; white-space: pre-line; }
.scene-arrival-hint { position: absolute; z-index: 4; width: max-content; max-width: calc(100% - 24px); padding: 7px 13px; font-size: clamp(18px, 4.8vw, 24px); filter: drop-shadow(2px 4px 0 #29251e1a); pointer-events: none; }
.scene-arrival-hint::after { content: ''; position: absolute; left: var(--tail-x, 50%); bottom: -5px; box-sizing: border-box; width: 10px; height: 10px; background: var(--paper); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.character-bubble.is-text .bubble-close { top: 2px; right: 3px; left: auto; color: var(--ink); font-size: 22px; transform: none; }
.character-bubble.is-text .bubble-action { margin-top: 8px; }
.site-dialog { margin: auto; padding: 0; border: 2px solid var(--ink); border-radius: 3px 8px 4px 6px; background: var(--paper); color: var(--ink); box-shadow: 9px 10px 0 #29251e25; max-height: calc(100svh - 42px); width: min(760px, calc(100vw - 32px)); max-width: calc(100vw - 32px); overflow: auto; }
.site-dialog::backdrop { background: #332d2455; backdrop-filter: blur(3px); }
.window-bar { min-height: 45px; position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: stretch; padding-left: 16px; background: var(--peach); border-bottom: 2px solid var(--ink); font: 15px/1.2 GarazhkaHand, sans-serif; letter-spacing: .04em; }
.window-bar > button { width: 46px; min-height: 43px; height: auto; align-self: stretch; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-left: 1px solid #29251e45; background: transparent; font: 25px/1 Montserrat, sans-serif; }
.window-bar > button:hover { background: #fffdf57a; }
.window-bar > button:focus-visible { outline: 2px solid #567432; outline-offset: -4px; }
.dialog-paper { padding: 24px clamp(22px, 4vw, 42px) 30px; }
.dialog-paper h2 { margin: 9px 0 16px; font: 42px/1.08 GarazhkaHand, sans-serif; }
.dialog-paper h3 { font: 27px/1.15 GarazhkaHand, sans-serif; margin: 20px 0 10px; }
.dialog-paper p { margin: 0 0 18px; }
.paper-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; text-decoration: none; border: 1.5px solid; background: var(--lime); border-radius: 4px 2px 6px 3px; font: 24px/1.15 GarazhkaHand, sans-serif; }
.paper-button:hover { background: #d1e286; }
.text-button { display: block; border: 0; background: transparent; text-decoration: underline; padding: 10px; min-height: 44px; margin: 10px auto 0; }
.zone-copy { font-size: 17px; line-height: 1.75; max-width: 57ch; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 24px; }
.info-card { padding: 17px; border: 1px solid #29251e66; border-radius: 3px 9px 4px 7px; background: #f7f3e8; }
.info-card:nth-child(4n+1) { background: #dfed9a44; }
.info-card:nth-child(4n+2) { background: #f4d4b64d; }
.info-card:nth-child(4n+3) { background: #d9e8ed77; }
.info-card h3 { margin: 0 0 7px; font-size: 25px; }
.info-card p { margin: 0; font-size: 13px; }
.info-card a { display: block; font-size: 17px; font-weight: 600; }
.review-card { margin: 0 0 14px; padding: 18px; border: 1px solid #29251e66; background: #f6f3e8; }
.review-card small { color: #7a6d56; }
.review-card a { display: block; margin-top: 5px; font: 26px/1.2 GarazhkaHand, sans-serif; }
.review-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.review-filter select { max-width: 100%; min-height: 42px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); padding: 6px 10px; font: inherit; }
.text-review blockquote { margin: 0 0 14px; white-space: pre-line; font-size: 16px; line-height: 1.7; }
.review-author { margin: 0 0 4px; font-weight: 600; }
.franchise-contact { margin: 0 10px 12px 0; }
.franchise-source { display: block; margin-top: 18px; color: #756b5b; }
.calendar-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.calendar-filter button { min-height: 44px; border: 1px solid #29251e66; background: transparent; padding: 8px 13px; border-radius: 2px 7px 3px 5px; }
.calendar-filter button[aria-pressed="true"] { background: var(--lime); border-color: var(--ink); }
.event-card { padding: 18px 0 22px; border-bottom: 1px solid #29251e33; }
.event-card:first-child { padding-top: 0; }
.event-card h3 { margin: 7px 0 12px; font-size: 30px; }
.event-city { display: inline-block; padding: 1px 8px; background: var(--peach); font-size: 12px; border-radius: 3px; }
.event-card p { font-size: 13px; margin: 0 0 14px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.directory-grid :is(button, a) { min-height: 48px; padding: 10px; background: transparent; border: 1px solid #29251e66; font: 22px/1.2 GarazhkaHand, sans-serif; border-radius: 4px 2px 6px 2px; text-align: center; text-decoration: none; }
.directory-grid :is(button, a):hover { background: var(--lime); }
.gate-dialog { width: min(535px, calc(100vw - 32px)); text-align: center; }
.gate-lock { width: 135px; height: 99px; display: block; margin: 0 auto 8px; }
.gate-dialog h2 { font-size: 39px; }
.gate-dialog #gate-description { font-size: 15px; margin: 0 auto 22px; max-width: 39ch; }
.messenger-links { display: grid; gap: 10px; }
.messenger-link { min-height: 53px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; text-decoration: none; border: 1.5px solid; border-radius: 5px 3px 9px 4px; font-size: 16px; font-weight: 600; }
.messenger-link[aria-disabled="true"] { pointer-events: none; }
.messenger-link > span { font: 24px/1 GarazhkaHand, sans-serif; }
.telegram-link { background: var(--lime); transform: rotate(-.5deg); }
.vk-link { background: var(--blue); transform: rotate(.5deg); }
.messenger-link:hover { box-shadow: 3px 4px 0 #29251e33; }
.gate-dialog .gate-help { color: #7b715e; font-size: 12px; margin: 16px auto 13px; max-width: 46ch; }
.gate-status { font-size: 13px; font-weight: 500; }
.gate-status.waiting::before { content: '◌ '; color: #7c8b39; }
.gate-status.error { color: #9c412a; }
.gate-dialog .link-expiry { margin: 0 0 10px; font-size: 11px; color: #817661; font-variant-numeric: tabular-nums; }
.gate-dialog .gate-footnote { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid #29251e22; font-size: 11px; color: #8c816c; }
.vk-manual { text-align: left; font-size: 12px; margin-top: 16px; }
.vk-manual summary { cursor: pointer; padding: 8px 0; min-height: 44px; }
.vk-manual p { margin: 7px 0; }
.copy-code { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.copy-code code { min-width: 0; overflow-wrap: anywhere; background: #f0ebdd; padding: 9px; font-size: 11px; }
.copy-code button { flex-shrink: 0; min-height: 44px; border: 1px solid; background: var(--lime); padding: 7px; }
.account-dialog { width: min(1180px, calc(100vw - 32px)); height: min(910px, calc(100svh - 42px)); overflow: hidden; display: flex; flex-direction: column; }
.account-dialog:not([open]) { display: none; }
.account-dialog .window-bar { flex-shrink: 0; }
.account-dialog iframe { width: 100%; min-height: 0; flex: 1; border: 0; background: #fafafa; }
.noscript { padding: 20px; text-align: center; }
@media (max-width: 700px) {
  .site-header { min-height: 50px; padding: 6px 10px; gap: 6px; align-items: center; flex-wrap: nowrap; }
  .site-brand img { width: 28px; height: 28px; }
  .header-actions { gap: 4px; justify-content: flex-end; max-width: none; flex-wrap: nowrap; }
  .header-actions :is(button, a) { padding: 5px 7px; font-size: clamp(11px, 3.1vw, 13px); line-height: 1.1; min-height: 34px; }
  .floor-caption { padding: 10px 12px 0; gap: 8px; }
  .floor-tag, .cities-button { font-size: 16px; }
  .floor-caption p { font-size: 10px; }
  .scene-navigation { padding: 4px 16px 11px; gap: 14px; flex-wrap: wrap; }
  .scene-navigation :is(button, a) { font-size: 19px; }
  .scene-navigation p { order: 3; width: 100%; margin-top: -7px; font-size: 10px; }
  .site-footer { font-size: 10px; padding: 9px 15px 17px; gap: 6px 14px; }
  .site-footer > span { width: 100%; text-align: center; }
  .character-bubble { width: min(292px, calc(100vw - 24px)); }
  .site-dialog { max-height: calc(100svh - 26px); width: calc(100vw - 24px); max-width: calc(100vw - 24px); box-shadow: 5px 6px 0 #29251e25; }
  .dialog-paper { padding: 22px 21px 26px; }
  .dialog-paper h2 { font-size: 34px; }
  .paper-button { max-width: 100%; font-size: clamp(18px, 5vw, 22px); padding: 9px 14px; text-align: center; }
  .franchise-contact { width: 100%; margin: 0 0 12px; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .account-dialog { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0; border-width: 0; }
  .account-dialog .window-bar { padding-top: env(safe-area-inset-top); }
  .account-dialog .window-bar > span { padding-left: 5px; }
  .gate-lock { width: 120px; height: 88px; }
}
@media (max-width: 360px) {
  .site-brand img { width: 25px; height: 25px; }
  .scene-navigation :is(button, a) { font-size: 17px; }
  .scene-navigation { gap: 8px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .site-header { min-height: 46px; padding: 5px 12px; gap: 8px; align-items: center; }
  .site-brand img { width: 28px; height: 28px; }
  .header-actions { max-width: none; gap: 6px; }
  .header-actions :is(button, a) { min-height: 32px; padding: 5px 9px; font-size: 12px; }
  .floor-caption { position: absolute; top: 68px; left: 14px; align-items: flex-start; flex-direction: column; padding: 0; gap: 3px; pointer-events: none; }
  .floor-caption p { display: none; }
  .scene-navigation { padding: 0 18px 4px; flex-wrap: nowrap; gap: 8px; }
  .scene-navigation p { display: none; }
  .scene-navigation :is(button, a) { font-size: 19px; }
  .site-footer { display: flex; padding: 4px 12px; }
  .character-bubble { width: 224px; }
  .bubble-close { width: 36px; height: 36px; font-size: 21px; }
  .bubble-action { font-size: 18px; }
  .site-dialog { max-height: calc(100svh - 16px); }
  .gate-lock { display: none; }
  .gate-dialog h2 { font-size: 30px; }
  .gate-dialog h2 br { display: none; }
  .gate-dialog .dialog-paper { padding-top: 16px; }
}
@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
  body { height: 100dvh; display: flex; flex-direction: column; overflow-y: hidden; }
  .site-header { flex: 0 0 auto; min-height: 56px; padding: 8px clamp(16px, 3vw, 42px); }
  #festival-world { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  .floor-caption { position: static; flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 12px; padding: 8px 20px 0; }
  .floor-caption p { display: block; }
  .scene-stage { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
  .scene-navigation { flex: 0 0 auto; flex-wrap: nowrap; padding: 4px clamp(18px, 3vw, 42px) 8px; gap: 14px; }
  .scene-navigation :is(button, a) { flex-shrink: 0; font-size: 21px; }
  .scene-navigation p { display: block; min-width: 0; font-size: 11px; }
  .site-footer { display: flex; flex: 0 0 auto; padding: 8px 24px; }
}
body[data-presentation="screen"] { height: 100dvh; display: flex; flex-direction: column; overflow-y: hidden; }
body[data-presentation="screen"] .site-header, body[data-presentation="screen"] .site-footer { flex: 0 0 auto; }
body[data-presentation="screen"] #festival-world { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
body[data-presentation="screen"] .floor-caption { position: static; flex: 0 0 auto; flex-direction: row; align-items: baseline; }
body[data-presentation="screen"] .scene-stage { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
body[data-presentation="screen"] .scene-navigation { flex: 0 0 auto; }
body:is([data-level="room"], [data-level="franchise"])[data-presentation="screen"] .site-footer { display: flex; }
@media (max-width: 700px) {
  body:is([data-level="room"], [data-level="franchise"]) .header-actions { max-width: none; gap: 4px; }
  body:is([data-level="room"], [data-level="franchise"]) .header-actions :is(button, a) { font-size: clamp(11px, 3.1vw, 13px); padding: 5px 7px; min-height: 34px; }
  body:is([data-level="room"], [data-level="franchise"]) .scene-navigation :is(button, a) { min-height: 36px; font-size: 17px; }
  body:is([data-level="room"], [data-level="franchise"]) .scene-navigation { padding-top: 2px; padding-bottom: 5px; }
  body:is([data-level="room"], [data-level="franchise"]) .site-footer { padding-top: 5px; padding-bottom: 6px; gap: 4px 12px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  body:is([data-level="room"], [data-level="franchise"]) .floor-caption { padding: 4px 12px 0; gap: 8px; }
  body:is([data-level="room"], [data-level="franchise"]) .floor-caption p { display: block; font-size: 10px; }
  body:is([data-level="room"], [data-level="franchise"]) .site-footer { padding: 4px 12px; }
}
body[data-presentation="screen"] { height: 100vh; height: 100dvh; }
.scene-object-image { transform-box: fill-box; transform-origin: 50% 0; }
.scene-object-image--brand { transform-origin: center; }
.hotspot--character .scene-object-image { transform-origin: 50% 100%; }
.room-object-label { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(5px) rotate(-1deg); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.room-object-label.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) rotate(-1deg); transition-delay: 0s; }
.window-bar > span { flex: 1; min-width: 0; display: flex; align-items: center; padding: 8px 12px 8px 0; }
.window-bar > .dialog-back { border-left: 0; border-right: 1px solid #29251e45; font-family: Montserrat, sans-serif; font-size: 23px; }
.site-footer button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; }
.legal-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
.legal-links .paper-button { width: 100%; max-width: 100%; min-width: 0; text-align: center; font-size: clamp(18px, 4.8vw, 24px); padding: 10px 14px; overflow-wrap: break-word; }
.directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.directory-grid :is(button, a) { min-width: 0; padding: 10px 7px; font-size: clamp(15px, 1.8vw, 21px); line-height: 1.15; white-space: normal; overflow-wrap: anywhere; hyphens: none; }
#directory-sections > section + section { margin-top: 4px; }
.info-card-image, .text-review-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: 0 0 13px; border-radius: 3px; }
.info-card-image--team { aspect-ratio: 4 / 5; height: auto; object-position: 50% 25%; }
.info-card-image--partners { height: auto; object-fit: contain; padding: 16px; background: var(--paper); }
.review-card--featured { border: 1.5px solid var(--ink); background: #dfed9a44; }
.review-card--featured p { margin: 14px 0; font-size: 14px; }
.review-card--featured a.paper-button { display: inline-flex; font-size: 23px; }
.history-links { display: grid; gap: 10px; font-size: 13px; margin: 22px 0; }
.history-links p { margin: 0; }
.media-reviews { margin-bottom: 24px; }
@media (max-width: 700px) {
  .site-header { min-height: 50px; padding: 6px 10px; gap: 6px; flex-wrap: nowrap; }
  .site-brand img { width: 28px; height: 28px; }
  .header-actions, body:is([data-level="room"], [data-level="franchise"]) .header-actions { max-width: none; gap: 4px; flex-wrap: nowrap; justify-content: flex-end; }
  .header-actions :is(button, a), body:is([data-level="room"], [data-level="franchise"]) .header-actions :is(button, a) { min-height: 34px; padding: 5px 7px; font-size: clamp(11px, 3.1vw, 13px); line-height: 1.1; white-space: nowrap; }
  .header-actions .participate-button, body:is([data-level="room"], [data-level="franchise"]) .header-actions .participate-button { padding: 5px 8px; }
  .floor-caption { padding-top: 7px; }
  .scene-navigation { flex-wrap: nowrap; gap: 8px; padding: 3px 12px 5px; }
  .scene-navigation > :is(#directory-button, #stairs-button) { flex-shrink: 0; font-size: clamp(12px, 3.9vw, 17px); }
  .scene-navigation p { display: none; }
  .site-footer { flex-wrap: nowrap; gap: 10px; padding: 5px 10px max(6px, env(safe-area-inset-bottom)); font-size: 9px; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .directory-grid :is(button, a) { font-size: clamp(13px, 3.7vw, 18px); }
  .room-object-label { font-size: 15px; }
}
@media (max-width: 390px) {
  .site-header { padding: 6px 8px; gap: 4px; }
  .site-brand img { width: 26px; height: 26px; }
  .header-actions, body:is([data-level="room"], [data-level="franchise"]) .header-actions { gap: 2px; }
  .header-actions :is(button, a), body:is([data-level="room"], [data-level="franchise"]) .header-actions :is(button, a) { min-height: 32px; padding: 5px 5px; font-size: 11px; }
  .header-actions .participate-button, body:is([data-level="room"], [data-level="franchise"]) .header-actions .participate-button { padding: 5px 7px; }
}
@media (max-width: 365px) {
  .site-header { padding: 5px 6px; gap: 4px; }
  .site-brand img { width: 25px; height: 25px; }
  .header-actions :is(button, a), body:is([data-level="room"], [data-level="franchise"]) .header-actions :is(button, a) { padding: 4px 4.5px; font-size: 10.5px; min-height: 32px; }
  .header-actions .participate-button, body:is([data-level="room"], [data-level="franchise"]) .header-actions .participate-button { padding: 4px 6px; }
}
body[data-level="market"] :is(.floor-caption, .scene-navigation) { padding-inline: clamp(12px, 3vw, 42px); }
body[data-level="market"] .floor-caption { justify-content: space-between; align-items: center; flex-wrap: nowrap; }
body[data-level="market"] .floor-tag, .cities-button { flex: 0 0 auto; white-space: nowrap; }
.cities-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; appearance: none; border: 0; background: none; text-transform: uppercase; pointer-events: auto; }
@media (hover: hover) { .cities-button:hover { color: #567432; } }
.cities-button:active { opacity: .75; }
body[data-level="market"] .scene-navigation > :is(#directory-button, #stairs-button) { display: inline-flex; align-items: center; gap: .35em; line-height: 1; }
.cities-dialog { width: min(536px, calc(100vw - 32px)); }
.cities-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; margin: 0 0 24px; padding: 0; list-style: none; font-size: clamp(13px, 3.5vw, 15px); }
.cities-list li { padding-block: 5px; border-bottom: 1px solid #e2ddcf; overflow-wrap: anywhere; }
.cities-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cities-actions .paper-button { min-width: 0; text-align: center; }
@media (max-width: 440px) { .cities-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
