.anime-retreat{background:#354c3c;color:#eef0e4}.anime-retreat .map-header{width:100%;max-width:none;padding:25px 4.4%;background:transparent;backdrop-filter:none;border-radius:0;transition:background .35s ease}.anime-retreat.on-map .map-header{background:#203b2cd4;backdrop-filter:blur(20px)}.anime-retreat .map-brand{display:flex;align-items:center;gap:9px;font-size:32px;letter-spacing:-1.4px;white-space:nowrap}.anime-retreat .map-brand>span{color:#f1f2e7}.anime-retreat .map-brand .brand-mark{width:32px;height:32px}.anime-retreat .map-header nav{gap:12px}.anime-retreat .map-icon{width:44px;min-height:44px;padding:10px;border-radius:50%;background:#23412a42;border-color:#f0f4e236}.anime-retreat .map-icon svg{width:21px;height:21px}.entry-landing{overflow:hidden;z-index:0;pointer-events:auto;min-height:650px}.landing-photo,.landing-night-photo,.landing-shade{position:absolute;inset:0;z-index:0;pointer-events:none}.landing-photo,.landing-night-photo{width:100%;height:100%;object-fit:cover;object-position:58% center}.landing-night-photo{opacity:0}.landing-photo{display:block}.landing-shade{background:linear-gradient(180deg,#0e241e24,transparent 27%,transparent 40%,#122e2763 85%,#15362a7a),linear-gradient(90deg,#102a2142,transparent 70%)}.entry-landing .scene-content{position:relative;z-index:2}.entry-landing h1{margin-bottom:12px}.entry-landing .entry-subtitle{font-size:17px;color:#eef1e3;margin:0 0 24px}.landing-fade{position:absolute;z-index:1;left:0;right:0;bottom:0;height:50px;background:linear-gradient(transparent,#354c3c66);pointer-events:none}.anime-retreat .map-board{width:min(100%,720px);border-radius:0;background:#354c3c;box-shadow:none;overflow:hidden}.map-panels{position:relative;width:100%}.map-panel{display:block;width:100%;aspect-ratio:1/2;position:relative;background:#354c3c}.map-panel>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.map-panel-night{opacity:0}.map-panel:not(:first-child){margin-top:-12%;mask-image:linear-gradient(to bottom,transparent 0,#000 6%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 6%)}.anime-retreat .map-effects{z-index:1}.anime-retreat .map-pin{background:linear-gradient(135deg,#edf4dfbd,#dce8cdac);color:#233f30;border-color:#f2f7e27a;box-shadow:inset 0 1px 0 #fff4,0 4px 15px #152f2730;backdrop-filter:blur(14px) saturate(.9);-webkit-backdrop-filter:blur(14px) saturate(.9);font-size:14px;min-height:44px;padding:9px 14px}.anime-retreat .map-pin:hover,.anime-retreat .map-pin:focus-visible{background:#e8f1dfe8;filter:none;box-shadow:0 5px 18px #142b253b}.anime-retreat .map-footer{max-width:720px;background:linear-gradient(#6c9290,#243e33);padding-bottom:150px}.anime-retreat .map-footer p,.anime-retreat .map-footer>div a,.anime-retreat .map-footer>div button{color:#e2eadc}.anime-retreat .map-credit{color:#cbdacd}.anime-retreat .landing-dock{width:660px;z-index:8;min-height:82px;background:#17362dd9;border-color:#e3ebd22e}.landing-dock .now-playing{flex:1;min-width:0}.landing-dock .now-playing img{width:46px;height:46px;object-fit:cover}.landing-dock .now-playing>div{min-width:0}.landing-dock .now-playing>div>span{font-size:14px}.landing-dock .now-playing button{display:block;padding:0;text-align:left;font-size:12px;color:#d0ddc7;line-height:1.5}.landing-dock .play-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5}.landing-dock .dock-tool{min-width:44px;min-height:44px}.landing-dock .dock-tool>span{font-size:12px}.rest-description{font-size:15px;line-height:1.8;color:#cbd9c1;margin:0 0 20px}.rest-time-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.rest-time-choices button{border:1px solid #cfdfbb47;min-height:46px;border-radius:12px;font-size:14px;background:#d2e4bb09}.rest-time-choices button[aria-pressed=true]{background:#c7dcad2b;border-color:#d8eac084}.rest-actions{display:flex;gap:13px;margin-top:24px}.rest-actions button{border:1px solid #d5e3c36b;border-radius:25px;min-height:44px;padding:9px 20px;font-size:14px}.rest-actions #start-rest{background:#e3ecd4;color:#2a4432}.rest-actions #cancel-rest{color:#dbe8cd}#rest-status{font-size:14px;color:#d3e1c8;margin:22px 0 0}
@media(min-width:760px){.anime-retreat{background:radial-gradient(ellipse at 50% 20%,#3f5744,#203a2f 75%);background-attachment:fixed}.anime-retreat .map-pin{font-size:16px;min-height:48px;padding:10px 18px}.anime-retreat .map-footer{background:linear-gradient(#6c9290,#203a2f00)}.entry-landing .scene-content{max-width:720px}}
@media(max-width:600px){.anime-retreat .map-header{padding:24px 23px}.anime-retreat .map-brand{font-size:30px;gap:8px}.anime-retreat .map-header nav{gap:9px}.anime-retreat .landing-dock{width:430px;max-width:calc(100% - 32px);padding:12px 14px;gap:14px;min-height:80px}.landing-dock .play-button{width:45px;height:45px}.landing-dock .dock-divider{display:none}.landing-dock .now-playing>div>span{font-size:13px}.landing-dock .now-playing button{font-size:12px}.landing-dock .now-playing img{width:42px;height:46px}.landing-dock .dock-tool{padding:0;min-width:36px}.landing-dock .dock-tool>span{font-size:11px}.entry-landing .entry-subtitle{font-size:17px}.anime-retreat .map-footer{padding-bottom:135px}}
@media(max-width:380px){.anime-retreat .map-header{padding:20px 16px;gap:8px}.anime-retreat .map-brand{font-size:25px;gap:6px}.anime-retreat .map-brand .brand-mark{width:26px;height:26px}.anime-retreat .map-icon{width:42px;min-height:44px}.anime-retreat .map-header nav{gap:5px}.anime-retreat .landing-dock{max-width:calc(100% - 22px);gap:9px;padding:11px}.landing-dock .now-playing img{display:none}.landing-dock .dock-tool{min-width:36px}.anime-retreat .map-pin{font-size:14px;padding:9px 11px}}
@media(max-height:650px) and (min-width:650px){.entry-landing{min-height:600px}.anime-retreat .landing-dock{bottom:14px;min-height:74px}.entry-landing .scene-content{transform:none}}
@media(prefers-reduced-motion:reduce){.anime-retreat .map-header{transition:none}}

/* Keep the eastern lookout label inside narrow phone screens. */
.anime-retreat .map-pin[data-room="alpine"]{transform:translate(-80%,-50%)}

/* The welcome grows with its copy, with space for the fixed header and sound dock. */
.entry-landing{height:auto;min-height:100svh;padding-top:128px;padding-bottom:150px}
.entry-landing .scene-content{transform:none}
.entry-landing h1{line-height:1.05;margin-bottom:8px}
.entry-landing .entry-subtitle{line-height:1.3;margin-bottom:8px}
.entry-intro{max-width:520px;margin:0 0 16px;color:#f0f2e7}
.entry-landing .entry-intro p{font-size:16px;line-height:1.25;margin:0}
.entry-landing .entry-intro p+p{margin-top:6px}

/* Resort lighting changes the map, landing header and Quiet Coast. Other rooms keep their own lighting. */
.anime-retreat .night-mode-toggle{min-height:44px;padding:10px 15px;font-size:14px;line-height:1.3;white-space:nowrap;border-radius:25px;background:#23412a42;border-color:#f0f4e236;flex-shrink:0}
.anime-retreat .night-mode-toggle[aria-pressed=true]{background:#b7cbe535;border-color:#d5e3ef8c;color:#f1f5f5}
/* Night is a separately painted scene. A dim preview stays visible while its image decodes. */
html[data-resort-lighting=night] .anime-retreat{background:#142332}
html[data-resort-lighting=night] .map-board,html[data-resort-lighting=night] .map-panel,html[data-resort-lighting=night] .entry-landing{background:#142332}
html[data-resort-lighting=night] .map-panel-day,html[data-resort-lighting=night] .landing-photo{opacity:.16}
html[data-resort-lighting=night] .night-art.art-ready{opacity:1}
.map-motion .night-art,.map-motion .map-panel-day,.map-motion .landing-photo{transition:opacity 1.2s ease}
html[data-resort-lighting=night] .landing-shade{background:linear-gradient(180deg,#08131e18,transparent 32%,#0b19284d),linear-gradient(90deg,#07152338,transparent 70%)}
html[data-resort-lighting=night] .landing-fade{background:linear-gradient(transparent,#14233266)}
html[data-resort-lighting=night] .landing-dock{background:#142a3cde;border-color:#d7e3eb38}
.map-night-glimmer{display:none;opacity:.3}
html[data-resort-lighting=night] .map-night-glimmer{display:block}
html[data-resort-lighting=night] .map-motion .map-night-glimmer{animation:forest-glimmer var(--glimmer-duration,13s) var(--glimmer-delay,-5s) ease-in-out infinite}
@keyframes forest-glimmer{0%,100%{opacity:.2}43%{opacity:.6}68%{opacity:.25}}
.anime-retreat.resort-evening{background:radial-gradient(ellipse at 50% 20%,#2b4053,#172b3c 75%)}
.anime-retreat.resort-evening.on-map .map-header{background:#182b43e0}
.anime-retreat.resort-evening .map-pin{background:linear-gradient(135deg,#293e5cdb,#21364ed1);color:#eef1e6;border-color:#d1dce078;text-shadow:none;box-shadow:inset 0 1px 0 #e3eef014,0 4px 15px #08152b40}
.anime-retreat.resort-evening .map-pin:hover,.anime-retreat.resort-evening .map-pin:focus-visible{background:#354c68ed;box-shadow:0 5px 18px #09152e50}
.anime-retreat.resort-evening .map-footer{background:linear-gradient(#3d626c,#172b3c)}
.anime-retreat.resort-evening.on-map .landing-dock{background:#172c43e0;border-color:#d7e3eb38}
/* Keep the brand and controls together; extra-large text may still wrap safely. */
@media(max-width:600px){.anime-retreat .map-header{padding:18px 12px;flex-wrap:wrap;gap:8px 6px}.anime-retreat .map-brand{flex:0 0 auto}.anime-retreat .map-header nav{flex:0 0 auto;justify-content:flex-end;margin-left:auto;gap:6px}.anime-retreat .map-header .map-icon{flex:0 0 44px;width:44px;min-height:44px}.anime-retreat .night-mode-toggle{padding:10px}}
@media(max-width:400px){.anime-retreat .map-header{padding-inline:10px}.anime-retreat .map-header nav{gap:5px}}
@media(max-width:350px){.anime-retreat .map-header{column-gap:4px}.anime-retreat .night-mode-toggle{flex:0 0 auto;width:4.75em;min-width:66px;padding:4px 8px;white-space:normal;line-height:1.15}}
@media(prefers-reduced-motion:reduce){.night-art,.map-panel-day,.landing-photo{transition:none!important}}

/* Twilight garden has its own evening photograph, independent of map lighting. */
.draft-room .world[data-world=twilight]{background-image:url('../assets/twilight-garden.jpg');background-position:52% center;background-color:#203342}
body[data-space=twilight] .atmosphere{display:none}
body[data-space=twilight] .world-light{background:linear-gradient(180deg,#101e3930,transparent 28%,transparent 48%,#10243880),linear-gradient(90deg,#17283c32,transparent 64%)}
body[data-space=twilight] .room-dock{background:#1d3041de;border-color:#d8dee339}
body[data-space=twilight] .room-caption>span{color:#d9d6e7}
body[data-space=twilight] .room-caption p{color:#e3e2e7}

/* Quiet Coast follows the resort lighting, with the same shore and soundscape. */
.anime-retreat.resort-evening .draft-room .world[data-world=coast]{background-image:url('../assets/coast-night-v1.jpg');background-color:#071322}
.anime-retreat.resort-evening[data-space=coast] .draft-room .world-light{background:linear-gradient(180deg,#06111b0a,transparent 40%,#06111b38)}
.anime-retreat.resort-evening[data-space=coast] .draft-room .water-light{display:none}

.room-caption-head{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px}.room-caption-head>span{font-size:11px;letter-spacing:2.6px;color:#dce8ce}.room-caption-head #hide-controls{font-size:12px;min-height:44px;padding:5px 0 5px 12px;color:#d2ddc9}.room-music-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px}.room-music-button .icon{width:18px;height:18px}.room-dock .room-music-button span{font-size:11px;margin:0}.room-dock>div{overflow:hidden}.room-dock strong,.room-dock>div>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#room-music-credits p{margin-top:0}#room-music-credits ul{list-style:none;padding:0;margin:15px 0 22px}#room-music-credits li{font-size:14px;line-height:1.7;padding:8px 0;border-bottom:1px solid #d5e3c31f}#room-music-credits li a{text-decoration:underline;text-underline-offset:3px}body[data-space=twilight] .room-caption-head>span{color:#d9d6e7}@media(max-height:550px){.room-caption-head{min-height:44px}.room-caption-head #hide-controls{min-height:44px}.draft-room .room-bottom{max-height:calc(100dvh - 105px);overflow-y:auto;scrollbar-width:thin}.room-caption{margin-bottom:12px}.room-caption h2{font-size:28px}}

/* Opaque rows and in-flow thumbnails keep scrolling photos clear. */
#places-dialog{height:min(780px,calc(100dvh - 38px));padding:0;overflow:hidden;background:#193428;backdrop-filter:none;-webkit-backdrop-filter:none}
#places-dialog[open]{display:flex;flex-direction:column}
#places-dialog .draft-panel-head{flex:0 0 auto;margin:0;padding:22px 24px 18px;background:#193428;border-bottom:1px solid #d8e3cb29}
#places-dialog .draft-places{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;gap:11px;padding:16px 24px 24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#places-dialog .place-choice{position:relative;display:grid;grid-template-columns:clamp(96px,28vw,124px) minmax(0,1fr);align-items:center;gap:14px;min-height:106px;width:100%;padding:8px;flex-shrink:0;border-radius:13px;background:#243e33;border-color:#d8e3cb3d;isolation:auto;filter:none;text-align:left}
#places-dialog .place-choice::before,#places-dialog .place-choice::after{content:none}
#places-dialog .place-preview{position:relative;display:block;width:100%;height:clamp(72px,21vw,93px);aspect-ratio:4/3;padding:0;overflow:hidden;border-radius:8px;background:#334c40;z-index:auto}
#places-dialog .place-preview img{position:static;display:block;inset:auto;width:100%;height:100%;object-fit:cover;object-position:center;filter:none}
#places-dialog .place-name{position:static;display:block;width:auto;padding:0 5px 0 0;font:400 21px/1.3 var(--serif);color:#f0f3e7;text-shadow:none;z-index:auto}
#places-dialog .place-preview-fallback{position:absolute;inset:0;display:grid;place-items:center;padding:8px;text-align:center;font:400 14px/1.4 var(--sans);color:#d4dfd0}
#places-dialog .place-choice:hover{background:#2d493c;filter:none}
#places-dialog .place-choice:focus-visible{outline:2px solid #dce9cf;outline-offset:3px}
@media(max-width:380px){#places-dialog .draft-panel-head{padding:20px 18px 16px}#places-dialog .draft-places{padding:14px 14px 18px}#places-dialog .place-choice{gap:12px;min-height:98px}#places-dialog .place-name{font-size:19px}}

/* A generous native volume control for touch, mouse and keyboard. */
input.draft-volume-control{appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;width:100%;height:52px;min-height:52px;margin:0;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;touch-action:pan-y}
input.draft-volume-control::-webkit-slider-runnable-track{height:8px;border:0;border-radius:999px;background:#a8bf9b80}
input.draft-volume-control::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:44px;height:44px;margin-top:-18px;border:6px solid transparent;border-radius:50%;background:#e3ecd4;background-clip:padding-box}
input.draft-volume-control::-moz-range-track{height:8px;border:0;border-radius:999px;background:#a8bf9b80}
input.draft-volume-control::-moz-range-thumb{box-sizing:border-box;width:44px;height:44px;border:6px solid transparent;border-radius:50%;background:#e3ecd4;background-clip:padding-box}
input.draft-volume-control:focus-visible{outline:2px solid #e3edcf;outline-offset:4px;border-radius:12px}

input.draft-volume-control:disabled{opacity:.45;cursor:default}#settings-dialog{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}

/* Room hearts are personal choices, separate from opening a room or shared reactions. */
.room-title-line{display:flex;align-items:center;gap:16px}.room-title-line h2{flex:1;min-width:0}
.room-like{display:inline-flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;min-height:46px;padding:11px;border:1px solid #e8e5dc62;border-radius:50%;background:#203a2eaa;color:#f1e4dc;cursor:pointer;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.room-like .icon{width:23px;height:23px;fill:transparent;stroke:currentColor;stroke-width:1.5}
.room-like[aria-pressed=true]{color:#f6c5cc;border-color:#e4a8b58c;background:#754754b3}.room-like[aria-pressed=true] .icon{fill:#e9b0be}
.room-like[aria-busy=true]{border-style:dashed}.room-like:hover{background:#405547}.room-like[aria-pressed=true]:hover{background:#845563}.room-like:focus-visible{outline:2px solid #f5dfdf;outline-offset:4px}
#places-dialog .place-row{position:relative;flex:0 0 auto;min-width:0;width:100%}
#places-dialog .place-row .place-choice{padding-right:61px}
#places-dialog .place-like{position:absolute;top:50%;right:9px;transform:translateY(-50%);background:#1d352bd9}
#places-dialog .place-like[aria-pressed=true]{background:#754754d9}
@media(max-width:380px){#places-dialog .place-row .place-choice{grid-template-columns:88px minmax(0,1fr);gap:10px;padding-right:59px}.room-title-line{gap:12px}}

/* A quiet invitation to keep Stillwater close, below the privacy note. */
.home-screen-card{display:flex;align-items:center;gap:17px;width:100%;max-width:420px;margin:28px auto 0;padding:21px 23px;border:1px solid #e3ebd239;border-radius:24px;background:#e3ecd410;box-shadow:inset 0 1px 0 #ffffff08;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);text-align:left}
.home-screen-mark{flex:0 0 36px;width:36px;height:36px;fill:none;stroke:#e4ecd8;stroke-width:1.15;stroke-linecap:round;stroke-linejoin:round}
.anime-retreat .home-screen-card p{margin:0;color:#e4ecdd;font-size:16px;line-height:1.4}
.home-screen-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;margin-top:13px;padding:10px 18px;border:1px solid #e3ebd265;border-radius:26px;background:#e3ecd41c;color:#f0f3e7;font:500 14px/1.35 var(--sans);cursor:pointer}
.home-screen-button:hover{background:#e3ecd430}.home-screen-button:focus-visible{outline:2px solid #e4edda;outline-offset:4px}.home-screen-button:disabled{cursor:default;opacity:.65}
.resort-evening .home-screen-card{background:#172c4366;border-color:#d7e3eb38}
.home-screen-panel{width:460px;max-width:calc(100% - 32px);overflow-y:auto}.home-screen-panel #close-home-screen{width:44px;min-height:44px}
.home-screen-panel p,.home-screen-panel li{font-size:16px;line-height:1.45;color:#e3eadc}.home-screen-panel #home-screen-intro{margin:0 0 16px}.home-screen-panel ol{margin:0;padding-left:23px}.home-screen-panel li+li{margin-top:11px}.home-screen-panel .home-screen-hint{font-size:14px;color:#c5d5be;margin:19px 0 0}.home-screen-done{display:flex;min-width:100px;margin-top:22px}
@media(max-width:380px){.home-screen-card{gap:13px;padding:19px 18px}.home-screen-mark{flex-basis:30px;width:30px;height:30px}.home-screen-button{padding-inline:15px}}

/* About is available before exploring and again at the foot of the resort. */
.entry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px}
.entry-actions .about-trigger{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:8px 3px;color:#eef2e6;font-size:14px;line-height:1.35;text-decoration:underline;text-underline-offset:5px;text-decoration-color:#e3ecd477}
.about-trigger:focus-visible{outline:2px solid #e4edda;outline-offset:4px;border-radius:5px}
#footer-about{min-height:44px;font-size:14px}
.about-panel{width:540px;max-width:calc(100% - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.about-panel .panel-close{width:44px;min-height:44px;flex-shrink:0}
.about-copy p{font-size:16px;line-height:1.45;color:#e0e9d8;margin:0 0 15px}.about-copy .about-intro{font-size:17px;color:#f0f3e7}.about-copy p:last-child{margin-bottom:0}
.about-done{margin-top:24px;min-height:46px}
