/* =========================================================
   SWAG INU CASINO — PREMIUM SKIN (BLACK/GOLD + FELT) — V4
   assets/style.css  (FULL REPLACE)

   GOALS:
   - Keep the premium desktop look you had
   - Restore premium buttons/chips (no “cheap” look)
   - Fix MOBILE: buttons/controls were getting pushed off-screen
   - Make Blackjack cards larger + more realistic feel
   - Make Tabs usable on mobile (scroll instead of wrapping weird)
========================================================= */

:root{
  --sic-bg: #07070a;
  --sic-panel: rgba(10,10,14,0.68);
  --sic-panel2: rgba(10,10,14,0.42);

  --sic-gold: #ffd34a;
  --sic-gold-soft: rgba(255,211,74,0.22);
  --sic-line: rgba(255,211,74,0.18);

  --sic-white: rgba(255,255,255,0.92);
  --sic-muted: rgba(255,255,255,0.68);

  --sic-cyan: rgba(0,255,255,0.10);

  --sic-shadow: 0 0 0 1px rgba(0,0,0,0.42) inset, 0 0 26px rgba(255,211,74,0.10);
  --sic-radius: 16px;

  --sic-btn-h: 36px;
  --sic-btn-h-lg: 44px;

  --sic-ring: 0 0 0 1px rgba(0,0,0,0.45) inset;
  --sic-glow: 0 0 22px rgba(255,211,74,0.16), 0 0 70px rgba(0,255,255,0.06);
  --sic-glow-strong: 0 0 0 1px rgba(255,211,74,0.38), 0 0 26px rgba(255,211,74,0.24), 0 0 90px rgba(0,255,255,0.09);
}

#swaginu-casino-root{
  color: var(--sic-white);
  background:
    radial-gradient(1200px 600px at 50% 10%, rgba(255,211,74,0.13), transparent 60%),
    radial-gradient(900px 500px at 20% 30%, rgba(0,255,255,0.06), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.86));
  border: 1px solid rgba(255,211,74,0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 0 60px rgba(0,0,0,0.55);
  overflow: hidden;
  position: relative;
}

#swaginu-casino-root,
#swaginu-casino-root * {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#swaginu-casino-root a{ color: inherit; }

/* ========= TOPBAR ========= */
.sic-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,211,74,0.16);
  box-shadow: var(--sic-shadow);
}

.sic-brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 210px;
}

#swaginu-casino-root .sic-logo{
  height: 34px;
  width: auto;
  display:block;
  filter: drop-shadow(0 0 10px rgba(255,211,74,0.25));
}

/* Center stats */
.sic-topbar-stats{
  margin: 0 auto;
  text-align:center;
  padding: 10px 16px;
  border-radius: 16px;
  min-width: 260px;
  max-width: 520px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,211,74,0.18);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.38) inset, 0 0 22px rgba(255,211,74,0.12);
  color: rgba(255,255,255,0.86);
  line-height: 1.35;
}

#sic-chips,#sic-best,#sic-streak{
  font-weight: 900;
  color: rgba(255,255,255,0.98);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-shadow: 0 0 10px rgba(255,211,74,0.22);
}

/* Right actions */
.sic-topbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 300px;
}

.sic-input{
  height: var(--sic-btn-h);
  border-radius: 12px;
  padding: 0 12px;
  border: 1px solid rgba(255,211,74,0.18);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  outline: none;
  min-width: 160px;
  box-shadow: var(--sic-ring);
}
.sic-input::placeholder{ color: rgba(255,255,255,0.55); }
.sic-input:disabled{
  opacity: .85;
  cursor: not-allowed;
  background: rgba(0,0,0,0.28);
}

/* ========= BUTTONS — PREMIUM (restore depth) ========= */
.sic-btn,
#swaginu-casino-root button{
  height: var(--sic-btn-h);
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,211,74,0.26);
  background:
    linear-gradient(180deg, rgba(255,211,74,0.24), rgba(255,211,74,0.08));
  color: rgba(255,211,74,0.95);
  font-weight: 900;
  letter-spacing: .05em;
  cursor: pointer;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 rgba(0,0,0,0.45) inset,
    0 8px 18px rgba(0,0,0,0.35),
    var(--sic-ring);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sic-btn::after,
#swaginu-casino-root button::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius: 11px;
  background:
    radial-gradient(120px 60px at 30% 20%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 55%);
  pointer-events:none;
  opacity: .95;
}

.sic-btn:hover,
#swaginu-casino-root button:hover{
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 -1px 0 rgba(0,0,0,0.45) inset,
    0 0 0 1px rgba(255,211,74,0.28),
    0 0 24px rgba(255,211,74,0.20),
    0 0 60px rgba(0,255,255,0.06),
    0 12px 22px rgba(0,0,0,0.35);
  filter: brightness(1.06);
}

.sic-btn:active,
#swaginu-casino-root button:active{
  transform: translateY(0px);
  filter: brightness(0.98);
}

.sic-btn:disabled,
#swaginu-casino-root button:disabled{
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Link button variant (Logout) */
.sic-link-btn{
  border: 1px solid rgba(255,211,74,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.25));
  color: rgba(255,255,255,0.92);
}
.sic-link-btn:hover{ color: rgba(255,255,255,0.98); }

/* ========= TABS ========= */
.sic-tabs{
  display:flex;
  gap: 8px;
  padding: 12px 2px 0;
  flex-wrap: wrap;
}

.sic-tab{
  height: var(--sic-btn-h);
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,211,74,0.22);
  background: rgba(0,0,0,0.35);
  color: rgba(255,211,74,0.92);
  font-weight: 900;
  letter-spacing: .05em;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sic-ring);
}

.sic-tab.active{
  background: linear-gradient(180deg, rgba(255,211,74,0.26), rgba(255,211,74,0.10));
  box-shadow: var(--sic-glow-strong);
}

/* subtle shimmer */
.sic-tab::after{
  content:"";
  position:absolute; inset:-40%;
  background: linear-gradient(120deg, transparent, rgba(255,211,74,.18), transparent);
  transform: translateX(-60%) rotate(8deg);
  opacity:0;
}
.sic-tab:hover::after{
  opacity:1;
  animation: sicShimmer .8s ease forwards;
}
@keyframes sicShimmer { to { transform: translateX(120%) rotate(8deg); } }

/* ========= PANELS ========= */
.sic-panel{
  margin-top: 14px;
  border-radius: var(--sic-radius);
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.60), rgba(0,0,0,0.34));
  border: 1px solid rgba(255,211,74,0.14);
  box-shadow: var(--sic-shadow);
}

.sic-panel-title{
  font-weight: 900;
  letter-spacing: .12em;
  font-size: 12px;
  color: rgba(255,211,74,0.92);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sic-help{ color: var(--sic-muted); font-size: 13px; }

/* Cooldown */
.sic-cooldown{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,80,80,0.22);
  background: rgba(255,80,80,0.08);
  color: rgba(255,255,255,0.92);
}

/* ========= GAME LAYOUT (critical for mobile) ========= */
.bj-zones{
  display:grid;
  grid-template-columns: 1fr 360px; /* slightly wider rail looks premium */
  gap: 16px;
  align-items: start;
}

/* ========= FELT / TABLE ========= */
.table-felt{
  border-radius: 18px;
  padding: 14px;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(0,255,160,0.12), transparent 55%),
    radial-gradient(700px 500px at 12% 20%, rgba(255,211,74,0.10), transparent 55%),
    linear-gradient(180deg, rgba(10,70,38,0.94), rgba(6,45,26,0.94));
  border: 1px solid rgba(255,211,74,0.16);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.35) inset,
    0 0 34px rgba(255,211,74,0.12);
  position: relative;
}

/* Subtle felt texture */
.table-felt::before{
  content:"";
  position:absolute; inset:0;
  border-radius: 18px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 8px);
  opacity: .14;
  pointer-events:none;
  mix-blend-mode: overlay;
}

.table-title{
  text-align:center;
  font-weight: 1000;
  letter-spacing: .14em;
  color: rgba(255,211,74,0.92);
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0,0,0,0.55);
}

/* Rail */
.table-rail{
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.62), rgba(0,0,0,0.36));
  border: 1px solid rgba(255,211,74,0.16);
  box-shadow: var(--sic-shadow);
  position: relative;
}

/* ========= BLACKJACK ========= */
.bj-area{ padding: 6px; }
.bj-row{ margin-bottom: 16px; }
.bj-head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  letter-spacing: .02em;
}

/* Cards larger + more realistic */
.bj-cards{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
}

/* Desktop cards */
.card{
  width: 54px;
  height: 78px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,238,238,0.94));
  border: 1px solid rgba(0,0,0,0.14);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  color: #111;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.10) inset;
  position: relative;
}

.card::after{
  content:"";
  position:absolute; inset:2px;
  border-radius: 10px;
  background:
    radial-gradient(90px 60px at 30% 20%, rgba(255,255,255,0.65), transparent 60%);
  opacity:.45;
  pointer-events:none;
}

.card.red{ color:#b01022; }

/* card back (dealer hidden) */
.card.back{
  background:
    radial-gradient(circle at 30% 30%, rgba(255,211,74,0.28), rgba(0,0,0,0.62)),
    repeating-linear-gradient(45deg, rgba(255,211,74,0.14) 0 6px, rgba(0,0,0,0.0) 6px 12px);
  border: 1px solid rgba(255,211,74,0.26);
  color: rgba(255,255,255,0.88);
}

/* ========= CHIP ROW — MAKE THEM LOOK LIKE REAL CHIPS ========= */
.chip-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.chip{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
  font-size: 12px;
  color: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(0,0,0,0.42)),
    repeating-radial-gradient(circle at 50% 50%,
      rgba(255,255,255,0.08) 0 2px,
      rgba(0,0,0,0) 2px 6px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.42) inset,
    0 14px 24px rgba(0,0,0,0.32),
    0 0 18px rgba(255,211,74,0.08);
  cursor:pointer;
  position: relative;
}

.chip::after{
  content:"";
  position:absolute;
  inset:6px;
  border-radius: 999px;
  border: 2px dashed rgba(255,255,255,0.22);
  opacity:.75;
}

.chip.gold{
  border-color: rgba(255,211,74,0.35);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.42) inset,
    0 14px 26px rgba(0,0,0,0.34),
    0 0 28px rgba(255,211,74,0.20);
}

/* ========= CONTROLS ========= */
.ctrl label{
  display:block;
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  margin-top: 10px;
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.ctrl input, .ctrl select{
  width: 100%;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,211,74,0.18);
  background: rgba(0,0,0,0.32);
  color: rgba(255,255,255,0.92);
  padding: 0 12px;
  outline: none;
  box-shadow: var(--sic-ring);
}
.ctrl button{ width:100%; margin-top: 10px; }

.ctrl-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.ctrl-grid button{ width:100%; }

.tag{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,211,74,0.22);
  background: rgba(0,0,0,0.28);
  color: rgba(255,211,74,0.92);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .06em;
}

/* ========= ROULETTE ========= */
.rou-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.rou-wheelbox{
  position:relative;
  width: 360px;
  height: 360px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.rou-pointer{
  position:absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid rgba(255,211,74,0.95);
  filter: drop-shadow(0 0 10px rgba(255,211,74,0.35));
  z-index: 4;
}
.rou-last{
  color: rgba(255,255,255,0.90);
  font-size: 13px;
  letter-spacing:.02em;
}

/* ball visibility */
.rou-ball{ z-index: 5; opacity: 0; }
.rou-ball.on{ opacity: 1; }

/* ========= SLOTS ========= */
.slots-frame{
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.60), rgba(0,0,0,0.36));
  border: 1px solid rgba(255,211,74,0.16);
  box-shadow: var(--sic-shadow);
}

.slots-window{
  display:flex;
  gap: 18px;
  align-items:center;
  justify-content:center;
  padding: 22px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,211,74,0.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.40) inset;
}

.reel{
  width: 118px;
  height: 118px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), rgba(0,0,0,0.40));
  border: 1px solid rgba(255,211,74,0.18);
  box-shadow:
    0 0 22px rgba(255,211,74,0.12),
    0 16px 30px rgba(0,0,0,0.30);
  overflow:hidden;
}

.sym{ font-size: 54px; line-height: 1; }
.reel.spin{ filter: blur(0.3px); }

/* ========= LEADERBOARD ========= */
.sic-ol{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.88);
}
.sic-ol li{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,211,74,0.12);
  background: rgba(0,0,0,0.22);
  margin: 8px 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35) inset;
}
.sic-rank{ color: rgba(255,211,74,0.92); font-weight: 1000; }
.sic-name{ color: rgba(255,255,255,0.92); font-weight: 900; }
.sic-score{ color: rgba(255,255,255,0.92); font-weight: 1000; }

/* Table */
.sic-table{
  width:100%;
  border-collapse: collapse;
}
.sic-table th, .sic-table td{
  padding: 10px;
  border-bottom: 1px solid rgba(255,211,74,0.12);
  color: rgba(255,255,255,0.90);
}
.sic-table th{
  color: rgba(255,211,74,0.92);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
}

/* =========================================================
   MOBILE FIX PACK (THIS IS WHAT BRINGS BACK THE GAME BUTTONS)
   - removes min-width constraints
   - stacks grid columns
   - makes tabs scrollable
   - ensures controls are visible + tappable
========================================================= */

@media (max-width: 980px){
  .bj-zones{ grid-template-columns: 1fr; }
  .sic-topbar{ flex-wrap: wrap; gap: 10px; }
  .sic-brand{ min-width: 0; }
  .sic-topbar-stats{
    margin: 0;
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .sic-topbar-actions{
    min-width: 0;
    width: 100%;
    justify-content:flex-start;
  }
}

/* Phones */
@media (max-width: 640px){
  #swaginu-casino-root{ padding: 12px; }

  /* Tabs: keep them on one line, allow horizontal scroll */
  .sic-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 6px;
  }
  .sic-tabs::-webkit-scrollbar{ height: 0; }

  .sic-tab{
    flex: 0 0 auto;
    height: var(--sic-btn-h-lg);
    padding: 0 16px;
  }

  /* Topbar actions: grid so buttons don't get squeezed */
  .sic-topbar-actions{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sic-input{
    grid-column: 1 / -1;
    height: var(--sic-btn-h-lg);
    min-width: 0;
    width: 100%;
  }

  .sic-btn,
  #swaginu-casino-root button{
    height: var(--sic-btn-h-lg);
    width: 100%;
    padding: 0 14px;
    font-size: 14px;
  }

  /* Game layout: table first, controls next */
  .bj-zones{ grid-template-columns: 1fr; gap: 12px; }

  .table-rail{
    padding: 12px;
  }

  /* Make control buttons clearly visible and not cramped */
  .ctrl-grid{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Chips: allow wrap + slightly smaller, still premium */
  .chip-row{ gap: 10px; }
  .chip{ width: 54px; height: 54px; font-size: 12px; }

  /* Cards bigger on mobile so they’re readable */
  .card{
    width: 62px;
    height: 90px;
    border-radius: 14px;
    font-size: 18px;
  }

  /* Roulette scale down */
  .rou-wheelbox{
    width: 300px;
    height: 300px;
  }
  #rou-canvas{
    width: 300px !important;
    height: 300px !important;
  }

  /* Slots scale down */
  .slots-window{ gap: 12px; padding: 18px 10px; }
  .reel{ width: 96px; height: 96px; border-radius: 16px; }
  .sym{ font-size: 46px; }

  /* Prevent any inner element from forcing horizontal overflow */
  #swaginu-casino-root *{
    max-width: 100%;
  }
}

/* Extra small phones */
@media (max-width: 390px){
  .sic-topbar-actions{ grid-template-columns: 1fr; }
  .sic-btn, #swaginu-casino-root button{ height: 46px; }
  .chip{ width: 52px; height: 52px; }
  .card{ width: 58px; height: 86px; }
  .rou-wheelbox{ width: 280px; height: 280px; }
  #rou-canvas{ width: 280px !important; height: 280px !important; }
  .reel{ width: 90px; height: 90px; }
}

/* =========================================================
   VISIBILITY + POLISH LAYER (kept)
========================================================= */
#swaginu-casino-root .sic-help,
#swaginu-casino-root .sic-panel,
#swaginu-casino-root .sic-panel-title,
#swaginu-casino-root .rou-last,
#swaginu-casino-root .bj-head,
#swaginu-casino-root label,
#swaginu-casino-root .sic-table,
#swaginu-casino-root .sic-table td,
#swaginu-casino-root .sic-table th {
  color: rgba(255,255,255,0.92) !important;
}

#swaginu-casino-root .sic-help { opacity: 0.95; }

#swaginu-casino-root .sic-panel-title,
#swaginu-casino-root .table-title {
  color: rgba(255,255,255,0.98) !important;
  letter-spacing: 0.08em;
}

#swaginu-casino-root #sic-chips,
#swaginu-casino-root #sic-best,
#swaginu-casino-root #sic-streak {
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(255,215,0,0.20);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

#swaginu-casino-root .sic-panel,
#swaginu-casino-root .table-rail,
#swaginu-casino-root .slots-frame,
#swaginu-casino-root .table-felt {
  border-color: rgba(255,215,0,0.20) !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.35) inset,
    0 0 34px rgba(255,215,0,0.12),
    0 0 70px rgba(0,255,255,0.05);
}

NEXT SECTION: 

/* =========================================================
   MOBILE FIX PACK — DO NOT CHANGE DESKTOP LOOK
   - Fix “buttons missing” on mobile by preventing clipping
   - Make tabs scrollable
   - Scale roulette/slots to fit small screens
   - Stack controls cleanly on narrow phones
========================================================= */

/* 1) Stop clipping on small screens (THIS is the big one) */
@media (max-width: 980px){
  #swaginu-casino-root{
    overflow: visible;          /* was hidden on desktop */
  }
  #sic-view{
    overflow: visible;
  }
  .sic-panel,
  .table-felt,
  .table-rail,
  .slots-frame{
    overflow: visible;
  }
}

/* 2) Force buttons to display (in case theme/mobile CSS hides them) */
#swaginu-casino-root button,
#swaginu-casino-root .sic-btn,
#swaginu-casino-root .sic-tab{
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 3) Tabs: scroll instead of wrapping/cutting off */
@media (max-width: 640px){
  .sic-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 10px;
  }
  .sic-tabs::-webkit-scrollbar{ height: 6px; }
  .sic-tabs::-webkit-scrollbar-thumb{ background: rgba(255,211,74,0.20); border-radius: 999px; }
  .sic-tab{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* 4) Topbar layout: make actions wrap nicely on phones */
@media (max-width: 640px){
  .sic-topbar{ padding: 10px 10px; gap: 10px; }
  .sic-brand{ min-width: auto; }
  .sic-topbar-stats{
    min-width: 0;
    width: 100%;
    order: 2;
  }
  .sic-topbar-actions{
    width: 100%;
    order: 3;
    justify-content: flex-start;
  }
  .sic-topbar-actions > *{
    flex: 1 1 140px;
  }
  .sic-input{
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
}

/* 5) Blackjack: bigger cards but responsive */
@media (max-width: 640px){
  .bj-cards{ gap: 8px; }
  .card{
    width: clamp(46px, 13vw, 64px);
    height: clamp(66px, 18vw, 92px);
    border-radius: 12px;
    font-size: 14px;
  }
  .chip{
    width: clamp(44px, 13vw, 56px);
    height: clamp(44px, 13vw, 56px);
  }
}

/* 6) Controls: stack buttons on tiny phones so nothing disappears */
@media (max-width: 420px){
  .ctrl-grid{
    grid-template-columns: 1fr;   /* one column */
    gap: 10px;
  }
}

/* 7) Roulette: scale wheel to viewport */
@media (max-width: 640px){
  .rou-wheelbox{
    width: min(340px, 92vw);
    height: min(340px, 92vw);
  }
  #rou-canvas{
    width: 100%;
    height: 100%;
    display: block;
  }
  .rou-pointer{ top: 6px; }
}

/* 8) Slots: scale reels to fit + allow wrap */
@media (max-width: 640px){
  .slots-window{
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 10px;
  }
  .reel{
    width: min(110px, 28vw);
    height: min(110px, 28vw);
    border-radius: 16px;
  }
  .sym{
    font-size: clamp(36px, 10vw, 52px);
  }
}
