/* Greb-greb follows the storefront's charcoal, white and orange palette. */
.scratch-game[hidden],.scratch-game [hidden]{display:none!important}
.scratch-game{position:fixed;inset:0;z-index:16000;display:grid;place-items:center;box-sizing:border-box;padding:24px;background:#101112b8;backdrop-filter:blur(8px);font-family:Inter,Arial,sans-serif}
.scratch-game *{box-sizing:border-box}
.scratch-game__panel{position:relative;width:min(480px,100%);min-width:0;max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;padding:48px 32px 28px;border:1px solid #ffffff35;border-radius:22px;background:radial-gradient(ellipse at 100% 0,#ff870012,transparent 55%),#fff;color:#202124;text-align:center;box-shadow:0 24px 80px #0005;scrollbar-width:thin}
.scratch-game__panel::before{content:"";position:absolute;inset:0 32px auto;height:4px;border-radius:0 0 8px 8px;background:linear-gradient(90deg,#ff9800,#ff5900)}
.scratch-game .scratch-game__close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:40px;height:40px;min-height:40px;margin:0;padding:0;border:1px solid #e8e8e8;border-radius:50%;background:#fff;color:#343638;font:400 28px/1 Arial,sans-serif;box-shadow:none;cursor:pointer}
.scratch-game .scratch-game__close:hover{background:#fff3e8;color:#e85b00}
.scratch-game h2{margin:0 20px 12px;color:#17191b;font-size:clamp(26px,4vw,34px);font-weight:850;letter-spacing:-1px;line-height:1.15}
.scratch-game__subtitle{margin:0;color:#656b70;font-size:16px;line-height:1.55;overflow-wrap:anywhere}
.scratch-game__subtitle strong{color:#ed6700;font-weight:750}
.scratch-game__card{position:relative;display:grid;place-items:center;min-height:210px;margin:24px 0;overflow:hidden;border:1px solid #f0d8c4;border-radius:16px;background:#fffaf5}
#scratchGameReward{max-width:100%;padding:24px 16px;color:#f57700;font-size:30px;font-weight:850;line-height:1.15;text-align:center;letter-spacing:-1px;overflow-wrap:anywhere}
.scratch-game--percent #scratchGameReward{font-size:clamp(48px,12vw,68px);letter-spacing:-2px}
.scratch-game:not(.scratch-game--revealed) .scratch-game__card{cursor:grab}
.scratch-game canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.scratch-game canvas:active{cursor:grabbing}
.scratch-game__result{margin:0 0 22px;padding:14px;border:1px solid #f4dfcc;border-radius:12px;background:#fff7ef;color:#52575b;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.scratch-game .scratch-game__continue,.scratch-game #scratchAddToOrder{display:block;width:100%;min-height:50px;margin:0;padding:15px 18px;border:0;border-radius:10px;background:linear-gradient(110deg,#ff9500,#ff5900);box-shadow:0 5px 15px #ff6a0026;color:#fff;font:750 15px/1.35 Inter,Arial,sans-serif;white-space:normal;cursor:pointer}
.scratch-game .scratch-game__continue:hover,.scratch-game #scratchAddToOrder:hover{filter:brightness(1.06)}
.scratch-game button:focus-visible{outline:3px solid #ff8700;outline-offset:3px}
.scratch-game button:disabled{opacity:.65;cursor:wait}
.scratch-game--product-result .scratch-game__card{min-height:0;margin:20px 0;background:transparent;border:0;overflow:visible}
.scratch-reveal-product{display:flex;flex-direction:column;align-items:center;width:100%;gap:10px;color:#202124}
.scratch-reveal-win{display:none}
.scratch-reveal-pack{color:#656b70;font-size:13px}
.scratch-reveal-media{display:flex;justify-content:center;width:100%;padding:12px;border:1px solid #eee;border-radius:14px;background:#fff}
.scratch-reveal-media img{display:block;width:100%;max-width:260px;height:clamp(120px,23dvh,190px);object-fit:contain}
#scratchRevealDiscount{display:block;width:100%;padding:4px 10px;color:#f57700;font-size:clamp(44px,12vw,64px);letter-spacing:-2px;font-weight:850;line-height:1.1}
.scratch-reveal-prices{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:8px 12px}
#scratchRevealRegularPrice{color:#858585;font-size:16px}
#scratchRevealPrice{color:#202124;font-size:28px;font-weight:800}
#scratchRevealName{display:none}
#scratchProductChoice p{margin:0 0 16px;color:#656b70;font-size:14px;line-height:1.55}
.scratch-game #scratchSkipProduct{display:block;width:100%;min-height:44px;margin-top:10px;padding:10px 16px;border:1px solid #dedfe1;border-radius:10px;background:#fff;color:#52575b;box-shadow:none;font:600 14px/1.4 Inter,Arial,sans-serif;cursor:pointer}
.scratch-game #scratchSkipProduct:hover{background:#f5f6f7}
.scratch-game--loading .scratch-game__card>*{visibility:hidden}
.scratch-game--loading .scratch-game__card::after{content:'GREBI OVDJE';position:absolute;inset:0;display:grid;place-items:center;color:#ff9500;font-size:22px;font-weight:800;background:linear-gradient(135deg,#151719,#333639 50%,#151719)}
.scratch-game--immediate:not(.scratch-game--revealed) .scratch-game__card{min-height:240px}
.scratch-game:not(.scratch-game--revealed) .scratch-game__panel{background:transparent;border-color:transparent;box-shadow:none}
.scratch-game:not(.scratch-game--revealed) .scratch-game__panel::before{display:none}
.scratch-game:not(.scratch-game--revealed) h2{color:#fff}
.scratch-game:not(.scratch-game--revealed) .scratch-game__subtitle{color:#dedfe1}
.scratch-game:not(.scratch-game--revealed) .scratch-game__card{border:0;background:#151719}
.scratch-game:not(.scratch-game--revealed) .scratch-game__close{background:#25282b;border-color:#ffffff30;color:#fff}
@media(max-width:600px){
 .scratch-game{padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .scratch-game__panel{width:min(420px,100%);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:56px 20px 22px;border-radius:18px}
 .scratch-game__panel::before{inset-inline:24px}
 .scratch-game__subtitle{font-size:15px}
 .scratch-game__card{min-height:190px;margin:20px 0}
 .scratch-game--immediate:not(.scratch-game--revealed) .scratch-game__card{min-height:210px}
 .scratch-game--product-result .scratch-game__card{min-height:0;margin:16px 0}
}
@media(max-height:600px){.scratch-game__panel{padding-top:50px;padding-bottom:18px}.scratch-game__card,.scratch-game--immediate:not(.scratch-game--revealed) .scratch-game__card{min-height:150px;margin:14px 0}.scratch-game--product-result .scratch-game__card{min-height:0}.scratch-reveal-media img{height:110px}.scratch-game h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){.scratch-game{backdrop-filter:none}}
