*{box-sizing:border-box}
:root{--bg:#08111f;--text:#f7f9ff;--muted:#8f9bb3;--cyan:#6ee7ff;--blue:#5c7cff;--violet:#9b7bff;--line:rgba(255,255,255,.10);--card:rgba(15,27,48,.82)}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#08111f;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--text)}
body{touch-action:manipulation;-webkit-user-select:none;user-select:none}.hidden{display:none!important}.screen{position:fixed;inset:0;overflow:hidden}button,input{font:inherit}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:4px;color:var(--cyan)}h1{font-size:44px;line-height:1;margin:12px 0 7px;letter-spacing:3px}.subtitle{margin:0;color:var(--muted);font-size:14px}
.auth-screen{display:flex;align-items:center;justify-content:center;padding:22px;background:radial-gradient(circle at 50% 25%,rgba(92,124,255,.20),transparent 35%),linear-gradient(180deg,#091321,#08111f)}
.auth-card{width:min(100%,390px);padding:30px 22px;border-radius:28px;background:linear-gradient(180deg,rgba(24,39,67,.95),rgba(11,20,37,.97));border:1px solid rgba(255,255,255,.11);box-shadow:0 30px 80px rgba(0,0,0,.38);text-align:center}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:25px 0 14px;padding:5px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.035)}
.auth-tab{height:42px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-weight:800}.auth-tab.active{background:rgba(110,231,255,.12);color:var(--cyan)}
#authForm{display:flex;flex-direction:column;gap:12px}#authForm input{width:100%;height:52px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.045);color:#fff;padding:0 15px;outline:none}#authForm input:focus{border-color:rgba(110,231,255,.5)}.auth-msg{min-height:20px;margin-top:12px;color:#ff8ba0;font-size:13px}
.icon-btn{width:44px;height:44px;border-radius:14px;border:1px solid var(--line);background:rgba(16,28,50,.66);color:#fff;backdrop-filter:blur(12px);font-size:18px}.top-right{position:absolute;top:18px;right:18px;z-index:5}.logout-btn{position:absolute;top:22px;left:18px;z-index:6;border:0;background:transparent;color:#7f8da7;font-size:13px}
.menu-screen{background:radial-gradient(circle at 50% 28%,rgba(92,124,255,.16),transparent 36%),linear-gradient(180deg,#091321,#08111f)}.hero{height:100%;display:flex;flex-direction:column;align-items:center;padding:54px 20px 20px}
.hero-wheel{position:relative;width:min(38vw,170px);height:min(38vw,170px);margin:4.5vh 0 4vh;border-radius:50%}.hero-ring{position:absolute;border-radius:50%}.ring-1{inset:0;background:linear-gradient(145deg,#253b67,#0d172a);box-shadow:0 24px 50px rgba(0,0,0,.32),0 0 52px rgba(92,124,255,.15)}.ring-2{inset:10px;border:1px solid rgba(255,255,255,.16);background:radial-gradient(circle at 35% 30%,#23395f,#0b1425 72%)}.hero-core{position:absolute;width:22px;height:22px;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(145deg,var(--cyan),var(--blue));box-shadow:0 0 22px rgba(110,231,255,.55)}
.hero-pin{position:absolute;left:50%;top:50%;width:3px;height:74px;background:linear-gradient(to bottom,#fff,#8ba0c5);transform-origin:50% 0;border-radius:4px}.hero-pin:after{content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;left:50%;bottom:-6px;transform:translateX(-50%)}.p1{transform:rotate(18deg)}.p2{transform:rotate(88deg)}.p3{transform:rotate(155deg)}.p4{transform:rotate(232deg)}.p5{transform:rotate(305deg)}
.play-btn{width:min(78vw,320px);height:58px;border:0;border-radius:19px;color:#07111f;font-size:18px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(135deg,var(--cyan),#78b7ff 48%,#9f8bff);box-shadow:0 14px 36px rgba(92,124,255,.28);text-decoration:none}.menu-stats{display:flex;gap:12px;margin-top:16px;width:min(78vw,320px)}.stat-card{flex:1;padding:12px 10px;border:1px solid var(--line);border-radius:18px;background:rgba(18,31,54,.52)}.stat-card span,.claimed-box span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.stat-card strong{font-size:19px}.claimed-box{margin-top:12px;width:min(78vw,320px);padding:11px 14px;border-radius:16px;background:rgba(101,242,179,.08);border:1px solid rgba(101,242,179,.18);text-align:center}.claimed-box strong{font-size:15px;color:#65f2b3}.tip{margin-top:auto;color:#72809b;font-size:12px}
.game-screen{background:#08111f}.hud{position:absolute;z-index:6;top:12px;left:12px;right:12px;height:66px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;border-radius:21px;border:1px solid var(--line);background:rgba(15,27,48,.78);backdrop-filter:blur(14px)}.hud-item{display:flex;flex-direction:column;align-items:center;gap:3px}.hud-item span{font-size:10px;color:#7e8ca7;letter-spacing:1.2px;font-weight:800}.hud-item strong{font-size:20px}.hud-center{position:relative}.hud-center:before,.hud-center:after{content:"";position:absolute;top:7px;bottom:7px;width:1px;background:var(--line)}.hud-center:before{left:0}.hud-center:after{right:0}
#arena{position:absolute;inset:0}#gameCanvas{display:block;width:100%;height:100%}.game-sound{position:absolute;z-index:8;right:16px;bottom:16px}
.modal{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(3,8,18,.72);backdrop-filter:blur(8px)}.result-card{width:min(100%,390px);padding:28px 22px 22px;border-radius:28px;text-align:center;background:linear-gradient(180deg,rgba(24,39,67,.98),rgba(11,20,37,.99));border:1px solid rgba(255,255,255,.12);box-shadow:0 30px 80px rgba(0,0,0,.46)}.result-badge{display:inline-block;padding:6px 11px;border-radius:999px;background:rgba(101,242,179,.10);border:1px solid rgba(101,242,179,.25);color:#65f2b3;font-size:10px;font-weight:900;letter-spacing:2px}.result-icon{font-size:42px;margin:14px 0 4px}.result-card h2{margin:0;font-size:27px}.result-card p{margin:10px 0 18px;color:var(--muted);font-size:14px}.result-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.result-summary>div{padding:12px 10px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid var(--line)}.result-summary span{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.result-summary strong{font-size:19px}.compact{width:100%;height:54px}.prize-name{margin:14px auto 8px;padding:15px;border-radius:18px;background:rgba(110,231,255,.08);border:1px solid rgba(110,231,255,.20);font-size:24px;font-weight:900;color:#8ff2ff}.whatsapp-btn{background:linear-gradient(135deg,#25D366,#61e892);color:#062d15}.ghost-btn{margin-top:10px;width:100%;height:46px;border:1px solid var(--line);border-radius:15px;background:transparent;color:#91a0ba}

.back-game-btn{
  position:absolute;
  z-index:9;
  left:16px;
  bottom:16px;
  height:44px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(16,28,50,.72);
  color:#dce8ff;
  font-size:14px;
  font-weight:700;
  backdrop-filter:blur(12px);
}
.back-game-btn:active{transform:scale(.98)}

.challenge-progress{
  margin-top:12px;
  width:min(78vw,320px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(18,31,54,.52);
}
.challenge-progress span{color:var(--muted);font-size:12px}
.challenge-progress strong{font-size:16px;color:#dff8ff}

.daily-usage{
  margin-top:12px;
  width:min(78vw,320px);
  padding:10px 14px;
  border-radius:14px;
  text-align:center;
  font-size:12px;
  color:#90a0ba;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}
.admin-note{font-size:12px;color:#7c8798}

.mode-grid{
  width:min(88vw,380px);
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:16px;
}
.mode-card{
  padding:16px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(18,31,54,.60);
  text-align:left;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
}
.mode-card h3{margin:6px 0 5px;font-size:21px}
.mode-card p{margin:0 0 12px;color:#8290a8;font-size:12px;line-height:1.6}
.mode-tag{font-size:9px;font-weight:900;letter-spacing:2px;color:#6ee7ff}
.reward-tag{color:#c6a2ff}
.mode-stat{
  display:flex;justify-content:space-between;align-items:center;
  margin:10px 0 12px;padding:9px 11px;border-radius:13px;
  background:rgba(255,255,255,.035);color:#8f9bb3;font-size:12px
}
.mode-stat strong{font-size:18px;color:#eef8ff}
.mode-btn{width:100%;height:50px;border-radius:16px;font-size:16px}
.reward-start{background:linear-gradient(135deg,#a489ff,#7c7cff 48%,#65cfff)}
.entertainment-card{border-color:rgba(110,231,255,.16)}
.reward-card{border-color:rgba(164,137,255,.18)}
@media(min-width:700px){
  .mode-grid{grid-template-columns:1fr 1fr;width:min(86vw,720px)}
  .hero{padding-top:40px}
  .hero-wheel{margin:3vh 0 2.5vh}
}

/* V5.6.1 reward-first homepage */
.reward-hero-card{
  width:min(88vw,390px);
  margin:18px auto 0;
  padding:22px 18px 18px;
  border-radius:26px;
  border:1px solid rgba(137,126,255,.28);
  background:
    radial-gradient(circle at 85% 0%,rgba(119,101,255,.20),transparent 38%),
    linear-gradient(180deg,rgba(20,36,64,.96),rgba(13,25,46,.96));
  box-shadow:0 20px 55px rgba(0,0,0,.20);
}
.reward-kicker{
  color:#c5a6ff;font-size:10px;font-weight:900;letter-spacing:2.4px;
  margin-bottom:7px
}
.reward-hero-card h2{font-size:30px;margin:0 0 5px;letter-spacing:1px}
.reward-lead{margin:0;color:#9aa8c1;font-size:14px;line-height:1.7}
.reward-metrics{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 14px
}
.reward-metrics>div{
  padding:13px 12px;border-radius:16px;background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.055)
}
.reward-metrics span,.reward-metrics small{display:block;color:#8290a8;font-size:11px}
.reward-metrics strong{display:inline-block;margin:3px 5px 0 0;font-size:25px;color:#fff}
.reward-primary{
  width:100%;height:58px;border-radius:18px;font-size:18px;
  background:linear-gradient(110deg,#8d6cff,#6d91ff 50%,#54d4f5);
  box-shadow:0 12px 28px rgba(101,122,255,.20)
}
.prize-preview{
  margin-top:17px;padding-top:14px;border-top:1px solid rgba(255,255,255,.07)
}
.prize-preview-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.prize-preview-head span{font-size:13px;font-weight:800}
.prize-preview-head small{font-size:10px;color:#738199}
.prize-preview-list{display:flex;gap:7px;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}
.prize-preview-list::-webkit-scrollbar{display:none}
.prize-chip{
  flex:0 0 auto;padding:8px 11px;border-radius:999px;font-size:11px;
  color:#d9e4f6;background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.07)
}
.fun-entry{
  width:min(88vw,390px);margin:18px auto 34px;padding:15px 16px;
  border-radius:20px;border:1px solid rgba(110,231,255,.12);
  background:rgba(15,28,49,.58);display:flex;align-items:center;
  justify-content:space-between;gap:12px
}
.fun-entry h3{margin:3px 0;font-size:17px}
.fun-entry p{margin:0;color:#75839a;font-size:10px}
.fun-label{font-size:8px;letter-spacing:1.8px;color:#6ee7ff;font-weight:900}
.fun-right{text-align:right;flex:0 0 auto}
.fun-right>span{display:block;color:#8492a8;font-size:10px;margin-bottom:7px}
.fun-right strong{font-size:16px;color:#fff}
.fun-btn{
  height:36px;border:1px solid rgba(110,231,255,.18);border-radius:12px;
  padding:0 12px;background:rgba(110,231,255,.08);color:#aeefff;
  font-size:12px;font-weight:800
}
@media(max-width:480px){
  .hero-wheel{margin:1.5vh 0 1vh;transform:scale(.88)}
  .reward-hero-card{margin-top:10px}
  .hero-title{margin-bottom:2px}
}

.lang-switch{
  display:flex;gap:6px;justify-content:center;margin-bottom:14px
}
.lang-btn{
  height:32px;padding:0 11px;border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  color:#8290a8;font-size:11px;font-weight:800
}
.lang-btn.active{
  color:#08111f;background:#6ee7ff;border-color:#6ee7ff
}
.menu-lang{
  position:absolute;z-index:8;top:20px;left:50%;transform:translateX(-50%);
  margin:0
}
@media(max-width:480px){
  .menu-lang{top:16px}
  .lang-btn{height:30px;padding:0 9px}
}

/* V5.7.3 remove decorative wheel to avoid overlap */
.hero{
  padding-top:64px;
}
.hero .subtitle{
  margin-bottom:18px;
}
.hero-wheel{
  display:none!important;
}
.reward-hero-card{
  margin-top:8px;
}
@media(max-width:480px){
  .hero{
    padding-top:58px;
  }
  .hero .subtitle{
    margin-bottom:14px;
  }
  .reward-hero-card{
    margin-top:6px;
  }
}


/* =========================================================
   V5.7.4 Mobile homepage scroll fix
   首页可纵向滚动；真正游戏页依然保持全屏
   ========================================================= */

/* 浏览器本身仍然不横向滚动 */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* 首页不再使用固定全屏裁切 */
.menu-screen {
  position: absolute !important;
  inset: 0;
  height: auto !important;
  min-height: 100dvh;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* 首页内容高度由内容本身撑开 */
.menu-screen .hero {
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
  padding-bottom: calc(135px + env(safe-area-inset-bottom)) !important;
}

/* 模式卡片不能被压缩 */
.reward-hero-card,
.fun-entry {
  flex-shrink: 0;
}

/* 娱乐模式完整显示，并在 Safari 工具栏上方留下空间 */
.fun-entry {
  margin-bottom: calc(40px + env(safe-area-inset-bottom)) !important;
}

/* 游戏进行页继续锁定，不允许滚动影响点击 */
.game-screen {
  position: fixed !important;
  inset: 0;
  height: 100dvh !important;
  overflow: hidden !important;
}

/* 登录页保持固定居中 */
.auth-screen {
  position: fixed !important;
  inset: 0;
  overflow-y: auto !important;
}

/* iPhone Safari：动态地址栏变化时增加稳定空间 */
@supports (height: 100dvh) {
  .menu-screen .hero {
    min-height: 100dvh;
  }
}

@media (max-width: 480px) {
  .menu-screen .hero {
    padding-top: 58px !important;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: calc(155px + env(safe-area-inset-bottom)) !important;
  }

  .reward-hero-card,
  .fun-entry {
    width: min(92vw, 410px);
  }

  .fun-entry {
    margin-top: 24px !important;
  }
}


/* =========================================================
   V5.7.5 Stable mobile homepage layout
   修复 V5.7.4 内容被 flex 自动间距推到页面下方
   ========================================================= */

.menu-screen{
  position:fixed !important;
  inset:0 !important;
  height:100dvh !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch;
}

.menu-screen .hero{
  /* 不再依赖 100% flex 撑高，内容自然向下排列 */
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;

  height:auto !important;
  min-height:100dvh !important;

  padding-top:64px !important;
  padding-bottom:calc(150px + env(safe-area-inset-bottom)) !important;
  overflow:visible !important;
}

/* 取消旧版首页里会把元素推到底部的大间距 */
.menu-screen .hero > *{
  flex-shrink:0;
}

.menu-screen .tip{
  margin-top:18px !important;
}

/* 奖励卡紧跟标题区域，不允许被自动撑开 */
.reward-hero-card{
  margin-top:28px !important;
  margin-bottom:0 !important;
}

.fun-entry{
  margin-top:24px !important;
  margin-bottom:calc(35px + env(safe-area-inset-bottom)) !important;
}

/* 游戏页依然全屏固定 */
.game-screen{
  position:fixed !important;
  inset:0 !important;
  height:100dvh !important;
  overflow:hidden !important;
}

@media(max-width:480px){
  .menu-screen .hero{
    padding-top:58px !important;
    padding-left:18px !important;
    padding-right:18px !important;
    padding-bottom:calc(165px + env(safe-area-inset-bottom)) !important;
  }

  .reward-hero-card{
    margin-top:24px !important;
  }
}


/* =========================================================
   V5.7.6 CLEAN HOME
   首页 DOM 已重建，以下规则优先级最高
   ========================================================= */

.menu-screen{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:100dvh !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  -webkit-overflow-scrolling:touch;
  background:
    radial-gradient(circle at 50% 10%,rgba(92,124,255,.13),transparent 28%),
    linear-gradient(180deg,#091321,#08111f) !important;
}

.menu-topbar{
  position:relative;
  z-index:10;
  width:min(100%,520px);
  height:84px;
  margin:0 auto;
}

.menu-topbar .logout-btn{
  position:absolute !important;
  top:28px !important;
  left:24px !important;
}

.menu-topbar .menu-lang{
  position:absolute !important;
  top:20px !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  margin:0 !important;
}

.menu-topbar .menu-sound{
  position:absolute !important;
  top:18px !important;
  right:22px !important;
}

.menu-content{
  width:100%;
  max-width:520px;
  margin:0 auto;
  padding:4px 20px calc(120px + env(safe-area-inset-bottom));
}

.home-heading{
  text-align:center;
  margin:0 0 30px;
}

.home-heading .eyebrow{
  margin-bottom:12px;
}

.home-heading h1{
  margin:0 0 10px !important;
  font-size:46px;
  line-height:1.08;
}

.home-heading .subtitle{
  margin:0 !important;
  color:#8996ad;
}

.reward-hero-card{
  width:100% !important;
  margin:0 !important;
  flex:none !important;
}

.fun-entry{
  width:100% !important;
  margin:28px 0 0 !important;
  flex:none !important;
}

.home-hidden-status{
  display:none !important;
}

/* Legacy hero rules no longer affect this page */
.menu-screen .hero,
.menu-screen .tip,
.menu-screen .challenge-progress,
.menu-screen .daily-usage{
  display:none !important;
}

@media(max-width:480px){
  .menu-topbar{
    height:80px;
  }

  .menu-content{
    padding-left:18px;
    padding-right:18px;
    padding-bottom:calc(150px + env(safe-area-inset-bottom));
  }

  .home-heading{
    margin-bottom:24px;
  }

  .home-heading h1{
    font-size:42px;
  }

  .reward-hero-card{
    padding:20px 18px 18px !important;
  }

  .reward-hero-card h2{
    font-size:27px !important;
    line-height:1.22;
  }

  .fun-entry{
    margin-top:24px !important;
    margin-bottom:30px !important;
  }
}

/* V5.8 guest-first registration funnel */
.guest-register-card{width:min(100%,410px)}
.guest-score-box{display:flex;justify-content:space-between;align-items:center;margin:14px 0 16px;padding:13px 14px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.guest-score-box span{font-size:12px;color:#8f9bb3}.guest-score-box strong{font-size:26px}
#guestRegisterForm{display:flex;flex-direction:column;gap:10px}
#guestRegisterForm input{width:100%;height:50px;border:1px solid rgba(255,255,255,.10);border-radius:15px;background:rgba(255,255,255,.045);color:#fff;padding:0 14px;outline:none}
#guestRegisterForm input:focus{border-color:rgba(110,231,255,.48)}
#guestRegisterModal .ghost-btn + .ghost-btn{margin-top:8px}

.wheel-card{width:min(100%,430px);max-height:92dvh;overflow:auto;padding:24px 18px;border-radius:28px;text-align:center;background:#101d32;border:1px solid rgba(255,255,255,.12)}
.wheel-wrap{position:relative;width:min(78vw,330px);aspect-ratio:1;margin:15px auto 20px}
#prizeWheelCanvas{display:block;width:100%;height:100%;border-radius:50%;transition:transform 5.2s cubic-bezier(.12,.68,.12,1)}
.wheel-pointer{position:absolute;z-index:6;left:50%;top:-7px;transform:translateX(-50%);width:0;height:0;border-left:16px solid transparent;border-right:16px solid transparent;border-bottom:34px solid #fff}
.wheel-center{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:62px;height:62px;display:grid;place-items:center;border-radius:50%;background:#fff;border:7px solid #0a1629;font-size:27px}
.wheel-result{margin-top:15px;padding:14px;border-radius:17px;background:rgba(101,242,179,.075)} .wheel-result strong{display:block;font-size:23px;margin:6px 0 12px}

/* V5.9.3 DOM wheel - replaces unreliable canvas rendering */
#prizeWheelCanvas.wheel-disc{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  border-radius:50%;
  overflow:hidden;
  border:8px solid rgba(255,255,255,.18);
  box-shadow:
    0 18px 45px rgba(0,0,0,.38),
    inset 0 0 0 2px rgba(255,255,255,.08);
  transition:transform 5.2s cubic-bezier(.12,.68,.12,1);
  transform:rotate(0rad);
}
.wheel-label{
  position:absolute;
  left:50%;
  top:50%;
  width:43%;
  transform-origin:0 50%;
  pointer-events:none;
  z-index:3;
}
.wheel-label span{
  display:block;
  max-width:100%;
  padding-right:10px;
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:1.15;
  text-align:right;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-shadow:0 2px 6px rgba(0,0,0,.35);
}
.wheel-divider{
  position:absolute;
  left:50%;
  top:50%;
  width:50%;
  height:1px;
  transform-origin:0 50%;
  background:rgba(255,255,255,.28);
  z-index:2;
}

.wheel-empty{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:70px;
  color:#8f9bb3;
  font-size:14px;
  font-weight:700;
  text-align:center;
}

/* V5.9.5 SVG Lucky Wheel */
#prizeWheelCanvas.wheel-svg{
  display:block;
  width:100%;
  height:100%;
  border-radius:50%;
  overflow:visible;
  background:#172742;
  border:8px solid rgba(255,255,255,.18);
  box-shadow:
    0 18px 45px rgba(0,0,0,.38),
    inset 0 0 0 2px rgba(255,255,255,.08);
  transition:transform 5.2s cubic-bezier(.12,.68,.12,1);
  transform:rotate(0rad);
}
.wheel-svg .wheel-sector{
  stroke:rgba(255,255,255,.28);
  stroke-width:2;
}
.wheel-svg .wheel-text{
  fill:#fff;
  font-size:22px;
  font-weight:800;
  text-anchor:middle;
  dominant-baseline:middle;
  paint-order:stroke;
  stroke:rgba(0,0,0,.28);
  stroke-width:3px;
  stroke-linejoin:round;
}
.wheel-svg .wheel-empty-text{
  fill:#91a0b8;
  font-size:24px;
  font-weight:700;
  text-anchor:middle;
  dominant-baseline:middle;
}

.my-rewards-card{margin:10px 0 14px;padding:14px;border:1px solid rgba(255,255,255,.09);border-radius:18px;background:rgba(255,255,255,.025)}.section-title{font-size:12px;font-weight:900;margin-bottom:8px}.reward-row{padding:9px 0;border-top:1px solid rgba(255,255,255,.07)}.reward-code{font-family:monospace;color:#83f3c2}.reward-meta{font-size:11px;color:#8f9bb3}

.my-rewards-link{display:flex!important;align-items:center;justify-content:space-between;gap:15px;text-decoration:none;color:#fff;cursor:pointer;transition:transform .15s ease,border-color .15s ease}
.my-rewards-link:active{transform:scale(.985)}
.my-rewards-sub{color:#8391a8;font-size:11px;line-height:1.55}
.my-rewards-arrow{font-size:34px;color:#6ee7ff;line-height:1}

.reward-code{user-select:text!important;-webkit-user-select:text!important;}

/* V6.0.4 redemption page scroll safety */
body:has(.redeem-page),
body:has(.rp){
  height:auto!important;
  min-height:100dvh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  position:static!important;
  touch-action:pan-y!important;
  -webkit-overflow-scrolling:touch;
}

/* V6.0.8 first-visit guest introduction */
.guest-intro-card{
  width:min(100%,430px);
  padding:26px 20px 22px;
}
.guest-intro-text{
  white-space:pre-line;
  line-height:1.65;
  color:#a7b3c7;
  text-align:left;
  margin:12px 0 18px;
}
.guest-intro-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:4px 0 18px;
}
.guest-intro-steps>div{
  padding:11px 7px;
  border-radius:14px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.075);
}
.guest-intro-steps span{
  width:24px;height:24px;
  display:grid;place-items:center;
  margin:0 auto 7px;
  border-radius:50%;
  background:linear-gradient(135deg,#68dcff,#927cff);
  color:#081323;
  font-weight:900;
  font-size:12px;
}
.guest-intro-steps strong{
  display:block;
  font-size:10px;
  line-height:1.35;
  color:#dce6f5;
}
@media(max-width:420px){
  .guest-intro-card{padding:22px 16px 18px}
  .guest-intro-steps{gap:6px}
  .guest-intro-steps>div{padding:9px 5px}
}

/* V6.0.9 global customer support */
.support-float{
  position:fixed;
  right:max(16px,env(safe-area-inset-right));
  bottom:calc(22px + env(safe-area-inset-bottom));
  z-index:1500;
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.13);
  background:linear-gradient(145deg,#13243b,#0b1728);
  box-shadow:0 12px 30px rgba(0,0,0,.34);
  font-size:23px;
  cursor:pointer;
}
.support-float:active{transform:scale(.95)}
.support-card{
  position:relative;
  width:min(100%,390px);
  padding:27px 20px 22px;
  text-align:center;
}
.support-close{
  position:absolute;
  right:13px;
  top:11px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.06);
  color:#aeb9ca;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.support-icon{
  font-size:38px;
  margin:9px 0 7px;
}
.support-card p{
  color:#98a7bb;
  line-height:1.6;
  margin:8px 0 18px;
}
@media(max-width:480px){
  .support-float{
    width:50px;height:50px;
    right:14px;
    bottom:calc(18px + env(safe-area-inset-bottom));
  }
}

/* V6.1.0 folded multi-language selector */
.lang-dropdown{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 7px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:13px;
  background:rgba(17,31,52,.92);
  max-width:185px;
}
.lang-globe{font-size:14px;opacity:.82}
.lang-select{
  appearance:auto;
  -webkit-appearance:menulist;
  width:135px;
  max-width:135px;
  padding:6px 4px;
  border:0;
  outline:0;
  background:transparent;
  color:#dfe8f5;
  font-size:12px;
  font-weight:800;
}
.lang-select option{color:#111;background:#fff}
.rtl-ui .lang-dropdown{direction:rtl}
.rtl-ui .auth-card,.rtl-ui .menu-content,.rtl-ui .result-card{direction:rtl}
@media(max-width:420px){
  .lang-dropdown{max-width:165px}
  .lang-select{width:118px;max-width:118px}
}

/* V6.1.5 TikTok brand restore */
.tiktok-brand{
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  margin:4px 0 14px;
  padding:12px 15px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(135deg,rgba(37,244,238,.06),rgba(254,44,85,.06));
  box-sizing:border-box;
}
.tiktok-mark{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#050b14;
  color:#fff;
  font-size:25px;
  font-weight:900;
  text-shadow:-2px 0 #25f4ee,2px 0 #fe2c55;
}
.tiktok-brand-text{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.15;
}
.tiktok-brand-text strong{
  color:#fff;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.2px;
}
.tiktok-brand-text span{
  margin-top:4px;
  color:#8fa0b9;
  font-size:9px;
  font-weight:800;
  letter-spacing:1.8px;
}
.rtl-ui .tiktok-brand{direction:rtl}

/* V6.1.6 TikTok Shop compact pill badge */
.tiktok-brand.tiktok-pill{
  width:max-content;
  max-width:92%;
  margin:8px auto 14px;
  padding:6px 13px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(#0b1728,#0b1728) padding-box,
    linear-gradient(90deg,#25f4ee 0%,rgba(255,255,255,.35) 50%,#fe2c55 100%) border-box;
  box-shadow:0 8px 22px rgba(0,0,0,.20);
}

.tiktok-pill-mark{
  width:auto;
  height:auto;
  display:inline;
  background:none;
  border-radius:0;
  color:#fff;
  font-size:16px;
  font-weight:900;
  line-height:1;
  text-shadow:-1.4px 0 #25f4ee,1.4px 0 #fe2c55;
  flex:0 0 auto;
}

.tiktok-pill-text{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:7px;
  min-width:0;
  line-height:1;
  white-space:nowrap;
}

.tiktok-pill-text strong{
  color:#f7f9fc;
  font-size:12px;
  font-weight:900;
  letter-spacing:-.1px;
}

.tiktok-pill-text span{
  color:#74849b;
  font-size:10px;
  font-weight:700;
}

.tiktok-pill-text em{
  color:#9dacbf;
  font-size:9px;
  font-style:normal;
  font-weight:800;
  letter-spacing:.1px;
}

.rtl-ui .tiktok-brand.tiktok-pill{
  direction:ltr;
}

@media(max-width:390px){
  .tiktok-brand.tiktok-pill{padding:6px 11px}
  .tiktok-pill-text{gap:5px}
  .tiktok-pill-text strong{font-size:11px}
  .tiktok-pill-text em{font-size:8px}
}

/* V6.2.0 TikTok branded main title */
[data-i18n="title"]{letter-spacing:-1px;line-height:1.02;}
@media(max-width:480px){[data-i18n="title"]{font-size:clamp(38px,10vw,54px)!important;}}

/* V6.2.8 TikTok-style icon in guest registration popup */
.tiktok-register-icon{
  display:inline-grid;
  place-items:center;
  width:62px;
  height:62px;
  margin:8px auto 12px;
  border-radius:20px;
  background:#050b14;
  color:#fff;
  font-size:38px;
  font-weight:900;
  line-height:1;
  text-shadow:
    -2px 0 #25f4ee,
     2px 0 #fe2c55;
  box-shadow:
    0 10px 24px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.08);
}


/* V6.2.9 refined guest registration brand header */
.guest-register-card .guest-brand-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  margin:0 auto 16px;
}
.guest-register-card .tiktok-register-icon{
  position:relative;
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  margin:0;
  border-radius:50%;
  background:linear-gradient(145deg,#101d31,#08111f);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    0 10px 24px rgba(0,0,0,.24),
    0 0 0 4px rgba(37,244,238,.025);
  overflow:hidden;
}
.guest-register-card .tiktok-register-icon::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:50%;
  padding:1px;
  background:linear-gradient(135deg,#25f4ee 10%,rgba(255,255,255,.15) 50%,#fe2c55 90%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}
.guest-register-card .tiktok-register-icon span{
  position:relative;
  z-index:1;
  display:block;
  color:#fff;
  font-size:32px;
  font-weight:900;
  line-height:1;
  transform:translateY(-1px);
  text-shadow:-1.6px 0 #25f4ee,1.6px 0 #fe2c55;
}
.guest-register-card .guest-member-badge{
  margin:0;
  min-width:auto;
  padding:6px 14px;
  font-size:10px;
  letter-spacing:1.5px;
}
.guest-register-card > h2{
  margin-top:0;
}
@media(max-width:420px){
  .guest-register-card .guest-brand-stack{gap:8px;margin-bottom:14px}
  .guest-register-card .tiktok-register-icon{width:50px;height:50px}
  .guest-register-card .tiktok-register-icon span{font-size:29px}
}

/* V6.3.0 - dimensional TikTok emblem */
#guestRegisterModal .guest-brand-stack-3d{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  margin:0 auto 10px;
}

.tiktok-emblem-wrap{
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  position:relative;
  filter:drop-shadow(0 14px 20px rgba(0,0,0,.38));
}

.tiktok-emblem-wrap::after{
  content:"";
  position:absolute;
  width:54px;
  height:12px;
  bottom:2px;
  border-radius:50%;
  background:rgba(0,0,0,.30);
  filter:blur(8px);
  z-index:0;
}

.tiktok-emblem-ring{
  width:74px;
  height:74px;
  padding:2px;
  border-radius:50%;
  position:relative;
  z-index:1;
  background:
    conic-gradient(from 215deg,
      #25f4ee 0deg 105deg,
      rgba(255,255,255,.92) 148deg,
      #fe2c55 228deg 315deg,
      #25f4ee 360deg);
  box-shadow:
    0 9px 22px rgba(0,0,0,.38),
    0 0 16px rgba(37,244,238,.12),
    0 0 16px rgba(254,44,85,.10);
}

.tiktok-emblem-core{
  width:100%;
  height:100%;
  border-radius:50%;
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 34% 27%, #2c3b56 0%, #18243a 31%, #0c1628 64%, #050a12 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.20),
    inset 0 -13px 18px rgba(0,0,0,.48),
    inset 7px 0 14px rgba(37,244,238,.045),
    inset -7px 0 14px rgba(254,44,85,.045);
}

.tiktok-emblem-core::before{
  content:"";
  position:absolute;
  top:8px;
  left:13px;
  width:36px;
  height:17px;
  border-radius:50%;
  background:linear-gradient(180deg,rgba(255,255,255,.30),rgba(255,255,255,0));
  transform:rotate(-17deg);
}

.tiktok-emblem-core::after{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.07);
}

.tiktok-emblem-note{
  position:relative;
  z-index:2;
  color:#fff;
  font-size:43px;
  line-height:1;
  font-weight:900;
  transform:translateY(-1px);
  text-shadow:
    -2.6px 1.2px 0 #25f4ee,
     2.6px -1.2px 0 #fe2c55,
     0 4px 8px rgba(0,0,0,.55);
}

#guestRegisterModal .guest-member-badge{
  margin:0!important;
  padding:6px 15px;
  border:1px solid rgba(79,244,200,.35);
  background:linear-gradient(180deg,rgba(31,91,83,.72),rgba(15,54,50,.74));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 6px 13px rgba(0,0,0,.20);
  color:#76ffd2;
}

#guestRegisterModal .guest-register-card{
  background:
    radial-gradient(circle at 50% -8%,rgba(63,90,142,.26),transparent 38%),
    linear-gradient(180deg,#192945 0%,#111f36 58%,#0b172a 100%);
  box-shadow:
    0 30px 72px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.05);
}

@media(max-width:420px){
  .tiktok-emblem-wrap{width:80px;height:80px}
  .tiktok-emblem-ring{width:68px;height:68px}
  .tiktok-emblem-note{font-size:39px}
}

/* V6.3.2 prize image showcase */
.prize-preview-list{
  display:flex!important;gap:10px;overflow-x:auto;overflow-y:hidden;
  padding:5px 2px 10px;scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.prize-preview-list::-webkit-scrollbar,.guest-prize-showcase::-webkit-scrollbar{display:none}
.prize-showcase-card{
  flex:0 0 126px;scroll-snap-align:start;border-radius:17px;padding:9px;
  background:linear-gradient(180deg,rgba(25,40,67,.94),rgba(10,21,38,.96));
  border:1px solid rgba(255,255,255,.08);box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.prize-showcase-image{
  width:100%;aspect-ratio:1/1;border-radius:13px;display:grid;place-items:center;overflow:hidden;
  background:radial-gradient(circle at 50% 25%,rgba(37,244,238,.12),transparent 40%),#091425;
}
.prize-showcase-image img{width:100%;height:100%;object-fit:contain;display:block}
.prize-image-placeholder{font-size:34px;opacity:.9}
.prize-showcase-name{
  min-height:31px;margin-top:8px;display:flex;align-items:center;justify-content:center;
  text-align:center;color:#e9f2ff;font-size:10px;line-height:1.35;font-weight:800;
}
.guest-showcase-wrap{position:relative;margin:5px -4px 17px}
.guest-prize-showcase{
  display:flex;gap:10px;overflow-x:auto;padding:4px 4px 10px;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.guest-prize-showcase .prize-showcase-card{flex-basis:128px}
.guest-prize-showcase .featured-prize{
  flex-basis:162px;border-color:rgba(37,244,238,.28);
  background:radial-gradient(circle at 50% 0,rgba(37,244,238,.12),transparent 45%),
             linear-gradient(180deg,rgba(28,45,74,.98),rgba(10,21,38,.98));
  box-shadow:0 14px 30px rgba(0,0,0,.25),0 0 22px rgba(37,244,238,.06);
}
.guest-prize-loading{width:100%;min-height:100px;display:grid;place-items:center;font-size:30px}
@media(max-width:420px){
  .prize-showcase-card{flex-basis:116px}
  .guest-prize-showcase .prize-showcase-card{flex-basis:120px}
  .guest-prize-showcase .featured-prize{flex-basis:150px}
}

/* V6.3.3 prize showcase rendering fix */
.prize-image-fallback{
  width:100%;
  height:100%;
  place-items:center;
}

/* V6.3.5 independent first-visit poster */
#guestIntroModal .guest-showcase-wrap{display:none!important}

.poster-modal{
  z-index:1200;
  padding:14px;
  align-items:center;
  justify-content:center;
  background:rgba(2,8,18,.90);
  backdrop-filter:blur(7px);
}
.poster-shell{
  width:min(94vw,460px);
  max-height:94vh;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.poster-image-frame{
  width:100%;
  max-height:calc(94vh - 76px);
  border-radius:22px;
  overflow:hidden;
  background:#0b1424;
  box-shadow:0 28px 74px rgba(0,0,0,.52),0 0 0 1px rgba(255,255,255,.08);
}
.poster-image-frame img{
  width:100%;
  max-height:calc(94vh - 76px);
  display:block;
  object-fit:contain;
  background:#fff;
}
.poster-close{
  position:absolute;
  z-index:5;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(3,10,20,.80);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.30);
}
.poster-cta{
  width:100%;
  min-height:56px;
  border:0;
  border-radius:18px;
  background:linear-gradient(90deg,#67dcff 0%,#8a7cff 100%);
  color:#06152c;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(89,163,255,.22);
}
@media(max-width:420px){
  .poster-modal{padding:8px}
  .poster-shell{width:96vw;gap:8px}
  .poster-image-frame{border-radius:18px}
  .poster-cta{min-height:52px;border-radius:16px;font-size:17px}
  .poster-close{width:36px;height:36px;font-size:24px}
}

/* V6.3.6 prize image edge-to-edge fill */
.prize-showcase-image{
  position:relative;
  overflow:hidden;
  padding:0!important;
  background:#081426!important;
}

.prize-showcase-image img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
  border:0!important;
  margin:0!important;
  padding:0!important;
  transform:scale(1.015);
}

/* Home prize pool cards: remove any inner image gap */
.prize-showcase-card{
  overflow:hidden;
}

.home-prize-card .prize-showcase-image,
.guest-prize-showcase .prize-showcase-image{
  border-radius:13px;
  isolation:isolate;
}

/* Keep fallback centered if an image is genuinely missing/broken */
.prize-image-placeholder,
.prize-image-fallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
}

/* V6.3.7 wheel redemption code copy */
.wheel-code-row{
  width:100%;
  margin:10px 0 4px;
  display:flex;
  align-items:center;
  gap:8px;
}
.wheel-redeem-code{
  flex:1;
  min-width:0;
  padding:12px 10px;
  border-radius:13px;
  border:1px solid rgba(131,243,194,.20);
  background:rgba(131,243,194,.06);
  color:#83f3c2;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:14px;
  font-weight:900;
  text-align:center;
  word-break:break-all;
  user-select:text!important;
  -webkit-user-select:text!important;
  -webkit-touch-callout:default;
}
.wheel-copy-code{
  flex:0 0 auto;
  min-height:43px;
  padding:0 13px;
  border-radius:12px;
  border:1px solid rgba(110,231,255,.28);
  background:rgba(110,231,255,.10);
  color:#8de8ff;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.wheel-copy-code:active{transform:scale(.97)}
.wheel-copy-hint{
  min-height:18px;
  margin-bottom:5px;
  color:#f5bf73;
  font-size:10px;
  line-height:1.4;
  text-align:center;
}
@media(max-width:380px){
  .wheel-code-row{flex-direction:column}
  .wheel-copy-code{width:100%;min-height:42px}
}

/* V6.3.9 WhatsApp + Telegram support */
.support-channel-list{
  width:100%;
  display:grid;
  gap:10px;
  margin-top:12px;
}
.support-channel-btn{
  width:100%;
  text-decoration:none;
}
.support-telegram{
  background:linear-gradient(90deg,#64d8ff 0%,#79a8ff 100%)!important;
  color:#07172d!important;
}
.support-whatsapp{
  margin-top:0!important;
}

/* V6.4.8 prize-image wheel */
.wheel-prize-image-bg{
  fill:rgba(255,255,255,.93);
  stroke:rgba(255,255,255,.65);
  stroke-width:3;
  filter:drop-shadow(0 5px 7px rgba(2,10,24,.24));
}
.wheel-prize-image{
  pointer-events:none;
}
.wheel-prize-fallback{
  fill:#172033;
  font-size:32px;
  text-anchor:middle;
  dominant-baseline:middle;
  pointer-events:none;
}
.wheel-text-with-image{
  font-size:18px!important;
  font-weight:900!important;
  paint-order:stroke!important;
  stroke:rgba(8,16,31,.48)!important;
  stroke-width:3px!important;
  stroke-linejoin:round!important;
}
.wheel-center-glow{
  fill:rgba(103,224,255,.10);
  stroke:rgba(122,157,255,.22);
  stroke-width:8;
}
.wheel-winner-image-wrap{
  width:132px;
  height:132px;
  margin:12px auto 12px;
  padding:9px;
  border-radius:24px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(231,241,255,.94));
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 14px 34px rgba(0,0,0,.22),0 0 0 5px rgba(107,225,255,.06);
}
.wheel-winner-image{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  border-radius:17px;
}
@media(max-width:420px){
  .wheel-winner-image-wrap{
    width:112px;
    height:112px;
    border-radius:20px;
  }
}

/* V6.4.9 bigger wheel prize images + independent winner modal */
.wheel-prize-image-bg{
  fill:rgba(255,255,255,.97)!important;
  stroke:rgba(255,255,255,.88)!important;
  stroke-width:4!important;
}
.wheel-prize-image{
  pointer-events:none;
  filter:drop-shadow(0 7px 10px rgba(2,10,24,.20));
}
.wheel-prize-fallback{
  font-size:38px!important;
}
.wheel-text-with-image{
  font-size:17px!important;
}
.wheel-winner-modal-card{
  width:min(440px,calc(100% - 28px));
  max-height:calc(100vh - 36px);
  overflow:auto;
  text-align:center;
}
.wheel-winner-celebrate{
  font-size:42px;
  line-height:1;
  margin:8px 0 4px;
}
.wheel-winner-label{
  display:block;
  margin-bottom:6px;
  color:#dfe9f7;
  font-size:18px;
}
.wheel-winner-modal-card .wheel-result{
  display:block!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}
.wheel-winner-modal-card .wheel-result>strong{
  display:block;
  margin:9px 0 14px;
  font-size:clamp(26px,7vw,34px);
  line-height:1.15;
}
.wheel-winner-modal-card .wheel-winner-image-wrap{
  width:178px!important;
  height:178px!important;
  margin:12px auto!important;
  padding:8px!important;
  border-radius:28px!important;
}
.wheel-support-actions{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.wheel-support-btn{
  width:100%;
  text-decoration:none;
}
.wheel-telegram-btn{
  background:linear-gradient(90deg,#64d8ff 0%,#79a8ff 100%)!important;
  color:#07172d!important;
}
.wheel-winner-close-btn{
  width:100%;
  margin-top:10px;
}
@media(max-width:420px){
  .wheel-winner-modal-card .wheel-winner-image-wrap{
    width:150px!important;
    height:150px!important;
  }
  .wheel-text-with-image{
    font-size:15px!important;
  }
}

/* V6.5.0 Mystery Box draw */
.blind-box-card{
  width:min(94vw,470px);
  max-height:92dvh;
  overflow:auto;
  padding:24px 18px 22px;
  border-radius:28px;
  text-align:center;
  background:
    radial-gradient(circle at 50% 0%,rgba(116,102,255,.18),transparent 34%),
    linear-gradient(180deg,#101d32 0%,#0b1729 100%);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 28px 70px rgba(0,0,0,.42);
}
.blind-box-hero-icon{
  font-size:44px;
  margin:8px 0 2px;
  filter:drop-shadow(0 8px 18px rgba(119,102,255,.25));
}
.blind-box-card h2{
  margin:8px 0 6px;
  font-size:clamp(24px,6vw,31px);
}
.blind-box-card>p{
  margin:0 0 18px;
  color:#9dacbf;
  line-height:1.55;
}
.blind-box-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:14px 0 12px;
}
.blind-box-item{
  position:relative;
  min-width:0;
  height:154px;
  padding:12px 6px 8px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  color:#fff;
  cursor:pointer;
  overflow:hidden;
  transition:transform .18s ease,opacity .18s ease,border-color .18s ease,background .18s ease;
}
.blind-box-item:not(:disabled):active{
  transform:scale(.96);
}
.blind-box-body{
  position:absolute;
  left:50%;
  top:43px;
  transform:translateX(-50%);
  width:72px;
  height:67px;
  border-radius:10px 10px 14px 14px;
  background:linear-gradient(145deg,#785cff,#4f78ff);
  box-shadow:0 12px 24px rgba(49,67,185,.32),inset 0 0 0 2px rgba(255,255,255,.14);
}
.blind-box-lid{
  position:absolute;
  left:50%;
  top:31px;
  transform:translateX(-50%);
  z-index:3;
  width:82px;
  height:23px;
  border-radius:9px;
  background:linear-gradient(145deg,#9a83ff,#5b7fff);
  box-shadow:0 6px 13px rgba(34,44,115,.3),inset 0 0 0 2px rgba(255,255,255,.16);
  transform-origin:12px 20px;
}
.blind-box-ribbon-v{
  position:absolute;
  left:50%;
  top:0;
  width:15px;
  height:100%;
  transform:translateX(-50%);
  background:linear-gradient(180deg,#69efff,#76c6ff);
}
.blind-box-ribbon-h{
  position:absolute;
  left:0;
  top:24px;
  width:100%;
  height:13px;
  background:linear-gradient(90deg,#69efff,#76c6ff);
}
.blind-box-question{
  position:absolute;
  z-index:2;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#172033;
  font-size:20px;
  font-weight:1000;
  box-shadow:0 3px 9px rgba(0,0,0,.2);
}
.blind-box-number{
  position:absolute;
  left:0;
  right:0;
  bottom:21px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.7px;
  color:#d5def0;
}
.blind-box-choose{
  position:absolute;
  left:0;
  right:0;
  bottom:6px;
  font-size:9px;
  color:#73849e;
}
.blind-box-item.selected{
  border-color:rgba(110,231,255,.65);
  background:linear-gradient(180deg,rgba(110,231,255,.12),rgba(119,102,255,.08));
  box-shadow:0 0 0 3px rgba(110,231,255,.06);
}
.blind-box-item.dimmed{
  opacity:.28;
  transform:scale(.94);
}
.blind-box-item.opening{
  opacity:1!important;
  animation:blindBoxShake .16s linear infinite alternate;
}
.blind-box-item.opening .blind-box-body{
  box-shadow:0 15px 40px rgba(113,229,255,.42),inset 0 0 0 2px rgba(255,255,255,.2);
}
.blind-box-item.opened .blind-box-lid{
  animation:blindBoxLidOpen .45s cubic-bezier(.2,.8,.2,1) forwards;
}
.blind-box-item.opened .blind-box-question{
  background:#8df7d0;
  color:#0b3326;
}
.blind-box-item.opened .blind-box-question::after{
  content:"✓";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:#8df7d0;
  border-radius:50%;
}
.blind-box-status{
  min-height:24px;
  margin-top:5px;
  color:#77e8ff;
  font-size:13px;
  font-weight:800;
}
@keyframes blindBoxShake{
  from{transform:translateX(-3px) rotate(-1.5deg)}
  to{transform:translateX(3px) rotate(1.5deg)}
}
@keyframes blindBoxLidOpen{
  0%{transform:translateX(-50%) rotate(0deg)}
  100%{transform:translateX(-58%) translateY(-22px) rotate(-18deg)}
}
@media(max-width:390px){
  .blind-box-grid{gap:8px}
  .blind-box-item{height:142px}
  .blind-box-body{width:65px;height:61px}
  .blind-box-lid{width:74px}
}
