@font-face{font-family:Heebo;src:url(font/Heebo-var.ttf) format('truetype');font-weight:100 900;font-display:swap}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html{overflow-x:clip}html,body{min-height:100%;background:#07251a;color:#F7F2E8;font-family:Heebo,Arial,sans-serif;overscroll-behavior:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
button:focus-visible,a:focus-visible{outline:4px solid #fff;outline-offset:3px}
.screen{overflow-x:clip;min-height:100dvh;max-width:560px;margin:auto;position:relative}
#home{padding:14px 16px 26px;text-align:center;background:radial-gradient(ellipse 75% 45% at 50% 46%,#17573c,transparent 75%)}
.logo{height:50px;filter:brightness(0) invert(.94) sepia(.2)}
h1{font-weight:900;font-size:clamp(34px,11vw,56px);line-height:1;color:#FFD873;text-shadow:0 3px 0 #8a6a2c,0 10px 26px #0009}
h1 small{display:block;font-size:.46em;font-weight:700;color:#F7F2E8;text-shadow:none;margin:2px 0 5px}
.ages{display:inline-block;margin-top:10px;padding:4px 20px;border-radius:99px;background:#F7F2E8;color:#0F4A2E;font-weight:900;font-size:21px}
.round{width:46px;height:46px;border-radius:50%;background:#ffffff1c;font-size:20px;flex:none}
#mute{position:absolute;top:14px;left:14px}
#body{position:relative;width:clamp(190px,26.5dvh,264px);aspect-ratio:385/700;margin:12px auto 0}
#yoni{width:100%;display:block;transition:filter 1.2s}
#halo{position:absolute;inset:-12% -35%;border-radius:50%;background:radial-gradient(closest-side,#ffcf6b,transparent);opacity:0;transition:opacity 1.2s}
#spots button{position:absolute;width:42px;height:42px;margin:-21px 0 0 -21px;border-radius:50%;font-weight:900;font-size:20px;direction:ltr;display:grid;place-items:center}
.s-lock{background:#0b3322e6;border:2px dashed #7fa58c!important;color:#b9d0c0}
.s-open{background:#FFD873;color:#0F4A2E;animation:pulse 1.3s infinite}
.s-won{background:radial-gradient(circle,#fff6d0 18%,#ffbe3d 55%,#ff9d1f00 72%);color:#7a4300;transform:scale(1.15)}
@keyframes pulse{0%{box-shadow:0 0 0 0 #ffd873b0}100%{box-shadow:0 0 0 24px #ffd87300}}
#shuli{position:absolute;width:40%;left:-36%;bottom:0;animation:bob 1.6s ease-in-out infinite alternate}
@keyframes bob{to{transform:translateY(-9px) rotate(3deg)}}
#bubble{position:absolute;left:-40%;bottom:40%;width:44%;background:#F7F2E8;color:#0F4A2E;border-radius:16px;padding:7px 8px;font-weight:800;font-size:15px;line-height:1.15}
.dance #yoni{animation:dance .5s ease-in-out infinite alternate;transform-origin:50% 100%}
@keyframes dance{from{transform:rotate(-4deg)}to{transform:rotate(4deg) translateY(-8px)}}
#count{margin:10px 0 8px;font-weight:700;font-size:17px}
.big{display:block;width:100%;max-width:400px;margin:0 auto;padding:15px;border-radius:18px;background:linear-gradient(#FFE08A,#E9B544);color:#0b3322;font-weight:900;font-size:25px;box-shadow:0 6px 0 #8a6a2c}
.big:active{transform:translateY(4px);box-shadow:0 2px 0 #8a6a2c}
.big:disabled{background:#31604a;color:#d7e5db;box-shadow:none;cursor:default}
.big.alt{background:#F7F2E8;box-shadow:0 6px 0 #9db5a5}
.big+.big,.row{margin-top:15px}
#next{margin:14px 0;font-weight:700;font-size:18px;color:#FFD873;min-height:1.3em}
.foot{font-size:14px;line-height:1.5;color:#c9dacf}
.wa{display:inline-flex;flex-direction:column;align-items:center;gap:3px;margin-top:18px;padding:14px 16px;border-radius:24px;background:#fff;color:#0F4A2E;text-decoration:none;font-size:15px;max-width:290px}
.wa b{font-size:18px;line-height:1.25}
.wa img{display:block}
#game{height:100dvh;display:flex;flex-direction:column;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
#game header{display:flex;align-items:center;gap:10px;padding:8px 12px}
#gt{flex:1;font-weight:900;font-size:22px;color:#FFD873}
#hearts{font-size:22px;letter-spacing:2px}
#bar{height:12px;margin:0 12px 8px;border-radius:9px;background:#ffffff22;overflow:hidden}
#bar i{display:block;height:100%;width:0;border-radius:9px;background:linear-gradient(90deg,#FFE08A,#ffab2e);margin-inline-start:0;transition:width .2s}
#stage{flex:1;min-height:0;display:grid;place-items:center;padding-bottom:8px}
#cv{border-radius:18px;touch-action:none;display:block}
#modal{position:fixed;inset:0;z-index:5;background:#04150ed9;display:grid;place-items:center;padding:14px;overflow:auto}
#card{width:100%;max-width:430px;background:#0F4A2E;border:2px solid #E6C36A;border-radius:26px;padding:22px 18px;text-align:center}
#card h2{font-size:34px;line-height:1.1;font-weight:900;color:#FFD873}
#card p{font-size:20px;line-height:1.4;margin:10px 0 16px}
#card video{width:100%;max-height:58dvh;border-radius:16px;background:#000;margin-bottom:14px}
#card .pic{height:130px;margin-bottom:6px}
#card .tip{background:#F7F2E8;color:#0F4A2E;border-radius:16px;padding:11px;font-weight:800}
#card a.big{text-decoration:none;margin-top:15px}
.link{margin-top:16px;font-size:18px;text-decoration:underline;padding:8px}
#conf{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:9}
#shabbat{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:22px;padding:24px;font-size:22px;line-height:1.5}
#shabbat[hidden]{display:none}
@media (prefers-reduced-motion:reduce){#shuli,.s-open,.dance #yoni{animation:none}}
