@font-face{font-family:Estedad;src:url('fonts/Estedad-Variable.ttf') format('truetype');font-display:swap;font-weight:100 900}@font-face{font-family:Vazirmatn;src:url('fonts/Vazirmatn-Variable.ttf') format('truetype');font-display:swap;font-weight:100 900}
:root{color-scheme:light;--purple:#4b085e;--magenta:#c6168d;--cyan:#00eff7}*{box-sizing:border-box}body{margin:0;color:#291431;background:radial-gradient(ellipse at 70% 26%,#f9efff 0,#eedcfa 50%,#e6cef6 100%);font-family:Estedad,Vazirmatn,sans-serif;min-height:100vh}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:3px solid #00aabb;outline-offset:5px}button:active{filter:brightness(1.13)}a{color:inherit;text-decoration:none}svg{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.experience{max-width:1680px;margin:auto;padding:16px 26px 24px}.header{height:68px;display:flex;align-items:flex-start;justify-content:space-between;padding:0 10px;color:var(--purple)}.brand{font-size:39px;font-weight:900;line-height:1.25;position:relative;padding-bottom:13px;white-space:nowrap}.brand span{position:absolute;width:49px;height:24px;border:7px solid #ce008c;border-top:0;border-left-color:transparent;border-right-color:transparent;border-radius:0 0 60% 60%;bottom:0;right:26px;transform:rotate(-8deg)}.edition{display:flex;align-items:center;gap:30px;direction:ltr;font:800 23px/1.8 Arial,sans-serif;letter-spacing:.25em;margin-top:0}.edition i{width:110px;height:1px;background:#c88cdd}.header-tools{display:flex;flex-direction:row-reverse;align-items:center;gap:20px;direction:rtl}.header-tools button{background:transparent;color:var(--purple);font-weight:800;font-size:22px;padding:0 4px}.header-tools svg{width:35px;height:35px;display:block}.game-layout{display:grid;grid-template-columns:minmax(0,2.55fr) minmax(280px,1fr);gap:42px;direction:ltr;align-items:start}.machine{direction:rtl;position:relative;padding:64px 15px 0;border-radius:85px 85px 42px 42px;background:repeating-linear-gradient(0deg,#ffffff03 0 1px,transparent 1px 3px),linear-gradient(100deg,#28272d,#55505a 3%,#1c1a20 9%,#38323c 45%,#1d171f 90%,#57404f 98%,#301e31);box-shadow:inset 0 4px 4px #d4cbd5b3,inset 0 -4px 4px #040408,0 12px 18px #5a24603d;margin-top:15px;border:2px solid #3a283d;isolation:isolate;container-type:inline-size}.machine::before{content:"";position:absolute;inset:49px 0 22px;border-radius:60px 60px 35px 35px;box-shadow:inset 6px 0 3px #08ddea,inset 9px 0 13px #00e7ef88,inset -6px 0 3px #f80cc6,inset -9px 0 15px #f105c388;z-index:-1;pointer-events:none}.marquee{position:absolute;left:25%;right:22%;top:-30px;height:90px;display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(130deg,#3b2444,#211323 52%,#49213d);border:3px solid #ff61d9;border-radius:70px 65px 18px 18px;transform:perspective(600px) rotateX(15deg);box-shadow:0 0 0 6px #352835,0 0 0 8px #131116,0 0 0 10px #6b4c66,inset 0 0 9px #fc1aba,0 0 10px #fb19c3,inset 0 -12px 25px #9e087344;color:white;z-index:3}.marquee h1{font-size:clamp(30px,4.1vw,68px);line-height:1;margin:0;white-space:nowrap;font-weight:900;text-shadow:0 0 10px #ffb8e9,0 3px 0 #952074}.spark{color:#ffcb25;font-size:39px;font-weight:900;transform:rotate(-20deg)}.spark.left{transform:scaleX(-1) rotate(-20deg)}.machine-top{height:66px;display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;padding:0 34px 8px;gap:12px;border-bottom:2px solid #0d0c10;box-shadow:0 1px #a992a777;position:relative}.hud{display:flex;direction:ltr;gap:16px;align-items:center;color:#f8e7fa;font-size:20px;font-weight:650;white-space:nowrap}.hud>div{border:2px solid #77657b;border-radius:25px;padding:3px 14px;box-shadow:inset 0 2px 5px #08050c88;background:#302733;line-height:1.5}.attempt{display:flex;direction:rtl;gap:9px}.attempt b{color:#ffd220}.timer{display:flex;direction:rtl;align-items:center;gap:9px}.timer b{font-variant-numeric:tabular-nums;font-size:.93em;letter-spacing:.05em}.timer svg{width:25px;height:29px;color:#ffcc14}.timer.urgent{color:#ffce30}.glass-surround{padding:10px 16px 11px;background:linear-gradient(90deg,#17191e,#625967 1.4%,#151317 3%,#251c2c 95%,#817384 97%,#1c141e);border:1px solid #675168;border-radius:24px;box-shadow:inset 0 0 8px #000,0 0 0 2px #100d13,0 0 0 4px #64536366;position:relative}.stage-wrap{position:relative;aspect-ratio:1.73;overflow:hidden;border-radius:16px 16px 10px 10px;background:#281332;box-shadow:-2px 0 3px #00ecf6,2px 0 3px #ff20c1,inset 0 0 20px #0009}#stage{position:absolute;inset:0;touch-action:none}#stage canvas{display:block;width:100%;height:100%}.glass-glints{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 12px #ffffff16;background:linear-gradient(100deg,transparent 2%,#d9e4ff0a 2.3%,transparent 4%,transparent 92%,#ffd0ee08 94%,transparent 97%)}.sway-cue{position:absolute;left:3%;top:19%;width:5%;height:17%;pointer-events:none;color:#fff;filter:drop-shadow(0 1px 3px #0005)}.sway-cue svg{width:100%;height:100%}.sway-cue circle{fill:#ffd028;stroke:white;stroke-width:1.5}.loading,.start-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:radial-gradient(ellipse,#532a60ed,#170d20f5);color:white;text-align:center;padding:20px;z-index:5}.loading small{color:#ccbad4}.spinner{border:3px solid #fff2;border-top-color:#00efff;border-right-color:#ed1aac;width:38px;height:38px;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.win-toast{position:absolute;top:36%;left:20%;right:20%;padding:20px;display:flex;align-items:center;flex-direction:column;gap:8px;color:white;background:#28102ddd;border:1px solid #df90cd;border-radius:18px;z-index:6;box-shadow:0 0 40px #ed00b044}.win-toast>span{color:#ffe324;font-size:40px}.win-toast small{color:#8dfcff}
.control-deck{display:grid;grid-template-columns:1fr 1.5fr 1.25fr;gap:2%;align-items:center;min-height:155px;padding:12px 9% 6px;background:repeating-linear-gradient(0deg,#fff03 0 1px,transparent 1px 3px),linear-gradient(175deg,#45404b,#2a2430 73%,#36303d);border-radius:0 0 25px 25px;border-top:1px solid #aa8ba855;box-shadow:inset 0 -1px 1px #bba2c4;position:relative}.joystick-control,.rotation-control,.grab-control{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;height:100%;gap:10px}.rotation-control{border-right:1px solid #d5bdcf99;border-left:1px solid #d5bdcf99}.rotation-control>div{display:flex;gap:20px}.control-label{direction:rtl;font-size:18px;color:#e5d0e5;text-shadow:0 2px 2px #110b15}.rotate{width:76px;height:58px;border-radius:16px;background:linear-gradient(145deg,#58505d,#2b252f 60%,#3f3546);color:#fff;font-family:Arial;font-size:58px;line-height:.6;padding-bottom:5px;border:2px solid #dfd1e1;box-shadow:0 5px 0 #141018,0 7px 0 #6d5c70,0 10px 8px #0009,inset 0 2px 4px #fff4;touch-action:none}.rotate:active{transform:translateY(3px);box-shadow:0 3px 0 #141018,0 5px 6px #0009}.grab-control{padding-left:13%}#action{width:100%;min-height:72px;background:radial-gradient(ellipse at 40% 0,#ff67ce,#e40095 55%,#b00078);color:white;border:2px solid #ff8edc;border-radius:45% / 70%;font-size:36px;font-weight:900;text-shadow:0 3px 2px #780057;box-shadow:inset 0 3px 5px #ffd3f7,0 6px 0 #870065,0 10px 0 #240f26,0 0 0 6px #9e8da4,0 0 0 9px #1b141e,0 14px 12px #0009;white-space:nowrap;touch-action:manipulation}#action:active{transform:translateY(4px);box-shadow:inset 0 3px 5px #ffd3f7,0 3px 0 #870065,0 6px 0 #240f26,0 0 0 6px #9e8da4,0 0 0 9px #1b141e}#action:disabled{filter:saturate(.68) brightness(.8)}#action.carrying{background:radial-gradient(ellipse at 40% 0,#91ffff,#00cbd6 55%,#008eaa);text-shadow:0 2px #006580}.machine-foot{height:27px;border-radius:0 0 34px 34px;background:linear-gradient(#302434,#141018);border-bottom:3px solid #ff69d8;box-shadow:0 3px 2px #2c1530,0 5px 7px #e81ecf80,inset 0 -3px 7px #d6139c66}
.story{direction:rtl;padding-top:27px;text-align:right}.story h2{font-size:clamp(37px,4.25vw,68px);line-height:1.53;font-weight:900;margin:0 0 14px;letter-spacing:-.04em}.story h2 em{font-style:normal;color:#c00085;position:relative;display:inline-block;white-space:nowrap}.story h2 em::after{content:"";position:absolute;bottom:-4px;left:12%;right:4%;height:8px;border-top:7px solid #ffbd24;border-radius:50%;transform:rotate(-2deg)}.intro{font-size:clamp(18px,1.7vw,27px);font-weight:750;color:#7e638b;margin:24px 0 18px;white-space:nowrap}.instructions{list-style:none;padding:0;margin:0 15px 25px}.instructions li{display:flex;align-items:center;gap:16px;min-height:78px;border-bottom:1px solid #bf8cda;font-size:clamp(17px,1.6vw,25px);font-weight:650}.instructions li:last-child{border:0}.instructions li>b{font-weight:750;background:#ffc227;border-radius:8px;color:#532d31;width:27px;height:29px;text-align:center;line-height:29px;font-size:19px}.instructions svg{width:59px;height:59px;color:#590773;padding:10px;background:linear-gradient(135deg,#fffc,#e9d3f655);border-radius:16px;box-shadow:0 4px 8px #814d8c14;border-top:1px solid #fff}.feedback{min-height:106px;background:#ffffff94;border:1px solid #fff;border-left:5px solid #00afcb;border-radius:17px;padding:12px 20px;margin:22px 0 28px}.tip-heading{display:flex;align-items:center;gap:12px;color:#00a7c2;font-size:22px}.tip-heading svg{width:36px;height:36px;color:#ffb51b}.tip-heading #feedback-icon{margin-right:auto;font-size:25px}.feedback p{font-size:19px;font-weight:650;margin:5px 0 0;line-height:1.8}.feedback.long p{font-size:16px}.practice{display:block;padding:6px 32px;background:transparent;border:2px solid #5a1b72;border-radius:18px;font-size:25px;font-weight:750;color:#53136b;margin:36px auto 0;min-width:220px}.practice:hover{background:#fff4}.demo-note{text-align:center;color:#a38cae;font-size:13px;margin:14px 0 0}.utility{display:flex;direction:ltr;justify-content:space-between;align-items:center;gap:15px;margin-top:24px;color:#8b729a;font-size:11px}.utility>div{display:flex;gap:18px;direction:rtl}.utility button{color:inherit;background:transparent;font-size:11px;padding:0}.utility a:hover,.utility button:hover{color:#7d238f}.keyboard-hint{direction:rtl;display:flex;gap:9px;align-items:center}kbd{border:1px solid #c1a2cd;padding:2px 5px;border-radius:4px;font-size:10px;color:#7d5f90}
dialog{border:1px solid #e7c8f1;border-radius:26px;color:#331743;background:#f8f0fd;box-shadow:0 30px 90px #16022266;padding:34px;max-width:min(530px,calc(100% - 32px));width:100%;font-family:inherit}dialog::backdrop{background:#1d0c29aa;backdrop-filter:blur(6px)}dialog .close{position:absolute;left:18px;top:10px;font-size:30px;background:transparent;color:#84678c}dialog h2{font-size:26px;margin:12px 0}dialog p{font-size:14px;line-height:2}dialog small{font-size:12px;color:#8f719b;line-height:1.8;display:block}.card-eyebrow{font-size:12px;color:#af2993}.primary,.secondary{display:block;width:100%;border-radius:14px;padding:13px;margin-top:17px;font-weight:700}.primary{color:#fff;background:linear-gradient(120deg,#d31598,#950376)}.secondary{color:#6d267e;background:#eadbf1}.range-head,.range-labels{display:flex;justify-content:space-between;margin:15px 0;font-size:14px}input[type=range]{width:100%;accent-color:#bf138f;direction:ltr}
@media(min-width:1600px){.story{padding-top:20px}.story h2{line-height:1.55}.instructions li{min-height:87px}.control-deck{min-height:175px}}
@media(max-width:1150px) and (min-width:761px){.experience{padding:15px}.game-layout{gap:24px;grid-template-columns:minmax(0,2.2fr) minmax(250px,1fr)}.header{height:70px}.brand{font-size:30px}.edition{font-size:17px;gap:20px}.edition i{width:50px}.machine{padding:52px 11px 0;border-radius:60px 60px 30px 30px}.marquee{height:80px}.marquee h1{font-size:4vw}.spark{font-size:25px}.machine-top{height:61px;padding:0 16px 6px}.hud{font-size:14px;gap:6px}.hud>div{padding:2px 8px}.glass-surround{padding:8px}.control-deck{padding:10px 7%;min-height:135px}.rotate{width:52px;height:47px;font-size:43px}.rotation-control>div{gap:12px}#action{min-height:58px;font-size:29px}.control-label{font-size:14px}.story{padding-top:15px}.story h2{font-size:3.8vw;line-height:1.6}.intro{font-size:16px}.instructions{margin:0 0 16px}.instructions li{gap:10px;min-height:62px;font-size:17px}.instructions svg{width:46px;height:46px;padding:7px}.feedback{margin:18px 0;padding:10px 13px}.feedback p{font-size:15px}.tip-heading{font-size:18px}.practice{font-size:21px;margin-top:22px}.utility{font-size:10px}.utility>div{gap:10px}.keyboard-hint{gap:4px}}
@media(max-width:760px){.experience{padding:15px 10px 24px;max-width:620px}.header{height:69px;padding:0 8px}.brand{font-size:29px}.brand span{width:37px;height:19px;border-width:5px;right:20px}.header-tools{gap:12px;margin-top:7px}.header-tools button{font-size:17px}.header-tools svg{width:27px;height:27px}.edition{position:absolute;top:94px;left:50%;transform:translateX(-50%);font-size:13px;gap:20px;letter-spacing:.3em;white-space:nowrap}.edition i{width:42px}.game-layout{display:flex;flex-direction:column;gap:0;padding-top:72px}.machine{width:100%;margin-top:19px;padding:46px 7px 0;border-radius:52px 52px 28px 28px}.machine::before{inset:42px 0 18px;border-radius:43px 43px 24px 24px;box-shadow:inset 4px 0 3px #08ddea,inset 7px 0 10px #00e7ef88,inset -4px 0 3px #f80cc6,inset -7px 0 10px #f105c388}.marquee{left:16%;right:14%;top:-27px;height:75px;border-width:2px;gap:10px;border-radius:46px 44px 13px 13px}.marquee h1{font-size:8.8cqw}.spark{font-size:25px}.machine-top{height:48px;padding:0 10px 7px;gap:8px}.hud{font-size:3.3cqw;gap:7px}.hud>div{border-width:1px;padding:2px 7px}.attempt{gap:5px}.timer{gap:4px}.timer svg{width:18px;height:23px}.glass-surround{padding:6px 7px 7px;border-radius:16px}.stage-wrap{aspect-ratio:.96;border-radius:12px}.sway-cue{left:4%;top:20%;width:7%}.control-deck{grid-template-columns:1fr 1.4fr 1.35fr;padding:10px 7% 5px;min-height:116px;gap:3%;border-radius:0 0 19px 19px}.rotation-control>div{gap:3cqw}.rotate{width:11cqw;height:10.8cqw;border-radius:12px;border-width:1px;font-size:10cqw;box-shadow:0 3px 0 #141018,0 5px 0 #6d5c70,0 7px 6px #0009}.control-label{font-size:3.4cqw}.joystick-control,.rotation-control,.grab-control{gap:9px}.grab-control{padding-left:8%}#action{min-height:13cqw;font-size:7cqw;border-width:1px;box-shadow:inset 0 2px 4px #ffd3f7,0 4px 0 #870065,0 7px 0 #240f26,0 0 0 4px #9e8da4,0 0 0 6px #1b141e,0 10px 8px #0009}.machine-foot{height:21px}.story{width:100%;padding:0 12px}.story h2,.intro,.instructions{display:none}.feedback{margin:24px 0 0;min-height:85px;padding:10px 16px}.tip-heading{font-size:17px}.tip-heading svg{width:28px;height:28px}.feedback p{font-size:16px}.feedback.long p{font-size:14px}.practice{font-size:22px;margin-top:20px;min-width:60%}.demo-note{font-size:11px}.utility{margin-top:22px;justify-content:center}.keyboard-hint{display:none}.utility>div{gap:16px;flex-wrap:wrap;justify-content:center}.utility button,.utility a{font-size:10px}dialog{padding:28px 24px}.loading{font-size:14px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

@media(min-width:761px){.marquee{top:-28px;height:90px}.machine{margin-top:25px;padding-top:66px}}

.graphics-note{font-size:11px;line-height:1.8;color:#8e779d;text-align:center;margin:20px 0 0}

.spark{width:10%;height:65%;flex-shrink:0;stroke-width:7;transform:none}.spark.left{transform:scaleX(-1)}

/* Reference cabinet: original frame and deck pixels surround a live 3D chamber.
   Cabinet plates are empty; every prize and every claw finger remains real 3D. */
.machine{padding:0!important;margin-top:0!important;aspect-ratio:1100/940;border:0;border-radius:0;background:none;box-shadow:none;overflow:hidden;isolation:isolate}
.machine::before,.machine-foot,.marquee,.glass-glints,.sway-cue{display:none}
.cabinet-art{position:absolute;inset:0;pointer-events:none;z-index:-1;overflow:hidden}
.cabinet-art picture{display:block;position:absolute;left:-1.81818%;top:-5.53191%;width:144.09091%;height:105.53191%}
.cabinet-art img{display:block;width:100%;height:100%}
.cabinet-reference{-webkit-mask:url('assets/cabinet/mobile-mask.svg?v=5.6') 0 0/100% 100% no-repeat;mask:url('assets/cabinet/mobile-mask.svg?v=5.6') 0 0/100% 100% no-repeat;mask-mode:alpha}
.machine-top,.glass-surround,.control-deck,.joystick-control,.rotation-control,.rotation-control>div,.grab-control{display:contents}
.machine .stage-wrap{position:absolute;left:7.09091%;top:19.36170%;width:88%;height:59.68085%;aspect-ratio:auto;background:transparent;border-radius:1.3cqw;box-shadow:none}
.machine .hud{position:absolute;left:61.63636%;top:12.97872%;width:32.90909%;height:4.1%;font-size:1.83cqw;gap:4.1cqw;z-index:3}
.machine .hud>div{height:100%;padding:0 .8cqw;flex:1;border-width:.15cqw;display:flex;align-items:center;justify-content:center;gap:.6cqw}
.machine .timer svg{width:2.1cqw;height:2.6cqw;flex-shrink:0}
.machine .control-label{display:none}
.machine .rotate,.machine #action{position:absolute;margin:0;padding:0;min-height:0;border:0;background:transparent;box-shadow:none;color:transparent;z-index:4;border-radius:1.7cqw}
.machine .rotate{top:83.19149%;width:7.81818%;height:6.27660%;font-size:0;touch-action:none}
.machine #rotate-left{left:45.09091%}.machine #rotate-right{left:55.18182%}
.machine #action{left:70.45455%;top:82.12766%;width:16.54545%;height:8.08511%;border-radius:5cqw;font-size:3.4cqw;transition:background .12s}
.machine .action-word{visibility:hidden}
.machine #action.carrying{background:radial-gradient(ellipse at 40% 0,#78f4fc,#00a9bd 70%);color:white;box-shadow:inset 0 0 .7cqw #fff9;text-shadow:0 .2cqw #006580}
.machine #action.carrying .action-word{visibility:visible}
.machine #action:disabled{background:#170b2333;filter:none}
.machine .rotate:active,.machine #action:active{transform:none;background:#ffffff28;box-shadow:inset 0 0 1cqw #ffffff40}
.game-layout{gap:28px;grid-template-columns:minmax(0,2.6fr) minmax(280px,1fr)}
.header{height:48px}.story{padding-top:35px}
@media(max-width:1150px) and (min-width:761px){.game-layout{gap:18px;grid-template-columns:minmax(0,2.6fr) minmax(250px,1fr)}.header{height:48px}.story{padding-top:22px}}
@media all{
 .experience{padding:12px 5px 20px}.header{height:45px;padding:0 12px}.brand{font-size:27px}.header-tools{margin-top:3px}.edition{display:none}
 .game-layout{display:block;padding:0}.machine{aspect-ratio:852/1480;width:100%}
 .cabinet-art picture{left:0;top:-6.75676%;width:100%;height:124.72973%}
 .machine .stage-wrap{left:5.86854%;top:23.78378%;width:88.02817%;height:54.59459%;border-radius:2cqw}
 .machine .hud{left:4.10798%;top:10.87838%;width:92.01878%;height:5.13514%;font-size:4.8cqw;gap:0;border-radius:9cqw;background:#45264f;overflow:hidden;direction:ltr}
 .machine .hud>div{border:0;background:none;box-shadow:none;border-radius:0;height:75%;padding:0 3cqw;gap:1.4cqw;flex-basis:50%}
 .machine .hud .attempt{border-left:.24cqw solid #dec2e8}
 .machine .timer svg{width:5.7cqw;height:6.6cqw}
 .machine .rotate{top:83.78378%;width:12.08920%;height:5.06757%;border-radius:2.5cqw}
 .machine #rotate-left{left:32.62911%}.machine #rotate-right{left:47.65258%}
 .machine #action{left:66.07981%;top:83.37838%;width:28.05164%;height:6.62162%;border-radius:8cqw;font-size:6.4cqw}
 .story{padding:0 12px}.feedback{margin:10px 0 0}.practice{margin-top:18px}
}
/* A portrait cabinet on every screen, with desktop instructions alongside it. */
.cabinet-art{clip-path:inset(1.3cqw 0 0)}
.chamber-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

.machine{max-width:460px;margin-inline:auto}
.experience{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}
.machine .rotate{min-width:44px;min-height:44px;transform:translateY(-4px)}
.machine .rotate:active{transform:translateY(-4px)}
@media(min-width:761px){
 .experience{max-width:1020px;padding:24px 28px}
 .header{height:70px}.brand{font-size:32px}
 .game-layout{display:grid;grid-template-columns:minmax(0,460px) minmax(260px,1fr);gap:54px;align-items:center}
 .story{padding:0}.story h2{font-size:clamp(30px,3.5vw,48px);line-height:1.6}
 .intro{font-size:17px}.instructions li{font-size:17px;min-height:65px}
 .instructions svg{width:46px;height:46px}.feedback{margin-top:22px}
 .feedback p{font-size:16px}.tip-heading{font-size:19px}.practice{font-size:23px}
 .utility{max-width:930px;margin-inline:auto}
}
@media(max-width:760px){
 .experience{max-width:470px;padding-inline:5px}
 .machine{width:min(100%,calc((100svh - 64px)*.575675676))}
 .header{height:43px}.feedback{min-height:60px;padding:9px 13px;margin-top:7px}
 .tip-heading{font-size:13px}.tip-heading svg{width:22px;height:22px}
 .feedback p{font-size:13px}.practice{margin-top:12px;font-size:18px}
 .utility{margin-top:12px}
}

/* One anchored joystick, in the same art coordinates at every screen size.
   The reference plate has an alpha cutout; only this SVG draws the handle. */
.machine #joystick{position:absolute;left:8.68545%;top:77.70270%;width:17.95775%;height:13.31081%;z-index:5;padding:0;border:0;border-radius:35%;background:none;box-shadow:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;overflow:visible;cursor:grab}
.machine #joystick:active{cursor:grabbing}
.machine #joystick .joystick-art{display:block;width:100%;height:100%;overflow:visible;pointer-events:none;fill:none;stroke:none}

/* A live Persian marquee replaces the printed heading above the cabinet. */
.cabinet-art { clip-path: inset(16.6% 0 0); }
/* Continue the brushed fascia over the selector printed on the reference cabinet. */
.cabinet-trim {
  position: absolute;
  left: 7.04%;
  top: 18.65%;
  width: 38.4%;
  height: 4.6%;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 96%, transparent);
}
.cabinet-heading {
  position: absolute;
  inset: .45% 2% auto;
  height: 9.9%;
  display: grid;
  align-content: center;
  justify-items: center;
  pointer-events: none;
}
.cabinet-edition {
  display: flex;
  align-items: center;
  gap: 2.7cqw;
  color: #4b145c;
  font: 800 3.55cqw/1.26 Estedad, Vazirmatn, sans-serif;
}
.cabinet-edition::before, .cabinet-edition::after {
  content: "";
  width: 10cqw;
  height: 1px;
  background: #c295d4;
}
.cabinet-name {
  display: flex;
  direction: ltr;
  justify-content: center;
  align-items: center;
  gap: .9cqw;
}
.cabinet-name h1 {
  margin: 0;
  color: #a80667;
  font: 900 8.1cqw/1.34 Estedad, Vazirmatn, sans-serif;
  white-space: nowrap;
}
.choose-instruction img { height: 1.12em; width: auto; vertical-align: -.18em; }
.cabinet-name svg {
  flex: none;
  width: 5.6cqw;
  height: 5.9cqw;
  stroke: #f8b414;
  stroke-width: 7.5;
}
.cabinet-name svg:last-child { transform: scaleX(-1); }

/* Physical control deck. All layer and inlay coordinates share the cabinet camera. */
.cabinet-art .deck-art {
  position: absolute;
  left: 0;
  top: 80.9459%;
  width: 100%;
  height: 14.3243%;
  display: block;
  overflow: visible;
  pointer-events: none;
  stroke: none;
}
.deck-legend {
  font: 570 25px Estedad, Vazirmatn, sans-serif;
}
.machine .hardware-viewport {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.machine .hardware-drawing, .machine .switch-plunger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke: none;
  fill: none;
}
.machine #action, .machine #action:disabled, .machine #action.carrying,
.machine #action:active, .machine .rotate, .machine .rotate:active, .machine #joystick {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  min-height: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  transform: translate(-50%, -50%);
}
.machine #joystick {
  border-radius: 43%;
}
.machine #action {
  border-radius: 35% / 50%;
}
.machine #action, .machine .rotate {
  touch-action: manipulation;
}
.machine .hardware-drawing [data-guide-light] {
  opacity: 0;
  transition: opacity 140ms ease;
}
.machine #action:focus-visible, .machine #joystick:focus-visible, .machine .rotate:focus-visible {
  outline: 0;
}
.machine #joystick:focus-visible [data-guide-light],
.machine #action:focus-visible [data-guide-light],
.machine #rotate-left:focus-visible [data-guide-light],
.machine #rotate-right:focus-visible [data-guide-light] {
  opacity: 1;
}

.machine .action-hardware { width: 30.7512cqw; height: 15.493cqw; }
.machine #action { left: 19.7183%; top: 87.7027%; width: 30.7512%; height: 8.9189%; }

.machine .stick-hardware { width: 20.5399cqw; height: 23.9437cqw; }
.machine #joystick { left: 83.392%; top: 84.3919%; width: 20.5399%; height: 13.7838%; }

.machine .turn-left-hardware { width: 13.8498cqw; height: 11.8545cqw; }
.machine #rotate-left { left: 46.3615%; top: 86.8581%; width: max(13.8498%, min(44px, 14.5cqw)); height: max(6.8243%, min(44px, 15.1cqw)); }

.machine .turn-right-hardware { width: 13.8498cqw; height: 11.8545cqw; }
.machine #rotate-right { left: 61.5023%; top: 86.8581%; width: max(13.8498%, min(44px, 14.5cqw)); height: max(6.8243%, min(44px, 15.1cqw)); }

.machine #action .switch-plunger, .machine .rotate .rocker-pad {
  transition: transform 85ms ease-out;
}
.machine .rotate:active .rocker-pad {
  transform: translateY(3px);
}
.machine #action:enabled:active .switch-plunger,
.machine #action.is-pressed .switch-plunger,
.machine[data-guide-press="true"] #action .switch-plunger {
  transform: translate(0.0706cqw, 0.5277cqw);
}
.machine #action .action-word, .machine #action.carrying .action-word {
  position: absolute;
  left: 49.4427%;
  top: 35.7064%;
  display: block;
  visibility: visible;
  width: max-content;
  color: #fffafa;
  font: 810 5.25cqw/1 Estedad, Vazirmatn, sans-serif;
  white-space: nowrap;
  text-shadow: 0 .14cqw .07cqw #5b2348, 0 .22cqw .27cqw #56163880;
  transform: translate(-50%, -50%) skewX(-11deg) scaleY(.78);
  pointer-events: none;
}
.machine #action.carrying .action-word {
  text-shadow: 0 .14cqw .07cqw #113f49, 0 .22cqw .27cqw #12374380;
}
.machine #action[aria-label="تلاش دوباره"] .action-word {
  font-size: 3.77cqw;
}
.machine #action .release-surface, .machine #action.carrying .grab-surface {
  display: none;
}
.machine #action.carrying .release-surface {
  display: inline;
}
@media (prefers-reduced-motion: reduce) {
  .machine #action .switch-plunger, .machine .rotate .rocker-pad,
  .machine .hardware-drawing [data-guide-light] { transition: none; }
}
