/*
 * IceCasino — style.css
 * Based on emd-master-v4.1 structure.
 *
 * BRAND CONFIG TOKENS (change these to re-skin for a new brand):
 *   --bg        page background tint
 *   --ink        body text colour
 *   --muted     secondary text
 *   --line       border / divider
 *   --dark       hero gradient start / promo bg
 *   --dark2      hero gradient end
 *   --main       primary CTA colour
 *   --mainh      primary CTA hover
 *   --soft       ghost button bg
 *   --softh      ghost button hover
 *
 * IceCasino palette: arctic navy + neon cyan/ice blue accent.
 */

:root {
  --bg:    #e6f2ff;
  --ink:   #081520;
  --muted: #3d5a75;
  --line:  #c2d8ef;
  --dark:  #030f20;
  --dark2: #072540;
  --main:  #00d4ff;
  --mainh: #00b5e2;
  --soft:  #cceeff;
  --softh: #b0e4ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 500px at 10% -5%, #fff, transparent), var(--bg);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 18px; }

/* Header */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(230, 244, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* BRAND CONFIG: logo colours */
.logo {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: #0a1c30;
}
.logo span { color: #00d4ff; }

.menu { display: flex; gap: 20px; }
.menu a {
  text-decoration: none;
  color: #1a2e42;
  font-weight: 700;
  font-size: 15px;
}

.cta-top { display: flex; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: 0.2s;
}

/* BRAND CONFIG: CTA button */
.btn-main { background: var(--main); color: #061828; }
.btn-main:hover { background: var(--mainh); }

.btn-ghost {
  background: #fff;
  border: 1px solid #7ecce0;
  color: #005f75;
}
.btn-ghost:hover { background: #f0fbff; }

.btn-soft { background: var(--soft); color: #0a1c30; }
.btn-soft:hover { background: var(--softh); }

/* Hero */
.hero {
  padding: 56px 0;
  /* BRAND CONFIG: hero gradient */
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  color: #fff;
  border-radius: 18px;
  max-width: calc(100% - 16px);
  margin: 8px auto 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  color: #7dd8f5;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.02;
  margin: 0 0 12px;
  letter-spacing: -1px;
}

.lead { color: #b8e4f5; max-width: 640px; margin: 0 0 16px; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.chip-row span {
  background: rgba(0, 212, 255, 0.12);
  padding: 7px 11px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 12px;
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-panel { display: block; }
.hero-stats { display: grid; grid-template-columns: 1fr; gap: 10px; }

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 14px;
  padding: 13px 14px;
}

.stat-icon { font-size: 20px; line-height: 1; }
.stat-item strong { display: block; font-size: 24px; line-height: 1.1; }
.stat-item small { display: block; color: #a8d8ef; font-size: 14px; margin-top: 4px; }

/* Promo strip */
/* BRAND CONFIG: promo bg */
.promo { margin-top: 14px; }
.promo-row {
  background: #040e20;
  color: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(0, 212, 255, 0.18);
}
.promo-row small { color: #8ed4f0; }

/* Main */
main { padding: 26px 0 6px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.card,
.section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(8, 21, 32, 0.05);
}

.card { padding: 18px; }
.card h2 { margin: 0 0 10px; font-size: 24px; }
.card ul { margin: 0; padding-left: 18px; }

.section { margin-top: 20px; padding: 20px; }
.section h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: -0.4px; }
.section p { line-height: 1.7; color: #1a2e42; margin: 0 0 12px; }
.section p:last-child { margin-bottom: 0; }
.section ul { line-height: 1.7; }

.table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table th,
.table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  word-break: break-word;
}
/* BRAND CONFIG: table header bg */
.table th { background: #061828; color: #00d4ff; }

.center { text-align: center; margin-top: 14px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  margin: 10px 0;
  background: #f5fbff;
}
.faq summary { font-weight: 700; cursor: pointer; }

/* Footer */
/* BRAND CONFIG: footer bg */
.footer {
  margin-top: 22px;
  background: #030c18;
  color: #b8d8ee;
  padding: 26px 0;
}
.footer-disclaimer { font-size: 12px; color: #5a7a94; margin-top: 6px; }

.links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.footer a { color: #60b8d8; text-decoration: none; }

/* Responsive */
@media (max-width: 960px) {
  .menu { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .cards { grid-template-columns: 1fr; }
  .section h2 { font-size: 28px; }
  .hero { max-width: none; margin: 0; border-radius: 0; }

  .promo-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .promo-row .btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .chip-row {
    display: grid;
    grid-template-columns: 1.18fr 1fr 0.82fr;
    gap: 8px;
    width: 100%;
  }
  .chip-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 7px 6px;
    font-size: 10px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stat-item strong { font-size: 20px; }
}

@media (max-width: 480px) {
  .logo { font-size: 30px; }
  .hero { padding: 38px 0; }
  .hero h1 { font-size: 33px; }
  .btn { padding: 10px 14px; font-size: 14px; }
  .table { font-size: 13px; }
}

/* Slots grid */
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slots-grid img { width: 100%; display: block; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 960px) { .slots-grid { grid-template-columns: repeat(2, 1fr); } }

/* Active nav underline */
/* BRAND CONFIG: active nav accent colour */
.menu a { position: relative; }
.menu a.is-active { color: #00a0bf; }
.menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 2px;
  background: #00d4ff;
  border-radius: 2px;
}

/* v4.1 polish */
/* BRAND CONFIG: scroll progress bar colour */
#scrollProgress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: #00d4ff;
  z-index: 60;
  transition: width .12s linear;
}

/* BRAND CONFIG: back-to-top button bg */
#toTopBtn {
  position: fixed; right: 14px; bottom: 16px;
  width: 42px; height: 42px;
  border-radius: 999px; border: 0;
  background: #061828;
  color: #00d4ff;
  font-size: 20px;
  display: none;
  align-items: center; justify-content: center;
  z-index: 50;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
#toTopBtn.show { display: flex; }

/* Scroll-reveal */
.section, .card, .stat-item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .24s ease, transform .24s ease;
}
.section.in, .card.in, .stat-item.in { opacity: 1; transform: none; }

.faq details { overflow: hidden; }
.faq details[open] { box-shadow: 0 8px 20px rgba(8, 21, 32, .06); }

.btn { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.stat-item:hover, .card:hover { transform: translateY(-1px); }

@media (max-width: 480px) {
  .hero { padding: 30px 0; }
  .lead { margin-bottom: 12px; }
  .promo-row { padding: 12px 14px; }
  .section { padding: 16px; }
}
