:root{
  --bg:#060606;
  --panel:#0c0c0c;
  --panel-2:#101010;
  --line:rgba(212,175,55,.18);
  --line-2:rgba(212,175,55,.28);
  --gold:#d4af37;
  --gold-2:#f1d25b;
  --text:#f4f0e6;
  --muted:#b7b0a0;
  --shadow:0 18px 40px rgba(0,0,0,.34);
  --radius:24px;
  --nav-h:94px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  background:
    radial-gradient(circle at top, rgba(212,175,55,.08), transparent 30%),
    linear-gradient(180deg, #050505 0%, #080808 100%);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
}

a{text-decoration:none;color:inherit}
button{font:inherit;border:none}
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(5,5,5,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(212,175,55,.10);
}
.topbar-inner{
  width:min(1180px,calc(100% - 24px));
  margin:0 auto;
  min-height:78px;
  display:flex;
  align-items:center;
  gap:14px;
}
.menu-btn{
  width:56px;
  height:56px;
  border-radius:18px;
  border:1px solid var(--line-2);
  background:#0c0c0c;
  color:var(--gold);
  display:grid;
  place-items:center;
  font-size:20px;
  box-shadow:var(--shadow);
}
.brand{
  display:flex;
  align-items:center;
  font-size:34px;
  font-weight:800;
  letter-spacing:.6px;
}
.brand-bonus{color:var(--gold)}
.brand-sa{color:#f2f2f2}

.page-shell{
  width:min(1180px,calc(100% - 24px));
  margin:18px auto 0;
  padding:0 0 calc(var(--nav-h) + 28px);
}

.hero-card,
.quick-card,
.footer-card,
.stat-card,
.game-card,
.games-section{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(16,16,16,.98), rgba(9,9,9,.98));
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.hero-card::before,
.quick-card::before,
.footer-card::before,
.stat-card::before,
.game-card::before,
.games-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, transparent, rgba(212,175,55,.05), transparent);
  pointer-events:none;
}

.hero-card{
  padding:28px 22px;
  margin-bottom:18px;
}
.eyebrow{
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:4px;
  font-size:14px;
  font-weight:700;
  margin-bottom:14px;
}
.eyebrow.small{margin-bottom:10px}
.hero-card h1{
  margin:0 0 14px;
  font-size:clamp(40px,8vw,72px);
  line-height:.95;
  max-width:760px;
}
.hero-card p{
  margin:0;
  color:var(--muted);
  font-size:clamp(18px,3.6vw,26px);
  line-height:1.45;
  max-width:760px;
}

.stats-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-bottom:18px;
}
.stat-card{
  padding:20px 18px;
  min-height:124px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.stat-card strong{
  font-size:clamp(32px,7vw,54px);
  line-height:1;
  color:var(--gold-2);
  margin-bottom:10px;
  word-break:break-word;
}
.stat-card span{
  color:var(--muted);
  font-size:24px;
  line-height:1.2;
}

.quick-card,
.footer-card,
.games-section{
  padding:22px 18px;
  margin-bottom:18px;
}
.quick-badge,
.footer-title{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--gold);
  font-size:15px;
  font-weight:700;
  margin-bottom:16px;
}
.quick-card h2{
  margin:0 0 12px;
  font-size:clamp(34px,7vw,58px);
  line-height:1;
}
.quick-card p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:clamp(18px,3.8vw,25px);
  line-height:1.45;
}
.quick-actions{
  display:grid;
  gap:12px;
}

.btn{
  min-height:64px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:14px 18px;
  font-size:clamp(21px,4.2vw,26px);
  font-weight:700;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:active{transform:scale(.985)}
.btn-solid{
  background:linear-gradient(180deg, #f1d25b 0%, #d4af37 100%);
  color:#111;
  box-shadow:0 14px 28px rgba(212,175,55,.18);
}
.btn-outline{
  background:#0a0a0a;
  color:var(--gold);
  border-color:var(--line-2);
}

.games-section h2{
  margin:0 0 10px;
  font-size:clamp(34px,7vw,58px);
  line-height:1;
}
.games-section p{
  margin:0;
  color:var(--muted);
  font-size:clamp(18px,3.8vw,24px);
  line-height:1.45;
}
.game-card{
  padding:20px 16px;
  margin-top:18px;
}
.game-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.game-title{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--gold);
  font-size:clamp(26px,5vw,36px);
  font-weight:800;
}
.status-badge{
  padding:8px 12px;
  border-radius:999px;
  background:#171717;
  border:1px solid var(--line);
  color:#fff;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.game-desc{
  color:var(--muted);
  font-size:18px;
  line-height:1.45;
  margin:0 0 18px;
}
.game-note{
  text-align:center;
  color:#9a9387;
  font-size:15px;
  margin-top:12px;
}

.wheel-wrap{
  position:relative;
  width:min(280px,78vw);
  aspect-ratio:1/1;
  margin:10px auto 14px;
}
.wheel-pointer{
  position:absolute;
  top:-6px;
  left:50%;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:16px solid transparent;
  border-right:16px solid transparent;
  border-top:28px solid var(--gold);
  z-index:3;
}
.wheel-disc{
  width:100%;
  height:100%;
  border-radius:50%;
  border:8px solid #d9b847;
  background:
    conic-gradient(
      #c7960b 0deg 45deg,
      #e6cc62 45deg 90deg,
      #b88700 90deg 135deg,
      #e1c353 135deg 180deg,
      #c7960b 180deg 225deg,
      #e6cc62 225deg 270deg,
      #b88700 270deg 315deg,
      #e1c353 315deg 360deg
    );
  box-shadow:0 18px 34px rgba(212,175,55,.18);
  transition:transform 4.8s cubic-bezier(.08,.9,.16,1);
  position:relative;
}
.wheel-center{
  position:absolute;
  inset:50%;
  transform:translate(-50%,-50%);
  width:58px;
  height:58px;
  border-radius:50%;
  background:#060606;
  border:6px solid #d9b847;
}

.box-grid,
.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.box-item,
.guess-card{
  min-height:104px;
  border-radius:20px;
  background:linear-gradient(180deg, #f1d25b 0%, #d4af37 100%);
  color:#111;
  box-shadow:0 12px 24px rgba(212,175,55,.14);
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:800;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.box-item i{font-size:28px}
.guess-card span{font-size:34px}
.box-item:active,
.guess-card:active{transform:scale(.97)}
.box-item.revealed,
.guess-card.revealed{
  filter:brightness(1.08);
  box-shadow:0 0 0 2px rgba(255,255,255,.16), 0 16px 26px rgba(212,175,55,.22);
}
.box-item.revealed span,
.guess-card.revealed span{
  font-size:22px;
}

.daily-icon{
  width:116px;
  height:116px;
  border-radius:50%;
  margin:6px auto 16px;
  border:2px solid var(--gold);
  display:grid;
  place-items:center;
  color:var(--gold);
  font-size:46px;
  background:#0a0a0a;
}

.social-row{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-bottom:18px;
}
.social-btn{
  min-height:58px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#0b0b0b;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:var(--text);
  font-size:19px;
  font-weight:700;
}
.legal-links{
  display:grid;
  gap:10px;
  margin-bottom:16px;
}
.legal-links a{
  color:var(--muted);
  font-size:18px;
}
.copyright{
  color:#8c8577;
  font-size:16px;
  line-height:1.45;
}

.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  width:min(1180px,calc(100% - 16px));
  margin:0 auto 10px;
  padding:10px;
  border-radius:24px;
  border:1px solid rgba(212,175,55,.16);
  background:rgba(7,7,7,.96);
  backdrop-filter:blur(12px);
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.bottom-link{
  min-height:72px;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#d9d3c7;
  font-size:14px;
  font-weight:700;
}
.bottom-link i{font-size:20px}
.bottom-link.active{
  background:linear-gradient(180deg, #f1d25b 0%, #d4af37 100%);
  color:#111;
}

.drawer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.62);
  opacity:0;
  visibility:hidden;
  transition:.22s ease;
  z-index:98;
}
.drawer{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:min(320px,82vw);
  background:linear-gradient(180deg, #0a0a0a 0%, #080808 100%);
  border-right:1px solid var(--line);
  box-shadow:var(--shadow);
  transform:translateX(-100%);
  transition:.24s ease;
  z-index:99;
  padding:16px;
  overflow-y:auto;
}
.drawer.open{transform:translateX(0)}
.drawer-backdrop.show{
  opacity:1;
  visibility:visible;
}
.drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.drawer-logo{
  font-size:28px;
  font-weight:800;
}
.logo-bonus{color:var(--gold)}
.logo-sa{color:#fff}
.drawer-close{
  width:42px;
  height:42px;
  border:none;
  border-radius:14px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:18px;
}
.drawer-user{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#0f0f0f;
  margin-bottom:16px;
}
.drawer-user-name{
  font-size:24px;
  font-weight:800;
  margin-bottom:6px;
}
.drawer-user-mail{
  color:var(--muted);
  font-size:15px;
  word-break:break-word;
}
.drawer-title{
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:3px;
  font-size:13px;
  font-weight:700;
  margin:18px 0 10px;
}
.drawer-nav{
  display:grid;
  gap:10px;
}
.drawer-link,
.drawer-account-btn,
.drawer-logout-btn{
  min-height:56px;
  border-radius:16px;
  border:1px solid var(--line);
  background:#0d0d0d;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 16px;
  color:#f0ece0;
  font-size:18px;
  font-weight:700;
}
.drawer-link.active{
  background:linear-gradient(180deg, #f1d25b 0%, #d4af37 100%);
  color:#111;
}
.drawer-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.toast{
  position:fixed;
  left:50%;
  bottom:118px;
  transform:translateX(-50%) translateY(20px);
  min-width:220px;
  max-width:calc(100% - 32px);
  padding:14px 18px;
  border-radius:18px;
  background:#121212;
  border:1px solid var(--line-2);
  color:#fff;
  text-align:center;
  opacity:0;
  visibility:hidden;
  transition:.22s ease;
  z-index:120;
  box-shadow:var(--shadow);
  font-size:16px;
}
.toast.show{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}

@media (min-width:700px){
  .stats-grid{grid-template-columns:repeat(3,1fr)}
  .social-row{grid-template-columns:repeat(3,1fr)}
  .legal-links{grid-template-columns:repeat(4,1fr)}
  .quick-actions{grid-template-columns:repeat(1,1fr)}
  .box-grid,.card-grid{grid-template-columns:repeat(3,1fr)}
}
