/* Spinanga Casino global template */
:root {
  --sp-bg: #05172a;
  --sp-well: #0d2842;
  --sp-card: #123253;
  --sp-ink: #e8f3f7;
  --sp-muted: #8fb0c4;
  --sp-teal: #00e3a9;
  --sp-teal-soft: #5cffd2;
  --sp-gold: #ffc72c;
  --sp-cta-teal-text: #04372c;
  --sp-cta-gold-text: #5d3200;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.sp-body {
  font-family: 'Rubik', sans-serif;
  color: var(--sp-ink);
  background: var(--sp-bg);
  min-height: 100vh;
}
a { color: var(--sp-teal); text-decoration: none; }
a:hover { color: var(--sp-teal-soft); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.noscroll { scrollbar-width: none; -ms-overflow-style: none; }
.noscroll::-webkit-scrollbar { display: none; }

.sp-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--sp-bg);
}

.sp-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: var(--sp-bg);
  border-right: 1px solid rgba(0,227,169,.12);
  z-index: 40;
}
.sp-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 14px 24px;
  overflow-y: auto;
}
.sp-sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  flex: 0 0 auto;
}
.sp-logo {
  max-width: 196px;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sp-logo--header {
  max-width: 140px;
  max-height: 48px;
}
.sp-drawer-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,227,169,.35);
  background: rgba(13,40,66,.9);
  color: var(--sp-teal);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sp-nav-slot--desktop .sp-main-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 20px;
}
.sp-nav-slot--desktop .sp-main-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 18px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #dff0f7;
  background-image: url('/wp-content/uploads/spinanga/spinanga-nav-plate.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: filter .15s ease, color .15s ease;
}
.sp-nav-slot--desktop .sp-main-link:hover,
.sp-nav-slot--desktop .sp-main-link.is-active {
  color: var(--sp-gold);
  filter: brightness(1.08);
}

.sp-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(2,10,20,.55);
}
.sp-scrim[hidden] { display: none; }

.sp-main { min-width: 0; display: flex; flex-direction: column; }

.sp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 96px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(5,23,42,.96), rgba(5,23,42,.72));
  backdrop-filter: blur(6px);
}
.sp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sp-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0,227,169,.35);
  background: rgba(13,40,66,.85);
  color: var(--sp-teal);
  cursor: pointer;
  padding: 0;
}
.sp-burger-lines {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.sp-header-logo { display: none; }
.sp-header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Second MENU_$1 kept for CMS; never show as header chips (drawer uses sidebar). */
.sp-nav-slot--mobile { display: none !important; }

.sp-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  background-color: transparent;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: filter .15s ease, transform .12s ease;
  white-space: nowrap;
}
.sp-btn:hover { filter: brightness(1.1); }
.sp-btn:active { transform: translateY(1px) scale(.99); }
.sp-btn--teal {
  min-width: 104px;
  min-height: 46px;
  padding: 9px 26px;
  font-size: 16px;
  color: var(--sp-cta-teal-text);
  background-image: url('/wp-content/uploads/spinanga/spinanga-cta-teal.webp');
}
.sp-btn--gold {
  min-width: 116px;
  min-height: 46px;
  padding: 9px 26px;
  font-size: 16px;
  color: var(--sp-cta-gold-text);
  background-image: url('/wp-content/uploads/spinanga/spinanga-cta-gold.webp');
}
.sp-btn--hero {
  min-width: 200px;
  min-height: 60px;
  padding: 12px 34px;
  font-size: 20px;
  font-weight: 800;
}

.sp-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-color: #0a2138;
  background-size: auto 100%;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.sp-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a2138 0%, rgba(10,33,56,.88) 38%, rgba(10,33,56,.15) 72%, rgba(10,33,56,0) 100%);
  pointer-events: none;
}
.sp-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 42%;
  padding: 40px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.sp-hero-title {
  margin: 0;
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.sp-hero-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #c9e0ec;
  max-width: 36ch;
}

.sp-pad {
  background: var(--sp-well);
  padding: 8px 32px 56px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sp-h2 {
  margin: 0;
  font-family: 'Baloo 2', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.sp-frame {
  border: 34px solid transparent;
  border-image: url('/wp-content/uploads/spinanga/spinanga-games-frame.webp') 110 fill stretch;
  background: rgba(4,18,31,.35);
}

.sp-games-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
}
.sp-game-wrap {
  flex: 0 0 calc((100% - 80px) / 6);
  min-width: 160px;
  scroll-snap-align: start;
}
.sp-game-wrap--jp { min-width: 150px; }
.sp-game-wrap--hidden { display: none !important; }

.sp-game {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #04121f;
  cursor: pointer;
  aspect-ratio: 2 / 3;
  position: relative;
  transition: transform .15s ease, filter .15s ease;
}
.sp-game:hover { transform: translateY(-2px); filter: brightness(1.08); }
.sp-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-game--jp { aspect-ratio: auto; }
.sp-game--jp img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.sp-jp-bar {
  display: block;
  width: 100%;
  padding: 8px 10px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #4a2800;
  background: linear-gradient(180deg, #ffd54a, #ffb400);
}

.sp-text-card {
  background: var(--sp-card);
  border-radius: 10px;
  padding: 36px 40px;
  border: 1px solid rgba(0,227,169,.12);
}
.sp-content {
  font-size: 16px;
  line-height: 1.65;
  color: #c9e0ec;
}
.sp-content h1, .sp-content h2, .sp-content h3 {
  font-family: 'Baloo 2', sans-serif;
  color: #fff;
  line-height: 1.2;
}
.sp-content a { color: var(--sp-teal); }
.sp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.sp-content th, .sp-content td {
  border: 1px solid rgba(0,227,169,.18);
  padding: 10px 12px;
  text-align: left;
}
.sp-content-cta {
  display: flex;
  justify-content: center;
  padding: 8px 0 12px;
}

.sp-all-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px;
}
.sp-all-grid .sp-game-wrap {
  flex: none;
  min-width: 0;
  width: auto;
}
.sp-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.sp-pay-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.sp-pay-wrap { flex: 0 0 auto; }
.sp-pay {
  width: 128px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background-image: url('/wp-content/uploads/spinanga/spinanga-pay-plate.webp');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: filter .15s ease;
}
.sp-pay:hover { filter: brightness(1.12); }
.sp-pay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sp-footer {
  background: var(--sp-bg);
  padding: 44px 32px 28px;
  border-top: 1px solid rgba(0,227,169,.12);
}
.sp-footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.sp-footer-logo {
  max-width: 180px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.sp-nav-slot--footer .sp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px 28px;
  max-width: 820px;
}
.sp-nav-slot--footer .sp-footer-link {
  font-size: 14px;
  font-weight: 500;
  color: #bcd6e4;
}
.sp-nav-slot--footer .sp-footer-link:hover { color: var(--sp-teal-soft); }
.sp-footer-bar {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,227,169,.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--sp-muted);
  font-size: 13px;
}
.sp-age { font-family: 'Baloo 2', sans-serif; font-weight: 600; color: #dff0f7; }

@media (max-width: 1280px) {
  .sp-all-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .sp-game-wrap { flex-basis: calc((100% - 64px) / 5); }
}

@media (max-width: 1024px) {
  .sp-shell { grid-template-columns: 1fr; }
  .sp-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(282px, 86vw);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform .28s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.45);
    z-index: 90;
  }
  .sp-sidebar.is-open { transform: none; }
  .sp-sidebar-inner { position: relative; }
  .sp-drawer-close { display: inline-flex; align-items: center; justify-content: center; }
  .sp-burger { display: inline-flex; }
  .sp-header-logo { display: flex; }
  .sp-header { height: 72px; padding: 0 16px; }
}

@media (max-width: 900px) {
  .sp-all-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sp-frame { border-width: 18px; }
  .sp-hero {
    min-height: 460px;
    align-items: flex-end;
    background-size: auto 58%;
    background-position: right bottom;
  }
  .sp-hero-scrim {
    background: linear-gradient(180deg, rgba(10,33,56,.2) 0%, rgba(10,33,56,.55) 40%, rgba(10,33,56,.95) 78%);
  }
  .sp-hero-copy {
    width: 100%;
    max-width: none;
    padding: 24px 18px 32px;
    align-items: center;
    text-align: center;
  }
  .sp-hero-lead { max-width: 34ch; }
  .sp-pad { padding: 8px 16px 40px; gap: 28px; }
  .sp-text-card { padding: 24px 18px; }
  .sp-game-wrap { min-width: 132px; flex-basis: 42%; }
}

@media (max-width: 720px) {
  .sp-all-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
  }
  .sp-all-grid .sp-game-wrap {
    flex: 0 0 84px;
    min-width: 84px;
  }
  .sp-footer-logo { display: none; }
  .sp-nav-slot--footer .sp-footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 11px;
  }
  .sp-btn--teal, .sp-btn--gold { min-width: 96px; font-size: 14px; padding: 8px 18px; }
}

@media (max-width: 480px) {
  .sp-header-auth .sp-btn--teal { display: none; }
}

@media (max-width: 768px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}
