:root {
  --yellow: #ffcc00;
  --yellow-2: #ffe14a;
  --header: #ffcc00;
  --green: #147238;
  --ink: #f3f3f3;
  --muted: #d0d0d0;
  --bg: #101012;
  --card: #1b1b1e;
  --dark: #0a0a0a;
  --line: rgba(255, 255, 255, 0.12);
  --header-h: 68px;
  --radius: 16px;
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #ffd34d; text-underline-offset: 3px; }
a:hover { color: #fff; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--yellow);
  color: #111;
  padding: 8px 12px;
  z-index: 1000;
  font-weight: 700;
}
.skip:focus { left: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.header-inner {
  position: relative;
  width: min(1360px, calc(100% - 16px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  background: transparent;
  border-radius: 0;
  padding: 4px 0;
}
.logo img {
  width: 176px;
  max-width: 44vw;
  height: auto;
}

.site-nav { flex: 1 1 auto; min-width: 0; }

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}

.site-nav > ul > li { position: relative; }

.site-nav a {
  color: #111;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: #111;
  color: #fff;
}

.chevron {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.site-nav ul.sub {
  display: none;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 200px;
  width: max-content;
  max-width: 280px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  z-index: 80;
}

.site-nav .has-sub:hover > ul.sub,
.site-nav .has-sub:focus-within > ul.sub,
.site-nav .has-sub.open > ul.sub {
  display: flex;
  flex-direction: column;
}

.site-nav ul.sub li {
  display: block;
  width: 100%;
  flex: none;
}

.site-nav ul.sub a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  white-space: normal;
  color: #111;
  border-radius: 8px;
}

.site-nav ul.sub a:hover {
  background: #111;
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.header-actions .btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
}

.btn-login {
  background: #111;
  color: #fff;
  min-width: 44px;
}
.btn-login:hover { color: #fff; filter: brightness(1.15); }

.btn-reg {
  background: var(--green);
  color: #fff;
  min-width: 44px;
}
.btn-reg:hover { color: #fff; filter: brightness(0.92); }

.btn-gold {
  background: var(--yellow);
  color: #111;
}
.btn-gold:hover { color: #111; filter: brightness(1.05); }

.btn-ghost {
  background: #111;
  color: #fff;
}
.btn-ghost:hover { color: #fff; }

.lobby-chrome { padding: 18px 0 8px; }

.lobby-search {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  background: var(--card);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.lobby-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  min-height: 40px;
  outline: none;
  color: var(--ink);
}
.lobby-search input::placeholder {
  color: #d0d0d0;
  opacity: 1;
}

.lobby-search button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  font-size: 1.05rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #111;
  max-width: 100%;
}

.carousel:not(.carousel--single) {
  width: 100%;
  aspect-ratio: 1180 / 380;
  min-height: 120px;
}

.slides { position: relative; height: 100%; }

.carousel:not(.carousel--single) .slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.slide.is-on {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.carousel:not(.carousel--single) .slide:not(.is-on) {
  display: none;
}
.carousel:not(.carousel--single) .slide.is-on {
  display: block;
  position: absolute;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center 28%;
}

.carousel:not(.carousel--single) .slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 28%;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 38%, transparent 68%);
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: min(420px, 70%);
  color: #fff;
  background: #101012;
  padding: 12px 14px 14px;
  border-radius: 12px;
  text-shadow: none;
  z-index: 2;
}

.slide-caption p {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.slide-caption strong {
  display: block;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.15;
  margin-bottom: 10px;
}

.slide-caption .btn {
  margin-top: 2px;
}

.dots {
  position: absolute;
  right: 18px;
  left: auto;
  bottom: 14px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.dots button {
  width: 22px;
  height: 44px;
  min-width: 22px;
  min-height: 44px;
  border-radius: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.dots button::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
}
.dots button.is-on::after { background: var(--yellow); }

.carousel--single .slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1180 / 240;
  object-fit: cover;
  object-position: center 28%;
}

.carousel--single .slide::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.22) 42%, transparent 70%);
}

.cats {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin: 8px 0 22px;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 12px 8px;
  text-decoration: none;
  color: #111;
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--yellow);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
.cat:hover { color: #111; filter: brightness(1.04); }
.cat i { font-style: normal; font-size: 1.25rem; }

.sport-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.sport-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  background: var(--yellow);
  color: #111;
  text-decoration: none;
  font-weight: 800;
  border-radius: 14px;
}
.sport-tile:hover { color: #111; }

.kicker {
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 8px;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }

.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 16px; max-width: 46rem; }

.page-hero { padding: 18px 0 8px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 8px;
}

.section { padding: 28px 0; }

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.muted { color: var(--muted); }

.card-grid,
.game-grid { display: grid; gap: 12px; min-width: 0; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.game-grid { grid-template-columns: repeat(4, 1fr); }

.card,
.game-card,
.faq-item,
.table-wrap,
.form-card,
.author-box,
.notice,
.bonus-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card, .notice, .author-box, .form-card, .bonus-card { padding: 18px; }

.card img,
.page-hero img,
.split img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.game-card { overflow: hidden; padding: 0 0 12px; position: relative; min-width: 0; }

.game-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
}

.game-card h3 { margin: 10px 12px 4px; }
.game-card p { margin: 0 12px 10px; color: var(--muted); font-size: 0.9rem; }

.game-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px;
}
.game-actions .btn { flex: 1; min-width: 0; min-height: 44px; font-size: 0.86rem; padding: 8px 10px; }

.game-card.is-current {
  outline: 2px solid var(--yellow);
  outline-offset: 0;
}

.demo-block {
  max-width: 100%;
  overflow-x: hidden;
}

.demo-block .demo-frame {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}

.demo-block iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: none;
  border: 0;
  background: #000;
}

.crumbs { font-size: 0.88rem; color: var(--muted); margin: 8px 0 14px; }
.crumbs a { color: #ffd34d; text-decoration: none; }

.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.15rem; color: var(--muted); }
.prose li { margin-bottom: 8px; }

.table-wrap { overflow-x: auto; max-width: 100%; padding: 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.faq-item { margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

.form-grid { display: grid; gap: 12px; }
label { font-weight: 700; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #141416;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
}
input::placeholder,
textarea::placeholder {
  color: #d0d0d0;
  opacity: 1;
}
textarea { min-height: 140px; resize: vertical; }
.success { color: #4ade80; display: none; }
.success.show { display: block; }

.pay-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
}
.pay-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.pay-chip img {
  display: block;
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

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

.help-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 14px;
  margin-top: 22px;
}
.help-row a {
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 10px;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  line-height: 0;
  flex: none;
}
.help-row img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.help-row .help-ga img {
  height: 52px;
  width: auto;
}

.site-footer {
  margin-top: 36px;
  background: #111;
  color: #eee;
  padding: 36px 0 20px;
}
.site-footer a { color: #ffd34d; }
.site-footer .btn-gold { color: #111; }
.site-footer .btn-ghost {
  background: #2a2a2a;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}
.site-footer .footer-store-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
  max-width: 560px;
}
.site-footer .btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 8px 10px;
  font-size: 0.82rem;
  line-height: 1;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  white-space: nowrap;
  box-sizing: border-box;
}
.site-footer .btn-store .store-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.site-footer .muted { color: #d0d0d0; }
.site-footer .logo { background: transparent; padding: 0; }
.site-footer .footer-grid img[alt="CroreBet India"] {
  width: 180px;
  max-width: 100%;
  height: auto;
  margin: 8px 0 12px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 22px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #cfcfcf; text-decoration: none; }
.footer-nav a:hover { color: var(--yellow); }
.footer-title {
  color: var(--yellow);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.age-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 10px;
}
.legal-line {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d0d0d0;
  font-size: 0.86rem;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow);
  color: #111;
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }

.game-card.is-hidden { display: none; }

@media (max-width: 1200px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "logo login register toggle";
    align-items: center;
    gap: 6px;
    padding: 6px 0;
  }
  .header-inner { overflow: visible; min-width: 0; }
  .logo { grid-area: logo; padding: 3px 0; min-width: 0; }
  .logo img { width: min(120px, 30vw); }
  .header-actions { display: contents; }
  .btn-login, .btn-reg {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .btn-login { grid-area: login; }
  .btn-reg { grid-area: register; }
  .footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--header);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 10px 16px 16px;
    z-index: 50;
    max-height: min(72vh, calc(100dvh - var(--header-h)));
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav a { min-height: 44px; }
  .site-nav .has-sub:hover > ul.sub,
  .site-nav .has-sub:focus-within > ul.sub { display: none; }
  .site-nav ul.sub {
    position: static;
    display: none;
    min-width: 0;
    width: auto;
    max-width: none;
    box-shadow: none;
    margin: 4px 0 8px 8px;
    background: #fff8d0;
  }
  .site-nav .has-sub.open > ul.sub {
    display: flex;
    flex-direction: column;
  }
  .card-grid, .footer-grid, .split, .lobby-rail, .bonus-grid, .sport-rail { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .card-grid, .footer-grid, .bonus-grid, .split { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cta-row .btn { flex: 1 1 140px; }
  .site-footer .footer-store-btns {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
  .site-footer .cta-row .btn-store {
    flex: none;
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding: 8px 14px;
    font-size: 0.88rem;
    gap: 8px;
  }
  .slide-caption {
    left: 12px;
    bottom: 10px;
    max-width: min(240px, 62%);
  }
  .slide-caption p { margin: 0 0 2px; font-size: 0.62rem; }
  .slide-caption strong { font-size: 1.05rem; margin-bottom: 6px; }
  .slide-caption .btn { min-height: 44px; padding: 8px 14px; font-size: 0.85rem; }
  .demo-block .demo-frame { aspect-ratio: 4 / 3; }
  .game-actions .btn { font-size: 0.8rem; padding: 8px 6px; }
}

@media (max-width: 420px) {
  .site-footer .footer-store-btns {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .btn-store {
    min-height: 44px;
    height: 44px;
    font-size: 0.72rem;
    padding: 8px 6px;
    white-space: nowrap;
  }
  .logo img { width: min(104px, 28vw); }
}
