/* Lokefreja Casino — dark fantasy design system */
:root {
  --bg: #15111c;
  --bg-header: #241d2f;
  --bg-card: #1b1522;
  --bg-widget: #201827;
  --bg-panel: #2a202f;
  --bg-hero: #211728;
  --bg-input: #211827;
  --bg-menu: #100b18;
  --border: #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; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

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

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: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }

p { margin-bottom: 14px; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }

section { padding: 40px 0; scroll-margin-top: 76px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  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;
  padding: 13px 30px;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 4px rgba(0,0,0,.55);
  transition: background .2s, color .2s;
  user-select: none;
}
.btn:hover {
  background: linear-gradient(180deg, var(--btn-hover-top) 0%, var(--btn-hover-bottom) 100%);
  color: #fff;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--btn-border);
  color: var(--heading);
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(185,145,84,.15);
  color: var(--gold-hover);
}

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

.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: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(255,137,45,.24);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid #15101d;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.logo img { max-height: 44px; width: auto; }
.main-nav { display: flex; gap: 20px; }
.main-nav a {
  color: var(--nav);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px #000;
}
.main-nav a:hover { color: var(--gold-hover); }
.header-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-img);
  border-radius: 4px;
  color: var(--nav);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.mobile-nav {
  display: none;
  background: var(--bg-menu);
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.mobile-nav.open { max-height: 360px; }
.mobile-nav a {
  display: block;
  padding: 13px 20px;
  color: var(--nav);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 2px;
  border-bottom: 1px solid #1c1425;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav { display: block; }
  .header-cta .btn-login { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 2px solid var(--border-hero);
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-inner {
  position: relative;
  text-align: center;
  padding: 70px 16px 76px;
  max-width: 820px;
  margin: 0 auto;
}
.hero-inner p {
  margin: 18px auto 26px;
  max-width: 640px;
  font-size: 1.05rem;
  text-wrap: pretty;
}
.hero .badge-fire { margin-bottom: 18px; }

/* ---------- Quick facts ---------- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}
.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
  padding: 16px;
  text-align: center;
}
.fact-card strong { display: block; color: var(--gold); font-size: 1.1rem; margin-bottom: 4px; }
.fact-card span { font-size: 0.85rem; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- TOC ---------- */
.toc {
  background: var(--bg-widget);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 34px;
}
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.toc a::before { content: counter(toc) ". "; color: var(--btn-border); }
.toc a:hover { background: var(--bg-panel); }
@media (max-width: 640px) { .toc ol { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); font-size: 0.95rem; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
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: 0.78rem;
  letter-spacing: 1.5px;
}
tr:last-child td { border-bottom: none; }

/* ---------- Bonus banner ---------- */
.bonus-banner {
  position: relative;
  border: 2px solid var(--border-hero);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  margin: 30px 0;
}
.bonus-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .45; }
.bonus-banner-inner {
  position: relative;
  text-align: center;
  padding: 46px 20px;
}
.bonus-banner-inner h3 { font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 18px 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px 14px 58px;
  margin-bottom: 10px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-a), var(--fire-b));
  color: var(--fire-text);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Games grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 22px 0;
}
@media (max-width: 1000px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }

.game-tile {
  position: relative;
  border: 2px solid var(--border-img);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}
.game-tile img { width: 100%; aspect-ratio: 290 / 400; object-fit: cover; }
.game-tile figcaption {
  padding: 8px 6px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--nav);
  background: var(--bg-widget);
  border-top: 1px solid var(--border-soft);
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(16,11,24,.82);
  opacity: 0;
  transition: opacity .2s ease;
  padding: 10px;
}
.game-tile:hover .game-overlay,
.game-tile:focus-within .game-overlay { opacity: 1; }
.game-overlay .btn { width: 110px; padding: 10px 0; font-size: 0.8rem; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 22px 0;
}
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
  padding: 18px;
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire-a), var(--fire-b));
  color: var(--fire-text);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-head strong { display: block; color: var(--heading); }
.review-head small { color: #b3a68e; }
.review-stars { height: 20px; width: auto; margin-bottom: 10px; }
.review-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Expert quote ---------- */
.expert-quote {
  background: var(--bg-widget);
  border: 1px solid var(--border);
  border-left: 4px solid var(--btn-border);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 22px 0;
  font-style: italic;
}
.expert-quote footer { margin-top: 10px; font-style: normal; font-weight: 700; color: var(--gold); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  color: var(--heading);
  list-style: none;
  position: relative;
  padding-right: 42px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 800;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 16px; }
.faq summary:hover { color: var(--gold-hover); }

/* ---------- Section CTA row ---------- */
.cta-row { text-align: center; margin-top: 22px; }

/* ---------- Checklist ---------- */
.check-list { list-style: none; margin: 14px 0; }
.check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-menu);
  border-top: 1px solid var(--border-soft);
  padding: 30px 0;
  margin-top: 40px;
  font-size: 0.85rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.footer-links a {
  color: var(--nav);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
}
.footer-links a:hover { color: var(--gold-hover); }
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--fire-b);
  color: var(--fire-a);
  font-weight: 900;
  margin-bottom: 14px;
}
.site-footer p { color: #b3a68e; margin-bottom: 6px; }
