/* Ice Casino — Minimal Light Template */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-soft: #e0f2fe;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 8px 24px rgba(14, 165, 233, 0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --container: 1200px;
  --header-h: 70px;
  --sticky-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: var(--sticky-h);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img { height: 40px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}
.nav__list {
  display: flex;
  gap: 4px;
}
.nav__link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__link:hover { color: var(--primary); background: var(--primary-soft); }
.nav__actions { display: flex; gap: 8px; }
.nav__toggle, .nav__close {
  display: none;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--text);
}
.nav__close {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--text-soft);
}

/* ---------- Banner ---------- */
.banner-section { padding: 24px 0 48px; }
.banner {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.banner img { width: 100%; display: block; }
.banner__cta {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: var(--primary);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
}

/* ---------- Section title ---------- */
.section-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

/* ---------- Games / Slider ---------- */
.games { padding: 24px 0 64px; }
.slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.slider__viewport {
  overflow: hidden;
  min-width: 0;
}
.slider__track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
  padding: 6px 2px;
}
.slider__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}
.slider__btn:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.slider__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.slider__btn--prev img { transform: rotate(180deg); }

.card {
  flex: 0 0 calc((100% - 48px) / 4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.card__link {
  display: block;
  position: relative;
}
.card__link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.card__title {
  display: block;
  padding: 12px 14px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.card__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 14px 14px;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}
.card:hover .card__btn { background: var(--primary); color: #fff; }

/* ---------- SEO Section ---------- */
.seo {
  padding: 48px 0 64px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.seo .container { max-width: 920px; color: var(--text-soft); font-size: 15px; line-height: 1.75; }
.seo h1, .seo h2, .seo h3, .seo h4 { color: var(--text); margin-top: 28px; margin-bottom: 12px; font-weight: 700; }
.seo h2 { font-size: 24px; }
.seo h3 { font-size: 19px; }
.seo h4 { font-size: 17px; }
.seo p { margin-bottom: 12px; }
.seo a { color: var(--primary); border-bottom: 1px solid transparent; transition: border-color 0.15s ease; }
.seo a:hover { border-color: var(--primary); }
.seo ul, .seo ol { margin: 12px 0 12px 22px; }
.seo ul li { list-style: disc; margin-bottom: 5px; }
.seo ol li { list-style: decimal; margin-bottom: 5px; }
.seo table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.seo th, .seo td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.seo th { background: var(--primary-soft); color: var(--text); font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer__logo { height: 40px; margin-bottom: 14px; }
.footer__about {
  color: var(--text-soft);
  font-size: 14px;
  max-width: 360px;
  margin-bottom: 18px;
}
.footer__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}
.footer__list li { margin-bottom: 8px; }
.footer__list a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer__list a:hover { color: var(--primary); }

.socials { display: flex; gap: 8px; }
.social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-soft);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Sticky bottom ---------- */
.sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease;
}
.sticky.is-hidden { transform: translateY(110%); }
.sticky__inner {
  max-width: var(--container);
  height: var(--sticky-h);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sticky__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sticky__text strong { font-size: 14px; font-weight: 700; color: var(--text); }
.sticky__text span {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.sticky__close:hover { background: var(--bg-soft); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { gap: 14px; }
  .nav__link { padding: 8px 9px; font-size: 13px; }
  .card { flex-basis: calc((100% - 32px) / 3); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; --sticky-h: 60px; }

  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 340px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 70px 22px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.12);
    z-index: 60;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__close { display: inline-flex; }

  .nav__list { flex-direction: column; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
  .nav__link { padding: 12px 14px; font-size: 15px; }
  .nav__actions { flex-direction: column; }
  .nav__actions .btn { width: 100%; padding: 12px 22px; }

  .nav-open { overflow: hidden; }

  .hero { padding: 48px 0 32px; }
  .banner__cta { padding: 10px 22px; font-size: 14px; bottom: 14px; }

  .card { flex-basis: calc((100% - 16px) / 2); }
  .slider__btn { width: 38px; height: 38px; }
  .slider { gap: 8px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__col:first-child { grid-column: 1 / -1; }

  .sticky__inner { gap: 10px; padding: 0 12px; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .sticky__text span { display: none; }
  .seo table { display: block; overflow-x: auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
