/* www.kkracing.ca — skin "fresh-ember"
   FreshBet (CA) brand satellite. Charcoal shell, orange→yellow accent,
   angular shard motif. Single stylesheet, no external requests, no JS. */

/* ---------- shared reset (canonical copy: /shared/templates/reset.css) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
ul, ol { padding-left: 0; list-style: none; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; text-rendering: optimizeSpeed; line-height: 1.5; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- tokens ---------- */
:root {
  --bg:        #131316;
  --bg-2:      #1b1b1f;
  --panel:     #202024;
  --panel-2:   #26262b;
  --line:      rgba(246,214,138,.16);
  --line-2:    rgba(255,255,255,.09);
  --ink:       #f4f4f6;
  --ink-2:     #b9b9c0;
  --muted:     #85858e;
  --orange:    #f7941d;
  --yellow:    #ffc107;
  --ember:     #ff6a1a;
  --gold:      #f6d68a;
  --green:     #4ec97a;
  --red:       #ff5f5f;
  --r:         12px;
  --r-lg:      18px;
  --wrap:      1180px;
  --pad:       clamp(16px, 4vw, 28px);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cond: "Helvetica Neue Condensed", "Arial Narrow", "Roboto Condensed", var(--sans);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --grad: linear-gradient(100deg, var(--yellow), var(--orange));
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

::selection { background: var(--orange); color: #17110a; }

:where(a, button, summary, input):focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: #17110a; padding: 10px 16px; font-weight: 800;
}
.skip:focus { left: 8px; top: 8px; }

/* the brand's signature clipped corner */
.cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }

/* ---------- type ---------- */
h1, h2, h3, h4 { line-height: 1.14; font-weight: 800; letter-spacing: -.015em; }

h1 {
  font-family: var(--cond);
  font-size: clamp(2rem, 5.8vw, 3.9rem);
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-weight: 900;
}
h2 { font-size: clamp(1.45rem, 3.2vw, 2.2rem); margin-block: 0 .55em; }
h3 { font-size: clamp(1.12rem, 2vw, 1.36rem); margin-block: 1.6em .5em; }
h4 { font-size: 1.02rem; margin-block: 1.3em .35em; }

p { margin-block: 0 1.05em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }
em { color: var(--ink); }

.lede { font-size: clamp(1.02rem, 1.7vw, 1.14rem); color: var(--ink); }
.sec-head { max-width: 74ch; margin-bottom: clamp(24px, 4vw, 40px); }
.sec-head p { color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: .71rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9em;
  display: flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 13px; height: 9px; flex: 0 0 auto;
  background: var(--grad);
  transform: skewX(-22deg);
}

.content-link { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.content-link:hover { color: var(--orange); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(19,19,22,.93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.head-in { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand-name {
  font-weight: 800; letter-spacing: -.02em; font-size: 1.24rem; line-height: 1;
}
.brand-name span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { display: block; font-family: var(--mono); font-size: .57rem; letter-spacing: .17em; color: var(--muted); margin-top: 4px; }

.head-nav { margin-left: auto; }
.head-nav ul { display: flex; flex-wrap: nowrap; gap: clamp(8px, 1.5vw, 20px); }
.head-nav a { text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-2); padding: 6px 2px; white-space: nowrap; }
.head-nav a:hover { color: var(--yellow); }
.head-cta { display: flex; gap: 8px; margin-left: auto; }
.head-nav + .head-cta { margin-left: clamp(8px, 2vw, 20px); }

@media (max-width: 1024px) { .head-nav { display: none; } }
@media (max-width: 460px) { .head-cta .btn-ghost { display: none; } .brand-sub { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 800; text-decoration: none; text-align: center;
  padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  line-height: 1.2;
}
.btn-primary {
  background: var(--grad); color: #17110a;
  box-shadow: 0 8px 22px rgba(247,148,29,.26), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(247,148,29,.4), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-ghost { background: rgba(247,148,29,.08); color: var(--yellow); border-color: rgba(247,148,29,.42); }
.btn-ghost:hover { background: rgba(247,148,29,.16); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-lg { padding: 15px 32px; font-size: 1.04rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- hero ---------- */
.hero { padding: clamp(12px, 2vw, 20px) 0 0; }
.hero-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: clamp(420px, 56vw, 600px);
  display: flex; flex-direction: column; justify-content: flex-start;
  border: 1px solid var(--line); isolation: isolate;
}
.hero-card > img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 50%; z-index: -2;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(19,19,22,.97) 0%, rgba(19,19,22,.9) 28%, rgba(19,19,22,.4) 56%, rgba(19,19,22,.08) 80%),
    linear-gradient(0deg, rgba(19,19,22,.85) 0%, rgba(19,19,22,0) 46%);
}
.hero-body { padding: clamp(24px, 4.2vw, 50px); max-width: 42rem; }
.hero-body h1 { margin-bottom: .35em; text-wrap: balance; }
.hero-body h1 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.h1-kicker {
  display: block; font-family: var(--mono);
  font-size: clamp(.67rem, 1.4vw, .77rem); font-weight: 500;
  letter-spacing: .24em; color: var(--orange); text-transform: uppercase; margin-bottom: 1.1em;
}
.hero-sub { color: #d6d6db; font-size: clamp(.95rem, 1.7vw, 1.05rem); max-width: 34rem; }

.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 4px 0 0; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 19px; height: 19px; fill: var(--yellow); }
.stars svg.half { fill: url(#halfgrad); }
.rating b { font-size: 1.05rem; white-space: nowrap; }
.rating span { color: var(--muted); font-size: .85rem; }

.hero-actions {
  margin-top: auto; padding: 0 clamp(24px, 4.2vw, 50px) clamp(24px, 4.2vw, 42px);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
}
.hero-note { width: 100%; text-align: center; font-size: .76rem; color: var(--muted); margin: 0; }

/* ---------- fact strip ---------- */
.facts { padding: clamp(16px, 2.4vw, 22px) 0 0; }
.fact-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
.fact {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px 20px;
  position: relative; overflow: hidden;
}
.fact::after {
  content: ""; position: absolute; right: -10px; top: -10px;
  width: 34px; height: 22px; background: var(--grad); opacity: .16; transform: skewX(-22deg);
}
.fact dt {
  font-family: var(--mono); font-size: .67rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}
.fact dd { margin: 0; color: var(--ink-2); font-size: .92rem; }
.fact dd b { display: block; font-size: 1.07rem; color: var(--ink); font-weight: 800; margin-bottom: 2px; }

/* ---------- section rhythm ---------- */
section { padding-block: clamp(44px, 7vw, 82px); }
section.tight { padding-block: clamp(26px, 4vw, 44px); }
.band { background: var(--bg-2); border-block: 1px solid var(--line-2); }

/* ---------- game tiles ---------- */
.slots-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: clamp(14px, 2.4vw, 20px);
}
.slots-head h2 { margin: 0; font-size: clamp(1.22rem, 2.4vw, 1.56rem); }

.tile-grid { display: grid; gap: clamp(10px, 1.6vw, 15px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 520px)  { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px)  { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .tile-grid { grid-template-columns: repeat(5, 1fr); } }

.tile {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--panel);
  display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile .thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover { transform: translateY(-4px); border-color: rgba(247,148,29,.55); box-shadow: 0 14px 30px rgba(0,0,0,.55); }
.tile figcaption {
  padding: 10px 12px 12px; font-size: .84rem; font-weight: 700; color: var(--ink); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile figcaption small {
  display: block; font-weight: 500; font-size: .7rem; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile .badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: var(--mono); font-size: .57rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 5px; font-weight: 700;
  background: var(--grad); color: #17110a;
}
.tile .badge.new { background: #f4f4f6; color: #1b1b1f; }
.tile .badge.top { background: var(--ember); color: #fff; }
.tile .badge.excl { background: var(--gold); color: #241b08; }
.tile .play {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: rgba(19,19,22,.66); opacity: 0; transition: opacity .18s ease; text-decoration: none;
}
.tile:hover .play, .tile:focus-within .play { opacity: 1; }
.tile .play span {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .18em; text-transform: uppercase;
  background: var(--grad); color: #17110a; padding: 9px 18px; border-radius: 7px; font-weight: 700;
}
/* persistent play affordance — the hover overlay never fires on touch */
.tile .go {
  position: absolute; right: 8px; bottom: 8px; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 6px 16px rgba(0,0,0,.55);
  transition: transform .18s ease, opacity .18s ease;
}
.tile .go svg { width: 15px; height: 15px; fill: #17110a; margin-left: 2px; }
.tile:hover .go { opacity: 0; transform: scale(.8); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 14px; background: var(--panel);
}
.chips-sm li { font-size: .78rem; padding: 6px 12px; color: var(--muted); }
.fineprint { margin-top: 12px; font-size: .78rem; color: var(--muted); }
.most-played {
  margin-top: 18px; font-size: .88rem; color: var(--ink-2);
  border-left: 3px solid var(--orange); padding-left: 14px;
}
.most-played strong { color: var(--ink); }

/* ---------- media rows ---------- */
.row { display: grid; gap: clamp(22px, 4vw, 52px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row.reverse .row-media { order: 2; }
}
.row + .row { margin-top: clamp(44px, 7vw, 76px); }
.row-media img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--panel); }
.row-body > h2:first-child, .row-body > h3:first-child { margin-top: 0; }

.steps { counter-reset: s; margin: 0 0 1.1em; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 12px; color: var(--ink-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .82rem; font-weight: 700;
  background: rgba(247,148,29,.13); color: var(--yellow); border: 1px solid rgba(247,148,29,.38);
}
.ticks { margin: 0 0 1.1em; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 9px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .58em;
  width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
caption { text-align: left; padding: 14px 18px; color: var(--muted); font-size: .84rem; border-bottom: 1px solid var(--line-2); }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); background: var(--panel-2); font-weight: 700; white-space: nowrap;
}
tbody th { font-weight: 700; color: var(--ink); width: 38%; }
td { color: var(--ink-2); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: rgba(247,148,29,.045); }
.yes { color: var(--green); font-weight: 700; }
.no  { color: var(--red); font-weight: 700; }
code.code {
  font-family: var(--mono); font-size: .86rem; font-weight: 700;
  background: rgba(247,148,29,.13); color: var(--yellow);
  border: 1px dashed rgba(247,148,29,.5); border-radius: 5px; padding: 2px 8px; letter-spacing: .06em;
}

/* ---------- promo trio ---------- */
.promo-grid { display: grid; gap: clamp(12px, 2vw, 18px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.promo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line-2); background: var(--panel); display: flex; flex-direction: column;
}
.promo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.promo-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.promo-body h3 { margin: 0; font-size: 1.1rem; }
.promo-body p { font-size: .9rem; margin: 0; flex: 1; }
.promo-body .btn { margin-top: 6px; }

/* ---------- VIP ---------- */
.vip-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); }
.vip {
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 16px 18px;
}
.vip b { display: block; font-size: 1rem; }
.vip .lvl { font-family: var(--mono); font-size: .63rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.vip p { font-size: .85rem; margin: 6px 0 0; }
.vip.gold { border-color: rgba(246,214,138,.45); }
.vip.gold .lvl { color: var(--gold); }

/* ---------- logo grids ---------- */
.logo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); }
.logo-grid li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 16px 12px; min-height: 96px; text-align: center;
}
.logo-grid img { width: 46px; height: 46px; object-fit: contain; border-radius: 9px; }
.logo-grid b { font-size: .82rem; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.pay-grid li { min-height: 62px; padding: 10px; background: #fff; border-color: rgba(255,255,255,.14); }
.pay-grid img { width: auto; height: auto; max-height: 26px; max-width: 100px; border-radius: 0; }

/* ---------- pros / cons ---------- */
.pc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pc { border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 22px; background: var(--panel); }
.pc h3 { margin: 0 0 12px; font-size: 1.05rem; }
.pc.pros { border-left: 3px solid var(--green); }
.pc.cons { border-left: 3px solid var(--red); }
.pc li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--ink-2); font-size: .93rem; }
.pc.pros li::before { content: "+"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.pc.cons li::before { content: "–"; position: absolute; left: 4px; color: var(--red); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.faq summary { padding: 16px 52px 16px 20px; font-weight: 700; position: relative; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details[open] summary { color: var(--yellow); }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p { font-size: .94rem; }

/* ---------- callout / CTA ---------- */
.callout {
  border: 1px solid rgba(247,148,29,.36); background: rgba(247,148,29,.07);
  border-radius: var(--r); padding: 18px 22px;
}
.callout p { color: var(--ink-2); font-size: .93rem; }
.callout p:first-child strong { color: var(--yellow); }

.cta-strip {
  border-radius: var(--r-lg); border: 1px solid rgba(247,148,29,.32);
  background:
    radial-gradient(120% 160% at 88% 20%, rgba(247,148,29,.18), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(26px, 4.4vw, 44px);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cta-strip h2 { margin: 0 0 .3em; }
.cta-strip p { margin: 0; max-width: 52ch; }
.cta-strip > div { flex: 1 1 320px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line-2); background: var(--bg-2); padding-block: clamp(34px, 5vw, 54px); }
.foot-top { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.foot-col h3 {
  margin: 0 0 12px; font-size: .82rem; font-family: var(--mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange); font-weight: 700;
}
.foot-col li { margin-bottom: 7px; }
.foot-col a { color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.foot-col a:hover { color: var(--yellow); }
.foot-col p { font-size: .88rem; }
.foot-bar {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.foot-bar p { font-size: .8rem; color: var(--muted); margin: 0; }
.age {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--red); color: var(--red); font-weight: 900; font-size: .82rem; flex: 0 0 auto;
}
.foot-flags { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-flags span { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

@media print {
  .site-head, .hero-actions, .promo, .tile .play { display: none !important; }
  body { background: #fff; color: #000; }
}
