/* ===========
   Dragon Money — dark landing styles
   =========== */

:root {
  --bg: #090b10;
  --bg-2: #0d1017;
  --surface: #111521;
  --surface-2: #171c29;
  --surface-3: #1c2333;
  --text: #ffffff;
  --muted: rgba(255,255,255,.82);
  --muted-2: rgba(255,255,255,.68);
  --accent: #ffb400;
  --accent-2: #00d26a;
  --link: #ffffff;
  --danger: #ff5577;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --shadow-soft: 0 6px 20px rgba(0,0,0,.35);
  --container: 1200px;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 80% -10%, rgba(255,180,0,.08), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(255,255,255,.03), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  font: 400 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  opacity: .95;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255,180,0,.25);
}

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

/* Containers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 28px);
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  color: #ffffff;
}

h1 {
  font-size: clamp(28px, 3.2vw, 42px);
}

h2 {
  font-size: clamp(24px, 2.6vw, 34px);
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
}

p,
li,
td,
th,
summary,
.brand,
.site-title,
.site-tagline,
.nav-list a,
.footer-nav a,
.qa > summary,
.rollover,
.amount {
  color: #ffffff;
}

.lead,
.benefit p,
.bonus-card p,
.qa p,
.players,
.copyright,
.site-tagline,
.divisions-table th[scope="row"] {
  color: var(--muted);
}

/* Buttons */
.btn {
  --_bg: #2a3142;
  --_fg: #ffffff;
  --_bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  --_bg: var(--accent);
  --_fg: #181319;
}

.btn-outline {
  --_bg: transparent;
  --_bd: rgba(255,255,255,.35);
  --_fg: #ffffff;
}

.btn-accent {
  --_bg: linear-gradient(92deg, #ffc84b 0%, #ffb400 60%, #eaa300 100%);
  --_fg: #181319;
}

.btn-link {
  --_bg: transparent;
  --_fg: #ffffff;
}

.btn-light {
  --_bg: #fff;
  --_fg: #000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(7, 9, 14, .88);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: .75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #ffffff;
}

.brand img {
  border-radius: 8px;
}

.brand-text {
  display: grid;
}

.site-title {
  font-weight: 800;
  letter-spacing: .2px;
}

.site-tagline {
  font-size: .85rem;
}

.menu-toggle {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  padding: .6rem .7rem;
  border-radius: 10px;
  display: none;
  position: relative;
  padding-left: 44px;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}

.menu-toggle::before {
  top: 14px;
  box-shadow: 0 8px 0 currentColor;
}

.menu-toggle::after {
  top: 30px;
}

.menu-toggle[aria-expanded="true"]::before {
  top: 22px;
  box-shadow: none;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  top: 22px;
  transform: rotate(-45deg);
}

.primary-nav {
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: clamp(.5rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: .4rem .6rem;
  color: #ffffff;
  border-radius: 8px;
}

.nav-list a:hover {
  background: rgba(255,255,255,.08);
}

.header-cta {
    display: flex;
    gap: .5rem;
    justify-content: end;
}


/* Mobile nav */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .primary-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(8,10,16,.98);
    translate: 0 -8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow);
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding: .75rem;
  }

  .nav-list a {
    padding: .75rem;
  }
}

/* Hero */
.hero {
  padding-block: clamp(24px, 4vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255,180,0,.12), transparent 60%),
    radial-gradient(800px 400px at -10% 20%, rgba(255,255,255,.03), transparent 60%);
}

.hero-inner {
  display: grid;
  align-items: center;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(20px, 3vw, 40px);
}

.hero-copy .eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .3px;
  color: #ffffff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

.hero-actions {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 10px 30px rgba(0,0,0,.45);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }
}

/* Benefits */
.benefits {
  padding-block: clamp(24px, 5vw, 56px);
}

.benefits-grid {
  display: grid;
  gap: clamp(12px, 2vw, 16px);
  grid-template-columns: repeat(4, 1fr);
}

.benefit {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  min-height: 140px;
}

@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Games */
.games {
  padding-block: clamp(24px, 5vw, 56px);
}

.games-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}

.game-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  grid-column: span 6;
  min-height: 280px;
  border-radius: var(--radius-lg);
  background: #0f1420;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 0 18px rgba(255,255,255,.10),
    0 0 38px rgba(255,255,255,.08),
    0 10px 30px rgba(0,0,0,.42);
  transition: transform .25s ease, box-shadow .25s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 0 24px rgba(255,255,255,.16),
    0 0 52px rgba(255,255,255,.12),
    0 14px 36px rgba(0,0,0,.5);
}

.game-card .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.05);
  transition: transform .6s cubic-bezier(.2,.65,.25,1);
}

.game-card:hover .bg {
  transform: scale(1.06) rotate(.2deg);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7,10,16,.08) 0%, rgba(7,10,16,.62) 55%, rgba(7,10,16,.86) 100%);
}

.game-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.game-card h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  color: #ffffff;
}

.game-card p {
  margin: 0;
  color: rgba(255,255,255,.88);
}

.players {
  font-size: .9rem;
  color: rgba(255,255,255,.78);
}

@media (max-width: 1024px) {
  .game-card {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    grid-column: 1 / -1;
  }
}

/* Bonuses */
.bonuses {
  padding-block: clamp(24px, 5vw, 56px);
}

.bonus-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.bonus-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 140px;
}

@media (max-width: 700px) {
  .bonus-cards {
    grid-template-columns: 1fr;
  }
}

.cashback {
  margin-top: 16px;
  display: grid;
  gap: 16px;
  align-items: center;
  grid-template-columns: 130px 1fr;
  background: linear-gradient(90deg,#fcc237,#d9ad43);
  border-radius: var(--radius-lg);
  padding: 16px;
  color: #1a1309;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.cashback * {
  color: #1a1309;
}

.cashback-img {
  width: 100%;
  max-width: 140px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.15));
  animation: floatY 3.5s ease-in-out infinite;
}

.cashback-bottom {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.rollover {
  background: rgba(255,255,255,.45);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.amount {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
}

@media (max-width: 640px) {
  .cashback {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cashback-bottom {
    justify-content: center;
  }
}

/* One-time bonuses */
.one-time {
  margin-top: 14px;
  display: grid;
  gap: 16px;
  align-items: center;
  grid-template-columns: 120px 1fr auto;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.one-time.tg {
  background: linear-gradient(100deg,#28a7e8,#0f55be);
  color: #fff;
}

.one-time.vk {
  background: linear-gradient(100deg,#5a88db,#679af8);
  color: #fff;
}

.one-time *,
.one-time p,
.one-time li,
.one-time h4 {
  color: #ffffff;
}

.one-time-img {
  width: 110px;
  filter: invert(1) drop-shadow(0 8px 18px rgba(0,0,0,.15));
}

.one-time-body p {
  margin: 6px 0;
}

.one-time-body ul {
  margin: 6px 0 0 1.1rem;
}

.one-time-cta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.one-time-amount {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
}

@media (max-width: 780px) {
  .one-time {
    grid-template-columns: 80px 1fr;
  }

  .one-time-cta {
    justify-items: start;
  }
}

/* Divisions */
.divisions {
  padding-block: clamp(24px, 5vw, 56px);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.divisions-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, #111723 0%, #151b28 100%);
  border: 1px solid rgba(255,255,255,.08);
  color: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
}

.divisions-table th,
.divisions-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #ffffff;
}

.divisions-table thead th {
  position: sticky;
  top: 0;
  background: rgba(18,23,35,.94);
  backdrop-filter: blur(6px);
  color: #ffffff;
}

.divisions-table tbody tr:last-child td,
.divisions-table tbody tr:last-child th {
  border-bottom: 0;
}

.divisions-table th[scope="row"] {
  text-align: left;
}

/* FAQ */
.faq {
  padding-block: clamp(24px, 5vw, 56px);
}

.qa {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 8px 12px;
  overflow: hidden;
}

.qa[open] {
  animation: details-open .2s ease;
}

.qa > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.qa > summary::-webkit-details-marker {
  display: none;
}

.qa > summary::before {
  content: "+";
  inline-size: 28px;
  block-size: 28px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.10);
  color: #ffffff;
  border-radius: 8px;
  flex: 0 0 28px;
  transition: transform .2s ease;
}

.qa[open] > summary::before {
  content: "–";
}

.qa p {
  margin: 8px 0 8px 36px;
}

/* Footer */
.site-footer {
  padding-block: 24px 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(8,10,15,.88);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.brand--footer .site-title {
  font-size: 18px;
}

.footer-nav ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
}

.footer-nav a:hover {
  background: rgba(255,255,255,.08);
}

.copyright {
  margin: 0;
  font-size: .95rem;
}

@media (max-width: 720px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav ul {
    flex-wrap: wrap;
  }

  .brand-text {
    display: none;
  }
}

/* Sections */
section {
  scroll-margin-top: 76px;
}

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .25rem; }
.mb-1 { margin-bottom: .25rem; }
.mt-2 { margin-top: .5rem; }
.mb-2 { margin-bottom: .5rem; }
.mt-3 { margin-top: .75rem; }
.mb-3 { margin-bottom: .75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.text-center { text-align: center; }

/* Ratio helpers */
.ratio-16x9 { position: relative; padding-top: 56.25%; }
.ratio-4x3 { position: relative; padding-top: 75%; }
.ratio-1x1 { position: relative; padding-top: 100%; }

.ratio-16x9 > *,
.ratio-4x3 > *,
.ratio-1x1 > * {
  position: absolute;
  inset: 0;
}

/* Animations */
@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

@keyframes details-open {
  from {
    opacity: .8;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print */
@media print {
  .site-header,
  .hero-media,
  .header-cta,
  .menu-toggle,
  .primary-nav,
  .cashback,
  .one-time {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    max-width: 900px;
  }

  .divisions-table,
  .divisions-table th,
  .divisions-table td {
    border: 1px solid #000 !important;
    color: #000 !important;
  }
}