
:root{--cocoa:#5c3a1e;--wood:#b9834c;--cream:#fff7ea;--mint:#cce6d3;--green:#35764b;--line:#82552e;--font:"Avenir Next Rounded","Arial Rounded MT Bold",ui-rounded,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--cocoa);font-family:var(--font);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 50% 20%,#f5cf92,#dba76a);min-width:280px}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled,input:disabled{cursor:wait;opacity:.55}
button:focus-visible,input:focus-visible{outline:3px solid #225f49;outline-offset:4px}
button{touch-action:manipulation}
button:hover{filter:brightness(1.04)}
.shell{width:min(1600px,100%);min-height:100svh;margin:auto;padding:22px 28px 18px;display:flex;flex-direction:column;gap:16px}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:18px}
.brand h1{font-size:34px;line-height:1;margin:0;letter-spacing:-1.2px;text-shadow:0 2px #fff5df;font-weight:900}
.tagline{border-left:1px solid #a47442;padding-left:18px;font-size:12px;line-height:1.5;font-weight:650}
.tagline strong{display:block;font-size:14px}
.private{font-size:10px;letter-spacing:1.4px;font-weight:800;display:flex;gap:7px;align-items:center}
.private:before{content:"";width:7px;height:7px;background:var(--green);border-radius:50%}
.scene{position:relative;min-height:390px;height:calc(100svh - 302px);flex:1;isolation:isolate}
.interior{position:absolute;inset:16px;border-radius:28px;background:var(--mint);overflow:hidden}
.ambient{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,#e0efdb88,transparent 65%)}
.frame{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:8;overflow:visible}
.plaque{position:absolute;left:50%;top:3px;transform:translateX(-50%);z-index:9;border:2px solid var(--cocoa);border-radius:6px;background:#946132;color:var(--cream);font-size:10px;font-weight:800;letter-spacing:2px;padding:5px 17px;white-space:nowrap}
#catWrap{position:absolute;left:50%;top:52%;transform-origin:center;will-change:transform;pointer-events:none}
#catInner{transform-origin:50% 62%;will-change:transform}
#catImg{width:100%;height:auto;display:block;user-select:none;-webkit-user-drag:none;mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 10%,#000 90%,transparent);mask-composite:intersect}
.stage-info{position:absolute;top:43px;left:43px;z-index:10;max-width:46%}
.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:850;text-transform:uppercase}
.stage-info h2{margin:8px 0 5px;font-size:clamp(18px,2.5vw,32px);line-height:1.1;font-weight:900;letter-spacing:-.7px}
.stage-info p{font-size:12px;margin:0;line-height:1.5}
.readout{position:absolute;right:35px;top:37px;z-index:10;text-align:right;background:#fffaf0f5;border:2px solid var(--line);border-radius:15px;padding:12px 17px;box-shadow:0 4px 0 #5c3a1e26;min-width:190px}
#mcValue{display:block;font-size:32px;font-weight:850;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin-top:3px}
.readout small{font-size:10px;display:block;border-top:1px dashed #cba777;margin-top:7px;padding-top:6px}
.scene-note{position:absolute;bottom:34px;left:43px;font-size:11px;font-weight:700;z-index:10}
.scene-note span{display:block;font-size:10px;font-weight:500;margin-top:4px}
.sound{position:absolute;bottom:31px;right:35px;z-index:10;border:1.5px solid var(--line);border-radius:30px;background:#fffaf0d9;padding:10px 14px;font-size:11px;font-weight:750;min-height:40px}
.cracks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;opacity:0;fill:none;stroke:#fff9ed;stroke-width:2;filter:drop-shadow(1px 1px #668773);transition:opacity .08s}
.snacks{position:absolute;inset:0;pointer-events:none;z-index:6;overflow:hidden}
.cracker{position:absolute;left:0;top:0;width:23px;height:27px;background:radial-gradient(#845427 1.2px,transparent 1.8px) 3px 3px/7px 7px,#dfaf67;border:2px solid #9d6732;border-radius:4px;box-shadow:inset 0 0 0 2px #f2cd88}
.smoke{position:absolute;inset:0;z-index:7;pointer-events:none;overflow:hidden;opacity:0}
.smoke.on{opacity:1}
.smoke .veil{position:absolute;inset:0;background:#fff8e9;opacity:0}
.smoke.on .veil{animation:veil var(--duration) linear both}
.puff{position:absolute;border-radius:50%;background:radial-gradient(ellipse at 35% 25%,#fffefa,#f2e6cd 72%,#e6d7bd);opacity:0;box-shadow:inset -9px -10px 20px #c1b19528}
.smoke.on .puff{animation:puff var(--duration) ease-out both}
.smoke.down .puff{animation-name:puffBack}
.poof-label{position:absolute;z-index:11;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-5deg);pointer-events:none;text-align:center;opacity:0;color:var(--cocoa);max-width:90%;width:max-content;text-shadow:0 2px #fffaf1}
.poof-label strong{display:block;font-size:clamp(38px,6vw,72px);letter-spacing:-3px;line-height:1;font-weight:950}
.poof-label span{display:block;margin-top:10px;font-size:14px;font-weight:900;background:var(--cream);border:2px solid var(--cocoa);border-radius:9px;padding:9px 16px}
.poof-label.show{animation:banner var(--duration) ease-out both}
@keyframes veil{0%,10%{opacity:0}32%,62%{opacity:1}100%{opacity:0}}
@keyframes puff{0%{opacity:0;transform:translate(calc(var(--dx)*-.25),calc(var(--dy)*-.25)) scale(.2)}28%{opacity:1}48%{opacity:1;transform:translate(0,0) scale(1.6)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(2.1)}}
@keyframes puffBack{0%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(2.1)}30%,60%{opacity:1;transform:translate(0,0) scale(1.6)}100%{opacity:0;transform:translate(calc(var(--dx)*-.25),calc(var(--dy)*-.25)) scale(.2)}}
@keyframes banner{0%,22%{opacity:0;transform:translate(-50%,-50%) scale(.8) rotate(-5deg)}40%,78%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(-5deg)}100%{opacity:0;transform:translate(-50%,-55%) scale(1.04) rotate(-5deg)}}
.controls{position:relative;z-index:20;border:2px solid var(--line);border-radius:18px;background:var(--cream);box-shadow:0 5px 0 #94613245;padding:17px 22px 14px}
.control-top{display:flex;align-items:center;gap:28px}
.control-copy{flex:0 0 180px}
.control-copy strong{font-size:14px;display:block;letter-spacing:-.3px}
.control-copy span{font-size:11px;display:block;margin-top:4px;color:#806044}
.slider-area{flex:1;min-width:80px}
#mcSlider{width:100%;height:28px;appearance:none;background:transparent;margin:0;cursor:ew-resize}
#mcSlider::-webkit-slider-runnable-track{height:10px;background:linear-gradient(90deg,#bda57b,#82bc92);border:1.5px solid var(--line);border-radius:20px}
#mcSlider::-webkit-slider-thumb{appearance:none;width:25px;height:25px;background:#fffdf6;border:3px solid var(--cocoa);border-radius:50%;margin-top:-9px;box-shadow:0 3px 0 #66442440}
#mcSlider::-moz-range-track{height:8px;background:linear-gradient(90deg,#bda57b,#82bc92);border:1.5px solid var(--line);border-radius:20px}
#mcSlider::-moz-range-thumb{width:20px;height:20px;background:#fffdf6;border:3px solid var(--cocoa);border-radius:50%}
.slider-labels{display:flex;justify-content:space-between;font-size:10px;font-weight:700;margin-top:1px}
.number-field{flex:0 0 170px}
.number-field label{display:block;font-size:9px;letter-spacing:1.2px;font-weight:800;margin-bottom:5px}
.input-wrap{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:9px;background:white;padding-left:11px}
.input-wrap span{font-size:14px;font-weight:750}
#mcInput{width:100%;min-width:0;border:0;background:transparent;border-radius:9px;padding:8px 6px;font-size:14px;font-weight:750;font-variant-numeric:tabular-nums;min-height:37px}
.ladder{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:16px;border-top:1px solid #e0cfb8;padding-top:13px}
.step{background:transparent;text-align:left;border:1.5px solid transparent;border-radius:9px;padding:8px 9px;min-height:53px;transition:background .15s,border-color .15s}
.step .stage-num{display:inline-flex;border:1px solid #9e805e;width:17px;height:17px;border-radius:50%;align-items:center;justify-content:center;font-size:9px;margin-right:5px;vertical-align:middle}
.step strong{font-size:10px;line-height:1.4;font-weight:800}
.step small{display:block;font-size:10px;margin-left:23px;margin-top:3px;color:#806044}
.step[aria-pressed="true"]{border-color:#6d9e7a;background:#e2edda}
.step[aria-pressed="true"] .stage-num{background:var(--green);color:#fff;border-color:var(--green)}
.foot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:10px;padding:0 4px;color:#714d2b}
.foot p{margin:0}
#message{font-weight:650}
#message.error{color:#9b3225}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(min-width:1700px){
.scene{flex:none;height:720px}
.shell{justify-content:center}
}
@media(max-width:850px){
.shell{padding:16px 14px;gap:12px}
.brand{gap:12px}
.brand h1{font-size:28px}
.tagline{padding-left:12px;font-size:10px}
.tagline strong{font-size:12px}
.private{font-size:9px}
.control-copy{flex-basis:140px}
.control-top{gap:16px}
.controls{padding:14px}
.step{padding:7px 4px}
.step strong{font-size:9px}
.step small{margin-left:0;font-size:9px}
.stage-info{left:33px}
.readout{right:29px}
.scene-note{left:33px}
.sound{right:29px}
.scene{height:calc(100svh - 295px)}
}
@media(max-width:600px){
.shell{padding:16px 8px 14px;gap:10px}
.masthead{padding:0 8px;gap:9px}
.brand{gap:10px}
.brand h1{font-size:27px}
.tagline{font-size:9px;padding-left:10px}
.tagline strong{font-size:10px}
.private{width:100%;font-size:8px;letter-spacing:1.1px}
.scene{height:calc(100svh - 369px);min-height:350px}
.stage-info{top:45px;left:28px;max-width:calc(100% - 199px)}
.stage-info h2{font-size:19px;letter-spacing:-.5px;margin:6px 0 4px}
.stage-info .eyebrow{font-size:8px;letter-spacing:1.3px}
.stage-info p{font-size:10px}
.readout{right:27px;top:39px;padding:9px 10px;min-width:122px;max-width:43%;border-radius:12px}
.readout .eyebrow{font-size:7px;letter-spacing:1px}
#mcValue{font-size:23px}
.readout small{font-size:8px;margin-top:5px;padding-top:4px}
.scene-note{left:28px;bottom:30px;font-size:9px;max-width:51%}
.scene-note span{font-size:8px;line-height:1.4}
.sound{right:27px;bottom:27px;padding:9px 11px;font-size:9px;min-height:36px}
.plaque{font-size:8px;padding:5px 13px}
.controls{padding:12px;border-radius:15px}
.control-top{display:grid;grid-template-columns:1fr 127px;gap:10px}
.control-copy{grid-column:1;font-size:12px}
.control-copy strong{font-size:12px}
.control-copy span{font-size:10px}
.number-field{grid-column:2;grid-row:1}
.number-field label{font-size:8px}
.slider-area{grid-column:1/-1}
.slider-labels{font-size:9px}
.ladder{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:10px;padding-top:9px}
.step{padding:5px;min-height:47px}
.step strong{font-size:9px}
.step small{font-size:9px;margin-left:22px}
.foot{font-size:9px;padding:0 8px;gap:4px}
.poof-label span{font-size:11px}
.poof-label strong{font-size:48px}
}
@media(prefers-reduced-motion:reduce){
*,*::before,*::after{scroll-behavior:auto!important}
.smoke.on .puff,.poof-label.show{animation:none!important}
.smoke.on .veil{animation:none;opacity:.65}
.step,.cracks{transition:none}
.poof-label.show{opacity:1;transform:translate(-50%,-50%)}
.poof-label strong{display:none}
}
:root{--cocoa:#362517;--line:#38291d;--cream:#fff5d8;--green:#327b36}
body{background-color:#e8b363;background-image:radial-gradient(#79532825 .7px,transparent .8px),linear-gradient(115deg,#ecbe77,#d4a06a);background-size:5px 5px,100% 100%}
.shell{padding-bottom:25px}
.masthead{align-items:center}
.brand h1{font-size:43px;font-weight:950;letter-spacing:-2.2px;transform:rotate(-3deg);text-shadow:2px 3px #fff5d8,4px 5px #362517}
.private{background:#d1f45a;border:2px solid #362517;box-shadow:3px 3px #362517;padding:8px 12px;transform:rotate(2deg);font-size:9px}
.tagline{border-left:2px solid #362517}
.scene{height:calc(100svh - 365px);min-height:440px;flex:none}
.interior{background:#cce6d3}
.plaque{background:#362517;border-color:#362517;color:#e0fa5c;font-size:10px;transform:translateX(-50%) rotate(-2deg)}
.meme-stamp{position:absolute;left:50%;top:40px;transform:translateX(-50%) rotate(-7deg);z-index:9;font-size:clamp(18px,2vw,29px);font-weight:950;line-height:.88;letter-spacing:-1.4px;color:#31503e;opacity:.8;pointer-events:none}
.stage-info h2{font-style:italic;font-weight:950;text-transform:uppercase;text-shadow:1px 2px #fff5d8;letter-spacing:-1.4px}
.readout{border:2.5px solid #362517;border-radius:3px;box-shadow:5px 5px #362517;transform:rotate(2deg)}
.readout .eyebrow{font-weight:950}
.readout small{font-weight:800}
.stage-info{max-width:34%}
.scene-note{font-weight:850;font-style:italic;font-size:13px}
.scene-note span{font-size:10px;font-weight:650}
#catWrap{pointer-events:auto;cursor:grab;outline-offset:-30px;touch-action:manipulation;top:50%;will-change:transform}
#catWrap:active{cursor:grabbing}
#catLife,#catGag,#catInner{width:100%;height:100%;transform-origin:50% 62%;will-change:transform}
#catImg{width:100%;height:100%;mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent),linear-gradient(transparent,#000 6%,#000 94%,transparent);pointer-events:none}
#faceRig{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
#mouthG,#eyes,#sleepy{opacity:0}
#speech{position:fixed;z-index:18;max-width:190px;padding:7px 12px;border:2px solid #362517;background:#fff7db;font-weight:900;font-size:12px;transform:rotate(-6deg);box-shadow:3px 3px #362517;pointer-events:none;opacity:0;transition:opacity .12s}
#speech:after{content:"";position:absolute;bottom:-9px;left:var(--speech-tail,50%);width:12px;height:12px;background:#fff7db;border-right:2px solid #362517;border-bottom:2px solid #362517;transform:rotate(45deg)}
.controls{border:3px solid #362517;border-radius:4px;box-shadow:6px 6px #362517;margin-right:255px;padding:13px 17px;transform:rotate(-.3deg);background-image:radial-gradient(#8b6f3820 .6px,transparent .9px);background-size:4px 4px}
.control-copy{flex-basis:168px}
.control-copy strong{font-size:13px;font-weight:950}
.control-copy span{line-height:1.4}
.control-top{gap:20px}
.step{border-radius:2px;border-color:#8a734250}
.step[aria-pressed="true"]{background:#d6f567;border:2px solid #362517;box-shadow:2px 2px #362517;transform:rotate(-2deg)}
.step small{font-size:9px}
.step strong{font-size:9px}
.ladder{gap:5px;padding-top:10px;margin-top:10px}
.feed-row{display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
#mood{font-size:10px;font-weight:850;font-style:italic;flex:1;min-width:90px}
.sound{border-radius:3px;border:2px solid #362517;background:#fff5d8;box-shadow:2px 2px #362517;font-weight:850}
.foot{margin-right:255px;margin-top:2px}
#moneyPath{position:fixed;right:24px;bottom:25px;width:232px;z-index:1000;isolation:isolate;display:flex;flex-direction:column;gap:7px;transform:rotate(1deg)}
#buyBtn{width:100%;min-height:62px;background:#d7f65d;color:#28311a;border:3px solid #302718;border-radius:4px;box-shadow:4px 4px #302718;font-size:21px;letter-spacing:-.5px;font-weight:950;cursor:default;opacity:1}
#buyBtn small{display:block;font-size:9px;letter-spacing:2px;margin-top:3px}
#caRow{background:#fff5d8;color:#362517;border:2px solid #302718;padding:10px 9px;box-shadow:3px 3px #302718;font-size:9px;display:flex;align-items:center;gap:8px;white-space:nowrap;min-height:37px}
#caRow b{background:#362517;color:#fff5d8;padding:3px}
#caText{font-family:ui-monospace,Menlo,monospace;font-size:8px;font-weight:750}
#crackLayer{position:absolute;inset:0;width:100%;height:100%;z-index:15;pointer-events:none;display:none}
#crackFlash{position:absolute;inset:0;z-index:16;pointer-events:none;background:#fffaf066;opacity:0;display:none;transition:opacity .55s}
#crackLayer.jolt{animation:crackJolt .3s linear}
@keyframes crackJolt{0%,100%{transform:translate(0)}18%{transform:translate(-3px,2px)}38%{transform:translate(3px,-2px)}58%{transform:translate(-2px,1px)}}
.stage-info,.readout,.scene-note,.sound,.plaque,.meme-stamp{z-index:30}
#snacks{z-index:17}
.particle{position:absolute;pointer-events:none;width:10px;height:12px;border:1px solid #754c27;background:#eac26f;will-change:transform;box-shadow:1px 1px #53381b55}
.particle.heart{width:auto;height:auto;border:0;background:none;color:#ec6684;font-size:18px;box-shadow:none}
.particle.spark{background:#e6ff76;clip-path:polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%);border:0}
.particle.shard{background:#e7f4fcbb;clip-path:polygon(0 0,100% 30%,35% 100%);border:0}
.flying-snack{position:absolute;width:34px;height:38px;pointer-events:none;will-change:transform}
.flying-snack svg{width:100%;height:100%;overflow:visible}
.flying-snack.tower{filter:drop-shadow(0 0 5px #ffd85f88)}
#gagLayer{position:absolute;inset:0;z-index:19;pointer-events:none;overflow:hidden;display:none}
#gagCover{position:absolute;inset:0;background:#e5bb70;opacity:0}
#gagClouds{position:absolute;inset:0}
.gag-cloud{position:absolute;border-radius:45% 55% 48% 52%;background:radial-gradient(at 30% 25%,#f6edc9,#d4d9bc);border:1px solid #918c6620;opacity:0}
#gagProp{position:absolute;left:50%;top:0;transform-origin:center;z-index:2}
#gagProp.smash{width:250px;height:280px;background:radial-gradient(#6b431f 3px,transparent 4px) 0 0/35px 35px,#d79c50;border:7px solid #71441f;border-radius:18px;box-shadow:inset 0 0 0 8px #f2c67b,8px 8px #39271655}
#gagProp.smash:after{content:"GRAHAM'S";position:absolute;top:45%;left:0;width:100%;text-align:center;font-weight:950;color:#895725;font-size:22px;letter-spacing:2px;transform:rotate(-10deg)}
#gagProp.canister{width:48px;height:85px;background:repeating-linear-gradient(-45deg,#e5f05c 0 12px,#29382a 12px 24px);border:4px solid #29382a;border-radius:10px;box-shadow:inset -7px 0 #0003}
#gagProp.canister:before{content:"";position:absolute;left:8px;top:-16px;border:3px solid #29382a;width:22px;height:20px;border-radius:8px}
#gagProp.pin{width:9px;height:85px;background:#7a5c51;border:2px solid #362517;border-radius:90% 90% 0 0}
#gagProp.pin:after{content:"";position:absolute;bottom:-19px;left:-9px;width:25px;height:25px;background:#ed748b;border:3px solid #362517;border-radius:50%}
#gagProp.deflate{width:90px;height:55px;border:4px solid #362517;border-radius:50%;background:#a7c9c4;box-shadow:inset -10px -5px #729796}
#gagWord{position:absolute;left:50%;top:47%;color:#382718;font-size:clamp(40px,6vw,86px);font-weight:950;letter-spacing:-4px;line-height:1;text-shadow:4px 4px #fff6d7;transform:translate(-50%,-50%) rotate(-10deg);opacity:0}
@media(max-width:1100px){
.controls,.foot{margin-right:0}
.shell{padding-bottom:145px}
.scene{height:calc(100svh - 455px)}
.control-copy{flex-basis:160px}
.meme-stamp{top:31px;font-size:19px}
.stage-info h2{font-size:23px}
#moneyPath{bottom:14px;right:18px}
}
@media(max-width:600px){
.shell{padding:16px 8px 115px}
.brand h1{font-size:33px}
.private{width:auto;font-size:7px;padding:6px 8px}
.masthead{gap:10px}
.scene{min-height:380px;height:calc(100svh - 420px)}
.meme-stamp{display:none}
.stage-info{left:28px;top:43px;max-width:calc(100% - 176px)}
.stage-info h2{font-size:17px;letter-spacing:-.6px;overflow-wrap:anywhere}
.readout{right:25px;min-width:108px;max-width:39%;padding:8px;top:42px}
.readout .eyebrow{font-size:6px}
#mcValue{font-size:21px}
.readout small{font-size:7px}
.scene-note{font-size:10px;max-width:55%}
.scene-note span{font-size:8px}
.sound{font-size:9px;right:26px}
.plaque{font-size:8px}
.controls{padding:11px}
.control-top{gap:10px;grid-template-columns:1fr 126px}
.control-copy strong{font-size:11px}
.control-copy span{font-size:9px}
.feed-row{gap:9px}
#mood{width:100%;flex:auto;text-align:center;font-size:10px}
.step strong{font-size:8px}
.step small{font-size:8px}
.ladder{gap:5px}
.foot{font-size:8px;line-height:1.4}
#moneyPath{left:10px;right:10px;bottom:9px;width:auto;transform:none;gap:5px;background:#e3b879;padding:4px;box-shadow:0 0 0 6px #e3b879}
#buyBtn{min-height:40px;font-size:17px}
#buyBtn small{display:inline;font-size:7px;margin-left:10px;letter-spacing:1px}
#caRow{min-height:25px;padding:3px 8px;justify-content:center}
#caText{font-size:8px}
#speech{font-size:10px;max-width:135px}
#gagProp.smash{width:180px;height:210px}
#gagWord{font-size:52px}
}
@media(prefers-reduced-motion:reduce){
#earPatch,#tailPatch{transform:none!important}
#crackLayer.jolt{animation:none}
#crackFlash{display:none!important}
#speech{transition:none}
}
#zzz{position:absolute;z-index:24;pointer-events:none;opacity:0;color:#fff5d8;-webkit-text-stroke:1px #362517;font-weight:950;font-size:40px;line-height:1;transform:rotate(-12deg);text-shadow:3px 3px #362517}
#zzz span{font-size:28px;display:inline-block;transform:translateY(-15px)}
#zzz small{font-size:19px;display:inline-block;transform:translateY(-28px)}
#crackLayer{opacity:.78}
#caText{font-size:11px}
#caRow b{font-size:10px}
@media(max-width:600px){
#buyBtn small{font-size:9px}
}
html,body{height:100%;overflow:hidden;background:#cce6d3}
/* One containing block for the frame, floor and formerly viewport-fixed HUD. */
body{position:fixed;inset:0;width:100%;height:var(--graham-viewport-height,100dvh);contain:layout}
.cat-geometry-point{position:absolute;width:0;height:0;pointer-events:none;visibility:hidden}
.shell{display:block;width:100%;max-width:none;height:var(--graham-viewport-height,100dvh);min-height:0;margin:0;padding:0}
.scene{position:fixed;inset:0;width:100%;height:var(--graham-viewport-height,100dvh);min-height:0;margin:0;border-radius:0}
.interior{border-radius:8px}
.plaque{font-size:8px;padding:3px 12px;letter-spacing:1.6px}
.masthead{position:fixed;z-index:100;top:37px;left:38px;display:block;margin:0;max-width:260px;pointer-events:none}
.brand{display:block}
.brand h1{font-size:30px;letter-spacing:-1px;transform:none;text-shadow:0 2px #fff7ea}
.tagline{border:0;padding:0;font-size:11px;margin-top:6px;line-height:1.6}
.tagline strong{font-size:13px}
.socials{display:flex;gap:6px;margin-top:10px;pointer-events:auto}
.socials a{display:inline-flex;align-items:center;justify-content:center;color:inherit;font-family:inherit;text-decoration:none;box-sizing:border-box}
.socials :is(button,a){background:#fff7eae8;border:1px solid #82552e;border-radius:7px;font-size:11px;padding:5px 9px;box-shadow:0 2px #5c3a1e15}
.readout{position:fixed;z-index:100;top:36px;right:38px;left:auto;transform:none;min-width:180px;max-width:none;width:auto;padding:11px 15px;border:1.5px solid #82552e;border-radius:12px;background:#fffaf0f5;box-shadow:0 3px #5c3a1e18}
.readout .eyebrow{font-size:9px;letter-spacing:1.5px}
#mcValue{font-size:29px;line-height:1.1;margin:5px 0}
#weightValue{font-size:17px;font-weight:800}
#stageName{font-size:11px;margin-top:3px;font-weight:650}
#moneyPath{position:fixed;z-index:1000;right:38px;bottom:36px;left:auto;width:220px;margin:0;padding:0;background:none;border:0;box-shadow:none;transform:none}
#buyBtn{width:100%;border:2px solid #1f6330;border-radius:13px;background:linear-gradient(#4cbb63,#2e8c42);color:white;font-size:19px;padding:12px 10px;box-shadow:0 4px 0 #1f63303b;transform:none}
#buyBtn small{font-size:8px;letter-spacing:1px;margin-top:3px}
#caRow{background:#fffaf0f5;border:1px solid #82552e;border-radius:7px;margin-top:9px;padding:7px 9px;gap:7px}
#caText{font-size:10px;white-space:nowrap}
#caRow b{font-size:10px}
@media(max-width:600px){
.masthead{top:32px;left:30px;max-width:145px}
.brand h1{font-size:23px}
.tagline{font-size:9px;max-width:130px}
.tagline strong{font-size:10px}
.socials{gap:4px;margin-top:7px}
.socials :is(button,a){font-size:9px;padding:4px 6px}
.readout{top:32px;right:30px;min-width:0;width:125px;padding:9px 10px}
.readout .eyebrow{font-size:8px;letter-spacing:1px}
#mcValue{font-size:23px}
#weightValue{font-size:14px}
#stageName{font-size:9px}
#moneyPath{right:30px;bottom:30px;left:auto;width:198px}
#buyBtn{font-size:17px;padding:10px}
#buyBtn small{font-size:8px}
.plaque{font-size:7px;padding:2px 9px}
}
@media(max-width:350px){
.masthead{left:27px;max-width:130px}
.brand h1{font-size:21px}
.readout{right:27px;width:116px}
#mcValue{font-size:21px}
#moneyPath{right:27px;width:190px}
#caText{font-size:9px}
}
@media(max-height:450px){
.masthead{top:30px}
.readout{top:30px}
#moneyPath{bottom:28px}
}
#buyBtn small{display:block;white-space:nowrap}
#gagProp.batch-prop{width:min(42vw,400px);height:auto;background:none;border:0;box-shadow:none;border-radius:0;filter:drop-shadow(4px 6px 0 #37263640)}
#gagProp.batch-prop:before,#gagProp.batch-prop:after{display:none}
#gagProp.batch-prop svg{display:block;width:100%;height:auto;overflow:visible}
#gagProp.rocket{width:clamp(100px,14vw,180px)}
#gagProp.green{width:clamp(200px,30vw,360px)}
#gagProp.red{width:clamp(110px,15vw,180px)}
#gagProp.trapdoor{width:min(85vw,650px)}
#gagProp.paper{width:clamp(250px,45vw,580px)}
#gagWord{z-index:5;width:max-content;max-width:85%;font-size:clamp(25px,5.5vw,78px);letter-spacing:-1.8px;text-align:center;overflow-wrap:normal;line-height:1.05}
.brand h1{font-weight:950;letter-spacing:-1.8px;transform:rotate(-2deg);text-shadow:2px 2px #f0dfac}
#crackLayer{opacity:.38;mask-image:radial-gradient(ellipse at 57% 46%,transparent 8%,#0005 38%,#000 78%)}
.club-button,#sessionDownload{border:2px solid #463426;background:#fff6df;color:#392b20;padding:10px 12px;border-radius:8px;font:800 12px var(--font);cursor:pointer;text-decoration:none;min-height:44px;box-shadow:2px 3px #46342622}
#clubPanel{position:fixed;left:38px;bottom:155px;width:min(360px,calc(100vw - 60px));max-height:calc(100svh - 190px);overflow:auto;z-index:240;background:#fff8e9;border:2px solid #463426;border-radius:12px;box-shadow:6px 8px #46342630;padding:18px;box-sizing:border-box}
#clubPanel[hidden]{display:none}
#clubPanel h2{font-size:25px;letter-spacing:-1px;margin:6px 36px 8px 0}
#clubPanel p{font-size:13px;line-height:1.45}
#clubPanel small{font-size:11px;line-height:1.45;display:block}
#closeClub{position:absolute;right:10px;top:10px;border:0;background:transparent;font-size:24px;cursor:pointer;width:36px;height:36px}
#clubPanel progress{width:100%;accent-color:#547345}
#clubPanel button,#clubPanel a{margin-top:6px}
#clubPanel details{border-top:1px solid #d5c5a8;padding-top:12px;margin-top:14px}
#clubPanel summary{font-size:13px;font-weight:800;cursor:pointer}
#clubPanel textarea{box-sizing:border-box;width:100%;min-height:70px;background:#fffdf6;border:1px solid #b7a283;border-radius:6px;padding:8px;font:12px var(--font)}
#clubStatus{min-height:18px;font-size:11px}
#sessionDownload{display:inline-block}
#sessionDownload[hidden]{display:none}
#couchBadge{position:absolute;left:50%;top:64%;transform:translateX(-50%) rotate(-9deg);padding:5px 10px;background:#e5ee89;color:#392b20;border:2px solid #392b20;border-radius:7px;font-size:clamp(9px,1.2vw,16px);font-weight:950;white-space:nowrap;pointer-events:none}
#couchBadge[hidden]{display:none}
@media(max-width:600px){
#clubPanel{left:30px;bottom:207px;max-height:calc(100svh - 245px);padding:14px}
#speech{max-width:180px}
}
@media(max-height:450px){
#clubPanel{bottom:95px;max-height:calc(100svh - 125px)}
}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #315e51;outline-offset:3px}
#bottomRail{position:fixed;left:38px;right:38px;bottom:28px;z-index:1050;display:flex;align-items:center;gap:12px;height:48px}
#bottomRail #mcSlider{flex:1;min-width:30px;height:44px;margin:0}
#bottomRail #mcSlider::-webkit-slider-runnable-track{height:4px;border:0;background:#748d6e80;border-radius:5px}
#bottomRail #mcSlider::-webkit-slider-thumb{width:19px;height:19px;border:2px solid #463426;background:#fff7e5;margin-top:-8px;box-shadow:0 2px 0 #46342625}
#bottomRail #mcSlider::-moz-range-track{height:4px;border:0;background:#748d6e80}
#bottomRail #mcSlider::-moz-range-thumb{width:15px;height:15px;border:2px solid #463426;background:#fff7e5}
#bottomRail button{position:static;transform:none;flex:0 0 44px;min-width:44px;width:44px;height:44px;border:1px solid #6b583d70;border-radius:50%;background:#fff8e5ed;color:#392b20;display:grid;place-items:center;padding:10px;cursor:pointer;box-shadow:none}
#bottomRail button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#bottomRail button:disabled{opacity:.45;cursor:wait}
#soundButton[aria-pressed=true] .sound-waves{display:none}
#soundButton:not([aria-pressed=true]) .sound-slash{display:none}
#moneyPath{bottom:98px}
#speech{z-index:90}
#photoBooth{box-sizing:border-box;width:min(380px,calc(100vw - 60px));max-height:calc(100svh - 220px);overflow:auto;border:1.5px solid #6b583d;border-radius:12px;background:#fff9ec;color:#392b20;padding:14px;box-shadow:0 12px 50px #392b2040}
#photoBooth::backdrop{background:#27433133}
#photoBooth h2{font:900 21px var(--font);margin:0 34px 10px 0}
#photoBooth p{font:12px/1.4 var(--font);margin:9px 0}
#photoBooth img{display:block;width:100%;max-height:calc(100svh - 370px);object-fit:contain}
#photoBooth img[hidden]{display:none}
#photoClose{position:absolute;right:8px;top:7px;width:36px;height:36px;border:0;background:transparent;font-size:25px;color:inherit;cursor:pointer}
.photo-actions{display:flex;gap:8px;justify-content:center;margin-top:12px}
.photo-actions a,.photo-actions button{font:800 12px var(--font);border:1px solid #6b583d;background:#e3edbd;color:inherit;border-radius:7px;min-height:44px;padding:12px 16px;box-sizing:border-box;text-decoration:none;cursor:pointer}
.photo-actions [hidden]{display:none}
@media(max-width:600px){
#bottomRail{left:30px;right:30px;bottom:25px;gap:9px}
#moneyPath{bottom:91px}
#speech{bottom:auto}
#photoBooth{max-height:calc(100svh - 205px)}
}
@media(max-height:500px){
#bottomRail{bottom:20px;right:280px}
#moneyPath{bottom:26px}
#photoBooth{max-height:calc(100svh - 46px);width:290px}
#photoBooth img{max-height:calc(100svh - 170px)}
}
#escapeMotion{position:absolute;inset:0;transform-origin:50% 65%;pointer-events:none}
#finaleLayer>#escapeMotion{z-index:4}
#fx-broken{z-index:6!important}
#escapeMotion #catWrap{pointer-events:auto}
#finaleLayer{position:fixed;inset:0;z-index:40;pointer-events:none;overflow:hidden}
#finaleLayer[hidden]{display:none}
#fx-darkness{position:absolute;inset:0;background:#050607;opacity:0}
#fx-head{position:absolute;left:50%;top:48%;width:min(126vw,1200px);aspect-ratio:1000/730;transform:translate(-50%,-50%);opacity:0;pointer-events:none}
#fx-head svg{display:block;width:100%;height:100%;overflow:visible}
.finale-portrait{mask:url(#fx-fadeHead)}
#fx-portrait,#fx-eyeGlow{opacity:0}
#fx-head[data-pettable=true]{pointer-events:auto;cursor:grab;touch-action:manipulation}
#fx-head:focus-visible{outline:2px solid #efdbb7;outline-offset:-30px}
#fx-siren{position:absolute;z-index:3;left:50%;top:68px;width:116px;height:135px;transform:translate(-50%,-240px);opacity:0}
#fx-siren svg{width:100%;height:100%;overflow:visible}
#fx-sirenHalo{position:absolute;inset:-100px;background:radial-gradient(ellipse,#e42c2935,transparent 65%)}
#fx-lampSweep{transform-origin:60px 81px}
#fx-food{position:absolute;inset:0;pointer-events:none}
.cyborg-cracker{position:absolute;width:58px;height:104px;pointer-events:none;transform:translate(-200px,-200px)}
.cyborg-cracker svg{width:100%;height:100%;overflow:visible}
#fx-laserFX,#fx-broken{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:hidden}
#fx-laserBeam,#fx-laserCharge,#fx-laserImpact{opacity:0}
#fx-broken{opacity:0}
#fx-caption{position:absolute;left:30px;bottom:150px;color:#e8d1ab;max-width:240px;font-size:11px;font-weight:850;letter-spacing:1px;opacity:0}
#fx-launch{position:absolute;left:38px;bottom:94px;z-index:5;display:flex;align-items:center;gap:8px;min-height:48px;border:1px solid #aa9069;border-radius:9px;background:#f5e4bf;color:#342a21;font:800 12px var(--font);padding:8px 13px;pointer-events:auto}
#fx-launch svg{width:48px;height:34px}
#fx-launch:disabled{opacity:0;pointer-events:none}
body.cyborg-mode .brand h1{color:#fff1d5;text-shadow:0 2px #0008}
body.cyborg-mode .tagline{color:#edd6b7}
body.cyborg-mode #speech,body.cyborg-mode #zzz,body.cyborg-mode .plaque{visibility:hidden}
body.cyborg-mode #catWrap{pointer-events:none!important}
body.cyborg-mode #mcSlider::-webkit-slider-runnable-track{background:#d4b08688}
@media(max-width:600px){
#fx-head{width:145vw;top:46%}
#fx-siren{top:155px;width:88px;height:103px}
#fx-launch{left:30px;bottom:100px;width:66px;height:61px;padding:8px;overflow:hidden;font-size:0;gap:0}
#fx-launch svg{min-width:48px;width:48px;height:39px}
#fx-caption{left:30px;bottom:196px;font-size:9px;max-width:220px}
}
@media(max-height:500px){
#fx-launch{bottom:80px}
#fx-caption{bottom:132px}
#fx-siren{top:110px}
}
#fx-launch{left:50%;transform:translateX(-50%);bottom:60px;width:300px;height:268px;z-index:7;display:block;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;filter:drop-shadow(5px 9px 3px #0005)}
#fx-launch svg{display:block;width:100%;height:100%;min-width:0;overflow:visible}
#fx-launch:focus-visible{outline:2px dashed #f4d79e;outline-offset:-20px;border-radius:18px}
#fx-caption{display:none}
@media(max-width:600px){
#fx-launch{left:50%;bottom:190px;width:clamp(104px,calc(38svh - 144px),180px);height:auto;aspect-ratio:380/340;padding:0;overflow:visible}
#fx-launch svg{width:100%;height:100%;min-width:0}
}
@media(max-height:500px){
#fx-launch{left:50%;bottom:54px;width:150px;height:134px}
}
#bottomRail #marketChartToggle{position:fixed;left:38px;bottom:111px;width:252px;height:94px;min-width:0;padding:12px;box-sizing:border-box;border:1px solid #637b5d;border-radius:10px;background:linear-gradient(145deg,#21382eeb,#101f19f2);display:block;text-align:left;opacity:.94;color:#8df2ae;box-shadow:inset 0 0 0 3px #ffffff05,0 5px 0 #2c382c35,0 10px 25px #20392b17;transition:opacity .18s}
#bottomRail #marketChartToggle:hover,#bottomRail #marketChartToggle[aria-expanded=true]{opacity:1}
#marketChartToggle:focus-visible{outline:2px solid #796348;outline-offset:6px}
#marketChartLabel{display:flex;align-items:center;justify-content:space-between;color:#b8cda9;font:800 10px ui-monospace,monospace;letter-spacing:1.3px;margin:0 0 10px}
#marketChartLabel::after{content:'●';color:#8df2ae;font-size:8px;text-shadow:0 0 7px #85ffad80}
#bottomRail #marketChartMini{display:block;width:228px;height:44px;stroke:none;fill:none;overflow:visible;background:repeating-linear-gradient(0deg,transparent 0 13px,#a1e6b509 13px 14px),repeating-linear-gradient(90deg,transparent 0 37px,#a1e6b509 37px 38px)}
#bottomRail #marketChartIcon{display:none}
#marketChartMini .chart-base{stroke:currentColor;stroke-width:1.8;opacity:.95}
#marketChartMini .chart-tip{stroke:currentColor;stroke-width:2;opacity:.65}
#marketChartMini .chart-dot{fill:currentColor;stroke:none;opacity:1;filter:drop-shadow(0 0 3px #8df2ae)}
#marketChartToggle.chart-pulse .chart-tip,#marketChartToggle.chart-pulse .chart-dot{animation:chart-breathe 1.1s ease-out}
@keyframes chart-breathe{0%{opacity:1;filter:drop-shadow(0 0 3px currentColor)}100%{opacity:.65;filter:none}}
#marketChartPanel{position:fixed;z-index:1040;box-sizing:border-box;width:520px;height:360px;padding:20px;display:flex;flex-direction:column;gap:10px;overflow:auto;overscroll-behavior:contain;border:1px solid #718767;border-radius:12px;background:linear-gradient(145deg,#1b3028f5,#0d1b17fa);color:#e6f3d8;box-shadow:inset 0 0 0 4px #b8e2aa07,0 18px 60px #10221866;backdrop-filter:blur(12px)}
#marketChartPanel[hidden]{display:none}
#marketChartPanel>*{flex-shrink:0}
#marketChartPanel header>div{min-width:0}
#marketChartPanel header{display:flex;align-items:start;justify-content:space-between;gap:12px}
#marketChartPanel h2{font:800 11px ui-monospace,monospace;letter-spacing:1.7px;color:#acd5ad;margin:0 0 5px}
#marketChartValue{display:block;font:900 32px ui-monospace,monospace;letter-spacing:-1px;line-height:1.05;color:#edffdb;margin-bottom:5px;font-variant-numeric:tabular-nums}
#marketChartSource{font-size:10px;color:#9cb09e;margin:0;line-height:1.4}
#marketChartClose{flex:none;width:34px;height:34px;border:1px solid #9cc49d55;border-radius:50%;background:#a6d9b00a;color:#c8e8c1;font-size:23px;line-height:1;cursor:pointer}
#marketChartRanges{display:flex;gap:6px}
#marketChartRanges button{min-width:48px;min-height:28px;padding:5px 10px;border:1px solid transparent;border-radius:5px;background:transparent;color:#a8c4ac;font:700 11px ui-monospace,monospace;cursor:pointer}
#marketChartRanges button[aria-pressed=true]{background:#8ceaac20;border-color:#8ceaac65;color:#c5ffd3}
#marketChartPlot{display:block;width:100%;flex:1 0 112px;min-height:112px;overflow:hidden;touch-action:pan-y}
#marketChartDetail{font:700 13px/1.4 ui-monospace,monospace;min-height:17px;margin:0;color:#c9ddbd;font-variant-numeric:tabular-nums}
#marketChartPanel :focus-visible{outline:2px solid #b5f5a5;outline-offset:3px}
.chart-line{filter:drop-shadow(0 0 2px #85ffad35)}
.chart-cracker{filter:drop-shadow(0 0 3px #ffdc8766)}
body:has(#marketChartToggle.chart-pulse) #marketChartPanel .chart-cracker{animation:chart-breathe 1.1s ease-out}
/* Keep the moving chart visible at every size and in the finale. */
body.cyborg-mode #bottomRail #marketChartToggle{width:164px;height:76px;padding:9px;border-radius:9px}
body.cyborg-mode #bottomRail #marketChartMini{width:100%;height:36px}
@media(max-width:600px){
#bottomRail #marketChartToggle,body.cyborg-mode #bottomRail #marketChartToggle{position:fixed;left:calc(20px + var(--safe-left));bottom:calc(98px + var(--safe-bottom));width:clamp(90px,calc(100vw - 250px - var(--safe-left) - var(--safe-right)),144px);height:68px;min-width:0;padding:8px;border-radius:9px}
#marketChartLabel{font-size:8px;letter-spacing:.7px;margin-bottom:7px}
#bottomRail #marketChartMini,body.cyborg-mode #bottomRail #marketChartMini{width:100%;height:32px}
#marketChartPanel{padding:16px;gap:10px;border-radius:13px}
#marketChartValue{font-size:28px}
}
@media(max-height:500px) and (min-width:601px){
#bottomRail #marketChartToggle,body.cyborg-mode #bottomRail #marketChartToggle{width:164px;height:66px;bottom:calc(80px + var(--safe-bottom));padding:8px}
#marketChartLabel{font-size:8px;margin-bottom:5px}
#bottomRail #marketChartMini,body.cyborg-mode #bottomRail #marketChartMini{width:100%;height:30px}
}
@media(max-height:650px){
#marketChartPanel{padding:12px;gap:6px}
#marketChartPanel header{gap:8px}
#marketChartPanel h2{font-size:9px;margin-bottom:3px}
#marketChartValue{font-size:22px;margin-bottom:3px}
#marketChartSource{font-size:9px}
#marketChartRanges button{min-height:24px;padding:3px 8px;font-size:10px}
#marketChartPlot{min-height:96px;flex-basis:96px}
#marketChartDetail{font-size:10px;min-height:14px}
#marketChartClose{width:28px;height:28px;font-size:19px}
}
@media(prefers-reduced-motion:reduce){
#bottomRail #marketChartToggle{transition:none}
#marketChartToggle.chart-pulse .chart-tip,#marketChartToggle.chart-pulse .chart-dot,body:has(#marketChartToggle.chart-pulse) #marketChartPanel .chart-cracker{animation:none}
}
#snackButton{position:fixed;z-index:1001;left:50%;top:72%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:9px 15px;border:2px solid #725436;border-radius:24px;background:#fff0cc;color:#453523;box-shadow:0 3px 0 #72543638;font:900 12px var(--font);letter-spacing:.4px;cursor:pointer;touch-action:manipulation}
#snackButton svg{width:26px;height:23px}
#snackButton:hover{background:#ffe5a8}
#snackButton:active{translate:0 2px;box-shadow:none}
#snackButton:focus-visible{outline:3px solid #4d8157;outline-offset:4px}
#snackButton:disabled{opacity:.5;cursor:default}
#snackButton[hidden]{display:none}
#couchBadge{padding:0;border:0;border-radius:0;background:none;box-shadow:none;width:clamp(130px,15vw,190px);white-space:normal;filter:drop-shadow(2px 3px 1px #392b2030);transform:translateX(-50%) rotate(-4deg)}
#couchBadge svg,#finalSnackBadge svg{display:block;width:100%;height:auto}
#finalSnackBadge{position:fixed;left:50%;transform:translateX(-50%) rotate(-4deg);width:170px;z-index:90;pointer-events:none;filter:drop-shadow(2px 3px 1px #0005)}
#finalSnackBadge[hidden]{display:none}
@media(max-width:600px){
#snackButton{min-height:44px;font-size:11px;padding:8px 12px;gap:5px}
#couchBadge{width:126px}
#finalSnackBadge{width:140px}
}
#couchBadge,#finalSnackBadge{pointer-events:auto;cursor:pointer;touch-action:manipulation}
#couchBadge:focus-visible,#finalSnackBadge:focus-visible{outline:3px solid #4d8157;outline-offset:4px}
.photo-actions{flex-wrap:wrap}
#catImg{mask-image:none;-webkit-mask-image:none}

/* HUD spacing is shared with radio placement; safe-area variables remain live on rotation. */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}
.masthead{top:calc(30px + var(--safe-top));left:calc(30px + var(--safe-left))}
.readout{top:calc(30px + var(--safe-top));right:calc(30px + var(--safe-right))}
#bottomRail{bottom:calc(28px + var(--safe-bottom));left:calc(38px + var(--safe-left));right:calc(38px + var(--safe-right))}
#moneyPath{right:calc(38px + var(--safe-right));bottom:calc(98px + var(--safe-bottom))}
#snackButton{padding-bottom:calc(9px + min(var(--safe-bottom),4px))}
#fx-launch{bottom:calc(60px + var(--safe-bottom))}
#bottomRail #marketChartToggle{left:calc(38px + var(--safe-left));bottom:calc(111px + var(--safe-bottom))}
#marketChartPanel{left:calc(38px + var(--safe-left));bottom:calc(219px + var(--safe-bottom));max-height:calc(100svh - 250px - var(--safe-top) - var(--safe-bottom))}
#clubPanel{left:50%;transform:translateX(-50%);bottom:calc(116px + var(--safe-bottom));width:min(360px,calc(100vw - 40px - var(--safe-left) - var(--safe-right)));max-height:calc(100svh - 200px - var(--safe-top) - var(--safe-bottom));z-index:1090}
@media(max-width:600px){
.masthead{top:calc(22px + var(--safe-top));left:calc(20px + var(--safe-left));max-width:140px}
.readout{top:calc(22px + var(--safe-top));right:calc(20px + var(--safe-right));width:125px}
.socials :is(button,a){min-height:36px;min-width:36px}
#bottomRail{left:calc(20px + var(--safe-left));right:calc(20px + var(--safe-right));bottom:calc(20px + var(--safe-bottom))}
#moneyPath{right:calc(20px + var(--safe-right));bottom:calc(86px + var(--safe-bottom))}
#bottomRail #marketChartToggle{left:calc(20px + var(--safe-left));bottom:calc(98px + var(--safe-bottom))}
#marketChartPanel{left:calc(20px + var(--safe-left));right:calc(20px + var(--safe-right));width:auto;bottom:calc(208px + var(--safe-bottom))}
#clubPanel{bottom:calc(200px + var(--safe-bottom));max-height:calc(100svh - 370px - var(--safe-top) - var(--safe-bottom))}
}
@media(max-height:500px) and (min-width:601px){
.masthead,.readout{top:calc(16px + var(--safe-top))}
#bottomRail #marketChartToggle{bottom:calc(80px + var(--safe-bottom))}
#bottomRail{bottom:calc(16px + var(--safe-bottom));right:calc(278px + var(--safe-right))}
#moneyPath{bottom:calc(24px + var(--safe-bottom))}
#clubPanel{bottom:calc(80px + var(--safe-bottom));max-height:calc(100svh - 110px - var(--safe-top) - var(--safe-bottom))}
}

#roomFloor{position:absolute;pointer-events:none;overflow:hidden}

/* Quiet playback strip; detailed controls expand on request. */
#musicAudition{position:fixed;z-index:990;top:var(--radio-top,calc(22px + env(safe-area-inset-top,0px)));left:50%;transform:translateX(-50%);width:270px;max-width:calc(100vw - 40px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));padding:5px 7px;border:1px solid #72826465;border-radius:10px;background:#f7f2e6d9;color:#283820;font:12px system-ui,sans-serif;pointer-events:auto}
#musicAudition .music-row{display:grid;grid-template-columns:72px minmax(0,1fr) 34px;gap:7px;align-items:center}
#musicAudition .radio-track{min-width:0}
#musicAudition .music-heading{display:block;font-size:8px;font-weight:750;letter-spacing:.12em;opacity:.7;margin-bottom:3px}
#musicAudition button{border:1px solid #71826640;border-radius:7px;background:#e8ebde80;color:#293e28;cursor:pointer;font:700 12px system-ui;min-height:34px;padding:4px 8px;white-space:nowrap}
#musicAudition #musicPlay{background:#dce5d5;color:#293e28;border:0}
#musicAudition #musicExpand{width:34px;font-size:17px;padding:0;background:transparent;border-color:transparent}
#musicAudition #musicExpand[aria-expanded=true]{background:#e8ebde;border-color:#71826655}
#musicAudition .radio-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:11px}
#musicAudition .radio-transport{display:flex;gap:5px}
#musicAudition #musicPrevious,#musicAudition #musicNext{width:34px;font-size:23px;padding:0}
#musicNow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650}
#musicStatus{font-size:10px;color:#58684b;min-height:14px;margin-top:7px}
#radioOptions{margin-top:7px;padding:8px 2px 2px;border-top:1px solid #77846640;max-height:max(90px,calc(100svh - var(--radio-top,22px) - 185px - env(safe-area-inset-bottom,0px)));overflow:auto}
#radioOptions[hidden],#musicRadioReturn[hidden]{display:none!important}
#musicAudition select{width:100%;height:38px;border:1px solid #53644155;border-radius:6px;background:#fffaf0;color:#243d2d;font:12px system-ui;padding:0 5px}
#musicAudition .radio-options-row{display:flex;gap:8px;margin:8px 0}
#musicAudition .radio-options-row button{flex:1}
#musicShuffle[aria-pressed=true]{background:#2e4935!important;color:#fff5dc!important}
#musicAudition .radio-volume{display:grid;grid-template-columns:48px 1fr;align-items:center;gap:9px;font-size:11px;margin:5px 0}
#musicAudition input{width:100%;min-width:0;height:26px;margin:0;accent-color:#537347}
#musicAudition .radio-seek{display:grid;grid-template-columns:1fr 1fr;font-size:10px;color:#58684b;margin-top:8px}
#musicSeek{grid-column:1/-1}#musicTime{text-align:right}
#musicAudition :focus-visible{outline:3px solid #ad7835;outline-offset:3px}
body.cyborg-mode #musicAudition{background:#252923db;color:#f9eed4;border-color:#aaa08180}
body.cyborg-mode #musicStatus,body.cyborg-mode #musicTime,body.cyborg-mode .radio-seek{color:#d4d6bd}
@media(max-height:500px){#radioOptions{max-height:140px}}

#musicAudition[hidden]{display:none}

/* Phone floor: permanent controls have their own space, outside the character arena. */
@media(min-width:601px){#fx-launch{width:180px;height:161px}}
#phoneFloor{display:none}
#characterWindow{position:absolute;inset:0;pointer-events:none}
#finaleLayer>#characterWindow{z-index:4}
@media(max-width:600px){
 body{--mock-rail:24px;--floor-base:128px}
 body.market-mode{--mock-rail:0px}
 #phoneFloor{display:block;position:fixed;inset:auto 0 0;height:calc(var(--floor-base) + var(--mock-rail) + var(--safe-bottom));z-index:980;pointer-events:none;background:linear-gradient(#e4ebcf,#d9e3c5);border-top:2px solid #718264;box-shadow:0 -8px 24px #3b492414}
 body.cyborg-mode #phoneFloor{background:linear-gradient(#252923,#171b18);border-color:#766c53}
 #phoneFloor:before{content:"";position:absolute;top:-10px;left:8px;right:8px;height:12px;border:2px solid #75532c;border-radius:3px;background:linear-gradient(#edbc7c 0 25%,#a97942 27% 48%,#dba666 50% 78%,#815b32 80%);box-shadow:0 2px 0 #4c392c55}
 #phoneFloor:after{content:"";position:absolute;inset:0 8px 5px;pointer-events:none;border:solid #a97942;border-width:0 6px 6px;border-radius:0 0 12px 12px;box-shadow:inset 0 0 0 2px #6b4c2b}
 #musicAudition{position:relative;left:auto;top:auto;transform:none;width:140px;max-width:none;margin-top:8px;padding:4px 5px;border-radius:8px}
 #musicAudition .music-row{grid-template-columns:minmax(0,1fr) 34px;gap:5px}
 #musicAudition .radio-track{display:none}
 #musicAudition #radioOptions{position:absolute;left:0;top:100%;width:min(270px,calc(100vw - 40px));box-sizing:border-box;background:#fff9ec;border:1px solid #728264;border-radius:8px;padding:10px;z-index:2}
 body.cyborg-mode #musicAudition #radioOptions{background:#252923}
 #moneyPath #caRow{cursor:pointer;min-width:0;justify-content:center;box-shadow:none}
 #moneyPath #caText{font-size:9px}
 #moneyPath #caRow:disabled{cursor:default;opacity:.7}

 #moneyPath{left:calc(20px + var(--safe-left));right:calc(20px + var(--safe-right));bottom:calc(76px + var(--mock-rail) + var(--safe-bottom));width:auto;display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px;align-items:stretch}
 #moneyPath #buyBtn{min-height:44px;height:44px;padding:5px 8px;font-size:12px;letter-spacing:.3px;border-radius:8px}
 #moneyPath #buyBtn small{font-size:8px;margin-top:3px}
 #moneyPath #caRow{min-height:44px;height:44px;margin:0;box-sizing:border-box;padding:7px;gap:5px;border-radius:8px;font-size:9px;overflow:hidden}
 #moneyPath #caText{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #bottomRail{left:calc(20px + var(--safe-left));right:calc(20px + var(--safe-right));bottom:calc(20px + var(--mock-rail) + var(--safe-bottom));height:44px;display:grid;grid-template-columns:minmax(0,1fr) 72px 44px 44px;gap:8px}
 #bottomRail #snackButton{position:static;grid-column:1;grid-row:1;transform:none;width:100%;height:44px;min-height:44px;min-width:0;padding:5px;gap:4px;border-radius:10px;display:flex;font-size:10px;letter-spacing:0;white-space:nowrap;background:#fff0cc;border:1px solid #725436}
 #bottomRail #snackButton svg{width:19px;height:20px;flex-shrink:0}
 #bottomRail #snackButton[hidden]{display:none}
 #bottomRail #marketChartToggle,body.cyborg-mode #bottomRail #marketChartToggle{position:static;grid-column:2;grid-row:1;width:72px;height:44px;min-width:44px;transform:none;padding:5px 6px;border-radius:8px;box-shadow:none}
 #bottomRail #marketChartLabel{font-size:7px;letter-spacing:.5px;margin:0 0 2px}
 #bottomRail #marketChartMini{width:58px;height:20px}
 #bottomRail #momentButton{grid-column:3;grid-row:1}
 #bottomRail #soundButton{grid-column:4;grid-row:1}
 #bottomRail #mcSlider{position:absolute;left:0;bottom:-25px;width:100%;height:22px;margin:0}
 body[data-graham-stage="5"] #bottomRail #marketChartMini,body[data-graham-stage="6"] #bottomRail #marketChartMini,body.cyborg-mode #bottomRail #marketChartMini,
 body[data-graham-stage="5"] #bottomRail #marketChartLabel,body[data-graham-stage="6"] #bottomRail #marketChartLabel,body.cyborg-mode #bottomRail #marketChartLabel{display:none!important}
 body[data-graham-stage="5"] #bottomRail #marketChartIcon,body[data-graham-stage="6"] #bottomRail #marketChartIcon,body.cyborg-mode #bottomRail #marketChartIcon{display:block;width:22px;height:22px;margin:auto}
 body[data-graham-stage="5"] #bottomRail #marketChartToggle,body[data-graham-stage="6"] #bottomRail #marketChartToggle,body.cyborg-mode #bottomRail #marketChartToggle{width:44px;justify-self:end}
 #fx-launch{bottom:calc(138px + var(--mock-rail) + var(--safe-bottom));width:100px;height:auto;aspect-ratio:380/340}
 #radioOptions{max-height:140px}
 #clubPanel{bottom:calc(138px + var(--mock-rail) + var(--safe-bottom));max-height:170px}
}

/* Short phone landscape: a full-height cat area and a separate control column. */
#landscapeTray{display:none}
@media (max-width:1000px) and (max-height:500px) and (orientation:landscape){
 .plaque{display:none}
 .masthead{top:calc(24px + var(--safe-top));left:calc(28px + var(--safe-left));max-width:none;display:flex;align-items:center;gap:8px;height:44px}
 .brand h1{font-size:20px;letter-spacing:-.6px;white-space:nowrap}
 .tagline{display:none}
 .socials{margin:0;gap:4px}
 .socials :is(button,a){min-height:36px;padding:4px 6px;font-size:10px}
 .readout{top:calc(24px + var(--safe-top));right:calc(188px + var(--safe-right));width:158px;min-width:0;padding:4px 7px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 5px;border-radius:8px}
 .readout .eyebrow,#stageName{display:none}
 #mcValue{font-size:18px;line-height:22px;margin:0;white-space:nowrap}
 #weightValue{font-size:10px;white-space:nowrap}
 .readout #feedStatus{grid-column:1/-1;margin:0;font-size:9px;line-height:13px}
 #musicAudition{position:relative;left:auto;top:auto;transform:none;width:96px;max-width:none;margin:0;padding:3px;border-radius:8px}
 #musicAudition .music-row{grid-template-columns:1fr 30px;gap:2px}
 #musicAudition .radio-track{display:none}
 #musicAudition #musicExpand{width:30px}
 #musicAudition #musicPlay{font-size:10px;padding:3px}
 #musicAudition #radioOptions{position:absolute;left:0;top:100%;width:240px;max-height:140px;background:#fff9ec;border:1px solid #728264;border-radius:8px;padding:8px;z-index:2}
 #phoneFloor{display:none}
 #landscapeTray{display:grid;position:fixed;z-index:1000;top:calc(24px + var(--safe-top));right:calc(28px + var(--safe-right));bottom:calc(28px + var(--safe-bottom));width:148px;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(6,minmax(0,1fr));gap:4px;padding:5px 8px;background:#dfe8cc;border:2px solid #916434;border-left:8px ridge #c9955c;border-radius:7px;box-shadow:2px 0 0 #69472355}
 body.cyborg-mode #landscapeTray{background:#252923}
 #landscapeTray #moneyPath,#landscapeTray #bottomRail{display:contents}
 #landscapeTray #buyBtn,#landscapeTray #caRow,#landscapeTray #snackButton,#landscapeTray #marketChartToggle,#landscapeTray #momentButton,#landscapeTray #soundButton{position:static;grid-column:1;transform:none;translate:none;inset:auto;width:100%;height:100%;min-height:0;min-width:0;margin:0;padding:3px 5px;border-radius:7px;box-sizing:border-box;justify-self:stretch;white-space:nowrap;box-shadow:none;font-size:11px;display:flex;align-items:center;justify-content:center;gap:5px}
 #landscapeTray #buyBtn{grid-row:1;flex-direction:column;gap:0;font-size:12px}
 #landscapeTray #buyBtn small{font-size:7px}
 #landscapeTray #caRow{grid-row:2;overflow:hidden;cursor:pointer}
 #landscapeTray #caText{font-size:9px;overflow:hidden;text-overflow:ellipsis}
 #landscapeTray #snackButton{grid-row:3;background:#fff0cc;border:1px solid #725436}
 #landscapeTray #snackButton[hidden]{display:none}
 #landscapeTray #snackButton svg{width:20px;height:20px}
 #landscapeTray #bottomRail #marketChartToggle{grid-row:4;width:100%;height:100%;padding:3px 5px}
 #landscapeTray #marketChartMini,#landscapeTray #marketChartLabel{display:none!important}
 #landscapeTray #marketChartIcon{display:block;width:23px;height:23px}
 #landscapeTray #momentButton{grid-row:5}
 #landscapeTray #soundButton{grid-row:6}
 #landscapeTray #mcSlider{position:fixed;left:calc(28px + var(--safe-left));bottom:12px;width:calc(100vw - 216px - var(--safe-left) - var(--safe-right));height:16px;margin:0}
 body:not(.cyborg-mode) #landscapeTray #fx-launch{display:none}
 #landscapeTray #fx-launch{position:relative;grid-row:3;grid-column:1;inset:auto;width:100%;height:100%;transform:none;visibility:hidden;z-index:1}
 #clubPanel{left:calc(28px + var(--safe-left));right:calc(188px + var(--safe-right));top:auto;bottom:calc(28px + var(--safe-bottom));transform:none;width:auto;max-height:130px}
}

/* Sept 26 mobile review: usable tap targets and a compact, non-colliding header. */
.socials{flex-wrap:wrap;max-width:100%}
.socials :is(button,a){min-height:44px;min-width:44px;flex-shrink:0}
#clubButton{font-size:10px}
#photoBooth{width:min(440px,calc(100vw - 32px));padding:16px}
.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.photo-actions #photoRetake{grid-column:1/-1}
.photo-actions button:disabled{opacity:.55;cursor:default}
#photoPreview{-webkit-touch-callout:default;user-select:auto}
@media(max-width:600px){.socials{width:140px!important;gap:3px}.socials :is(button,a){padding:4px 6px;font-size:10px}}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 .masthead{max-width:calc(100vw - 380px - var(--safe-left) - var(--safe-right));gap:6px;flex-wrap:wrap;height:auto;align-items:flex-start}
 .brand h1{font-size:18px;line-height:22px}
 .socials{gap:3px;flex-wrap:wrap;max-width:100%;width:auto!important}
 .socials :is(button,a){min-height:44px;min-width:44px;font-size:10px;padding:3px 5px}
 .readout{width:164px;box-sizing:border-box;grid-template-columns:minmax(0,1fr);padding:5px 8px}
 #mcValue{font-size:19px;line-height:23px}
 #weightValue{font-size:10px;line-height:15px;white-space:nowrap}
 .readout #feedStatus{font-size:10px;line-height:14px}
 #musicAudition{width:100px}
}

.market-mode #mcSlider{display:none}
.market-mode #bottomRail{justify-content:flex-end}
#feedStatus{font:600 10px/1.4 system-ui,sans-serif;margin-top:5px;overflow-wrap:anywhere;color:#456545}
body[data-feed-state=stale] #feedStatus,body[data-feed-state=delayed] #feedStatus{color:#92512b}
body.cyborg-mode #feedStatus{color:#456545}
body.cyborg-mode[data-feed-state=stale] #feedStatus,body.cyborg-mode[data-feed-state=delayed] #feedStatus{color:#854423}
.feed-waiting #catWrap,.feed-waiting #stageName,.feed-waiting #weight,.feed-waiting #weightValue,.feed-waiting #speech,.feed-waiting #message,.feed-waiting #cracks{visibility:hidden}
#marketWaiting{display:none;position:fixed;left:12%;right:12%;top:45%;text-align:center;font:800 22px/1.4 system-ui;color:#294432;pointer-events:none}
#marketWaiting span{display:block;font-size:14px;font-weight:500;margin-top:8px}
.feed-waiting #marketWaiting{display:block}
.market-mode #caText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}
.market-mode #buyBtn:disabled{cursor:default}

#feedStatus{overflow-wrap:normal;font-size:10px;max-width:100%}
#feedStatus .feed-age{display:block;white-space:nowrap}
#feedStatus .feed-detail{display:block;font-size:9px}
#feedStatus .feed-detail[hidden]{display:none}
#caRow:focus-visible{outline:3px solid #315e51;outline-offset:3px}

/* The external chart is secondary to Buy and has no embedded third-party content. */
.market-mode #moneyPath{display:grid;grid-template-columns:minmax(0,1fr) 88px;width:292px;gap:8px}
.market-mode #moneyPath #buyBtn{grid-column:1;grid-row:1;min-width:0}
.market-mode #moneyPath #chartLink{grid-column:2;grid-row:1;box-sizing:border-box;min-width:0;min-height:62px;display:flex;align-items:center;justify-content:center;padding:6px;border:1px solid #66856b;border-radius:11px;background:#f5f5df;color:#254330;font:800 13px/1.1 system-ui,sans-serif;text-decoration:none;white-space:nowrap;box-shadow:0 3px 0 #294c302b}
.market-mode #moneyPath #chartLink:hover{background:#e8f5dc}
.market-mode #moneyPath #chartLink:focus-visible{outline:3px solid #315e51;outline-offset:3px}
.market-mode #moneyPath #caRow{grid-column:1/-1;grid-row:2;min-width:0;margin-top:0}
.cyborg-mode.market-mode #moneyPath #chartLink{background:#23382c;color:#d2f5d6;border-color:#9bc9a2}
@media(max-width:600px){
 .market-mode #moneyPath{width:auto;grid-template-columns:minmax(0,1fr) 76px 100px;gap:8px}
 .market-mode #moneyPath #chartLink{grid-column:2;min-height:44px;height:44px;font-size:12px;padding:4px}
 .market-mode #moneyPath #caRow{grid-column:3;grid-row:1;min-height:44px;height:44px}
}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 .market-mode #landscapeTray{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .market-mode #landscapeTray #buyBtn{grid-column:1;grid-row:1;font-size:9px;letter-spacing:0}
 .market-mode #landscapeTray #buyBtn small{display:none}
 .market-mode #landscapeTray #chartLink{grid-column:2;grid-row:1;width:100%;min-height:44px;height:100%;font-size:10px;padding:2px;box-shadow:none}
 .market-mode #landscapeTray #caRow,.market-mode #landscapeTray #snackButton,.market-mode #landscapeTray #marketChartToggle,.market-mode #landscapeTray #momentButton,.market-mode #landscapeTray #soundButton{grid-column:1/-1}
}

/* RETRO_ROOM_APPROVED — original vector cabinet, not character art. */
.retro-room .readout.crt-monitor{width:248px;height:215px;box-sizing:border-box;padding:0;border:0;background:none;box-shadow:none;text-align:left;cursor:pointer;display:block;overflow:visible;min-width:0;max-width:none;right:calc(28px + var(--safe-right))}
.crt-art{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(6px 8px 6px rgba(60,40,20,.35));pointer-events:none}
.crt-monitor:focus-visible{outline:3px solid #41684b;outline-offset:3px;border-radius:12px}
.crt-screen{position:absolute;left:12%;right:14%;top:12%;bottom:24%;color:#dcf4cb;font-family:ui-monospace,monospace;display:flex;flex-direction:column;gap:0;overflow:hidden}
.crt-monitor .eyebrow{font-size:8px;line-height:10px;letter-spacing:.3px;white-space:nowrap;color:#c6d8b8;flex:none}
.crt-monitor #mcValue{display:block;font-size:29px;line-height:32px;font-weight:900;white-space:nowrap;letter-spacing:-1px;color:#e6ffd6;margin:0;flex:none}
#crtState{display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;font-size:10px;line-height:15px;flex:none;color:#e1edcf}
.crt-monitor #weightValue,.crt-monitor #stageName{display:inline;font:inherit;letter-spacing:0;color:inherit;margin:0;white-space:nowrap}
#crtLive{white-space:nowrap;font-size:8px;line-height:12px;letter-spacing:.15px;flex:none;color:#cbdabc;padding:2px 4px;margin:1px 2px 2px}
#crtLive .crt-status-dot{color:#edba65}
#crtLive[data-status=current] .crt-status-dot{color:#8aff9c}
#crtLive[data-status=offline] .crt-status-dot{color:#ff7867}
#crtLive[data-live=true] .crt-status-dot{animation:crt-live-pulse 2s ease-in-out infinite}
@keyframes crt-live-pulse{50%{opacity:.55}}
#crtChart{display:block;width:100%;flex:1;min-height:0;color:#99eaae;margin:2px 0}
.crt-monitor[data-direction=down] #crtChart{color:#ffb39e}
.cyborg-mode .crt-monitor #crtChart,.cyborg-mode .crt-monitor #weightValue{color:#ffbba6}
.cyborg-mode .crt-led{fill:#ff594a}
.cyborg-mode .crt-monitor #mcValue{text-shadow:0 0 8px #e46e4655}
#crtWaiting{font:bold 12px/1.6 ui-monospace,monospace;color:#d7edc5;margin-top:12px}
#crtWaiting[hidden]{display:none}
.crt-monitor[data-waiting=true] #mcValue,.crt-monitor[data-waiting=true] #crtChart,.crt-monitor[data-waiting=true] #crtState{display:none}
#marketChartPanel #feedStatus{font:10px/1.4 ui-monospace,monospace;color:#c3d0b4;white-space:nowrap}
@media(prefers-reduced-motion:reduce){#crtLive .crt-status-dot{animation:none}}
.retro-room #marketChartToggle{display:none!important}
.retro-room #menuButton{min-width:72px}
#grahamMenu{width:min(380px,calc(100vw - 32px));box-sizing:border-box;max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;border:2px solid #735435;border-radius:15px;background:#fff5dd;color:#3f3427;padding:18px;box-shadow:0 10px 40px #191b1844;font:14px/1.45 system-ui}
#grahamMenu::backdrop{background:#182a2266}
#grahamMenu .menu-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
#grahamMenu h2{margin:0;font-size:21px}#grahamMenu h3{margin:18px 0 6px;font-size:15px}
#grahamMenu button,#grahamMenu select{min-height:44px;font:700 13px system-ui;border:1px solid #86724e;border-radius:7px;background:#ecedd4;color:#3f3427;padding:7px 10px;cursor:pointer}
#grahamMenu #menuClose{font-size:25px;min-width:44px}
#grahamMenu #menuMaster{margin-top:12px;width:100%;background:#e1e8c4}
#grahamMenu .menu-setting{border-top:1px solid #cbb78f;margin-top:14px;padding-top:12px}
#grahamMenu .menu-setting>label{display:flex;align-items:center;gap:9px;min-height:44px}
#grahamMenu input[type=checkbox]{width:21px;height:21px;accent-color:#41684b}
#grahamMenu input[type=range]{min-height:32px;accent-color:#41684b}
#grahamMenu small{display:block;font-size:12px;margin-top:6px}
#grahamMenu #menuRadioLocked{font-size:13px;margin:8px 0}
#grahamMenu #musicAudition{position:static;inset:auto;transform:none;width:100%;max-width:none;box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;box-shadow:none;color:inherit}
#grahamMenu #musicAudition .music-row{display:flex;align-items:center;gap:10px}
#grahamMenu #musicAudition .radio-track{display:block;min-width:0;flex:1}
#grahamMenu #musicExpand{display:none}
#grahamMenu #radioOptions{position:static;inset:auto;width:100%;max-height:none;box-sizing:border-box;padding:8px 0 0;background:none;border:0;box-shadow:none;overflow:visible;color:inherit}
#grahamMenu #radioOptions[hidden]{display:none}
#grahamMenu #musicTrack{width:100%}
#grahamMenu .radio-volume{display:grid;grid-template-columns:55px 1fr;align-items:center;font-size:12px}
#grahamMenu #menuHelpHome{margin-top:16px}#grahamMenu #clubButton{width:100%}
@media(max-width:600px){
 .retro-room .readout.crt-monitor{width:180px;height:156px;right:calc(26px + var(--safe-right));top:calc(26px + var(--safe-top))}
 .retro-room .masthead{max-width:calc(100vw - 228px - var(--safe-left) - var(--safe-right))}
 .retro-room .socials{width:100%!important;max-width:100%;gap:3px;flex-wrap:wrap}
 .retro-room .socials button{font-size:10px;box-sizing:border-box}
 .crt-monitor #mcValue{font-size:22px;line-height:25px}.crt-monitor .eyebrow{font-size:6px;line-height:8px;letter-spacing:0}
 #crtState{font-size:8px;line-height:11px;gap:2px}#crtLive{font-size:7px;line-height:9px}
 .retro-room #bottomRail{grid-template-columns:minmax(0,1fr) 44px 44px}
 .retro-room #bottomRail #momentButton{grid-column:2}.retro-room #bottomRail #soundButton{grid-column:3}
}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 .retro-room .readout.crt-monitor{width:190px;height:165px;top:calc(23px + var(--safe-top));right:calc(188px + var(--safe-right))}
 .retro-room .crt-monitor #mcValue{font-size:23px;line-height:26px}
 .retro-room .crt-monitor .eyebrow{font-size:7px;line-height:9px;display:block}
 .retro-room #crtState{font-size:8px;line-height:12px}.retro-room #crtLive{font-size:7px;line-height:9px}
 .retro-room .masthead{max-width:calc(100vw - 418px - var(--safe-left) - var(--safe-right))}
 .retro-room .socials{width:auto!important;max-width:100%;gap:3px}
 .retro-room #landscapeTray{grid-template-rows:repeat(5,minmax(0,1fr))}
 .retro-room #landscapeTray #momentButton{grid-row:4}.retro-room #landscapeTray #soundButton{grid-row:5}
 .retro-room.cyborg-mode #landscapeTray #snackButton{font-size:9px;justify-content:flex-end;padding-left:57px}
 .retro-room.cyborg-mode #landscapeTray #snackButton svg{display:none}
 .retro-room #landscapeTray #fx-launch{width:48px;justify-self:start;z-index:1002;pointer-events:auto}
}

#crtEscapedState{display:none;font:9px/12px ui-monospace,monospace;white-space:nowrap;color:#ffbba6;flex:none}
.cyborg-mode #crtState{display:none}.cyborg-mode #crtEscapedState{display:block}

/* LAB_SIGNS_APPROVED: static SVG props in the protected Brief 10 room only. */
#labSignsLayer{position:absolute;inset:0;z-index:12;pointer-events:none;overflow:hidden}
#labSignsLayer svg{position:absolute;display:block;overflow:visible;filter:drop-shadow(3px 4px 2px #3c28194d);transition:none!important;animation:none!important}
#labTag{left:calc(27px + var(--safe-left));top:calc(190px + var(--safe-top));width:clamp(84px,21.5vw,96px);height:auto;transform:rotate(4deg)}
#labFeedSign{right:calc(26px + var(--safe-right));top:calc(194px + var(--safe-top));width:clamp(88px,22.3vw,100px);height:auto;transform:rotate(-5deg)}
@media(min-width:601px){#labFeedSign{top:calc(270px + var(--safe-top))}}
body[data-graham-stage="5"] #labTag,body[data-graham-stage="6"] #labTag{transform:rotate(11deg)}
body[data-graham-stage="5"] #labFeedSign,body[data-graham-stage="6"] #labFeedSign{transform:rotate(-16deg)}
body.cyborg-mode #labSignsLayer{display:none}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){#labSignsLayer{display:none}}

/* MILESTONE_BEATS_APPROVED — static warning, never a flashing full-screen effect. */
.crt-monitor{--milestone-heat:0}
.crt-screen::after{content:"";position:absolute;inset:0;pointer-events:none;border:1px solid #f2b55e;box-shadow:inset 0 0 12px #d78b3833;opacity:var(--milestone-heat)}
#crtMilestone{position:absolute;left:3%;right:3%;top:35%;min-height:34%;display:grid;place-items:center;text-align:center;background:#1e2e24f5;border:1px solid #cba05d;color:#ffe2a3;font:900 10px/1.3 ui-monospace,monospace;padding:4px;z-index:2;pointer-events:none}
#crtMilestone[hidden]{display:none}
@media(min-width:601px){#crtMilestone{font-size:13px}}

#brief10Goal{font:11px/1.5 ui-monospace,monospace;margin:7px 0;color:inherit}#brief10Goal[hidden]{display:none}#brief10Goal progress{display:block;width:100%;height:4px;margin-top:4px;accent-color:#9cdaad}#brief10Goal progress::-webkit-progress-bar{background:#365748}#brief10Goal progress::-webkit-progress-value{background:#9cdaad}#brief10Goal progress::-moz-progress-bar{background:#9cdaad}.crt-monitor .brief10-goal-host{color:transparent!important;position:relative}#brief10Goal.crt-goal{position:absolute;inset:0;margin:0;height:10px;font:8px/9px ui-monospace,monospace;color:#c6d8b8;white-space:nowrap}#brief10Goal.crt-goal progress{position:absolute;bottom:0;height:1px;margin:0}