/* ============================================================
   CaratLuck Casino (carat-luck.casino) - site overrides
   Look taken from the CaratLuck screenshots: warm near black ground,
   graphite panels with tight corners, the CaratLuck gold (#FFE066) of the
   Register and Log in buttons, and a deeper amber (#F2A93B) as second
   accent. Playfair Display headings, like the serif wordmark, over Manrope.
   ============================================================ */
:root {
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --ck-gold: #ffe066;
  --ck-gold-soft: rgba(255, 224, 102, 0.1);
  --ck-amber: #f2a93b;
  --ck-amber-soft: rgba(242, 169, 59, 0.1);
  --ck-grad: linear-gradient(135deg, #fff1a8 0%, #ffe066 45%, #e9b93c 100%);
}

body {
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.7;
  letter-spacing: 0;
  background: var(--color-bg);
  font-synthesis: none;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--color-border); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.site-header .site-logo img { height: 36px; width: auto; }
.nav-main--desktop a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: 10px;
}
.nav-main--desktop a:hover { color: var(--color-text); background: var(--ck-gold-soft); }
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 10px;
}
.btn--primary { background: var(--ck-grad); color: #fff; border: 0; box-shadow: 0 8px 22px rgba(255, 224, 102, 0.3); }
.btn--primary:hover { background: var(--color-cta-hover); color: #fff; }
.btn--outline { border: 1px solid var(--color-border-2); color: var(--color-text); background: var(--color-surface); }
.btn--outline:hover { background: var(--color-surface-2); color: var(--color-text); border-color: var(--ck-amber); }

/* ---------- Hero: copy left, jackpot card right ---------- */
.hero {
  padding: 92px 0 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 340px at 86% 28%, var(--color-hero-glow), transparent 70%),
    radial-gradient(420px 260px at 8% 92%, rgba(242, 169, 59, 0.08), transparent 70%),
    linear-gradient(180deg, var(--color-hero-gradient-start), var(--color-hero-gradient-end));
  border-bottom: 1px solid var(--color-border);
}
.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-areas:
    "badge box"
    "title box"
    "sub   box"
    "ctas  box";
  column-gap: 60px;
  row-gap: 18px;
  align-items: start;
  text-align: left;
  max-width: none;
  position: relative;
  z-index: 1;
}
.hero__badge {
  grid-area: badge; justify-self: start;
  color: var(--color-text);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--color-border-2);
  background: var(--color-surface);
  border-radius: 10px;
}
.hero__badge::before { background: var(--ck-amber); box-shadow: 0 0 10px rgba(242, 169, 59, 0.7); }
.hero h1 {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0;
  text-transform: none;
}
.hero__subtitle { grid-area: sub; margin: 0; max-width: 60ch; color: var(--color-text-muted); }
.hero__subtitle p { margin: 0; max-width: 60ch; }
.hero__ctas { grid-area: ctas; justify-content: flex-start; margin-top: 8px; }
.hero__bonus-box {
  grid-area: box;
  align-self: center;
  margin: 0;
  padding: 30px 30px 28px;
  text-align: left;
  background: linear-gradient(180deg, #211d13 0%, #17150f 100%);
  border: 1px solid var(--color-border-2);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.hero__bonus-box::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--ck-grad);
}
.hero__bonus-box .hero__bonus-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ck-amber);
  background: var(--ck-amber-soft);
  padding: 4px 12px;
  border-radius: 10px;
  margin-top: 4px;
}
.hero__bonus-box .hero__bonus-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ck-amber);
}
.hero__bonus-box .hero__bonus-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text);
  margin: 16px 0 12px;
}
.hero__bonus-box .hero__bonus-extra { color: var(--color-text-muted); font-size: 0.97rem; line-height: 1.55; }
@media (max-width: 960px) {
  .hero { padding: 56px 0 50px; }
  .hero__content {
    grid-template-columns: 1fr;
    grid-template-areas: "badge" "title" "sub" "box" "ctas";
    text-align: center;
  }
  .hero__badge { justify-self: center; }
  .hero__subtitle, .hero__subtitle p { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__bonus-box { text-align: center; }
}

/* ---------- Stats band ---------- */
.stats-bar { background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); padding: 26px 0; }
.stats-bar__inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stats-bar__inner .stat {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem;
  padding: 16px 12px; border: 1px solid var(--color-border);
  border-radius: 8px; background: var(--color-surface);
}
.stats-bar__inner .stat__value {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.05; color: var(--color-text);
}
.stats-bar__inner .stat:nth-child(odd) .stat__value { color: var(--ck-gold); }
.stats-bar__inner .stat:nth-child(even) .stat__value { color: var(--ck-amber); }
.stats-bar__inner .stat__label { font-size: 0.8rem; line-height: 1.4; color: var(--color-text-muted); text-transform: none; letter-spacing: 0.01em; }
@media (max-width: 1100px) { .stats-bar__inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-bar__inner .stat { padding: 12px; }
  .stats-bar__inner .stat__value { font-size: 1.4rem; }
}

/* ---------- Sections and headings ---------- */
.content-section { padding: 80px 0; }
.content-section--alt { background: #12110c; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.content-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--color-text);
  padding: 0 0 22px 0;
  margin: 0 0 30px;
  border: 0;
  position: relative;
  max-width: none;
  text-transform: none;
}
.content-section h2::before { display: none !important; }
.content-section h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 64px; height: 5px; border-radius: 10px;
  background: var(--ck-grad);
  box-shadow: 78px 0 0 -0.5px var(--ck-amber);
}
.content-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.25;
  color: var(--color-text);
  margin: 40px 0 14px;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 4px solid var(--ck-gold);
  text-transform: none;
  letter-spacing: 0;
  clear: none;
}
.content-section h3::before { display: none; }
.content-section p { margin-bottom: 1.05rem; color: var(--color-text-muted); }
.content-section p strong, .content-section li strong { color: var(--color-text); }
.content-section ul, .content-section ol { margin: 0 0 1.2rem 1.2rem; }
.content-section li { margin-bottom: 0.45rem; color: var(--color-text-muted); }
.content-section li::marker { color: var(--ck-amber); }
.content-section a:not(.btn) { color: var(--ck-gold); }
.content-section p, .content-section li { max-width: calc(74ch + 330px); }
@media (max-width: 900px) {
  .content-section { padding: 56px 0; }
  .content-section p, .content-section li { max-width: 74ch; }
}

/* ---------- Supplied artwork beside the text ---------- */
.content-section .section-illus--transparent {
  max-width: 300px; width: 300px; height: auto;
  background: transparent; box-shadow: none; border-radius: 0;
  filter: drop-shadow(0 0 30px rgba(255, 224, 102, 0.14));
}
.content-section .section-illus--right { float: right; margin: 0 0 22px 36px; }
.content-section .section-illus--left { float: left; margin: 0 36px 22px 0; }
.content-section h3 + .section-illus { clear: both; }
.ck-clear { clear: both; }
@media (max-width: 900px) {
  .content-section .section-illus--transparent,
  .content-section .section-illus--right,
  .content-section .section-illus--left {
    float: none; display: block; width: 260px; max-width: 260px; margin: 12px auto 22px;
  }
}

/* ---------- Fact tables ---------- */
.ck-table-wrap {
  clear: both;
  margin: 28px 0 30px;
  border: 1px solid var(--color-border-2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
}
.ck-table-wrap .ck-table-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-2);
  background: var(--color-surface-2);
  margin: 0;
  max-width: none;
  display: flex; align-items: center; gap: 10px;
}
.ck-table-wrap .ck-table-title::before {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--ck-amber);
  box-shadow: 0 0 8px rgba(242, 169, 59, 0.7);
}
.ck-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content-section .ck-table-wrap table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin: 0;
  border: 0;
  display: table;
  font-size: 0.96rem;
}
.content-section .ck-table-wrap th,
.content-section .ck-table-wrap td {
  padding: 12px 18px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  white-space: normal;
}
.content-section .ck-table-wrap thead th {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ck-gold);
  background: rgba(255, 224, 102, 0.07);
}
.content-section .ck-table-wrap tbody tr:last-child td { border-bottom: 0; }
.content-section .ck-table-wrap tbody tr:hover td { background: rgba(242, 169, 59, 0.05); color: var(--color-text); }
.content-section .ck-table-wrap td:first-child { color: var(--color-text); font-weight: 600; }
@media (max-width: 600px) {
  .content-section .ck-table-wrap table { min-width: 520px; font-size: 0.92rem; }
  .content-section .ck-table-wrap th, .content-section .ck-table-wrap td { padding: 10px 12px; }
}

/* ---------- Game grid with real thumbnails ---------- */
.ck-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 34px;
}
.ck-tile {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ck-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ck-tile__info { display: block; padding: 9px 12px 12px; }
.ck-tile__name { display: block; color: var(--color-text); font-weight: 600; font-size: 0.88rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-tile__provider { display: flex; align-items: center; gap: 6px; color: var(--color-text-faint); font-size: 0.76rem; line-height: 1.3; margin-top: 3px; }
.ck-tile__provider::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ck-amber); flex: 0 0 auto; }
.content-section a.ck-tile { color: inherit; }
.ck-tile:hover { transform: translateY(-3px); border-color: var(--ck-gold); box-shadow: 0 12px 28px rgba(255, 224, 102, 0.18); }
.ck-tile:hover .ck-tile__name { color: var(--ck-gold); }
@media (max-width: 1100px) { .ck-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .ck-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 460px) { .ck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Callout ---------- */
.money-note {
  clear: both;
  border: 1px solid rgba(242, 169, 59, 0.35);
  background: var(--ck-amber-soft);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 8px;
}
.money-note p { margin-bottom: 0.6rem; }
.money-note p:last-child { margin-bottom: 0; }

/* ---------- Numbered steps ---------- */
.ck-steps { display: flow-root; counter-reset: ckstep; list-style: none; margin: 18px 0 26px !important; padding: 0; }
.ck-steps li { counter-increment: ckstep; position: relative; padding: 4px 0 4px 54px; margin-bottom: 16px; }
.ck-steps li::before {
  content: counter(ckstep);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: #fff;
  background: var(--ck-grad);
  border-radius: 50%;
}

/* ---------- FAQ accordion ---------- */
.ck-faq { clear: both; margin: 18px 0 8px; }
.ck-faq details {
  border: 1px solid var(--color-border-2);
  border-radius: 8px;
  background: var(--color-surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.ck-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 56px 16px 20px;
  position: relative;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text);
}
.ck-faq summary::-webkit-details-marker { display: none; }
.ck-faq summary::after {
  content: "+";
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.2rem; line-height: 1; color: var(--ck-amber); background: var(--ck-amber-soft);
}
.ck-faq details[open] summary::after { content: "\2212"; }
.ck-faq details[open] { border-color: rgba(255, 224, 102, 0.45); }
.ck-faq details[open] summary { border-bottom: 1px solid var(--color-border); }
.ck-faq details p { padding: 14px 20px 16px; margin: 0; }

/* ---------- CTA banner, footer, sticky ---------- */
.cta-banner {
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(255, 224, 102, 0.16), transparent 70%),
    var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.cta-banner h2::after { left: 50%; transform: translateX(-50%); box-shadow: none; }
.cta-banner p { margin-left: auto; margin-right: auto; max-width: 760px; }
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-bg-2); }
.site-footer h5 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; color: var(--color-text); }
.site-footer .site-logo img { height: 34px; width: auto; }
.footer-badge { border-radius: 10px; }
.sticky-cta { border-top: 1px solid var(--color-border-2); }
.sticky-cta__text span:first-child { font-family: var(--font-display); font-weight: 700; }
.sticky-cta__bonus { color: var(--ck-amber); font-weight: 700; }

/* ---------- Anchor offset, mobile header ---------- */
.content-section[id] { scroll-margin-top: 76px; }
@media (max-width: 640px) {
  .site-header .container { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .site-header .site-logo img { height: 28px; }
  .site-header .site-logo { flex-shrink: 0; margin-right: 6px; }
  .nav-toggle { flex-shrink: 0; margin-left: 6px; }
  .btn--mobile-cta { margin-left: auto; font-size: 0.74rem !important; padding: 0.5rem 0.8rem !important; min-width: 0; max-width: 46vw; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero__badge::before { display: none; }
  .sticky-cta__text span:first-child { display: none; }
  .sticky-cta__bonus { font-size: 0.9rem; line-height: 1.3; }
  .sticky-cta .btn { white-space: nowrap; }
}
@media (max-width: 380px) {
  .btn--mobile-cta { font-size: 0.66rem !important; padding: 0.45rem 0.55rem !important; }
}

/* ---------- Tablet and small laptop: hamburger menu up to 1199px ---------- */
@media (max-width: 1199px) {
  .btn--mobile-cta { display: inline-flex; }
  .nav-toggle { display: flex; }
  .nav-main--desktop { display: none; }
  .nav-actions { display: none; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .nav-mobile.open { display: flex !important; }
}

/* ---------- Sentence case everywhere ---------- */
.hero__badge, .hero__bonus-label, .hero__bonus-box .hero__bonus-label, .sticky-cta__bonus, .stat__label,
.footer-badge, .site-footer h5, .lang-switcher__code, .nav-mobile a, .btn { text-transform: none !important; letter-spacing: 0.01em; }

/* ---------- Headings and lists next to floated artwork ---------- */
.content-section h3, .content-section ul, .content-section ol { display: flow-root; }
.content-section ul, .content-section ol { padding-left: 1.2rem; margin-left: 0; }

/* ---------- CaratLuck specific ---------- */
.btn--primary, .btn--primary:hover { color: #14120c; box-shadow: 0 8px 22px rgba(255, 224, 102, 0.18); }
.btn--primary:hover { background: #ffeb99; }
.btn--outline:hover { border-color: var(--ck-gold); }
.btn--mobile-cta { color: #14120c !important; }
.hero h1 { font-weight: 800; letter-spacing: 0; }
.hero h1 .ck-gold { color: var(--ck-gold); }
.hero__bonus-box { border-color: rgba(255, 224, 102, 0.35); }
.hero__bonus-box::before { height: 3px; }
.hero__bonus-box .hero__bonus-value { font-family: var(--font-display); color: var(--ck-gold); }
.hero__bonus-box .hero__bonus-label { color: #14120c; background: var(--ck-gold); }
.hero__bonus-box .hero__bonus-label::before { background: #14120c; }
.stats-bar__inner .stat__value { font-family: var(--font-display); }
.stats-bar__inner .stat:nth-child(odd) .stat__value { color: var(--ck-gold); }
.stats-bar__inner .stat:nth-child(even) .stat__value { color: var(--color-text); }
.content-section h2 { font-weight: 700; }
.content-section h2::after { width: 46px; height: 3px; border-radius: 0; box-shadow: none; }
.content-section h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.28rem; border-left: 0; padding-left: 0; color: var(--ck-gold); }
.content-section .section-illus--transparent { filter: drop-shadow(0 0 30px rgba(255, 224, 102, 0.1)); }
.content-section .ck-table-wrap thead th { color: #14120c; background: var(--ck-gold); }
.ck-table-wrap .ck-table-title::before { border-radius: 2px; transform: rotate(45deg); width: 9px; height: 9px; background: var(--ck-gold); box-shadow: none; }
.ck-tile__provider::before { border-radius: 1px; transform: rotate(45deg); background: var(--ck-gold); }
.ck-tile:hover { border-color: var(--ck-gold); }
.ck-tile:hover .ck-tile__name { color: var(--ck-gold); }
.money-note { border-color: rgba(255, 224, 102, 0.35); background: rgba(255, 224, 102, 0.06); border-left: 3px solid var(--ck-gold); }
.ck-steps li::before { color: #14120c; border-radius: 8px; }
.ck-faq summary::after { color: #14120c; background: var(--ck-gold); border-radius: 6px; }
.ck-faq details[open] { border-color: rgba(255, 224, 102, 0.4); }
.sticky-cta__bonus { color: var(--ck-gold); }
.site-header .site-logo img { height: 30px; width: auto; }
.site-footer .site-logo img { height: 30px; width: auto; }
@media (max-width: 640px) { .site-header .site-logo img { height: 24px; } }
.content-section li::marker { color: var(--ck-gold); }
