/* ========================================
   Z-INDEX SCALE — tmwl-* components
   Layer 0:   base content (canvas, cards)
   Layer 1-7: within-card elements (effects, overlays, buttons)
   Layer 50:  local effects (confetti canvas)
   Layer 110: flying coin animation
   Layer 200: toast notification
   Layer 300: manual-mode popup
   Layer 400: live ticker
   Layer 500: auth modal + backdrop
   Layer 600: burst particles
   Layer 700: host toast (on top of modal)
   ======================================== */

/* ========================================
   60FPS PERFORMANCE OPTIMIZATIONS
   ======================================== */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for animated elements */
.tmwl-ticker-track,
.tmwl-ticker-dot,
.tmwl-pointer,
.tmwl-turbo,
.tmwl-spin,
.tmwl-wheel-overlay,
.tmwl-auth-sheet,
.tmwl-auth-loading,
.tmwl-coin-flight,
.tmwl-winnings,
.tmwl-molecule,
.tmwl-host-toast,
.tmwl-manual-popup,
.tmwl-contest-title,
.tmwl-marquee,
.tmwl-auth-loading__wheel,
.tmwl-auth-loading__spark {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize canvas rendering */
#tmwl_canvas {
  will-change: transform;
  transform: translateZ(0);
}

/* Reduce paint areas */
.tmwl-wheel-card,
.tmwl-auth-modal,
.tmwl-ticker-v3 {
  contain: layout style paint;
}

:root{
  --z-toast:      200;
  --z-popup:      300;
  --z-ticker:     400;
  --z-modal:      100000; /* beats WP admin bar (99999) */
  --z-particles:  100001;
  --z-host-toast: 100002;
  --z-rng-fab:    7;
}

.tmwl-wrap{min-height:100vh; min-height:100dvh; padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); background:radial-gradient(1200px 700px at 50% 0%, #e8f4ff 0%, #cfe7ff 45%, #b8dcff 70%, #9ccfff 100%); color:#fff; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; overflow-x:hidden;}
/* ==========================================================================
   LIVE TICKER V3 (PREMIUM OVERLAY)
   ========================================================================== */
.tmwl-ticker-v3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background: linear-gradient(180deg, rgba(15, 25, 45, 0.95), rgba(0, 5, 15, 0.85));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  z-index: calc(var(--z-modal) - 1);
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
body.admin-bar .tmwl-ticker-v3 {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .tmwl-ticker-v3 {
    top: 46px;
  }
}
.tmwl-ticker-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 15px;
}
.tmwl-ticker-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.tmwl-ticker-dot {
  width: 7px;
  height: 7px;
  background: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff3b30;
  animation: tmwlLivePulse 1.2s infinite;
}
@keyframes tmwlLivePulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}
.tmwl-ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.tmwl-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tmwlTickerScroll 45s linear infinite;
  padding-left: 20px;
}
.tmwl-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  white-space: nowrap;
}
.tmwl-ticker-name {
  color: rgba(255,255,255,0.95);
}
.tmwl-ticker-verb {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  letter-spacing: .02em;
}
.tmwl-ticker-item b {
  color: #ffd56a;
  margin-left: 0;
  font-weight: 800;
}
.tmwl-ticker-sep {
  color: rgba(255,255,255,0.3);
  margin: 0 15px;
}
.tmwl-ticker-track--seamless {
  display: flex;
  width: max-content;
  animation: tmwlTickerScrollSeamless 40s linear infinite;
}
@keyframes tmwlTickerScrollSeamless {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes tmwlTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* Adjust wheel content to make room for ticker if needed */
/* ticker padding-top moved to .tmwl-wheel-card block in Premium Casino section */
/* ==== GLOBAL STABILITY (prevents "shifting") ==== */
.tmwl-wrap,
.tmwl-wrap *{ box-sizing:border-box; }
.tmwl-shell{
  max-width:1320px;
  margin:0 auto;
  padding:28px 14px;
  display:grid;
  grid-template-columns:380px 1fr;
  grid-template-areas:
    "title wheel"
    "left  wheel";
  gap:18px;
  align-items:start;
}
.tmwl-titleblock{ grid-area:title; min-width:0; }
.tmwl-leftbody{ grid-area:left; min-width:0; }
.tmwl-right{ grid-area:wheel; min-width:0; }
.tmwl-title{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:18px; padding:16px; box-shadow:0 10px 30px rgba(0,0,0,.35);}
.tmwl-marquee{font-weight:900; letter-spacing:.08em; font-size:38px; line-height:1; padding:8px 10px; border-radius:14px; background:linear-gradient(90deg,#f7d06a,#fff2b0,#f7d06a); color:#3c1a00; text-align:center;}

.tmwl-marquee{display:flex;align-items:center;justify-content:center;gap:14px;min-height:96px;overflow:hidden;}
.tmwl-marquee-media{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;max-width:34%;}
.tmwl-marquee-media[hidden]{display:none !important;}
.tmwl-marquee-media img{display:block;max-height:72px;max-width:120px;width:auto;height:auto;border-radius:10px;object-fit:contain;box-shadow:0 6px 18px rgba(0,0,0,.12);background:rgba(255,255,255,.18);}
.tmwl-marquee.tmwl-marquee--manual .tmwl-marquee-text{flex:1 1 auto;white-space:normal;line-height:1.05;letter-spacing:.04em;}
.tmwl-titleblock.tmwl-titleblock--manual .tmwl-contest-title{display:none !important;}

.tmwl-marquee.tmwl-marquee--manual-image{
  background-position:center center !important;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  min-height:96px;
}
.tmwl-marquee.tmwl-marquee--manual-image .tmwl-marquee-text,
.tmwl-marquee.tmwl-marquee--manual-image .tmwl-marquee-media{
  display:none !important;
}

@media (max-width: 680px){
  .tmwl-marquee{min-height:84px;gap:10px;}
  .tmwl-marquee-media img{max-height:58px;max-width:86px;}
}
.tmwl-sub{margin-top:8px; opacity:.85; text-align:center; font-size:12px; letter-spacing:.12em;}
.tmwl-card{margin-top:12px; background:rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.12); border-radius:18px; padding:14px; box-shadow:0 10px 30px rgba(0,0,0,.28);}
.tmwl-card-h{font-size:12px; letter-spacing:.12em; opacity:.85; margin-bottom:10px;}
/* ==== INPUTS FIX (no drifting + mobile safe) ==== */
.tmwl-form input{
  width:100%;
  display:block;
  margin:0 0 10px 0;
  min-height:48px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.35);
  color:#fff;
  outline:none;
  appearance:none;
  -webkit-appearance:none;
  font-size:16px;   /* important: prevents iOS zoom + stabilizes height */
  line-height:1.2;
}
.tmwl-form input:focus{
  border-color:rgba(255,255,255,.32);
  box-shadow:0 0 0 3px rgba(255, 220, 120, .18);
}
.tmwl-form input:-webkit-autofill,
.tmwl-form input:-webkit-autofill:hover,
.tmwl-form input:-webkit-autofill:focus{
  -webkit-text-fill-color:#ffffff;
  transition: background-color 9999s ease-out 0s;
  box-shadow:0 0 0px 1000px rgba(0,0,0,.35) inset;
  border:1px solid rgba(255,255,255,.18);
}
.tmwl-form button{
  width:100%;
  display:block;
  margin:0;
  min-height:48px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg,#f6c66a,#b97a22);
  color:#2a1400;
  font-weight:800;
  letter-spacing:.12em;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.tmwl-err{margin-top:10px; background:rgba(255,60,60,.12); border:1px solid rgba(255,60,60,.35); padding:10px 12px; border-radius:12px; font-size:13px;}
.tmwl-kpis{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.tmwl-kpi{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:10px;}
.tmwl-kpi .k{font-size:11px; opacity:.8; letter-spacing:.12em;}
.tmwl-kpi .v{font-size:26px; font-weight:900; margin-top:2px;}
.tmwl-section{margin-top:12px;}
.tmwl-sec-h{font-size:12px; letter-spacing:.12em; opacity:.85; margin-bottom:8px;}
.tmwl-table-wrap{max-height:220px; overflow:auto; border-radius:12px; border:1px solid rgba(255,255,255,.12);}
.tmwl-table{width:100%; border-collapse:collapse; font-size:13px;}
.tmwl-table th,.tmwl-table td{padding:8px 10px; border-bottom:1px solid rgba(255,255,255,.08);}
.tmwl-table th{position:sticky; top:0; background:rgba(0,0,0,.45); text-align:left; font-size:11px; letter-spacing:.12em;}
.tmwl-finish{margin-top:10px; width:100%; padding:12px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.18); background:linear-gradient(180deg,#7fe6ff,#2b9bd9); color:#001018; font-weight:800; letter-spacing:.12em; cursor:pointer;}
.tmwl-topbar{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:18px; padding:12px 14px; display:flex; justify-content:space-between; align-items:center;}
.tmwl-topbar-h{font-size:11px; letter-spacing:.14em; opacity:.85;}
.tmwl-topbar-v{font-size:20px; font-weight:900;}
.tmwl-wheel-card{ width: 100%; max-width: 700px; aspect-ratio: 1; margin-left: auto; margin-right: auto;
  margin-top:12px;
  position:relative;
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:16px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:560px;
  overflow:hidden;
  /* ==== POINTER LAYOUT VARS ==== */
  --tmwl-wheel-r: 240px;       /* desktop default radius (safe fallback) */
  --tmwl-pointer-gap: -12px; /* Lowered to hit the golden pins */
  --tmwl-pointer-w: clamp(22px, 3.2vw, 30px);
  --tmwl-pointer-h: clamp(34px, 4.6vw, 44px);
  /* allow smooth reveal/hide (used by tmwl-hidden / tmwl-show) */
  transition: transform 520ms cubic-bezier(.2,1,.2,1), opacity 420ms ease;
}
#tmwl_canvas{width:100%; height:100%; max-width:700px; max-height:700px;}
/* ==== POINTER (flipped + centered + real tick) ==== */
.tmwl-pointer{
  position:absolute;
  left: var(--tmwl-pointer-left, 50%);
  top: calc(var(--tmwl-pointer-top, 50%) - var(--tmwl-pointer-gap));
  transform: translateX(-50%);
  width:0;
  height:0;
  z-index:8;
  pointer-events:none;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  /* triangle points DOWN into the wheel */
  border-left: calc(var(--tmwl-pointer-w) / 2) solid transparent;
  border-right: calc(var(--tmwl-pointer-w) / 2) solid transparent;
  border-top: var(--tmwl-pointer-h) solid #fff;
  filter:drop-shadow(0 10px 14px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(255,255,255,.22));
  /* hinge/pivot near top like a real wheel pointer */
  transform-origin: 50% 2px;
  will-change: transform;
}
.tmwl-pointer:after{
  content:"";
  position:absolute;
  left: calc(-1 * (var(--tmwl-pointer-w) * 0.36));
  top: calc(-1 * (var(--tmwl-pointer-h) * 0.38));
  width: calc(var(--tmwl-pointer-w) * 0.72);
  height: calc(var(--tmwl-pointer-h) * 0.22);
  border-radius: 999px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.62));
  opacity:.95;
  box-shadow:0 6px 14px rgba(0,0,0,.25);
}
.tmwl-pointer--tick{
  animation: tmwlPointerTick 140ms cubic-bezier(.1,.9,.2,1);
}
.tmwl-pointer.tmwl-pointer--tick{
  filter:drop-shadow(0 10px 14px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(255,255,255,.28));
}
@keyframes tmwlPointerTick{
  0%   { transform: translateX(-50%) rotate(0deg); }
  20%  { transform: translateX(-50%) rotate(24deg); } /* Sharper flick away */
  100% { transform: translateX(-50%) rotate(0deg); } /* Fast return */
}
.tmwl-spin{position:absolute; left:50%; top:calc(50% + 5px); transform:translate(-50%,-50%); width:120px; height:120px; border-radius:999px; border:2px solid rgba(255,255,255,.25); background:radial-gradient(circle at 30% 30%, #47ffb0, #0b7d52); color:#00170d; font-weight:900; letter-spacing:.14em; cursor:pointer; box-shadow:0 10px 35px rgba(0,0,0,.45); touch-action:manipulation;}
.tmwl-spin{ z-index: 6; }
.tmwl-spin[disabled]{opacity:.45; cursor:not-allowed;}
.tmwl-mode-buttons{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  z-index:6;
}
/* ===== TURBO SPIN (casino red) ===== */
.tmwl-turbo{
  position:relative;
  left:auto;
  pointer-events:auto;
  -webkit-tap-highlight-color: transparent;
  bottom:auto;
  transform:none;
  min-width: 220px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: linear-gradient(180deg, rgba(255,30,60,1) 0%, rgba(190,0,25,1) 55%, rgba(120,0,10,1) 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: .12em;
  cursor: pointer;
  box-shadow:
    0 18px 50px rgba(255,0,60,.35),
    inset 0 1px 0 rgba(255,255,255,.35);
  text-transform: uppercase;
  z-index: 6;
  touch-action:manipulation;
}
.tmwl-turbo[disabled]{opacity:.45; cursor:not-allowed;}
.tmwl-turbo:not([disabled]){
  animation: tmwlTurboPulse 1.1s ease-in-out infinite;
}
.tmwl-turbo.is-stop{
  background: linear-gradient(180deg, rgba(255,210,0,1) 0%, rgba(255,140,0,1) 60%, rgba(170,70,0,1) 100%);
  box-shadow:
    0 18px 50px rgba(255,170,0,.30),
    inset 0 1px 0 rgba(255,255,255,.35);
}
.tmwl-autospin{
  background: linear-gradient(180deg, rgba(255,30,60,1) 0%, rgba(190,0,25,1) 55%, rgba(120,0,10,1) 100%);
}
.tmwl-autospin.is-active,
.tmwl-autospin.is-stop{
  background: linear-gradient(180deg, rgba(255,210,0,1) 0%, rgba(255,140,0,1) 60%, rgba(170,70,0,1) 100%);
  box-shadow:
    0 18px 50px rgba(255,170,0,.30),
    inset 0 1px 0 rgba(255,255,255,.35);
}
@keyframes tmwlTurboPulse{
  0%{ transform:scale(1); filter:brightness(1); }
  50%{ transform:scale(1.04); filter:brightness(1.15); }
  100%{ transform:scale(1); filter:brightness(1); }
}
/* ===== MOTIVATION OVERLAY (trendy translucent) ===== */
.tmwl-wheel-card{ position: relative; }
.tmwl-wheel-overlay{
  position:absolute;
  left: 16px;
  right: 16px;
  bottom: 86px;
  height: 56px;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index: 3;
}
.tmwl-wheel-overlay-bg{
  position:absolute;
  inset:0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,20,40,.15) 0%, rgba(10,20,40,.55) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}
.tmwl-wheel-overlay-txt{
  position:relative;
  z-index:1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
  text-align:center;
  padding: 0 14px;
}
.tmwl-wheel-overlay-txt b{
  color: #ffd56a;
}
/* ===== MOBILE: place motivation + TURBO below the wheel (moved via JS) ===== */
.tmwl-mobile-underwheel{display:none;}
@keyframes tmwlTurboPulseMobile{
  0%{ transform:scale(1); filter:brightness(1); }
  50%{ transform:scale(1.04); filter:brightness(1.15); }
  100%{ transform:scale(1); filter:brightness(1); }
}
@media (max-width: 680px){
  .tmwl-mobile-underwheel{
    display:block;
    position:relative;
    z-index:40;
    margin-top: 16px;
    pointer-events:auto;
  }
  .tmwl-mobile-underwheel .tmwl-wheel-overlay{
    position:relative;
    left:auto; right:auto; bottom:auto;
    height:auto;
    margin: 0 auto 12px;
  }
  .tmwl-mobile-underwheel .tmwl-wheel-overlay-txt{
    padding: 12px 14px;
  }
  .tmwl-mobile-underwheel .tmwl-mode-buttons{
    position:relative;
    left:auto;
    bottom:auto;
    transform:none;
    width:min(420px, 92%);
    margin:0 auto;
    gap:10px;
    z-index:45;
    pointer-events:auto;
  }
  .tmwl-mobile-underwheel .tmwl-turbo{
    position:relative;
    z-index:46;
    width:calc(50% - 5px);
    min-width:0;
    margin:0;
    display:block;
    pointer-events:auto;
  }
  .tmwl-mobile-underwheel .tmwl-turbo:not([disabled]){
    animation: tmwlTurboPulseMobile 1.1s ease-in-out infinite;
  }
  .tmwl-mobile-underwheel .tmwl-autospin{
    -webkit-appearance:none;
    appearance:none;
  }
}
.tmwl-mini{margin-top:12px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:10px;}
.tmwl-mini-h{font-size:11px; letter-spacing:.12em; opacity:.85;}
.tmwl-digit{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-weight:900; font-size:22px; background:rgba(0,0,0,.35); border:1px solid rgba(255,255,255,.12); padding:6px 10px; border-radius:12px; min-width:44px; text-align:center;}
.tmwl-mini-sub{margin-top:8px; font-size:12px; opacity:.75;}
.tmwl-note{margin-top:10px; font-size:12px; opacity:.65;}
@media (max-width: 680px){
  .tmwl-shell{
    grid-template-columns:1fr;
    grid-template-areas:
      "title"
      "wheel"
      "left";
  }
  .tmwl-wheel-card{
    min-height:480px;
    --tmwl-wheel-r: 200px; /* tablet-ish fallback */
  }
}
@media (max-width: 480px){
  .tmwl-wheel-card{
    --tmwl-wheel-r: 172px; /* mobile fallback (safe) */
    --tmwl-pointer-gap: -3px;
    --tmwl-pointer-w: clamp(16px, 4.6vw, 20px);
    --tmwl-pointer-h: clamp(28px, 8vw, 34px);
  }
  .tmwl-pointer{
    filter:drop-shadow(0 8px 12px rgba(0,0,0,.58)) drop-shadow(0 0 12px rgba(255,255,255,.18));
    transform-origin:50% 1px;
  }
  .tmwl-pointer--tick{
    animation: tmwlPointerTickMobile 120ms cubic-bezier(.14,.92,.24,1);
  }
}
@keyframes tmwlPointerTickMobile{
  0%   { transform: translateX(-50%) rotate(0deg); }
  25%  { transform: translateX(-50%) rotate(30deg); }
  55%  { transform: translateX(-50%) rotate(11deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}
/* Slots counter */
.tmwl_slots_wrap{margin-top:12px; padding:10px 12px; border-radius:14px; background:rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.08);}
.tmwl_slots_label{font-size:11px; letter-spacing:1.2px; opacity:.85; margin-bottom:6px;}
.tmwl_slots{display:flex; gap:6px; justify-content:center;}
.tmwl-slot-digit{display:inline-flex; align-items:center; justify-content:center; width:40px; height:54px; border-radius:10px; font-weight:900; font-size:26px; color:#0a0a0a; background:linear-gradient(180deg,#ffe8a3 0%, #f7c44f 55%, #c9891b 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 30px rgba(0,0,0,0.35);}
.tmwl-flash{animation:tmwlFlash .22s ease-in-out;}
@keyframes tmwlFlash{0%{transform:translateY(-3px); filter:brightness(1.15);}100%{transform:translateY(0); filter:brightness(1);}}
/* Prize list */
.tmwl_card_prizes .tmwl_prize_list{max-height:220px; overflow:auto; padding-right:6px;}
.tmwl-prize-row{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 10px; border-radius:12px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); margin-top:8px;}
.tmwl-prize-name{font-weight:700; font-size:13px;}
.tmwl-prize-meta{display:flex; align-items:center; gap:8px;}
.tmwl-prize-cost{font-weight:900;}
.tmwl-pill{font-size:10px; padding:4px 8px; border-radius:999px; background:rgba(0,0,0,0.35); border:1px solid rgba(255,255,255,0.12); text-transform:uppercase; letter-spacing:.8px;}
.tmwl-badge{font-size:16px; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.18); letter-spacing:.8px; display: inline-flex; justify-content: center; align-items: center; flex-direction: row;}
.tmwl-muted{opacity:.7; font-size:12px; padding:8px 0;}
/* Reels / slot counter */
.tmwl-digits{display:flex; gap:10px; align-items:center; justify-content:center; padding:10px 8px;}
.tmwl-reel{width:44px; height:64px; overflow:hidden; border-radius:12px; border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.12));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.18);
  position:relative;
}
.tmwl-reel::after{content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 78%, rgba(0,0,0,.35));
}
.tmwl-reel-track{will-change:transform; transition:transform 520ms cubic-bezier(.12,.9,.22,1);
}
.tmwl-reel-digit{height:64px; display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:34px; letter-spacing:1px; color:#0c1620;
  text-shadow:0 1px 0 rgba(255,255,255,.45);
}
/* RNG mini */
.tmwl-rng-mini{margin-top:12px; padding:12px; border-radius:14px; border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.06));
}
.tmwl-rng-title{font-weight:800; font-size:12px; letter-spacing:.12em; text-transform:uppercase; opacity:.85; margin-bottom:8px;}
.tmwl-rng-row{display:flex; gap:8px; align-items:center;}
.tmwl-rng-row input{width:92px; padding:10px 10px; border-radius:12px; border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08); color:#fff; outline:none;}
.tmwl-rng-sep{opacity:.8; font-size:12px;}
.tmwl-rng-out{margin-top:10px; text-align:center; font-size:22px; font-weight:900; letter-spacing:.04em;
  padding:10px 12px; border-radius:12px; background:rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.12);
}
/* Google-style RNG (read-only visual, like Google Number Generator) */
.tmwl-rng-card{background:rgba(255,255,255,.06)}
.tmwl-rng-big{font-size:44px; font-weight:900; line-height:1; letter-spacing:.02em; text-align:left;
  padding:10px 4px 0; margin:2px 0 8px;}
.tmwl-rng-minmax{display:flex; gap:18px; align-items:flex-end; padding:0 4px 10px;}
.tmwl-rng-mm{flex:1; min-width:0;}
.tmwl-rng-mm-label{font-size:12px; opacity:.82; letter-spacing:.02em; margin-bottom:4px;}
.tmwl-rng-mm-val{font-size:22px; font-weight:800; border-bottom:2px solid rgba(255,255,255,.25); padding-bottom:6px;}
.tmwl-rng-btn{margin-top:10px; background:rgba(0,145,255,.85); border:1px solid rgba(255,255,255,.14);
  color:#fff; font-weight:900; letter-spacing:.08em; text-transform:uppercase; text-align:center;
  padding:14px 10px; border-radius:12px; user-select:none;}
.tmwl-rng-btn[aria-disabled="true"]{opacity:.92}
.tmwl-rng-btn.tmwl-rng-running{filter:saturate(1.15) brightness(1.05)}
/* Google-like RNG panel (English, read-only) */
.tmwl-google{border-radius:16px; overflow:hidden; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);}
.tmwl-google-top{position:relative; padding:12px 12px 4px;}
.tmwl-google-num{font-size:46px; font-weight:900; color:#fff; line-height:1;}
.tmwl-google-share{position:absolute; right:10px; top:10px; width:28px; height:28px; display:flex; align-items:center; justify-content:center; border-radius:999px; background:rgba(255,255,255,.12); color:rgba(255,255,255,.92); font-weight:900;}
.tmwl-google-range{display:flex; gap:16px; padding:8px 12px 12px;}
.tmwl-google-col{flex:1;}
.tmwl-google-lbl{font-size:12px; color:rgba(255,255,255,.8); margin-bottom:4px;}
.tmwl-google-val{font-size:18px; font-weight:800; color:#fff;}
.tmwl-google-line{height:2px; background:rgba(255,255,255,.22); margin-top:8px; border-radius:2px;}
.tmwl-google-btn{margin:0 12px 10px; background:rgba(0,145,255,.92); border:1px solid rgba(255,255,255,.14);
  color:#fff; font-weight:900; letter-spacing:.08em; text-transform:uppercase; text-align:center;
  padding:14px 10px; border-radius:12px; user-select:none;}
.tmwl-google-btn.tmwl-rng-running{filter:saturate(1.15) brightness(1.05); box-shadow:0 0 0 2px rgba(0,145,255,.22), 0 10px 22px rgba(0,0,0,.35)}
/* --- Casino neon enhancements (PROD-FIXED) --- */
.tmwl-wheel-stage{position:relative;}
.tmwl-wheel-stage:before{
  content:"";
  position:absolute;
  inset:-14px;
  border-radius:28px;
  background:radial-gradient(circle at 50% 20%, rgba(255,255,255,.55), rgba(255,255,255,0) 55%),
             radial-gradient(circle at 50% 50%, rgba(0,0,0,.20), rgba(0,0,0,0) 60%);
  pointer-events:none;
  filter: blur(.2px);
}
.tmwl-wheel-stage:after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:26px;
  background:
    conic-gradient(from 0deg,
      rgba(255,231,92,.95),
      rgba(255,120,220,.95),
      rgba(120,170,255,.95),
      rgba(120,255,190,.95),
      rgba(255,231,92,.95)
    );
  opacity:.28;
  filter: blur(10px);
  animation: tmwl-neon-lights 3.2s linear infinite;
  pointer-events:none;
}
@keyframes tmwl-neon-lights{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}
/* === Winning tickets pool (casino ticket chips) === */
.tmwl-pool-h{
  margin:10px 0 8px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.78);
}
.tmwl-pool-divider{
  height:1px;
  margin:12px 0;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  opacity:.9;
}
.tmwl-ticketgrid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.tmwl-ticket{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  min-width:86px;
  padding:10px 12px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    0 10px 24px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.10);
  overflow:hidden;
}
.tmwl-ticket::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:16px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.22), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 70% 80%, rgba(255,40,40,.18), rgba(255,40,40,0) 58%);
  opacity:.9;
  pointer-events:none;
}
.tmwl-ticket-num{
  font-weight:900;
  font-size:20px;
  line-height:1;
  letter-spacing:.04em;
  color:#fff;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
}
.tmwl-ticket-prize{
  font-size:11px;
  line-height:1.2;
  color:rgba(255,255,255,.78);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:140px;
}
.tmwl-ticket--available{
  border-color:rgba(255,60,60,.22);
  box-shadow:
    0 10px 26px rgba(0,0,0,.32),
    0 0 18px rgba(255,35,35,.18),
    0 0 40px rgba(255,35,35,.10),
    inset 0 1px 0 rgba(255,255,255,.12);
  animation: tmwlTicketGlow 1.8s ease-in-out infinite;
}
@keyframes tmwlTicketGlow{
  0%{ filter:brightness(1); }
  50%{ filter:brightness(1.08); }
  100%{ filter:brightness(1); }
}
.tmwl-ticket--claimed{
  opacity:.52;
  filter:saturate(.6);
  border-color:rgba(255,255,255,.10);
}
.tmwl-ticket--claimed .tmwl-ticket-num{
  text-decoration:line-through;
  text-decoration-thickness:2px;
  text-decoration-color:rgba(255,255,255,.55);
}
.tmwl-ticket--claimed::before{ opacity:.55; }
.tmwl-ticketgrid--you .tmwl-ticket--available{
  border-color:rgba(60,255,160,.22);
  box-shadow:
    0 10px 26px rgba(0,0,0,.32),
    0 0 18px rgba(30,255,160,.16),
    0 0 40px rgba(30,255,160,.10),
    inset 0 1px 0 rgba(255,255,255,.12);
  animation: tmwlTicketGlowYou 1.6s ease-in-out infinite;
}
@keyframes tmwlTicketGlowYou{
  0%{ filter:brightness(1); }
  50%{ filter:brightness(1.10); }
  100%{ filter:brightness(1); }
}
.tmwl-ticket-badge{
  position:absolute;
  top:8px;
  right:8px;
  padding:3px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.85);
}
.tmwl-ticket--available .tmwl-ticket-badge{
  background:rgba(255,30,30,.18);
  border-color:rgba(255,80,80,.25);
  color:#fff;
}
.tmwl-ticket--claimed .tmwl-ticket-badge{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.10);
  color:rgba(255,255,255,.75);
}
.tmwl-pool-note{
  margin-top:8px;
  font-size:12px;
  color:rgba(255,255,255,.72);
  line-height:1.35;
}
/* mobile: tighter chips */
@media (max-width:580px){
  .tmwl-ticket{ min-width:78px; padding:9px 10px; border-radius:13px; }
  .tmwl-ticket-num{ font-size:18px; }
  .tmwl-ticket-prize{ font-size:10px; max-width:120px; }
}
/* Dynamic contest title in header */
.tmwl-contest-title{
  margin-top:8px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:14px;
  color:rgba(255,255,255,.92);
  text-shadow:0 2px 14px rgba(0,0,0,.55);
  max-width: 520px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  animation: tmwlTitleGlow 1.9s ease-in-out infinite;
}
@keyframes tmwlTitleGlow{
  0%{ filter:brightness(1); }
  50%{ filter:brightness(1.10); }
  100%{ filter:brightness(1); }
}
@media (max-width:580px){
  .tmwl-contest-title{ font-size:12px; max-width: 80vw; }
}
/* Replace BIG WIN with dynamic contest title inside the gold pill */
.tmwl-marquee{
  position: relative;
  overflow: hidden;
}
.tmwl-marquee-text{
  display:block;
  padding:10px 14px;
  max-width:100%;
  white-space:normal;            /* allow wrap */
  overflow:visible;
  text-overflow:clip;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-weight:900;
  font-size:28px;
  line-height:1.05;
  text-align:center;
  word-break:break-word;
  animation: tmwlMarqueePop .9s ease-out both;
}
@keyframes tmwlMarqueePop{
  0%{ transform:translateY(6px) scale(.98); opacity:0; }
  100%{ transform:translateY(0) scale(1); opacity:1; }
}
/* Shimmer sweep */
.tmwl-marquee::after{
  content:"";
  position:absolute;
  inset:-30% -60%;
  background:linear-gradient(110deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.30) 50%, rgba(255,255,255,0) 65%);
  transform:translateX(-60%);
  animation: tmwlShimmer 2.2s ease-in-out infinite;
  pointer-events:none;
  mix-blend-mode:screen;
}
@keyframes tmwlShimmer{
  0%{ transform:translateX(-60%); opacity:.0; }
  15%{ opacity:.55; }
  50%{ transform:translateX(60%); opacity:.35; }
  100%{ transform:translateX(60%); opacity:0; }
}
/* Slight glow pulse */
.tmwl-marquee{
  animation: tmwlPillGlow 2.6s ease-in-out infinite;
}
@keyframes tmwlPillGlow{
  0%,100%{ filter:brightness(1); }
  50%{ filter:brightness(1.07); }
}
@media (max-width:580px){
  .tmwl-marquee-text{ letter-spacing:.04em; padding:10px 10px; font-size:18px; line-height:1.12; }
}
@media (min-width:581px) and (max-width:980px){
  .tmwl-marquee-text{ font-size:22px; }
}
/* Claimed tickets: diagonal strike */
.tmwl-ticket--claimed::after{
  content:"";
  position:absolute;
  left:-20%;
  top:50%;
  width:140%;
  height:3px;
  background:rgba(255,255,255,.58);
  transform:rotate(-18deg);
  border-radius:999px;
  box-shadow:0 0 10px rgba(0,0,0,.35);
  pointer-events:none;
}
/* ---------- Mobile auth modal (order/email) ---------- */
/* Auth modal child elements */
.tmwl-auth-handle{ width:52px; height:5px; border-radius:999px; margin:2px auto 12px; background:rgba(255,255,255,.18); }
.tmwl-auth-title{ font-weight:800; letter-spacing:.12em; font-size:13px; opacity:.95; }
.tmwl-auth-sub{ margin-top:6px; font-size:12px; opacity:.72; line-height:1.35; }
.tmwl-auth-body{ margin-top:14px; }
.tmwl-auth-label{ display:block; font-size:12px; opacity:.8; margin:0 0 6px; }
.tmwl-auth-note{ margin-top:10px; font-size:12px; opacity:.9; background:rgba(255,70,70,.12); border:1px solid rgba(255,70,70,.25); padding:10px 12px; border-radius:14px; }
/* ---------- Slide-in wheel area after auth ---------- */
.tmwl-wheel-card{ transform-origin: 80% 50%; }
.tmwl-wheel-card.tmwl-hidden{ opacity:0; transform:translateX(-34px) scale(.98); pointer-events:none; }
.tmwl-wheel-card.tmwl-show{
  opacity:1;
  transform:translateX(0) scale(1);
}
/* Ensure auth inputs never overflow the sheet */
.tmwl-input.tmwl-input--auth{ width:100%; max-width:100%; box-sizing:border-box; }
/* ===== Burst / particles (LOAD MY SPINS success) ===== */
.tmwl-auth-modal.tmwl-auth-burst .tmwl-auth-sheet{
  filter: blur(0px);
  animation: tmwlBurstSheet 520ms cubic-bezier(.2,1,.2,1) forwards;
}
@keyframes tmwlBurstSheet{
  0%{ transform: translate(-50%,-50%) translateY(0) scale(1); opacity:1; }
  35%{ transform: translate(-50%,-50%) translateY(-8px) scale(1.02); opacity:1; }
  100%{ transform: translate(-50%,-50%) translateY(8px) scale(.96); opacity:0; filter: blur(2px); }
}
@media (max-width: 640px){
  @keyframes tmwlBurstSheet{
    0%{ transform: translateX(-50%) translateY(0) scale(1); opacity:1; }
    35%{ transform: translateX(-50%) translateY(-8px) scale(1.02); opacity:1; }
    100%{ transform: translateX(-50%) translateY(10px) scale(.96); opacity:0; filter: blur(2px); }
  }
}
.tmwl-molecule{
  position:fixed;
  width:8px;
  height:8px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,215,0,.85), rgba(255,0,60,.75));
  box-shadow: 0 0 14px rgba(255,215,0,.35), 0 0 26px rgba(255,0,60,.22);
  z-index: var(--z-particles);
  pointer-events:none;
  opacity: 0;
}
.tmwl-host-toast{
  position:fixed;
  left:50%;
  top:18px;
  transform:translateX(-50%) translateY(-12px);
  z-index: var(--z-host-toast);
  display:none;
}
.tmwl-host-toast.is-on{ display:block; animation: tmwlHostIn 560ms cubic-bezier(.2,1,.2,1) forwards; }
@keyframes tmwlHostIn{
  to{ transform:translateX(-50%) translateY(0); }
}
/* ---------- Bottom toast (NO WIN motivator) ---------- */
.tmwl-toast{ position:fixed; left:0; right:0; bottom:18px; z-index:var(--z-toast); display:none; }
.tmwl-toast.is-open{ display:block; }
.tmwl-toast-inner{
  width:min(560px, calc(100vw - 28px));
  margin:0 auto;
  padding:12px 14px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(18,32,64,.92), rgba(10,18,40,.92));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 50px rgba(0,0,0,.55);
  color: rgba(255,255,255,.92);
  font-size:13px;
  line-height:1.35;
  transform:translateY(18px);
  opacity:0;
  transition:transform 260ms ease, opacity 260ms ease;
}
.tmwl-toast.is-open .tmwl-toast-inner{ transform:translateY(0); opacity:1; }
/* ---------- Contest title (animated split lines) ---------- */
.tmwl-contest-title{
  margin-top:10px;
  display:none;
}
.tmwl-contest-title.is-on{ display:block; }
.tmwl-title-split{
  display:grid;
  gap:6px;
  align-items:start;
}
.tmwl-title-line{
  display:block;
  padding:10px 12px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,224,130,.98), rgba(244,194,78,.98));
  border:1px solid rgba(255,255,255,.25);
  color:#2b1600;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.15;
  box-shadow:0 16px 46px rgba(0,0,0,.35);
}
.tmwl-title-line.small{ font-size:14px; }
.tmwl-title-line.med{ font-size:16px; }
.tmwl-title-line.big{ font-size:18px; }
@media (max-width: 580px){
  .tmwl-title-line.big{ font-size:15px; }
  .tmwl-title-line.med{ font-size:14px; }
  .tmwl-title-line.small{ font-size:13px; }
}
/* slide-in animation from alternating sides */
.tmwl-title-line{
  opacity:0;
  transform:translateX(22px);
}
.tmwl-title-line.from-left{ transform:translateX(-22px); }
.tmwl-contest-title.is-animate .tmwl-title-line{
  animation: tmwlTitleIn 520ms cubic-bezier(.2,1,.2,1) forwards;
}
.tmwl-contest-title.is-animate .tmwl-title-line:nth-child(2){ animation-delay:70ms; }
.tmwl-contest-title.is-animate .tmwl-title-line:nth-child(3){ animation-delay:140ms; }
.tmwl-contest-title.is-animate .tmwl-title-line:nth-child(4){ animation-delay:210ms; }
@keyframes tmwlTitleIn{
  from{ opacity:0; transform:translateX(var(--tmwl-title-x, 22px)); filter:blur(2px); }
  to{ opacity:1; transform:translateX(0); filter:blur(0); }
}
/* Hide legacy inline auth card when JS activates modal */
body.tmwl-hide-legacy .tmwl-left > .tmwl-card:first-of-type{ display:none !important; }
/* History list */
.tmwl-history{
  display:flex; flex-direction:column; gap:10px;
}
.tmwl-hrow{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.tmwl-hrow .l{ display:flex; flex-direction:column; gap:2px; }
.tmwl-hrow .t{ font-weight:800; letter-spacing:.06em; text-transform:uppercase; font-size:12px; opacity:.9; }
.tmwl-hrow .s{ font-size:13px; opacity:.92; }
.tmwl-hrow .r{ font-size:12px; opacity:.7; }
.tmwl-hrow.win{ box-shadow:0 0 0 1px rgba(56,255,170,.25), 0 18px 50px rgba(56,255,170,.10); }
.tmwl-hrow.lose{ opacity:.95; }
/* =========================
   AUTH MODAL (casino style)
   ========================= */
.tmwl-auth-modal{
  position:fixed;
  inset:0;
  z-index:var(--z-modal);
  display:none;
}
.tmwl-auth-modal[aria-hidden="false"]{ display:block; }
.tmwl-auth-backdrop{
  position:absolute; inset:0;
  background:rgba(3,10,22,.72);
  backdrop-filter: blur(10px) saturate(1.15);
}
.tmwl-auth-sheet{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(560px, calc(100vw - 28px));
  border-radius:22px;
  padding:18px 18px 16px;
  color:#eaf3ff;
  background:
    radial-gradient(900px 420px at 30% 0%, rgba(255,210,85,.16), transparent 55%),
    linear-gradient(180deg, rgba(10,24,48,.96) 0%, rgba(5,14,32,.96) 100%);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:
    0 28px 90px rgba(0,0,0,.62),
    0 0 0 1px rgba(255,210,85,.10),
    0 0 48px rgba(255,0,90,.10);
  overflow:hidden;
}
.tmwl-auth-handle{
  width:54px; height:6px;
  border-radius:999px;
  margin:2px auto 12px;
  background:rgba(255,255,255,.18);
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;
}
.tmwl-auth-head{ text-align:center; padding:2px 6px 10px; }
.tmwl-auth-badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.18em;
  font-size:11px;
  color:#09131f;
  background:linear-gradient(180deg,#ffe08a 0%, #d6a83a 100%);
  box-shadow:0 10px 26px rgba(214,168,58,.18);
  margin-bottom:10px;
}
.tmwl-auth-title{
  font-weight:1000;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.05;
  color:#ffe08a;
  text-shadow:0 8px 24px rgba(0,0,0,.35);
  font-size:30px;
}
.tmwl-auth-title--2{ font-size:28px; margin-top:4px; }
.tmwl-auth-sub{
  margin-top:10px;
  opacity:.9;
  font-size:14px;
  line-height:1.35;
}
.tmwl-auth-body{ padding:10px 6px 0; display:flex; flex-direction:column; gap:12px; }
.tmwl-field{ display:flex; flex-direction:column; gap:6px; }
.tmwl-auth-label{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.8;
}
.tmwl-input--auth{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  display:block !important;
  height:48px !important;
  border-radius:14px !important;
  padding:0 14px !important;
  font-size:16px !important;
  color:#eaf3ff !important;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  box-shadow:0 10px 26px rgba(0,0,0,.22) inset;
}
.tmwl-input--auth:focus{
  outline:none !important;
  border-color:rgba(255,224,138,.55) !important;
  box-shadow:0 0 0 3px rgba(255,224,138,.16), 0 12px 34px rgba(0,0,0,.25) inset !important;
}
.tmwl-btn--auth{
  height:52px;
  border-radius:16px;
  border:none;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  font-weight:1000;
  letter-spacing:.18em;
}
.tmwl-btn--auth .tmwl-btn-txt{ position:relative; z-index:2; }
.tmwl-btn--auth .tmwl-btn-glow{
  position:absolute; inset:-60px -40px;
  background:
    radial-gradient(180px 140px at 30% 30%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(220px 160px at 70% 55%, rgba(255,0,90,.18), transparent 65%),
    radial-gradient(240px 180px at 60% 30%, rgba(0,220,255,.14), transparent 65%);
  animation: tmwlAuthGlow 2.6s ease-in-out infinite;
  filter: blur(.2px);
  opacity:.9;
}
@keyframes tmwlAuthGlow{
  0%,100%{ transform:translate3d(-10px, 0, 0) rotate(-2deg); opacity:.75; }
  50%{ transform:translate3d(10px, -6px, 0) rotate(2deg); opacity:1; }
}
.tmwl-auth-note{
  font-size:12px;
  line-height:1.35;
  opacity:.75;
  text-align:center;
  padding:4px 8px 0;
}
.tmwl-auth-error{
  margin-top:2px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,40,90,.10);
  border:1px solid rgba(255,40,90,.25);
  color:#ffd1dc;
  font-size:13px;
  line-height:1.3;
}
@media (max-width: 640px){
  .tmwl-auth-sheet{
    left:50%;
    top:auto;
    bottom:12px;
    transform:translateX(-50%);
    border-radius:22px;
    width:calc(100vw - 18px);
    padding:16px 16px 14px;
  }
  .tmwl-auth-title{ font-size:24px; }
  .tmwl-auth-title--2{ font-size:22px; }
}
/* ===== Modal entrance/exit animation (trend glass) ===== */
.tmwl-auth-sheet{
  /* keep existing positioning transform; add a second translate/scale layer via CSS vars */
  --tmwl-auth-dy: 22px;
  --tmwl-auth-scale: .985;
  opacity:0;
  will-change: opacity, transform;
  transition: opacity .28s ease, transform .42s cubic-bezier(.2,.95,.2,1);
}
.tmwl-auth-modal[aria-hidden="false"] .tmwl-auth-sheet{
  --tmwl-auth-dy: 0px;
  --tmwl-auth-scale: 1;
  opacity:1;
}
.tmwl-auth-modal.tmwl-auth-closing .tmwl-auth-sheet{
  --tmwl-auth-dy: 18px;
  --tmwl-auth-scale: .985;
  opacity:0;
}
/* Apply the vars to the actual transform for both desktop + mobile sheets */
.tmwl-auth-sheet{
  transform: translate(-50%,-50%) translateY(var(--tmwl-auth-dy)) scale(var(--tmwl-auth-scale));
}
@media (max-width: 640px){
  .tmwl-auth-sheet{
    transform: translateX(-50%) translateY(var(--tmwl-auth-dy)) scale(var(--tmwl-auth-scale));
  }
}
@media (max-height: 500px) and (orientation: landscape){
  .tmwl-auth-sheet{
    top:8px;
    bottom:8px;
    transform:translateX(-50%);
    max-height:calc(100vh - 16px);
    max-height:calc(100dvh - 16px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding:12px 16px;
  }
  .tmwl-auth-title{ font-size:20px; }
  .tmwl-auth-handle{ margin:0 auto 6px; }
}
/* ===== Wheel slide-in after successful load ===== */
body.tmwl-preload .tmwl-right{
  opacity:0;
  transform: translateX(44px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.9,.2,1);
  pointer-events:none;
}
body.tmwl-loaded .tmwl-right{
  opacity:1;
  transform: translateX(0);
  pointer-events:auto;
}
/* Keep left column stable while modal is open */
body.tmwl-preload .tmwl-left{ filter: none; }
/* ===== Spin history block (uses new ids) ===== */
.tmwl-spin-history{ max-height: 260px; overflow:auto; padding-right: 6px; }
.tmwl-spin-history-list{ display:flex; flex-direction:column; gap:10px; }
.tmwl-hist-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px;
  border-radius:14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
}
.tmwl-hist-row.is-win{
  border-color: rgba(255,215,90,.35);
  box-shadow: 0 0 0 1px rgba(255,215,90,.12), 0 10px 22px rgba(0,0,0,.25);
}
.tmwl-hist-row.is-lose{ opacity:.9; }
.tmwl-hist-title{ font-weight:800; letter-spacing:.12em; font-size:12px; }
.tmwl-hist-sub{ font-size:12px; opacity:.9; margin-top:2px; }
.tmwl-hist-time{ font-size:11px; opacity:.7; white-space:nowrap; margin-left:10px; }
.tmwl-hist-empty{ opacity:.75; font-size:13px; padding:10px 4px; }
/* =========================================================
   PREMIUM CASINO LAYOUT (Stake / BC.Game vibe)
   - Pure CSS overrides, no HTML/JS logic changes
   - Keeps existing class names to avoid breaking anything
   ========================================================= */
/* Deep casino background + soft neon blooms */
.tmwl-wrap{
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(0, 210, 255, .18) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(980px 560px at 82% 22%, rgba(255, 0, 90, .16) 0%, rgba(0,0,0,0) 62%),
    radial-gradient(1200px 720px at 50% 110%, rgba(255, 210, 60, .10) 0%, rgba(0,0,0,0) 65%),
    linear-gradient(180deg, #060b14 0%, #050912 45%, #03060d 100%);
}
.tmwl-wrap::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 22%),
    radial-gradient(700px 260px at 50% 0%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
  mix-blend-mode:soft-light;
  opacity:.8;
}
/* Centered container, more breathing room */
.tmwl-shell{
  max-width:1320px;
  padding:34px 18px;
  gap:26px;
}
@media (min-width: 1024px){
  .tmwl-shell{ grid-template-columns:420px 1fr; }
  .tmwl-left{ position:sticky; top:24px; }
}
/* Premium glass cards */
.tmwl-title,
.tmwl-card,
.tmwl-topbar,
.tmwl-wheel-card,
.tmwl-rng-mini,
.tmwl-table-wrap,
.tmwl_slots_wrap,
.tmwl-prize-row{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:
    0 18px 48px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
/* Marquee = neon gold, less "flat" */
.tmwl-marquee{
  background:linear-gradient(90deg,#ffcc4a 0%, #fff2b0 25%, #ffcc4a 50%, #ffd86a 75%, #ffcc4a 100%);
  box-shadow:
    0 16px 40px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.18) inset,
    0 0 26px rgba(255, 210, 80, .22);
}
/* Contest title: tighter & more premium */
.tmwl-contest-title{
  margin-top:10px;
  font-weight:800;
  font-size:14px;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.92;
  text-align:center;
}
/* KPI cards: see Layout overrides section below */
/* Wheel card: glowing ring + centered feel */
.tmwl-wheel-card{
  margin-top:0;
  border-radius:22px;
  padding:18px;
  padding-top:48px; /* room for live ticker */
  min-height:620px;
  box-shadow:
    0 22px 70px rgba(0,0,0,.62),
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 0 36px rgba(255, 0, 90, .10),
    0 0 44px rgba(0, 210, 255, .10);
}
.tmwl-wheel-card::before{
  content:"";
  position:absolute;
  inset:14px;
  border-radius:18px;
  pointer-events:none;
  background:
    radial-gradient(260px 260px at 50% 50%, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 62%),
    radial-gradient(460px 460px at 50% 55%, rgba(255, 0, 90, .08) 0%, rgba(0,0,0,0) 64%),
    radial-gradient(460px 460px at 55% 45%, rgba(0, 210, 255, .08) 0%, rgba(0,0,0,0) 64%);
}
/* Spin button: more "casino" */
.tmwl-spin{
  width:132px;
  height:132px;
  border:2px solid rgba(255,255,255,.20);
  background:
    radial-gradient(circle at 30% 25%, #a9ffd9 0%, #28e1a5 22%, #0aa06f 55%, #076647 100%);
  box-shadow:
    0 22px 60px rgba(0,0,0,.65),
    0 0 26px rgba(40, 225, 165, .22);
}
.tmwl-spin:active{ transform:translate(-50%,-50%) scale(.98); }
/* Auth modal: stronger premium contrast */
.tmwl-auth-sheet{
  background:linear-gradient(180deg, rgba(16,22,34,.92), rgba(8,12,20,.92));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 30px 90px rgba(0,0,0,.70);
  backdrop-filter: blur(14px);
}
.tmwl-input--auth{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.14) !important;
}
/* Mobile keeps single-column and centered */
@media (max-width: 680px){
  .tmwl-shell{ padding:22px 12px; gap:16px; }
  .tmwl-wheel-card{ min-height:520px; }
}
/* === Layout overrides (desktop + mobile) === */
.tmwl-wrap{
  background: radial-gradient(circle at 50% 20%, #0b1e3a 0%, #061226 60%, #030812 100%);
}
.tmwl-shell{
  max-width: 1100px;
  grid-template-columns: 380px 1fr;
}
.tmwl-title{background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10));}
.tmwl-card{
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(0,0,0,.10));
  border:1px solid rgba(255,255,255,.10);
}
/* KPI block more compact */
.tmwl-kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-bottom: 10px;
}
.tmwl-kpi{
  padding:10px 10px;
  border-radius:14px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.08);
}
.tmwl-kpi .k{font-size:10px; letter-spacing:.12em; opacity:.78;}
.tmwl-kpi .v{font-size:22px; font-weight:900; line-height:1;}
/* Prize showcase */
.tmwl-showcase{margin-top:10px;}
.tmwl-showcase-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap:10px;
}
.tmwl-showcase-item{
  position:relative;
  border-radius:14px;
  padding:10px 8px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.16));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 26px rgba(0,0,0,.30);
  min-height:72px;
}
.tmwl-showcase-ico{
  width:34px; height:34px; border-radius:12px;
  background: rgba(255,255,255,.08) center/cover no-repeat;
  box-shadow: 0 10px 18px rgba(0,0,0,.35);
  display:flex; align-items:center; justify-content:center;
  font-weight:900; color:rgba(255,255,255,.9);
  margin:0 auto 6px;
}
.tmwl-showcase-qty{
  position:absolute; right:8px; top:8px;
  min-width:22px; height:22px; padding:0 6px;
  border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:900;
  background: rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.14);
}
.tmwl-showcase-name{
  font-size:10px;
  letter-spacing:.08em;
  text-transform: uppercase;
  text-align:center;
  opacity:.85;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* "X of Y remaining" badge (showcase) */
.tmwl-showcase-remain{
  position:absolute;
  left:8px;
  right:8px;
  bottom:8px;
  height:22px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
  background: rgba(255,255,255,.90);
  color: rgba(10,16,26,.92);
  box-shadow: 0 10px 18px rgba(0,0,0,.28);
}
/* Floating RNG badge */
.tmwl-rng-fab{
  position:absolute;
  left:14px;
  bottom:14px;
  z-index: var(--z-rng-fab);
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:8px 10px;
  border-radius:14px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.tmwl-rng-fab-num{font-size:14px; font-weight:900; letter-spacing:.06em;}
.tmwl-rng-fab-sub{font-size:10px; opacity:.78; letter-spacing:.08em;}
/* RNG digit-reel animation (visual-only; final number still comes from engine) */
.tmwl-rng-fab-num.tmwl-reels{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
}
.tmwl-rng-fab-num.tmwl-reels .tmwl-reel{
  width: 32px;
  height: var(--tmwl-reel-cell-h, 32px);
  overflow:hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, #1a1f2e 0%, #0d1118 40%, #0d1118 60%, #1a1f2e 100%);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,.6),
    inset 0 -1px 4px rgba(0,0,0,.3),
    0 1px 0 rgba(255,255,255,.08);
}
.tmwl-reel-strip{ will-change: transform; }
.tmwl-reel-cell{
  height: var(--tmwl-reel-cell-h, 32px);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
@keyframes tmwlReelSpin{
  from { transform: translateY(0); }
  to   { transform: translateY(calc(-10 * var(--tmwl-reel-cell-h, 26px))); }
}
.tmwl-reel-strip.tmwl-reel-spin{
  animation: tmwlReelSpin 420ms steps(10, end) infinite;
}
@media (max-width: 980px){
  .tmwl-shell{
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "wheel"
      "left";
  }
  
  /* Horizontal Pagination (Old-school robust method) */
  .tmwl-showcase-grid,
  .tmwl-spin-history-list { 
    display: block;
    white-space: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0; /* Gap doesn't work with block/inline-block */
    padding: 15px 5px !important;
    scrollbar-width: none;
    font-size: 0 !important; /* Remove gaps between inline-blocks */
  }
  .tmwl-showcase-grid::-webkit-scrollbar,
  .tmwl-spin-history-list::-webkit-scrollbar { display: none; }
  .tmwl-showcase-item {
    display: inline-block !important;
    vertical-align: top !important;
    width: 130px !important; 
    margin-right: 12px !important;
    white-space: normal !important; /* Restore text wrapping in items */
    font-size: 14px !important; /* Restore font size */
    min-height: 80px;
  }
  .tmwl-spin-history { max-height: none !important; }
  .tmwl-hist-row {
    display: inline-flex !important; /* Keep internal flex for content */
    vertical-align: top !important;
    width: 220px !important;
    margin-right: 12px !important;
    white-space: normal !important;
    font-size: 14px !important;
  }
}
@media (max-width: 520px){
  .tmwl-kpis{ grid-template-columns: repeat(2, 1fr); }
  .tmwl-showcase-item {
    flex: 0 0 110px !important; /* Slightly smaller on phones */
  }
}
.tmwl-showcase-ico.img-fail{ background-image:none; }
/* ===== Showcase remaining badge (gold) - replaces white qty bubble ===== */
.tmwl-showcase-qty{ display:none; }
.tmwl-showcase-ico{ position:relative; overflow:hidden; }
.tmwl-showcase-remain{
  position:absolute;
  left:10px;
  right:10px;
  bottom:10px;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(255,230,160,.14) 0%, rgba(255,215,120,.05) 100%),
    linear-gradient(135deg, #ffd36a 0%, #ffb800 35%, #ffe8a9 70%, #ffbf2f 100%);
  border:1px solid rgba(255,210,120,.55);
  box-shadow:
    0 10px 24px rgba(0,0,0,.45),
    0 0 18px rgba(255,196,64,.22),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -10px 18px rgba(0,0,0,.22);
  color:#1a1206;
  font-weight:900;
  letter-spacing:.2px;
  font-size:11.5px;
  line-height:1;
  text-shadow:0 1px 0 rgba(255,255,255,.18);
}
.tmwl-showcase-remain.is-hidden{ display:none !important; }
@media (max-width: 520px){
  .tmwl-showcase-remain{
    left:8px; right:8px; bottom:8px;
    padding:6px 9px;
    font-size:11px;
  }
}
/* ===== Vegas: animated glow when remaining > 1 (is-available) ===== */
.tmwl-showcase-item.is-available .tmwl-showcase-ico{
  transform: translateZ(0);
}
.tmwl-showcase-item.is-available .tmwl-showcase-ico::before{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:18px;
  background: conic-gradient(
    from 0deg,
    rgba(255,233,170,.0) 0%,
    rgba(255,198,66,.85) 10%,
    rgba(255,255,255,.18) 18%,
    rgba(255,180,40,.85) 32%,
    rgba(255,233,170,.0) 45%,
    rgba(255,198,66,.85) 60%,
    rgba(255,255,255,.18) 70%,
    rgba(255,180,40,.85) 86%,
    rgba(255,233,170,.0) 100%
  );
  filter: blur(8px);
  opacity:.55;
  z-index:0;
  pointer-events:none;
  animation: tmwlVegasSpin 3.8s linear infinite;
}
.tmwl-showcase-item.is-available .tmwl-showcase-ico::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:16px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 35%, rgba(255,255,255,0) 70%);
  mix-blend-mode: overlay;
  opacity:.55;
  transform: translateX(-60%);
  z-index:1;
  pointer-events:none;
  animation: tmwlVegasSweep 2.6s ease-in-out infinite;
}
/* keep actual image above effects */
.tmwl-showcase-item.is-available .tmwl-showcase-ico{
  position:relative;
}
.tmwl-showcase-item.is-available .tmwl-showcase-ico.has-img{
  z-index:2;
}
.tmwl-showcase-item.is-available .tmwl-showcase-remain{
  z-index:6;
}
@keyframes tmwlVegasSpin{
  0%{ transform: rotate(0deg); }
  100%{ transform: rotate(360deg); }
}
@keyframes tmwlVegasSweep{
  0%{ transform: translateX(-60%); opacity:.0; }
  20%{ opacity:.55; }
  55%{ opacity:.35; }
  100%{ transform: translateX(60%); opacity:.0; }
}
/* ===== Sold out: keep icon but make it B/W when remaining = 0 (is-out) ===== */
.tmwl-showcase-item.is-out .tmwl-showcase-ico{
  filter: grayscale(1) saturate(.15) brightness(.72) contrast(.95);
  opacity:.78;
}
.tmwl-showcase-item.is-out .tmwl-showcase-ico::before,
.tmwl-showcase-item.is-out .tmwl-showcase-ico::after{
  display:none !important;
}
.tmwl-showcase-item.is-out .tmwl-showcase-remain{
  display:none !important;
}
/* ============================================================
   iPhone-safe SFX toggle + Win FX overlay (non-breaking)
   ============================================================ */
.tmwl-wheel-card{ position:relative; }
.tmwl-sound-toggle{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(8,20,45,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  cursor:pointer;
  z-index:7;
}
.tmwl-sound-toggle::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width:18px;
  height:18px;
  opacity:.92;
  background: currentColor;
  color:#fff;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M14 3.23v17.54c0 .95-1.07 1.51-1.85.97L7.82 18H4c-1.1 0-2-.9-2-2V8c0-1.1.9-2 2-2h3.82l4.33-3.74c.78-.54 1.85.02 1.85.97Zm4.5 8.77a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 18.5 12Zm-2.5-8.5v2.06a7 7 0 0 1 0 12.88v2.06c4.05-1.23 7-4.99 7-9s-2.95-7.77-7-9Z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M14 3.23v17.54c0 .95-1.07 1.51-1.85.97L7.82 18H4c-1.1 0-2-.9-2-2V8c0-1.1.9-2 2-2h3.82l4.33-3.74c.78-.54 1.85.02 1.85.97Zm4.5 8.77a4.5 4.5 0 0 0-2.5-4.03v8.06A4.5 4.5 0 0 0 18.5 12Zm-2.5-8.5v2.06a7 7 0 0 1 0 12.88v2.06c4.05-1.23 7-4.99 7-9s-2.95-7.77-7-9Z"/></svg>') center/contain no-repeat;
}
/* Sound toggle: ON state (green, not crossed) */
.tmwl-sound-toggle:not(.is-muted){
  border-color: rgba(60,255,170,.55);
  box-shadow: 0 10px 26px rgba(0,0,0,.30), 0 0 18px rgba(60,255,170,.18);
  background: rgba(8,30,22,.55);
}
/* Sound toggle: make muted state visually strong (bright + crossed) */
.tmwl-sound-toggle.is-muted{
  border-color: rgba(255,90,90,.55);
  box-shadow: 0 10px 26px rgba(0,0,0,.30), 0 0 18px rgba(255,90,90,.18);
  background: rgba(20,12,18,.62);
}
.tmwl-sound-toggle.is-muted::after{
  content:"";
  position:absolute;
  left:9px;
  top:17px;
  width:18px;
  height:2px;
  background:rgba(255,90,90,.95);
  transform:rotate(-35deg);
  border-radius:2px;
  box-shadow:0 0 10px rgba(255,90,90,.35);
}
/* ============================================================
   Win overlay (dynamically created by tmwl-sfx.js)
   ============================================================ */
.tmwl-winfx{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:2147483646;
}
.tmwl-winfx .tmwl-winfx-glow{
  position:fixed;
  inset:10px;
  border-radius:22px;
  box-shadow: 0 0 0 rgba(255,215,100,0);
}
.tmwl-winfx.is-on .tmwl-winfx-glow{
  animation: tmwlWinGlow 900ms ease-out 1;
}
@keyframes tmwlWinGlow{
  0%{ box-shadow: 0 0 0 rgba(255,215,100,0); }
  35%{ box-shadow: 0 0 48px rgba(255,215,100,.38), 0 0 14px rgba(0,200,255,.18); }
  100%{ box-shadow: 0 0 0 rgba(255,215,100,0); }
}
.tmwl-winfx .tmwl-winfx-panel{
  z-index:2147483647;
  position:fixed;
  left:50%;
  top:52%;
  transform: translate(-50%,-50%) scale(.96);
  opacity:0;
  min-width:min(360px, 86vw);
  padding:14px 16px;
  border-radius:18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255,255,255,.25), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(10,20,40,.78), rgba(4,10,20,.68));
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-weight:800;
  letter-spacing:.06em;
  text-align:center;
  box-shadow:
    0 22px 70px rgba(0,0,0,.55),
    0 0 0 1px rgba(249,217,118,.08) inset;
}
.tmwl-winfx.is-on .tmwl-winfx-panel{
  animation: tmwlWinPanel 1650ms ease-out 1;
}
@keyframes tmwlWinPanel{
  0%{opacity:0; transform:translate(-50%,-50%) scale(.92);}
  18%{opacity:1; transform:translate(-50%,-50%) scale(1);}
  78%{opacity:1; transform:translate(-50%,-50%) scale(1);}
  100%{opacity:0; transform:translate(-50%,-50%) scale(.98);}
}
.tmwl-winfx .tmwl-winfx-panel:before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:20px;
  background: linear-gradient(90deg, rgba(249,217,118,.7), rgba(0,200,255,.45), rgba(124,77,255,.35), rgba(249,217,118,.7));
  filter: blur(10px);
  opacity:0;
  z-index:-1;
}
.tmwl-winfx.is-on .tmwl-winfx-panel:before{
  animation: tmwlWinBorder 900ms ease-out 1;
}
@keyframes tmwlWinBorder{
  0%{ opacity:0; transform:scale(.98); }
  35%{ opacity:.9; transform:scale(1); }
  100%{ opacity:0; transform:scale(1.02); }
}
.tmwl-winfx .tmwl-winfx-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  background: linear-gradient(180deg, rgba(249,217,118,1), rgba(212,175,55,1));
  color:#1b1b1b;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}
.tmwl-winfx .tmwl-winfx-title{
  margin-top:10px;
  font-size:22px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.tmwl-winfx .tmwl-winfx-prize{
  display:block;
  margin-top:8px;
  font-weight:800;
  font-size:18px;
  letter-spacing:0;
  opacity:.95;
}
.tmwl-winfx .tmwl-winfx-img{
  width: 110px;
  height: 76px;
  border-radius: 14px;
  margin: 10px auto 6px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.25);
}
.tmwl-winfx .tmwl-winfx-confetti{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:7;
}
.tmwl-winfx .tmwl-winfx-panel{ z-index:8; }
/* Keep win card centered even when prize list/showcase grows */
.tmwl-winfx,
.tmwl-winfx .tmwl-winfx-glow,
.tmwl-winfx .tmwl-winfx-panel{
  position:fixed !important;
}
.tmwl-winfx .tmwl-winfx-panel{
  left:50vw !important;
  top:50vh !important;
  transform:translate(-50%,-50%) scale(.96) !important;
}
.tmwl-winfx.is-on .tmwl-winfx-panel{
  animation: tmwlWinPanel 1650ms ease-out 1 !important;
}
@media (max-width: 420px){
  .tmwl-winfx .tmwl-winfx-panel{ min-width:min(320px, 90vw); }
  .tmwl-winfx .tmwl-winfx-title{ font-size:20px; }
  .tmwl-winfx .tmwl-winfx-prize{ font-size:16px; }
}
@media (prefers-reduced-motion: reduce){
  .tmwl-winfx.is-on .tmwl-winfx-glow,
  .tmwl-winfx.is-on .tmwl-winfx-panel,
  .tmwl-winfx.is-on .tmwl-winfx-panel:before{
    animation:none !important;
  }
}
/* ============================================================
   RNG badge moved under wheel (v3.2.4 patch)
   - Keeps original styles for legacy placements
   - Overrides only when RNG is a direct child of .tmwl-right
   ============================================================ */
.tmwl-right > .tmwl-rng-fab{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  z-index: 5 !important;
  display:block !important;
  width: min(260px, 92vw) !important;
  margin: 12px auto 10px auto !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  text-align:center !important;
}
.tmwl-right > .tmwl-rng-fab .tmwl-rng-fab-num{
  font-size: 18px !important;
  letter-spacing: .18em !important;
}
.tmwl-right > .tmwl-rng-fab .tmwl-rng-fab-sub{
  font-size: 11px !important;
  opacity: .75 !important;
}
/* ================================
   RNG OUT: force 6-digit slot look
   (API numbers are padded in JS)
   ================================ */
#tmwl_rng_out.tmwl-rng-fab-num{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
  width: auto !important;
  max-width: 92vw !important;
  min-width: auto !important;
  text-align:center !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  padding:10px 14px !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(0,0,0,.35) 55%, rgba(255,255,255,.06) 100%),
    linear-gradient(180deg, #0a0f1a 0%, #060a14 100%) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  box-shadow:
    inset 0 3px 12px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 8px 18px rgba(0,0,0,.28) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
@media (max-width: 480px){
  #tmwl_rng_out.tmwl-rng-fab-num{
    font-size: 17px !important;
    padding:8px 10px !important;
    gap:3px !important;
  }
  .tmwl-rng-fab-num.tmwl-reels .tmwl-reel{
    width: 28px;
    height: var(--tmwl-reel-cell-h, 28px);
  }
}
/* ===== Manual popup ===== */
.tmwl-manual-popup{
  position:fixed;
  inset:0;
  z-index:var(--z-popup);
  display:none;
}
.tmwl-manual-popup.is-open{ display:block; }
.tmwl-manual-popup__backdrop{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,104,180,.22), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(101,205,255,.18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(255,198,107,.16), transparent 36%),
    rgba(5,8,18,.76);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}
.tmwl-manual-popup__card{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(92vw, 560px);
  border-radius:30px;
  padding:26px 24px 22px;
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 36%, rgba(255,255,255,.08) 100%),
    linear-gradient(180deg, rgba(18,22,42,.96), rgba(8,12,28,.98));
  border:1px solid rgba(255,255,255,.14);
  box-shadow:
    0 32px 120px rgba(0,0,0,.52),
    0 1px 0 rgba(255,255,255,.18) inset,
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 48px rgba(255,110,193,.12),
    0 0 80px rgba(95,194,255,.10);
  color:#fff;
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}
.tmwl-manual-popup__card::before,
.tmwl-manual-popup__card::after{
  content:'';
  position:absolute;
  pointer-events:none;
}
.tmwl-manual-popup__card::before{
  inset:-1px;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.06) 28%, rgba(255,196,128,.5) 56%, rgba(116,227,255,.35) 78%, rgba(255,255,255,.08));
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  opacity:.8;
}
.tmwl-manual-popup__card::after{
  width:180px;
  height:180px;
  right:-52px;
  top:-64px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,219,139,.55) 0%, rgba(255,122,196,.16) 42%, rgba(255,255,255,0) 72%);
  filter:blur(10px);
  opacity:.95;
}
.tmwl-manual-popup__eyebrow{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  margin-bottom:14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset;
  font-size:11px;
  font-weight:900;
  letter-spacing:.24em;
  color:#ffe3a6;
}
.tmwl-manual-popup__eyebrow::before{
  content:'';
  width:8px;
  height:8px;
  border-radius:50%;
  background:radial-gradient(circle, #fff 0%, #ffd26f 45%, #ff8ad2 100%);
  box-shadow:0 0 16px rgba(255,173,93,.9);
}
.tmwl-manual-popup__title{
  position:relative;
  margin:0 0 12px;
  font-size:32px;
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.03em;
  text-wrap:balance;
  text-shadow:0 1px 0 rgba(255,255,255,.10), 0 10px 40px rgba(123,203,255,.14);
}
.tmwl-manual-popup__text{
  position:relative;
  margin:0;
  max-width:48ch;
  color:rgba(244,247,255,.84);
  line-height:1.62;
  font-size:15px;
}
.tmwl-manual-popup__text b{
  color:#fff3c5;
  font-weight:900;
}
.tmwl-manual-popup__actions{
  position:relative;
  display:flex;
  gap:12px;
  justify-content:flex-end;
  margin-top:22px;
}
.tmwl-manual-popup__btn{
  position:relative;
  min-width:154px;
  border:0;
  border-radius:16px;
  padding:14px 20px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.tmwl-manual-popup__btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.04);
}
.tmwl-manual-popup__btn:active{
  transform:translateY(0);
}
.tmwl-manual-popup__btn--confirm{
  color:#1b1020;
  background:linear-gradient(135deg, #fff4c4 0%, #ffd77b 22%, #ff9acf 58%, #9fe7ff 100%);
  box-shadow:
    0 18px 40px rgba(255,130,194,.24),
    0 10px 28px rgba(255,214,109,.18),
    0 0 0 1px rgba(255,255,255,.45) inset;
}
.tmwl-manual-popup__btn--cancel{
  color:#eef3ff;
  background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 10px 24px rgba(0,0,0,.18);
}
@media (max-width: 480px){
  .tmwl-manual-popup__card{ width:min(94vw, 560px); padding:20px 16px 16px; border-radius:24px; }
  .tmwl-manual-popup__title{ font-size:25px; }
  .tmwl-manual-popup__eyebrow{ margin-bottom:12px; }
  .tmwl-manual-popup__actions{ flex-direction:column-reverse; }
  .tmwl-manual-popup__btn{ width:100%; min-width:0; }
}
/* =====================================================
   FINAL AUTH LOADING OVERRIDE — TOO MUCH PRESENTS
   ===================================================== */
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-sheet{
  width:min(720px, calc(100vw - 28px)) !important;
  min-height:240px !important;
  padding:0 !important;
  border-radius:32px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,75,145,.18), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(255,210,92,.24), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255,0,90,.16), transparent 34%),
    linear-gradient(135deg, rgba(8,13,31,.97) 0%, rgba(10,16,38,.98) 56%, rgba(18,11,39,.98) 100%) !important;
  box-shadow:
    0 32px 100px rgba(0,0,0,.6),
    0 0 60px rgba(255,0,92,.14),
    0 0 80px rgba(97,84,255,.14),
    inset 0 0 0 1px rgba(255,255,255,.04) !important;
  overflow:hidden !important;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-handle,
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-head,
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-body{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading{
  position:absolute !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  isolation:isolate !important;
}
#tmwl_auth_modal .tmwl-auth-loading{
  display:none;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading{
  display:flex !important;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__bg{
  position:absolute;
  inset:-10%;
  background:
    radial-gradient(circle at 50% 52%, rgba(255,0,92,.20), transparent 24%),
    radial-gradient(circle at 50% 52%, rgba(255,186,89,.15), transparent 33%),
    conic-gradient(from 0deg, rgba(255,255,255,.02), rgba(255,255,255,0), rgba(255,255,255,.02));
  filter: blur(1px);
  animation: tmwlAuthAurora 4.8s ease-in-out infinite alternate;
  z-index:0;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__inner{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
  padding:34px 22px;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__brand,
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__sub{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  font-weight:1000;
  text-transform:uppercase;
  line-height:1;
  text-align:center;
  white-space:nowrap;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__brand{
  font-size:clamp(32px, 6vw, 64px);
  letter-spacing:.34em;
  padding-left:.34em;
  color:#fff8eb;
  text-shadow:
    0 0 12px rgba(255,255,255,.2),
    0 0 26px rgba(255,182,85,.18),
    0 10px 30px rgba(0,0,0,.28);
  animation: tmwlBrandDrop 1.2s cubic-bezier(.18,.88,.2,1) both, tmwlBrandBreath 2.8s ease-in-out infinite 1.2s;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__sub{
  font-size:clamp(15px, 2.2vw, 24px);
  letter-spacing:.62em;
  padding-left:.62em;
  color:#ffd98d;
  opacity:.92;
  text-shadow:0 0 18px rgba(255,190,90,.16);
  animation: tmwlSubRise 1.15s cubic-bezier(.2,.9,.2,1) both .14s, tmwlSubShimmer 2.8s ease-in-out infinite 1.25s;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__wheel{
  position:relative;
  width:clamp(92px, 13vw, 146px);
  height:clamp(92px, 13vw, 146px);
  border-radius:50%;
  display:block;
  background:
    radial-gradient(circle at 50% 50%, rgba(10,14,30,1) 0 28%, transparent 29%),
    conic-gradient(from 0deg,
      #ffd875 0deg 36deg,
      #ff3d7d 36deg 72deg,
      #7c4dff 72deg 108deg,
      #00d6ff 108deg 144deg,
      #34ffa2 144deg 180deg,
      #ffd875 180deg 216deg,
      #ff3d7d 216deg 252deg,
      #7c4dff 252deg 288deg,
      #00d6ff 288deg 324deg,
      #34ffa2 324deg 360deg);
  box-shadow:
    0 0 0 7px rgba(255,255,255,.06),
    0 0 0 12px rgba(255,214,117,.10),
    0 18px 40px rgba(0,0,0,.34),
    0 0 30px rgba(255,0,92,.25),
    0 0 54px rgba(255,190,90,.16);
  animation: tmwlWheelFly 1.05s cubic-bezier(.16,.94,.22,1) both, tmwlWheelSpin 1.25s linear infinite 1.05s;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__wheel::before,
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__wheel::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:50%;
  pointer-events:none;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__wheel::before{
  inset:6px;
  border:2px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 18px rgba(255,255,255,.12);
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__wheel::after{
  inset:-14px;
  background:radial-gradient(circle, rgba(255,0,92,.16), transparent 62%);
  filter:blur(6px);
  z-index:-1;
  animation: tmwlWheelHalo 1.8s ease-in-out infinite;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__wheel-core{
  position:absolute;
  left:50%;
  top:50%;
  width:28%;
  height:28%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #fff5d8 0%, #ffd875 38%, #c7840b 100%);
  box-shadow:
    0 0 0 7px rgba(11,15,34,.92),
    0 0 18px rgba(255,214,117,.42);
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__spark{
  position:absolute;
  width:180px;
  height:180px;
  border-radius:50%;
  pointer-events:none;
  mix-blend-mode:screen;
  filter:blur(12px);
  opacity:.55;
  z-index:1;
}
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__spark--1{ top:-32px; left:-26px; background:radial-gradient(circle, rgba(255,0,92,.34), transparent 64%); animation: tmwlSparkFloat1 4.2s ease-in-out infinite; }
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__spark--2{ right:-28px; top:8px; background:radial-gradient(circle, rgba(255,214,117,.30), transparent 62%); animation: tmwlSparkFloat2 5.2s ease-in-out infinite; }
#tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__spark--3{ bottom:-34px; left:50%; margin-left:-90px; background:radial-gradient(circle, rgba(124,77,255,.30), transparent 64%); animation: tmwlSparkFloat3 4.8s ease-in-out infinite; }
@keyframes tmwlBrandDrop{
  0%{ opacity:0; transform:translateY(-54px) scale(.84); filter:blur(12px); }
  58%{ opacity:1; transform:translateY(8px) scale(1.04); filter:blur(0); }
  100%{ opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
}
@keyframes tmwlWheelFly{
  0%{ opacity:0; transform:translateY(36px) scale(.55) rotate(-180deg); filter:blur(8px); }
  60%{ opacity:1; transform:translateY(-4px) scale(1.06) rotate(8deg); filter:blur(0); }
  100%{ opacity:1; transform:translateY(0) scale(1) rotate(0deg); filter:blur(0); }
}
@keyframes tmwlSubRise{
  0%{ opacity:0; transform:translateY(38px) scale(.9); filter:blur(10px); }
  100%{ opacity:1; transform:translateY(0) scale(1); filter:blur(0); }
}
@keyframes tmwlWheelSpin{ from{ transform:rotate(0deg); } to{ transform:rotate(360deg); } }
@keyframes tmwlWheelHalo{ 0%,100%{ transform:scale(.96); opacity:.45; } 50%{ transform:scale(1.08); opacity:.88; } }
@keyframes tmwlBrandBreath{ 0%,100%{ transform:translateY(0) scale(1); } 50%{ transform:translateY(-2px) scale(1.015); } }
@keyframes tmwlSubShimmer{ 0%,100%{ opacity:.78; letter-spacing:.62em; } 50%{ opacity:1; letter-spacing:.68em; } }
@keyframes tmwlAuthAurora{ 0%{ transform:translate3d(-14px,-8px,0) scale(1); } 100%{ transform:translate3d(12px,10px,0) scale(1.06); } }
@keyframes tmwlSparkFloat1{ 0%,100%{ transform:translate(0,0); opacity:.42; } 50%{ transform:translate(24px,18px); opacity:.75; } }
@keyframes tmwlSparkFloat2{ 0%,100%{ transform:translate(0,0); opacity:.38; } 50%{ transform:translate(-26px,22px); opacity:.72; } }
@keyframes tmwlSparkFloat3{ 0%,100%{ transform:translate(-8px,0); opacity:.36; } 50%{ transform:translate(8px,-18px); opacity:.64; } }
@media (max-width: 640px){
  #tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-sheet{
    width:calc(100vw - 18px) !important;
    min-height:210px !important;
    border-radius:24px !important;
  }
  #tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__inner{ gap:12px; padding:28px 14px; }
  #tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__brand{ letter-spacing:.22em; padding-left:.22em; font-size:clamp(28px, 9vw, 44px); }
  #tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__sub{ letter-spacing:.34em; padding-left:.34em; font-size:clamp(13px, 3.8vw, 18px); }
  #tmwl_auth_modal.tmwl-auth-modal.is-open .tmwl-auth-loading__wheel{ width:108px; height:108px; }
}
.tmwl-wallet-link{position:absolute;top:16px;left:16px;z-index:12;border:1px solid rgba(255,255,255,.16);background:#09172b;color:#fff;padding:10px 14px;border-radius:14px;font-weight:700;font-size:13px;cursor:pointer;transition:all .2s ease}.tmwl-wallet-link:hover{background:#0d1f38;border-color:rgba(255,255,255,.28);transform:translateY(-1px)}.tmwl-auth-link{position:absolute;top:16px;left:130px;z-index:12;border:1px solid rgba(88,255,216,.24);background:linear-gradient(135deg,rgba(9,23,43,.95),rgba(6,15,35,.98));color:#58ffd8;padding:10px 16px;border-radius:14px;font-weight:700;font-size:13px;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px rgba(88,255,216,.12)}.tmwl-auth-link:hover{background:linear-gradient(135deg,rgba(12,28,52,.98),rgba(8,18,40,.98));border-color:rgba(88,255,216,.42);transform:translateY(-1px);box-shadow:0 4px 12px rgba(88,255,216,.22)}body.tmwl-loaded .tmwl-auth-link{display:none}.tmwl-wallet-page{max-width:1180px;margin:18px auto;padding:20px;border-radius:28px;background:#020f23;color:#fff}.tmwl-wallet-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.tmwl-wallet-eyebrow{color:#58ffd8;letter-spacing:.12em;font-size:12px;font-weight:800}.tmwl-wallet-openwheel{border:1px solid rgba(255,255,255,.12);padding:12px 16px;border-radius:14px;color:#fff;text-decoration:none}.tmwl-wallet-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.tmwl-wallet-kpi{background:#06152b;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px}.tmwl-wallet-kpi span{display:block;color:#9fb4d1;font-size:12px;text-transform:uppercase}.tmwl-wallet-kpi strong{font-size:28px}.tmwl-wallet-table-wrap{background:#06152b;border-radius:18px;padding:16px}.tmwl-wallet-table{width:100%;border-collapse:collapse}.tmwl-wallet-table th,.tmwl-wallet-table td{padding:10px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;color:#fff}@media(max-width:900px){.tmwl-wallet-grid{grid-template-columns:repeat(2,1fr)}.tmwl-wallet-head{flex-direction:column}}@media(max-width:520px){.tmwl-auth-link{left:16px;top:60px;font-size:12px;padding:8px 12px}}
/* --- Winnings Counter & Flying Coin --- */
.tmwl-winnings {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%) scale(0.8) translateY(10px);
  z-index: 20;
  background: linear-gradient(180deg, rgba(12, 28, 56, 0.98), rgba(6, 14, 32, 0.98));
  border: 1px solid rgba(255, 210, 85, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 210, 85, 0.1);
  border-radius: 20px;
  padding: 10px 24px;
  text-align: center;
  min-width: 160px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
}
.tmwl-winnings.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1) translateY(0);
}
.tmwl-winnings.is-flash {
  animation: tmwlWinningsFlash 780ms cubic-bezier(.22, 1, .36, 1) 1;
  border-color: rgba(255, 224, 138, 0.98);
  box-shadow: 0 18px 52px rgba(255, 210, 85, 0.36), inset 0 0 30px rgba(255, 210, 85, 0.18);
}
.tmwl-winnings-val {
  font-family: inherit;
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: #ffe08a;
  text-shadow: 0 2px 10px rgba(255, 210, 85, 0.4);
  letter-spacing: 0.02em;
}
.tmwl-winnings-lbl {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 4px;
}
.tmwl-coin-flight {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 110;
  opacity: 0;
  filter: drop-shadow(0 16px 30px rgba(255, 188, 52, 0.22));
}
.tmwl-coin-flight.is-running {
  animation: tmwlCoinFlight 960ms cubic-bezier(.2, .9, .22, 1) forwards;
}
.tmwl-coin-fly {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 200, 0.92);
  background: linear-gradient(135deg, rgba(255, 235, 165, 0.98), rgba(214, 168, 58, 0.98));
  box-shadow: 0 12px 28px rgba(160, 100, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.68), inset 0 -2px 6px rgba(111, 63, 0, 0.18);
  transform: translate(calc(var(--start-x) - 50%), calc(var(--start-y) - 50%)) scale(0.55);
  transform-origin: center center;
  white-space: nowrap;
}
.tmwl-coin-core {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff4bf 0%, #ffd866 35%, #dfab2e 68%, #b5770f 100%);
  color: #452600;
  font-weight: 900;
  font-size: 16px;
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.65), inset 0 -2px 3px rgba(115,70,0,0.22), 0 4px 10px rgba(125,80,0,0.28);
  animation: tmwlCoinSpin 960ms cubic-bezier(.2, .9, .22, 1) forwards;
}
.tmwl-coin-amount {
  color: #241200;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
@keyframes tmwlCoinFlight {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.tmwl-coin-flight.is-running .tmwl-coin-fly {
  animation: tmwlCoinMove 960ms cubic-bezier(.2, .9, .22, 1) forwards;
}
@keyframes tmwlCoinMove {
  0% {
    transform: translate(calc(var(--start-x) - 50%), calc(var(--start-y) - 50%)) scale(0.55);
  }
  16% {
    transform: translate(calc(var(--start-x) - 50%), calc(var(--start-y) - var(--lift-y))) scale(1.08);
  }
  78% {
    transform: translate(calc(var(--end-x) - 50%), calc(var(--end-y) - 50%)) scale(0.98);
  }
  100% {
    transform: translate(calc(var(--end-x) - 50%), calc(var(--end-y) - 50%)) scale(0.62);
  }
}
@keyframes tmwlCoinSpin {
  0% {
    transform: rotate(-18deg) scale(0.96);
  }
  50% {
    transform: rotate(198deg) scale(1.04);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
@keyframes tmwlWinningsFlash {
  0% {
    transform: translateX(-50%) scale(1);
  }
  28% {
    transform: translateX(-50%) scale(1.11);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* ── GPU saver: pause only non-essential decorative animations when idle ── */
.tmwl-idle .tmwl-live-dot,
.tmwl-idle .tmwl-turbo:not([disabled]),
.tmwl-idle .tmwl-neon-lights,
.tmwl-idle .tmwl-contest-title,
.tmwl-idle .tmwl-marquee,
.tmwl-idle .tmwl-marquee::after,
.tmwl-idle .tmwl-ticket--available,
.tmwl-idle .tmwl-ticketgrid--you .tmwl-ticket--available,
.tmwl-idle .tmwl-showcase-item.is-available .tmwl-showcase-ico::before,
.tmwl-idle .tmwl-showcase-item.is-available .tmwl-showcase-ico::after,
.tmwl-idle [class*="tmwl-brand"],
.tmwl-idle [class*="tmwl-sub-"] {
  animation-play-state: paused !important;
}

.tmwl-idle .tmwl-showcase-item.is-available .tmwl-showcase-ico::before{
  opacity:.28;
  filter: blur(4px);
}

.tmwl-idle .tmwl-showcase-item.is-available .tmwl-showcase-ico::after{
  opacity:.22;
}

.tmwl-idle .tmwl-marquee::after{
  opacity:.12;
}

/* === Mobile wheel visual-only upscale (v5 base safe) === */
@media (max-width: 520px){
  .tmwl-wheel-card{
    padding-left: 10px;
    padding-right: 10px;
    min-height: 560px;
  }

  #tmwl_canvas{
    display:block;
    width: min(calc(100% + 34px), 430px);
    height:auto;
    max-width:none;
    margin-left:auto;
    margin-right:auto;
  }

  .tmwl-spin{
    width: 118px;
    height: 118px;
  }
}

@media (max-width: 420px){
  .tmwl-wheel-card{
    padding-left: 8px;
    padding-right: 8px;
    min-height: 545px;
  }

  #tmwl_canvas{
    width: min(calc(100% + 38px), 418px);
  }
}


/* ==== fix pack: hide tiny motivation text, mobile order, cleaner under-wheel ==== */
.tmwl-wheel-overlay{ display:none !important; }
@media (max-width: 680px){
  #tmwl_note_engine{ display:none !important; }
  #tmwl_state{
    display:flex !important;
    flex-direction:column !important;
    gap:12px;
  }
  #tmwl_state .tmwl-kpis{ display:none !important; }
  #tmwl_state .tmwl-section{ order:1; margin-top:0 !important; }
  #tmwl_state .tmwl-showcase{ order:2; margin-top:0 !important; }
  .tmwl-mobile-underwheel{ margin-top:12px !important; }
  .tmwl-mobile-underwheel .tmwl-mode-buttons{
    width:min(420px, 94%) !important;
    margin:0 auto !important;
  }
}
