/* ============================================================
   Lucky Max Casino — styles
   Palette (5): navy #0e1c26 / slate #1e3446 / teal #17b3c4
                violet #6d4df6 / ink-text #e8eef2
   Fonts (2): system UI stack for body, same stack bold for headings
   ============================================================ */

:root {
  --navy: #0e1c26;
  --navy-2: #152836;
  --slate: #1e3446;
  --slate-2: #274355;
  --teal: #17b3c4;
  --violet: #6d4df6;
  --text: #e8eef2;
  --muted: #a4b6c2;
  --line: #2c465a;
  --good: #34d399;
  --bad: #f87171;
  --radius: 10px;
  /* One shared container width: text, tables, images and banners all align to
     the same left/right edge so nothing appears to break out. */
  --wrap: 980px;
  --gutter: 28px;
  --grad: linear-gradient(90deg, var(--violet) 0%, var(--teal) 100%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background: var(--navy);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
  /* Final guard against any stray horizontal scroll. `clip` (not `hidden`)
     does not create a scroll container, so the sticky header still works. */
  overflow-x: clip;
}

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 4.4vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 1.8em; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: #0b1620;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .05em .4em;
  font-size: .9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:where(a, span[role="button"], button, summary):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 12px 22px; border-radius: 8px; border: 0;
  cursor: pointer; user-select: none; text-align: center;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background-image: var(--grad); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-hero { background-image: var(--grad); color: #fff; padding: 17px 52px; font-size: 1.1rem; }
.cta-line { margin-top: 1.6em; }

/* ---------------- header ---------------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand img { width: 92px; height: auto; }
.nav { display: flex; gap: 22px; margin-left: 8px; flex: 1; }
.nav a { color: var(--text); font-size: .95rem; font-weight: 600; }
.nav a:hover { color: var(--teal); text-decoration: none; }
.head-cta { display: flex; gap: 10px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }
.m-nav { display: none; }

/* ---------------- hero ---------------- */
.hero {
  background:
    radial-gradient(1000px 420px at 50% -10%, rgba(23,179,196,.22), transparent 70%),
    radial-gradient(700px 340px at 85% 10%, rgba(109,77,246,.18), transparent 70%),
    var(--navy);
  border-bottom: 1px solid var(--line);
}
.hero-in { text-align: center; padding: 64px var(--gutter) 60px; }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin: 0 auto 1.9em; }
.hero-facts {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.hero-facts li {
  background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 10px;
}
.hero-facts strong { display: block; font-size: 1.3rem; color: var(--teal); }
.hero-facts span { font-size: .85rem; color: var(--muted); }

/* ---------------- sections ---------------- */
.sec { padding: 60px 0; }
.sec-alt { background: var(--navy-2); }
/* No separate prose measure: every direct child fills the container so text,
   tables and images share one edge instead of protruding past each other. */

/* ---------------- toc ---------------- */
.sec-toc { padding: 42px 0; background: var(--navy-2); border-bottom: 1px solid var(--line); }
.sec-toc h2 { font-size: 1.15rem; margin-bottom: .8em; }
.toc {
  margin: 0; padding-left: 0; list-style: none; counter-reset: t;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 26px;
}
.toc li { counter-increment: t; }
.toc a {
  display: block; padding: 9px 12px; border-radius: 8px;
  background: var(--slate); border: 1px solid var(--line);
  color: var(--text); font-size: .93rem; font-weight: 600;
}
.toc a::before { content: counter(t) ". "; color: var(--teal); font-weight: 800; }
.toc a:hover { border-color: var(--teal); text-decoration: none; }

/* ---------------- banners ---------------- */
.banner { padding: 0; }
.banner-hero { padding: 28px 0 8px; }
.banner-in {
  position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(100deg, #0d2230 0%, #12495c 55%, #16788a 100%);
  min-height: 300px; display: flex; align-items: center;
}
.banner-txt { position: relative; z-index: 2; padding: 34px 30px; max-width: 46%; }
.banner-img {
  position: absolute; inset: 0 0 0 auto; height: 100%; width: 72%;
  object-fit: cover; object-position: center right; z-index: 1;
}
.banner-kop { font-size: 1rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 .3em; }
.banner-amount { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 900; margin: 0 0 .1em; line-height: 1; }
.banner-amount.sm { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.banner-sub { font-size: 1.05rem; font-weight: 700; margin: 0 0 1.1em; }
.banner-fine { font-size: .8rem; color: #cfe3ea; margin: .9em 0 0; }

.banner-slim { padding: 10px 0 34px; }
.banner-slim-in {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(100deg, #1a2a52 0%, #133c53 60%, #17788a 100%);
  padding: 20px 26px;
}
.banner-slim-in > div { flex: 1; min-width: 220px; }
.banner-slim-in img { width: 132px; height: 88px; object-fit: cover; border-radius: 10px; }
.banner-slim-in .banner-kop { font-size: .8rem; }
.banner-slim-in .banner-sub { margin: 0; font-size: .92rem; font-weight: 600; color: #d6e8ef; }

/* ---------------- tables ---------------- */
/* min-width:0 lets this scroll container shrink inside grid/flex tracks whose
   default min-width:auto would otherwise refuse to go below the table width. */
.tbl-wrap { overflow-x: auto; min-width: 0; max-width: 100%; margin: 1.2em 0 1.8em; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.tbl caption { caption-side: top; text-align: left; padding: 12px 14px; font-size: .85rem; color: var(--muted); background: var(--slate); }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--slate); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.tbl tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.tbl th[scope="row"] { font-weight: 700; color: var(--text); width: 34%; }
.tbl-cmp .yes { color: var(--good); font-weight: 700; }
.tbl-cmp .no { color: var(--bad); font-weight: 700; }

/* ---------------- cards ---------------- */
.cards { display: grid; gap: 16px; margin: 1.4em 0 0; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card h4 { margin-bottom: .4em; color: var(--teal); }
.card p { font-size: .93rem; margin-bottom: .7em; }
.card p:last-child { margin-bottom: 0; }
.card-big { font-size: 1.35rem; font-weight: 900; color: var(--text); margin-bottom: .5em !important; }
.card-meta { font-size: .82rem; color: var(--muted); }

/* ---------------- lists ---------------- */
.check { list-style: none; padding: 0; margin: 1.2em 0; }
.check li { position: relative; padding-left: 30px; margin-bottom: .8em; }
.check li::before {
  content: ""; position: absolute; left: 4px; top: .45em;
  width: 8px; height: 14px; border-right: 3px solid var(--teal); border-bottom: 3px solid var(--teal);
  transform: rotate(42deg);
}
.steps { margin: 1.2em 0; padding-left: 22px; }
.steps li { margin-bottom: .7em; }

/* ---------------- split + images ---------------- */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 30px; align-items: start; }
/* Every grid child must be allowed to shrink below its content's intrinsic
   width, otherwise a wide table/image forces page-level horizontal scroll. */
.split > * { min-width: 0; }
/* Wider text column where the companion art is a slim phone-screenshot pair. */
.split-wide { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
/* Screenshot pairs are portrait phone captures: keep them side by side and sized down. */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.shots img, .img-block {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  object-fit: cover; margin-bottom: 14px;
}
.shots img { margin-bottom: 0; }
/* Stacked art column: cap each image so the pair matches the text block height. */
.art-stack .img-block { aspect-ratio: 16 / 11; }
.art-stack .img-block:last-child { margin-bottom: 0; }

.note {
  background: var(--slate); border-left: 4px solid var(--teal); border-radius: 8px;
  padding: 16px 18px; margin: 1.4em 0;
}
.note p { margin: 0; font-size: .93rem; }
.note-warn { border-left-color: var(--violet); }

/* ---------------- pros / cons ---------------- */
.pros { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.6em 0; }
.pros-col { background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pros-col h4 { margin-bottom: .6em; }
.pros-col ul { margin: 0; padding-left: 20px; }
.pros-col li { margin-bottom: .5em; font-size: .94rem; }
.pro h4 { color: var(--good); }
.pro li::marker { color: var(--good); }
.con h4 { color: var(--bad); }
.con li::marker { color: var(--bad); }

/* ---------------- reviews ---------------- */
.rev-summary { display: flex; align-items: center; gap: 20px; margin: 1.4em 0 1.8em; }
.rev-score { font-size: 3rem; font-weight: 900; margin: 0; color: var(--teal); line-height: 1; }
.rev-score span { font-size: 1.2rem; color: var(--muted); font-weight: 700; }
.rev-summary div p { margin: 0; font-size: .92rem; color: var(--muted); }
.stars { color: #fbbf24; font-size: 1.15rem; letter-spacing: 2px; margin: 0 0 .3em; }
.stars .off { color: #4b6070; }
.stars .half { color: #b48c1e; }
.rev { background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rev h3 { font-size: 1.05rem; margin: .3em 0 .5em; }
.rev p { font-size: .94rem; }
.rev-meta { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------------- faq ---------------- */
.faq { margin: 1.4em 0 0; }
.faq details {
  background: var(--slate); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; padding: 16px 46px 16px 18px; font-weight: 700; font-size: 1rem;
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 22px;
  width: 9px; height: 9px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 18px 16px; }
.faq-body p { margin: 0; font-size: .95rem; color: #cfdbe3; }

/* ---------------- sticky desktop CTA ---------------- */
.sticky-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  display: none; align-items: center; gap: 14px;
  background: var(--slate-2); border: 1px solid var(--teal); border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  font-size: .9rem; font-weight: 700;
}
.sticky-cta.on { display: flex; }

/* ---------------- footer ---------------- */
.site-foot { background: #0a151d; border-top: 1px solid var(--line); padding: 44px 0 22px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot-in img { width: 100px; height: auto; margin-bottom: 14px; }
.foot-in p { font-size: .88rem; color: var(--muted); max-width: 46ch; }
.site-foot h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .9em; }
.site-foot nav a { display: block; color: var(--text); font-size: .92rem; margin-bottom: .55em; }
.foot-legal {
  border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.foot-legal p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------------- responsive ---------------- */
@media (min-width: 1025px) {
  .sticky-cta.on { display: flex; }
}
@media (max-width: 1024px) {
  .sticky-cta { display: none !important; }
  .nav { display: none; }
  .head-cta { margin-left: auto; }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  /* Once the split stacks, the portrait phone captures would otherwise blow up
     to full container width. Keep the pair centred and modestly sized. */
  .shots { max-width: 460px; margin-inline: auto; gap: 14px; }
  .art-stack .img-block { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
  .banner-in { min-height: 0; flex-direction: column; }
  .banner-txt { max-width: 100%; padding: 24px 20px; text-align: center; order: 2; }
  .banner-img { position: static; width: 100%; height: 200px; order: 1; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .toc { grid-template-columns: 1fr; }
  .pros { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .sec { padding: 44px 0; }
  .hero-in { padding: 44px var(--gutter); }
  .head-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .m-nav { display: block; background: var(--navy-2); border-top: 1px solid var(--line); padding: 14px 20px 20px; }
  .m-nav[hidden] { display: none; }
  .m-nav a { display: block; padding: 11px 0; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
  .m-nav .btn { width: 100%; margin-top: 14px; }
  .btn-hero { width: 100%; padding: 16px 20px; }
  .banner-slim-in { padding: 18px; }
  .banner-slim-in .btn { width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .rev-summary { gap: 14px; }
}

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