/* Local stacks only — Google Fonts @import stalls first paint on slow/blocked networks */
:root {
  --navy: #00042a;
  --navy-soft: #06104a;
  --panel: #07185f;
  --card: #10194f;
  --royal: #2859bd;
  --blue-border: rgba(82, 104, 255, 0.5);
  --yellow: #ffe600;
  --yellow-soft: #fffb75;
  --text: #f5f7ff;
  --muted: #b8c4e6;
  --red: #d81318;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Floating login bar — matches sg8.casino loggedout-wrapper */
.loggedout-wrapper {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100vw - 24px);
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(0, 4, 42, 0.92);
  backdrop-filter: blur(6px);
}
.free30-btn {
  background: linear-gradient(145deg, #ff4d4d, var(--red));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(216 19 24 / 35%);
}
.login-btn {
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 18%);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.95rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.register-btn {
  background: linear-gradient(145deg, var(--yellow-soft), var(--yellow));
  color: #1a1200;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sg8-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, var(--navy-soft), var(--navy));
  border-right: 1px solid rgb(255 230 0 / 12%);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sidebar-logo img { height: 46px; width: auto; margin: 0 auto; }
.vip-banner {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--blue-border);
}
.vip-banner img { width: 100%; height: auto; }
.sg8-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.sg8-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
}
.sg8-nav a:hover,
.sg8-nav a.active {
  color: var(--yellow-soft);
  background: rgb(255 230 0 / 7%);
  border-color: rgb(255 230 0 / 18%);
}
.sg8-nav .arrow { opacity: 0.5; font-size: 0.75rem; }

.main-column { min-width: 0; padding-bottom: 4rem; }

.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--navy-soft);
  border-bottom: 1px solid rgb(255 230 0 / 12%);
}
.mobile-header img { height: 36px; }

.homepage-content { padding: 1rem 1rem 2rem; max-width: 1100px; }

/* Promotion carousel — sg8 promotion-featured-card style */
.promotion-featured { margin-bottom: 1.5rem; }
.promotion-featured h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow-soft);
  margin: 0 0 0.75rem;
}
.promo-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.promo-track::-webkit-scrollbar { height: 6px; }
.promo-track::-webkit-scrollbar-thumb { background: var(--royal); border-radius: 999px; }

.promo-card {
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16 / 9.7;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--blue-border);
  background: var(--card);
  box-shadow: 0 10px 24px rgb(0 0 0 / 28%), inset 0 1px 0 rgb(255 255 255 / 5%);
  cursor: pointer;
  isolation: isolate;
}
.promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgb(0 4 42 / 82%) 100%);
  pointer-events: none;
}
.promo-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem 1rem;
  z-index: 2;
}
.promo-card-name {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.promo-card-desc {
  margin: 0;
  font-size: 0.72rem;
  color: rgb(255 255 255 / 78%);
}
.promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.home-section { margin-bottom: 1.75rem; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--yellow-soft);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}
.section-head a { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.game-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.game-tile {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.game-tile:hover { transform: translateY(-2px); border-color: rgb(106 126 255 / 95%); }
.game-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0a1450;
}
.game-tile .name {
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.provider-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.65rem;
}
.provider-tile {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.provider-tile img {
  height: 32px;
  width: auto;
  margin: 0 auto 0.35rem;
  object-fit: contain;
}
.provider-tile span { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.seo-block {
  background: linear-gradient(145deg, var(--panel), var(--card));
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-top: 1rem;
}
.seo-block h1 {
  margin: 0 0 0.75rem;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  line-height: 1.35;
  color: var(--yellow-soft);
}
.seo-block p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* Footer — sg8.casino */
.sg8-footer-main {
  background: #02031a;
  border-top: 1px solid rgb(255 230 0 / 12%);
  padding: 2rem 1rem 1.25rem;
}
.footer-c1 {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-headline-text {
  margin: 0 0 0.65rem;
  font-weight: 800;
  color: var(--yellow-soft);
  font-size: 0.92rem;
}
.footer-text { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.complianceLogo { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.85rem; }
.complianceLogo img { height: 40px; width: auto; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1rem;
}
.footer-links li { margin-bottom: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.footer-links a:hover { color: var(--yellow-soft); }
.contact-section, .social-section, .app-button {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.contact-section img, .social-section img, .app-button img { height: 32px; width: auto; }
.footer-copy {
  max-width: 1100px;
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 250;
  padding: 0.55rem 0.75rem;
  background: rgba(0, 4, 42, 0.98);
  border-top: 1px solid rgb(255 230 0 / 12%);
  gap: 0.45rem;
}
.mobile-bar button { flex: 1; }

.sport-card .odds {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--yellow-soft);
}

.sport-hero {
  background: linear-gradient(135deg, #0a226f 0%, #10194f 55%, #00042a 100%);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}
.sport-hero h1,
.sport-hero h2 {
  margin: 0 0 0.35rem;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--yellow-soft);
  font-size: 1.2rem;
}
.sport-hero p { margin: 0; color: var(--muted); font-size: 0.88rem; max-width: 520px; }
.sport-hero p a { color: var(--yellow-soft); text-decoration: underline; }

.match-card {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.match-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.match-teams {
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}
.match-odds {
  display: flex;
  gap: 0.45rem;
}
.odd-btn {
  flex: 1;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  padding: 0.45rem 0.35rem;
  text-align: center;
  font-size: 0.75rem;
  cursor: pointer;
}
.odd-btn strong { display: block; color: var(--yellow-soft); font-size: 0.85rem; }

.download-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.download-app-icon { height: 72px; width: auto; }
.btn-lg { padding: 0.65rem 1.25rem; font-size: 0.9rem; }

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.blog-breadcrumb a:hover { color: var(--yellow-soft); }
.blog-breadcrumb span { opacity: 0.55; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}
.blog-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  transition: transform 0.15s, border-color 0.15s;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgb(106 126 255 / 95%);
}
.blog-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yellow-soft);
  background: rgb(255 230 0 / 10%);
  border: 1px solid rgb(255 230 0 / 22%);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
}
.blog-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
}
.blog-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.blog-read {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yellow-soft);
}

.article-header { margin-bottom: 1rem; }
.article-header h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.35rem;
  color: var(--yellow-soft);
  line-height: 1.3;
}
.article-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 640px;
}
.article-body .match-card h2 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--yellow-soft);
}
.article-body .match-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.article-cta { text-align: center; margin: 1.25rem 0 0.5rem; }


.article-section {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.65rem;
}
.article-section h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--yellow-soft);
}
.article-section p {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}
.article-section p:last-child { margin-bottom: 0; }
.article-faq { margin: 1rem 0 0.25rem; }
.article-faq h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--yellow-soft);
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.45rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--text);
}
.faq-item p {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}


.auth-shell {
  max-width: 420px;
  margin: 0.5rem auto 1.5rem;
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.35rem;
}
.auth-shell h1 {
  margin: 0 0 0.45rem;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.35rem;
  color: var(--yellow-soft);
}
.auth-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.auth-form label {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
}
.auth-form input {
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(0 0 0 / 25%);
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  font-size: 0.92rem;
}
.auth-note { margin: 0.85rem 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.auth-links { margin: 0.65rem 0 0; font-size: 0.8rem; color: var(--muted); }
.auth-links a { color: var(--yellow-soft); }


#guides { scroll-margin-top: 1rem; }

.apex-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--blue-border);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
}
.apex-nav a { color: var(--muted); }
.apex-nav a:hover { color: var(--yellow-soft); }
.apex-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 640px;
}
.apex-quick {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.45rem;
}
.apex-quick a {
  display: block;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--blue-border);
  border-radius: 8px;
  background: var(--card);
  color: var(--yellow-soft);
  font-size: 0.8rem;
  font-weight: 700;
}
.apex-quick a:hover { border-color: var(--yellow-soft); }
.variant-footer {
  grid-template-columns: 1fr 1fr;
  max-width: 900px;
}

.variant-intro h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--yellow-soft);
}
.variant-intro > p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 720px;
}
.feature-grid,
.game-grid,
.promo-grid,
.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.feature-item,
.game-item,
.promo-item,
.blog-teaser {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
}
.feature-item h3,
.game-item h3,
.promo-item h3,
.blog-teaser h3 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--yellow-soft);
}
.feature-item p,
.game-item p,
.promo-item p,
.blog-teaser p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.game-item a,
.promo-item a,
.blog-teaser a {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--yellow-soft);
  font-size: 0.78rem;
  font-weight: 700;
}
.faq-list { display: grid; gap: 0.45rem; margin-top: 0.75rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--yellow-soft);
  font-size: 0.88rem;
}
.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.faq-item a { color: var(--yellow-soft); }

@media (max-width: 900px) {
  .variant-footer { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sport-hero { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sg8-sidebar { display: none; }
  .mobile-header { display: flex; }
  .loggedout-wrapper { top: auto; bottom: 4.2rem; right: 8px; flex-direction: column; align-items: stretch; }
  .free30-btn { font-size: 0.72rem; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 4rem; }
  .footer-c1 { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .loggedout-wrapper .login-btn,
  .loggedout-wrapper .register-btn { min-width: 88px; }
}
