/* Shared styles for Casino Websites - consolidated for performance, a11y, and consistency */
:root {
  --bg: #0b0f17;
  --card: #121826;
  --muted: #fff;
  --text: #fff;
  --brand: #39e29f;
  --accent: #ffd166;
  --danger: #ff5c5c;
  --border: #1f2a3b;
  --ink: #081410;
  --max: 1200px;
  --neon1: #00f5a0;
  --neon2: #00d9ff;
  --neon3: #ff6bd6;
  --glow: 0 0 10px rgba(0, 245, 160, 0.35), 0 0 22px rgba(0, 217, 255, 0.25);
  --glow-strong: 0 0 14px rgba(0, 245, 160, 0.6),
    0 0 28px rgba(0, 217, 255, 0.5);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif;
  line-height: 1.6;
}

/* Site-wide background image with dark overlay for readability */
body {
  background-color: var(--bg);
  background-image: linear-gradient(
      rgba(7, 10, 16, 0.78),
      rgba(7, 10, 16, 0.78)
    ),
    url("bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  background: #182235;
  color: #fff;
  border: 1px solid #2b3a52;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 980px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 23, 0.8);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
}

/* Image-based site logo */
.site-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}
.btn {
  padding: 10px 14px;
  border: 1px solid #2b3a52;
  border-radius: 10px;
  color: var(--text);
}
.btn.primary {
  background: var(--brand);
  border-color: transparent;
  color: var(--ink);
  font-weight: 700;
}

/* Hero */
.hero {
  padding: 56px 0;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.hero p {
  color: var(--muted);
  max-width: 840px;
  margin: 0;
}

/* Offers & Cards */
.offers {
  padding: 8px 0 32px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 16px;
}
.section-title h2 {
  margin: 0;
  font-size: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1a2333;
  border: 1px solid #2b3a52;
  color: #fff;
  font-weight: 600;
}

/* Badge placed on a card's top-left corner */
.top-badge {
  position: absolute;
  top: 4px;
  left: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: #bff7ff;
  font-weight: 800;
}

.card {
  background: linear-gradient(180deg, #141c2c, #0f1523 60%);
  border: 1px solid #22304a;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 217, 255, 0.45);
  box-shadow: var(--glow);
}
.card .row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 28px 16px 16px 16px;
}
@media (max-width: 720px) {
  .card .row {
    grid-template-columns: 1fr;
    padding: 32px 16px 16px;
  }
  .brandbox {
    max-width: 220px;
    margin: 0 auto;
  }
}
@media (max-width: 420px) {
  .card .row {
    padding: 24px 12px 12px;
  }
  .cta {
    padding: 0 12px 12px;
  }
  .grid {
    gap: 12px;
  }
}
.brandbox {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
      120px 80px at 50% 10%,
      rgba(0, 217, 255, 0.08),
      transparent 70%
    ),
    #0e1422;
  border: 1px solid #22324a;
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.05);
}
.brandbox img {
  max-width: 100%;
  max-height: 60px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 960px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}
.metric {
  background: linear-gradient(180deg, #0f1726, #0b1322);
  border: 1px solid #22324a;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 12px rgba(0, 217, 255, 0.06);
}
.metric .k {
  font-weight: 800;
  font-size: 16px;
}
.metric .v {
  color: var(--muted);
  font-size: 10px;
}
.cta {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}
.pill {
  display: flex;
  text-align: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  border-radius: 12px;
  border: 1px solid #2b3a52;
  background: linear-gradient(180deg, #0f1726, #0b1322);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.05);
}
.pill strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}
.visit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--neon1), var(--neon2));
  color: #0b1220;
  font-weight: 800;
  border: none;
  box-shadow: var(--glow);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.visit:hover {
  filter: brightness(1.02);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--glow-strong);
}
@media (max-width: 640px) {
  .visit {
    margin-left: 0;
    width: 100%;
    text-align: center;
    padding: 8px;
  }
  .cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 12px 12px;
  }
  .hero {
    padding: 0;
  }
  .container {
    padding: 12px 15px;
  }
  .pill {
    display: block;
    padding: 8px;
    font-size: 0.6rem;
  }
  .pill strong {
    font-size: 1rem;
  }
  .metric .k {
    font-size: 14px;
  }
  .metric .v {
    font-size: 12px;
  }
  .brandbox {
    width: 100%;
  }
}

/* Text content */
.content {
  display: grid;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.content h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.content h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}
.content p,
.content li {
  color: #d6e2ff;
}
.content ul {
  padding-left: 18px;
}

/* Footer */
footer.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #0c121e;
}
.footer-top {
  display: grid;
  gap: 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}
.legal {
  font-size: 13px;
  color: #b7c6dc;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  max-width: 120px;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid #22324a;
  background: #0e1626;
  color: #cfe6ff;
}
.logo-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  color: #9eb4d6;
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

/* Page scaffolding for inner pages */
.page-header {
  position: sticky;
  top: 0;
  background: #0b0f17;
  border-bottom: 1px solid var(--border);
}
.page-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
}
.back {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #182235;
  border: 1px solid #2b3a52;
  color: #fff;
}
.page-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  color: #9eb4d6;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
