/* Premium UI overrides (added in-build)
   - richer “premium” theme
   - light gold-rain streaks background (CSS-only)
   - crowns icons for menu + CTAs (inline SVG data-uri)
   - mobile tables: horizontal scroll + visible scrollbar
   - prefers-reduced-motion support
*/

:root{
  --bg-0:#07060b;
  --bg-1:#0f0d16;
  --card:rgba(255,255,255,.06);
  --card-2:rgba(255,255,255,.085);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.74);
  --gold:#d8b35b;
  --gold-2:#f4d27b;
  --border:rgba(216,179,91,.22);
  --shadow:0 14px 34px rgba(0,0,0,.35);
  --shadow-soft:0 10px 24px rgba(0,0,0,.25);

  /* inline SVG (no external requests) */
  --crown-svg:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'%23D8B35B'%3E%3Cpath%20d%3D'M3%207.4l4.6%204.7L12%206l4.4%206.1L21%207.4%2022.6%2019H1.4L3%207.4zm2.4%209.6h13.2l-.6-4.2-2.1%202.2L12%209.4%208.1%2015.0%206.0%2012.8l-.6%204.2z'/%3E%3C/svg%3E");
}

/* ===== Base look ===== */
html{
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body{
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(216,179,91,.14), transparent 55%),
    radial-gradient(900px 650px at 85% 10%, rgba(140,94,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  font-family:"Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  letter-spacing:.1px;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(100deg,
      rgba(216,179,91,0) 0 14px,
      rgba(216,179,91,.14) 14px 16px,
      rgba(216,179,91,0) 16px 34px),
    repeating-linear-gradient(100deg,
      rgba(244,210,123,0) 0 26px,
      rgba(244,210,123,.08) 26px 27px,
      rgba(244,210,123,0) 27px 58px);
  background-size:320px 320px, 480px 480px;
  background-position:center top, center top;
  opacity:.34;
  mix-blend-mode:screen;
  transform:translateZ(0);
}

/* ===== Typography ===== */
h1,h2,h3,h4{
  font-weight:650 !important;
  letter-spacing:.2px;
}

.offer-title{
  font-weight:650 !important;
  text-shadow:0 10px 30px rgba(0,0,0,.35);
}

.offer-desc,
.main-text-content p,
.page-text p{
  color:var(--muted);
  line-height:1.7;
}

a:hover{ opacity:.92; }

/* ===== Header / Footer ===== */
.header{
  background:linear-gradient(180deg, rgba(18,16,26,.94), rgba(18,16,26,.72)) !important;
  border-bottom:1px solid rgba(255,255,255,.08);
}

body.fixed-header .header{
  box-shadow:0 10px 30px rgba(0,0,0,.35) !important;
}

.footer{
  background:linear-gradient(180deg, rgba(12,10,18,.96), rgba(10,8,14,.96)) !important;
  border-top:1px solid rgba(255,255,255,.08);
}

.custom-logo-link{
  width:auto !important;
  max-width:180px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.custom-logo-link img{
  width:100%;
  height:auto;
  display:block;
}

/* center logo on mobile (no empty transparent fields in image; keeps visual centering) */
@media (max-width:700px){
  .header .wrap{ position:relative; }
  .header .custom-logo-link{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    max-width:160px;
    z-index:1;
  }
}

/* avoid 100vh jank on mobile drawer */
.mobile-wrap{
  height:100% !important;
  max-height:100dvh !important;
}
@supports (height: 100svh){
  .mobile-wrap{ max-height:100svh !important; }
}

/* ===== Cards / Blocks ===== */
.page-item,
.bonus-item,
.reviews-item,
.faq-item,
.main-text-wrap.page-item{
  background:linear-gradient(180deg, var(--card-2), var(--card)) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:var(--shadow-soft) !important;
}

.banner{
  background:
    radial-gradient(900px 300px at 10% 10%, rgba(244,210,123,.18), transparent 55%),
    radial-gradient(900px 420px at 90% 20%, rgba(140,94,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(32,24,12,.95), rgba(18,12,6,.95)) !important;
  border:1px solid rgba(216,179,91,.18);
}

/* remove heavy backdrop blur (keeps premium look without lag) */
.glossary-post{ backdrop-filter:none !important; }

/* ===== Buttons (premium, no puls “jitter”) ===== */
.btn{
  animation:none !important;
  border-radius:12px !important;
  line-height:44px !important;
  padding:0 16px !important;
  font-weight:600 !important;
  border:1px solid rgba(255,255,255,.12) !important;
  box-shadow:0 10px 22px rgba(0,0,0,.28);
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:relative;
  overflow:hidden;
  transform:translateZ(0);
}

.btn::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:radial-gradient(420px 120px at 20% 0%, rgba(244,210,123,.32), transparent 60%);
  opacity:0;
  transition:opacity .22s ease;
  pointer-events:none;
}

.btn:hover::after{ opacity:1; }
.btn:hover{ opacity:1 !important; transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }

.btn.btn-red{ box-shadow:0 12px 26px rgba(211,34,34,.22), 0 12px 26px rgba(0,0,0,.25); }
.btn.btn-green{ box-shadow:0 12px 26px rgba(20,156,68,.20), 0 12px 26px rgba(0,0,0,.25); }

.btn:focus-visible,
a:focus-visible{
  outline:2px solid rgba(244,210,123,.75);
  outline-offset:3px;
}

/* ===== Crowns for menu + CTA ===== */
.menu a,
.header-btns .btn,
.offer-btn,
.wheel-modal-btn{
  display:inline-flex !important;
  align-items:center;
  gap:8px;
}

.menu a::before,
.header-btns .btn::before,
.offer-btn::before,
.wheel-modal-btn::before{
  content:"";
  width:14px;
  height:14px;
  flex:0 0 14px;
  background-image:var(--crown-svg);
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
}

.menu a::before{ width:13px; height:13px; flex-basis:13px; }

/* keep menu text wrapping safe */
.menu a{ white-space:nowrap; }

/* ===== Forms ===== */
input:not([type=checkbox]), textarea, select{
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:var(--text) !important;
  border-radius:12px !important;
}
input::placeholder, textarea::placeholder{ color:rgba(255,255,255,.55) !important; }

/* ===== Tables: horizontal scroll on mobile with visible scrollbar ===== */
.table-scroll{
  margin:18px 0;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  box-shadow:0 10px 26px rgba(0,0,0,.22);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.table-scroll table{
  width:100%;
  border-collapse:collapse;
  min-width:720px; /* enables horizontal scroll on mobile */
}
.table-scroll th,
.table-scroll td{
  padding:12px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  text-align:left;
  vertical-align:top;
  font-size:14px;
  line-height:1.45;
}
.table-scroll thead th{
  position:sticky;
  top:0;
  background:linear-gradient(180deg, rgba(216,179,91,.14), rgba(255,255,255,.03));
  color:rgba(255,255,255,.95);
}
.table-scroll tbody tr:nth-child(odd){ background:rgba(255,255,255,.03); }
.table-scroll tbody tr:nth-child(even){ background:rgba(0,0,0,.10); }
.table-scroll tbody tr:hover{ background:rgba(255,255,255,.06); }

/* visible scrollbar */
.table-scroll::-webkit-scrollbar,
.term-table::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar{
  height:10px;
}
.table-scroll::-webkit-scrollbar-track,
.term-table::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track{
  background:rgba(255,255,255,.06);
  border-radius:999px;
}
.table-scroll::-webkit-scrollbar-thumb,
.term-table::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb{
  background:rgba(216,179,91,.55);
  border-radius:999px;
}
.table-scroll{ scrollbar-color: rgba(216,179,91,.60) rgba(255,255,255,.08); scrollbar-width:thin; }

/* override old mobile “stacked table” behaviour if present */
@media (max-width:700px){
  .table-wrap .table{ min-width:720px !important; display:table !important; }
  .table-wrap .table tr{ display:table-row !important; }
  .table-wrap .table th, .table-wrap .table td{ display:table-cell !important; width:auto !important; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  body::before{ animation:none !important; }
  .btn{ transition:none !important; }
  .btn:hover{ transform:none !important; }
}

@media (max-width:420px){
  .header .custom-logo-link{ max-width:140px; }
}


/* ===== Premium wheel redesign ===== */
.wheel-open-btn{
  width:78px;
  height:78px;
  left:18px;
  bottom:18px;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.45));
}
.wheel-open-btn img{
  width:100%;
  height:100%;
  display:block;
}

.wheel-container:before{
  width:28px;
  height:48px;
  top:-28px;
  background-size:contain;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

.wheel-body{
  filter:drop-shadow(0 22px 30px rgba(0,0,0,.34));
}

.wheel-image{
  position:relative;
}
.wheel-image > img{
  display:block;
  width:100%;
  height:auto;
}

.wheel-circle{
  width:calc(100% - 28px);
  height:calc(100% - 28px);
  box-shadow:
    inset 0 0 0 3px rgba(243,217,141,.18),
    inset 0 0 0 12px rgba(0,0,0,.1);
}

.wheel-circle-inner{
  background:
    conic-gradient(
      from -22.5deg,
      #e4bb57 0deg 45deg,
      #1a1014 45deg 90deg,
      #e4bb57 90deg 135deg,
      #1a1014 135deg 180deg,
      #e4bb57 180deg 225deg,
      #1a1014 225deg 270deg,
      #e4bb57 270deg 315deg,
      #1a1014 315deg 360deg
    ) !important;
  overflow:hidden;
}

.wheel-circle-inner::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.22), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(0,0,0,.30), transparent 44%),
    repeating-conic-gradient(
      from -22.5deg,
      rgba(255,245,214,.28) 0deg 1deg,
      rgba(0,0,0,0) 1deg 44deg,
      rgba(255,245,214,.18) 44deg 45deg
    );
  pointer-events:none;
}

.wheel-circle-inner::after{
  content:"";
  position:absolute;
  inset:16px;
  border-radius:50%;
  box-shadow:
    inset 0 0 0 2px rgba(243,217,141,.35),
    inset 0 8px 16px rgba(255,255,255,.08),
    inset 0 -20px 24px rgba(0,0,0,.25);
  pointer-events:none;
}

.wheel-sector-text{
  font-size:clamp(16px,2.5vw,20px);
  font-weight:800;
  letter-spacing:.04em;
  text-shadow:
    0 1px 1px rgba(255,255,255,.15),
    0 2px 8px rgba(0,0,0,.38);
}

.wheel-sector-text:nth-child(odd){
  color:#1a1106;
  text-shadow:
    0 1px 0 rgba(255,245,214,.45),
    0 2px 7px rgba(0,0,0,.25);
}

.wheel-sector-text:nth-child(even){
  color:#f3d98d;
  text-shadow:
    0 1px 0 rgba(0,0,0,.45),
    0 2px 7px rgba(0,0,0,.50);
}

.wheel-btn{
  width:132px;
  height:132px;
  animation:1.8s infinite pulse-btn;
  filter:drop-shadow(0 12px 24px rgba(0,0,0,.42));
}

.wheel-btn-inner img{
  width:100%;
  height:100%;
  display:block;
}

.wheel-btn-text{
  width:82px;
  height:82px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:54px;
  font-weight:900;
  line-height:1;
  letter-spacing:.02em;
  color:#f4d27b;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-44%);
  text-shadow:
    0 2px 0 #6e4416,
    0 12px 22px rgba(0,0,0,.55);
  z-index:2;
  pointer-events:none;
}

.wheel-btn-text::before{
  content:"";
  width:24px;
  height:24px;
  position:absolute;
  top:-7px;
  left:50%;
  transform:translateX(-50%);
  background-image:var(--crown-svg);
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.35));
}

.wheel-btn-text::after{
  content:"";
  position:absolute;
  inset:10px 12px 18px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 15%, rgba(255,255,255,.12), rgba(255,255,255,0) 55%);
  z-index:-1;
}

.wheel-modal{
  background:linear-gradient(180deg, rgba(34,21,24,.98), rgba(12,10,14,.98));
  border:1px solid rgba(244,210,123,.55);
  border-radius:24px;
  box-shadow:
    0 24px 52px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.05) inset;
}

.wheel-modal-inner{
  position:relative;
  padding:26px 26px 30px;
  overflow:hidden;
}

.wheel-modal-inner::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(540px 180px at 50% 0%, rgba(244,210,123,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  pointer-events:none;
}

.wheel-modal-close{
  position:absolute;
  width:34px;
  height:34px;
  top:12px;
  right:12px;
  cursor:pointer;
  z-index:6;
}
.wheel-modal-close img{
  width:100%;
  height:100%;
  display:block;
}

.wheel-modal-img{
  max-width:180px;
  margin:-38px auto 0;
  filter:drop-shadow(0 14px 24px rgba(0,0,0,.35));
}

.wheel-modal-price{
  background:linear-gradient(180deg, #fff2c2 0%, #f1cf72 38%, #d3a03a 100%);
  color:#1b1205;
  font-size:44px;
  font-weight:900;
  border-radius:999px;
  border:1px solid rgba(255,245,214,.6);
  box-shadow:0 12px 24px rgba(0,0,0,.24);
  padding:8px 20px;
  margin:-38px auto 26px;
}

.wheel-modal-message{
  color:rgba(255,255,255,.90);
  font-size:20px;
  line-height:1.55;
  margin:0 auto 28px;
}

.wheel-modal-btn{
  max-width:270px;
  min-height:54px;
  line-height:1.2 !important;
  padding:14px 22px !important;
  border-radius:14px !important;
  border:1px solid rgba(255,245,214,.55) !important;
  background:linear-gradient(180deg, #f8dc93 0%, #d7a63f 100%) !important;
  color:#1a1206 !important;
  box-shadow:0 14px 26px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.4);
}

.wheel-modal-btn:hover{
  background:linear-gradient(180deg, #ffe6a6 0%, #dfb152 100%) !important;
}

@media (max-width: 767px){
  .wheel-open-btn{
    width:70px;
    height:70px;
    left:14px;
    bottom:14px;
  }
  .wheel-btn{
    width:112px;
    height:112px;
  }
  .wheel-btn-text{
    font-size:44px;
    width:68px;
    height:68px;
  }
  .wheel-btn-text::before{
    width:20px;
    height:20px;
    top:-5px;
  }
  .wheel-sector-text{
    font-size:14px;
  }
  .wheel-modal{
    width:calc(100% - 28px);
    border-radius:20px;
  }
  .wheel-modal-inner{
    padding:22px 18px 24px;
  }
  .wheel-modal-img{
    max-width:150px;
    margin:-28px auto 0;
  }
  .wheel-modal-price{
    font-size:34px;
    margin:-26px auto 20px;
  }
  .wheel-modal-message{
    font-size:18px;
  }
}

/* wheel text color + centered modal CTA override */
.wheel-sector-text,
.wheel-sector-text:nth-child(odd),
.wheel-sector-text:nth-child(even){
  color:#ffffff !important;
  text-shadow:
    0 1px 0 rgba(0,0,0,.55),
    0 2px 6px rgba(0,0,0,.55),
    0 0 1px rgba(0,0,0,.35) !important;
  -webkit-text-stroke:0.35px rgba(0,0,0,.28);
}

.wheel-modal-btn{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
  text-align:center !important;
}


/* wheel modal layering + close flicker fix */
.wheel-modal{
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  transform:translate(-50%,-50%) translateZ(0);
  will-change:opacity,transform;
}
.wheel-modal.active{
  transform:translate(-50%,-50%) scale(1) translateZ(0);
}
.wheel-modal-inner > *{
  position:relative;
}
.wheel-modal-img{
  position:relative;
  z-index:1;
  pointer-events:none;
}
.wheel-modal-img img{
  display:block;
  width:100%;
  height:auto;
}
.wheel-modal .price__row,
.wheel-modal-price,
.wheel-modal-message,
.wheel-modal-btn{
  position:relative;
  z-index:3;
}
.wheel-modal-message{
  margin-top:8px;
}

/* final modal close placement + no ghost state */
.wheel-modal-inner{
  position:relative !important;
}
.wheel-modal-close{
  position:absolute !important;
  top:10px !important;
  right:10px !important;
  left:auto !important;
  bottom:auto !important;
  width:38px !important;
  height:38px !important;
  z-index:20 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
}
.wheel-modal-close img{
  width:100% !important;
  height:100% !important;
  display:block !important;
}
.wheel-modal,
.wheel-modal-bg{
  transition:none !important;
  animation:none !important;
}

/* ===== CTA palette refresh (luxury gold / velvet) ===== */
.header-btns .btn,
.offer-btn,
.bonus-btn,
.wheel-modal-btn{
  border-radius:14px !important;
}

.btn.btn-red{
  background:linear-gradient(180deg, #f6d98d 0%, #d6a94c 52%, #b8832d 100%) !important;
  border:1px solid rgba(255,232,177,.55) !important;
  color:#1d1308 !important;
  text-shadow:0 1px 0 rgba(255,248,220,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 12px 28px rgba(184,131,45,.28),
    0 10px 22px rgba(0,0,0,.28) !important;
}
.btn.btn-red:hover{
  background:linear-gradient(180deg, #ffe5a7 0%, #dfb55f 52%, #c38f38 100%) !important;
}

.btn.btn-green{
  background:linear-gradient(180deg, #231711 0%, #171015 55%, #0d0a0d 100%) !important;
  border:1px solid rgba(216,179,91,.5) !important;
  color:#f6e7c4 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 12px 28px rgba(0,0,0,.36),
    0 0 0 1px rgba(216,179,91,.08) !important;
}
.btn.btn-green:hover{
  background:linear-gradient(180deg, #2c1e16 0%, #1c1317 55%, #100b0e 100%) !important;
}

.offer-btn,
.bonus-btn,
.wheel-modal-btn{
  background:linear-gradient(180deg, #f7dd98 0%, #dcb463 48%, #bf8f3e 100%) !important;
  border:1px solid rgba(255,236,186,.58) !important;
  color:#1d1308 !important;
  text-shadow:0 1px 0 rgba(255,248,220,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.40),
    0 12px 28px rgba(191,143,62,.28),
    0 10px 22px rgba(0,0,0,.28) !important;
}
.offer-btn:hover,
.bonus-btn:hover,
.wheel-modal-btn:hover{
  background:linear-gradient(180deg, #ffe7ad 0%, #e6bf71 48%, #cb9a49 100%) !important;
}

.btn.btn-red::before,
.offer-btn::before,
.bonus-btn::before,
.wheel-modal-btn::before{
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.25));
}

.btn.btn-green::before{
  filter:drop-shadow(0 0 4px rgba(216,179,91,.18));
}


/* Make homepage "Get your bonus" match Registration button exactly */
.bonus-btn,
.btn.btn-green.bonus-btn{
  background:linear-gradient(180deg, #f6d98d 0%, #d6a94c 52%, #b8832d 100%) !important;
  border:1px solid rgba(255,232,177,.55) !important;
  color:#1d1308 !important;
  text-shadow:0 1px 0 rgba(255,248,220,.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 12px 28px rgba(184,131,45,.28),
    0 10px 22px rgba(0,0,0,.28) !important;
}
.bonus-btn:hover,
.btn.btn-green.bonus-btn:hover{
  background:linear-gradient(180deg, #ffe5a7 0%, #dfb55f 52%, #c38f38 100%) !important;
}
.bonus-btn::before,
.btn.btn-green.bonus-btn::before{
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.25));
}

/* Mobile-safe performance and usability pass */
img{height:auto;}
.banner.main-banner .banner-img img{content-visibility:auto; contain-intrinsic-size: 640px 420px;}
.bonus-item-icon img,
.page-item img,
.blog-item img,
.games-item img,
.slots-item img,
.payment-item img,
.review-author img,
.author-box img{content-visibility:auto; contain-intrinsic-size: 320px 220px;}
.table-wrap,
.table-scroll,
.wp-block-table,
table{
  scrollbar-width:thin;
  scrollbar-color:rgba(214,169,76,.9) rgba(18,12,10,.45);
}
.table-wrap::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar{height:10px;}
.table-wrap::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb{
  background:linear-gradient(90deg,#f2d488,#c89238);
  border-radius:999px;
}
.table-wrap::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track{
  background:rgba(18,12,10,.38);
}

@media (max-width: 900px){
  .header .wrap{
    gap:12px;
    align-items:center;
  }
  .custom-logo-link img,
  .custom-logo{
    max-width:min(60vw, 260px) !important;
    height:auto !important;
  }
  .header-btns{
    gap:10px;
    flex-wrap:wrap;
  }
  .header-btns .btn,
  .offer-btn,
  .bonus-btn,
  .wheel-modal-btn{
    min-height:46px;
    padding:12px 18px !important;
    line-height:1.2;
  }
  .mobile-wrap .menu a,
  .nav .menu a{
    min-height:44px;
    display:flex;
    align-items:center;
  }
  .banner.main-banner{
    gap:18px;
  }
  .wheel-modal-inner{
    width:min(92vw, 420px);
    padding-left:18px;
    padding-right:18px;
  }
}

@media (max-width: 640px){
  .wrap{
    width:min(100% - 24px, 1200px);
  }
  .section,
  .banner-wrap,
  .bonus-wrap,
  .content-wrap{
    margin-top:22px;
    margin-bottom:22px;
  }
  h1,.offer-title{font-size:clamp(30px, 8vw, 42px); line-height:1.08;}
  h2,.section-title{font-size:clamp(24px, 6vw, 32px); line-height:1.15;}
  .offer-desc,
  .content p,
  .main-text-content p{font-size:16px; line-height:1.6;}
  .btn,
  .offer-btn,
  .bonus-btn,
  .wheel-modal-btn{
    width:100%;
    justify-content:center;
    text-align:center;
  }
  .offer-btns,
  .header-btns{
    width:100%;
  }
  .table-wrap,
  .table-scroll,
  .wp-block-table{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }
  table{
    min-width:640px;
  }
}

/* Mobile header layout fix: logo left, auth buttons centered, burger right */
@media (max-width: 700px){
  body.fixed-header{ padding-top: 110px; }

  .header .wrap{
    display:grid !important;
    grid-template-columns:minmax(92px, 120px) 1fr 42px !important;
    align-items:center !important;
    column-gap:10px !important;
    row-gap:10px !important;
    padding-bottom:0 !important;
  }

  .header .custom-logo-link{
    grid-column:1;
    justify-self:start !important;
    margin:0 !important;
    width:auto !important;
    max-width:118px !important;
  }

  .header .custom-logo-link img,
  .header .custom-logo{
    display:block;
    width:100% !important;
    max-width:118px !important;
    height:auto !important;
    margin:0 !important;
  }

  .header-btns{
    position:static !important;
    left:auto !important;
    bottom:auto !important;
    transform:none !important;
    grid-column:2;
    justify-self:center !important;
    width:auto !important;
    max-width:none !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
    margin:0 !important;
  }

  .header-btns .btn{
    width:auto !important;
    min-width:0 !important;
    padding:10px 12px !important;
    min-height:40px !important;
    font-size:13px !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }

  .header-btns .btn:last-child{
    margin-left:0 !important;
  }

  .mobile-btn{
    grid-column:3;
    justify-self:end !important;
    align-self:center !important;
    margin:0 !important;
    position:relative !important;
    right:auto !important;
    top:auto !important;
    width:32px !important;
    height:22px !important;
    z-index:15;
  }
}

@media (max-width: 420px){
  .header .wrap{
    grid-template-columns:minmax(84px, 104px) 1fr 36px !important;
    column-gap:8px !important;
  }

  .header .custom-logo-link img,
  .header .custom-logo{
    max-width:104px !important;
  }

  .header-btns{
    gap:6px !important;
  }

  .header-btns .btn{
    padding:9px 10px !important;
    font-size:12px !important;
    min-height:38px !important;
  }

  .header-btns .btn::before{
    width:12px !important;
    height:12px !important;
    flex-basis:12px !important;
  }
}

/* Registration crown should be black */
.btn.btn-red::before,
.header-btns .btn.btn-red::before{
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A//www.w3.org/2000/svg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'%23000000'%3E%3Cpath%20d%3D'M3%207.4l4.6%204.7L12%206l4.4%206.1L21%207.4%2022.6%2019H1.4L3%207.4zm2.4%209.6h13.2l-.6-4.2-2.1%202.2L12%209.4%208.1%2015.0%206.0%2012.8l-.6%204.2z'/%3E%3C/svg%3E") !important;
  filter:none !important;
}


/* Final mobile header alignment fix: logo flush left, auth centered, burger right */
@media (max-width:700px){
  .header .wrap{
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(92px,118px) 1fr 42px !important;
    align-items:center !important;
    column-gap:10px !important;
  }
  .header .custom-logo-link{
    position:static !important;
    left:auto !important;
    transform:none !important;
    justify-self:start !important;
    align-self:center !important;
    margin:0 !important;
    max-width:118px !important;
  }
  .header .custom-logo-link img,
  .header .custom-logo{
    margin:0 !important;
    width:100% !important;
    max-width:118px !important;
    height:auto !important;
  }
  .header-btns{
    grid-column:2 !important;
    justify-self:center !important;
    margin:0 auto !important;
  }
  .mobile-btn{
    grid-column:3 !important;
    justify-self:end !important;
    margin:0 !important;
  }
}
@media (max-width:420px){
  .header .wrap{
    grid-template-columns:minmax(84px,104px) 1fr 36px !important;
  }
  .header .custom-logo-link,
  .header .custom-logo-link img,
  .header .custom-logo{
    max-width:104px !important;
  }
}
