.app-shell{height:calc(var(--app-height,100dvh) - var(--save-status-space,0px))}
.sync-status{position:fixed;bottom:max(3px,env(safe-area-inset-bottom));left:0;right:0;margin:0;padding:2px 8px;color:var(--muted);background:var(--page);font-size:.72rem;line-height:18px;text-align:center;pointer-events:none;z-index:10001}
.sync-status[hidden]{display:none}
.retreat-page{height:100%;overflow-y:auto;padding:20px max(18px,calc((100% - 1040px)/2)) 40px;background:var(--bg,#f6f4ef);color:var(--ink,#20333a)}
body,.app-shell,.welcome-home,.game-page,.result-page,.daily-page,.shop-page{background:var(--page)!important;color:var(--ink)}
.appearance-button{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:12px;min-height:40px;padding:6px 10px;font-size:1rem;cursor:pointer}.welcome-brand{gap:6px}.overall-build{display:grid;gap:5px;text-align:left;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:9px 12px}.overall-build>span{display:flex;justify-content:space-between;gap:8px}.overall-build strong,.overall-build small{font-size:.875rem}.overall-build progress{width:100%;height:6px;accent-color:#3b997d}.home-daily-hook{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;min-height:46px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:9px 12px;text-align:left}.home-daily-hook strong{font-size:.95rem}.home-daily-hook span{font-size:.875rem}.palette-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.palette-options button{text-transform:capitalize;color:#172b36;border:2px solid #a5b5b8;min-height:54px}.palette-options [data-palette=cloud]{background:#eef3f8}.palette-options [data-palette=cream]{background:#f2eadc}.palette-options [data-palette=mint]{background:#e4efe8}.palette-options [data-palette=lavender]{background:#eee8f4}.palette-options [aria-pressed=true]{outline:3px solid var(--primary);outline-offset:2px}
html[data-night=true] .welcome-brand>span:first-child,html[data-night=true] .welcome-nav button span,html[data-night=true] .welcome-progress>span{color:#a5dec9}html[data-night=true] .chapter-complete-dialog,html[data-night=true] .daily-focus-card,html[data-night=true] .daily-streak-panel{background:var(--card)}
.welcome-home{gap:8px!important}.welcome-home .welcome-copy h1{font-size:1.4rem!important}.welcome-home .welcome-copy h1 br{display:none}.welcome-home .welcome-copy p{font-size:.9rem}.welcome-home .welcome-scene{min-height:65px!important}.welcome-home .welcome-next{padding:10px}.welcome-home .welcome-next p{margin:5px 0 8px}.welcome-home .welcome-next-game{margin-top:4px}
@media(max-height:760px){.welcome-home .welcome-scene,.welcome-home .welcome-copy h1,.welcome-home .welcome-next p,.welcome-home .welcome-next-game{display:none}.welcome-home{gap:7px!important}.welcome-home .welcome-nav button{min-height:46px}.welcome-home .welcome-copy p{margin:0}.welcome-home .overall-build{padding:8px 10px}}
@media(min-width:650px) and (max-height:600px){.welcome-home{display:flex;max-width:720px;overflow-y:auto}.welcome-home .welcome-brand{padding-right:0}.welcome-home .welcome-season{position:static}.welcome-home .welcome-scene{display:none}}
.welcome-home{box-sizing:border-box;height:100%;max-width:720px;margin:auto;padding:12px 18px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;overflow:hidden;color:var(--ink,#20333a)}
.welcome-home>*{margin:0;flex-shrink:0}.welcome-brand{display:flex;align-items:center;justify-content:space-between;min-height:36px;gap:8px}.welcome-brand>span:first-child{font-size:1.3rem;font-weight:850;color:#296c64}.welcome-sparks{font-weight:800;font-size:1rem;background:#fff1cb;color:#624620;padding:8px 12px;border-radius:24px}.welcome-sparks small{font-size:.875rem;font-weight:500}
.welcome-copy h1{font-size:clamp(1.45rem,5vw,2rem);line-height:1.15;letter-spacing:-.025em;margin:0 0 8px}.welcome-copy p{font-size:1rem;line-height:1.4;max-width:38ch;margin:0}
.welcome-scene{position:relative;flex:1 1 0;min-height:110px;max-height:360px;border-radius:20px;overflow:hidden;background:#284b44}.welcome-scene>img{width:100%;height:100%;object-fit:cover;object-position:50% 38%;display:block}.welcome-scene figcaption{position:absolute;inset:auto 0 0;display:flex;align-items:center;gap:8px;padding:30px 14px 12px;color:white;background:linear-gradient(transparent,#102f29ee);font-size:1rem;font-weight:750}.welcome-scene figcaption>img{width:36px;height:44px;object-fit:contain}.welcome-scene figcaption small{display:block;font-size:.875rem;font-weight:400;margin-top:3px}
.welcome-next{padding:14px;border:1px solid #709e8d40;border-radius:18px;background:var(--card,#fff)}.welcome-progress{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:.875rem}.welcome-progress strong{font-size:1rem}.welcome-progress>span{white-space:nowrap;color:#39766b}.welcome-dots{display:flex;gap:6px;margin:10px 0}.welcome-dots span{height:5px;flex:1;border-radius:4px;background:#8bada32f}.welcome-dots span.done{background:#36836d}.welcome-next p{font-size:.875rem;line-height:1.4;margin:8px 0 12px}.welcome-next .primary-button{width:100%;display:flex;align-items:center;justify-content:center;gap:14px;min-height:50px;background:#286d60;color:#fff;font-size:1.05rem;border-radius:14px;padding:12px}.welcome-next-game{display:block;text-align:center;font-size:.875rem;margin-top:8px}
.welcome-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-top:1px solid #7c9e9438;padding-top:8px}.welcome-nav button{background:transparent;color:inherit;border:0;padding:6px 2px;min-height:52px;font-size:.875rem;line-height:1.2;display:grid;justify-items:center;gap:4px}.welcome-nav button span{font-size:1.35rem;color:#367e6c}.welcome-season{display:flex;align-items:center;justify-content:center;gap:10px;font-size:.875rem;color:var(--muted,#626e69)}.welcome-season select{font-size:.875rem;padding:6px 10px;border:1px solid #7c9e9466;border-radius:8px;background:var(--card,#fff);color:inherit;min-height:36px}
@media(max-height:720px){.welcome-home{gap:8px;padding-top:8px}.welcome-copy h1{font-size:1.4rem;margin-bottom:4px}.welcome-copy p{font-size:.95rem}.welcome-next{padding:10px}.welcome-next p{margin:6px 0 8px}.welcome-scene{min-height:85px}.welcome-next-game{margin-top:5px}.welcome-season select{min-height:32px}.welcome-nav{padding-top:4px}}
@media(min-width:650px) and (max-height:600px){.welcome-home{max-width:1050px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:36px auto 1fr 56px;gap:8px 18px}.welcome-brand{grid-column:1/-1}.welcome-copy{grid-column:1;grid-row:2}.welcome-scene{grid-column:1;grid-row:3/5;height:100%;max-height:none;min-height:0}.welcome-next{grid-column:2;grid-row:2/4;align-self:center}.welcome-nav{grid-column:2;grid-row:4}.welcome-season{position:absolute;right:18px;top:12px}.welcome-brand{padding-right:210px}}
@media(max-width:350px),(max-height:530px) and (max-width:649px){.welcome-home{overflow-y:auto}.welcome-scene{min-height:85px;flex-shrink:0}}
.retreat-area-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.retreat-area-cards button{background:var(--card,#fff);color:inherit;border:1px solid #819b9666;padding:8px;border-radius:14px;overflow:hidden;text-align:left}.retreat-area-cards img,.retreat-empty{display:block;width:100%;height:88px;object-fit:cover;border-radius:8px}.retreat-empty{background:#2b7a7514;text-align:center;line-height:88px;font-size:2rem;color:#367e79}.retreat-area-cards strong{display:block;text-transform:capitalize;font-size:1rem;margin-top:8px}.retreat-area-cards small{display:block;font-size:.875rem;line-height:1.35;margin-top:4px}
.retreat-page h1{font-size:clamp(1.8rem,4vw,2.6rem);margin:14px 0 6px}.retreat-page p{font-size:1rem;line-height:1.55}.retreat-header,.retreat-header nav{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.retreat-header>.text-button{font-size:1.35rem;font-weight:800}.retreat-header nav .text-button{font-size:1rem}
.retreat-view{position:relative;height:clamp(220px,36vh,420px);border:8px solid #e7ddc8;border-radius:20px;overflow:hidden;margin:18px 0;background:#254a49}.retreat-view>img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}.retreat-caption{position:absolute;inset:auto 0 0;padding:38px 20px 18px;background:linear-gradient(transparent,#102827ed);color:white;display:grid;gap:5px}.retreat-caption>span{font-size:.8rem;letter-spacing:.1em}.retreat-caption strong{font-size:1.45rem}.retreat-caption small{font-size:.9rem}.frame-walnut{border-color:#654335!important}.frame-midnight{border-color:#182b43!important}
.retreat-area-tabs,.retreat-cta{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}.retreat-area-tabs button{flex:1;text-transform:capitalize}.retreat-area-tabs [aria-pressed=true]{outline:3px solid #2d827f;outline-offset:2px}.retreat-cta>*{flex:1}.retreat-catalog,.photo-collection{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.retreat-catalog article{border:1px solid #8caaa566;border-radius:18px;overflow:hidden;padding:12px}.retreat-catalog article>img{width:100%;height:180px;object-fit:cover;border-radius:10px}.retreat-catalog h2{font-size:1.15rem}.retreat-catalog button{width:100%;font-size:1rem;white-space:normal}.retreat-page button:disabled{opacity:.6;cursor:default}.retreat-puzzles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.retreat-puzzle{display:flex;align-items:center;text-align:left;gap:12px;border:1px solid #8caaa577;background:var(--card,#fff);color:inherit;border-radius:16px;padding:18px;min-height:100px}.retreat-puzzle>span:first-child{font-size:1.8rem;color:#367e79}.retreat-puzzle strong,.retreat-puzzle small{display:block}.retreat-puzzle strong{font-size:1.05rem}.retreat-puzzle small{font-size:.9rem;margin-top:6px}.retreat-puzzle.complete{border:2px solid #3c9381}.retreat-intro{display:flex;align-items:center;gap:12px;background:#2b7a7514;border-radius:16px;padding:10px 16px}.retreat-intro img{width:52px;height:60px;object-fit:contain}.retreat-intro p{margin:0}.retreat-picker{display:flex;gap:12px;align-items:center;margin:18px 0}.retreat-picker select{min-width:0;flex:1;padding:12px;border-radius:12px;font-size:1rem;background:var(--card,#fff);color:inherit}.photo-card{padding:0;border:6px solid #e7ddc8;border-radius:14px;overflow:hidden;background:#fff;color:#20333a}.photo-card img{display:block;width:100%;height:210px;object-fit:cover}.photo-card span{display:block;padding:10px;font-size:1rem}.photo-locked{min-height:170px;border:1px dashed #819b96;border-radius:14px;display:grid;place-content:center;text-align:center;gap:12px}.photo-locked span{font-size:2rem}.photo-locked small{font-size:.9rem}.retreat-photo-full{width:100%;max-height:70vh;object-fit:contain;border-radius:14px}.retreat-status{padding:12px;border-left:4px solid #2b8177;line-height:1.5}.retreat-page .season-grid{margin:16px 0}.retreat-page .season-card{min-height:160px}.retreat-page .daily-hero-card{margin:16px 0}
@media(max-width:600px){.retreat-page{padding:14px 14px 28px}.retreat-header{gap:6px}.retreat-header nav{gap:8px}.retreat-view{height:240px}.retreat-catalog{grid-template-columns:1fr}.retreat-catalog article{display:grid;grid-template-columns:100px 1fr;gap:8px 12px}.retreat-catalog article>img{grid-row:span 3;height:140px}.retreat-catalog h2,.retreat-catalog p{margin:0}.photo-collection{grid-template-columns:repeat(2,minmax(0,1fr))}.retreat-puzzle{padding:12px;gap:8px;min-height:94px}.retreat-puzzle strong{font-size:1rem}.retreat-puzzle small{font-size:.875rem}.retreat-cta{flex-direction:column}.photo-card img{height:165px}}
@media(prefers-reduced-motion:reduce){.retreat-page *{animation:none!important;transition:none!important}}
/* Gameplay navigation fits the visual viewport; shrink scenery before controls. */
.compact-chapter,.compact-home{box-sizing:border-box;height:100%;min-height:0;padding: max(8px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px;overflow:hidden}
.compact-chapter>* , .compact-home>*{flex-shrink:0;margin:0!important}
.compact-chapter .retreat-header,.compact-home .retreat-header{min-height:40px;flex-wrap:nowrap;gap:6px}
.compact-chapter .retreat-header nav,.compact-home .retreat-header nav{flex-wrap:nowrap;gap:6px}
.compact-chapter .retreat-header .text-button,.compact-home .retreat-header .text-button{padding:6px;font-size:.875rem;min-height:40px}
.compact-chapter .retreat-picker{gap:8px;min-height:42px}
.compact-chapter .retreat-picker select{padding:8px;min-height:42px}
.compact-chapter .compact-chapter-title{display:flex;align-items:center;gap:8px;font-size:clamp(1.1rem,2.8vw,1.65rem);line-height:1.15}
.compact-chapter-title img{width:30px;height:34px;object-fit:contain}
.compact-chapter .chapter-progress{font-size:.875rem;line-height:1.25}
.compact-chapter .retreat-view{flex:1 1 0;min-height:0;height:auto;max-height:42vh;border-width:4px;border-radius:12px}
.compact-chapter .retreat-puzzles{gap:8px}
.compact-chapter .retreat-puzzle{min-height:68px;padding:10px;gap:8px}
.compact-chapter .retreat-puzzle strong{font-size:1rem;line-height:1.2}
.compact-chapter .retreat-puzzle small{font-size:.875rem;margin-top:3px}
.compact-chapter .retreat-cta{flex-direction:row;gap:8px}
.compact-chapter .retreat-cta button{min-height:44px;padding:10px;font-size:.9rem}
.compact-chapter>.text-button{min-height:40px;padding:6px}
.compact-home>h1{font-size:1.3rem}.compact-home>p,.compact-home>.retreat-intro,.compact-home>.retreat-area-cards,.compact-home>h2{display:none}
.compact-home .retreat-view{flex:1 1 0;min-height:60px;height:auto;max-height:none;border-width:4px}
.compact-home .retreat-caption{padding:18px 12px 10px}.compact-home .retreat-caption strong{font-size:1.1rem}.compact-home .retreat-caption>span{display:none}
.compact-home .retreat-cta{flex-direction:row;gap:8px}.compact-home .retreat-cta button{min-height:44px;font-size:.9rem;padding:10px}
.compact-home .daily-hero-card{min-height:64px;padding:10px;gap:10px}.compact-home .daily-hero-icon{font-size:1.2rem}.compact-home .daily-hero-card small{font-size:.875rem}
.compact-home .season-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;flex-shrink:0}
.compact-home .season-card{min-height:66px;height:66px;padding:8px;border-radius:10px}.compact-home .season-card-copy{position:relative;inset:auto;padding:0}.compact-home .season-card-copy b{font-size:.9rem}.compact-home .season-card-copy span{display:none}
.compact-home>.text-button{min-height:36px;padding:6px;font-size:.9rem}
@media(min-width:700px) and (min-height:650px){.compact-chapter,.compact-home{padding-left:24px;padding-right:24px;gap:12px}.compact-chapter .retreat-puzzle{min-height:90px}.compact-home .retreat-area-cards{display:grid}.compact-home .retreat-area-cards img,.compact-home .retreat-empty{height:70px;line-height:70px}}
@media(max-height:500px) and (min-width:600px){.compact-chapter{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:40px 42px 34px 22px minmax(0,1fr) 44px;gap:6px 12px}.compact-chapter .retreat-header{grid-column:1/-1}.compact-chapter .retreat-picker{grid-column:1}.compact-chapter .compact-chapter-title{grid-column:1;grid-row:3}.compact-chapter .chapter-progress{grid-column:1;grid-row:4}.compact-chapter .retreat-view{grid-column:1;grid-row:5/7;max-height:none;height:100%}.compact-chapter .retreat-puzzles{grid-column:2;grid-row:2/6;grid-template-rows:1fr 1fr}.compact-chapter .retreat-cta{grid-column:2;grid-row:6}.compact-chapter>.text-button{display:none}.compact-home{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:40px minmax(60px,1fr) 64px 44px 36px;gap:6px 12px}.compact-home .retreat-header{grid-column:1/-1}.compact-home>h1{display:none}.compact-home .retreat-view{grid-column:1;grid-row:2/5;height:100%}.compact-home .retreat-cta{grid-column:2;grid-row:4}.compact-home .daily-hero-card{grid-column:2;grid-row:3}.compact-home .season-grid{grid-column:2;grid-row:2;align-self:end}.compact-home>.text-button{grid-row:5}}
/* Preserve enlarged-text access on exceptionally small or zoomed viewports. */
/* Keep the scenic invitation visible on phones, including short embedded views. */
.welcome-home{gap:9px!important;padding:10px 14px max(10px,env(safe-area-inset-bottom));max-width:760px;overflow:hidden}
.welcome-home .welcome-copy{display:none}
.welcome-home .welcome-scene{display:block!important;flex:1 1 0;min-height:140px!important;max-height:none;border-radius:22px;box-shadow:0 8px 24px #173d3420}
.welcome-home .welcome-scene>img{object-position:50% 42%}
.welcome-home .welcome-scene figcaption{padding:40px 16px 14px;gap:12px;background:linear-gradient(transparent,#102f29ed);font-size:1.35rem;line-height:1.15}
.welcome-home .welcome-scene figcaption>img{width:65px;height:72px;filter:drop-shadow(0 3px 12px #ffde7d66);animation:lumi-welcome 5s ease-in-out infinite}
.welcome-home .welcome-scene figcaption small{font-size:.875rem;line-height:1.4;margin-top:6px}
.welcome-home .welcome-next{border:0;background:transparent;padding:0 2px;box-shadow:none}
.welcome-home .welcome-next p,.welcome-home .welcome-next-game{display:none}
.welcome-home .welcome-progress{padding:0 2px}.welcome-home .welcome-progress strong{font-size:.95rem}
.welcome-home .welcome-dots{margin:7px 0}.welcome-home .welcome-dots span{height:4px}
.welcome-home .welcome-next .primary-button{background:linear-gradient(120deg,#287d68,#175c59);min-height:50px;border-radius:16px;box-shadow:0 5px 14px #216e6330}
.welcome-home .overall-build{padding:9px 12px;border:0;background:var(--card);border-radius:14px;gap:4px}.welcome-home .overall-build progress{height:4px}.welcome-home .overall-build>small{color:var(--muted)}
.welcome-home .home-daily-hook{background:linear-gradient(110deg,#ffe5aa,#fff1d8);color:#563817;border:1px solid #e5bf7855;box-shadow:0 3px 10px #c58a2820;border-radius:15px;padding:10px 12px;min-height:48px}
.welcome-home .welcome-nav{border-top:0;padding-top:0}.welcome-home .welcome-nav button{min-height:48px;padding:4px 2px}.welcome-home .welcome-nav button span{font-size:1.25rem}
.welcome-home .welcome-season{font-size:.875rem}.welcome-home .welcome-season select{min-height:30px;padding:4px 8px}
html[data-night=true] .welcome-home .home-daily-hook{background:linear-gradient(110deg,#493d29,#302d26);color:#ffe0a3}
@keyframes lumi-welcome{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.welcome-home .welcome-scene figcaption>img{animation:none}}
@media(max-height:650px){.welcome-home{gap:6px!important}.welcome-home .welcome-scene{min-height:100px!important}.welcome-home .welcome-scene figcaption{font-size:1.1rem;padding:24px 12px 10px}.welcome-home .welcome-scene figcaption>img{width:46px;height:52px}.welcome-home .overall-build{padding:6px 10px}.welcome-home .welcome-brand{min-height:36px}.welcome-home .welcome-next .primary-button{min-height:46px;padding:9px}.welcome-home .welcome-nav button{min-height:42px}}
@media(min-width:650px) and (max-height:600px){.welcome-home{max-width:1100px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:40px 1fr auto auto auto;gap:8px 16px!important}.welcome-home .welcome-brand{grid-column:1/-1}.welcome-home .welcome-scene{grid-column:1;grid-row:2/6;height:100%}.welcome-home .welcome-next{grid-column:2;grid-row:2;align-self:center}.welcome-home .overall-build{grid-column:2;grid-row:3}.welcome-home .home-daily-hook{grid-column:2;grid-row:4}.welcome-home .welcome-nav{grid-column:2;grid-row:5}.welcome-home .welcome-season{position:absolute;right:18px;top:12px}.welcome-home .welcome-brand{padding-right:205px}}
@media(max-width:350px),(max-height:530px) and (max-width:649px){.welcome-home{overflow-y:auto}.welcome-home .welcome-scene{flex:none;height:120px}}
@media(max-width:350px),(max-height:350px){.compact-chapter,.compact-home{overflow-y:auto}.compact-chapter .retreat-view{display:none}.compact-chapter .retreat-header,.compact-home .retreat-header{flex-wrap:wrap}}
/* One photograph, five connected areas; overlays lift as chapters complete. */
.property-scene{position:relative;isolation:isolate;aspect-ratio:3/2;overflow:hidden;border-radius:20px;background:#0b9fb2;min-height:130px}
.property-scene>img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.12) contrast(1.03)}
.property-regions{position:absolute;inset:0;pointer-events:none}
.property-region{position:absolute;display:flex;align-items:center;justify-content:center;background:#164f684d;backdrop-filter:blur(3px);border:1px solid #ffffff55;transition:opacity .8s ease}
.property-region.revealed{opacity:0}.property-region>span{display:grid;place-items:center;background:#123e51e8;color:white;border-radius:12px;padding:7px 10px;font-weight:700;font-size:1rem;box-shadow:0 2px 10px #1238}.property-region small{font-size:.875rem;font-weight:500;text-align:center}
.region-0{left:0;top:48%;width:34%;height:52%}.region-1{left:0;top:15%;width:52%;height:33%}.region-2{left:60%;top:48%;width:40%;height:52%}.region-3{left:34%;top:48%;width:26%;height:52%}.region-4{left:52%;top:15%;width:48%;height:33%}
.property-finished .property-regions{display:none}.property-finished{animation:property-reveal .9s ease-out}.property-home .property-scene{height:100%;border-radius:0;aspect-ratio:auto}.property-home .property-scene>img{object-fit:cover}.property-home .property-region small{display:none}.property-home figcaption{pointer-events:none}
.property-page{max-width:850px;margin:auto}.property-page>p{font-size:1rem}.property-stages{list-style:none;padding:0;display:flex;gap:8px;flex-wrap:wrap}.property-stages li{flex:1 1 125px}.property-stages button{display:grid;gap:5px;width:100%;height:100%;padding:12px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font-size:1rem}.property-stages small{font-size:.875rem}.property-stages .built button{border-color:#1ca88b}.property-page>.primary-button{width:100%;margin-bottom:10px}.compact-chapter>.property-scene{flex:1;min-height:120px;max-height:38vh;width:100%;aspect-ratio:auto}.chapter-complete-dialog .property-scene{max-height:32vh;width:100%;margin:12px 0}.chapter-complete-dialog{max-height:95dvh;overflow-y:auto}
@keyframes property-reveal{from{opacity:.4;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.property-finished{animation:none}.property-region{transition:none}}
@media(max-height:500px) and (min-width:600px){.compact-chapter>.property-scene{grid-column:1;grid-row:5/7;height:100%;max-height:none}}
/* v50: whole portrait photographs replace the chapter-region overlays. */
.property-scene,.property-home .property-scene,.compact-chapter>.property-scene{aspect-ratio:9/16;height:auto;min-height:0;max-height:none;width:100%;border-radius:0;animation:none;flex:none}
.property-scene>img,.property-home .property-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:none;transition:none}
.property-page{padding:20px 18px 40px;max-width:700px}
.property-page>.property-scene{max-width:420px;margin:16px auto}
.property-phase-label{display:block;font-size:1rem;margin-top:14px}
.property-seasons{display:flex;justify-content:center;gap:8px;margin:14px 0}
.property-seasons button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;flex:1;max-width:110px;padding:10px 4px;font-size:.875rem;text-transform:capitalize}
.property-seasons button>span:first-child{font-size:1.5rem}.property-seasons [aria-pressed=true]{outline:3px solid #329f89;outline-offset:2px}
.property-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.property-choice-grid article{padding:15px;background:var(--card);border:1px solid var(--line);border-radius:16px;min-width:0}
.property-choice-grid h3{font-size:1.1rem;margin:0}.property-choice-grid button{width:100%;white-space:normal;font-size:.875rem}
.property-debug{padding:16px;margin:20px 0;border:1px dashed var(--muted);border-radius:12px;font-size:1rem}
.property-debug summary{cursor:pointer}.property-debug label{display:grid;gap:6px;margin:12px 0}.property-debug select{min-width:0;width:100%;min-height:44px;font:inherit;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:8px}
.welcome-home{display:flex!important;overflow-y:auto;max-width:760px}.welcome-home>*{flex-shrink:0}.welcome-home .welcome-brand{padding-right:0}.welcome-home .welcome-season{position:static}
.welcome-home .welcome-scene.property-home{flex:none;aspect-ratio:9/16;width:min(100%,max(180px,calc((100dvh - 380px)*.5625)));height:auto;min-height:0!important;max-height:none;margin:0 auto;border-radius:16px}
.welcome-home .welcome-scene figcaption{font-size:1rem;padding:36px 10px 12px;gap:6px}.welcome-home .welcome-scene figcaption>img{width:34px;height:40px}.welcome-home .welcome-scene figcaption small{font-size:.875rem}
.compact-chapter>.property-scene{width:min(100%,calc(30dvh*.5625));margin:auto;flex-shrink:0}
.property-reveal-backdrop{position:fixed;inset:0;z-index:1000;background:#071e2de8;display:grid;place-items:center;padding:12px;overflow:auto}
.property-reveal{width:min(100%,470px);max-height:calc(100dvh - 24px);overflow-y:auto;background:var(--card);color:var(--ink);border-radius:22px;padding:14px;box-shadow:0 20px 80px #0007;text-align:center}
.property-reveal-art{position:relative;overflow:hidden;width:min(100%,calc(48dvh*.5625));margin:0 auto;background:#ffe7a0;border-radius:12px}
.property-reveal-copy{display:flex;align-items:center;gap:12px;text-align:left;margin:16px 0}.property-reveal-copy>img{width:60px;height:70px;object-fit:contain}.property-reveal h2{font-size:1.3rem;margin:5px 0}.property-reveal p{font-size:1rem;line-height:1.45;margin:6px 0 12px}.property-reveal>.primary-button{width:100%;white-space:normal}
.spark-wipe{position:absolute;inset:-10%;display:grid;place-items:center;background:linear-gradient(105deg,#fff4c0,#ffcf56 50%,#fff6d8);color:#fff;font-size:80px;pointer-events:none}
.spark-particles{position:absolute;inset:0;pointer-events:none;overflow:hidden}.spark-particles i{position:absolute;left:50%;top:50%;font-size:28px;color:#fff9c7;font-style:normal;text-shadow:0 0 9px #ffbc2a;opacity:0}
@keyframes estate-spark-wipe{0%,20%{transform:translateX(0) skewX(-8deg)}100%{transform:translateX(125%) skewX(-8deg)}}
@keyframes estate-spark-burst{0%{transform:rotate(var(--angle)) translateX(0) scale(.2);opacity:1}100%{transform:rotate(var(--angle)) translateX(190px) scale(.6);opacity:0}}
@media(max-width:380px){.property-choice-grid{grid-template-columns:1fr}.property-page{padding:14px 12px 30px}.property-seasons{gap:5px}}
@media(prefers-reduced-motion:reduce){.spark-wipe,.spark-particles{display:none}}

.reveal-ready .spark-wipe{animation:estate-spark-wipe .65s cubic-bezier(.2,.8,.2,1) .15s both}.reveal-ready .spark-particles i{animation:estate-spark-burst .8s ease-out var(--delay) both}
/* SeasonSpark v51: a single home for daily play, free puzzles and property building. */
.spark-home{box-sizing:border-box;height:100%;overflow-y:auto;padding:14px max(14px,calc((100% - 1080px)/2)) max(24px,env(safe-area-inset-bottom));color:var(--ink);background:var(--page)}
.spark-home-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.spark-home-brand,.spark-home-actions{display:flex;align-items:center;gap:10px}
.spark-home-brand img{width:54px;height:54px;border-radius:15px;object-fit:cover;box-shadow:0 3px 14px #15263330}
.spark-home-brand span{font-size:clamp(1.35rem,4vw,1.9rem);font-weight:800;letter-spacing:-.035em}
.spark-home-actions .appearance-button{position:static;min-width:48px;min-height:44px}
.spark-home-content{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr);align-items:start;gap:22px}
.spark-home-hero{position:relative;overflow:hidden;border-radius:24px;margin:0;min-height:340px;background:#1a3444;box-shadow:0 12px 36px #1d3d492b}
.spark-home-hero>img{width:100%;height:100%;min-height:340px;max-height:min(74dvh,760px);aspect-ratio:1;object-fit:cover;display:block}
.spark-home-hero figcaption{position:absolute;left:0;right:0;bottom:0;padding:75px 24px 22px;background:linear-gradient(transparent,#081e2fdc);color:white}
.spark-home-hero h1{font-size:clamp(1.35rem,3vw,2.25rem);line-height:1.1;margin:0 0 8px;max-width:450px}
.spark-home-hero p{font-size:1rem;line-height:1.4;margin:0;max-width:430px}
.spark-home-main{display:grid;gap:18px;min-width:0}
.spark-home-cta{display:grid;gap:10px}.spark-home-cta button{text-align:left;display:grid;gap:5px;border-radius:17px;min-height:76px;padding:13px 18px;font-size:1.15rem;font-weight:750;white-space:normal}
.spark-home-cta button small{font-size:.9rem;font-weight:500;line-height:1.25}
.spark-home-cta .primary-button{background:linear-gradient(120deg,#0a797a,#136158);color:white;box-shadow:0 5px 15px #0b6e5f33}
.spark-home-cta .secondary-button{background:var(--card);color:var(--ink);border:1px solid var(--line)}
.spark-home-play{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:15px}
.spark-home-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.spark-home-section-title h2{font-size:1.15rem;margin:0}.spark-home-section-title button{font-size:.95rem}
.spark-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.spark-game-grid button{border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);min-height:82px;display:grid;align-content:center;justify-items:start;text-align:left;padding:10px 13px;cursor:pointer;line-height:1.2}.spark-game-grid button>span{font-size:1.4rem}.spark-game-grid strong{font-size:1rem}.spark-game-grid small{font-size:.8rem;color:var(--muted)}
.spark-game-grid button:hover,.spark-game-grid button:focus-visible{outline:2px solid #1d8f86;outline-offset:1px}
.spark-home-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.875rem;color:var(--muted)}
.property-page>h1{margin-top:12px}.property-page .property-choices{margin-top:28px}.property-page .property-choice-grid article:first-child{border-color:#1e9c8a}
.shop-home-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.result-page>.text-button[data-action="landing"]{display:block;margin:10px auto;min-height:44px}
@media(max-width:790px){.spark-home-content{grid-template-columns:1fr;gap:13px}.spark-home-hero{min-height:0}.spark-home-hero>img{height:clamp(270px,42dvh,420px);min-height:0;max-height:none;aspect-ratio:auto;object-position:center 46%}.spark-home-hero figcaption{padding:50px 16px 14px}.spark-home-hero h1{font-size:1.35rem}.spark-home-hero p{font-size:.9rem}.spark-home-main{gap:12px}.spark-home-cta{grid-template-columns:1fr 1fr}.spark-home-cta button{min-height:68px;font-size:1rem;padding:10px 12px}.spark-home-cta button small{font-size:.8rem}}
@media(max-width:420px){.spark-home-brand img{width:44px;height:44px}.spark-home-brand span{font-size:1.25rem}.spark-home-header .spark-pill{font-size:.9rem}.spark-home-actions{gap:5px}.spark-home-cta{grid-template-columns:1fr 1fr}.spark-home-play{padding:12px}.spark-game-grid button{min-height:72px}.spark-home-bottom{font-size:.8rem}}
@media(max-height:670px) and (max-width:790px){.spark-home-hero>img{height:clamp(220px,34dvh,280px)}.spark-home-hero figcaption p{display:none}.spark-home-cta button{min-height:56px}.spark-game-grid button{min-height:64px}}

.property-browse{display:inline-flex;align-items:center;min-height:44px;margin:3px 0 7px;font-size:.95rem}.property-choices{scroll-margin-top:12px}

/* Phone-sized retreat flow: choose a property before opening its portrait. */
.property-selector,.property-page,.display-settings{box-sizing:border-box;height:100%;min-height:0;overflow:hidden;padding:12px max(14px,calc((100% - 640px)/2)) max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px}
/* Only the property catalog scrolls. Gameplay, property details and settings retain their viewport layouts. */
.property-selector{overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.property-selector>*,.property-page>*,.display-settings>*{flex-shrink:0;margin-top:0;margin-bottom:0}
.property-selector .retreat-header,.property-page .retreat-header,.display-settings .retreat-header{min-height:42px;flex-wrap:nowrap}
.property-selector .retreat-header nav,.property-page .retreat-header nav,.display-settings .retreat-header nav{flex-wrap:nowrap;gap:7px}
.property-selector .retreat-header button,.property-page .retreat-header button,.display-settings .retreat-header button{min-height:40px;padding:6px;font-size:.9rem}
.property-selector-heading h1{font-size:1.55rem;margin:0 0 3px}.property-selector-heading p{font-size:.88rem;line-height:1.25;margin:0;color:var(--muted)}
/* Content-sized rows keep portrait previews readable as the property catalog grows. */
.property-selector .property-choice-grid{flex:0 0 auto;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(232px,auto);gap:12px}
@media(min-width:700px) and (min-height:650px){.property-selector .property-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.property-choice-card{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;padding:0;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:15px;text-align:left;cursor:pointer}
.property-choice-card:not(:disabled){border-color:#2a9984}.property-choice-card:disabled{opacity:.72;cursor:default}
.property-choice-photo{position:relative;display:grid;place-items:center;flex:1 1 0;min-height:0;width:100%;overflow:hidden;background:linear-gradient(135deg,#dbe9e4,#e8dff2);font-size:2rem;color:#697f83}
.property-choice-photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.property-choice-info{display:grid;gap:2px;padding:8px 10px;min-height:50px}.property-choice-info strong{font-size:.89rem;line-height:1.1}.property-choice-info small{font-size:.72rem;color:var(--muted)}
.property-selector .property-debug,.property-page .property-debug{margin:0;padding:6px 9px;font-size:.8rem;max-height:42px;overflow:auto}.property-selector .property-debug[open],.property-page .property-debug[open]{position:fixed;inset:auto 12px 12px;z-index:20;max-height:min(65dvh,470px);background:var(--card);box-shadow:0 8px 32px #0005}
.property-detail-heading{display:grid;gap:2px}.property-detail-heading .text-button{justify-self:start;padding:0!important;min-height:32px!important}.property-detail-heading h1{font-size:1.35rem;line-height:1.1;margin:0}.property-detail-heading .property-phase-label{font-size:.85rem;margin:0;color:var(--muted)}
.property-page>.property-scene{flex:1 1 0;min-height:0;height:100%;width:auto;max-width:100%;max-height:none;align-self:center;margin:0;aspect-ratio:9/16;border-radius:13px}
.property-page>.property-scene img{object-position:center}.property-page .property-seasons{margin:0;gap:6px}
.property-page .property-seasons button{padding:5px 2px;min-height:44px;font-size:.75rem;gap:0}.property-page .property-seasons button>span:first-child{font-size:1.2rem}.property-page .property-seasons small{display:none}
.property-page>.primary-button{width:100%;min-height:46px;margin:0}
.display-settings h1{font-size:1.5rem;margin:0}.display-settings h2{font-size:1.05rem;margin:0}.display-settings p{font-size:.82rem;line-height:1.3;margin:0}.display-settings .retreat-area-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0}.display-settings .retreat-area-tabs button{min-height:46px;padding:6px}
.display-settings .palette-options{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:0}.display-settings .palette-options button{min-height:48px}.display-settings>.primary-button{min-height:46px;margin-top:auto}

/* The reveal stays inside the visible phone area and keeps copy off the image. */
.property-reveal-backdrop{overflow:hidden;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}
.property-reveal{box-sizing:border-box;width:min(100%,520px);max-height:calc(100dvh - 28px);overflow:hidden;display:grid;grid-template-columns:minmax(0,38%) minmax(0,1fr);gap:12px;align-items:center;padding:12px;background:var(--card);color:var(--ink);text-align:left}
.property-reveal-art{width:100%;max-width:none;margin:0;background:var(--card);border-radius:12px}.property-reveal-art .property-scene{width:100%;aspect-ratio:9/16}
.property-reveal-content{display:flex;flex-direction:column;justify-content:center;gap:10px;min-width:0;color:var(--ink)}
.property-reveal-copy{display:block;margin:0;text-align:left}.property-reveal-copy>img{width:45px;height:52px;margin-bottom:4px}.property-reveal-copy small{display:block;color:var(--muted);font-weight:800;font-size:.8rem}
.property-reveal h2{color:var(--ink);font-size:clamp(1.05rem,4.8vw,1.4rem);line-height:1.1;margin:5px 0}.property-reveal p{color:var(--ink);font-size:.9rem;line-height:1.35;margin:5px 0}
.property-reveal .property-season-unlock{font-size:.78rem}.property-reveal-content>.primary-button{width:100%;min-height:44px;padding:8px;font-size:.85rem;white-space:normal}

/* Let imagery yield room to controls on shorter phones. */
.spark-home{display:flex;flex-direction:column;overflow:hidden;padding:10px 12px max(10px,env(safe-area-inset-bottom))}
.spark-home-header{flex:none;margin-bottom:8px}.spark-home-content{min-height:0;flex:1 1 0}
@media(max-width:790px){.spark-home-content{display:flex;flex-direction:column;gap:8px}.spark-home-hero{flex:1 1 0;min-height:0}.spark-home-hero>img{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto}.spark-home-main{flex:none;gap:8px}.spark-home-cta{gap:7px}.spark-home-cta button{min-height:54px;padding:7px 10px}.spark-home-play{padding:9px}.spark-home-section-title{margin-bottom:5px}.spark-game-grid{gap:6px}.spark-game-grid button{min-height:55px;padding:5px 9px}.spark-game-grid button>span{font-size:1.05rem}.spark-game-grid strong{font-size:.85rem}.spark-game-grid small{display:none}.spark-home-bottom{min-height:30px}.spark-home-hero figcaption{padding:35px 12px 10px}.spark-home-hero h1{font-size:1.12rem}.spark-home-hero p{font-size:.78rem}}
@media(max-width:380px){.property-selector .property-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.property-selector,.property-page,.display-settings{gap:7px;padding-inline:10px}.property-choice-info{padding:6px}.property-choice-info strong{font-size:.82rem}.property-reveal{gap:8px;padding:9px}.property-reveal p{font-size:.82rem}.spark-home-hero p{display:none}}
@media(max-height:600px) and (max-width:790px){.spark-home{gap:0}.spark-home-header{margin-bottom:5px}.spark-home-brand img{width:35px;height:35px}.spark-home-hero figcaption p{display:none}.spark-home-cta button{min-height:46px;font-size:.85rem}.spark-home-cta button small{display:none}.spark-home-play{padding:6px}.spark-game-grid button{min-height:42px}.spark-home-bottom{min-height:25px}.property-reveal{max-width:460px}.property-detail-heading h1{font-size:1.15rem}.property-page .property-seasons button{min-height:36px}}
@media(max-height:420px){.property-reveal-art{width:min(100%,calc(55dvh * .5625));justify-self:center}.property-reveal-copy>img{display:none}}

/* Endless Mix has one landing entry and its own four-puzzle picker. */
.spark-home-mix{display:grid;grid-template-columns:36px 1fr auto;grid-template-rows:auto auto;align-items:center;gap:1px 9px;width:100%;min-height:66px;padding:9px 13px;border:1px solid var(--line);border-radius:17px;background:var(--card);color:var(--ink);text-align:left;cursor:pointer}
.spark-home-mix>span:first-child{grid-row:1/3;font-size:1.9rem;color:#287d68}.spark-home-mix strong{font-size:1.05rem}.spark-home-mix small{grid-column:2;font-size:.8rem;color:var(--muted)}.spark-home-mix>span:last-child{grid-column:3;grid-row:1/3;font-size:1.3rem;color:#287d68}
.mix-page{box-sizing:border-box;width:min(100%,640px);height:100%;min-height:0;margin:auto;padding:12px 14px max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;color:var(--ink);background:var(--page);overflow:hidden}
.mix-page .retreat-header{min-height:42px;flex:none}.mix-page .retreat-header button{min-height:40px;padding:6px;font-size:.95rem}
.mix-intro{flex:none}.mix-intro h1{font-size:clamp(1.55rem,5vw,2rem);margin:0 0 5px}.mix-intro p{font-size:.9rem;line-height:1.3;color:var(--muted);margin:0}
.mix-grid{min-height:0;flex:1 1 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
.mix-card{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;min-height:0;padding:clamp(10px,4vw,20px);border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--ink);text-align:left;cursor:pointer}
.mix-card>span{font-size:clamp(1.7rem,8vw,3.3rem);line-height:1.1}.mix-card strong{font-size:clamp(.95rem,4vw,1.25rem);line-height:1.1;margin-top:9px}.mix-card small{font-size:.8rem;color:var(--muted);margin-top:7px}.mix-card:focus-visible,.spark-home-mix:focus-visible{outline:3px solid #287d68;outline-offset:2px}
@media(max-width:790px){.spark-home-mix{min-height:58px;padding:7px 11px}}
@media(max-height:600px){.mix-page{gap:8px;padding-block:8px}.mix-intro h1{font-size:1.4rem}.mix-intro p{font-size:.8rem}.mix-grid{gap:7px}.mix-card strong{margin-top:4px}.mix-card small{margin-top:3px}.spark-home-mix{min-height:48px}.spark-home-mix small{display:none}}

/* Fit the whole portrait in the property picker; use a soft fill behind it. */
.property-choice-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;z-index:1}
.property-choice-photo img.property-choice-backdrop{z-index:0;object-fit:cover;filter:blur(13px) brightness(.7);transform:scale(1.08)}

/* Seven build phases remain visible together while future views stay obscured. */
.property-phase-gallery{list-style:none;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;flex:none;min-height:0;margin:0;padding:0}
.property-phase-gallery li{min-width:0;min-height:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--card);color:var(--ink)}
.property-phase-gallery li.current{outline:2px solid #30a388;outline-offset:1px}
.property-phase-gallery .phase-thumb{position:relative;display:block;width:100%;height:clamp(38px,7dvh,65px);overflow:hidden;background:#253e45}
.property-phase-gallery .phase-thumb img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.property-phase-gallery .locked .phase-thumb img{filter:blur(8px) brightness(.56);transform:scale(1.2)}
.property-phase-gallery .phase-thumb span{position:absolute;right:2px;bottom:2px;display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#123a42d9;color:white;font-size:9px;line-height:1}
.property-phase-gallery .phase-thumb .phase-number{top:4px;left:4px;right:auto;bottom:auto;min-width:24px;width:auto;height:22px;padding:0 4px;border-radius:6px;font-size:.73rem;font-weight:800;line-height:1}
.property-phase-gallery li.current .phase-thumb span{background:#198467}
.property-phase-gallery .phase-label{display:block;min-height:2.4em;padding:4px 6px;font-size:.73rem;line-height:1.2;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none}
@media(max-width:380px){.property-phase-gallery{gap:4px}.property-phase-gallery .phase-label{font-size:.72rem}}
@media(max-height:600px){.property-page{gap:6px}.property-phase-gallery .phase-thumb{height:34px}.property-page .property-detail-heading{gap:0}}

/* The reveal's image and celebration are peer grid cells. */
.property-reveal{grid-template-columns:minmax(0,38%) minmax(0,1fr);align-items:center;justify-content:center}
.property-reveal-content{align-items:center;text-align:center;gap:8px}
.property-reveal-copy{text-align:center;width:100%}
.property-reveal-lumi{display:grid;justify-items:center;gap:1px;margin-bottom:8px;color:var(--ink)}
.property-reveal-lumi img{width:56px;height:62px;object-fit:contain;filter:drop-shadow(0 0 8px #f7ca68a0);animation:lumi-celebrate .8s ease-out both}
.property-reveal-lumi strong{font-size:.79rem;color:#b8791d;line-height:1.2}
.property-reveal-copy>small{font-size:.79rem}
.property-reveal-content .property-season-unlock{text-align:center}
.property-reveal-content>.primary-button{max-width:250px;margin:auto}
@keyframes lumi-celebrate{0%{transform:translateY(8px) scale(.7) rotate(-10deg)}60%{transform:translateY(-5px) scale(1.12) rotate(7deg)}100%{transform:translateY(0) scale(1) rotate(0)}}
@media(max-width:380px){.property-reveal-lumi img{width:45px;height:50px}.property-reveal-lumi strong{font-size:.72rem}}
@media(prefers-reduced-motion:reduce){.property-reveal-lumi img{animation:none}}

/* Stable portrait sizing and an uncropped full-screen view on phones. */
.property-stage-open{position:relative;display:grid;place-items:center;flex:1 1 0;min-height:0;width:100%;padding:0;border:0;border-radius:13px;background:#102b35;color:white;overflow:hidden;cursor:zoom-in}
.property-stage-open>img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center}
.property-stage-open>span{position:absolute;right:8px;bottom:8px;padding:5px 8px;border-radius:999px;background:#071a28d9;color:white;font-size:.75rem;font-weight:700}
.property-phase-gallery li>button,.property-phase-gallery li>.phase-locked{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;font:inherit}
.property-phase-gallery li>button{cursor:zoom-in}.property-phase-gallery li>button:focus-visible,.property-stage-open:focus-visible,.property-reveal-art:focus-visible{outline:3px solid #54cba5;outline-offset:2px}
.property-reveal-art{display:block;padding:0;border:0;cursor:zoom-in}
.property-fullscreen-backdrop{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;background:#06121bf5;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}
.property-fullscreen{position:relative;box-sizing:border-box;width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;gap:8px;color:white;outline:0}
.property-fullscreen-close{align-self:flex-end;flex:none;min-width:44px;min-height:44px;border:1px solid #ffffff88;border-radius:50%;background:#1b3340;color:white;font-size:1.2rem;cursor:pointer}
.property-fullscreen>img{display:block;flex:1 1 0;min-height:0;min-width:0;width:auto;max-width:100%;height:100%;object-fit:contain;object-position:center}
.property-fullscreen-caption{flex:none;padding:5px 12px;text-align:center;font-size:.9rem;font-weight:700}

.spark-home-cta-label { display:flex; align-items:center; gap:8px; }
.spark-home-cta-icon { flex:0 0 26px; width:26px; height:26px; }
.mix-card-icon { display:block; width:clamp(44px,14vw,76px); height:clamp(44px,14vw,76px); }
.retreat-puzzle-icon { display:block; flex:0 0 42px; width:42px; height:42px; }

/* Short landscape viewports: release fixed-height grid rows before photos collapse. */
@media (orientation:landscape) and (min-width:560px) and (max-height:600px){
  .property-selector{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .property-selector .property-choice-grid{flex:0 0 auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(170px,auto);gap:8px}
  .property-selector .property-choice-card{min-height:0}
  .property-selector .property-choice-photo{flex:0 0 auto;aspect-ratio:4/3;min-height:100px}
  .property-selector .property-choice-photo img:not(.property-choice-backdrop){object-fit:cover;object-position:center 46%}
  .property-selector .property-choice-backdrop{display:none}
  .property-selector .property-choice-info{min-height:0;padding:8px}
  .property-selector .property-choice-info small{font-size:.74rem;line-height:1.2}
}
@media (orientation:landscape) and (min-width:560px) and (max-width:720px) and (max-height:600px){
  .property-selector .property-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Wider, horizontally scrollable future-phase tiles on phones in either orientation. */
@media (max-width:600px), (orientation:landscape) and (min-width:560px) and (max-height:600px){
  .property-phase-gallery{width:100%;min-width:0;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:clamp(136px,36vw,168px);overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:2px 2px 6px}
  .property-phase-gallery li{scroll-snap-align:start}
  .property-phase-gallery .phase-label{font-size:.76rem;line-height:1.2;min-height:2.4em}
}

/* Mobile landing: prevent intrinsic flex/grid content from widening Safari's viewport. */
@media(max-width:790px){
  .spark-home{width:100%;min-width:0;max-width:100%}
  .spark-home-header,.spark-home-content,.spark-home-hero,.spark-home-main,.spark-home-cta,.spark-home-bottom{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
  .spark-home-header{gap:6px}
  .spark-home-brand{flex:1 1 auto;min-width:0;gap:6px}
  .spark-home-brand span{min-width:0;overflow-wrap:anywhere}
  .spark-home-actions{flex:0 0 auto;gap:5px}
  .spark-home-cta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .spark-home-cta>button{min-width:0;width:100%}
  .spark-home-cta button small{min-width:0;overflow-wrap:anywhere}
  .spark-home-mix{min-width:0;max-width:100%;grid-template-columns:36px minmax(0,1fr) auto}
  .spark-home-bottom>span{min-width:0;overflow-wrap:anywhere;text-align:right}
}
@media(max-width:420px){
  .spark-home-brand img{flex:0 0 38px;width:38px;height:38px}
  .spark-home-brand span{font-size:clamp(.95rem,4.4vw,1.25rem)}
  .spark-home-header .spark-pill{flex:none;padding-inline:6px;font-size:.85rem}
  .spark-home-actions .appearance-button{box-sizing:border-box;min-width:42px;width:max-content;min-height:42px;padding:4px;font-size:.82rem;text-align:center;white-space:nowrap}
}

/* Dedicated Play Puzzle Mix option appears inside Endless Mix's game picker. */
.mix-page .mix-grid{flex:1 1 0}
.mix-play-rotation{flex:none;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 9px;min-height:50px;padding:10px;border:1px solid var(--line);border-radius:15px;color:var(--ink);background:var(--card);font:inherit;font-weight:800;cursor:pointer}
.mix-play-rotation small{font-size:.76rem;color:var(--muted);font-weight:500}
.mix-play-rotation:focus-visible{outline:3px solid #287d68;outline-offset:2px}
@media(max-height:600px){.mix-play-rotation{min-height:40px;padding:5px}}

/* Difficulty selector is Stage 2A's Oddly-only choice in Endless Mix. */
.mix-oddly-difficulty{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,1fr));align-items:center;gap:5px;min-width:0}
.mix-difficulty-settings>summary{box-sizing:border-box;min-height:40px;padding:9px 0;cursor:pointer;font-weight:700;color:var(--ink)}
.mix-difficulty-choice{min-width:0;min-height:44px;padding:4px 5px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);font:inherit;font-size:clamp(.7rem,2.9vw,.85rem);font-weight:650;cursor:pointer}
.mix-difficulty-choice.selected{background:var(--primary);color:#fff;border-color:var(--primary)}
.mix-difficulty-choice:focus-visible{outline:3px solid #287d68;outline-offset:2px}
@media(max-height:600px){.mix-page{gap:5px}.mix-intro p{display:none}.mix-oddly-difficulty{gap:4px}.mix-difficulty-choice{min-height:40px;padding:3px}.mix-card .mix-card-icon{display:none}.mix-card{padding:7px 10px}}

/* Wide landscape property details give the portrait artwork its own column. */
@media (orientation:landscape) and (min-width:800px){
  .retreat-page.property-page{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    grid-template-rows:repeat(6,auto) 1fr;
    align-items:start;
    gap:12px 20px;
    width:100%;
    max-width:1180px;
    padding:12px max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
    padding-top:max(12px,env(safe-area-inset-top));
    overflow-y:auto;
  }
  .property-page>.retreat-header{grid-area:1 / 1 / 2 / -1}
  .property-page>.property-stage-open{
    grid-area:2 / 1 / 8 / 2;
    height:clamp(390px,calc(100dvh - 84px),820px);
  }
  .property-page>.property-detail-heading{grid-area:2 / 2}
  .property-page>.property-detail-heading h1{font-size:clamp(1.6rem,2.5vw,2.3rem)}
  .property-page>.property-phase-gallery{
    grid-area:3 / 2;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-flow:row;
    grid-auto-columns:auto;
    gap:8px;
  }
  .property-page>.property-seasons{grid-area:4 / 2}
  .property-page>.property-seasons button{font-size:.875rem}
  .property-page>.primary-button{grid-area:5 / 2}
  .property-page>.property-debug{grid-area:6 / 2}
}
