/* Dragonia Casino - dark fantasy dragon lair theme */
:root {
  --bg: #15111c;
  --bg-header: #241d2f;
  --bg-card: #1b1522;
  --bg-widget: #201827;
  --bg-panel: #2a202f;
  --bg-form: #211827;
  --bg-hero: #211728;
  --border-card: #3e3345;
  --border-soft: #33293a;
  --border-img: #53435c;
  --border-hero: #44364b;
  --border-panel: #4b3d52;
  --text: #f5ead5;
  --heading: #f4e3c1;
  --nav: #f6e7c8;
  --gold: #f6b340;
  --gold-hover: #ffd77a;
  --btn-top: #6f5232;
  --btn-bottom: #2c2021;
  --btn-border: #b99154;
  --btn-text: #fff4d4;
  --btn-hover-top: #c18b35;
  --btn-hover-bottom: #66401f;
  --fire-a: #ffbd39;
  --fire-b: #e24a37;
  --fire-text: #2a1212;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 {
  color: var(--heading);
  font-weight: 800;
  text-shadow: 0 2px 3px #000;
  line-height: 1.25;
  text-wrap: balance;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }

p { margin-bottom: 14px; }

a { color: var(--gold); }
a:hover { color: var(--gold-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--btn-top) 0%, var(--btn-bottom) 100%);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  border-radius: 5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 0, 0, 0.55);
  padding: 13px 28px;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: linear-gradient(180deg, var(--btn-hover-top) 0%, var(--btn-hover-bottom) 100%);
  color: #fff;
}
.btn-lg { padding: 16px 42px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-ghost {
  background: rgba(21, 17, 28, 0.65);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}
.btn-ghost:hover { background: rgba(60, 45, 30, 0.85); color: #fff; }

.badge-fire {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fire-a), var(--fire-b));
  color: var(--fire-text);
  font-weight: 950;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(255, 137, 45, 0.24);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  border-bottom: 1px solid #15101d;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo-img { width: 138px; height: 55px; object-fit: contain; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 22px; list-style: none; }
.main-nav a {
  color: var(--nav);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  text-shadow: 0 2px 3px #000;
}
.main-nav a:hover { color: var(--gold-hover); }
.header-cta { display: flex; align-items: center; gap: 10px; min-width: 0; }
@media (max-width: 560px) {
  .header-cta .btn-ghost { display: none; }
  .header-cta .btn-sm { padding: 8px 12px; font-size: 12px; letter-spacing: 0.5px; }
  .logo-img { width: 110px; height: 44px; }
}
.burger {
  background: none;
  border: 1px solid var(--border-panel);
  border-radius: 5px;
  padding: 9px 11px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.burger span { width: 20px; height: 2px; background: var(--nav); display: block; }
.mobile-nav {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  background: #100b18;
}
.mobile-nav.open { max-height: 400px; }
.mobile-nav ul { list-style: none; padding: 12px 16px; }
.mobile-nav li { border-bottom: 1px solid #241d2f; }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--nav);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-hero);
  border-bottom: 2px solid var(--border-hero);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 64px 16px 72px;
}
.hero h1 { font-size: 2.5rem; max-width: 800px; }
.hero-sub { font-size: 1.15rem; max-width: 640px; margin-bottom: 4px; text-wrap: pretty; }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-widget); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* ---------- TOC ---------- */
.toc {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-panel);
  border-bottom: 1px solid var(--border-panel);
  border-radius: 8px;
  padding: 22px 24px;
}
.toc h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; }
.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 4px;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--heading);
  font-size: 12px;
  font-weight: 800;
}
.toc a:hover { color: var(--gold-hover); background: rgba(246, 179, 64, 0.06); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border-card); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); font-size: 15px; min-width: 520px; }
caption { text-align: left; padding: 12px 14px; font-weight: 800; color: var(--heading); background: var(--bg-panel); text-shadow: 0 2px 3px #000; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); }
th { background: var(--bg-panel); color: var(--heading); text-transform: uppercase; font-size: 12.5px; letter-spacing: 1px; }
tr:last-child td { border-bottom: none; }
td strong { color: var(--heading); }

/* ---------- Game tiles ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.game-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.game-tile img { width: 100%; aspect-ratio: 263 / 156; object-fit: cover; }
.game-meta { padding: 10px 12px; }
.game-name { font-weight: 800; color: var(--heading); font-size: 14px; text-shadow: 0 2px 3px #000; display: block; }
.game-provider { font-size: 12px; color: #b7a68e; text-transform: uppercase; letter-spacing: 1px; }
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(16, 11, 24, 0.82);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.game-tile:hover .game-overlay,
.game-tile:focus-within .game-overlay { opacity: 1; }

/* ---------- Bonus banners ---------- */
.bonus-banner {
  display: flex;
  flex-direction: column;
  background: var(--bg-hero);
  border: 2px solid var(--border-hero);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  margin: 30px 0;
}
.bonus-banner img { width: 100%; object-fit: cover; }
.bonus-banner-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 22px;
}
.bonus-banner-body p { margin: 0; font-size: 1.05rem; }
.bonus-banner-title { font-size: 1.25rem; font-weight: 800; color: var(--heading); text-shadow: 0 2px 3px #000; }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  padding: 20px;
}
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-a), var(--fire-b));
  color: var(--fire-text);
  font-weight: 950;
  margin-bottom: 10px;
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 14px; margin: 18px 0; }
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 16px 18px 16px 58px;
  position: relative;
  counter-increment: step;
}
.steps { counter-reset: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom));
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ---------- Logo strips ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.logo-strip figure {
  background: var(--bg-widget);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 8px;
}
.logo-strip img { width: 100%; aspect-ratio: 526 / 312; object-fit: cover; border-radius: 6px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 10px; margin: 14px 0; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-a), var(--fire-b));
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.5 12.2 2.6 8.3l1.4-1.4 2.5 2.5 5.5-5.6 1.4 1.4z" fill="black"/></svg>') center / contain no-repeat;
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.review-author { font-weight: 800; color: var(--heading); }
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.review p { margin: 0; font-size: 15.5px; }
.review-date { font-size: 12.5px; color: #a08f78; margin-top: 10px; display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 46px 18px 20px;
  font-weight: 800;
  color: var(--heading);
  text-shadow: 0 2px 3px #000;
  position: relative;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 22px;
  font-weight: 800;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 20px 18px; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #100b18;
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 28px;
  font-size: 14px;
}
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
.footer-cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; }
.footer-cols ul { list-style: none; display: grid; gap: 8px; }
.footer-cols a { color: var(--text); text-decoration: none; }
.footer-cols a:hover { color: var(--gold-hover); }
.footer-note { color: #a08f78; font-size: 12.5px; border-top: 1px solid #241d2f; padding-top: 18px; }
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--fire-b);
  color: var(--heading);
  font-weight: 950;
  margin-bottom: 12px;
}

/* ---------- CTA block ---------- */
.cta-block {
  text-align: center;
  padding: 8px 0 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .logo-strip { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .toc ol { grid-template-columns: repeat(2, 1fr); }
  .bonus-banner { flex-direction: row; align-items: stretch; }
  .bonus-banner img { width: 46%; height: auto; }
  .bonus-banner-body { justify-content: center; padding: 28px 32px; }
  h1 { font-size: 2.6rem; }
  .hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .burger { display: none; }
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .logo-strip { grid-template-columns: repeat(6, 1fr); }
}
