/* Скретч: a physical ticket on the dark stage (foil header, perforation, nine sunken wells under a
   brushed silver cover), and the prize row under it. */
.g-scratch .g-stage { padding: 44px 14px 12px; }

/* the ticket */
.scr-ticket { position: relative; border-radius: 18px; background: linear-gradient(180deg, #2c2f48 0%, #222438 100%); box-shadow: 0 6px 0 #14151f, 0 18px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.09); }
.scr-ticket::before, .scr-ticket::after { content: ""; position: absolute; top: 59px; width: 20px; height: 20px; border-radius: 50%; background: var(--stage); z-index: 2; }
.scr-ticket::before { left: -10px; }
.scr-ticket::after { right: -10px; }

/* foil header: the top prize, then the result */
.scr-head { position: relative; height: 62px; padding: 0 12px 0 16px; border-radius: 18px 18px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: hidden; background: linear-gradient(100deg, #ffe08a 0%, #ffc337 30%, #e39a1f 58%, #ffd56a 80%, #f0a92a 100%); color: #2b1a00; }
.scr-head::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 22px, rgba(255,255,255,.16) 22px 27px, rgba(255,255,255,0) 27px 40px); pointer-events: none; }
.scr-hl { position: relative; z-index: 1; min-width: 0; }
.scr-hl small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; opacity: .78; white-space: nowrap; }
.scr-hl b { display: inline-block; font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.6px; white-space: nowrap; transform-origin: 0 60%; }
.scr-hr { position: relative; z-index: 1; height: 36px; padding: 0 12px; border-radius: 18px; display: inline-flex; align-items: center; gap: 5px; background: rgba(43,26,0,.16); font-size: 19px; font-weight: 900; white-space: nowrap; }
.scr-hr img { width: 19px; height: 19px; }
.scr-head.won.scr-k-lime { background: linear-gradient(100deg, #ecff9a 0%, #d4ff3a 40%, #a8d41a 75%, #d4ff3a 100%); color: #0b0c10; }
.scr-head.won.scr-k-lime .scr-hr { background: rgba(11,12,16,.12); }
.scr-head.push { background: linear-gradient(100deg, #e2e5ee 0%, #b8bdcc 45%, #d6dae6 100%); color: #1d2030; }
.scr-head.push .scr-hr { background: rgba(29,32,48,.12); }
.scr-head.lost { background: #2a2d42; color: var(--fg); }
.scr-head.lost::after { display: none; }
.scr-head.lost .scr-hl b { color: var(--loss); }
.scr-head.lost .scr-hr { background: rgba(0,0,0,.25); color: var(--fg2); }

/* perforation between the header and the field */
.scr-perf { height: 14px; margin: 0 16px; background: radial-gradient(circle, #14151f 2.2px, rgba(20,21,31,0) 2.8px) 0 50% / 12px 14px repeat-x; }

/* field: nine wells, the cover over them */
.scr-body { position: relative; padding: 0 12px 12px; }
.scr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.scr-cell { position: relative; height: 78px; border-radius: 12px; background: var(--sunk); box-shadow: inset 0 3px 9px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.05), 0 1px 0 rgba(255,255,255,.07); display: grid; place-items: center; }
.scr-cell img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.scr-cell.scr-hit { z-index: 1; }
.scr-cell.scr-hit.scr-k-lime { background: #1a2108; box-shadow: inset 0 0 0 2px #d4ff3a, 0 0 22px rgba(212,255,58,.45); }
.scr-cell.scr-hit.scr-k-gold { background: #271c06; box-shadow: inset 0 0 0 2px #ffc337, 0 0 26px rgba(255,195,55,.55); }
.scr-cell.scr-hit.scr-k-plain { background: #1c1e2c; box-shadow: inset 0 0 0 2px #e6e8f2, 0 0 14px rgba(230,232,242,.25); }
.scr-clip { position: absolute; left: 12px; right: 12px; top: 0; bottom: 12px; border-radius: 12px; overflow: hidden; z-index: 2; pointer-events: none; }
.scr-cover { display: block; pointer-events: auto; touch-action: pan-y; border-radius: 12px; }
.scr-cover[hidden] { display: none; }
.scr-cover.scr-live { touch-action: none; cursor: crosshair; }
.scr-body .fx-p { z-index: 4; }
.scr-reveal { position: absolute; left: 50%; bottom: 24px; z-index: 3; height: 40px; padding: 0 18px; border-radius: 20px; background: var(--tile); box-shadow: 0 4px 0 var(--tile-edge), 0 10px 18px rgba(0,0,0,.4); color: var(--fg); font-size: 14px; font-weight: 800; white-space: nowrap; transform: translateX(-50%); -webkit-tap-highlight-color: transparent; }
.scr-reveal:active { bottom: 21px; background: var(--tile-hi); box-shadow: 0 1px 0 var(--tile-edge); }
.scr-reveal[hidden] { display: none; }

/* prize row: gift and multiplier, the one just won lit */
.scr-row { display: flex; gap: 5px; margin-top: 14px; padding-bottom: 4px; }
.scr-chip { position: relative; top: 0; flex: 1 1 0; min-width: 0; height: 52px; border-radius: 10px; background: var(--tile); box-shadow: 0 4px 0 var(--tile-edge); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.scr-chip img { width: 27px; height: 27px; object-fit: contain; }
.scr-chip b { font-size: 12px; font-weight: 900; line-height: 1; color: var(--fg); white-space: nowrap; }
.scr-chip.on { z-index: 1; }
.scr-chip.on.scr-k-lime { background: var(--win); box-shadow: 0 4px 0 #8fb012, 0 0 18px rgba(212,255,58,.35); }
.scr-chip.on.scr-k-gold { background: #ffc337; box-shadow: 0 4px 0 #b9861a, 0 0 20px rgba(255,195,55,.45); }
.scr-chip.on.scr-k-plain { background: #e6e8f2; box-shadow: 0 4px 0 #9da3b4; }
.scr-chip.on b { color: #0b0c10; }

/* lobby tile: a tilted ticket, three watches open, the rest under silver */
.scr-tile { overflow: hidden; }
.scr-tglow { position: absolute; left: 6cqw; right: 6cqw; top: 8cqw; height: 80cqw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,195,55,.36), rgba(255,195,55,0)); }
.scr-tcard { position: absolute; left: 15cqw; right: 15cqw; top: 15cqw; border-radius: 7cqw; background: #262940; box-shadow: 0 2.5cqw 0 #12131d, 0 8cqw 14cqw rgba(0,0,0,.55); transform: rotate(-7deg); overflow: hidden; }
.scr-thead { height: 17cqw; display: flex; align-items: center; justify-content: center; gap: 2cqw; background: linear-gradient(100deg, #ffe08a 0%, #ffc337 35%, #e39a1f 65%, #ffd56a 100%); color: #2b1a00; font-family: Figtree, Inter, sans-serif; }
.scr-thead span { font-size: 7cqw; font-weight: 800; }
.scr-thead b { font-size: 12cqw; font-weight: 900; letter-spacing: -.3cqw; }
.scr-tgrid { padding: 4cqw; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3cqw; }
.scr-tw { aspect-ratio: 1; border-radius: 3.5cqw; background: #120d04; box-shadow: inset 0 0 0 .7cqw #ffc337, 0 0 5cqw rgba(255,195,55,.5); display: grid; place-items: center; }
.scr-tw img { width: 82%; height: 82%; object-fit: contain; }
.scr-tcover { position: relative; grid-column: 1 / -1; height: 21cqw; border-radius: 3.5cqw; overflow: hidden; background: linear-gradient(120deg, #8d93a6 0%, #d6dae6 35%, #a1a7b8 55%, #e2e5ee 80%, #979dae 100%); }
.scr-tscr { position: absolute; left: 8%; top: 18%; width: 62%; height: 13cqw; border-radius: 6.5cqw; background: #120d04; transform: rotate(-8deg); box-shadow: 0 0 0 .6cqw rgba(255,255,255,.4); overflow: hidden; }
.scr-tscr img { position: absolute; left: 6cqw; top: -2cqw; width: 17cqw; height: 17cqw; transform: rotate(8deg); }
