/* AllJ Slots online player (play.asp) */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: #000; color: #fff; font-family: Arial, Helvetica, sans-serif; user-select: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }

.pl-stage { position: fixed; inset: 0; overflow: hidden; }
.pl-canvas { position: absolute; left: 50%; top: 50%; transform-origin: center center; overflow: hidden; }

/* reels (geometry comes from slotkit.js) */
.sk-face::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,20,20,.7) 0%, rgba(40,40,40,.32) 12%, rgba(60,60,60,.06) 28%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 62%, rgba(60,60,60,.06) 72%, rgba(40,40,40,.32) 88%, rgba(20,20,20,.7) 100%); }
.sk-cell.hit img { animation: plPulse .45s ease-in-out infinite alternate; }
/* winning symbols zoom only: no glow around them, and the payline keeps its color */
@keyframes plPulse { to { transform: scale(1.1); } }
@keyframes plBlink { 50% { opacity: .25; } }
@keyframes plDigits { 50% { opacity: 0; } }

/* meters + buttons: looks in slotkit.css, positions from slotkit.js */
/* only the lit digits blink; the red panel and its unlit 8s stay put */
#plCredits.nocred .val { animation: plDigits .3s steps(2) 3; }
#plSpin:not(:disabled):not(.off) img { animation: plLamp 1.2s ease-in-out infinite; }
@keyframes plLamp { 50% { filter: brightness(.72) drop-shadow(0 4px 6px #000); } }

/* corner tools */
.pl-tools { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); display: flex; gap: 8px; z-index: 60; }   /* above the Lead Gen form, code box and scanner */
.pl-tools-br { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); }
/* round icon buttons: info and full screen at the top right, sound at the bottom right */
.pl-ico { width: 38px; height: 38px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: rgba(255,255,255,.75); cursor: pointer; opacity: .6; transition: opacity .2s, background .2s; }
.pl-ico:hover, .pl-ico:focus-visible { opacity: 1; background: rgba(0,0,0,.6); outline: none; }
.pl-ico svg { width: 20px; height: 20px; display: block; }
.pl-ico .pl-snd-off { display: none; }
/* internet indicator (checked every 5 s): light gray when the site answers, solid red when it doesn't */
.pl-net { cursor: default; }
.pl-net:hover { opacity: .6; background: rgba(0,0,0,.35); }
.pl-net.down, .pl-net.down:hover { opacity: 1; color: #ff3b30; border-color: #ff3b30; border-width: 2px; background: rgba(60,0,0,.55); }
.pl-ico.off .pl-snd-on { display: none; }
.pl-ico.off .pl-snd-off { display: inline; }
.pl-ico.off { opacity: .45; }
/* the "?" popup */
.pl-info { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); padding: 16px; }
.pl-info[hidden] { display: none; }
.pl-info-card { position: relative; min-width: 260px; max-width: 420px; text-align: center; background: rgba(14,16,20,.96); border: 1.5px solid #9aa4b2; border-radius: 16px; padding: 28px 34px 26px; }
.pl-info-card h2 { margin: 0 0 14px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #9aa4b2; }
.pl-info-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: none; color: #9aa4b2; font-size: 26px; line-height: 1; cursor: pointer; }
.pl-info-x:hover { color: #fff; }
.pl-info-big { font-size: clamp(34px, 6vw, 54px); font-weight: 900; color: #fff; }
.pl-info-sub { margin-top: 6px; font-size: 15px; color: #c4cbd4; }

/* preview badge */
.pl-badge { position: fixed; top: 10px; left: 10px; z-index: 20; background: #f0b400; color: #1d1600; font-weight: 900; letter-spacing: .12em; font-size: 13px; padding: 6px 12px; border-radius: 6px; box-shadow: 0 2px 8px #0008; pointer-events: none; }
.pl-badge small { display: block; font-weight: 700; letter-spacing: 0; font-size: 11px; opacity: .8; }
.pl-badge-sm { top: 6px; left: 6px; font-size: 10px; letter-spacing: .14em; padding: 3px 7px; border-radius: 4px; opacity: .9; }
.pl-site { position: fixed; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 20; color: #fff; font: 600 9px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .03em; text-decoration: none; text-shadow: 0 1px 3px #000, 0 0 6px #000a; opacity: .55; white-space: nowrap; }
.pl-site:hover { opacity: .9; text-decoration: underline; }
/* tiny frames (a website embed on a phone, the demo page mockup): smaller corner tools and badge so they don't sit on the reels */
@media (max-height: 300px), (max-width: 420px) and (max-height: 520px) {
  .pl-tools { top: 5px; right: 5px; gap: 5px; }
  .pl-tools-br { top: auto; bottom: 5px; }
  .pl-ico { width: 26px; height: 26px; border-width: 1px; }
  .pl-ico svg { width: 14px; height: 14px; }
  .pl-badge-sm { top: 4px; left: 4px; font-size: 8px; letter-spacing: .1em; padding: 2px 5px; }
  .pl-site { font-size: 7px; bottom: 2px; }
}

/* overlays */
.pl-over { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); padding: 16px; }
.pl-over[hidden] { display: none; }
.pl-over-card { text-align: center; background: rgba(12,12,12,.92); border: 2px solid #555; border-radius: 16px; padding: 34px 46px; max-width: 640px; }
.pl-over h2 { margin: 0; font-size: clamp(26px, 4vw, 46px); text-transform: uppercase; letter-spacing: .04em; }
.pl-over p { margin: 12px 0 0; font-size: clamp(16px, 2vw, 22px); color: #ccc; }
.pl-over p:empty { display: none; }
.pl-over.sticky .pl-over-card { border-color: #9aa4b2; box-shadow: 0 0 30px rgba(255,255,255,.12); }
.pl-over.tap { cursor: pointer; }
.pl-over.tap .pl-over-card { border-color: #52bd47; animation: plTap 1.3s ease-in-out infinite; }
@keyframes plTap { 50% { box-shadow: 0 0 34px #52bd4799; } }

/* message page (bad / expired link) */
.pl-msg { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 30%, #1f2a3a, #05070a 70%); font-family: "Mulish", Arial, sans-serif; }
.pl-msg img { height: 110px; margin-bottom: 18px; }
.pl-msg h1 { margin: 0 0 8px; font-size: 28px; }
.pl-msg-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.pl-msg-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 50px; padding: 0 22px; border-radius: 10px; border: 1px solid #44505f; background: #1f2732; color: #e9eef4; font: 800 16px "Mulish", Arial, sans-serif; text-decoration: none; cursor: pointer; }
.pl-msg-btn.go { background: #45ac3b; border-color: #45ac3b; color: #fff; }
.pl-msg-btn:hover { filter: brightness(1.1); }
.pl-msg p { margin: 0; color: #b8c2cf; max-width: 520px; font-size: 17px; line-height: 1.5; }
/* a frame image carries its own glass shading: don't shade the reel twice */
.sk-reel.sk-overlay .sk-face::after { display: none; }
/* preview only: what the scanner read */
.pl-codetoast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; background: #1f2a37; color: #fff; font: 700 18px Arial, sans-serif;
  padding: 12px 20px; border-radius: 10px; border: 2px solid #52bd47; box-shadow: 0 6px 20px #000a; transition: opacity .4s; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-codetoast.out { opacity: 0; }
.pl-over.offline .pl-over-card { border-color: #f0b400; box-shadow: 0 0 30px #f0b40055; }

/* play codes: the "scan your code" message is a banner, the scanner and code box stay usable */
/* "Code already used" / "Code not accepted": centered over the dimmed game, like the other messages */
.pl-over.codes { pointer-events: none; }
.pl-over.codes .pl-over-card { border-color: #52bd47; }

.pl-stage.tap-plays { cursor: pointer; }

/* sign-up form (lead capture) */
.pl-lead { position: fixed; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.42); padding: 16px; }
.pl-lead[hidden] { display: none; }
/* idle 20 s: the form fades away so the whole machine shows; a key or tap brings it back */
.pl-lead { transition: opacity .9s ease; }
.pl-lead.doze { opacity: 0; pointer-events: none; }
/* play code box: centered popup over the dimmed game, Enter sends (no button) */
.pl-lead-card.pl-code-card { width: min(470px, 100%); text-align: center; padding: 0; background: none; box-shadow: none; border-radius: 14px; overflow: visible; }
.pl-lead-card.pl-code-card input { box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.pl-code-card input { width: 100%; box-sizing: border-box; height: 84px; padding: 0 24px; font: 400 34px Arial, Helvetica, sans-serif; color: #1d2733; text-align: center;
  border: 3px solid #d6dce3; border-radius: 14px; outline: none; }
.pl-code-card input:focus { border-color: #45ac3b; box-shadow: 0 0 0 4px rgba(69,172,59,.25), 0 12px 40px rgba(0,0,0,.6); }
.pl-code-card input::placeholder { color: #8a95a3; font-weight: 400; }
/* QR scanner: dim the game and show the prompt while waiting for a code; the square sits on top of all */
.pl-scan-dim { position: absolute; inset: 0; background: rgba(0,0,0,.42); z-index: 48; opacity: 0; pointer-events: none; transition: opacity .5s; }
.pl-scan-dim.on { opacity: 1; }
.pl-scan-prompt { position: absolute; z-index: 51; transform: translateX(-50%); white-space: nowrap; font: 900 38px Arial, Helvetica, sans-serif; color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,.8); opacity: 0; pointer-events: none; transition: opacity .5s; }
.pl-scan-prompt.above { transform: translate(-50%, -100%); }
.pl-scan-prompt.on { opacity: 1; }
/* the scanner square fades away while a player has credits, and back in when they run out */
.sk-scan { transition: opacity .6s ease; }
.sk-scan.gone { opacity: 0; pointer-events: none; }
/* idle fade (same as the code box): square, prompt and dimming fade out; a key or tap brings them back */
.sk-scan.doze, .pl-scan-dim.on.doze, .pl-scan-prompt.on.doze { opacity: 0; transition: opacity .9s ease; }
.pl-lead-card { width: min(720px, 100%); max-height: 94vh; overflow: auto; background: #fff; color: #1d2733; border-radius: 22px; padding: 30px 32px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.6); user-select: text; }
.pl-lead-card h2 { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 36px); }
.pl-lead-card > p { margin: 0 0 18px; color: #55606d; font-size: 17px; line-height: 1.45; }
.pl-lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.pl-lead-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.pl-lead-fields input { height: 52px; padding: 0 14px; font: 400 19px Arial, Helvetica, sans-serif; color: #1d2733; border: 2px solid #d6dce3; border-radius: 12px; outline: none; }
.pl-lead-fields input:focus { border-color: #45ac3b; box-shadow: 0 0 0 3px rgba(69,172,59,.2); }
.pl-lead-err { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #b42318; font-weight: 700; }
.pl-lead-err[hidden] { display: none; }
.pl-lead-btns { display: flex; gap: 12px; margin-top: 20px; }
.pl-lead-btns button { height: 60px; border: 0; border-radius: 999px; font-weight: 900; font-size: 20px; }
.pl-lead-cancel { flex: 0 0 auto; padding: 0 26px; background: #eef1f4; color: #3b4654; }
.pl-lead-go { flex: 1; background: #45ac3b; color: #fff; }
.pl-lead-go:disabled { opacity: .6; }
@media (max-width: 560px) { .pl-lead-fields { grid-template-columns: 1fr; } }

/* deployment station number: picker (first run) and small corner badge */
.pl-stno { position: fixed; left: 10px; bottom: 8px; z-index: 20; border: 0; background: rgba(0,0,0,.35); color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.pl-stno { transition: opacity .6s ease; pointer-events: none; }
.pl-stno.gone { opacity: 0; }

/* reCAPTCHA on public play (demo, play links, website embeds): Google's badge is hidden (it sat on
   the corner buttons); the required notice is in the Info panel instead. #plHuman = v2 checkbox gate. */
.grecaptcha-badge { visibility: hidden !important; }
.pl-rc-note { margin: 14px 0 0; font-size: 11px; line-height: 1.5; color: #8e98a6; }
.pl-rc-note a { color: #b9c3cf; }
.pl-human { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 8, 12, .72); }
.pl-human[hidden] { display: none; }
.pl-human-card { background: #fff; color: #1d2733; border-radius: 16px; padding: 22px 26px 24px; text-align: center; font-family: Mulish, "Segoe UI", Arial, sans-serif; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.pl-human-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.pl-human-card p { margin: 0 0 14px; font-size: 15px; color: #4a5563; }
#plHumanV2 { display: inline-block; }
