/* v0.15.151: ▶ Bemutató – overlay of the hands-off demo (js/tutorial.js).
   The overlay sits above everything, takes every tap (the viewer may only close it) and leaves
   the real game visible underneath; the only things it draws are a caption bar, a ring and a hand. */
#helpPanel .ui-head{flex-wrap:wrap}
#helpPanel .ui-head .help-tutorial{width:auto;height:34px;padding:0 13px;margin-left:auto;border-radius:999px;background:#f3d49a;color:#3b2a10;font-size:.82rem;font-weight:800;cursor:pointer}
#helpPanel .ui-head .help-tutorial:focus-visible{outline:2px solid #fff;outline-offset:2px}
body.multiball-test-mode #helpTutorial{display:none}

.tut{position:fixed;inset:0;z-index:2000;touch-action:none;user-select:none;-webkit-user-select:none;cursor:default}
.tut-bar{position:absolute;left:50%;top:max(8px,env(safe-area-inset-top));transform:translateX(-50%);width:min(calc(calc(100 * var(--uvw)) - 16px),560px);box-sizing:border-box;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 10px;padding:10px 12px 9px 15px;border-radius:16px;background:#10202bf0;color:#fff;border:1px solid #ffffff40;box-shadow:0 8px 26px #0008;font:600 clamp(.88rem,calc(3.6 * var(--uvw)),1.02rem)/1.35 system-ui,sans-serif}
.tut.low .tut-bar{top:auto;bottom:max(8px,env(safe-area-inset-bottom))}
.tut-text{min-height:2.7em;display:flex;align-items:center}
.tut-close{grid-column:2;grid-row:1;align-self:start;width:34px;height:34px;border:0;border-radius:10px;background:#ffffff24;color:#fff;font-size:1rem;font-weight:900;cursor:pointer}
.tut-close:focus-visible,.tut-end button:focus-visible{outline:2px solid #ffd98a;outline-offset:2px}
.tut-dots{grid-column:1/-1;display:flex;gap:7px}
.tut-dots i{width:22px;height:5px;border-radius:3px;background:#ffffff33;transition:background .3s}
.tut-dots i.done{background:#ffffff88}
.tut-dots i.on{background:#ffd98a}

.tut-ring{position:fixed;left:0;top:0;width:0;height:0;box-sizing:border-box;border:3px solid #ffd98a;border-radius:16px;box-shadow:0 0 0 2px #0006,0 0 18px 4px #ffd98a99;opacity:0;pointer-events:none;transition:left .35s ease,top .35s ease,width .35s ease,height .35s ease,opacity .25s}
.tut-ring.show{opacity:1;animation:tut-pulse 1.2s ease-in-out infinite}
@keyframes tut-pulse{50%{box-shadow:0 0 0 2px #0006,0 0 28px 9px #ffd98acc}}

.tut-hand{position:fixed;left:0;top:0;margin:-8px 0 0 -16px;font-size:2.4rem;line-height:1;opacity:0;pointer-events:none;filter:drop-shadow(0 3px 4px #0009);transition:transform .6s cubic-bezier(.4,.1,.2,1),opacity .25s}
.tut-hand.show{opacity:1}
.tut-hand.nomove{transition:none}
.tut-hand.tap{animation:tut-tap .4s ease}
@keyframes tut-tap{40%{scale:.82}}
.tut-pressed{filter:brightness(1.25);transform:scale(.96)}

.tut-end{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(calc(calc(100 * var(--uvw)) - 40px),340px);box-sizing:border-box;text-align:center;padding:22px 20px 18px;border-radius:20px;background:#10202bf5;color:#fff;border:1px solid #ffffff40;box-shadow:0 14px 40px #000a}
.tut-end[hidden]{display:none}
.tut-end strong{display:block;font-size:1.3rem;margin-bottom:6px}
.tut-end p{margin:0 0 16px;opacity:.85}
.tut-end div{display:flex;gap:10px;justify-content:center}
.tut-end button{flex:1;height:42px;border:0;border-radius:12px;background:#ffffff26;color:#fff;font-weight:800;font-size:.95rem;cursor:pointer}
.tut-end .tut-done{background:#f3d49a;color:#3b2a10}

/* the game's own score/level readouts belong to the real level, not to the demo */
body.tutorial-active #padTop .pad-stat,body.tutorial-active .game-head .scenario-info{opacity:.35}

@media (prefers-reduced-motion:reduce){.tut-ring,.tut-hand,.tut-dots i{transition:none}.tut-ring.show,.tut-hand.tap{animation:none}}
