:root{color-scheme:dark;--night:#10151f;--ivory:#f1ecdf;--gold:#dfba7a;--muted:#b7b8bd;--line:#dfba7a30;font-family:Manrope,Arial,sans-serif;color:var(--ivory);background:var(--night)}
*{box-sizing:border-box}body{margin:0;min-width:300px;background:radial-gradient(ellipse at 50% 35%,#26324780,transparent 65%),var(--night)}a{color:inherit;text-decoration:none}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,select:focus-visible,.game-stage:focus-visible{outline:2px solid var(--gold);outline-offset:5px}button{color:inherit}.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}.skip-link{position:fixed;top:-100px;left:20px;z-index:30;background:var(--gold);color:var(--night);padding:12px 20px}.skip-link:focus{top:10px}.game-header{max-width:1440px;margin:auto;padding:24px 6%;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:grid;justify-items:center}.brand>span{font-family:"Cormorant Garamond",Georgia,serif;font-size:40px;font-weight:500;line-height:.9;letter-spacing:-2px}.brand small{font-size:7px;letter-spacing:3px;padding-top:7px}.header-actions{display:flex;gap:28px;align-items:center}.back-link{display:flex;gap:10px;align-items:center;font-size:11px;letter-spacing:.04em;color:var(--muted)}.back-link:hover{color:var(--gold)}.language-picker select{font-size:11px;color:var(--ivory);background:#161e2a;border:1px solid var(--line);border-radius:4px;padding:10px 8px;max-width:135px}.game-main{width:min(1160px,88%);margin:12px auto 0}.game-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:0 0 24px}.game-heading h1{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(36px,4vw,60px);font-weight:400;line-height:1.05;margin:0;letter-spacing:-.03em}.game-heading h1 em{font-weight:400;color:var(--gold)}.game-heading p{font-size:11px;line-height:1.7;color:var(--muted);max-width:220px;margin:0 0 5px}.game-shell{border:1px solid var(--line);box-shadow:0 22px 80px #0005;background:#121a26}.game-hud{min-height:52px;padding:10px 20px;display:flex;align-items:center;gap:22px;font-size:11px}.star-counter,.life-counter{display:flex;align-items:center;gap:8px;white-space:nowrap}.star-counter>span:first-child,.life-counter>span:first-child{font-size:20px;color:var(--gold)}.chapter{color:var(--muted);flex:1;text-align:center;font-size:10px;letter-spacing:.08em}.pause-button{border:0;background:transparent;padding:6px 0 6px 8px;display:flex;align-items:center;gap:7px;font-size:10px}.pause-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}.game-stage{position:relative;aspect-ratio:16/9;overflow:hidden;background:#151c2a;isolation:isolate;outline-offset:0!important}canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.game-vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 100px #080b1645;z-index:1}.game-overlay{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:linear-gradient(90deg,#0c1223b0,#0c122340,#0c1223a0);backdrop-filter:blur(2px)}.game-overlay[hidden]{display:none}.overlay-content{max-width:500px;text-align:center;padding:30px 28px;text-shadow:0 3px 18px #000}.overlay-symbol{font-size:38px;color:var(--gold);line-height:1}.overlay-content h2{font-family:"Cormorant Garamond",Georgia,serif;font-size:clamp(38px,5vw,64px);font-weight:400;line-height:1.05;margin:10px 0 15px;letter-spacing:-.03em}.overlay-content>p:not(.overlay-hint){font-size:12px;line-height:1.9;color:#e0e2e7;max-width:340px;margin:0 auto 25px}.gold-button{border:1px solid #f0d09b;background:var(--gold);color:#151b24;min-height:48px;padding:13px 24px;font-size:11px;font-weight:700;letter-spacing:.03em;display:inline-flex;align-items:center;justify-content:center;gap:20px;border-radius:2px;box-shadow:0 5px 22px #0003}.gold-button:hover{background:#f0c98a}.restart-button{display:block;margin:16px auto 0;padding:9px 15px;background:transparent;border:0;border-bottom:1px solid #d3bb8b70;font-size:10px}.restart-button[hidden]{display:none}.overlay-hint{font-size:9px;letter-spacing:.03em;line-height:1.7;color:#d0c8b9;margin:21px 0 0}.game-progress{height:2px;background:#243044}.game-progress span{display:block;height:100%;width:0;background:var(--gold);transition:width .2s linear}.game-controls{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;gap:20px;direction:ltr}.direction-controls{display:flex;gap:10px}.control-button{touch-action:none;user-select:none;-webkit-user-select:none;min-width:56px;height:48px;border:1px solid #d6b47838;background:#1b2636;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 3px 0 #080d16;transition:background .1s,transform .1s}.control-button svg{width:20px;height:20px;fill:none;stroke:var(--gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.control-button.is-held,.control-button:active{background:#3c4250;transform:translateY(2px);box-shadow:0 1px 0 #080d16}.jump-button{min-width:110px;background:#273240;border-color:#dfba7a70;font-size:11px}.game-controls>p{font-size:10px;color:var(--muted);margin:0;text-align:center;line-height:1.7}.game-footnote{text-align:center;color:#9ba4b3;font-size:9px;letter-spacing:.04em;line-height:1.7;margin:20px 0 25px}[dir=rtl] .game-heading h1,[dir=rtl] .overlay-content h2{font-family:Georgia,"Noto Naskh Arabic",serif;line-height:1.45}[dir=rtl] .back-link>span:first-child{transform:rotate(180deg)}
@media(max-width:700px){.game-header{padding:18px 5%;gap:12px}.brand>span{font-size:33px}.brand small{font-size:6px;letter-spacing:2px}.header-actions{gap:14px}.back-link{font-size:10px;gap:6px}.language-picker select{font-size:10px;width:65px;padding:10px 4px}.game-main{width:100%;margin:8px auto 0}.game-heading{padding:10px 5% 22px;display:block}.game-heading h1{font-size:39px}.game-heading p{font-size:10px;max-width:none;margin-top:9px}.game-shell{border-left:0;border-right:0;box-shadow:none}.game-hud{min-height:46px;padding:8px 5%;gap:13px}.chapter{font-size:8px;letter-spacing:.03em}.pause-button{font-size:9px;gap:3px}.game-stage{aspect-ratio:1/1}.overlay-content{padding:18px 24px;max-width:400px}.overlay-symbol{font-size:28px}.overlay-content h2{font-size:43px;margin:6px 0 10px}.overlay-content>p:not(.overlay-hint){font-size:11px;line-height:1.7;margin-bottom:19px;max-width:280px}.overlay-hint{font-size:8px;margin-top:17px}.gold-button{min-height:46px;padding:12px 19px;font-size:10px}.game-controls{padding:16px 5% calc(16px + env(safe-area-inset-bottom));gap:16px}.control-button{min-width:65px;height:57px}.jump-button{min-width:120px}.game-controls>p{display:none}.game-footnote{margin:15px 20px 20px;font-size:8px}.restart-button{margin-top:9px}.game-heading h1 em{white-space:nowrap}}
@media(max-width:360px){.game-heading h1{font-size:34px}.game-hud{gap:8px}.chapter{font-size:7px}.pause-button span{display:none}.overlay-content h2{font-size:36px}.overlay-content>p:not(.overlay-hint){font-size:10px}.overlay-symbol{display:none}.control-button{min-width:61px}.jump-button{min-width:110px}.back-link{font-size:9px}.header-actions{gap:9px}}
@media(orientation:landscape) and (max-height:650px){.game-header{padding:10px 4%}.game-main{width:min(980px,92%);margin:0 auto}.game-heading{padding-bottom:12px;align-items:center}.game-heading h1{font-size:30px}.game-heading p{display:none}.game-stage{aspect-ratio:2.5/1}.game-hud{min-height:36px;padding:5px 16px}.game-controls{padding:9px 16px}.control-button{height:42px}.game-footnote{margin:10px}.overlay-content{padding:15px}.overlay-symbol,.overlay-hint{display:none}.overlay-content h2{font-size:35px;margin:0 0 8px}.overlay-content>p:not(.overlay-hint){font-size:10px;margin-bottom:12px;max-width:400px}.gold-button{min-height:40px;padding:9px 20px}.restart-button{margin-top:4px;padding:5px 12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

[dir=rtl] body{font-family:'Noto Sans Arabic',Manrope,sans-serif}[dir=rtl] .game-heading h1,[dir=rtl] .overlay-content h2{font-family:Amiri,Georgia,serif}

body.game-portrait{overflow:hidden}
.rotate-dialog{inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:32px max(28px,env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));border:0;background:radial-gradient(ellipse at 50% 38%,#263247,#10151f 68%);color:var(--ivory);text-align:center}
.rotate-dialog[open]{display:flex;flex-direction:column;align-items:center;justify-content:center}
.rotate-dialog::backdrop{background:#10151f}
.rotate-illustration{width:190px;height:190px;fill:none;stroke:var(--gold);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.rotation-arrow{opacity:.5}.rotating-phone{transform-origin:100px 100px;animation:turn-phone 3.4s ease-in-out infinite}
.rotation-ratio{color:var(--gold);font-size:10px;letter-spacing:.2em;margin:0 0 20px}
.rotate-dialog h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:400;font-size:44px;line-height:1.08;margin:0 0 16px}
.rotate-dialog p{font-size:12px;line-height:1.85;color:#c7cbd3;max-width:290px;margin:0}
.rotate-home{font-size:10px;color:var(--gold);border-bottom:1px solid var(--line);padding:10px 0;margin-top:32px}
.fullscreen-button{display:none;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;background:#101a2baa;border:1px solid var(--line);border-radius:4px;color:var(--gold)}
.fullscreen-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.fullscreen-button[hidden]{display:none}
@media(pointer:coarse){.fullscreen-button:not([hidden]){display:inline-flex}}
[dir=rtl] .rotate-dialog h2{font-family:Amiri,Georgia,serif;line-height:1.4}
@keyframes turn-phone{0%{transform:rotate(0);opacity:0}12%,27%{transform:rotate(0);opacity:1}73%,85%{transform:rotate(90deg);opacity:1}100%{transform:rotate(90deg);opacity:0}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:650px){
  html,body{height:100%;overflow:hidden;overscroll-behavior:none}
  .game-header{position:fixed;z-index:5;top:0;left:0;right:0;max-width:none;height:44px;padding:0 max(18px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left));background:linear-gradient(#10151ff0,#10151f00)}
  .brand>span{font-size:25px;letter-spacing:-1px}.brand small{display:none}.header-actions{gap:18px}.back-link{font-size:9px;min-height:44px}.language-picker select{font-size:9px;width:66px;padding:5px 4px;min-height:44px}
  .game-main{width:100%;height:100dvh;margin:0;display:grid;place-items:center}
  .game-heading,.game-footnote{display:none}
  .game-shell{position:relative;width:min(100%,calc(100dvh * 16 / 9));aspect-ratio:16/9;border:0;box-shadow:none}
  .game-stage{width:100%;height:auto;aspect-ratio:16/9}
  .game-hud{position:absolute;z-index:3;inset:44px 0 auto;min-height:44px;padding:0 16px;gap:15px;background:linear-gradient(#10151f90,#10151f00);font-size:10px;pointer-events:none}
  .pause-button{pointer-events:auto;padding:3px 0 3px 10px;font-size:9px;min-height:44px;min-width:44px}.chapter{font-size:9px;letter-spacing:.04em}.star-counter>span:first-child,.life-counter>span:first-child{font-size:17px}
  .game-shell:has(.game-overlay:not([hidden])) .game-hud,.game-shell:has(.game-overlay:not([hidden])) .game-controls{visibility:hidden}
  .game-progress{position:absolute;bottom:0;width:100%;z-index:3}
  .game-controls{position:absolute;z-index:4;bottom:0;left:0;right:0;height:auto;padding:12px max(20px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:none;border:0;pointer-events:none}
  .game-controls>p{display:none}.direction-controls{gap:12px}.control-button{min-width:66px;height:58px;pointer-events:auto;background:#101a2b14;backdrop-filter:none;border-color:#dfba7a85;box-shadow:0 2px 8px #0003;text-shadow:0 1px 5px #000}.jump-button{min-width:116px;font-size:12px;background:#dfba7a14}.control-button.is-held,.control-button:active{background:#dfba7a35}
  .overlay-content{padding:16px;max-width:500px}.overlay-symbol,.overlay-hint{display:none}.overlay-content h2{font-size:36px;margin:0 0 9px}.overlay-content>p:not(.overlay-hint){font-size:11px;line-height:1.6;margin-bottom:14px;max-width:365px}.gold-button{min-height:42px;padding:10px 22px}.restart-button{margin-top:4px;padding:5px 12px}
}
@media(prefers-reduced-motion:reduce){.rotating-phone{animation:none;transform:rotate(90deg);opacity:1}}

.dancer-counter{display:flex;align-items:center;gap:7px;white-space:nowrap}.dancer-counter>span:first-child{font-size:18px;color:#edadd3}
.action-controls{display:flex;align-items:center;gap:10px}.shoot-button{min-width:58px;width:58px}.shoot-button svg{stroke:#f3b5d8;fill:#e99fcb22}
#celebration-canvas{position:absolute;inset:0;pointer-events:none;z-index:3}
.chapter-announcement{position:absolute;z-index:4;top:24%;left:50%;transform:translateX(-50%);width:68%;margin:0;text-align:center;pointer-events:none;font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(23px,3vw,38px);font-weight:400;line-height:1.2;color:#f1d29c;text-shadow:0 2px 18px #080d19,0 1px 3px #080d19}
.game-overlay.is-won .overlay-content{max-width:51%;justify-self:right;margin-right:3%;margin-left:0;padding:20px}.game-overlay.is-won .overlay-symbol{display:none}
[dir=rtl] .chapter-announcement{font-family:Amiri,Georgia,serif}
@media(max-width:360px){.direction-controls .control-button{min-width:58px}.action-controls{gap:8px}.shoot-button{min-width:50px;width:50px}.jump-button{min-width:84px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:650px){.shoot-button{min-width:58px;width:58px;background:#f3b5d810}.game-overlay.is-won .overlay-content{max-width:54%;padding:10px;margin-right:2%;margin-left:0}.game-overlay.is-won .overlay-content h2{font-size:clamp(26px,4vw,36px)}.game-overlay.is-won .overlay-content>p:not(.overlay-hint){font-size:10px;line-height:1.6}.chapter-announcement{font-size:26px}.game-hud{gap:12px}}
