@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@400;500;600;700&display=swap');
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{font-family:Arimo,Arial,sans-serif;background:#0d1420;color:#fff3de;color-scheme:dark}button{font:inherit;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid #f9cf8a;outline-offset:4px}[hidden]{display:none!important}#world{position:fixed;inset:0;background-size:cover;background-position:center bottom;overflow:hidden;isolation:isolate}.photo-shade{position:absolute;inset:0;background:linear-gradient(#050b16a0,transparent 28%,transparent 85%,#080e18b0);pointer-events:none}.composition{position:absolute;aspect-ratio:1.13;left:50%;transform:translateX(-50%);bottom:106px;isolation:isolate}.menorah-photo{position:absolute;top:22%;left:0;width:100%;height:auto;z-index:2;pointer-events:none;filter:drop-shadow(0 8px 5px #0008)}.contact-shadow{position:absolute;bottom:2%;left:27%;width:46%;height:4%;background:#0008;border-radius:50%;filter:blur(8px)}.candles-layer{position:absolute;inset:0;z-index:3;pointer-events:none}.photo-candle{position:absolute;transform:translate(-50%,-100%);width:2.9%;height:18%;padding:0;border:0;border-radius:0;background:transparent;pointer-events:auto;overflow:visible;min-width:0}.photo-candle::before{content:'';position:absolute;inset:-22% -75%;z-index:5}.photo-candle img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}.photo-candle:hover{filter:brightness(1.08)}.photo-candle:focus-visible{border-radius:8px}.flame{display:none;position:absolute;bottom:98%;left:24%;width:52%;height:24%;border-radius:65% 35% 48% 52%/80% 70% 30% 30%;background:radial-gradient(ellipse at 50% 75%,#fff 0%,#fff7c3 28%,#ffd674 55%,#ffa72c 78%,transparent 96%);filter:drop-shadow(0 0 5px #ffb94d);transform-origin:center bottom;animation:fire 1.7s ease-in-out infinite alternate;animation-delay:var(--delay);pointer-events:none}.flame i{position:absolute;bottom:0;left:33%;width:34%;height:14%;border-radius:50%;background:#8aa8ef}.candle-halo{display:none;position:absolute;left:-300%;top:-90%;width:700%;height:150%;border-radius:50%;background:radial-gradient(ellipse,#ffc46b2b,#ffb24809 45%,transparent 70%);pointer-events:none;mix-blend-mode:screen}.lit .flame,.lit .candle-halo{display:block}@keyframes fire{0%,100%{transform:rotate(-2deg) scale(.97,.95)}45%{transform:rotate(2deg) scale(.9,1.06)}75%{transform:rotate(-1deg) scale(1.02,1)}}
.welcome{position:fixed;top:5%;left:0;right:0;text-align:center;pointer-events:none;text-shadow:0 2px 22px #000}.spark{font-size:23px;color:#f2d39b}.welcome h1{font-size:clamp(25px,3vw,42px);font-weight:500;margin:7px 0}.welcome p{font-size:14px;color:#d7c8b1;margin:0}.enter{position:fixed;bottom:40px;left:0;right:0;text-align:center}#start{background:linear-gradient(120deg,#ba8b4c,#f3ddb0);border:1px solid #ebcf96;border-radius:50px;padding:14px 28px;color:#2d2416;font-size:17px;font-weight:600;box-shadow:0 7px 35px #0004}#start span{margin-right:18px}#start:hover{filter:brightness(1.1)}body.playing .composition{bottom:65px}.dock{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:3px;align-items:center;padding:5px 7px;border:1px solid #ddc69530;border-radius:30px;background:#0a101cbd;backdrop-filter:blur(18px);box-shadow:0 8px 30px #0005;white-space:nowrap;z-index:12}.dock button{font-size:13px;line-height:1;border:0;background:transparent;border-radius:20px;padding:10px 13px}.dock button:hover,.dock button[aria-expanded=true]{background:#f3d39a19;color:#ffe2a9}.dock #sound,.dock #full{font-size:19px;padding:7px 10px;min-width:34px}.divider{width:1px;height:17px;background:#ffffff25;margin:0 4px}#counter{font-size:10px;color:#ac9b80;padding:0 8px;min-width:28px;font-variant-numeric:tabular-nums}#panel{position:fixed;bottom:77px;left:50%;transform:translateX(-50%);width:min(460px,calc(100vw - 24px));padding:9px 12px 13px;background:#0d1727ed;border:1px solid #e2c69438;border-radius:18px;box-shadow:0 15px 60px #0009;backdrop-filter:blur(22px);z-index:11}.panel-top{display:flex;align-items:center;justify-content:space-between;color:#d6c7aa;font-size:13px;padding:0 4px 6px}.panel-top button{background:transparent;border:0;color:#c2b8aa;font-size:23px;padding:0 7px;line-height:28px}#choices{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;max-height:220px;overflow:auto}.choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;padding:8px 4px;background:#ffffff04;border:1px solid transparent;border-radius:10px;font-size:11px;color:#b8bdc8}.choice.active{border-color:#d9b46a9c;background:#d9b46a10;color:#ffe0a3}.choice:hover{background:#ffffff0a}.choice img{width:100%;height:74px;object-fit:contain}.photo-choices{grid-template-columns:repeat(2,1fr)!important}.mood-choices{grid-template-columns:repeat(3,1fr)!important}.mood-choices img{height:65px;object-fit:cover;border-radius:6px}.candle-preview{display:flex;align-items:end;justify-content:center;gap:3px;height:44px}.candle-preview img{height:40px;width:6px;object-fit:fill}.yoyo{position:fixed;bottom:5px;right:12px;font-size:10px;color:#d2bd94a0;text-decoration:none;z-index:8}.yoyo:hover{color:#ffe1a9}#hint{position:fixed;bottom:80px;left:0;right:0;text-align:center;font-size:12px;color:#ffebcaaa;text-shadow:0 1px 5px #000;pointer-events:none;transition:opacity .5s}#hint.faded{opacity:0}#toast{position:fixed;bottom:85px;left:50%;transform:translate(-50%,8px);opacity:0;pointer-events:none;background:#101b2ce8;border:1px solid #e3c18535;border-radius:15px;padding:12px 20px;max-width:min(90vw,480px);font-size:14px;text-align:center;transition:.3s;z-index:15}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:700px){.welcome{top:7%}.welcome h1{font-size:27px}.welcome p{font-size:12px}.composition{bottom:22%}body.playing .composition{bottom:20%}.dock{bottom:max(22px,env(safe-area-inset-bottom));padding:4px;gap:0}.dock button{padding:10px 11px;font-size:12px}.dock #sound,.dock #full{padding:7px 8px;font-size:17px}#counter{font-size:9px;padding:0 5px}.divider{margin:0 2px}.enter{bottom:12%}.yoyo{bottom:6px;font-size:9px}#panel{bottom:80px}#hint{bottom:80px;font-size:11px}}
@media(max-height:550px) and (min-width:701px){.welcome{top:12px}.welcome h1{font-size:24px;margin:1px}.welcome p,.spark{display:none}.composition{bottom:65px}.enter{bottom:15px}#start{padding:10px 22px;font-size:15px}body.playing .composition{bottom:55px}.dock{bottom:10px}#panel{bottom:64px}}
@media(prefers-reduced-motion:reduce){.flame{animation:none}*{transition:none!important}}

/* Small paired arrows keep the artwork unobstructed. */
.switcher{display:flex;align-items:center}.dock .switcher [data-tab]{padding-left:5px;padding-right:5px}.dock .cycle{padding:4px 7px;font-size:24px;font-family:Arial,sans-serif;min-width:28px;height:32px}.selection-caption{position:fixed;bottom:73px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:8px;font-size:12px;color:#e5d8c1;text-shadow:0 2px 8px #000;pointer-events:none}.selection-caption small{font-size:10px;opacity:.6;direction:ltr}.caption-dot{opacity:.5}#hint{bottom:96px}#panel{bottom:100px}#toast{bottom:103px}.photo-choices{grid-template-columns:repeat(5,1fr)!important}#choices{max-height:min(240px,45vh)}.choice{font-size:12px}.photo-choices .choice img{height:64px}.candles-layer{z-index:1}.photo-candle{width:2.2%;height:19%}.photo-candle img{object-fit:contain;object-position:center bottom}.flame{left:30%;width:40%;height:20%;bottom:98%}.candle-halo{opacity:.65}.candle-preview img{width:auto;max-width:8px;object-fit:contain}.dock [data-tab]{font-size:14px}
@media(max-width:700px){.dock{max-width:calc(100vw - 12px);padding:4px}.dock .cycle{padding:4px 3px;min-width:22px}.dock [data-tab]{font-size:12px;padding:10px 6px}.dock #sound,.dock #full{padding:6px;min-width:28px}.dock #counter{padding:0 3px;min-width:20px}.selection-caption{bottom:77px;font-size:10px;gap:5px}.selection-caption small{font-size:9px}.photo-choices{grid-template-columns:repeat(3,1fr)!important}#panel{bottom:103px}#hint{bottom:99px}.photo-candle{width:2.4%}}

.menorah-photo{z-index:0}.contact-shadow{z-index:-1}.menorah-rims{position:absolute;top:22%;left:0;width:100%;height:auto;z-index:2;pointer-events:none;clip-path:url(#rim-mask)}.photo-candle{width:2.7%;height:18%}.photo-candle img{object-fit:fill}.flame{left:28%;width:44%;height:22%}

/* Three large choices; arrows belong only to the open picker. */
#panel{width:min(760px,calc(100vw - 24px));padding:14px 16px 10px;bottom:95px;border-radius:22px;background:#101a2bf5}
.panel-top{font-size:16px;padding:0 4px 10px}.panel-top button{width:32px;height:32px}
#choices,#choices.photo-choices,#choices.mood-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;direction:ltr;gap:12px;max-height:none;overflow:visible;min-height:185px;align-content:start}
.choice{direction:rtl;padding:12px 8px 10px;gap:12px;min-height:185px;font-size:14px;line-height:1.3;background:#ffffff05;border:1px solid #ffffff0b;border-radius:14px;transition:background .15s,border-color .15s}
.choice>img,.photo-choices .choice img{width:100%;height:138px;object-fit:contain}
.mood-choices .choice>img{height:138px;object-fit:cover;border-radius:9px}
.candle-preview{height:138px;gap:12px;width:100%;align-items:center}.candle-preview img{height:125px;width:auto;max-width:19px;object-fit:contain}.chunky-preview{gap:8px}.chunky-preview img{max-width:29%;height:125px}
.picker-footer{display:flex;flex-direction:column;align-items:center;gap:3px;padding-top:9px}.picker-pager{display:flex;align-items:center;gap:20px}.picker-pager button{border:1px solid #ddc69540;border-radius:50%;width:36px;height:36px;padding:0 0 3px;background:#ffffff08;font:29px/1 Arial,sans-serif;color:#f5dcad}.picker-pager button:hover:not(:disabled){background:#f3d39a20}.picker-pager button:disabled{opacity:.2;cursor:default}.picker-pager span{font-size:13px;min-width:45px;text-align:center;color:#d9c6a5;font-variant-numeric:tabular-nums}#pageRange{font-size:11px;color:#a8acb7}
.photo-candle.chunky{width:6.5%;height:14%}.photo-candle.chunky .flame{left:42%;width:16%;height:24%;bottom:98%}.photo-candle.chunky::before{inset:-20% -18%}.photo-candle.chunky .candle-halo{left:-100%;width:300%;top:-90%;height:150%}.dock [data-tab]{padding:10px 13px}
@media(max-width:700px){#panel{padding:10px 9px 8px;bottom:99px;border-radius:18px;width:calc(100vw - 16px)}.panel-top{font-size:14px;padding-bottom:8px}#choices,#choices.photo-choices,#choices.mood-choices{gap:6px;min-height:130px}.choice{font-size:12px;padding:8px 4px;gap:8px;min-height:130px}.choice>img,.photo-choices .choice img,.mood-choices .choice>img{height:85px}.candle-preview{height:85px;gap:5px}.candle-preview img{height:80px;max-width:12px}.chunky-preview{gap:3px}.chunky-preview img{max-width:29%;height:80px}.picker-footer{padding-top:8px}.picker-pager{gap:24px}.picker-pager button{width:34px;height:34px}.dock [data-tab]{padding:10px 12px}}
@media(max-height:550px){#panel{bottom:66px;padding:8px 12px}.panel-top{padding-bottom:4px}.choice{min-height:110px;gap:5px;padding:5px}#choices,#choices.photo-choices,#choices.mood-choices{min-height:110px}.choice>img,.photo-choices .choice img,.mood-choices .choice>img,.candle-preview{height:78px}.candle-preview img{height:74px}.picker-footer{padding-top:4px;flex-direction:row;justify-content:center;gap:20px}.picker-pager button{height:30px;width:30px}}

#choices,#choices.photo-choices,#choices.mood-choices{direction:rtl}.picker-pager{direction:rtl;gap:16px}.picker-pager #pageRange{font-size:13px;min-width:118px;color:#c8c5c0;direction:rtl}.click-meter{position:fixed;top:max(18px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));display:flex;flex-direction:column;align-items:center;padding:9px 17px;border-radius:16px;background:#0c1529a8;border:1px solid #ffffff1b;backdrop-filter:blur(12px);z-index:8;color:#f5e4c1}.click-meter #counter{font-size:30px;line-height:1.1;font-weight:700;min-width:40px;padding:0;color:#ffe0a3;font-variant-numeric:tabular-nums}.click-meter>span:last-child{font-size:12px;margin-top:3px;color:#ddd4c5}.dock #share{display:flex;align-items:center;padding:8px 10px}#hint{bottom:77px}#panel{bottom:77px}
#shareDialog{border:1px solid #e4c99450;border-radius:22px;background:#111c2c;color:#f4e5ce;padding:28px;width:min(440px,calc(100vw - 28px));box-shadow:0 25px 90px #0008;text-align:right}#shareDialog::backdrop{background:#02071299;backdrop-filter:blur(5px)}#closeShare{position:absolute;left:12px;top:10px;border:0;background:transparent;color:#c4c9d3;font-size:26px}#shareDialog h2{font-size:24px;margin:5px 0 12px}#shareDialog p{font-size:15px;line-height:1.6;color:#b9c4d2;margin:10px 0 20px}#shareDialog label{display:block;font-size:13px;margin:0 0 8px;color:#e0ceae}#shareLink{width:100%;background:#080f1c;border:1px solid #ffffff26;border-radius:10px;padding:12px;font:14px Arial,sans-serif;color:#fff;box-sizing:border-box}#copyShare{width:100%;border:0;border-radius:11px;background:#e9c58b;color:#241c11;font-weight:600;font-size:16px;padding:12px;margin-top:14px}#shareDialog #shareFeedback{min-height:22px;margin:12px 0 0;font-size:13px;color:#e9d29e}
@media(max-width:700px){.click-meter{top:12px;left:12px;padding:8px 13px}.click-meter #counter{font-size:26px}.click-meter>span:last-child{font-size:11px}#panel{bottom:80px}.picker-footer{padding-top:8px}#hint{bottom:78px}}
@media(max-height:550px){#panel{bottom:66px}.click-meter #counter{font-size:24px}}

.picker-pager button{direction:ltr;unicode-bidi:isolate}

.click-meter,.click-meter #counter{text-align:center}.click-meter>span{width:100%}#randomize{position:fixed;top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));z-index:8;width:52px;height:52px;display:grid;place-items:center;padding:0;border:1px solid #ffffff26;border-radius:16px;background:#0c1529a8;backdrop-filter:blur(12px);color:#ffe0a3;cursor:pointer}#randomize:hover{background:#263249}#randomize:active svg{transform:rotate(20deg)}#randomize:focus-visible{outline:2px solid #ffe0a3;outline-offset:3px}@media(max-width:700px){#randomize{top:12px;right:12px;width:46px;height:46px}}

#toast{width:min(90vw,520px);max-height:45vh;overflow:auto;line-height:1.65;font-size:16px}
#finishDialog{margin:0;padding:24px;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;color:#fff2d9;background:radial-gradient(ellipse at 50% 45%,#263a65 0%,#101c37 48%,#080f21 100%);overflow:auto;text-align:center}#finishDialog::backdrop{background:#080f21}#closeFinish{position:fixed;left:20px;top:15px;background:#ffffff0d;border:1px solid #ffffff22;width:42px;height:42px;border-radius:50%;font-size:28px;z-index:3}.finish-content{position:relative;margin:auto;max-width:640px;min-height:calc(100dvh - 48px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1}.finish-eyebrow{letter-spacing:2px;font-size:14px;color:#d7bd8b}#finishTitle{font-size:clamp(36px,6vw,66px);margin:10px 0;font-weight:700;color:#ffe2a0;text-shadow:0 0 45px #f9b84335}.finish-score{display:flex;flex-direction:column;gap:3px}.finish-score b{font-size:clamp(38px,6vw,62px);line-height:1.1;color:white;font-variant-numeric:tabular-nums}.finish-score span{font-size:15px;color:#c4cfeb}.finish-message{font-size:17px;line-height:1.6;margin:15px 0 5px;color:#e3e8f3}.dancing-candles{display:flex;justify-content:center;align-items:end;gap:clamp(8px,3vw,26px);height:190px;padding-top:34px;margin:4px 0 20px;width:100%}.party-candle{position:relative;width:65px;height:145px;transform-origin:50% 100%;animation:partyDance 1.2s ease-in-out infinite;animation-delay:calc(var(--i)*-.21s)}.party-candle img{width:100%;height:100%;object-fit:contain;object-position:bottom}.party-flame{position:absolute;left:44%;bottom:101%;width:12%;height:23px;border-radius:80% 20% 65% 35%;background:linear-gradient(#ff9d30,#fff6bb);box-shadow:0 0 16px #ffb344;animation:partyFlicker .5s alternate infinite}.finish-primary{padding:14px 35px;border:0;border-radius:40px;background:linear-gradient(110deg,#edb954,#ffe6ad);color:#292013;font-size:19px;font-weight:bold;box-shadow:0 8px 40px #ffbf4325}.finish-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:5px}.finish-links a{padding:12px 18px;border:1px solid #d1dcff33;border-radius:30px;text-decoration:none;color:#e6ecff;background:#ffffff08;font-size:15px}#playAgain{border:0;background:none;color:#c2cbe1;text-decoration:underline;margin-top:17px;padding:8px;font-size:14px}#finishShareStatus{margin:8px 0;min-height:18px;color:#ffe2a0;font-size:14px}#finishShareFallback{width:min(100%,450px);margin-top:12px}#finishShareFallback label{display:block;font-size:14px;margin-bottom:6px}#finishLink{width:100%;padding:10px;border:1px solid #ffffff33;border-radius:9px;background:#0a1327;color:white;font-size:14px}.finish-sparkles{position:fixed;inset:0;pointer-events:none;overflow:hidden}.finish-sparkles i{position:absolute;left:var(--x);top:-20px;width:7px;height:12px;background:hsl(var(--h) 80% 75%);animation:partyConfetti 5s linear infinite;animation-delay:calc(var(--d)*-1)}@keyframes partyDance{0%,100%{transform:translateY(0) rotate(-9deg)}50%{transform:translateY(-16px) rotate(9deg)}}@keyframes partyFlicker{to{transform:scale(.8,1.15) rotate(12deg)}}@keyframes partyConfetti{to{transform:translateY(110vh) rotate(540deg)}}@media(max-width:600px){#finishDialog{padding:20px 14px}.finish-content{min-height:calc(100dvh - 40px)}.dancing-candles{height:150px;margin-bottom:15px}.party-candle{height:112px;width:49px}.finish-message{font-size:16px}.finish-links{gap:8px}.finish-links a{font-size:14px;padding:11px 13px}}@media(prefers-reduced-motion:reduce){.party-candle,.party-flame,.finish-sparkles i{animation:none}.finish-sparkles{display:none}}

#toast{padding:25px 22px 17px;pointer-events:none}#toast.show{pointer-events:auto}#closeToast{position:absolute;top:4px;left:6px;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:#e5e9f1;font-size:25px;line-height:1}#closeToast:hover{background:#ffffff15}#toastWelcome{display:flex;flex-direction:column;align-items:center;gap:5px;margin-top:8px}.welcome-arrow{font-size:30px;line-height:1;color:#ffe0a3}#confirmToast{border:1px solid #f3d39a55;border-radius:20px;background:#e8c68f;color:#271f15;padding:7px 28px;font-size:15px;font-weight:bold}#toastText{padding:0 10px}#toast:has(#toastWelcome:not([hidden])){bottom:80px}@media(max-width:700px){#toast{bottom:87px;width:calc(100vw - 28px);font-size:15px;padding:27px 16px 15px}#toast:has(#toastWelcome:not([hidden])){bottom:80px}}

#toastWelcome{flex-direction:row;direction:rtl;justify-content:center;gap:14px}.welcome-arrows{display:flex;gap:6px;align-items:center}.welcome-arrows .welcome-arrow{animation:welcomeBlink 1.2s ease-in-out infinite}@keyframes welcomeBlink{0%,100%{opacity:1;transform:translateY(0)}50%{opacity:.25;transform:translateY(4px)}}@media(prefers-reduced-motion:reduce){.welcome-arrows .welcome-arrow{animation:none}}

.picker-pager button{width:50px;height:50px;min-width:50px;font-size:40px;font-weight:bold;line-height:1;border:2px solid #e9c684;background:#efd098;color:#222a3b;box-shadow:0 3px 13px #0005;display:grid;place-items:center;padding:0 0 4px}.picker-pager button:hover:not(:disabled){background:#ffe6b6;transform:scale(1.06)}.picker-pager button:disabled{opacity:.25;background:#65718a;color:#fff;border-color:#8992a4;box-shadow:none}.picker-pager{gap:22px}.dock #useShamash{white-space:nowrap;font-size:13px;border:1px solid #f1cc8144;background:#f1cc8112;padding:9px 10px}.dock #useShamash[aria-pressed="true"]{background:#f2d49b;color:#251d13}.using-shamash [data-candle="4"]{visibility:hidden}.using-shamash #world{touch-action:none}.using-shamash #world *{touch-action:none}#heldShamash{position:fixed;z-index:10;pointer-events:none;transform:translateX(-50%);filter:drop-shadow(0 3px 6px #0006)}.held-candle{position:relative;width:100%;height:100%;transform-origin:50% 0;transform:rotate(-25deg)}.held-candle img{width:100%;height:100%;object-fit:contain;object-position:top}.held-flame{position:absolute;left:calc(50% - 5px);top:-17px;width:10px;height:23px;border-radius:70% 30% 60% 40%;background:radial-gradient(ellipse at 50% 75%,#fffde0 10%,#ffdf70 35%,#ff8e24 75%);box-shadow:0 0 14px 4px #ffbc4266;animation:heldFire .5s ease-in-out infinite alternate}@keyframes heldFire{to{transform:scale(.85,1.13)}}@media(max-width:700px){.picker-pager button{width:46px;height:46px;min-width:46px;font-size:36px}.dock{gap:1px;padding:5px 4px;max-width:calc(100vw - 10px)}.dock [data-tab]{padding:10px 8px}.dock #share,.dock #full,.dock #sound{padding:7px;min-width:29px}.dock #useShamash{padding:8px 7px;font-size:12px}.divider{margin:0 2px}}@media(max-width:360px){.dock [data-tab]{padding:9px 5px;font-size:12px}.dock #useShamash{padding:8px 5px}.dock #useShamash span{display:none}}@media(prefers-reduced-motion:reduce){.held-flame{animation:none}}

#heldShamash>.flame{display:block;bottom:100%;left:28%;width:44%;height:22%;--delay:0s}#heldShamash.chunky>.flame{left:42%;width:16%;height:24%}

.yoyo,.hanukkah-games{position:fixed;bottom:5px;font-size:13px;line-height:1.4;color:#ead8b7;text-decoration:none;z-index:8;text-shadow:0 1px 4px #000}.yoyo{right:12px}.hanukkah-games{left:12px}.yoyo:hover,.hanukkah-games:hover{color:#fff2d1;text-decoration:underline}.dock{bottom:max(30px,env(safe-area-inset-bottom))}@media(max-width:700px){.yoyo,.hanukkah-games{font-size:12px}.yoyo{right:8px}.hanukkah-games{left:8px}}

.picker-pager button{width:62px;min-width:62px;height:40px;border-radius:12px;padding:0}.picker-pager button svg{width:29px;height:25px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}@media(max-width:700px){.picker-pager button{width:58px;min-width:58px;height:38px;border-radius:11px}}

.photo-candle:not(.chunky){width:4.7%;height:18%}.photo-candle:not(.chunky) .flame{left:37%;width:26%;height:22%}.photo-candle:not(.chunky)::before{inset:-20% -30%}.candle-preview:not(.chunky-preview) img{max-width:40px;width:31%;height:125px;object-fit:contain}#heldShamash:not(.chunky)>.flame{left:37%;width:26%;height:22%}#heldShamash:not(.chunky) .held-candle img{object-fit:fill}@media(max-width:700px){.candle-preview:not(.chunky-preview) img{height:80px;max-width:27px}.candle-preview:not(.chunky-preview){gap:5px}}@media(max-height:550px){.candle-preview:not(.chunky-preview) img{height:74px}}

.photo-candle:not(.chunky){width:3.7%}.photo-candle:not(.chunky) .flame{left:33.5%;width:33%}.photo-candle.original-wax{width:2.7%}.photo-candle.original-wax .flame{left:28%;width:44%}.candle-preview:not(.chunky-preview) img{max-width:32px}.candle-preview.original-preview img{max-width:19px}#heldShamash:not(.chunky)>.flame{left:33.5%;width:33%}#heldShamash.original-wax>.flame{left:28%;width:44%}@media(max-width:700px){.candle-preview:not(.chunky-preview) img{max-width:21px}.candle-preview.original-preview img{max-width:12px}}

#timeSettings{position:fixed;top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));z-index:8;width:52px;height:52px;display:grid;place-items:center;padding:0;border:1px solid #ffffff26;border-radius:16px;background:#0c1529a8;backdrop-filter:blur(12px);color:#ffe0a3}#timeSettings:hover{background:#263249}#randomize{top:calc(max(18px,env(safe-area-inset-top)) + 62px)}.wax-window{position:absolute;inset:0;overflow:hidden;pointer-events:none}.photo-candle .wax-window img{transform:translateY(var(--burn-shift,0%));width:100%;height:100%;object-fit:fill}.photo-candle .flame,.photo-candle.chunky .flame{bottom:calc(98% - var(--burn-shift,0%))}.photo-candle .candle-halo{transform:translateY(var(--burn-shift,0%))}.held-candle{overflow:hidden}.photo-candle.spent:focus-visible{outline:2px solid #ffe0a3}#renewCandles{position:fixed;bottom:91px;left:50%;transform:translateX(-50%);z-index:9;padding:9px 18px;border:1px solid #e9c98b66;border-radius:22px;background:#152238;color:#ffe0a3}
#timeDialog{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 30px);overflow:auto;border:1px solid #e4c99450;border-radius:22px;background:#111c2c;color:#f4e5ce;padding:28px;text-align:center;box-shadow:0 25px 90px #0008}#timeDialog::backdrop{background:#02071299;backdrop-filter:blur(5px)}#closeTime{position:absolute;left:10px;top:8px;width:36px;height:36px;border:0;background:transparent;color:#c4c9d3;font-size:27px}#timeDialog h2{font-size:26px;margin:4px 0 7px}#timeDialog p{color:#bdc8d8;line-height:1.6;margin:7px 0 17px}.time-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.time-options button{background:#ffffff08;border:1px solid #ffffff20;border-radius:12px;padding:13px 5px;font-size:16px}.time-options button[aria-pressed="true"]{background:#edd09a;color:#231c13;border-color:#edd09a}.time-options button:hover{border-color:#edd09a}#customTime fieldset{border:1px solid #ffffff20;border-radius:14px;margin:20px 0 0;padding:16px}#customTime legend{font-size:15px;color:#dfcfb1;padding:0 7px}.custom-time-fields{display:flex;align-items:end;justify-content:center;gap:12px}.custom-time-fields label{display:flex;flex-direction:column;gap:7px;font-size:14px;color:#c5ccda}.custom-time-fields input{width:95px;max-width:25vw;padding:10px;border:1px solid #ffffff30;border-radius:9px;background:#080f1c;color:white;font:20px Arimo,Arial;text-align:center}.custom-time-fields>span{padding-bottom:11px}#customTime button{width:100%;margin-top:14px;padding:11px;border:0;border-radius:10px;background:#ead09f;color:#211b12;font-size:16px}#timeDialog #timeError{margin:8px 0;color:#ffb4a2;font-size:14px}#timeDialog .time-explanation{font-size:13px;margin:15px 0}#resetWax{padding:8px 17px;border:1px solid #ffffff25;border-radius:20px;background:transparent;font-size:14px}@media(max-width:700px){#timeSettings{top:12px;right:12px;width:46px;height:46px}#randomize{top:68px}#timeDialog{padding:24px 18px}.time-options{gap:7px}}

.photo-candle.absent{visibility:hidden!important;pointer-events:none!important}
.click-meter{padding:6px 10px;min-width:52px}.click-meter #counter{font-size:21px;min-width:0}.click-meter>span:last-child{font-size:10px;margin-top:2px}
#randomize{right:auto;left:max(18px,env(safe-area-inset-left));top:calc(max(18px,env(safe-area-inset-top)) + 61px);width:46px;height:46px}
#candleSettings{position:fixed;right:max(18px,env(safe-area-inset-right));top:calc(max(18px,env(safe-area-inset-top)) + 62px);z-index:8;width:52px;height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px;border:1px solid #ffffff26;border-radius:16px;background:#0c1529a8;backdrop-filter:blur(12px);color:#ffe0a3}#candleSettings span{font-size:23px}#candleSettings small{font-size:11px}
#candlesDialog{width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:25px 18px;border:1px solid #e4c99450;border-radius:22px;background:#111c2c;color:#f4e5ce;text-align:center}#candlesDialog::backdrop{background:#020712aa;backdrop-filter:blur(5px)}#closeCandles{position:absolute;left:8px;top:6px;font-size:27px;background:none;border:0;color:#c4c9d3}#candlesDialog h2{margin:4px 0 10px;font-size:25px}#candlesDialog p{font-size:14px;color:#bdc8d8}.night-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0}.night-options button{padding:11px 3px;border:1px solid #ffffff30;border-radius:10px;background:#ffffff08}.night-options button[aria-pressed="true"]{background:#edd09a;color:#211b12}#candleSlots{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:3px;align-items:end;margin:25px 0}#candleSlots button,#candleSlots .slot-shamash{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 0;border:1px dashed #ffffff35;border-radius:8px;background:none;min-width:0;font-size:24px}#candleSlots button[aria-pressed="false"]{opacity:.3}#candleSlots button[aria-pressed="true"]{border-style:solid;border-color:#efd19c;background:#efd19c15}#candleSlots small{font-size:11px}#candleSlots .slot-shamash{border:0;transform:translateY(-13px)}#applyCandles{padding:12px 24px;background:#edd09a;color:#211b12;border:0;border-radius:12px;font-size:16px}.placement-note{font-size:12px!important}
@media(max-width:700px){.click-meter{padding:5px 8px;min-width:46px}.click-meter #counter{font-size:19px}#randomize{right:auto;left:12px;top:65px;width:46px;height:46px}#candleSettings{right:12px;top:68px;width:46px;height:55px}}

#candleSlots button[aria-pressed="true"]{border:2px solid #4ee18e;background:#17643d;color:#edfff3;opacity:1}#candleSlots button[aria-pressed="false"]{border:2px dashed #8391a5;background:#162236;color:#d5dce7;opacity:1}#candleSlots button[aria-pressed="false"]>span{color:#b5c0d0;font:30px Arial}#candleSlots .slot-state{font-size:10px;white-space:nowrap;font-weight:700}#candleSlots button.slot-shamash{transform:translateY(-13px)}.night-options button[aria-pressed="true"]{background:#17643d;border-color:#4ee18e;color:#edfff3}.dock #useShamash:disabled{opacity:.4;cursor:not-allowed}@media(max-width:360px){#candleSlots{gap:2px}#candleSlots .slot-state{font-size:9px}}

#candleSettings{height:52px}#candleSettings span{font-size:27px}@media(max-width:700px){#candleSettings{height:46px}}

#chooseCandleDesign{display:block;margin:14px auto 0;padding:10px 18px;border:1px solid #e4c99455;border-radius:12px;background:#ffffff08;color:#f4e5ce;font-size:14px}#chooseCandleDesign:hover{background:#ffffff15}#chooseCandleDesign:focus-visible{outline:2px solid #4ee18e;outline-offset:3px}

#renewCandles,#resetWax{background:#f2d49b;color:#251d13;border:1px solid #ffe6b6;font-weight:700;box-shadow:0 4px 18px #0004}#renewCandles{padding:12px 24px;font-size:16px}#renewCandles:hover,#resetWax:hover{background:#ffe6b6}#renewCandles:focus-visible,#resetWax:focus-visible{outline:3px solid #fff;outline-offset:3px}
