/* Hots: two rows */
@media (max-width:699px){.grid.compact2>*:nth-child(n+9){display:none}}
@media (min-width:700px) and (max-width:1099px){.grid.compact2>*:nth-child(n+13){display:none}}
@media (min-width:1100px) and (max-width:1499px){.grid.compact2>*:nth-child(n+17){display:none}}
@media (min-width:1500px){.grid.compact2>*:nth-child(n+21){display:none}}
/* provider rows on the lobby: one row only (4 phone / 6 tablet / 8 laptop / 10 wide); "All" opens the rest */
@media (max-width:699px){.grid.compact>*:nth-child(n+5){display:none}}
@media (min-width:700px) and (max-width:1099px){.grid.compact>*:nth-child(n+7){display:none}}
@media (min-width:1100px) and (max-width:1499px){.grid.compact>*:nth-child(n+9){display:none}}
@media (min-width:1500px){.grid.compact>*:nth-child(n+11){display:none}}
/* Responsive layout: phone (default) -> tablet/iPad -> laptop/desktop */
@media (min-width:700px){
  #app{max-width:860px}
  .nav{max-width:860px}
  .grid{grid-template-columns:repeat(6,1fr);gap:10px}
  .top{padding:14px 16px}
  .slider,.hero,.ticker,.promos,.searchrow,.slbtns,.heroBtns.slbtns{margin-left:16px;margin-right:16px}
  .tabs{padding-left:16px;padding-right:16px}
  #lists,#searchResults{padding:0 16px}
  .page:not(#p-home){max-width:640px;margin:0 auto;padding:16px}
  .mb{max-width:440px}
  .banner{padding:8px 16px}
}
@media (min-width:1100px){
  #app{max-width:1280px}
  .nav{max-width:1280px}
  .grid{grid-template-columns:repeat(8,1fr);gap:12px}
  .slider{aspect-ratio:1200/330}
  .tabs{gap:14px}
  .tab{min-width:78px;max-width:104px;font-size:12px}
  .page:not(#p-home){max-width:720px}
  .g{font-size:13px}
  body{background:#000}
}
@media (min-width:1500px){
  #app{max-width:1440px}
  .nav{max-width:1440px}
  .grid{grid-template-columns:repeat(10,1fr)}
}
/* landscape phones / short screens */
@media (max-height:480px) and (orientation:landscape){
  #app{padding-bottom:80px}
  .nav .mid img{height:56px;margin-top:-26px}
}

/* phone: per-provider mosaic = 1 big + 2 medium + 4 small (7 games) */
@media (max-width:699px){
  .grid.compact.mosaic{grid-template-columns:repeat(12,1fr);gap:8px}
  .grid.compact.mosaic>.g{aspect-ratio:3/4;grid-column:span 3;display:flex}
  .grid.compact.mosaic>.g:nth-child(1){grid-column:span 7;grid-row:span 2;aspect-ratio:auto}
  .grid.compact.mosaic>.g:nth-child(2),.grid.compact.mosaic>.g:nth-child(3){grid-column:span 5;aspect-ratio:1/1.1}
  .grid.compact.mosaic>.g:nth-child(n+8){display:none}
  .grid.compact.mosaic>.g:nth-child(1) .nm{font-size:14px;padding:18px 6px 8px}
  .grid.compact.mosaic>.g:nth-child(2) .nm,.grid.compact.mosaic>.g:nth-child(3) .nm{font-size:12px}
}

/* signup: fixed +92 in front of the number box */
.phrow{display:flex;align-items:stretch;gap:6px}
.phrow #aCc{display:flex;margin:6px 0;align-items:center;padding:0 12px;border-radius:10px;background:#0d3323;border:1px solid var(--line,#2f6a45);color:var(--gold2,#ffd76a);font-weight:800}
.phrow #aCc[hidden]{display:none}
.phrow input{flex:1;min-width:0}

/* Download App popup (bottom sheet) */
.apop{position:fixed;inset:0;z-index:9999;background:rgba(2,12,8,.72);display:flex;align-items:flex-end;justify-content:center}
.apop-sheet{width:100%;max-width:480px;box-sizing:border-box;border-radius:30px 30px 0 0;border-top:1px solid #f5c542;background:linear-gradient(180deg,#165b38,#0b2c1e);box-shadow:0 -20px 50px rgba(0,0,0,.6);padding:12px 18px calc(22px + env(safe-area-inset-bottom));color:#fff;animation:apopUp .28s ease-out}
@keyframes apopUp{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.apop-grab{width:44px;height:5px;border-radius:3px;background:rgba(255,255,255,.35);margin:0 auto 14px}
.apop-strip{display:flex;gap:10px;margin:0 -18px 14px;padding:0 18px;overflow-x:auto;scrollbar-width:none}
.apop-strip::-webkit-scrollbar{display:none}
.apop-g{flex:none;width:96px;aspect-ratio:3/4;position:relative;overflow:hidden;border-radius:14px;border:1px solid #f5c542;background:#0d3323;box-shadow:0 8px 18px rgba(0,0,0,.45)}
.apop-g img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.apop-g b{position:absolute;left:0;right:0;bottom:0;padding:16px 5px 7px;background:linear-gradient(transparent,rgba(3,20,12,.88));font-size:10.5px;line-height:1.15;text-align:center;font-weight:800}
.apop-row{display:flex;align-items:center;gap:12px}
.apop-logo{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#ffd36b,#ff9f1a);color:#2b1700;font-weight:800;display:grid;place-items:center}
.apop-tx strong{display:block;font-size:19px;font-weight:800}
.apop-tx span{font-size:13px;color:#bfe9cf}
.apop-btns{display:flex;gap:10px;margin-top:16px}
.apop-dl{flex:1;height:52px;border:0;border-radius:26px;background:linear-gradient(180deg,#ffb02e,#ff8a00);color:#2b1700;font-size:17px;font-weight:800;box-shadow:0 8px 20px rgba(255,138,0,.4);cursor:pointer}
.apop-no{width:92px;height:52px;border-radius:26px;border:1px solid rgba(255,255,255,.35);background:transparent;color:#d6f2e2;font-size:14px;font-weight:700;cursor:pointer}

/* App update bar */
.upd{position:fixed;left:10px;right:10px;top:calc(10px + env(safe-area-inset-top));z-index:10000;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:linear-gradient(180deg,#165b38,#0d3323);border:1px solid #f5c542;color:#fff;font-size:13px;font-weight:600;box-shadow:0 10px 30px rgba(0,0,0,.5);max-width:460px;margin:0 auto}
.upd span{flex:1}
.upd button{border:0;border-radius:18px;height:34px;padding:0 16px;background:linear-gradient(180deg,#ffb02e,#ff8a00);color:#2b1700;font-weight:800;cursor:pointer}
.upd .upd-x{width:30px;padding:0;background:rgba(255,255,255,.16);color:#fff}

.mtile img.pi{width:48px;height:48px;border-radius:13px;object-fit:contain;background:#fff}

/* game card flip: tap a card, it turns over to a neon PLAY button; Play shows Loading until the game opens */
.g.pflipA{animation:rpFlA .23s ease-in both!important}
.g.pflipB{animation:rpFlB .23s ease-out both!important}
@keyframes rpFlA{from{transform:perspective(600px) rotateY(0)}to{transform:perspective(600px) rotateY(90deg)}}
@keyframes rpFlB{from{transform:perspective(600px) rotateY(-90deg)}to{transform:perspective(600px) rotateY(0)}}
.g .pbk{display:none;position:absolute;inset:0;z-index:6;background:#04170f;border:2px solid #2cff8a;border-radius:inherit;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:6px;text-align:center;color:#fff;animation:rpNeon 1.6s ease-in-out infinite}
.g.pback .pbk{display:flex}
.g .pbn{font-size:11px;font-weight:600;line-height:1.15;color:#fff;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.g .pbtn{background:#2cff8a;color:#032012;border-radius:8px;padding:8px 14px;font-size:14px;font-weight:800;letter-spacing:1.5px;cursor:pointer;user-select:none;-webkit-user-select:none;animation:rpPlayPulse 1.2s ease-in-out infinite}
.g .pld{display:none;flex-direction:column;align-items:center;gap:6px;width:100%}
.g .psp{width:24px;height:24px;border-radius:50%;border:3px solid #1b6b45;border-top-color:#2cff8a;animation:rpSpin .8s linear infinite}
.g .ptx{font-size:11px;font-weight:600;color:#fff}
.g .pbar{width:80%;height:5px;border-radius:3px;background:#12402c;overflow:hidden}
.g .pbar i{display:block;height:100%;width:0;background:#2cff8a;transition:width 6s linear}
.g.pbusy .pbtn,.g.pbusy .pbn{display:none}
.g.pbusy .pld{display:flex}
.g.pbusy .pbar i{width:92%}
@keyframes rpNeon{0%,100%{box-shadow:0 0 0 0 #2cff8a00}50%{box-shadow:0 0 10px 2px #2cff8a66}}
@keyframes rpPlayPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes rpSpin{to{transform:rotate(360deg)}}

.g.pstill:not(.pflipA):not(.pflipB){animation:none}

/* game icons, new look: picture fills the card, provider tag top-left, heart top-right, name on a soft dark strip */
.g{border-radius:13px;border:1px solid #2f7d5b;box-shadow:0 2px 6px #0007}
.g img{object-fit:cover}
.g .gbg{display:none}
.g .pv{top:5px;left:6px;z-index:2;font-size:8px;font-weight:700;color:#fff;opacity:1;background:#0009;border-radius:6px;padding:1px 5px;text-shadow:none;max-width:calc(100% - 34px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g .nm{z-index:2;margin:-5px;padding:20px 4px 6px;font-size:10px;font-weight:800;color:#fff;text-shadow:0 1px 3px #000;background:linear-gradient(transparent,#000c)}
.g .fv{top:4px;right:4px;width:24px;height:24px;line-height:24px;font-size:14px;background:#0009;z-index:3}
@media (max-width:699px){
  .grid:not(.mosaic)>.g{aspect-ratio:1/1.15}
  .grid.compact2{gap:7px}
}

/* ---- Lucky Spin (v80) ---- */
.sp-fab{position:fixed;z-index:60;right:8px;bottom:282px;width:74px;padding:6px 4px;border:1px solid #2cff8a;border-radius:16px;background:linear-gradient(160deg,#08311f,#0f5a39);color:#c9ffe0;font:700 10px/1.15 system-ui,sans-serif;text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.45),0 0 12px rgba(44,255,138,.45);cursor:pointer;animation:drBob 2.6s ease-in-out infinite}
.sp-fab.empty{filter:saturate(.45);box-shadow:0 4px 14px rgba(0,0,0,.45)}
.sp-ring{position:relative;width:46px;height:46px;margin:0 auto 3px}.sp-ring img{width:46px;height:46px;display:block;animation:rpSpin 6s linear infinite;pointer-events:none}
.sp-ring u{position:absolute;right:-6px;top:-6px;min-width:20px;height:20px;border-radius:10px;background:#ff3b5c;color:#fff;font:800 12px/20px system-ui;text-decoration:none;padding:0 4px;box-sizing:border-box}
.sp-fab.empty .sp-ring u{background:#556}
.sp-ov{position:fixed;inset:0;z-index:95;background:rgba(3,10,7,.8);color:#fff;display:flex;align-items:center;justify-content:center;padding:12px;overflow:hidden}
.sp-card{width:100%;max-width:400px;max-height:96vh;display:flex;flex-direction:column;background:#0a2419;border:1px solid #2f7d5b;border-radius:18px;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.6)}
.sp-top{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:#0f2f23}.sp-top b{font-size:16px}.sp-top span{width:34px}
.sp-back{width:34px;height:34px;border:0;border-radius:50%;background:#ffffff22;color:#fff;font-size:22px;line-height:1}
.sp-body{flex:1;overflow-y:auto;padding:10px 16px 30px;text-align:center}
.sp-sub{margin:6px 0 10px;color:#cfe8da;font-size:14px}
.sp-stage{position:relative;width:min(76vw,300px);aspect-ratio:1;margin:14px auto 6px}
.sp-wheel{position:absolute;inset:0;transition:transform 5s cubic-bezier(.12,.7,.08,1)}.sp-wheel img{width:100%;height:100%;display:block}
.sp-pz{position:absolute;left:50%;top:50%;width:0;height:0}
.sp-pz span{position:absolute;left:0;top:0;font-weight:800;font-size:clamp(14px,4.8vw,21px);color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.8);white-space:nowrap}
.sp-ptr{position:absolute;top:-10px;left:50%;margin-left:-14px;border-left:14px solid transparent;border-right:14px solid transparent;border-top:28px solid #fff;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6));z-index:3}
.sp-hub{position:absolute;left:50%;top:50%;width:21%;aspect-ratio:1;margin:-10.5% 0 0 -10.5%;border-radius:50%;background:#ffc928;border:3px solid #fff;color:#3a2800;font-weight:800;font-size:clamp(11px,3.4vw,15px);display:flex;align-items:center;justify-content:center;z-index:2;cursor:pointer;user-select:none}
.sp-res{min-height:26px;font-size:18px;font-weight:800;color:#7dffb0;margin:10px 0 4px}
.sp-msg{min-height:20px;color:#ffd76a;font-weight:700;font-size:14px;margin-bottom:10px}
.sp-go{display:block;width:100%;max-width:340px;margin:0 auto;background:#2cff8a;color:#032012;border:0;border-radius:12px;padding:13px;font-size:16px;font-weight:800;letter-spacing:1.2px}
.sp-go:disabled{background:#1d4a38;color:#8fb7a4}
.sp-foot{font-size:12px;color:#9fc7b3;margin:14px 4px 0;line-height:1.5}
.sp-coin{position:absolute;top:-24px;width:16px;height:16px;border-radius:50%;background:#ffc928;border:2px solid #fff3b0;z-index:9;animation:spFall 1.8s ease-in forwards;pointer-events:none}
@keyframes spFall{to{transform:translateY(1100px) rotate(540deg);opacity:.2}}

/* Lucky Spin button: only the wheel, no box (v84) */
.sp-fab{width:auto;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;bottom:276px;right:12px;-webkit-tap-highlight-color:transparent}
.sp-fab .sp-ring{width:62px;height:62px;margin:0;filter:drop-shadow(0 3px 8px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(255,200,60,.65))}
.sp-fab .sp-ring img{width:62px;height:62px}
.sp-fab.empty{filter:saturate(.5) brightness(.9)}

/* Lucky Spin: no box, only wheel and text over the dimmed page (v85) */
.sp-ov{background:rgba(3,10,7,.95)}
.sp-card{background:none;border:0;box-shadow:none;border-radius:0;overflow:visible}
.sp-top{background:none;padding:0 0 4px;position:relative;justify-content:center}
.sp-top b{font-size:20px;color:#ffd76a;text-shadow:0 2px 6px rgba(0,0,0,.6)}
.sp-back{position:absolute;right:0;top:-2px;background:#00000066}
.sp-top span{display:none}
.sp-body{overflow:visible;padding:4px 8px 10px}
.sp-sub{color:#e6f5ec}
.sp-foot{color:#b7d8c6}
.sp-go{max-width:300px}
