/* Shared studio artwork and proportions from the current store/video creative. */
.phone-composite{display:none}
.phone-video-clip{clip-path:inset(1.545% 3.23% round calc(var(--phone-w)*.082));background:transparent}
.phone:after{display:block;content:"";position:absolute;inset:0;height:auto;border-radius:calc(var(--phone-w)*.115);background:transparent;filter:none;box-shadow:inset 0 0 0 2px #396b69,inset 0 0 0 calc(var(--phone-w)*.0323) #142b2c;pointer-events:none;z-index:5}
/* Decorative hardware sits partly behind the bezel, outside the screen clip. */
.phone-hardware{position:absolute;inset:0;pointer-events:none;z-index:4}
.phone-hardware::after{content:"";position:absolute;inset:0;border-radius:calc(var(--phone-w)*.115);box-shadow:inset 1.2px 1px 1px #c3dedc88;mask-image:linear-gradient(135deg,#000,rgba(0,0,0,.65) 20%,transparent 54%);-webkit-mask-image:linear-gradient(135deg,#000,rgba(0,0,0,.65) 20%,transparent 54%);pointer-events:none}
.phone-hardware{z-index:6}
.demo-end-hint{display:none;position:absolute;z-index:8;left:7%;right:7%;bottom:calc(1.545% + 78px);margin:0;text-align:center;font:500 clamp(9px,calc(var(--phone-w)*.039),14px)/1.4 Montserrat,sans-serif;color:#354e59;text-shadow:0 1px 3px #ffffffb3;pointer-events:none}
.studio.preview-ended:not(.tour-active) .demo-end-hint{display:block}
.phone-hardware span{position:absolute;box-sizing:border-box;width:5px;border:1px solid #396b69;border-radius:2px;background:linear-gradient(90deg,#203c3d,#45615f 45%,#142b2c);box-shadow:inset 0 1px 0 #8ba6a34d,0 1px 1px #10232240}
.phone-hardware .volume-up{left:-3px;top:19%;height:5.5%}
.phone-hardware .volume-down{left:-3px;top:26%;height:5.5%}
.phone-hardware .power{right:-3px;top:23%;height:8%;background:linear-gradient(90deg,#142b2c,#45615f 55%,#203c3d)}
#preview{left:3.23%;top:1.545%;width:93.54%;height:96.91%;object-fit:contain;background:#fff}
.tour-screen{left:3.23%;top:calc(1.545% - var(--phone-w)*.040066);width:93.54%;height:auto;object-fit:contain}
.tour-status{left:3.23%;top:1.545%;width:93.54%}
/* Keep optical treatment on scenery layers, never the foreground or UI. */
.room{filter:saturate(.94) contrast(.97)}
.room:before{content:"";display:block;position:absolute;inset:0 0 auto;height:72%;pointer-events:none;background:radial-gradient(ellipse at 28% 22%,#fff8ed24,transparent 65%),linear-gradient(#f7f2ed0d,#f7f2ed12);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);mask-image:linear-gradient(#000 30%,#000b 65%,transparent);-webkit-mask-image:linear-gradient(#000 30%,#000b 65%,transparent)}
.plant-position{filter:blur(clamp(1.2px,.12vw,2.4px)) contrast(.96) saturate(.96) brightness(1.015)}
.shelves-position{filter:blur(clamp(1.8px,.2vw,3.8px)) contrast(.93) saturate(.94) brightness(1.025)}
.room-tone{opacity:0}
.phone-reflection{height:100%;clip-path:inset(0 0 84% 0);mask-image:linear-gradient(#000c,transparent 13%);-webkit-mask-image:linear-gradient(#000c,transparent 13%)}
.phone .sound-prompt{display:none}
.studio.preview-started:not(.tour-active) .phone .video-controls{
 left:3.23%;right:3.23%;bottom:1.545%;
 border-radius:0 0 calc(var(--phone-w)*.082) calc(var(--phone-w)*.082);
 padding:14px 6% 10px;box-sizing:border-box;
}
.palette-position .palette{filter:drop-shadow(1px 2px 1px #3f2d3057) drop-shadow(8px 6px 5px #4b394738)}
/* Only the distant rim receives optical softness; near paint stays detailed. */
.palette-edge-softener{position:absolute;z-index:3;inset:0 0 auto;height:48%;pointer-events:none;backdrop-filter:blur(.65px);-webkit-backdrop-filter:blur(.65px);background:rgba(250,244,236,.025);mask-image:linear-gradient(#000 20%,transparent 100%);-webkit-mask-image:linear-gradient(#000 20%,transparent 100%)}
@media(min-width:981px){
 .header{right:2%;width:auto}
 .header > .web{font-size:clamp(13px,1.1vw,21px);padding:10px 14px;gap:8px;background:rgba(250,248,246,.35);border-color:rgba(83,110,131,.4);box-shadow:none;white-space:nowrap}
 .studio{--phone-h:min(84svh,calc(38vw * 2.0923));--phone-w:calc(var(--phone-h)*.47811);--adjust-phone-y:0px;--adjust-palette-x:0px;--adjust-palette-y:0px}
 .phone-position{left:64.65%;top:8.46%;width:var(--phone-w);height:var(--phone-h);z-index:7}
 .copy{left:17.45%;top:28.25%;width:35.42%;transform:none}
 .copy h1{font-size:min(5.26vw,9.35svh);line-height:1.2;letter-spacing:-.03em}
 .copy .tagline{font-size:min(2.55vw,4.54svh);line-height:1.4;margin:26px 0 0}
 .copy .game-descriptor{position:static;font-size:clamp(14px,1.3vw,25px);line-height:1.4;margin:22px 0 0;color:#53656b}
 .copy .downloads{position:static;gap:clamp(20px,2vw,38px);margin-top:clamp(30px,3.2vw,62px)}
 .copy .downloads img{height:clamp(40px,4vw,77px);max-width:100%}
 .palette-position{left:-2.86%;bottom:-6%;width:min(44.27vw,85svh);filter:none}
 .studio:after{height:17%;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.035) 15%,rgba(255,255,255,.13) 30%,rgba(255,255,255,.29) 45%,rgba(255,255,255,.51) 60%,rgba(255,255,255,.75) 75%,rgba(255,255,255,.94) 90%,#fff)}
}
@media(max-width:980px){
 /* Anchor scenery to the screen edges, not a percentage of a widening crop. */
 .plant-position,.plant-table-reflection{left:0;width:calc((100% - var(--phone-w))/2 + 16px)}
 .plant-position .left-plant,.plant-table-reflection img{left:calc(var(--plant-height)*-.22)}
 /* Reserve browser-safe height before choosing the proportional phone size.
    Preview and walkthrough share this anchor, including on short screens. */
 .tour-scroll{--mobile-phone-top:calc(154px + var(--scene-safe-top));--phone-w:min(70vw,348px,calc((var(--mobile-stable-height,100svh) - var(--mobile-phone-top) - 8px - env(safe-area-inset-bottom,0px))/2.0923));--phone-h:calc(var(--phone-w)*2.0923);--plant-top:calc(var(--mobile-phone-top) - 14px)}
 .tour-copy{top:calc(4px + var(--scene-safe-top))}
 .tour-panel{top:6px}
 .tour-controls .tour-count{font-size:12px;line-height:1;color:#536e83;letter-spacing:.02em}
 /* Match the painted connector to the full row of dab centers. Keep the
    brush texture narrow enough that its waviness stays beneath the dabs. */
 .tour-timeline{width:calc(100vw - 44px)}
 .tour-texture-stream{width:60px;height:calc(100vw + 26px);max-height:none;clip-path:none}
 .copy{top:calc(8px + var(--scene-safe-top));height:auto;display:flex;flex-direction:column;align-items:center}
 .copy h1,.compact-mobile .copy h1{position:static;font-size:clamp(32px,10vw,40px);line-height:1.08;letter-spacing:-.03em;margin:0}
 .copy .tagline,.compact-mobile .copy .tagline{position:static;font-size:clamp(20px,5.4vw,22px);line-height:1.25;margin:0}
 .copy .game-descriptor{position:static;font-size:13px;line-height:1.35;margin:5px 0 0}
 .copy .downloads{position:static;margin:8px 0 0;gap:16px}
 .copy .downloads img{height:36px}
 .compact-mobile .tour-scroll{--phone-w:min(70vw,348px,calc((var(--mobile-stable-height,100svh) - var(--mobile-phone-top) - 8px - env(safe-area-inset-bottom,0px))/2.0923))}
 .tour-scroll{--foreground-height:calc(var(--palette-width)*.24 + 24px)}
 .palette-position{filter:none;top:calc(var(--phone-bottom) - 20px)}
 .palette-exit .palette-position{top:-20px}
 .palette-exit:after{height:80px;background:linear-gradient(transparent,#f8f8f4 75%)}
 .player-reviews{margin-top:0;padding-top:16px}
}
@media(min-width:981px) and (max-width:1250px){
 .header > .web{font-size:12px;padding:10px 8px;gap:6px}
 .copy{left:19%;width:33%}
 .copy .tagline{margin-top:18px}
 .copy .game-descriptor{margin-top:14px}
 .copy .downloads{gap:18px;margin-top:30px}
 .copy .downloads img{height:3.5vw}
}
/* Compact download / social row, above the existing information links. */
.page-footer{display:block;margin:0;padding:12px 24px 6px;border:0;background:#f8f8f4;color:#536e83;}
.footer-connect{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px 28px;max-width:1100px;margin:0 auto;}
.footer-downloads,.footer-socials{display:flex;align-items:center;justify-content:center;gap:16px;}
.footer-socials[hidden]{display:none;}
.footer-downloads a{display:flex;align-items:center;min-height:44px;}
.footer-downloads img{display:block;width:auto;height:40px;max-width:100%;}
.footer-socials a{display:inline-flex;align-items:center;gap:7px;min-height:32px;color:inherit;font-size:13px;text-decoration:none;}
.footer-socials svg{width:20px;height:20px;flex:none;}
.back-to-top{position:absolute;left:calc(100% + 12px);bottom:8px;z-index:10;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:44px;height:44px;border:1px solid #536e8333;border-radius:50%;color:#536e83;background:#f8f8f4e6;}
.studio:not(.tour-active) .back-to-top{display:none;}
.footer-socials a:hover,.back-to-top:hover{color:#274d5b;background:#536e830c;}
.page-footer a:focus-visible,.back-to-top:focus-visible{outline:2px solid #536e83;outline-offset:4px;}
.page-footer .site-footer{padding:0;background:transparent;}
.page-footer .site-footer :is(a,button){min-height:32px;}
/* A real background stroke also renders reliably in local-file previews. */
.page-footer .site-footer :is(a,button):after{bottom:2px;mask:none;-webkit-mask:none;background-image:url('assets/tagline-strokes/teal.svg');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-color:transparent;}
.page-footer .site-footer :is(a,button):nth-child(2):after{background-image:url('assets/tagline-strokes/peach.svg');}
.page-footer .site-footer :is(a,button):nth-child(3):after{background-image:url('assets/tagline-strokes/gold.svg');}
@media(max-width:980px){
 .review-list{padding-bottom:12px;}
 .back-to-top{left:calc(100% + 4px);}
}
@media(max-width:600px){
 .page-footer{padding:12px 12px max(4px,env(safe-area-inset-bottom));}
 .footer-connect{gap:6px 16px;}
 .footer-downloads{gap:12px;}
 .footer-downloads img{height:36px;}
 .footer-socials{gap:18px;}
 .page-footer .site-footer{flex-wrap:wrap;gap:0 14px;}
}
