/* Opening: one illustrated stage. All game coordinates share its viewBox. */
:root{--opening-width:1420px}
.site-header,.small-partners{max-width:var(--opening-width)}
.small-partners{gap:13px;height:65px}
.small-partners>strong{font-size:10px;line-height:1.5;font-weight:600;color:#bdcbe0}
.small-partners>img{height:44px;width:48px;object-fit:contain}
.small-partners>span{font-size:8px;margin-right:5px}
.opening{max-width:var(--opening-width);padding-top:25px;margin-bottom:42px}
.opening-story{text-align:center;max-width:990px;margin:0 auto 48px}
.time-title{font-size:clamp(19px,2.5vw,34px);font-weight:800;line-height:1.3;letter-spacing:-.035em;color:#d4e2f6;margin:0 0 20px}
.opening-story h1{font-size:clamp(38px,5.3vw,76px);line-height:1.07;letter-spacing:-.06em;margin-bottom:25px;font-weight:900}
.opening-story h1>span{color:#00e875}
.opening-promise{max-width:820px;margin:0 auto;font-size:clamp(14px,1.3vw,18px);line-height:1.85;color:#bcc9dd}
.opening-promise strong{color:#dbe8f9;font-weight:600}
.scene{aspect-ratio:1586/992;border-radius:clamp(28px,3.5vw,52px);overflow:hidden;border:1px solid #233d54;background:#031128;box-shadow:0 40px 100px -28px #000b,0 0 65px -28px #00c6ab44;isolation:isolate}
.visual-window{position:absolute;inset:0;overflow:clip}
.visual-layer{position:absolute;inset:0;height:100%;aspect-ratio:1586/992;overflow:clip}
/* Penny and the counter share one finished image: no separate cutout or occlusion mask. */
.scene-art{background-image:url('assets/market-studio-penny-v7.png');background-position:center;background-size:100% 100%}
.studio-logo{z-index:2;position:absolute;left:45.6%;top:15.6%;width:16.8%;height:13.5%;transform:none;filter:drop-shadow(0 0 6px #00e9f666) drop-shadow(0 0 16px #00e9f622);pointer-events:none}
.intro-copy{left:71.2%;right:3.3%;top:20.2%;z-index:8}
.intro-copy>.eyebrow{font-size:clamp(7px,.68vw,10px);line-height:1.75;letter-spacing:.13em;color:#b3d5d9;margin-bottom:17px}
.intro-copy h2{font-size:clamp(29px,3.15vw,47px);line-height:1.12;letter-spacing:-.05em;margin:0 0 22px}
.intro-copy h2>span{color:#fff}
.intro-copy>p:not(.eyebrow){font-size:clamp(13px,1.23vw,18px);line-height:1.75;color:#c2d3e8;margin-bottom:30px}
.intro-copy .pay{width:100%;min-height:65px;padding:19px 20px;font-size:clamp(12px,1.22vw,18px);gap:23px;background:linear-gradient(110deg,#68ff99 0%,#18f18e 45%,#00df6a 100%);background-size:170% 100%;box-shadow:0 12px 32px #00df6a1a;white-space:nowrap}
.intro-copy .pay>span{font-size:33px;font-weight:400;line-height:.7}
.pay-arrow{width:31px;height:31px;flex-shrink:0}
.intro-copy .pay:disabled{cursor:default;color:#021c1b}
.lockline{color:#cedaee;font-size:clamp(10px,1.08vw,16px);margin-top:21px;gap:11px;white-space:nowrap}
.lockline svg{width:20px;height:24px;flex-shrink:0}
.payment-meter{font-size:clamp(11px,1.15vw,16px);font-weight:700;margin-top:20px;gap:16px}
.dots{gap:8px}.dots i{width:8px;height:8px;border:1.5px solid #9cb9d1;transition:background .2s,box-shadow .2s}.dots i.paid{box-shadow:0 0 10px #00e87588}
.vase{left:3.9%;top:43.6%;width:20.8%;height:38.5%;z-index:4;filter:drop-shadow(7px 10px 7px #28120a77);transform-origin:50% 70%}
.vase-shadow{position:absolute;left:6%;top:79.2%;width:16.8%;height:2.4%;border-radius:50%;background:#29100888;filter:blur(6px);transition:opacity .6s;z-index:2}
.shell-tray{left:27%;bottom:7.8%;width:43.5%;height:12.9%;gap:3%;z-index:7}
.shell{width:25%;height:100%;display:block;filter:drop-shadow(1px 7px 4px #25120888);transition:transform .2s,filter .2s;cursor:pointer}
.shell img{object-fit:fill;transform:scaleY(.72);transform-origin:center bottom}
.shell:hover{transform:translateY(-7px) scale(1.07);filter:drop-shadow(0 0 12px #73eaff88) drop-shadow(0 6px 4px #25120888)}
.shell:active{transform:translateY(-2px) scale(.98)}
.shell.spent{visibility:hidden}
.shell-light{left:23%;right:23%;bottom:1%;background:#76f9df;opacity:.18;height:6%;filter:blur(8px);animation:shellGlow 3s ease-in-out infinite}
.shell:nth-child(2) .shell-light{animation-delay:.4s}.shell:nth-child(3) .shell-light{animation-delay:.8s}.shell:nth-child(4) .shell-light{animation-delay:1.2s}
.shell-hint{position:absolute;left:26%;width:45%;bottom:3.4%;margin:0;text-align:center;font-size:clamp(8px,.8vw,12px);color:#ffe8cb;text-shadow:0 1px 4px #000;z-index:7;transition:opacity .2s}
.till-targets{z-index:5}
.till-targets i{top:62.25%;width:8.0%;height:6.05%;overflow:hidden;clip-path:polygon(0% 45%,4% 28%,14% 17%,26% 9%,39% 2%,50% 0%,61% 2%,74% 9%,86% 17%,96% 28%,100% 45%,96% 65%,80% 83%,61% 96%,50% 100%,39% 96%,20% 83%,4% 65%);opacity:0;filter:brightness(.97);transition:opacity .1s}
.till-targets i:nth-child(1){left:31.58%}.till-targets i:nth-child(2){left:40.68%}.till-targets i:nth-child(3){left:49.88%}.till-targets i:nth-child(4){left:59.08%}
.till-targets i.filled{opacity:1}
.till-targets svg{position:absolute;width:100%;height:100%;inset:0;display:block}
.flying-shell{position:absolute;z-index:80;object-fit:fill;transform-origin:center;filter:drop-shadow(0 7px 7px #23130b99)}
.sound-toggle{position:absolute;right:2.5%;bottom:3.2%;z-index:12;display:flex;align-items:center;gap:7px;background:#06142aaa;color:#d3e1ed;font-size:10px;padding:8px 10px;border:1px solid #c1d8e82b;border-radius:30px;backdrop-filter:blur(8px)}
.sound-toggle svg{width:16px;height:16px}.sound-toggle[aria-pressed=false] .sound-waves{display:none}
.scene-spark{position:absolute;width:3px;height:3px;border-radius:50%;background:#ffeb9d;box-shadow:0 0 12px 2px #ffd96688;animation:dustDrift 7s ease-in-out infinite;pointer-events:none;z-index:2}.spark-one{left:7%;top:31%}.spark-two{left:39%;top:16%;animation-delay:3s;background:#64fcdb;box-shadow:0 0 10px #64fcdb}
.gift-message{left:71.2%;right:3.3%;top:17%;padding:0;text-align:left;background:none;border:0;border-radius:0;box-shadow:none;z-index:10}
.gift-message .gift-check{width:44px;height:44px;background:#00ed7b;font-size:27px;margin-bottom:15px;box-shadow:0 0 30px #00ef7344}
.gift-message .eyebrow{font-size:9px;letter-spacing:.12em;color:#b5e9d8;margin-bottom:15px}
.gift-message h2{font-size:clamp(31px,3.3vw,48px);margin-bottom:19px}
.gift-message p:not(.eyebrow){font-size:clamp(12px,1.1vw,16px);line-height:1.85;color:#baccdf;margin-bottom:24px}.gift-message strong{font-weight:600;color:#deecef}
.gift-message .button{width:100%;font-size:clamp(12px,1vw,15px);min-height:58px;gap:20px}
.replay-scene{display:block;background:none;color:#b4ccdf;font-size:11px;margin:18px auto 0;padding:7px}
.scene.received .shell-hint,.scene.received .vase-shadow{opacity:0}
.scene.received .vase{filter:drop-shadow(0 22px 22px #001229aa)}
.product-gate{max-width:1360px;width:calc(100% - 112px);border-radius:40px;margin:0 auto 30px;padding-top:0}
.product-gate.is-locked{max-height:900px;overflow:hidden;mask-image:linear-gradient(#000 75%,transparent);border-radius:40px}
.product-content.locked{filter:blur(7px);opacity:.7;pointer-events:none;user-select:none}
.frost-layer{position:absolute;inset:0;z-index:20;border:0;border-radius:40px;box-shadow:none;background:linear-gradient(#030b1e05,#030b1e26);backdrop-filter:none;-webkit-backdrop-filter:none;display:flex;justify-content:center;align-items:flex-start;padding-top:150px}
.preview-lock{display:flex;align-items:center;gap:10px;background:#07152fcf;border:1px solid #294661;box-shadow:0 10px 35px #0004;border-radius:30px;padding:12px 20px;color:#bed2e8;font-size:12px;backdrop-filter:blur(10px)}
.preview-lock svg{width:16px;height:18px}
.why-intro{padding-block:55px 65px}
@keyframes shellGlow{0%,100%{opacity:.15;transform:scaleX(.7)}50%{opacity:.55;transform:scaleX(1.1)}}
@keyframes dustDrift{0%,100%{opacity:0;transform:translateY(8px)}40%,60%{opacity:.9}80%{opacity:0;transform:translateY(-25px)}}
@media(min-width:1650px){.opening{width:calc(100% - 160px)}.intro-copy h2{font-size:48px}.intro-copy>p:not(.eyebrow){font-size:19px}.intro-copy .pay{min-height:72px;font-size:18px}}
@media(min-width:761px) and (max-width:1050px){.opening,.product-gate{width:calc(100% - 48px)}.opening-story{margin-bottom:35px}.intro-copy{top:17%;left:70.8%;right:3%}.intro-copy h2{font-size:3.4vw}.intro-copy>.eyebrow{font-size:7px;letter-spacing:.08em;margin-bottom:12px}.intro-copy>p:not(.eyebrow){font-size:1.35vw;margin-bottom:22px}.intro-copy .pay{font-size:1.3vw;min-height:50px;gap:13px;padding:14px 10px}.intro-copy .pay>span{font-size:26px}.lockline{font-size:1.1vw;gap:7px;margin-top:16px}.payment-meter{font-size:12px;margin-top:13px}.lockline svg{width:14px;height:18px}.gift-message{top:12%;left:71%;right:3%}.gift-message h2{font-size:3.5vw}.gift-message p:not(.eyebrow){font-size:1.3vw}.gift-message .eyebrow{font-size:7px}.gift-message .button{font-size:10px;min-height:47px}.sound-toggle{font-size:8px;padding:6px 8px}}
@media(max-width:760px){
  .site-header{min-height:85px}.site-header>a>img{width:120px;height:60px}.small-partners{height:60px;justify-content:center;gap:10px}.small-partners>span{font-size:6px;max-width:78px;line-height:1.6}.small-partners>strong{font-size:8px}.small-partners>img{height:36px;width:39px}
  .opening{width:calc(100% - 24px);padding-top:25px;margin-bottom:25px}.opening-story{padding:0 10px;margin-bottom:28px}.time-title{font-size:22px;margin-bottom:15px}.opening-story h1{font-size:clamp(31px,8.1vw,48px);line-height:1.11;margin-bottom:20px;letter-spacing:-.055em}.opening-story h1 br{display:none}.opening-promise{font-size:13px;line-height:1.9;max-width:480px}.opening-promise strong{display:block;margin-top:7px}
  .scene{padding-top:0;aspect-ratio:auto;border-radius:30px;background:#04142d;box-shadow:0 25px 60px -15px #0008,0 0 35px -22px #00c6ab44}
  .visual-window{position:relative;height:auto;aspect-ratio:1.14;inset:auto}
  .visual-layer{inset:auto;top:0;left:-1%;width:140%;height:auto;aspect-ratio:1586/992}
  .studio-logo{left:45.6%;top:15.6%}
  .intro-copy{position:relative;top:auto;left:auto;right:auto;padding:26px 25px 31px;background:radial-gradient(ellipse at 100% 0%,#063a4d44,transparent 70%),#04142d;text-align:center}
  .intro-copy .eyebrow{font-size:8px;letter-spacing:.11em;margin-bottom:13px}
  .intro-copy h2{font-size:35px;line-height:1.1;margin-bottom:17px}.intro-copy h2 br{display:none}.intro-copy h2>span{display:block}
  .intro-copy>p:not(.eyebrow){font-size:14px;line-height:1.7;margin:0 auto 24px;max-width:340px}
  .intro-copy .pay{min-height:60px;font-size:15px;padding:18px 20px;gap:37px;max-width:420px}.intro-copy .pay>span{font-size:33px}
  .lockline{font-size:13px;margin-top:21px;gap:10px}.lockline svg{width:18px;height:22px}.payment-meter{font-size:14px;margin-top:17px}
  .shell-tray{height:13.7%;bottom:7.8%;left:25.8%;width:44.8%}.shell-hint{font-size:9px;bottom:3.1%;left:24%;width:48%}.shell:focus-visible{outline-offset:-2px}.shell:hover{transform:translateY(-3px)}
  .sound-toggle{right:12px;top:12px;bottom:auto;font-size:0;padding:8px;gap:0}.sound-toggle svg{width:17px;height:17px}.sound-toggle span{display:none}
  .gift-message{position:relative;top:auto;left:auto;right:auto;text-align:center;padding:25px 25px 22px;background:#04142d}.gift-message h2{font-size:36px;margin-bottom:18px}.gift-message h2 br{display:none}.gift-message p:not(.eyebrow){font-size:13px;margin-bottom:23px}.gift-message .eyebrow{font-size:8px}.gift-message .button{min-height:57px;font-size:13px}.gift-message .gift-check{width:39px;height:39px;font-size:24px}.replay-scene{font-size:11px;margin-top:12px}
  .product-gate{width:calc(100% - 32px);border-radius:28px}.product-gate.is-locked{max-height:800px;border-radius:28px}.product-content.locked{filter:blur(5px);opacity:.68}.frost-layer{border-radius:28px;background:#030b1e0d;backdrop-filter:none;-webkit-backdrop-filter:none;padding-top:170px}.preview-lock{font-size:10px;padding:10px 15px}.why-intro{padding-block:25px 35px}
}
@media(prefers-reduced-motion:reduce){.scene-spark,.shell-light{animation:none!important}.shell:hover{transform:none}.opening *{transition:none!important}}

@media(min-width:761px){.visual-window::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 70%,#03132a28 76%,#03132aaa 100%);z-index:6}}
@media(min-width:761px) and (max-width:1050px){.intro-copy .pay{font-size:12px}.lockline{font-size:10px}}
