/* Lucky Tony Casino (luckytony.ca) : /bonus page, mobile first.
   All selectors are prefixed .kb- (or scoped under .kb-page) so nothing leaks to other pages.
   Relies on tokens from site.css (dark default + :root[data-theme="light"]). */

/* Active sidebar entry (only this stylesheet is loaded on /bonus) */
.ky-menu__link[aria-current="page"] {
  color: var(--ky-blue);
}

.kb-wrap {
  margin-top: 0;
}

.kb-page {
  overflow-wrap: break-word;
}

/* ---------- Hero ---------- */
.kb-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--ky-line);
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 140, 255, 0.28), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(27, 177, 187, 0.18), transparent 60%),
    var(--ky-panel);
}

:root[data-theme="light"] .kb-hero {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 140, 255, 0.13), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(27, 177, 187, 0.1), transparent 60%),
    var(--ky-panel);
}

.kb-hero__art {
  position: relative;
  z-index: 0;
  justify-self: center;
  width: min(200px, 60%);
  margin: 12px auto -24px;
}

.kb-hero__art::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% 10%;
  border-radius: 50%;
  background: rgba(0, 140, 255, 0.42);
  filter: blur(38px);
}

.kb-hero__img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 55%, transparent 100%);
}

.kb-hero__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0 18px 22px;
}

.kb-hero__h1 {
  margin: 0 0 12px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.kb-hero__lede {
  max-width: 60ch;
  margin: 0 0 18px;
  color: var(--ky-prose);
  font-size: 16px;
  line-height: 1.65;
}

/* Key figures */
.kb-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.kb-fig {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid var(--ky-line);
  border-top: 3px solid var(--acc);
  border-radius: 14px;
  background: var(--ky-raised);
  text-align: center;
}

.kb-fig__num {
  color: var(--acc-ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.kb-fig__label {
  color: var(--ky-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.kb-hero__cta .ky-btn,
.kb-claim__cta .ky-btn {
  width: 100%;
  margin-top: 0;
  box-shadow: 0 8px 22px rgba(25, 204, 97, 0.32);
}

.kb-hero__note,
.kb-claim__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--ky-muted);
  font-size: 13px;
  line-height: 1.4;
}

.kb-age {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ky-red);
  border-radius: 50%;
  color: var(--ky-text);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Welcome timeline ---------- */
.kb-steps {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

/* vertical connector on mobile */
.kb-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 44px;
  bottom: -14px;
  left: 19px;
  width: 2px;
  background: linear-gradient(var(--acc), var(--ky-line-strong));
}

.kb-step__dot {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--acc);
  color: #0a0033;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--ky-panel), 0 0 0 6px var(--ky-line);
}

.kb-step__card {
  min-width: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--ky-line);
  border-radius: 14px;
  background: var(--ky-raised);
}

.kb-step--final .kb-step__card {
  border-color: var(--acc);
  background:
    linear-gradient(135deg, rgba(255, 187, 61, 0.16), transparent 60%),
    var(--ky-raised);
}

.kb-step__kicker {
  margin: 0 0 4px;
  color: var(--acc-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.kb-step__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.kb-step__text {
  margin: 0;
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 1.6;
}

.kb-meter {
  height: 8px;
  margin: 14px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ky-chip);
}

.kb-meter span {
  display: block;
  width: var(--kb-fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ky-blue), var(--acc));
}

.kb-step__meta {
  margin: 0;
  color: var(--ky-muted);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Extras: mission stats ---------- */
.kb-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.kb-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "badge num"
    "badge label";
  column-gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--ky-line);
  border-radius: 14px;
  background: var(--ky-panel);
}

.kb-stat .ky-badge {
  grid-area: badge;
}

.kb-stat__num {
  grid-area: num;
  color: var(--acc-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.kb-stat__label {
  grid-area: label;
  color: var(--ky-muted);
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- How to claim ---------- */
.kb-how {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-how__item {
  position: relative;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--ky-line);
  border-radius: 16px;
  background: var(--ky-raised);
}

.kb-how__num {
  position: absolute;
  top: 8px;
  right: 14px;
  color: var(--acc);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.28;
}

.kb-how__item .ky-badge {
  margin-bottom: 12px;
}

.kb-how__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.kb-how__text {
  margin: 0;
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 1.6;
}

.kb-claim__cta {
  margin-top: 18px;
}

/* ---------- Good to know ---------- */
.kb-terms__grid {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-term {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ky-line);
  border-left: 3px solid var(--acc);
  border-radius: 14px;
  background: var(--ky-panel);
}

.kb-term > div {
  min-width: 0;
}

.kb-term__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.kb-term__text {
  margin: 0;
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  .kb-fig__num {
    font-size: 32px;
  }

  .kb-hero__cta .ky-btn,
  .kb-claim__cta .ky-btn {
    width: auto;
  }
}

@media (min-width: 640px) {
  .kb-hero__body {
    padding: 0 28px 28px;
  }

  .kb-hero__h1 {
    font-size: 32px;
  }

  .kb-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kb-terms__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kb-hero__cta,
  .kb-claim__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
  }

  .kb-hero__note,
  .kb-claim__note {
    margin: 0;
  }
}

@media (min-width: 768px) {
  .kb-how {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* horizontal timeline */
  .kb-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .kb-step {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 14px;
  }

  .kb-step:not(:last-child)::before {
    top: 19px;
    bottom: auto;
    left: 48px;
    right: -16px;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--acc), var(--ky-line-strong));
  }

  .kb-step__card {
    display: flex;
    flex-direction: column;
  }

  .kb-step__text {
    flex: 1;
  }
}

@media (min-width: 900px) {
  .kb-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
  }

  .kb-hero__art {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 16px 16px 16px 0;
  }

  .kb-hero__body {
    grid-column: 1;
    grid-row: 1;
    padding: 34px 8px 34px 34px;
  }

  .kb-hero__h1 {
    font-size: 36px;
  }

  .kb-figs {
    max-width: 480px;
  }
}

@media (min-width: 1180px) {
  .kb-hero {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .kb-hero__body {
    padding: 40px 12px 40px 44px;
  }
}

@media (hover: hover) {
  .kb-how__item,
  .kb-term {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .kb-how__item:hover,
  .kb-term:hover {
    transform: translateY(-3px);
    box-shadow: var(--ky-lift-shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kb-how__item:hover,
  .kb-term:hover {
    transform: none;
  }
}
