/* BassBet palette: midnight blue + emerald CTA + amber accents (reference CSS) */
:root {
  --bg-main:#000d43; --bg-deep:#00082c; --bg-secondary:#00184f; --bg-card:#001343; --bg-card-hover:#001e59;
  --bg-sidebar:#00103a; --bg-header:#000a30; --bg-input:rgba(0,156,255,.10); --bg-notif:#00184f; --bg-footer:#00082c;
  --color-primary:#00ff55; --color-primary-light:#66ff99; --color-primary-dark:#009933; --stb-brand-600:0 255 85;
  --color-accent:#009cff; --color-accent-light:#85c4ff; --color-success:#00ffcc; --color-success-bright:#66ffe0;
  --color-new:#00ffcc; --color-highlight:#f5df0b;
  --color-primary-rgb:0,255,85; --color-accent-rgb:0,156,255;
  --cta-bg:linear-gradient(180deg,#00ff55 0%,#009933 60%,#00665e 100%);
  --cta-bg-hover:linear-gradient(180deg,#33ff77 0%,#00b33b 60%,#007a70 100%);
  --cta-glow:0 6px 20px rgba(0,255,85,.30); --cta-text:#00200f;
  --color-text:#fff; --color-text-muted:#85c4ff; --color-text-dim:#70b3ff; --color-border:rgba(0,133,255,.3);
}
body{font-family:'Montserrat',sans-serif}
h1,h2,h3,.hero-slide__title,.sg-section__title,.faq__title{font-family:'Barlow Condensed','Barlow',sans-serif}
/* BassBet skin — loaded AFTER style.css. Cave-dark page, full-bleed hero with
   offers card, portrait game grids. Sidebar/header/footer layouts untouched. */

:root { --sg-w: 1180px; }

/* ---------- Page backdrop ---------- */
.main-area {
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(0, 133, 255, .30), transparent 62%),
    radial-gradient(800px 560px at 0% 100%, rgba(0, 255, 204, .10), transparent 60%),
    radial-gradient(700px 500px at 100% 70%, rgba(0, 90, 200, .22), transparent 60%),
    #000d43;
}
.site-header { background: rgba(0, 8, 40, .86); backdrop-filter: blur(10px); }

/* ---------- Hero ---------- */
.sg-hero {
  position: relative;
  margin: 0 0 6px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.sg-hero .hero-slider {
  height: clamp(290px, 32vw, 400px);
  background: #001343 url(/assets/image/hero/ocean-bg.svg) center / cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 97% 96%, 94% 91%, 90% 97%, 86% 92%, 82% 98%, 77% 92%, 72% 97%, 67% 91%, 62% 96%, 57% 92%, 52% 98%, 47% 92%, 42% 97%, 37% 91%, 32% 96%, 27% 92%, 22% 98%, 17% 92%, 12% 96%, 7% 91%, 3% 96%, 0 91%);
}
.sg-hero .hero-slide {
  background: transparent;
  padding: 0 0 0 max(22px, calc((100% - var(--sg-w)) / 2 + 16px));
}
.sg-hero .hero-slide::before {
  background: linear-gradient(90deg, rgba(0, 8, 40, .55) 0%, rgba(0, 8, 40, .15) 45%, transparent 70%);
}
.sg-hero .hero-slide__content { max-width: min(320px, 46%); }
.sg-hero .hero-slide__title {
  display: flex; flex-direction: column; gap: 0;
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 12px;
}
.sg-hero .hero-slide__title em {
  font-size: inherit; font-weight: 800; letter-spacing: inherit;
  color: var(--color-primary);
  text-shadow: 0 0 22px rgba(0, 255, 85, .35);
}
.sg-hero .hero-slide__sub {
  font-size: clamp(13px, 1.5vw, 16px); font-weight: 700; color: #fff;
  -webkit-line-clamp: 3; margin-bottom: clamp(14px, 2.4vw, 24px);
}
.sg-hero .btn-hero {
  font-size: 14px; padding: 12px 26px;
  border: 2px solid rgba(255, 244, 150, .9);
  box-shadow: 0 0 0 3px rgba(0, 255, 85, .22), 0 8px 26px rgba(0, 255, 85, .35);
}
.sg-hero .hero-slide__image {
  left: 50%; right: auto; width: min(520px, 56%);
  transform: translateX(-50%);
  align-items: flex-end; justify-content: center;
}
.sg-hero .hero-slide__image img { object-fit: contain; object-position: center bottom; }
.sg-hero .slider-dots { bottom: 26px; }
.sg-hero .slider-dot { background: rgba(255, 255, 255, .35); }
.sg-hero .slider-dot.active { background: var(--color-primary); }
.sg-hero .slider-arrow { display: none; }

/* Offers card (right side on desktop) */
.hero-offers {
  position: absolute;
  top: 34px;
  right: max(16px, calc((100% - var(--sg-w)) / 2 + 8px));
  width: 236px;
  padding: 12px 12px 6px;
  background: rgba(14, 16, 41, .78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45);
  z-index: 5;
}
.hero-offers__title { font-size: 17px; font-weight: 800; color: #fff; text-transform: uppercase; line-height: 1.1; margin: 0 0 8px; }
.hero-offers__title span { display: block; color: var(--color-primary); }
.hero-offers__item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); color: #fff; }
.hero-offers__item:hover strong { color: var(--color-primary); }
.hero-offers__ico { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, #3b1d8c, #7c3aed); color: #ffe45c; }
.hero-offers__ico svg { width: 18px; height: 18px; }
.hero-offers__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hero-offers__txt strong { font-size: 12.5px; font-weight: 700; transition: color .2s; }
.hero-offers__txt small { font-size: 11px; color: var(--color-primary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Game grids ---------- */
.sg-section { max-width: var(--sg-w); margin: 34px auto 0; padding: 0 16px; }
.sg-section__title {
  text-align: center; margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--color-primary);
  text-shadow: 0 0 24px rgba(0, 255, 85, .28);
}
.sg-section__sub { text-align: center; margin: 0 0 18px; font-size: 13px; color: var(--color-text-muted); }
.sg-section__title + .sg-grid { margin-top: 16px; }

.sg-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px 10px; }
.sg-game { display: block; color: #fff; }
.sg-game__tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 427 / 575; border-radius: 10px;
  background: linear-gradient(160deg, hsl(var(--h) 62% 36%), hsl(calc(var(--h) + 34) 58% 13%));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sg-game:hover .sg-game__tile, .sg-game:focus-visible .sg-game__tile { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 133, 255, .45); }
.sg-game__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-game__name { display: none; position: absolute; inset: 0; padding: 10px; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 800; text-transform: uppercase; line-height: 1.2; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.sg-game__tile.is-empty .sg-game__name { display: flex; }
.sg-game__play {
  position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px);
  padding: 7px 18px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--cta-bg); color: var(--cta-text);
  opacity: 0; transition: opacity .2s, transform .2s;
}
.sg-game:hover .sg-game__play, .sg-game:focus-visible .sg-game__play { opacity: 1; transform: translate(-50%, 0); }
.sg-game__prov { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--color-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .sg-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .sg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-offers {
    position: static; width: auto; margin: 14px 14px 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px;
    padding: 12px 14px 4px;
  }
  .hero-offers__title { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .sg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
  .sg-hero .hero-slider { height: 270px; }
  .sg-hero .hero-slide { padding-left: 18px; }
  .sg-hero .hero-slide__content { max-width: 58%; }
  .sg-hero .hero-slide__image { left: auto; right: -8%; width: 62%; transform: none; opacity: .92; }
  .sg-hero .btn-hero { padding: 10px 20px; font-size: 13px; }
}
@media (max-width: 520px) {
  .sg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-section { padding: 0 12px; margin-top: 28px; }
  .hero-offers { grid-template-columns: 1fr; margin: 12px 12px 0; }
  .sg-game__name { font-size: 10px; padding: 6px; overflow-wrap: anywhere; }
}
@media (hover: none) { .sg-game__play { display: none; } }
@media (prefers-reduced-motion: reduce) { .sg-game__tile, .sg-game__play { transition: none; } }

/* Footer has 4 link columns now (was 5) */
@media (min-width: 1000px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }


.sg-grid > [hidden] { display: none !important; }

/* ---------- In-text figures ---------- */
.content-figure { margin: 22px 0 26px; }
.content-figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: #12142e; }
.content-figure figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--color-text-dim, #9a9ebe); }

/* ---------- Header nav ---------- */
.header__nav { display: none; gap: 4px; margin-left: 14px; }
.header__nav a {
  font: 700 14px/1 'Barlow', sans-serif; letter-spacing: .04em; text-transform: uppercase;
  color: #85c4ff; padding: 10px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.header__nav a:hover { color: #fff; background: rgba(0, 156, 255, .16); }
@media (min-width: 1180px) { .header__nav { display: flex; } }

/* ---------- Welcome modal (centered) ---------- */
.bb-modal {
  position: fixed; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 6, 28, .72); backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.bb-modal.promo-popup--visible { opacity: 1; visibility: visible; }
.bb-modal__box {
  position: relative; width: min(420px, 100%); overflow: hidden; border-radius: 20px;
  background: linear-gradient(180deg, #00205f 0%, #001343 60%, #000d43 100%);
  border: 1px solid rgba(0, 156, 255, .45);
  box-shadow: 0 0 0 4px rgba(0, 156, 255, .10), 0 24px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(0, 133, 255, .25);
  transform: translateY(18px) scale(.96); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.bb-modal.promo-popup--visible .bb-modal__box { transform: none; }
.bb-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(0, 8, 40, .6);
  border: 1px solid rgba(133, 196, 255, .4); cursor: pointer; transition: background .15s;
}
.bb-modal__close:hover { background: rgba(0, 156, 255, .35); }
.bb-modal__close svg { width: 16px; height: 16px; }
.bb-modal__art { position: relative; height: 130px; background: radial-gradient(260px 120px at 50% 0, rgba(0, 156, 255, .45), transparent 70%); }
.bb-modal__art svg { width: 100%; height: 100%; display: block; }
.bb-modal__badge {
  position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); white-space: nowrap;
  font: 800 12px/1 'Barlow', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #3a2600;
  padding: 8px 16px; border-radius: 999px; background: linear-gradient(180deg, #f5df0b, #ff9110);
  box-shadow: 0 6px 18px rgba(255, 145, 16, .4);
}
.bb-modal__body { padding: 30px 26px 24px; text-align: center; }
.bb-modal__title { display: block; font: 800 clamp(28px, 7vw, 36px)/1.05 'Barlow Condensed', sans-serif; text-transform: uppercase; color: #fff; }
.bb-modal__list { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 8px; }
.bb-modal__list li {
  font-size: 14px; color: #bcdcff; padding: 9px 12px; border-radius: 10px;
  background: rgba(0, 133, 255, .12); border: 1px solid rgba(0, 156, 255, .22);
}
.bb-modal__list b { color: #00ff55; font-weight: 800; }
.bb-modal__cta {
  display: block; padding: 15px 20px; border-radius: 12px; font: 800 16px/1 'Barlow', sans-serif; letter-spacing: .04em;
  text-transform: uppercase; color: #00200f; background: var(--cta-bg);
  border: 2px solid rgba(180, 255, 205, .8); box-shadow: 0 0 0 3px rgba(0, 255, 85, .18), var(--cta-glow);
  transition: filter .15s, transform .15s;
}
.bb-modal__cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bb-modal__note { display: block; margin-top: 12px; font-size: 11px; color: #70b3ff; }

/* ---------- Footer brand ---------- */
.site-footer { background: linear-gradient(180deg, #00103a 0%, #00082c 100%); border-top: 1px solid rgba(0, 156, 255, .3); }
.footer__grid--brand { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.footer__col--brand .footer__logo img { height: 40px; width: auto; display: block; margin-bottom: 12px; }
.footer__about { font-size: 13px; line-height: 1.6; color: #85c4ff; margin: 0 0 14px; max-width: 280px; }
.footer__cta {
  display: inline-block; padding: 11px 24px; border-radius: 10px; font: 800 14px/1 'Barlow', sans-serif; letter-spacing: .05em;
  text-transform: uppercase; color: #00200f; background: var(--cta-bg); border: 2px solid rgba(180, 255, 205, .7);
  box-shadow: var(--cta-glow);
}
.footer__col-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.footer__chip { border-color: rgba(0, 156, 255, .35); background: rgba(0, 133, 255, .10); color: #bcdcff; }
.footer__chip:hover { border-color: #00ffcc; color: #00ffcc; }
@media (max-width: 1024px) { .footer__grid--brand { grid-template-columns: 1fr 1fr 1fr; } .footer__col--brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer__grid--brand { grid-template-columns: 1fr 1fr; } }
