@import url("https://fonts.googleapis.com/css2?family=Spectral:wght@600;700;800&family=Epilogue:wght@400;500;600;700&display=swap");

/* ---------- 2. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, dl, dd, table, th, td { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 3. :root ---------- */
:root {
  --bg-base: #0d0e1c;
  --bg-card: #191b34;
  --accent: #6b5bf5;
  --highlight: #f6a52b;
  --text: #f3f1fb;
  --muted: #9a9ac2;
  --border: #2a2c4d;

  --ff-display: "Spectral", Georgia, serif;
  --ff-body: "Epilogue", "Segoe UI", system-ui, sans-serif;
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.12rem;
  --step-1: 1.3rem;
  --step-2: 1.55rem;
  --step-3: 1.95rem;
  --step-4: 2.35rem;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --t-fast: .16s ease;
  --t-med: .28s ease;
  --gut: 18px;
}

/* ---------- 4. html / body / scrollbar ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.68;
  overflow-x: hidden;
}
body::selection, ::selection { background: var(--accent); color: var(--text); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; }

/* ---------- 5. type scale ---------- */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 800; line-height: 1.18; letter-spacing: -.015em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); margin-top: 2.1rem; margin-bottom: .8rem; }
h3 { font-size: var(--step-2); font-weight: 700; margin-top: 1.5rem; margin-bottom: .5rem; }
h4 { font-size: var(--step-1); font-weight: 700; margin-top: 1.1rem; margin-bottom: .4rem; }
p { margin-bottom: 1.05rem; }
p a, li a, td a { color: var(--highlight); border-bottom: 1px solid var(--border); transition: border-color var(--t-fast); }
p a:hover, li a:hover, td a:hover { border-color: var(--highlight); }
strong { font-weight: 700; color: var(--text); }
small { font-size: var(--fs-sm); color: var(--muted); }
.d5k_lede { font-size: var(--fs-lg); color: var(--text); }
.d5k_kicker { font-family: var(--ff-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--highlight); display: block; margin-bottom: .5rem; }
.d5k_dim { color: var(--muted); }
.d5k_ul { margin: 0 0 1.05rem; }
.d5k_ul li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; }
.d5k_ul li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.d5k_ol { counter-reset: d5k; margin: 0 0 1.05rem; }
.d5k_ol li { counter-increment: d5k; position: relative; padding-left: 2.2rem; margin-bottom: .7rem; }
.d5k_ol li::before { content: counter(d5k); position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--bg-card); border: 1px solid var(--border); color: var(--highlight); font-family: var(--ff-body); font-size: var(--fs-sm); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- 6. container ---------- */
.d5k_wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.d5k_wrap--tight { max-width: 820px; }

/* ---------- 7. buttons ---------- */
.d5k_btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.35rem;
  font-family: var(--ff-body); font-size: var(--fs-base); font-weight: 700; line-height: 1.2;
  border-radius: var(--r-pill); border: 1px solid transparent; text-align: center;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.d5k_btn:hover { transform: translateY(-2px); }
.d5k_btn:active { transform: translateY(0); }
.d5k_btn--accent { background: var(--accent); color: var(--text); box-shadow: 0 8px 22px -10px var(--accent); }
.d5k_btn--accent:hover { box-shadow: 0 14px 28px -10px var(--accent); }
.d5k_btn--gold { background: var(--highlight); color: var(--bg-base); box-shadow: 0 8px 22px -10px var(--highlight); }
.d5k_btn--gold:hover { box-shadow: 0 14px 28px -10px var(--highlight); }
.d5k_btn--outline { border-color: var(--border); color: var(--text); background: var(--bg-card); }
.d5k_btn--outline:hover { border-color: var(--accent); }
.d5k_btn--ghost { color: var(--muted); padding-left: 0; padding-right: 0; }
.d5k_btn--ghost:hover { color: var(--highlight); }
.d5k_btn--sm { min-height: 40px; padding: .45rem 1rem; font-size: var(--fs-sm); }
.d5k_btn--lg { min-height: 54px; padding: .95rem 1.9rem; font-size: var(--fs-lg); }
.d5k_btn--full { display: flex; width: 100%; }
.d5k_btnrow { display: flex; flex-direction: column; gap: .7rem; margin: 1.2rem 0; }

/* ---------- 8. nav + mobile nav ---------- */
.d5k_top {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.d5k_topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.d5k_brand { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.d5k_brand img { width: auto; height: 38px; object-fit: contain; }
.d5k_menu { display: none; }
.d5k_menu a { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); padding: .35rem .1rem; transition: color var(--t-fast); }
.d5k_menu a:hover, .d5k_menu a[aria-current="page"] { color: var(--highlight); }
.d5k_burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); }
.d5k_burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t-fast); }
.d5k_topcta { display: none; }
.d5k_mnav { display: none; border-top: 1px solid var(--border); padding: .6rem 0 1rem; }
.d5k_mnav.open { display: block; }
.d5k_mnav a { display: block; padding: .7rem .2rem; min-height: 44px; font-size: var(--fs-base); font-weight: 600; border-bottom: 1px solid var(--border); color: var(--text); }
.d5k_mnav a:hover { color: var(--highlight); }

/* ---------- 9. ticker ---------- */
.d5k_ticker { background: var(--bg-card); border-bottom: 1px solid var(--border); overflow: hidden; }
.d5k_ticker p { margin: 0; padding: .45rem 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: center; }
.d5k_ticker b { color: var(--highlight); }

/* ---------- 10. hero (LAYOUT A — split grid) ---------- */
.d5k_hero { position: relative; padding: 2.2rem 0 2.6rem; overflow: hidden; }
.d5k_hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(58% 46% at 18% 8%, var(--accent) 0%, transparent 62%),
    radial-gradient(44% 40% at 92% 82%, var(--highlight) 0%, transparent 66%),
    linear-gradient(168deg, var(--bg-card) 0%, var(--bg-base) 72%);
  opacity: .55;
}
.d5k_hero > * { position: relative; z-index: 1; }
.d5k_hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
.d5k_hero h1 { margin-bottom: .8rem; }
.d5k_hero-copy p { color: var(--text); }
.d5k_hero-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; }
.d5k_hero-meta span { font-size: var(--fs-xs); font-weight: 600; padding: .28rem .7rem; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--muted); background: var(--bg-card); }

/* recreated welcome banner */
.d5k_offer {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-base) 100%);
  box-shadow: 0 24px 60px -34px var(--accent);
}
.d5k_offer-top { padding: 1.3rem 1.25rem 1.1rem; background: linear-gradient(120deg, var(--accent) 0%, var(--bg-card) 96%); }
.d5k_offer-top b { display: block; font-family: var(--ff-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--text); opacity: .85; margin-bottom: .4rem; }
.d5k_offer-fig { font-family: var(--ff-display); font-size: 2.5rem; font-weight: 800; line-height: 1.04; color: var(--text); display: block; }
.d5k_offer-fig em { display: block; font-style: normal; font-size: 1.45rem; color: var(--highlight); margin-top: .18rem; }
.d5k_offer-body { padding: 1.15rem 1.25rem 1.35rem; }
.d5k_offer-body ul { margin-bottom: 1rem; }
.d5k_offer-body li { display: flex; justify-content: space-between; gap: .8rem; font-size: var(--fs-sm); padding: .48rem 0; border-bottom: 1px dashed var(--border); }
.d5k_offer-body li:last-child { border-bottom: 0; }
.d5k_offer-body li b { color: var(--highlight); font-weight: 700; white-space: nowrap; }
.d5k_offer-fine { font-size: var(--fs-xs); color: var(--muted); margin: .7rem 0 0; }

/* ---------- 11. trust bar ---------- */
.d5k_trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-card); }
.d5k_trust ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .1rem 1rem; padding: 1rem 0; }
.d5k_trust li { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: .35rem 0; }
.d5k_trust svg { flex-shrink: 0; width: 18px; height: 18px; fill: var(--highlight); }

/* ---------- 12. content sections ---------- */
.d5k_sec { padding: 2.2rem 0; border-top: 1px solid var(--border); }
.d5k_sec:first-of-type { border-top: 0; }
.d5k_sec h2:first-child { margin-top: 0; }

.d5k_grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.3rem 0; }
.d5k_card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.15rem 1.15rem 1.05rem; }
.d5k_card h3 { margin-top: 0; font-size: var(--step-1); }
.d5k_card p:last-child { margin-bottom: 0; }
.d5k_card--lift { border-color: var(--accent); }

.d5k_tw { overflow-x: auto; margin: 1.3rem 0; border: 1px solid var(--border); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.d5k_table { min-width: 520px; font-size: var(--fs-sm); }
.d5k_table caption { caption-side: top; text-align: left; padding: .85rem 1rem .5rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.d5k_table th, .d5k_table td { padding: .72rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.d5k_table thead th { background: var(--bg-card); font-family: var(--ff-body); font-weight: 700; color: var(--highlight); white-space: nowrap; }
.d5k_table tbody tr:last-child td { border-bottom: 0; }
.d5k_table tbody tr:nth-child(even) { background: var(--bg-card); }
.d5k_table td b { color: var(--highlight); }

/* pokies tiles */
.d5k_tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1.3rem 0; }
.d5k_tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.d5k_tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.d5k_tile b, .d5k_tile span { display: block; padding: 0 .65rem; }
.d5k_tile b { font-size: var(--fs-sm); font-weight: 700; padding-top: .55rem; }
.d5k_tile span { font-size: var(--fs-xs); color: var(--muted); padding-bottom: .6rem; }
.d5k_tile--txt { display: flex; flex-direction: column; justify-content: center; min-height: 96px; padding: .8rem .65rem; background: linear-gradient(140deg, var(--bg-card) 0%, var(--bg-base) 100%); }
.d5k_tile--txt b, .d5k_tile--txt span { padding-left: 0; padding-right: 0; }

/* payments + providers chips */
.d5k_pay { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.d5k_pay-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; min-height: 44px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; }
.d5k_pay-chip svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }
.d5k_studios { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.d5k_studio { padding: .5rem .95rem; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-card); font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.d5k_studio b { color: var(--text); font-weight: 700; }

/* steps */
.d5k_steps { display: grid; grid-template-columns: 1fr; gap: .8rem; margin: 1.3rem 0; counter-reset: d5ks; }
.d5k_step { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-sm); padding: .95rem 1rem .85rem 1rem; counter-increment: d5ks; }
.d5k_step h3 { margin: 0 0 .3rem; font-size: var(--fs-lg); font-family: var(--ff-body); font-weight: 700; }
.d5k_step h3::before { content: "Step " counter(d5ks) " · "; color: var(--highlight); }
.d5k_step p:last-child { margin-bottom: 0; }

/* callouts */
.d5k_note { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--highlight); border-radius: var(--r-sm); padding: 1rem 1.1rem; margin: 1.3rem 0; font-size: var(--fs-sm); }
.d5k_note p:last-child { margin-bottom: 0; }
.d5k_note b { color: var(--highlight); }
.d5k_note--warn { border-left-color: var(--accent); }

/* screenshots */
.d5k_shot { margin: 1.4rem 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg-card); }
.d5k_shot img { width: 100%; height: auto; }
.d5k_shot figcaption { padding: .65rem 1rem .75rem; font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--border); }

/* internal link cluster */
.d5k_more { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: 1.3rem 0; }
.d5k_more a { display: block; padding: .8rem 1rem; min-height: 44px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; transition: border-color var(--t-fast), transform var(--t-fast); }
.d5k_more a:hover { border-color: var(--accent); transform: translateX(3px); }
.d5k_more a b { display: block; color: var(--highlight); font-family: var(--ff-display); font-size: var(--fs-lg); margin-bottom: .1rem; }

/* ---------- 13. FAQ accordion ---------- */
.d5k_faq { margin: 1.4rem 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.d5k_faq-item { border-bottom: 1px solid var(--border); background: var(--bg-card); }
.d5k_faq-item:last-child { border-bottom: 0; }
.d5k_faq-btn { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; width: 100%; min-height: 52px; padding: .9rem 1rem; text-align: left; font-family: var(--ff-body); font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.d5k_faq-btn::after { content: "+"; flex-shrink: 0; font-size: 1.4rem; line-height: 1; color: var(--highlight); transition: transform var(--t-med); }
.d5k_faq-item.open .d5k_faq-btn::after { transform: rotate(45deg); }
.d5k_faq-body { display: none; padding: 0 1rem 1.05rem; font-size: var(--fs-sm); color: var(--muted); }
.d5k_faq-item.open .d5k_faq-body { display: block; animation: d5k-fade var(--t-med) both; }
.d5k_faq-body p:last-child { margin-bottom: 0; }
.d5k_faq-body strong { color: var(--text); }

/* ---------- 14. CTA band ---------- */
.d5k_band { margin: 2rem 0 0; padding: 2rem 0; background: linear-gradient(140deg, var(--accent) 0%, var(--bg-card) 88%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.d5k_band h2 { margin-top: 0; font-size: var(--step-2); }
.d5k_band p { color: var(--text); margin-bottom: 1.2rem; }
.d5k_band .d5k_btn { width: 100%; }

/* ---------- 15. footer ---------- */
.d5k_foot { background: var(--bg-card); border-top: 1px solid var(--border); padding: 2rem 0 5.5rem; font-size: var(--fs-sm); color: var(--muted); }
.d5k_foot-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.d5k_foot h3 { font-family: var(--ff-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 0 0 .6rem; }
.d5k_foot nav a { display: block; padding: .3rem 0; min-height: 32px; transition: color var(--t-fast); }
.d5k_foot nav a:hover { color: var(--highlight); }
.d5k_badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: .2rem 0 1rem; }
.d5k_badge { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .7rem; min-height: 36px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-base); font-size: var(--fs-xs); font-weight: 700; color: var(--muted); transition: border-color var(--t-fast), color var(--t-fast); }
.d5k_badge:hover { border-color: var(--highlight); color: var(--highlight); }
.d5k_badge svg { width: 14px; height: 14px; fill: var(--highlight); }
.d5k_badge--age { color: var(--highlight); border-color: var(--highlight); }
.d5k_disclosure { border-top: 1px solid var(--border); margin-top: 1.4rem; padding-top: 1.1rem; font-size: var(--fs-xs); line-height: 1.65; }
.d5k_disclosure p { margin-bottom: .6rem; }
.d5k_stamp { color: var(--highlight); font-weight: 600; }

/* ---------- 16. sticky mobile CTA ---------- */
.d5k_sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: .55rem var(--gut) calc(.55rem + env(safe-area-inset-bottom)); background: var(--bg-card); border-top: 1px solid var(--border); }
.d5k_sticky .d5k_btn { width: 100%; }

/* ---------- 17. animations ---------- */
@keyframes d5k-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes d5k-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.d5k_live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--highlight); margin-right: .35rem; animation: d5k-pulse 2.2s infinite; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 18. responsive ---------- */
@media (min-width: 480px) {
  :root { --gut: 22px; --step-3: 2.1rem; --step-4: 2.7rem; }
  .d5k_btnrow { flex-direction: row; flex-wrap: wrap; }
  .d5k_btnrow .d5k_btn { flex: 1 1 auto; }
  .d5k_tiles { grid-template-columns: repeat(3, 1fr); }
  .d5k_offer-fig { font-size: 2.9rem; }
}

@media (min-width: 768px) {
  :root { --step-3: 2.25rem; --step-4: 3.05rem; }
  .d5k_burger, .d5k_mnav { display: none !important; }
  .d5k_menu { display: flex; align-items: center; gap: 1.05rem; }
  .d5k_topcta { display: inline-flex; }
  .d5k_sticky { display: none; }
  .d5k_foot { padding-bottom: 2.4rem; }
  .d5k_grid--2 { grid-template-columns: repeat(2, 1fr); }
  .d5k_grid--3 { grid-template-columns: repeat(2, 1fr); }
  .d5k_steps { grid-template-columns: repeat(2, 1fr); }
  .d5k_more { grid-template-columns: repeat(2, 1fr); }
  .d5k_trust ul { grid-template-columns: repeat(4, 1fr); }
  .d5k_foot-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .d5k_band { padding: 2.6rem 0; }
  .d5k_band .d5k_btn { width: auto; }
  .d5k_sec { padding: 2.8rem 0; }
}

@media (min-width: 1024px) {
  :root { --step-4: 3.4rem; }
  .d5k_hero { padding: 3.2rem 0 3.6rem; }
  .d5k_hero-grid { grid-template-columns: 1fr 400px; gap: 2.6rem; }
  .d5k_grid--3 { grid-template-columns: repeat(3, 1fr); }
  .d5k_grid--4 { grid-template-columns: repeat(4, 1fr); }
  .d5k_tiles { grid-template-columns: repeat(4, 1fr); }
  .d5k_more { grid-template-columns: repeat(3, 1fr); }
  .d5k_offer-fig { font-size: 3.1rem; }
}
