/* ==========================================================================
   Dragonia Casino — variante 2 (palette jade & cuivre)
   ========================================================================== */

:root {
  --ink:            #071614;
  --ink-2:         #0c221f;
  --ink-3:         #123330;
  --surface:       #0f2926;
  --surface-2:     #16403a;
  --line:          #1f544c;
  --jade:          #2fd6a5;
  --jade-deep:     #14a37c;
  --copper:        #e0803a;
  --copper-soft:   #f0a765;
  --cream:         #f3efe4;
  --muted:         #9fbdb6;
  --radius:        14px;
  --radius-lg:     22px;
  --shadow:        0 18px 44px rgba(3, 18, 16, 0.6);
  --max:           1200px;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--cream);
  background: var(--ink);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: "Bitter", "Iowan Old Style", Georgia, serif;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--cream);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.1vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 15px; color: #d9e6e2; }
a { color: var(--jade); text-decoration: none; }
a:hover { color: var(--copper-soft); text-decoration: underline; }
strong { color: var(--cream); font-weight: 700; }

ul { padding-left: 22px; color: #d9e6e2; }
li { margin-bottom: 8px; }

:focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

/* ------------------------------ Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--copper);
  color: #2a1305;
  box-shadow: 0 6px 0 #a4551f, var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover {
  background: var(--copper-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #a4551f, var(--shadow);
  text-decoration: none;
  color: #2a1305;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #a4551f; }

.btn-alt {
  background: transparent;
  color: var(--jade);
  border: 2px solid var(--jade-deep);
  box-shadow: none;
}
.btn-alt:hover {
  background: rgba(47, 214, 165, 0.12);
  color: var(--jade);
  border-color: var(--jade);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn-plain {
  background: transparent;
  color: var(--cream);
  box-shadow: none;
  padding: 10px 14px;
}
.btn-plain:hover { background: rgba(243, 239, 228, 0.08); color: var(--cream); box-shadow: none; }

.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ------------------------------ Header ----------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 22, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { width: 138px; height: 54px; object-fit: contain; }

.nav-main { display: none; }
@media (min-width: 1000px) {
  .nav-main { display: flex; gap: 26px; }
  .nav-main a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .nav-main a:hover { color: var(--jade); text-decoration: none; }
}

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--cream); border-radius: 2px; }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0 20px;
  border-top: 1px solid var(--line);
}
.nav-drawer.is-open { display: flex; }
@media (min-width: 1000px) { .nav-drawer, .nav-drawer.is-open { display: none; } }
.nav-drawer a {
  padding: 11px 4px;
  color: var(--cream);
  font-weight: 600;
  border-bottom: 1px solid rgba(31, 84, 76, 0.5);
}

@media (max-width: 560px) {
  .header-actions .btn-plain { display: none; }
  .header-actions .btn-sm { padding: 9px 14px; font-size: 12px; }
  .brand-logo { width: 112px; height: 46px; }
}

/* ------------------------------- Hero ------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 68px 0 80px;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 22, 20, 0.96) 6%, rgba(7, 22, 20, 0.72) 46%, rgba(7, 22, 20, 0.3) 100%),
    linear-gradient(to top, var(--ink) 2%, transparent 42%);
}
.hero-inner > * { max-width: 660px; }
.hero-inner h1 { max-width: 700px; }

.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 9px 20px;
  background: var(--jade-deep);
  color: #04241b;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero p.hero-lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #cfe2dd;
  max-width: 560px;
  margin-bottom: 26px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(47, 214, 165, 0.28);
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.hero-facts li {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.hero-facts b { display: block; font-size: 20px; color: var(--jade); font-family: "Bitter", Georgia, serif; }

/* ------------------------------ Sections --------------------------------- */

.band { padding: 68px 0; scroll-margin-top: 84px; }
.band-alt { background: var(--ink-2); }
.band-deep { background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); }

.band-head { max-width: 780px; margin-bottom: 34px; }
.band-head h2 { max-width: 640px; }
.band-head .eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--copper-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------- Panels ---------------------------------- */

.panel-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .panel-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .panel-row-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .panel-row-4 { grid-template-columns: repeat(4, 1fr); } }

.panel {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--jade-deep);
  border-radius: var(--radius);
}
.panel h3 { margin-bottom: 10px; }
.panel p:last-child { margin-bottom: 0; }
.panel-copper { border-left-color: var(--copper); }

.stat-panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.stat-panel b {
  display: block;
  font-family: "Bitter", Georgia, serif;
  font-size: 30px;
  color: var(--jade);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-panel span { font-size: 14px; color: var(--muted); }

/* ------------------------------ Game grid -------------------------------- */

.game-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 620px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 940px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }

.game {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 10;
}
.game > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.game-veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  background: linear-gradient(to top, rgba(7, 22, 20, 0.95), rgba(7, 22, 20, 0.78));
  opacity: 0;
  transition: opacity 0.28s ease;
}
.game:hover > img,
.game:focus-within > img { transform: scale(1.07); filter: brightness(0.75); }
.game:hover .game-veil,
.game:focus-within .game-veil { opacity: 1; }

.game-veil .btn {
  width: 100%;
  max-width: 148px;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.game-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 9px;
  background: linear-gradient(to top, rgba(7, 22, 20, 0.94), transparent);
  font-size: 13px;
  font-weight: 700;
  color: var(--cream);
  text-align: center;
  transition: opacity 0.28s ease;
}
.game:hover .game-name,
.game:focus-within .game-name { opacity: 0; }

/* ------------------------------ Logo strip ------------------------------- */

.logo-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}
@media (min-width: 620px) { .logo-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 940px) { .logo-strip { grid-template-columns: repeat(6, 1fr); } }

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  min-height: 78px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.logo-cell img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.35) brightness(1.05);
  transition: filter 0.25s ease;
}
.logo-cell:hover img { filter: none; }

/* ------------------------------ Promo cards ------------------------------ */

.promo-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .promo-row { grid-template-columns: repeat(2, 1fr); } }

.promo {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.promo > img { width: 100%; height: auto; object-fit: contain; background: var(--ink-2); }
.promo-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.promo-body h3 { margin: 0; }
.promo-body p { margin: 0; font-size: 15px; }
.promo-body .btn { align-self: flex-start; margin-top: auto; }

/* ------------------------------- Table ----------------------------------- */

.table-scroll { overflow-x: auto; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
caption {
  caption-side: top;
  padding: 0 0 12px;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: var(--surface-2);
  color: var(--jade);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(47, 214, 165, 0.05); }

/* ------------------------------- Steps ----------------------------------- */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li {
  counter-increment: s;
  position: relative;
  margin: 0;
  padding: 44px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  top: 18px; left: 20px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: var(--jade-deep);
  color: #04241b;
  border-radius: 9px;
  font-family: "Bitter", Georgia, serif;
  font-size: 17px;
  font-weight: 800;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 7px; }
.steps p { font-size: 15px; margin: 0; }

/* ------------------------------ Reviews ---------------------------------- */

.review-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .review-row { grid-template-columns: repeat(3, 1fr); } }

.review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review-stars { color: var(--copper-soft); letter-spacing: 3px; font-size: 15px; }
.review blockquote { margin: 0; font-size: 15px; color: #d9e6e2; font-style: italic; }
.review figcaption { font-size: 13px; color: var(--muted); }
.review figcaption b { color: var(--cream); font-style: normal; }

/* -------------------------------- FAQ ------------------------------------ */

.faq-list { display: flex; flex-direction: column; gap: 12px; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
details[open] { border-color: var(--jade-deep); }
summary {
  padding: 17px 50px 17px 20px;
  position: relative;
  cursor: pointer;
  font-family: "Bitter", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cream);
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  color: var(--jade);
}
details[open] summary::after { content: "\2013"; }
details .faq-answer { padding: 0 20px 18px; }
details .faq-answer p:last-child { margin-bottom: 0; }

/* ------------------------------ Highlight -------------------------------- */

.pull {
  padding: 26px 28px;
  margin: 26px 0;
  background: var(--surface-2);
  border-left: 5px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull p:last-child { margin-bottom: 0; }

.cta-band {
  padding: 44px 28px;
  background: linear-gradient(115deg, var(--surface-2), var(--ink-3));
  border: 1px solid var(--jade-deep);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 620px; margin: 0 auto 22px; }

/* ------------------------------- Footer ---------------------------------- */

.site-footer {
  padding: 52px 0 30px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 30px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer-grid h4 { color: var(--cream); margin-bottom: 12px; font-size: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--jade); }

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: 12px;
  border: 2px solid var(--copper);
  border-radius: 50%;
  color: var(--copper-soft);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.footer-legal {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}

/* ------------------------------ Utilities -------------------------------- */

.prose { max-width: 860px; }
.prose h3 { margin-top: 30px; }
.mt-md { margin-top: 22px; }
.text-pretty { text-wrap: pretty; }
.text-balance { text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
