/* TIPS Royale v30.11.3 - back to a running game ("Fortsæt spillet"), a bot playing for a player
   who is away, and a flashing wheel card when spins are ready. */

/* ---- "Du har et spil i gang" (on "Vælg spil" and the front page) ---- */
.active-game-banner{
  display:flex;align-items:center;gap:12px;margin:0 auto 14px;max-width:640px;
  padding:10px 12px 10px 14px;border:2px solid #4fd18b;border-radius:16px;
  background:linear-gradient(180deg,#1f6a45,#134a30);color:#fff6ca;text-align:left;
  box-shadow:0 10px 26px rgba(0,0,0,.4),0 0 0 0 rgba(79,209,139,.5);
  animation:agbPulse 2s ease-in-out infinite;
}
.active-game-banner.hidden{display:none!important}
.agb-icon{font-size:28px;line-height:1}
.agb-text{flex:1;min-width:0;display:grid;gap:2px}
.agb-text strong{font-size:16px;font-weight:1000}
.agb-sub{font-size:12px;color:#d6f5e3}
.agb-btn{flex:none;padding:10px 16px!important;font-size:14px!important;font-weight:1000!important;white-space:nowrap}
@keyframes agbPulse{0%,100%{box-shadow:0 10px 26px rgba(0,0,0,.4),0 0 0 0 rgba(79,209,139,.45)}50%{box-shadow:0 10px 26px rgba(0,0,0,.4),0 0 0 8px rgba(79,209,139,0)}}
@media(max-width:420px){.active-game-banner{gap:8px;padding:8px 8px 8px 10px}.agb-icon{font-size:22px}.agb-text strong{font-size:14px}.agb-btn{padding:9px 10px!important;font-size:13px!important}}
#entry .active-game-banner{margin-bottom:10px}

/* ---- a bot plays for a player who is away ---- */
.player.auto-bot .hud-full-frame,.player.auto-bot .hud-full-frame img{filter:grayscale(.8) brightness(.78)!important}
.auto-bot-badge{
  position:absolute!important;z-index:40!important;left:50%!important;top:6%!important;transform:translate(-50%,-50%)!important;display:block!important;
  padding:2px 8px;border:1px solid #9fc3e6;border-radius:999px;white-space:nowrap;
  background:linear-gradient(180deg,#2b4c6e,#17304a);color:#e8f4ff;
  font-size:12px;font-weight:1000;letter-spacing:.6px;
  box-shadow:0 3px 8px rgba(0,0,0,.45);pointer-events:none;
}
.auto-bot-notice{
  position:fixed;z-index:9000;left:50%;top:max(8px,env(safe-area-inset-top));transform:translateX(-50%);
  display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 20px);
  padding:8px 10px 8px 14px;border:1px solid #d1a83e;border-radius:14px;
  background:linear-gradient(180deg,#1b2c3f,#122234);color:#fff6ca;font-weight:800;font-size:13px;
  box-shadow:0 10px 26px rgba(0,0,0,.5);
}
.auto-bot-notice.hidden{display:none!important}
.game-winner-note{margin-top:2px;font-size:12px;font-weight:800;color:#ffe591}
.game-winner-note.hidden{display:none}

/* ---- #3: the wheel card flashes while spins are ready ---- */
body.front-home-active .menu-grid .wheel-launch-card.wheel-ready{
  overflow:hidden;
  animation:wheelReadyFlash 1.6s ease-in-out infinite!important;
}
.wheel-launch-card.wheel-ready::before{
  content:"";position:absolute;top:0;bottom:0;left:-60%;width:45%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,240,180,.55),transparent);
  transform:skewX(-18deg);animation:wheelShine 2.4s ease-in-out infinite;
}
.wheel-launch-card.wheel-ready[data-spins]:not([data-spins=""])::after{animation:wheelBadgeBounce 1.6s ease-in-out infinite}
@keyframes wheelReadyFlash{
  0%,100%{border-color:#d1a83e;box-shadow:0 0 0 0 rgba(255,214,102,0),0 8px 22px rgba(0,0,0,.35)}
  50%{border-color:#fff1b8;box-shadow:0 0 26px 4px rgba(255,214,102,.65),0 8px 22px rgba(0,0,0,.35)}
}
@keyframes wheelShine{0%{left:-60%}55%,100%{left:130%}}
@keyframes wheelBadgeBounce{0%,100%{transform:scale(1)}45%{transform:scale(1.25)}60%{transform:scale(.95)}}
@media(prefers-reduced-motion:reduce){
  .active-game-banner,body.front-home-active .menu-grid .wheel-launch-card.wheel-ready,.wheel-launch-card.wheel-ready::before,.wheel-launch-card.wheel-ready[data-spins]::after{animation:none!important}
}
