/* ============================================================
   DRAGON MONEY — STYLESHEET
   Palette: charcoal / sunrise
   ============================================================ */

/* ----------------------------------------------------------
   1. CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  --base:    #22242B;
  --deep:    #141519;
  --accent:  #FF9F1C;
  --accent2: #2EC4B6;
  --surface: #F5F5F3;
  --ink:     #1A1B20;
  --muted:   #63666F;

  --radius: 4px;
  --max-w:  1200px;

  --font-head: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ----------------------------------------------------------
   2. RESET / BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.65rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ----------------------------------------------------------
   3. CONTAINER
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ----------------------------------------------------------
   4. HEADER
   ---------------------------------------------------------- */
header {
  background: var(--base);
  border-bottom: 3px solid var(--accent);
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.1rem 1rem 0.7rem;
}

/* CSS-only wordmark logo */
.logo-wordmark {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.logo-wordmark span {
  color: var(--accent);
}
.logo-wordmark::before {
  content: '🐉';
  font-size: 1.4rem;
  margin-right: 0.35rem;
}
.logo-wordmark:hover { text-decoration: none; opacity: 0.9; }
.logo-wordmark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

nav {
  background: var(--deep);
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 0;
}
nav ul li a {
  display: block;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
}
nav ul li a:hover {
  color: #fff;
  background: rgba(255,159,28,0.1);
  border-bottom-color: var(--accent);
}
nav ul li a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
nav ul li a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ----------------------------------------------------------
   5. BONUS BANNER
   ---------------------------------------------------------- */
.bonus-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--base) 60%, #2d1a00 100%);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.bonus-banner .eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent2);
}

.bonus-banner .offer-headline {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  max-width: 680px;
  line-height: 1.35;
}
.bonus-banner .offer-headline strong {
  color: var(--accent);
}

.bonus-banner .fine-print {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   6. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.72rem 1.8rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--deep);
  background: linear-gradient(180deg, #ffb74d 0%, var(--accent) 50%, #e08800 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 6px rgba(0,0,0,0.25);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.01em;
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 12px rgba(255,159,28,0.4);
  text-decoration: none;
  color: var(--deep);
}
.btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}
.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn-secondary {
  background: linear-gradient(180deg, #47ddd4 0%, var(--accent2) 50%, #1e9b92 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 6px rgba(0,0,0,0.25);
  color: var(--deep);
}
.btn-secondary:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 12px rgba(46,196,182,0.4);
  color: var(--deep);
}

/* ----------------------------------------------------------
   7. MAIN / SECTIONS
   ---------------------------------------------------------- */
main {
  padding-bottom: 2rem;
}

.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddddd9;
}
.section:last-of-type {
  border-bottom: none;
}

.intro-section {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}
.intro-section h1 {
  color: var(--base);
  margin-bottom: 0.85rem;
}

/* ----------------------------------------------------------
   8. TABLES
   ---------------------------------------------------------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: #fff;
}
thead tr {
  border-bottom: 2px solid var(--accent);
}
thead th {
  padding: 0.7rem 1rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-align: left;
  white-space: nowrap;
  background: #fff;
}
tbody tr {
  border-bottom: 1px solid #e2e2de;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody td {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  vertical-align: top;
}
tbody tr:hover td {
  background: #fafaf7;
}

/* ----------------------------------------------------------
   9. BONUS CARDS
   ---------------------------------------------------------- */
.bonus-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.bonus-card {
  background: #fff;
  border: 1px solid #ddddd9;
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  padding: 1.2rem 1.3rem;
}
.bonus-card .card-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.bonus-card .card-amount {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--base);
  margin-bottom: 0.5rem;
}
.bonus-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   10. GAMES GRID
   ---------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.game-card {
  background: #fff;
  border: 1px solid #ddddd9;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent2);
  padding: 1.2rem 1.3rem;
}
.game-card .game-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}
.game-card h3 {
  font-family: var(--font-head);
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.game-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   11. HIGHLIGHT BOX
   ---------------------------------------------------------- */
.highlight-box {
  background: #fff;
  border: 1px solid #ddddd9;
  border-left: 4px solid var(--accent2);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}
.highlight-box p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   12. FAQ ACCORDION (CSS-only, hidden-checkbox technique)
   ---------------------------------------------------------- */
.faq-section h2 {
  margin-bottom: 1rem;
}

.faq-item {
  border-bottom: 1px solid #ddddd9;
  margin-bottom: 0;
}
.faq-item:last-of-type {
  border-bottom: none;
}

/* hide the checkbox visually but keep it accessible */
.faq-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.faq-item label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.faq-item label:hover {
  color: var(--accent);
}
.faq-item label:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* Plus/minus drawn entirely in CSS */
.faq-item label::after {
  content: '';
  flex-shrink: 0;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
  background:
    /* horizontal bar */
    linear-gradient(var(--accent), var(--accent)) center / 10px 2px no-repeat,
    /* vertical bar */
    linear-gradient(var(--accent), var(--accent)) center / 2px 10px no-repeat;
  transition: transform 0.25s, background 0.2s;
}

.faq-item input[type="checkbox"]:checked ~ label::after {
  /* rotate to show minus: hide vertical bar */
  background:
    linear-gradient(var(--accent), var(--accent)) center / 10px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 0px no-repeat;
  transform: rotate(180deg);
  border-color: var(--accent2);
}

.faq-item input[type="checkbox"]:checked ~ label {
  color: var(--accent);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}

.faq-item input[type="checkbox"]:checked ~ .faq-body {
  max-height: 600px;
  padding-bottom: 1rem;
}

.faq-body p {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0 0.25rem;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   13. INFO CARDS (two-column card grid)
   ---------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1rem;
}

.info-card {
  background: #fff;
  border: 1px solid #ddddd9;
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.info-card h3 {
  font-family: var(--font-head);
  color: var(--accent);
  margin-bottom: 0.55rem;
}
.info-card p {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

/* ----------------------------------------------------------
   14. CHECKLIST
   ---------------------------------------------------------- */
.checklist {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.checklist li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 2px rgba(46,196,182,0.25);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------
   15. DISCLAIMER
   ---------------------------------------------------------- */
.disclaimer {
  background: #fff;
  border: 1px solid #ddddd9;
  border-left: 4px solid var(--muted);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 2rem 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ----------------------------------------------------------
   16. PAGE INTRO (inner pages)
   ---------------------------------------------------------- */
.page-intro {
  background: linear-gradient(135deg, var(--base) 0%, #2e3240 100%);
  padding: 2rem 0 1.8rem;
  margin-bottom: 0;
}
.page-intro h1 {
  color: #fff;
  font-size: 1.85rem;
}
.page-intro p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   17. FOOTER
   ---------------------------------------------------------- */
footer {
  background: var(--base);
  color: #ccc;
  margin-top: 2rem;
  border-top: 3px solid var(--accent);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 0 1.5rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-logo span {
  color: var(--accent);
}

.footer-nav-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-links li a {
  font-size: 0.88rem;
  color: #aaa;
  transition: color 0.2s;
}
.footer-links li a:hover { color: var(--accent); text-decoration: none; }
.footer-links li a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   18. QUICK FACTS / PAYMENTS / MOBILE SECTIONS
   ---------------------------------------------------------- */
.quick-facts h2,
.payments-section h2,
.mobile-section h2,
.games-section h2,
.bonus-section h2 {
  color: var(--base);
}

.quick-facts h2 { margin-bottom: 1rem; }

.mobile-section h3,
.bonus-section h3,
.games-section h3 {
  color: var(--base);
  margin-top: 1.3rem;
}

/* ----------------------------------------------------------
   19. BREAKPOINT: 640px
   ---------------------------------------------------------- */
@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }

  .bonus-banner { padding: 2.5rem 1.5rem; }
  .bonus-banner .offer-headline { font-size: 1.55rem; }

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

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-intro h1 { font-size: 2rem; }

  h1 { font-size: 2.5rem; }
}

/* ----------------------------------------------------------
   20. BREAKPOINT: 1024px
   ---------------------------------------------------------- */
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }

  .bonus-banner { padding: 3rem 2rem; }
  .bonus-banner .offer-headline { font-size: 1.85rem; }

  .bonus-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-wordmark { font-size: 2rem; }

  nav ul li a { padding: 0.75rem 1.2rem; font-size: 0.9rem; }

  .page-intro { padding: 2.5rem 0 2.2rem; }
  .page-intro h1 { font-size: 2.4rem; }

  .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  .faq-item label { font-size: 1rem; padding: 1.1rem 0.25rem; }
}