/* Effect modules keep their own surface, controls and lifecycle. */
.effects-intro{padding:36px 0 24px;display:flex;align-items:flex-end;justify-content:space-between;gap:30px}
.effects-intro h1{font-size:40px;letter-spacing:-.05em;line-height:1.35;margin-top:8px}
.effects-intro h1 span{color:var(--blue)}.effects-intro>p{max-width:390px;font-size:13px;color:var(--muted);line-height:1.9}
.original-effects{padding-bottom:56px}.effect-tabs{display:flex;gap:7px;padding:7px;background:#e8ebf0;border-radius:12px 12px 0 0}
.effect-tabs button{flex:1;border-radius:7px;color:#5d6471;background:transparent;padding:14px 10px;font-size:13px;white-space:nowrap}
.effect-tabs button>span{font:10px monospace;margin-right:8px;color:#8e98a5}
.effect-tabs button[aria-selected=true]{background:#fff;color:#152433;box-shadow:0 2px 8px #15243312}.effect-tabs button[aria-selected=true]>span{color:var(--blue)}
.effect-workspace{display:grid;grid-template-columns:minmax(0,1fr) 294px;background:white;border:1px solid #dce1e6;border-radius:0 0 13px 13px;overflow:hidden}
.effect-stage{min-width:0;position:relative;height:598px;background:#f8ecda;overflow:hidden}
.effect-inspector{padding:24px 23px;display:flex;flex-direction:column;gap:17px;border-left:1px solid #dce1e6}
.effect-inspector h2{font-size:22px;line-height:1.45;margin:4px 0 7px}.effect-kind{display:inline-block;font-size:10px;background:#edf2fc;color:#345488;padding:5px 7px;border-radius:4px}
.effect-inspector h3{font-size:11px;color:#7f8996;font-weight:500;margin-bottom:5px;letter-spacing:.08em}
.effect-inspector p{font-size:12px;line-height:1.85;color:#3e4a58}.effect-inspector .effect-tech{font:11px/1.8 monospace;color:#53708a;margin-top:5px}
.effect-file{font:10px/1.7 monospace;color:#778592;overflow-wrap:anywhere}
.effect-inspector a{font-size:11px}.effect-project{display:block;margin-bottom:6px;color:var(--blue)}
.effect-inspector .primary{padding:10px 12px;font-size:12px;margin-top:auto}.effect-inspector .effect-source{display:block;text-align:center;font-size:11px}
.effect-state{font-size:10px;border-top:1px solid #e0e5eb;padding-top:9px;display:grid;gap:4px}.effect-state div{display:flex;justify-content:space-between;gap:12px}.effect-state span{color:#7a8795}.effect-state b{font-weight:500;color:#3c566a;text-align:right}
.effect-lab-note{display:flex;gap:24px;justify-content:space-between;font-size:11px;color:#6e7a89;line-height:1.8;padding-top:13px}
.effect-lab-note>p{max-width:75%}.effect-lab-note a{white-space:nowrap}
.effect-title{position:absolute;z-index:5;top:28px;left:32px;right:24px;pointer-events:none}
.effect-title>span{font:10px monospace;letter-spacing:.16em;color:#927e65}.effect-title h3{font-size:30px;letter-spacing:-.05em;line-height:1.4;margin:8px 0}.effect-title p{font-size:12px;color:#85705b}
.effect-bottom{position:absolute;bottom:23px;left:30px;right:30px;display:flex;justify-content:center;gap:10px;align-items:center;z-index:5}
.effect-bottom button{background:#fff8e9;border:1px solid #ddcfb6;border-radius:30px;padding:9px 17px;font-size:11px;color:#514130}.effect-bottom button:hover{background:#fff}
.atmosphere-effect,.menu-effect,.broth-effect,.map-effect,.cookie-effect{height:100%;position:relative}
.atmosphere-effect{background:radial-gradient(ellipse at 52% 60%,#fff7e6,#f2dfc4)}.soup-film{position:absolute;width:80%;height:80%;left:10%;top:12%;object-fit:contain;mix-blend-mode:multiply}
.steam-layer{position:absolute;inset:0;width:100%;height:100%;z-index:3;touch-action:pan-y}
.film-credit{position:absolute;bottom:78px;left:32px;color:#a68a68;font-size:10px;z-index:4}
.film-control{position:absolute;z-index:5;bottom:24px;left:32px;right:24px;display:flex;gap:15px;align-items:center}.film-control button{border-radius:30px;border:1px solid #cbb497;background:#fff9e9;padding:10px 17px;font-size:11px;color:#654b2e}.film-control>span{color:#967b5c;font-size:10px}
.menu-effect{background:#f8ecda}.menu-composition{position:absolute;inset:153px 25px 75px;display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:24px}
.turntable-window{width:100%;aspect-ratio:1;display:grid;place-items:center}.turntable{position:relative;width:100%;aspect-ratio:1;border-radius:50%;border:1px dashed #b3a184;background:#f1e1c7;box-shadow:inset 0 0 0 14px #f8ecda,inset 0 0 0 15px #c3af8e}
.turntable-center{position:absolute;top:40%;left:38%;width:24%;height:24%;border-radius:50%;display:grid;align-content:center;text-align:center;background:#fff6e6;color:#866b46;font:11px/1.7 monospace;transform:rotate(var(--counter,0deg))}
.menu-dish{position:absolute;width:38%;height:38%;display:flex;align-items:center;flex-direction:column;transition:filter .25s;filter:saturate(.65);transform:rotate(var(--counter,0deg))}
.menu-dish.active{filter:saturate(1.15)}.dish-0{left:54%;top:30%}.dish-1{left:8%;top:57%}.dish-2{left:8%;top:3%}
.dish-broth{position:relative;border-radius:50%;width:100%;height:80%;border:8px solid #fff7e9;background:var(--dish);box-shadow:0 3px 0 #d8b990,0 10px 18px #6b452a22;overflow:hidden}
.dish-broth::after{content:"";position:absolute;inset:13%;border:1px dashed #9e713b55;border-radius:50%}.dish-broth b{position:absolute;inset:0;display:grid;place-items:center;font:700 24px Georgia,serif;color:#775027}
.dish-broth i{position:absolute;border-radius:70% 20%;background:#669447;width:22%;height:10%;transform:rotate(-25deg);left:13%;top:23%}.dish-broth i:nth-child(2){left:63%;top:20%;transform:rotate(40deg);background:#f9e5b8}.dish-broth i:nth-child(3){left:56%;top:65%;background:#e0623e;transform:rotate(70deg)}.dish-broth i:nth-child(4){left:16%;top:69%;background:#f9e5b8}
.menu-dish>span{font-size:9px;color:#846943;margin-top:7px}
.menu-copy>[data-menu-number]{font:11px monospace;color:#ac7540}.menu-copy h4{font:600 25px/1.3 Georgia,serif;color:#543b29;margin:10px 0 12px}.menu-copy>strong{font-size:13px;color:#947142}.menu-copy>p{font-size:12px;color:#8d7962;margin-top:9px;line-height:1.8}
.menu-scroll{height:73px;overflow:auto;overscroll-behavior:contain;border:1px dashed #c9b591;border-radius:6px;margin-top:18px;background:#fff8ea;scrollbar-color:#c1a780 #f2e4cb}
.menu-scroll-track{height:440px;display:flex;flex-direction:column;justify-content:space-between;padding:22px 12px;font-size:11px;color:#a0825c}
.menu-buttons button[aria-pressed=true]{background:#69472b;color:#fff2db;border-color:#69472b}
.broth-effect{background:radial-gradient(ellipse at 50% 58%,#173849,#081b29 73%)}.broth-effect .effect-title>span,.map-effect .effect-title>span{color:#80aabd}.broth-effect .effect-title h3,.map-effect .effect-title h3{color:#e4f3f4}.broth-effect .effect-title p,.map-effect .effect-title p{color:#87a9b4}
.broth-hud,.map-hud{position:absolute;z-index:4;left:32px;right:32px;top:141px;display:flex;justify-content:space-between;gap:15px;font:10px/1.5 monospace;color:#7699ac}
.broth-hud b,.map-hud b{color:#aeeeff;font-size:14px;font-weight:400}.broth-hud>span:last-child{color:#f7c570;font-size:10px}
.broth-canvas{position:absolute;top:161px;left:0;width:100%;height:380px;touch-action:none;cursor:grab;outline-offset:-3px}.broth-canvas:active{cursor:grabbing}
.broth-controls button,.map-controls button{color:#b7e3ea;border-color:#31566a;background:#163143}.broth-controls label{display:flex;align-items:center;gap:8px;color:#89acbc;font-size:10px}.broth-controls input{max-width:120px;accent-color:#aeefff}
.map-effect{background:radial-gradient(ellipse at 50% 65%,#213540,#0b1e2a 78%)}.map-hud{top:132px}.map-hud b{font-size:11px;color:#e1bd75}
.delivery-canvas{position:absolute;top:152px;left:14px;width:calc(100% - 28px);height:375px;cursor:crosshair}
.map-controls label{display:flex;align-items:center;gap:6px;color:#9db6c3;font-size:10px}.map-controls input{accent-color:#91e6dd}
.cookie-effect{background:radial-gradient(ellipse at 50% 58%,#fff7e5,#f5e5cd)}.fortune-stage{position:absolute;inset:150px 30px 70px;display:grid;place-items:center}
.fortune-cookie{position:absolute;width:290px;max-width:85%;top:85px;background:none;z-index:3;padding:0;filter:drop-shadow(0 16px 16px #865b2f25)}.fortune-cookie svg{width:100%;display:block;overflow:visible}
.fortune-cookie>span{font:9px monospace;color:#aa8053;letter-spacing:.12em;display:block;transform:translateY(4px)}
.cookie-left,.cookie-right{transform-origin:160px 105px;transition:transform .45s cubic-bezier(.2,.8,.3,1)}.cracked .cookie-left{transform:translate(-54px,25px) rotate(-17deg)}.cracked .cookie-right{transform:translate(54px,25px) rotate(17deg)}.cracked .cookie-seam{opacity:0}
.fortune-slip{position:absolute;top:8px;left:9%;right:9%;background:#fffdfa;padding:18px 20px;text-align:center;box-shadow:0 3px 15px #62482812;transform:translateY(25px) scale(.75);opacity:0;transition:all .4s;z-index:2}
.fortune-slip::after,.fortune-slip::before{content:"";position:absolute;top:0;bottom:0;width:7px;background:repeating-linear-gradient(135deg,#fffdfa 0 5px,transparent 5px 10px)}.fortune-slip::before{left:-5px}.fortune-slip::after{right:-5px}
.fortune-slip.open{transform:none;opacity:1}.fortune-slip>span{font:8px monospace;color:#b79973;letter-spacing:.2em}.fortune-slip p{font-size:14px;line-height:1.8;color:#82613d;min-height:50px;margin-top:8px}
.cookie-crumbs{position:absolute;left:50%;top:160px;z-index:4;pointer-events:none}.cookie-crumbs i{position:absolute;width:7px;height:5px;background:#d9a562;border-radius:1px;animation:crumb .65s ease-out forwards}
@keyframes crumb{to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}
.cookie-bottom{justify-content:space-between;color:#9b7f5a;font-size:11px}.cookie-bottom b{font-weight:500}.cookie-bottom button{background:transparent;color:#9b7f5a;padding:7px 12px;font-size:10px}
@media(max-width:1100px){.effect-workspace{grid-template-columns:minmax(0,1fr) 260px}.effect-inspector{padding:22px 18px}.menu-composition{gap:12px;inset-inline:18px}.menu-copy h4{font-size:21px}.effect-title h3{font-size:27px}}
@media(max-width:760px){.effects-intro{display:block;padding:27px 0 20px}.effects-intro h1{font-size:31px}.effects-intro>p{margin-top:10px;font-size:12px}.effect-tabs{gap:3px;padding:5px;overflow:auto}.effect-tabs button{font-size:11px;padding:11px 12px;flex:0 0 auto}.effect-tabs button>span{font-size:9px;margin-right:4px}.effect-workspace{grid-template-columns:1fr}.effect-stage{height:520px}.effect-inspector{border-left:0;border-top:1px solid #dce1e6;display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px}.effect-inspector>div:first-child,.effect-inspector .effect-state{grid-column:1/-1}.effect-inspector h2{font-size:21px}.effect-inspector .primary{margin:0;align-self:center}.effect-inspector .effect-source{align-self:center}.effect-title{left:22px;top:23px;right:16px}.effect-title h3{font-size:25px}.effect-title>span{font-size:9px}.effect-title p{font-size:11px;max-width:95%}.film-control{left:22px;right:22px;bottom:20px;gap:9px}.film-control button{font-size:10px;padding:10px 13px}.film-control>span{font-size:9px}.film-credit{left:22px;bottom:65px;font-size:9px}.soup-film{width:100%;left:0;top:15%;height:74%}
.menu-composition{inset:145px 18px 74px;grid-template-columns:1fr 1fr;gap:14px}.menu-copy h4{font-size:18px}.menu-copy>strong{font-size:11px}.menu-copy>p{font-size:10px;line-height:1.7}.menu-copy>[data-menu-number]{font-size:9px}.menu-scroll{height:63px;margin-top:12px}.menu-scroll-track{font-size:9px}.dish-broth{border-width:5px}.dish-broth b{font-size:17px}.menu-dish>span{font-size:7px;margin-top:5px}.turntable-center{font-size:7px}.effect-bottom{left:18px;right:18px;bottom:19px;gap:7px}.effect-bottom button{padding:8px 10px;font-size:10px}.menu-buttons{gap:5px}.menu-buttons button{font-size:9px;padding:9px 10px}
.broth-hud,.map-hud{left:22px;right:22px;top:124px;font-size:9px}.broth-hud b{font-size:13px}.broth-hud>span:last-child{font-size:8px}.broth-canvas{top:139px;height:322px}.broth-controls label{gap:5px;font-size:9px}.broth-controls input{width:80px}.delivery-canvas{top:152px;height:305px;left:5px;width:calc(100% - 10px)}.map-controls label{font-size:9px;gap:4px}.map-controls input{width:12px;height:12px}
.fortune-stage{inset:134px 15px 60px}.fortune-cookie{width:220px;top:93px}.fortune-slip{left:4%;right:4%;padding:15px}.fortune-slip p{font-size:12px;min-height:43px}.cookie-crumbs{top:165px}.cracked .cookie-left{transform:translate(-38px,27px) rotate(-16deg)}.cracked .cookie-right{transform:translate(38px,27px) rotate(16deg)}
.effect-lab-note{display:block;font-size:10px}.effect-lab-note>p{max-width:none}.effect-lab-note>a{display:inline-block;margin-top:6px}.original-effects{padding-bottom:36px}}
@media(prefers-reduced-motion:reduce){.cookie-left,.cookie-right,.fortune-slip{transition:none}.cookie-crumbs i{animation:none;display:none}}
/* Stretch the active effect to match the explanation panel. */
.effect-stage{height:auto;min-height:598px}
.effect-stage>div{position:absolute;inset:0;height:auto}
.atmosphere-effect{background:radial-gradient(ellipse at 52% 60%,#352719,#110e0a 80%)}
.atmosphere-effect .effect-title>span{color:#a58c6f}
.atmosphere-effect .effect-title h3{color:#fff0d9}
.atmosphere-effect .effect-title p{color:#af9575}
.soup-film{mix-blend-mode:lighten}
.film-credit,.film-control>span{color:#b49c7d}
.film-control button{background:#33271a;border-color:#796044;color:#e8cfab}
@media(max-width:760px){.effect-stage{height:520px;min-height:520px}}
.broth-canvas{height:calc(100% - 222px)}
.delivery-canvas{height:calc(100% - 230px)}
.broth-controls button:hover,.map-controls button:hover{background:#254757;color:#d7f8ff}
@media(max-width:760px){.broth-canvas{height:322px}.delivery-canvas{height:305px}}
