/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold:     #f0b429;
  --gold-light: #ffd35e;
  --red:      #c0392b;
  --red-dark: #96281b;
  --dark:     #0d0b08;
  --dark2:    #18140e;
  --dark3:    #221c12;
  --dark4:    #2e2415;
  --text:     #e8d8b0;
  --text-dim: #a89060;
  --radius:   12px;
  --shadow:   0 4px 32px rgba(0,0,0,.6);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-alt { background: var(--dark2); }
.section-alt2 { background: var(--dark3); }
.badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
h1, h2, h3 { font-weight: 800; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
.gold { color: var(--gold); }
.text-center { text-align: center; }
.section-lead { color: var(--text-dim); max-width: 680px; margin: 0 auto 48px; font-size: 1.05rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .18s, box-shadow .18s, filter .18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-primary {
  background: linear-gradient(135deg, #e8a020 0%, #c0392b 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(192,57,43,.45);
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover { background: rgba(240,180,41,.08); color: var(--gold-light); }
.btn-lg { padding: 18px 48px; font-size: 1.12rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost {
  background: rgba(255,255,255,.07);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-ghost:hover { background: rgba(255,255,255,.13); color: #fff; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(13,11,8,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240,180,41,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.5px;
  color: #fff;
}
.logo-icon { width: 42px; height: 42px; }
.logo span { color: var(--gold); }
nav { display: flex; gap: 6px; align-items: center; }
nav a {
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
nav a:hover { color: var(--gold); background: rgba(240,180,41,.08); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/dragonmani.jpg') center center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,11,8,.92) 0%,
    rgba(13,11,8,.75) 40%,
    rgba(96,28,18,.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,180,41,.12);
  border: 1px solid rgba(240,180,41,.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: '●'; font-size: 8px; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-desc { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 36px; max-width: 540px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { text-align: left; }
.stat-value { font-size: 1.8rem; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-dim); margin-top: 2px; }

/* ===== MIRROR BANNER ===== */
.mirror-banner {
  background: linear-gradient(90deg, var(--red-dark) 0%, #7b1c10 100%);
  padding: 18px 0;
  text-align: center;
}
.mirror-banner p { font-size: .95rem; font-weight: 600; color: #fff; }
.mirror-banner a { color: var(--gold-light); text-decoration: underline; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(240,180,41,.2);
  pointer-events: none;
}
.about-text p { color: var(--text-dim); margin-bottom: 16px; }
.about-features { list-style: none; margin: 24px 0; }
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-dim);
}
.about-features li::before {
  content: '🐉';
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== MIRROR ===== */
.mirror-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.mirror-card {
  background: var(--dark3);
  border: 1px solid rgba(240,180,41,.12);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.mirror-card:hover { border-color: rgba(240,180,41,.4); transform: translateY(-4px); }
.mirror-card-icon { font-size: 2.5rem; margin-bottom: 14px; }
.mirror-card h3 { color: var(--gold); margin-bottom: 8px; }
.mirror-card p { color: var(--text-dim); font-size: .95rem; }

/* ===== GAMES ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark3);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .22s, box-shadow .22s;
  text-decoration: none;
}
.game-card:hover { transform: scale(1.04); box-shadow: 0 8px 40px rgba(240,180,41,.2); }
.game-card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.game-card-body { padding: 14px 16px; }
.game-card-title { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.game-card-tag { font-size: .75rem; color: var(--text-dim); }
.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,11,8,.9) 100%);
  opacity: 0;
  transition: opacity .22s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}
.game-card:hover .game-overlay { opacity: 1; }
.game-play-btn {
  background: var(--gold);
  color: #1a0a00;
  font-size: .85rem;
  font-weight: 800;
  padding: 8px 22px;
  border-radius: 50px;
}

/* ===== REGISTRATION ===== */
.reg-section {
  background: linear-gradient(135deg, #1a0e04 0%, #2a1208 50%, #1a0e04 100%);
  border-top: 1px solid rgba(240,180,41,.12);
  border-bottom: 1px solid rgba(240,180,41,.12);
}
.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.steps { margin-top: 32px; }
.step { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8a020, #c0392b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #fff;
}
.step-text h3 { color: var(--gold); margin-bottom: 4px; }
.step-text p { color: var(--text-dim); font-size: .95rem; }
.reg-cta { text-align: center; }
.reg-cta .promo-box {
  background: rgba(240,180,41,.07);
  border: 1px dashed rgba(240,180,41,.35);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.promo-amount { font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; }
.promo-label { color: var(--text-dim); font-size: .9rem; margin-top: 6px; }

/* ===== ADVANTAGES ===== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.adv-card {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s;
}
.adv-card:hover { border-color: rgba(240,180,41,.25); }
.adv-icon { font-size: 2rem; margin-bottom: 14px; }
.adv-card h3 { color: var(--text); margin-bottom: 8px; }
.adv-card p { color: var(--text-dim); font-size: .9rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; margin-top: 48px; }
.faq-item {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--dark3);
  border: none;
  text-align: left;
  padding: 18px 24px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-q:hover { background: var(--dark4); }
.faq-q .arrow { font-size: 1.1rem; color: var(--gold); transition: transform .25s; flex-shrink: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s;
  background: var(--dark2);
}
.faq-a-inner { padding: 0 24px 20px; color: var(--text-dim); font-size: .95rem; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-item.open .faq-q { background: var(--dark4); color: var(--gold); }

/* ===== CTA BOTTOM ===== */
.cta-bottom {
  background: linear-gradient(135deg, #96281b 0%, #c0392b 50%, #96281b 100%);
  padding: 70px 0;
  text-align: center;
}
.cta-bottom h2 { color: #fff; margin-bottom: 12px; }
.cta-bottom p { color: rgba(255,255,255,.75); margin-bottom: 32px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
footer {
  background: #080604;
  border-top: 1px solid rgba(240,180,41,.1);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: .9rem; margin-top: 12px; max-width: 260px; }
.footer-col h4 { color: var(--gold); font-size: .85rem; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-dim); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-dim); font-size: .82rem; }
.disclaimer {
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  padding: 14px 20px;
  margin-top: 24px;
  font-size: .8rem;
  color: var(--text-dim);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  nav, .header-cta .btn-secondary { display: none; }
  .burger { display: flex; }
  .about-grid, .reg-grid { grid-template-columns: 1fr; }
  .about-img { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== SCROLL TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a0a00;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  z-index: 998;
  font-weight: 900;
  transition: transform .2s;
}
#scrollTop:hover { transform: scale(1.1); }
#scrollTop.show { display: flex; }

/* ===== REDIRECT COUNTDOWN OVERLAY ===== */
#rdOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,5,2,.92);
  backdrop-filter: blur(8px);
  animation: overlayIn .4s ease;
}
@keyframes overlayIn { from{opacity:0} to{opacity:1} }

#rdBox {
  background: linear-gradient(160deg, #1a0e04 0%, #2e1a08 50%, #1a0e04 100%);
  border: 1px solid rgba(240,180,41,.25);
  border-radius: 24px;
  padding: 44px 36px 36px;
  max-width: 480px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 0 80px rgba(192,57,43,.35), 0 24px 60px rgba(0,0,0,.7);
  position: relative;
  animation: boxIn .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes boxIn { from{transform:scale(.8) translateY(30px);opacity:0} to{transform:scale(1) translateY(0);opacity:1} }

#rdLogo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -.5px;
}
#rdLogo span { color: #f0b429; }

#rdSub {
  font-size: .88rem;
  color: #a89060;
  margin-bottom: 28px;
}

#rdTimer {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
}
#rdSvg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
#rdCircleBg {
  fill: none;
  stroke: rgba(240,180,41,.1);
  stroke-width: 6;
}
#rdCircleFg {
  fill: none;
  stroke: url(#rdGrad);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset .95s linear;
}
#rdNum {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
  font-weight: 900;
  color: #f0b429;
  line-height: 1;
  text-shadow: 0 0 30px rgba(240,180,41,.5);
}

#rdMsg {
  color: #e8d8b0;
  font-size: .95rem;
  margin-bottom: 28px;
  line-height: 1.5;
}
#rdMsg strong { color: #f0b429; }

#rdBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 20px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, #e8a020 0%, #c0392b 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(192,57,43,.55);
  animation: pulse 1.8s ease-in-out infinite;
  margin-bottom: 16px;
  letter-spacing: .2px;
  line-height: 1.3;
  text-align: center;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 6px 28px rgba(192,57,43,.55); transform: scale(1); }
  50%      { box-shadow: 0 8px 40px rgba(240,180,41,.55); transform: scale(1.02); }
}
#rdBtn:hover { filter: brightness(1.12); animation: none; transform: translateY(-2px); }

#rdSkip {
  font-size: .8rem;
  color: #6a5030;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  transition: color .2s;
}
#rdSkip:hover { color: #a89060; }

@media (max-width: 480px) {
  #rdBox { padding: 32px 22px 28px; }
  #rdBtn { font-size: .95rem; padding: 17px 20px; }
}
