@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Karla:wght@400;500;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, svg { display: block; max-width: 100%; }
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:   #f7f2e8;
  --bg-card:   #fffdf8;
  --accent:    #6d1f34;
  --highlight: #b8862b;
  --text:      #1a1613;
  --muted:     #6b6156;
  --border:    #e3d8c2;

  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: .76rem;
  --fs-sm: .875rem;
  --fs-base: 1.0125rem;
  --fs-lg: 1.1rem;
  --fs-h4: 1.06rem;
  --fs-h3: 1.2rem;
  --fs-h2: 1.42rem;
  --fs-h1: 1.95rem;
  --fs-fig: 2.5rem;

  --lh: 1.7;
  --lh-tight: 1.24;

  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;

  --tr: 170ms ease;

  --gut: 1rem;
  --maxw: 1160px;
  --navh: 58px;
}

/* ================= 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);
  line-height: var(--lh);
  padding-bottom: 76px;
}
body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-track { background: var(--bg-base); }
body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; border: 3px solid var(--bg-base); }
body::-webkit-scrollbar-thumb:hover { background: var(--highlight); }
::selection { background: var(--accent); color: var(--bg-card); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================= 5. type scale ================= */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: var(--lh-tight); font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); margin-top: 2.1rem; margin-bottom: .7rem; }
h3 { font-size: var(--fs-h3); margin-top: 1.5rem; margin-bottom: .45rem; }
h4 { font-size: var(--fs-h4); margin-top: 1.1rem; margin-bottom: .35rem; font-weight: 700; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
em { font-style: italic; }
small { font-size: var(--fs-sm); }
a.ky8_link { color: var(--accent); border-bottom: 1px solid var(--border); transition: border-color var(--tr); }
a.ky8_link:hover { border-color: var(--accent); }

.ky8_ticks { margin: 0 0 1rem; }
.ky8_ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.ky8_ticks li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--highlight);
  transform: rotate(45deg);
}
.ky8_steps { counter-reset: ky8step; margin: 0 0 1rem; }
.ky8_steps li { position: relative; padding-left: 2.4rem; margin-bottom: .85rem; }
.ky8_steps li::before {
  counter-increment: ky8step;
  content: counter(ky8step);
  position: absolute; left: 0; top: .1em;
  width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: var(--bg-card);
  font-family: var(--ff-display); font-size: var(--fs-sm); font-weight: 700;
}

/* ================= 6. container ================= */
.ky8_wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ================= 7. buttons ================= */
.ky8_btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.25rem;
  border-radius: var(--r-sm);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .02em;
  text-align: center;
  transition: transform var(--tr), background var(--tr), color var(--tr), border-color var(--tr);
}
.ky8_btn:hover { transform: translateY(-1px); }
.ky8_btn:active { transform: translateY(0); }
.ky8_btn--primary { background: var(--accent); color: var(--bg-card); }
.ky8_btn--primary:hover { background: var(--text); }
.ky8_btn--gold { background: var(--highlight); color: var(--text); }
.ky8_btn--gold:hover { background: var(--accent); color: var(--bg-card); }
.ky8_btn--outline { border: 2px solid var(--accent); color: var(--accent); }
.ky8_btn--outline:hover { background: var(--accent); color: var(--bg-card); }
.ky8_btn--ghost { color: var(--muted); border: 1px solid var(--border); }
.ky8_btn--ghost:hover { color: var(--text); border-color: var(--highlight); }
.ky8_btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: var(--fs-xs); }
.ky8_btn--lg { min-height: 54px; padding: .95rem 1.7rem; font-size: var(--fs-base); }
.ky8_btn--full { display: flex; width: 100%; }

/* ================= 8. nav + mobile nav ================= */
.ky8_nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent);
}
.ky8_nav-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: var(--navh); }
.ky8_brand { display: flex; align-items: center; gap: .55rem; }
.ky8_brand img { width: 148px; height: 34px; }
.ky8_navlinks { display: none; }
.ky8_burger {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
.ky8_burger span { display: block; width: 20px; height: 2px; background: var(--text); box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text); }
.ky8_mnav { display: none; border-top: 1px solid var(--border); padding: .5rem 0 .9rem; }
.ky8_mnav.open { display: block; }
.ky8_mnav a {
  display: block; padding: .7rem .25rem;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm); font-weight: 500;
}
.ky8_mnav a:last-child { border-bottom: 0; }
.ky8_mnav a:hover { color: var(--accent); }

/* ================= 9. ticker ================= */
.ky8_ticker {
  background: var(--accent); color: var(--bg-card);
  font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden; white-space: nowrap;
}
.ky8_ticker-track { display: inline-block; padding: .45rem 0; animation: ky8slide 34s linear infinite; }
.ky8_ticker-track span { padding: 0 1.6rem; }
.ky8_ticker-track span::after { content: "\2666"; margin-left: 1.6rem; color: var(--highlight); }

/* ================= 10. hero (LAYOUT C — sidebar-first) ================= */
.ky8_hero {
  background:
    radial-gradient(1100px 380px at 12% -10%, rgba(184,134,43,.22), transparent 62%),
    linear-gradient(178deg, var(--bg-card) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0 2rem;
}
.ky8_hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.ky8_hero-aside { order: 1; }
.ky8_hero-main { order: 2; }
.ky8_hero-main h1 { margin-bottom: .7rem; }
.ky8_kicker {
  display: inline-block; margin-bottom: .7rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.ky8_lede { font-size: var(--fs-lg); color: var(--muted); }
.ky8_hero-btns { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.15rem; }

/* the recreated welcome-offer banner */
.ky8_offercard {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #2a1119 0%, #4a1524 55%, #6d1f34 100%);
  color: var(--bg-card);
  border: 2px solid var(--highlight);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.2rem 1.25rem;
  box-shadow: 0 14px 34px rgba(45,17,25,.24);
}
.ky8_offercard::after {
  content: ""; position: absolute; right: -46px; top: -46px;
  width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,43,.5), transparent 68%);
}
.ky8_crown { width: 54px; height: 34px; margin-bottom: .55rem; }
.ky8_offercard h2 {
  margin: 0 0 .4rem; font-size: var(--fs-h3);
  letter-spacing: .05em; text-transform: uppercase; color: var(--highlight);
}
.ky8_offerfig {
  font-family: var(--ff-display); font-weight: 800; line-height: 1;
  font-size: var(--fs-fig); margin-bottom: .15rem;
}
.ky8_offersub { font-size: var(--fs-lg); font-weight: 700; color: var(--highlight); margin-bottom: .8rem; }
.ky8_offerrow {
  display: flex; justify-content: space-between; gap: .8rem;
  padding: .42rem 0; border-top: 1px solid rgba(184,134,43,.34);
  font-size: var(--fs-sm);
}
.ky8_offerrow span:last-child { font-weight: 700; color: var(--highlight); text-align: right; }
.ky8_offercard .ky8_btn { margin-top: .95rem; }
.ky8_offerfine { margin-top: .6rem; font-size: var(--fs-xs); opacity: .74; }

/* ================= 11. trust bar ================= */
.ky8_trust {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
}
.ky8_trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ky8_trust-item { text-align: center; }
.ky8_trust-item b { display: block; font-family: var(--ff-display); font-size: var(--fs-h4); color: var(--accent); }
.ky8_trust-item span { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

/* ================= 12. content sections ================= */
.ky8_sec { padding: 1.9rem 0; }
.ky8_sec--alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ky8_sec > *:first-child, .ky8_sec h2:first-child { margin-top: 0; }

.ky8_crumbs { font-size: var(--fs-xs); color: var(--muted); padding: .8rem 0 0; }
.ky8_crumbs a:hover { color: var(--accent); }
.ky8_crumbs span { margin: 0 .35rem; }

.ky8_grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.ky8_card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--highlight);
  border-radius: var(--r-md);
  padding: 1.1rem;
}
.ky8_card h3 { margin-top: 0; }
.ky8_card p:last-child { margin-bottom: 0; }

.ky8_note {
  background: var(--bg-card);
  border: 1px dashed var(--highlight);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  margin: 1.1rem 0;
  font-size: var(--fs-sm);
}
.ky8_callout {
  background: var(--accent); color: var(--bg-card);
  border-radius: var(--r-md);
  padding: 1.15rem 1.2rem;
  margin: 1.2rem 0;
}
.ky8_callout h3 { margin-top: 0; color: var(--highlight); }
.ky8_callout a { color: var(--highlight); border-bottom: 1px solid currentColor; }

.ky8_pill {
  display: inline-block;
  padding: .2rem .6rem; margin: 0 .25rem .35rem 0;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--bg-card);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
}
.ky8_code {
  display: inline-block;
  padding: .32rem .75rem;
  background: var(--text); color: var(--highlight);
  border-radius: var(--r-xs);
  font-family: "Courier New", monospace; font-weight: 700; letter-spacing: .1em;
}

/* tables */
.ky8_tblwrap { overflow-x: auto; margin: 1rem 0 1.2rem; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-card); }
.ky8_tbl { min-width: 480px; font-size: var(--fs-sm); }
.ky8_tbl caption { caption-side: top; padding: .75rem 1rem 0; text-align: left; font-size: var(--fs-xs); color: var(--muted); }
.ky8_tbl th, .ky8_tbl td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.ky8_tbl thead th { background: var(--accent); color: var(--bg-card); font-family: var(--ff-display); font-size: var(--fs-sm); border-bottom: 0; }
.ky8_tbl tbody tr:last-child td { border-bottom: 0; }
.ky8_tbl tbody tr:nth-child(even) { background: rgba(227,216,194,.28); }
.ky8_tbl td b { color: var(--accent); }

.ky8_kv { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: 1rem 0; }
.ky8_kv div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .1rem; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.ky8_kv dt, .ky8_kv span:first-child { color: var(--muted); }
.ky8_kv dd, .ky8_kv span:last-child { font-weight: 700; text-align: right; }

/* screenshots */
.ky8_shot { margin: 1.2rem 0; }
.ky8_shot img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.ky8_shot figcaption { margin-top: .45rem; font-size: var(--fs-xs); color: var(--muted); }

/* pokies tiles */
.ky8_pokies { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1.1rem 0 1.2rem; }
.ky8_pokie {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; text-align: center;
}
.ky8_pokie img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ky8_pokie b { display: block; padding: .5rem .35rem .15rem; font-size: var(--fs-xs); }
.ky8_pokie span { display: block; padding: 0 .35rem .55rem; font-size: var(--fs-xs); color: var(--muted); }
.ky8_pokie-txt {
  display: grid; place-content: center; gap: .2rem;
  min-height: 118px; padding: .8rem .5rem;
  background: linear-gradient(150deg, var(--bg-card), rgba(184,134,43,.16));
  border-top: 3px solid var(--highlight);
}

/* payments */
.ky8_pays { display: grid; grid-template-columns: 1fr; gap: .55rem; margin: 1.1rem 0 1.2rem; }
.ky8_pay {
  display: flex; align-items: center; gap: .7rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: .65rem .8rem;
}
.ky8_pay svg { flex: 0 0 auto; width: 30px; height: 30px; }
.ky8_pay b { display: block; font-size: var(--fs-sm); }
.ky8_pay small { display: block; color: var(--muted); font-size: var(--fs-xs); }

/* providers */
.ky8_provs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1.2rem; }
.ky8_prov {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em;
}
.ky8_prov svg { width: 15px; height: 15px; }

/* ================= 13. FAQ accordion ================= */
.ky8_faq { margin: 1.1rem 0 0; }
.ky8_faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: .55rem; }
.ky8_faq-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 48px; padding: .8rem .9rem;
  text-align: left; font-family: var(--ff-display); font-weight: 700; font-size: var(--fs-base);
}
.ky8_faq-btn::after { content: "+"; color: var(--highlight); font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }
.ky8_faq-item.open .ky8_faq-btn::after { content: "\2212"; }
.ky8_faq-item.open .ky8_faq-btn { color: var(--accent); }
.ky8_faq-a { display: none; padding: 0 .9rem 1rem; font-size: var(--fs-sm); }
.ky8_faq-item.open .ky8_faq-a { display: block; }

/* ================= 14. CTA band ================= */
.ky8_cta {
  background: linear-gradient(150deg, #2a1119, var(--accent));
  color: var(--bg-card);
  padding: 1.9rem 0;
  text-align: center;
}
.ky8_cta h2 { margin-top: 0; color: var(--highlight); }
.ky8_cta p { color: rgba(255,253,248,.86); max-width: 58ch; margin-left: auto; margin-right: auto; }
.ky8_cta .ky8_btn { margin-top: .5rem; }

/* ================= 15. footer ================= */
.ky8_foot {
  background: var(--bg-card);
  border-top: 3px solid var(--accent);
  padding: 1.8rem 0 1.4rem;
  font-size: var(--fs-sm);
}
.ky8_foot-cols { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
.ky8_foot h4 { margin-top: 0; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.ky8_foot li { margin-bottom: .38rem; }
.ky8_foot a:hover { color: var(--accent); }
.ky8_badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0 1rem; }
.ky8_badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .7rem;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-base);
  font-size: var(--fs-xs); font-weight: 700;
}
.ky8_badge svg { width: 14px; height: 14px; }
.ky8_badge--age { background: var(--accent); color: var(--bg-card); border-color: var(--accent); }
.ky8_fine { border-top: 1px solid var(--border); padding-top: 1rem; color: var(--muted); font-size: var(--fs-xs); }
.ky8_fine p { margin-bottom: .55rem; }
.ky8_updated { font-weight: 700; color: var(--text); }

/* ================= 16. sticky mobile CTA ================= */
.ky8_sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem var(--gut);
  background: var(--bg-card);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -6px 18px rgba(26,22,19,.1);
}
.ky8_sticky b { flex: 1 1 auto; font-family: var(--ff-display); font-size: var(--fs-sm); line-height: 1.25; }
.ky8_sticky .ky8_btn { flex: 0 0 auto; }

/* ================= 17. animations ================= */
@keyframes ky8slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ky8rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ky8_offercard { animation: ky8rise .5s ease both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ky8_ticker-track, .ky8_offercard { animation: none; }
  .ky8_btn:hover { transform: none; }
}

/* ================= 18. responsive ================= */
@media (min-width: 480px) {
  :root { --gut: 1.25rem; --fs-h1: 2.2rem; --fs-fig: 2.9rem; }
  .ky8_hero-btns { flex-direction: row; flex-wrap: wrap; }
  .ky8_hero-btns .ky8_btn { flex: 1 1 auto; }
  .ky8_pokies { grid-template-columns: repeat(3, 1fr); }
  .ky8_trust-row { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  :root { --gut: 1.5rem; --fs-h1: 2.5rem; --fs-h2: 1.62rem; --fs-fig: 3.3rem; --navh: 66px; }
  body { padding-bottom: 0; }
  .ky8_sticky { display: none; }
  .ky8_burger { display: none; }
  .ky8_mnav { display: none !important; }
  .ky8_navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; }
  .ky8_navlinks a { padding: .45rem .55rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
  .ky8_navlinks a:hover { color: var(--accent); }
  .ky8_navlinks .ky8_btn { margin-left: .5rem; }
  .ky8_grid--2 { grid-template-columns: repeat(2, 1fr); }
  .ky8_grid--3 { grid-template-columns: repeat(3, 1fr); }
  .ky8_pays { grid-template-columns: repeat(2, 1fr); }
  .ky8_pokies { grid-template-columns: repeat(4, 1fr); }
  .ky8_foot-cols { grid-template-columns: 1.6fr 1fr 1fr; }
  .ky8_sec { padding: 2.5rem 0; }
  .ky8_hero { padding: 2.2rem 0 2.8rem; }
}

@media (min-width: 1024px) {
  :root { --fs-h1: 2.85rem; --fs-h2: 1.78rem; --fs-fig: 3.7rem; }
  .ky8_hero-grid { grid-template-columns: 360px 1fr; align-items: start; gap: 2.2rem; }
  .ky8_hero-aside { order: 0; position: sticky; top: calc(var(--navh) + 1rem); }
  .ky8_hero-main { order: 0; }
  .ky8_grid--4 { grid-template-columns: repeat(4, 1fr); }
  .ky8_pays { grid-template-columns: repeat(3, 1fr); }
  .ky8_pokies { grid-template-columns: repeat(5, 1fr); }
  .ky8_foot-cols { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}
