/* PopperPoker HTML loading screen (shown from the first byte, before the engine; hidden by PopperHost.ready()).
   Festive splash in the Akiba Vegas Christmas language: a bright full-bleed festive casino scene framed by our Santa host,
   gifts, coins, chips and a slot machine; the 3D logo popping in over the centre aisle with a gold shine sweep; a slim gold-rimmed
   capsule bar along the bottom with a flowing pink liquid and the percentage inside; rotating tips above it.
   Class names .pp3d-loading / __fill / --done are the host contract: keep them. */
html,body{margin:0;height:100%;overflow:hidden;background:#1a0a4a;touch-action:none;-webkit-user-select:none;user-select:none}
.pp3d-loading{position:fixed;inset:0;z-index:30;overflow:hidden;background:#1a0a4a;transition:opacity .55s ease,transform .55s ease;font-family:"Exo 2",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.pp3d-loading--done{opacity:0;transform:scale(1.04);pointer-events:none}
/* full-bleed cover; the scene keeps its characters at the edges, so a slow push-in never crops them */
.pp3d-loading__bgblur{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(18px) saturate(1.1) brightness(.85);transform:scale(1.12);display:none}
.pp3d-loading__bg{position:absolute;left:50%;top:50%;width:max(100vw,177.78vh);height:auto;aspect-ratio:16/9;transform:translate(-50%,-50%);animation:pp3d-kb 18s ease-out forwards}
/* light veil: the picture stays bright, only the very bottom darkens a little so the bar and tips read */
.pp3d-loading__veil{position:absolute;inset:0;background:radial-gradient(ellipse 90% 80% at 50% 45%,rgba(20,6,60,0) 55%,rgba(14,4,44,.38) 100%),linear-gradient(180deg,rgba(14,4,44,.18) 0,rgba(14,4,44,0) 16%,rgba(14,4,44,0) 72%,rgba(10,2,30,.62) 100%)}
.pp3d-loading__halo{position:absolute;left:50%;top:31%;width:min(56vw,560px);height:min(28vw,280px);transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse at center,rgba(255,150,240,.42) 0,rgba(140,80,255,.18) 45%,rgba(120,60,255,0) 70%);filter:blur(8px);animation:pp3d-breathe 2.6s ease-in-out infinite}
.pp3d-loading__brand{position:absolute;left:50%;top:31%;width:min(32vw,58vh,420px);aspect-ratio:720/387;transform:translate(-50%,-50%);
  animation:pp3d-pop .75s cubic-bezier(.2,1.45,.4,1) .05s both,pp3d-float 3.2s ease-in-out .8s infinite}
.pp3d-loading__logo{display:block;width:100%;height:100%;filter:drop-shadow(0 10px 16px rgba(8,0,30,.55)) drop-shadow(0 0 20px rgba(255,90,230,.4))}
.pp3d-loading__shine{position:absolute;inset:0;-webkit-mask:url(popper-loading/logo-720.webp) center/contain no-repeat;mask:url(popper-loading/logo-720.webp) center/contain no-repeat;background:linear-gradient(105deg,transparent 0 40%,rgba(255,255,255,.85) 48%,rgba(255,255,255,0) 56%) no-repeat;background-size:260% 100%;background-position:160% 0;mix-blend-mode:screen;animation:pp3d-shine 3.4s ease-in-out .9s infinite}
.pp3d-loading__spark{position:absolute;width:7px;height:7px;border-radius:50%;background:radial-gradient(circle,#fff 0,#ffd75a 40%,rgba(255,215,90,0) 70%);opacity:0;animation:pp3d-twinkle 2.8s ease-in-out infinite}
.pp3d-loading__spark:nth-of-type(1){left:36%;top:18%;animation-delay:.2s}.pp3d-loading__spark:nth-of-type(2){left:64%;top:16%;animation-delay:1.1s}
.pp3d-loading__spark:nth-of-type(3){left:60%;top:44%;animation-delay:1.9s}.pp3d-loading__spark:nth-of-type(4){left:40%;top:43%;animation-delay:.7s}
.pp3d-loading__spark:nth-of-type(5){left:50%;top:9%;animation-delay:2.4s}
/* bottom block: tips line, then the slim capsule bar */
.pp3d-loading__bottom{position:absolute;left:50%;bottom:max(5.5vh,calc(env(safe-area-inset-bottom) + 14px));width:min(60vw,112vh,760px);transform:translateX(-50%);text-align:center}
.pp3d-loading__text{position:relative;height:1.35em;margin:0 0 clamp(6px,1.2vh,10px);color:#fff;font-weight:800;font-size:clamp(12px,2.3vh,17px);line-height:1.35;letter-spacing:.03em;
  -webkit-text-stroke:3px #2a0758;paint-order:stroke fill;text-shadow:0 2px 0 #2a0758,0 0 10px rgba(255,90,230,.45);white-space:nowrap}
.pp3d-loading__tip{position:absolute;left:0;right:0;top:0;opacity:0;animation:pp3d-tips 12s infinite}
.pp3d-loading__tip:nth-child(2){animation-delay:4s}.pp3d-loading__tip:nth-child(3){animation-delay:8s}
.pp3d-loading__tip b{color:#ffd54a}
.pp3d-loading__bar{position:relative;height:clamp(20px,4vh,32px);border-radius:999px;padding:3px;box-sizing:border-box;
  background:linear-gradient(180deg,#fff3b8 0,#ffd256 30%,#d99a1c 62%,#8a5608 100%);
  box-shadow:0 0 0 2px rgba(60,10,110,.85),0 6px 12px rgba(6,0,24,.55),0 0 16px rgba(255,90,230,.4)}
.pp3d-loading__track{position:absolute;inset:3px;border-radius:999px;overflow:hidden;background:linear-gradient(180deg,#12052f 0,#2b0d63 100%);box-shadow:inset 0 3px 5px rgba(0,0,0,.6)}
/* two liquids, same look: __creep flows in on its own clock (so the bar never sits still), __fill is the real progress from
   PopperHost.setLoading() and takes over whenever it is ahead. Their stripes share the left origin, so they line up. */
.pp3d-loading__creep,.pp3d-loading__fill{position:absolute;left:0;top:0;display:block;width:0;height:100%;border-radius:999px;overflow:hidden;transition:width .6s cubic-bezier(.2,.8,.2,1);
  background:linear-gradient(180deg,#ffd6f7 0,#ff5bdb 32%,#d41fb8 64%,#8e0f8a 100%);box-shadow:inset 0 -3px 5px rgba(80,0,70,.45),0 0 10px rgba(255,80,230,.6)}
.pp3d-loading__liquid{position:absolute;inset:0;background:repeating-linear-gradient(115deg,rgba(255,255,255,0) 0 12px,rgba(255,255,255,.24) 12px 21px);background-size:56px 100%;animation:pp3d-flow .9s linear infinite}
.pp3d-loading__wave{position:absolute;left:0;right:0;top:-40%;height:80%;background:radial-gradient(ellipse 16px 8px at 50% 100%,rgba(255,236,252,.7) 0,rgba(255,236,252,0) 70%) repeat-x;background-size:32px 100%;animation:pp3d-wave 1.4s linear infinite;opacity:.8}
.pp3d-loading__bubbles{position:absolute;inset:0;background:radial-gradient(circle at 20% 70%,rgba(255,255,255,.7) 0 2px,transparent 3px),radial-gradient(circle at 55% 40%,rgba(255,255,255,.55) 0 1.6px,transparent 2.6px),radial-gradient(circle at 80% 75%,rgba(255,255,255,.6) 0 2px,transparent 3px);background-size:80px 100%;animation:pp3d-bubbles 2.2s linear infinite}
.pp3d-loading__creep{animation:pp3d-creep 14s cubic-bezier(.1,.6,.3,1) .2s forwards}
.pp3d-loading__creep::after{content:"";position:absolute;right:-5px;top:-20%;width:18px;height:140%;border-radius:50%;background:radial-gradient(ellipse at center,rgba(255,255,255,.95) 0,rgba(255,220,250,.6) 35%,rgba(255,120,240,0) 70%);animation:pp3d-tip 1.1s ease-in-out infinite}
.pp3d-loading__gloss{position:absolute;left:4%;right:4%;top:4px;height:28%;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.38),rgba(255,255,255,0));pointer-events:none}
.pp3d-loading__pct{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:clamp(11px,2.1vh,16px);letter-spacing:.04em;
  -webkit-text-stroke:3px #3a0a6e;paint-order:stroke fill;text-shadow:0 1px 0 #3a0a6e;pointer-events:none;font-variant-numeric:tabular-nums}
/* the 3D gold coin sits on the bar's left cap */
.pp3d-loading__coin{position:absolute;left:0;top:50%;height:200%;aspect-ratio:245/256;transform:translate(-46%,-50%);animation:pp3d-coin 2.4s ease-in-out infinite;filter:drop-shadow(0 2px 4px rgba(6,0,24,.6)) drop-shadow(0 0 6px rgba(255,210,80,.7))}
@keyframes pp3d-creep{0%{width:4%}12%{width:22%}35%{width:46%}60%{width:66%}85%{width:80%}100%{width:88%}}
@keyframes pp3d-kb{from{transform:translate(-50%,-50%) scale(1.06)}to{transform:translate(-50%,-50%) scale(1)}}
@keyframes pp3d-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.55)}60%{opacity:1}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes pp3d-breathe{0%,100%{opacity:.75;transform:translate(-50%,-50%) scale(1)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.06)}}
@keyframes pp3d-float{0%,100%{transform:translate(-50%,-50%)}50%{transform:translate(-50%,calc(-50% - 7px))}}
@keyframes pp3d-shine{0%{background-position:160% 0}55%,100%{background-position:-60% 0}}
@keyframes pp3d-twinkle{0%,100%{opacity:0;transform:scale(.4)}40%{opacity:1;transform:scale(1.5)}70%{opacity:0;transform:scale(.6)}}
@keyframes pp3d-flow{to{background-position:56px 0}}
@keyframes pp3d-wave{to{background-position:32px 0}}
@keyframes pp3d-bubbles{from{background-position:0 0}to{background-position:-80px -6px}}
@keyframes pp3d-tip{0%,100%{opacity:.75;transform:scaleY(.9)}50%{opacity:1;transform:scaleY(1.1)}}
@keyframes pp3d-coin{0%,100%{transform:translate(-46%,-50%) scale(1)}50%{transform:translate(-46%,-50%) scale(1.08)}}
@keyframes pp3d-tips{0%{opacity:0;transform:translateY(6px)}4%,30%{opacity:1;transform:none}34%,100%{opacity:0;transform:translateY(-6px)}}
@media (orientation:landscape) and (max-aspect-ratio:16/10){.pp3d-loading__bgblur{display:block}.pp3d-loading__bg{width:max(100vw,166vh);top:auto;bottom:0;transform:translate(-47%,0);transform-origin:47% 100%;animation-name:pp3d-kb2}}
@keyframes pp3d-kb2{from{transform:translate(-47%,0) scale(1.05)}to{transform:translate(-47%,0) scale(1)}}
@media (orientation:portrait){.pp3d-loading__brand{width:min(70vw,430px);top:30%}.pp3d-loading__halo{top:30%}.pp3d-loading__bottom{width:min(80vw,520px)}}
@media (prefers-reduced-motion:reduce){.pp3d-loading *:not(.pp3d-loading__creep),.pp3d-loading{animation:none!important;transition:none!important}.pp3d-loading__tip:first-child{opacity:1}}

/* Landscape only on touch devices: in portrait this rotate screen covers loading, sign-in and lobby (not an open game,
   upright games keep the launcher's own rules). Tap anywhere = full screen + landscape lock where supported.
   3D art (fal, 2026-11-29): rotate-phone / rotate-title / rotate-pill.webp in the PopperPoker logo style. */
.pp3d-rotate{position:fixed;inset:0;z-index:2147483600;display:none;align-items:center;justify-content:center;overflow:hidden;background:#140838;color:#fff;
  font-family:"Exo 2",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
@media (orientation:portrait) and (pointer:coarse){html:not(.pp-game-open) .pp3d-rotate{display:flex}}
.pp3d-rotate__bg{position:absolute;left:50%;top:50%;height:100%;width:auto;aspect-ratio:16/9;transform:translate(-50%,-50%) scale(1.04);filter:blur(3px) saturate(1.1) brightness(.6)}
.pp3d-rotate::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 85% 55% at 50% 48%,rgba(60,18,140,.35) 0,rgba(12,4,36,.78) 100%)}
.pp3d-rotate__card{position:relative;display:flex;flex-direction:column;align-items:center;gap:clamp(4px,1.4vh,14px);padding:max(16px,env(safe-area-inset-top)) 20px max(16px,env(safe-area-inset-bottom));width:min(100%,460px);box-sizing:border-box}
.pp3d-rotate__logo{width:min(54vw,240px);height:auto;filter:drop-shadow(0 8px 14px rgba(8,0,30,.6)) drop-shadow(0 0 18px rgba(255,90,230,.35))}
.pp3d-rotate__phone{width:min(56vw,36vh,260px);height:auto;margin:clamp(4px,1.5vh,14px) 0 0;transform-origin:42% 58%;filter:drop-shadow(0 14px 18px rgba(6,0,24,.6)) drop-shadow(0 0 22px rgba(120,220,255,.35));animation:pp3d-rot 2.8s cubic-bezier(.65,0,.35,1) infinite}
.pp3d-rotate__title{margin:0;line-height:0}
.pp3d-rotate__title img{width:min(82vw,380px);height:auto;filter:drop-shadow(0 8px 12px rgba(8,0,30,.6))}
.pp3d-rotate__sub{margin:0;font-weight:800;font-size:clamp(14px,4.2vw,18px);color:#efe7ff;-webkit-text-stroke:3px #2a0758;paint-order:stroke fill;text-shadow:0 2px 0 #2a0758}
.pp3d-rotate__btn{margin:clamp(6px,1.6vh,14px) 0 0;padding:0;border:0;background:none;cursor:pointer;line-height:0;animation:pp3d-rotbtn 2.4s ease-in-out infinite}
.pp3d-rotate__btn img{width:min(80vw,360px);height:auto;filter:drop-shadow(0 8px 12px rgba(6,0,24,.55))}
.pp3d-rotate__btn:active{transform:translateY(2px) scale(.98)}
.pp3d-rotate__hint{margin:0;font-weight:700;font-size:13px;color:rgba(235,226,255,.8);-webkit-text-stroke:2px #2a0758;paint-order:stroke fill}
html.pp3d-no-fs .pp3d-rotate__btn,html.pp3d-no-fs .pp3d-rotate__hint{display:none}
html.pp3d-no-fs .pp3d-rotate{cursor:default}
@keyframes pp3d-rot{0%,16%{transform:rotate(0)}48%,70%{transform:rotate(62deg)}100%{transform:rotate(0)}}
@keyframes pp3d-rotbtn{0%,100%{transform:scale(1);filter:brightness(1)}50%{transform:scale(1.03);filter:brightness(1.1)}}
@media (prefers-reduced-motion:reduce){.pp3d-rotate__phone,.pp3d-rotate__btn{animation:none}}
/* season artwork: regular by default, Christmas when html[data-pp-theme="christmas-royale"] (popper-theme.js) */
.pp3d-loading__bg,.pp3d-loading__bgblur,.pp3d-rotate__bg{background:#1a0a4a center/cover no-repeat}
.pp3d-loading__bg{background-image:url(popper-loading/loading-scene-1536.webp)}
.pp3d-loading__bgblur,.pp3d-rotate__bg{background-image:url(popper-loading/loading-scene-960.webp)}
html[data-pp-theme="christmas-royale"] .pp3d-loading__bg{background-image:url(popper-loading/loading-scene-xmas-1536.webp)}
html[data-pp-theme="christmas-royale"] .pp3d-loading__bgblur,html[data-pp-theme="christmas-royale"] .pp3d-rotate__bg{background-image:url(popper-loading/loading-scene-xmas-960.webp)}
