/* Slotsgem 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(124, 58, 237, .30), transparent 62%),
    radial-gradient(800px 560px at 0% 100%, rgba(255, 122, 40, .10), transparent 60%),
    radial-gradient(700px 500px at 100% 70%, rgba(80, 40, 160, .22), transparent 60%),
    #0b0c21;
}
.site-header { background: rgba(7, 8, 22, .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: #0a0b24 url(/assets/image/hero/cave-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(7, 8, 22, .55) 0%, rgba(7, 8, 22, .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(255, 212, 0, .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(255, 212, 0, .22), 0 8px 26px rgba(255, 212, 0, .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(255, 212, 0, .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(124, 58, 237, .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); }
