/* ============================================================
   Casino Drakaris — Style 1: Dragon Emerald Dark
   ============================================================ */

:root {
  --bg-deep: #050806;
  --bg-base: #0a0f0c;
  --bg-elevated: #101814;
  --bg-card: #0d1310;
  --bg-card-hover: #121b16;
  --emerald: #00e676;
  --emerald-bright: #39ff14;
  --emerald-deep: #00a853;
  --emerald-muted: #1a3d2a;
  --emerald-glow: rgba(0, 230, 118, 0.45);
  --emerald-glow-soft: rgba(0, 230, 118, 0.18);
  --text: #e8f5e9;
  --text-muted: #9ab3a0;
  --text-dim: #6b8070;
  --border: rgba(0, 230, 118, 0.28);
  --border-strong: rgba(0, 230, 118, 0.55);
  --danger: #ff5252;
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --radius: 6px;
  --header-h: 72px;
  --max-w: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 168, 83, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 230, 118, 0.05), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(0, 100, 50, 0.08), transparent);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--emerald-bright);
  text-shadow: 0 0 8px var(--emerald-glow);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-shadow: 0 0 24px var(--emerald-glow), 0 0 48px var(--emerald-glow-soft);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 16px var(--emerald-glow-soft);
}

h2::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.55rem;
  vertical-align: -2px;
  background:
    linear-gradient(135deg, transparent 40%, var(--emerald) 40%, var(--emerald) 60%, transparent 60%),
    linear-gradient(45deg, transparent 40%, var(--emerald-deep) 40%, var(--emerald-deep) 60%, transparent 60%);
  opacity: 0.85;
  box-shadow: 0 0 10px var(--emerald-glow-soft);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 1.5rem 0 0.75rem;
  color: var(--emerald);
}

h4 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--emerald-bright);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Scale / claw divider ---- */
.scale-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto;
  padding: 0.5rem 0;
  max-width: var(--max-w);
}

.scale-divider::before,
.scale-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.scale-divider span {
  display: block;
  width: 28px;
  height: 16px;
  position: relative;
}

.scale-divider span::before,
.scale-divider span::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--emerald);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 8px var(--emerald-glow-soft);
  opacity: 0.7;
}

.scale-divider span::before { left: 0; top: 0; }
.scale-divider span::after { right: 0; top: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 8, 6, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 0 var(--emerald-glow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  width: auto;
  height: 48px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--emerald-glow));
}

.header-cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
  color: #041008;
  box-shadow: 0 0 18px var(--emerald-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 28px var(--emerald-glow), 0 4px 16px rgba(0, 0, 0, 0.4);
  color: #041008;
}

.btn-outline {
  background: transparent;
  color: var(--emerald);
  border-color: var(--border-strong);
  box-shadow: 0 0 12px var(--emerald-glow-soft);
}

.btn-outline:hover {
  background: var(--emerald-glow-soft);
  border-color: var(--emerald);
  color: var(--emerald-bright);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -30deg,
      transparent,
      transparent 18px,
      rgba(0, 230, 118, 0.015) 18px,
      rgba(0, 230, 118, 0.015) 20px
    );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--emerald-glow-soft);
  box-shadow: 0 0 12px var(--emerald-glow-soft);
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 40px var(--emerald-glow-soft), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-elevated);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  pointer-events: none;
  box-shadow: inset 0 0 40px var(--emerald-glow-soft);
}

/* ---- Sections ---- */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 24, 20, 0.6), rgba(5, 8, 6, 0.3));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2rem;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 0 20px var(--emerald-glow-soft);
}

.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--emerald);
  box-shadow: 0 0 12px var(--emerald-glow-soft);
  position: relative;
}

.card-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--emerald);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 8px var(--emerald-glow-soft);
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 20px var(--emerald-glow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}

thead {
  background: linear-gradient(180deg, var(--emerald-muted), var(--bg-elevated));
}

th {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  color: var(--emerald-bright);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
  text-shadow: 0 0 8px var(--emerald-glow-soft);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 230, 118, 0.12);
  color: var(--text-muted);
}

tbody tr:nth-child(even) {
  background: rgba(0, 230, 118, 0.03);
}

tbody tr:hover {
  background: rgba(0, 230, 118, 0.08);
}

tbody tr:last-child td {
  border-bottom: none;
}

td strong,
td .highlight {
  color: var(--emerald);
  font-weight: 600;
}

/* ---- Steps / stages ---- */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--emerald);
}

.step-num {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #041008;
  background: var(--emerald);
  border-radius: 4px;
  box-shadow: 0 0 14px var(--emerald-glow);
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
}

/* ---- Games ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 24px var(--emerald-glow-soft);
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-elevated);
}

.game-card-body {
  padding: 1.25rem;
}

.game-card-body h3 {
  margin-top: 0;
}

/* ---- FAQ ---- */
.faq-block {
  margin-bottom: 2.5rem;
}

.faq-block > h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 0 8px var(--emerald-glow-soft);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  background: var(--emerald-glow-soft);
}

.faq-item .faq-a {
  padding: 0 1.15rem 1.15rem;
  color: var(--text-muted);
}

.faq-item .faq-a p:last-child {
  margin-bottom: 0;
}

.faq-item .faq-a ul {
  margin-bottom: 0.5rem;
}

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  padding: 3.5rem 1.25rem;
  margin: 1rem 0 0;
  background:
    radial-gradient(ellipse at center, rgba(0, 230, 118, 0.12), transparent 70%),
    var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 0 60px var(--emerald-glow-soft);
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band h2::before {
  display: none;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(0, 168, 83, 0.1), transparent);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
}

.content-page {
  padding: 2.5rem 0 3.5rem;
}

.content-page .prose {
  max-width: 820px;
}

.content-page .prose > h2:first-child {
  margin-top: 0;
}

.content-page h2 {
  margin-top: 2.5rem;
}

.content-page ul li,
.content-page ol li {
  color: var(--text-muted);
}

.help-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.help-list li {
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.help-list li strong {
  color: var(--emerald);
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.warn-list li {
  margin-bottom: 0.55rem;
}

/* ---- Footer ---- */
.site-footer {
  padding: 2.75rem 0 1.75rem;
  background: #030504;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-brand {
  display: inline-block;
  line-height: 0;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: auto;
  height: 42px;
  max-width: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--emerald-glow-soft));
}

.footer-brand:hover {
  opacity: 0.9;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 230, 118, 0.15);
}

.footer-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--emerald);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 230, 118, 0.1);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--bg-deep);
  background: var(--emerald);
  border-radius: 4px;
  vertical-align: middle;
  box-shadow: 0 0 10px var(--emerald-glow);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

.code-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  color: var(--emerald-bright);
  background: var(--emerald-glow-soft);
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: auto;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
    height: auto;
    gap: 0.75rem;
  }

  .header-cta {
    width: 100%;
  }

  .header-cta .btn {
    flex: 1;
    text-align: center;
  }

  .hero {
    padding: 2rem 0;
  }

  .section {
    padding: 2.25rem 0;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
