/*
Theme Name: StakeGamePress
Theme URI: https://darkshine-of.net
Description: Stake.com casino game page clone theme for DarkShine OF
Version: 1.0.0
Author: DarkShine
Author URI: https://darkshine-of.net
License: Proprietary
Text Domain: stakegamepress
*/

/* =============================================
   CSS CUSTOM PROPERTIES — STAKE DESIGN SYSTEM
============================================= */
:root {
  --sg-bg-main:        #0f212e;
  --sg-bg-header:      #1a2c38;
  --sg-bg-card:        #1a2c38;
  --sg-bg-elevated:    #213743;
  --sg-bg-pill:        #2f4553;
  --sg-green:          #00e701;
  --sg-red:            #ed4163;
  --sg-text-primary:   #ffffff;
  --sg-text-muted:     #b1bad3;
  --sg-border:         rgba(255,255,255,0.08);
  --sg-radius-card:    8px;
  --sg-radius-game:    12px;
  --sg-radius-pill:    999px;
  --sg-header-h:       56px;
  --sg-sidebar-w:      56px;
  --sg-transition:     0.18s ease;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  margin: 0; padding: 0;
  background: var(--sg-bg-main);
  color: var(--sg-text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Kill Bootstrap .row negative margins inside our theme */
.sg-content .row { margin-left: 0; margin-right: 0; }
.sg-content .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
/* Re-add gap between columns on desktop */
@media (min-width: 768px) {
  .sg-content .row > .col-md-3 { padding-right: 20px; }
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; text-decoration: none; }

/* Dark scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--sg-bg-main); }
::-webkit-scrollbar-thumb { background: var(--sg-bg-pill); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d5a70; }

/* =============================================
   HEADER
============================================= */
.sg-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--sg-header-h);
  background: var(--sg-bg-header);
  border-bottom: 1px solid var(--sg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 16px;
  z-index: 1000;
}

.sg-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--sg-green);
  text-decoration: none;
}

.sg-logo svg {
  width: 32px;
  height: 32px;
}

.sg-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--sg-radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--sg-transition);
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.sg-btn--outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--sg-text-primary);
}
.sg-btn--outline:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  color: var(--sg-text-primary);
}

.sg-btn--green {
  background: var(--sg-green);
  color: #0f212e;
}
.sg-btn--green:hover {
  background: #00cc01;
  color: #0f212e;
}

.sg-btn--ghost {
  background: var(--sg-bg-elevated);
  color: var(--sg-text-muted);
  border: 1px solid var(--sg-border);
}
.sg-btn--ghost:hover {
  color: var(--sg-text-primary);
  background: #2a4455;
}

.sg-btn--sm {
  padding: 6px 14px;
  font-size: 12px;
}

/* =============================================
   SIDEBAR
============================================= */
.sg-sidebar {
  position: fixed;
  top: var(--sg-header-h);
  left: 0;
  bottom: 0;
  width: var(--sg-sidebar-w);
  background: var(--sg-bg-main);
  border-right: 1px solid var(--sg-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  z-index: 900;
  overflow: hidden;
}

.sg-sidebar__item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  cursor: pointer;
  color: var(--sg-text-muted);
  font-size: 10px;
  font-weight: 500;
  gap: 4px;
  transition: color var(--sg-transition), background var(--sg-transition);
  border-radius: 6px;
  margin: 1px 4px;
  text-decoration: none;
}

.sg-sidebar__item:hover {
  color: var(--sg-text-primary);
  background: var(--sg-bg-elevated);
}

.sg-sidebar__icon {
  font-size: 18px;
  line-height: 1;
}

/* Sidebar overlay for mobile */
.sg-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 850;
}

.sg-sidebar-overlay.active { display: block; }

/* =============================================
   MAIN LAYOUT
============================================= */
.sg-main {
  margin-top: var(--sg-header-h);
  padding-left: var(--sg-sidebar-w);
  min-height: calc(100vh - var(--sg-header-h));
}

.sg-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  overflow-x: hidden;
}

/* =============================================
   GAME AREA
============================================= */
.sg-game-area {
  background: var(--sg-bg-card);
  border-radius: var(--sg-radius-game);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sg-border);
  margin-bottom: 12px;
}

.sg-game-area__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.sg-game-area__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  background: rgba(15, 33, 46, 0.65);
  backdrop-filter: blur(2px);
  padding: 24px;
}

.sg-game-area__icon {
  width: 64px;
  height: 64px;
  background: var(--sg-bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--sg-text-muted);
}

.sg-game-area__message {
  font-size: 16px;
  font-weight: 600;
  color: var(--sg-text-primary);
  margin: 0;
}

.sg-game-area__sub {
  font-size: 13px;
  color: var(--sg-text-muted);
  margin: -12px 0 0;
}

.sg-game-area__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.sg-game-area__footer {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 40px;
  background: rgba(15,33,46,0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-top: 1px solid var(--sg-border);
}

.sg-game-area__controls {
  display: flex;
  gap: 14px;
}

.sg-game-area__ctrl-icon {
  color: var(--sg-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color var(--sg-transition);
}
.sg-game-area__ctrl-icon:hover { color: var(--sg-text-primary); }

.sg-game-area__brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--sg-green);
  letter-spacing: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* =============================================
   PROVIDER BAR
============================================= */
.sg-provider-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.sg-provider-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sg-provider-icon {
  width: 48px;
  height: 48px;
  background: var(--sg-bg-elevated);
  border-radius: var(--sg-radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sg-border);
  color: var(--sg-text-primary);
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
}

.sg-provider-info__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--sg-text-primary);
  margin-bottom: 2px;
}

.sg-provider-info__players {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sg-text-muted);
}

.sg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sg-green);
  display: inline-block;
  flex-shrink: 0;
}

.sg-provider-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-heart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sg-bg-elevated);
  border: 1px solid var(--sg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--sg-text-muted);
  font-size: 15px;
  transition: all var(--sg-transition);
}
.sg-heart-btn:hover { color: #ed4163; border-color: #ed4163; }

/* =============================================
   TITLE SECTION
============================================= */
.sg-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.sg-title-section__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sg-game-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--sg-text-primary);
}

.sg-save-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sg-bg-elevated);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sg-text-muted);
  cursor: pointer;
  transition: all var(--sg-transition);
  text-decoration: none;
}
.sg-save-btn:hover { color: var(--sg-text-primary); border-color: rgba(255,255,255,0.2); }

.sg-maxwin-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sg-bg-pill);
  border-radius: var(--sg-radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-text-primary);
}

/* =============================================
   TABS
============================================= */
.sg-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  background: var(--sg-bg-elevated);
  border-radius: var(--sg-radius-pill);
  padding: 4px;
  width: fit-content;
}

.sg-tab {
  padding: 7px 16px;
  border-radius: var(--sg-radius-pill);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--sg-text-muted);
  transition: all var(--sg-transition);
  white-space: nowrap;
}

.sg-tab:hover { color: var(--sg-text-primary); }

.sg-tab--active {
  background: #ffffff;
  color: #0f212e;
  font-weight: 600;
}
.sg-tab--active:hover { color: #0f212e; }

/* =============================================
   DESCRIPTION SECTION
============================================= */
.sg-description {
  margin-bottom: 32px;
}

.sg-description__thumb {
  width: 100%;
  max-width: 180px;
  border-radius: var(--sg-radius-card);
  overflow: hidden;
  margin-bottom: 14px;
}

.sg-description__thumb img {
  width: 100%;
  display: block;
  border-radius: var(--sg-radius-card);
}

.sg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.sg-tag {
  background: var(--sg-bg-pill);
  border-radius: var(--sg-radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sg-text-muted);
  white-space: nowrap;
}

/* SEO content styling */
.sg-seo-content h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--sg-text-primary);
  margin-top: 22px;
  margin-bottom: 10px;
}

.sg-seo-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--sg-text-primary);
  margin-top: 18px;
  margin-bottom: 8px;
}

.sg-seo-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--sg-text-secondary);
  margin-top: 14px;
  margin-bottom: 6px;
}

.sg-seo-content p {
  color: var(--sg-text-muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.sg-seo-content ul {
  color: var(--sg-text-muted);
  font-size: 13.5px;
  padding-left: 20px;
  margin-bottom: 12px;
}

.sg-seo-content li { margin-bottom: 4px; }

.sg-seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}

.sg-seo-content th {
  background: var(--sg-bg-pill);
  color: var(--sg-text-muted);
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--sg-border);
}

.sg-seo-content td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--sg-border);
  color: var(--sg-text-primary);
}

.sg-seo-content tr:nth-child(even) td {
  background: var(--sg-bg-elevated);
}

/* =============================================
   GAME INFO TABLE
============================================= */
.sg-info-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--sg-radius-card);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--sg-border);
  font-size: 13px;
}

.sg-info-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--sg-border);
}

.sg-info-table tr:last-child td {
  border-bottom: none;
}

.sg-info-table tr:nth-child(odd) td {
  background: var(--sg-bg-elevated);
}

.sg-info-table tr:nth-child(even) td {
  background: var(--sg-bg-card);
}

.sg-info-table td:first-child {
  color: var(--sg-text-muted);
  width: 40%;
  font-weight: 500;
}

.sg-info-table td:last-child {
  color: var(--sg-text-primary);
  font-weight: 600;
}

/* =============================================
   RECOMMENDED GAMES
============================================= */
.sg-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--sg-text-primary);
  margin-bottom: 14px;
}

.sg-games-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 32px;
}

.sg-games-row {
  display: flex;
  gap: 10px;
  width: max-content;
}

.sg-game-card {
  width: 120px;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}

.sg-game-card__img-wrap {
  position: relative;
  width: 120px;
  height: 157px;
  border-radius: var(--sg-radius-card);
  overflow: hidden;
  margin-bottom: 8px;
}

.sg-game-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.sg-game-card:hover .sg-game-card__img-wrap img {
  transform: scale(1.05);
}

.sg-game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--sg-transition);
  border-radius: var(--sg-radius-card);
}

.sg-game-card__overlay i {
  font-size: 28px;
  color: #fff;
}

.sg-game-card:hover .sg-game-card__overlay { opacity: 1; }

.sg-game-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--sg-text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-game-card__provider {
  font-size: 11px;
  color: var(--sg-text-muted);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-game-card__players {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--sg-text-muted);
}

/* =============================================
   LIVE BETS TABLE
============================================= */
.sg-bets-section {
  margin-bottom: 40px;
}

.sg-bets-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--sg-border);
}

.sg-bets-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sg-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--sg-transition);
}

.sg-bets-tab:hover { color: var(--sg-text-primary); }

.sg-bets-tab--active {
  color: var(--sg-text-primary);
  border-bottom-color: var(--sg-green);
  font-weight: 600;
}

.sg-bets-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sg-border);
  border-top: none;
  border-radius: 0 0 var(--sg-radius-card) var(--sg-radius-card);
}

.sg-bets-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 13px;
}

.sg-bets-table th {
  background: var(--sg-bg-elevated);
  color: var(--sg-text-muted);
  font-weight: 500;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--sg-border);
  white-space: nowrap;
}

.sg-bets-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--sg-border);
  color: var(--sg-text-primary);
  white-space: nowrap;
}

.sg-bets-table tr:last-child td { border-bottom: none; }

.sg-bets-table tr:nth-child(even) td { background: rgba(33,55,67,0.4); }

.sg-bets-table tr:hover td { background: var(--sg-bg-elevated); transition: background 0.1s; }

.sg-bet-game {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sg-bet-game__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--sg-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sg-payout-win { color: var(--sg-green); font-weight: 600; }
.sg-payout-loss { color: var(--sg-red); font-weight: 600; }

.sg-multiplier { color: var(--sg-text-muted); font-size: 12px; }

/* =============================================
   FOOTER
============================================= */
.sg-footer {
  background: var(--sg-bg-header);
  border-top: 1px solid var(--sg-border);
  padding: 40px 0 24px;
  margin-left: var(--sg-sidebar-w);
}

.sg-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.sg-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.sg-footer__col {
  flex: 1;
  min-width: 110px;
}

.sg-footer__col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sg-text-primary);
  margin-bottom: 14px;
}

.sg-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sg-footer__col li {
  margin-bottom: 8px;
}

.sg-footer__col a {
  color: var(--sg-text-muted);
  font-size: 13px;
  transition: color var(--sg-transition);
}

.sg-footer__col a:hover { color: var(--sg-text-primary); }

.sg-footer__divider {
  border-color: var(--sg-border);
  margin: 0 0 24px;
}

.sg-footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.sg-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sg-bg-elevated);
  border: 1px solid var(--sg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--sg-text-muted);
  cursor: pointer;
  transition: all var(--sg-transition);
  text-decoration: none;
}
.sg-social-icon:hover { color: var(--sg-text-primary); border-color: rgba(255,255,255,0.25); }

.sg-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sg-footer__copyright {
  font-size: 13px;
  color: var(--sg-text-muted);
}

.sg-footer__legal {
  font-size: 12px;
  color: #6b7a8a;
  max-width: 640px;
  line-height: 1.6;
}

/* =============================================
   UTILITY
============================================= */
.sg-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sg-view-all {
  font-size: 12px;
  font-weight: 500;
  color: var(--sg-text-muted);
  cursor: pointer;
  transition: color var(--sg-transition);
  text-decoration: none;
}
.sg-view-all:hover { color: var(--sg-green); }

/* =============================================
   RESPONSIVE — TABLET (≤ 991px)
============================================= */
@media (max-width: 991px) {
  /* Hide sidebar, remove left offset everywhere */
  .sg-sidebar { display: none !important; }
  .sg-main { padding-left: 0; }
  .sg-footer { margin-left: 0; }

  /* Header */
  .sg-header { padding: 0 12px; }
  .sg-logo svg { width: 24px; height: 24px; }
  .sg-logo { font-size: 18px; gap: 6px; }
  .sg-btn { padding: 7px 14px; font-size: 12px; }

  /* Content area — proper padding */
  .sg-content { padding: 14px 14px 32px; max-width: 100%; }

  /* Game area — slightly taller */
  .sg-game-area { aspect-ratio: 16/10; border-radius: 8px; }
  .sg-game-area__message { font-size: 15px; }
  .sg-game-area__sub { font-size: 12px; }

  /* Provider bar */
  .sg-provider-bar { flex-wrap: wrap; gap: 10px; padding: 14px 0; }

  /* Title */
  .sg-title-section { flex-wrap: wrap; gap: 10px; }
  .sg-game-title { font-size: 22px; }

  /* Tabs — horizontal scroll */
  .sg-tabs { overflow-x: auto; flex-wrap: nowrap; gap: 6px; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    width: 100%; max-width: 100%; }
  .sg-tabs::-webkit-scrollbar { display: none; }
  .sg-tab { flex-shrink: 0; }

  /* Info table */
  .sg-info-table { font-size: 12px; }
  .sg-info-table td { padding: 10px 12px; }

  /* Bets table — ensure horizontal scroll */
  .sg-bets-table-wrap { -webkit-overflow-scrolling: touch; }

  /* Footer — 3x2 grid on tablet */
  .sg-footer__cols { gap: 24px; }
  .sg-footer__col { flex: 1 1 28%; min-width: 140px; }
  .sg-footer__inner { padding: 24px 16px; }

  /* SEO content table overflow */
  .sg-seo-content { overflow-x: auto; }
  .sg-seo-content table { font-size: 12px; min-width: 400px; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 767px)
============================================= */
@media (max-width: 767px) {
  /* Header compact */
  .sg-header { height: 50px; padding: 0 10px; }
  .sg-main { margin-top: 50px; }
  .sg-btn--outline { display: none; } /* Hide "Se Connecter", keep "Enregistrement" */
  .sg-btn { padding: 6px 14px; font-size: 12px; }
  .sg-logo { font-size: 16px; }

  /* Content */
  .sg-content { padding: 10px 10px 24px; }

  /* Game area — square on mobile */
  .sg-game-area { aspect-ratio: 4/3; border-radius: 6px; }
  .sg-game-area__buttons { flex-direction: column; gap: 8px; }
  .sg-game-area__buttons .sg-btn { width: 100%; text-align: center; padding: 10px; }
  .sg-game-area__message { font-size: 14px; padding: 0 16px; }
  .sg-game-area__sub { font-size: 11px; }

  /* Provider bar — stack */
  .sg-provider-bar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0; }
  .sg-provider-icon { width: 36px; height: 36px; }

  /* Title — stack + smaller */
  .sg-title-section { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0; }
  .sg-game-title { font-size: 20px; }
  .sg-title-section__right { width: 100%; justify-content: flex-start; }

  /* Tabs — smaller pills */
  .sg-tab { font-size: 12px; padding: 7px 14px; }

  /* Description — thumbnail centered above content */
  .sg-description__thumb { max-width: 120px; margin: 0 auto 12px; }
  .sg-tags { justify-content: center; margin-bottom: 12px; }
  .sg-tag { font-size: 11px; }

  /* SEO content — readable sizes */
  .sg-seo-content h2 { font-size: 16px; margin-top: 18px; }
  .sg-seo-content h3 { font-size: 14px; margin-top: 14px; }
  .sg-seo-content h4 { font-size: 13px; margin-top: 12px; }
  .sg-seo-content p, .sg-seo-content li { font-size: 13px; line-height: 1.65; }
  .sg-seo-content ul { padding-left: 18px; }
  .sg-seo-content table { font-size: 11.5px; }
  .sg-seo-content th, .sg-seo-content td { padding: 7px 8px; }

  /* Info table */
  .sg-info-table { font-size: 12px; }
  .sg-info-table td { padding: 9px 10px; }
  .sg-info-table td:first-child { width: 45%; }

  /* Game cards */
  .sg-game-card { width: 110px; }
  .sg-game-card__img-wrap { width: 110px; height: 144px; }
  .sg-game-card__name { font-size: 11px; }
  .sg-game-card__provider { font-size: 10px; }
  .sg-game-card__players { font-size: 10px; }

  /* Bets table */
  .sg-bets-table { font-size: 12px; }
  .sg-bets-table th, .sg-bets-table td { padding: 8px 10px; }
  .sg-bets-tab { padding: 8px 14px; font-size: 12px; }

  /* Footer — 2 columns */
  .sg-footer { padding: 24px 0 16px; }
  .sg-footer__cols { gap: 20px; }
  .sg-footer__col { flex: 1 1 45%; min-width: 130px; }
  .sg-footer__col-title { font-size: 12px; margin-bottom: 10px; }
  .sg-footer__col a { font-size: 12px; }
  .sg-footer__social { gap: 10px; }
  .sg-social-icon { width: 40px; height: 40px; font-size: 16px; } /* Bigger touch targets */
  .sg-footer__copyright { font-size: 12px; }
  .sg-footer__legal { font-size: 11px; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
============================================= */
@media (max-width: 480px) {
  .sg-header { height: 46px; }
  .sg-main { margin-top: 46px; }
  .sg-content { padding: 8px 8px 20px; }
  .sg-logo { font-size: 15px; }
  .sg-logo svg { width: 20px; height: 20px; }

  /* Game area — no full bleed to avoid horizontal scroll */
  .sg-game-area { aspect-ratio: 1/1; border-radius: 4px; }
  .sg-game-area__icon { font-size: 28px; }
  .sg-game-area__message { font-size: 13px; }

  /* Title */
  .sg-game-title { font-size: 18px; }

  /* Description */
  .sg-description__thumb { max-width: 100px; }
  .sg-tag { font-size: 10px; padding: 4px 8px; }

  /* SEO */
  .sg-seo-content h2 { font-size: 15px; }
  .sg-seo-content h3 { font-size: 13.5px; }
  .sg-seo-content h4 { font-size: 12.5px; }
  .sg-seo-content p, .sg-seo-content li { font-size: 12.5px; }
  .sg-seo-content table { font-size: 11px; }
  .sg-seo-content th, .sg-seo-content td { padding: 5px 6px; }

  /* Game cards */
  .sg-game-card { width: 100px; }
  .sg-game-card__img-wrap { width: 100px; height: 131px; }

  /* Footer — single column */
  .sg-footer__cols { flex-direction: column; gap: 16px; }
  .sg-footer__col { flex: 1 1 100%; min-width: 100%; }
  .sg-footer__col-title { font-size: 13px; }
  .sg-footer__col a { font-size: 12px; }
  .sg-social-icon { width: 42px; height: 42px; font-size: 17px; }
}

/* =============================================
   RESPONSIVE — TINY MOBILE (≤ 360px)
============================================= */
@media (max-width: 360px) {
  .sg-content { padding: 6px 6px 16px; }
  .sg-game-area { border-radius: 4px; }
  .sg-game-title { font-size: 16px; }
  .sg-tab { font-size: 11px; padding: 6px 10px; }
  .sg-game-card { width: 90px; }
  .sg-game-card__img-wrap { width: 90px; height: 118px; }
  .sg-btn { padding: 5px 10px; font-size: 11px; }
  .sg-info-table td { padding: 7px 8px; font-size: 11px; }
}

