/* ==========================================================================
   Joker — Design System
   Primary accent: salad green. Base: white. Card-suit motif throughout.
   ========================================================================== */

:root {
  /* Color */
  --green: #5FB926;
  --green-dark: #3E8A17;
  --green-darker: #2C6710;
  --green-light: #EAF7DC;
  --green-mist: #F5FBEF;
  --white: #FFFFFF;
  --ink: #16190F;
  --ink-soft: #4B5142;
  --ink-faint: #8A9080;
  --gold: #D9A544;
  --card-red: #C1442E;
  --line: #E1E9D8;

  /* Type */
  --font-display: "Unbounded", "Manrope", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  /* Scale */
  --radius-lg: 28px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(22, 25, 15, 0.06), 0 10px 24px -14px rgba(22, 25, 15, 0.18);
  --shadow-pop: 0 18px 40px -18px rgba(46, 103, 16, 0.35);
  --container: 1180px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
p { line-height: 1.65; margin: 0; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

/* Suit glyph used as a structural marker (not decoration) ---------------- */
.suit {
  display: inline-flex;
  width: 1em; height: 1em;
  flex-shrink: 0;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.brand .brand-mark {
  width: 38px;
  height: 38px;
}
.brand span.dot { color: var(--green); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--green-mist); color: var(--ink); }
.main-nav a[aria-current="page"] {
  background: var(--green-light);
  color: var(--green-darker);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-darker); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: var(--radius-sm); }

.menu-toggle {
  display: none;
  border: none;
  background: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: var(--green-mist); }
.menu-toggle svg { width: 24px; height: 24px; }

/* Breadcrumbs -------------------------------------------------------------- */
.breadcrumbs {
  padding-top: 18px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-faint);
}
.breadcrumbs a { color: var(--ink-faint); }
.breadcrumbs a:hover { color: var(--green-darker); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.breadcrumbs li[aria-current] { color: var(--ink-soft); }

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-darker);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  max-width: 15ch;
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-notes {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 14px;
}
.hero-notes li { display: flex; align-items: center; gap: 8px; }

.hero-art { position: relative; height: 420px; }
.card-fan { position: absolute; inset: 0; }
.card-fan .card {
  position: absolute;
  width: 190px;
  height: 264px;
  border-radius: 24px 24px 24px 6px;
  background: var(--white);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-card);
}
.card-fan .card-1 { left: 10%; top: 18%; transform: rotate(-12deg); border-color: var(--line); z-index: 1; }
.card-fan .card-2 { left: 32%; top: 4%; transform: rotate(3deg); border-color: var(--green); z-index: 2; }
.card-fan .card-3 { left: 52%; top: 20%; transform: rotate(16deg); border-color: var(--line); z-index: 1; }
.card-fan .card-corner {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}
.card-fan .card-2 .card-corner { color: var(--green-dark); }
.card-fan .card-suit-big { position: absolute; right: 20px; bottom: 20px; width: 46px; height: 46px; opacity: 0.9; }

/* Section rhythm ------------------------------------------------------------ */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker {
  color: var(--green-darker);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.bg-mist { background: var(--green-mist); }
.bg-diagonal {
  background: var(--green);
  color: var(--white);
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  margin-block: -1px;
}
.bg-diagonal .section-head h2,
.bg-diagonal .section-head p { color: var(--white); }
.bg-diagonal .section-head .kicker { color: var(--green-light); }

/* Card grid ------------------------------------------------------------------ */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 8px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tile .tile-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-darker);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile .tile-icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 19px; }
.tile p { color: var(--ink-soft); font-size: 15px; }
.tile a.tile-link { color: var(--green-darker); font-weight: 700; font-size: 14px; margin-top: auto; }
.tile a.tile-link:hover { text-decoration: underline; }

.bg-diagonal .tile { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); box-shadow: none; }
.bg-diagonal .tile h3, .bg-diagonal .tile p { color: var(--white); }
.bg-diagonal .tile p { color: rgba(255,255,255,0.82); }
.bg-diagonal .tile .tile-icon { background: rgba(255,255,255,0.16); color: var(--white); }

/* Featured / highlight banner -------------------------------------------------- */
.highlight-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.highlight-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,185,38,0.5), transparent 70%);
}
.highlight-banner .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.highlight-banner h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.highlight-banner p { color: rgba(255,255,255,0.78); margin-bottom: 24px; max-width: 46ch; }

/* Steps (sequential content only) -------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }
.step .step-num {
  counter-increment: step;
  width: 48px; height: 48px;
  border-radius: 14px 14px 14px 4px;
  background: var(--green-light);
  color: var(--green-darker);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.step .step-num::before { content: counter(step); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Table ---------------------------------------------------------------------- */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data-table th, table.data-table td {
  padding: 16px 18px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
table.data-table th {
  background: var(--green-mist);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 13.5px;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td .code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-darker);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: "Manrope", monospace;
  letter-spacing: 0.04em;
}
.copy-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.copy-btn:hover { border-color: var(--green); color: var(--green-darker); }
.copy-btn[data-copied="true"] { background: var(--green-light); color: var(--green-darker); border-color: var(--green); }

/* Forms ------------------------------------------------------------------------ */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.form-field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px var(--green-light); }
.form-row-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.form-note { text-align: center; margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.form-note a { color: var(--green-darker); font-weight: 700; }
.form-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 13px; margin: 24px 0; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* FAQ ---------------------------------------------------------------------------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  color: var(--ink);
}
.faq-question .faq-icon {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green-darker);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.faq-item[data-open="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 22px 20px; color: var(--ink-soft); font-size: 15px; max-width: 68ch; }

/* CTA band ------------------------------------------------------------------------ */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 48px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band .btn-primary { background: var(--white); color: var(--green-darker); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--green-light); }

/* SEO content block ------------------------------------------------------------- */
.seo-content {
  background: var(--green-mist);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 100%;
}
.seo-content h2 { font-size: 24px; margin-bottom: 16px; font-family: var(--font-display); }
.seo-content h3 { font-size: 19px; margin: 24px 0 10px; font-family: var(--font-display); }
.seo-content h4 { font-size: 16px; margin: 18px 0 8px; }
.seo-content p { color: var(--ink-soft); margin-bottom: 14px; max-width: 80ch; }
.seo-content ul, .seo-content ol { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.seo-content ul { list-style: disc; }
.seo-content ol { list-style: decimal; }
.seo-content li { margin-bottom: 6px; line-height: 1.6; }
.seo-content a { color: var(--green-darker); font-weight: 700; text-decoration: underline; }
.seo-content strong, .seo-content b { color: var(--ink); }
.seo-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.seo-content table th, .seo-content table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 14px; }
.seo-content table th { background: rgba(95,185,38,0.12); }
.seo-content .seo-placeholder { color: var(--ink-faint); font-style: italic; }

/* Legal notice strip -------------------------------------------------------------- */
.legal-strip {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.6;
}
.legal-strip strong { color: var(--ink-soft); }

/* 18+ / responsible gaming badge ---------------------------------------------------- */
.rg-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.rg-badge .age-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

/* Footer ------------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 14px; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-col h4 { color: var(--white); font-size: 14px; margin-bottom: 16px; font-family: var(--font-body); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; }
.footer-col a:hover { color: var(--white); }
.footer-desc { font-size: 14px; max-width: 34ch; margin-bottom: 18px; color: rgba(255,255,255,0.6); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-legal-block {
  padding-top: 28px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 90ch;
}

/* Mobile ---------------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { height: 300px; margin-top: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .highlight-banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  section { padding: 52px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-card, .highlight-banner, .cta-band, .seo-content { padding: 26px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  table.data-table { min-width: 480px; }

  .mobile-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    z-index: 49;
    padding: 24px;
    overflow-y: auto;
    display: none;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: flex;
    align-items: center;
    padding: 16px 4px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav .mobile-cta { margin-top: 24px; display: grid; gap: 12px; }
}

@media (min-width: 721px) {
  .mobile-nav { display: none !important; }
}
