/* Lucky Tony Casino (luckytony.ca) : game providers page, mobile first.
   Relies on the tokens declared in site.css (dark default + :root[data-theme="light"]).
   Every selector is scoped to .kp- classes (or the providers menu link) so nothing leaks. */

/* Active sidebar link on this page */
.ky-menu__link[aria-current="page"] {
  color: var(--ky-blue);
}

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

/* ---------- Hero ---------- */
.kp-hero {
  margin-top: 0;
}

.kp-hero__text {
  min-width: 0;
}

.kp-hero__h1 {
  margin-bottom: 10px;
}

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

.kp-figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-fig {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ky-line);
  border-radius: 14px;
  background: var(--ky-raised);
}

.kp-fig .ky-badge {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
}

.kp-fig__num {
  color: var(--acc-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.kp-fig__label {
  color: var(--ky-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.kp-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.kp-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ky-line-strong);
  border-radius: 999px;
  color: var(--ky-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.kp-jump a:hover {
  border-color: var(--ky-blue);
  color: var(--ky-blue);
}

/* Decorative logo wall */
.kp-wall {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 1;
  padding: 10px 16px;
  border: 1px solid var(--ky-line-strong);
  border-radius: 14px;
  background: var(--ky-logo-bg);
  box-shadow: var(--ky-lift-shadow);
}

.kp-wall__item:nth-child(even) {
  transform: translateY(18px);
}

.kp-wall__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Slot studio cards ---------- */
.kp-studios {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-studio {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--ky-line);
  border-radius: 16px;
  background: var(--ky-raised);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kp-studio__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  margin-bottom: 12px;
  padding: 8px 20px;
  border: 1px solid var(--ky-line);
  border-radius: 12px;
  background: var(--ky-logo-bg);
}

.kp-studio__plate img {
  width: auto;
  max-width: 150px;
  height: 100%;
  object-fit: contain;
}

/* Wordmark for a studio without a logo file (plate is always dark navy) */
.kp-studio__word {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.kp-studio__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.kp-studio__line {
  margin: 0;
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 1.55;
}

.kp-studio__try {
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--ky-line-strong);
  color: var(--acc-ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.ky-block a.kp-studio__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ky-line-strong);
  border-radius: 999px;
  color: var(--ky-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.ky-block a.kp-studio__more:hover {
  border-color: var(--acc);
  color: var(--acc-ink);
}

.kp-games {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-game {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ky-block a.kp-game__shot {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ky-panel);
  text-decoration: none;
}

.kp-game__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kp-game__body {
  min-width: 0;
}

.kp-game__name {
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kp-game__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.kp-game__meta .ky-chip--rtp {
  margin-left: 0;
}

.kp-note {
  margin: 16px 0 0;
  color: var(--ky-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Live studios ---------- */
.kp-lives {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-live {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ky-line);
  border-radius: 16px;
  background: var(--ky-raised);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ky-block a.kp-live__shot {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  text-decoration: none;
}

.kp-live__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kp-live__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ky-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.kp-live__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.kp-live__body {
  padding: 14px 16px 16px;
}

.kp-live__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.kp-live__line {
  margin: 0 0 10px;
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 1.55;
}

.kp-live__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-live__tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ky-chip);
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  color: var(--acc-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

/* ---------- Reading a tile ---------- */
.kp-read {
  display: grid;
  gap: 20px;
}

.kp-read__tile {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--ky-line);
  border-radius: 16px;
  background: var(--ky-raised);
}

.kp-read__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.kp-read__meta .ky-chip--rtp {
  margin-left: 0;
}

.kp-read__meta .ky-chip + .kp-pin {
  margin-left: auto;
}

.kp-read__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  object-fit: cover;
}

.kp-read__cap {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.kp-read__studio,
.kp-read__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kp-read__studio {
  color: var(--ky-muted);
  font-size: 13px;
  line-height: 18px;
}

.kp-read__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

.kp-pin {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--acc);
  color: #0a0033;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.kp-legend {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-legend li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ky-line);
  border-radius: 14px;
  background: var(--ky-raised);
}

.kp-legend .kp-pin {
  margin-top: 1px;
}

.kp-legend__t {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.kp-legend__d {
  margin: 0;
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Categories ---------- */
.kp-cats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kp-cat {
  padding: 16px;
  border: 1px solid var(--ky-line);
  border-radius: 16px;
  background: var(--ky-raised);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kp-cat .ky-badge {
  margin-bottom: 12px;
}

.kp-cat .ky-badge .ky-ico {
  width: 22px;
  height: 22px;
}

.kp-svg {
  display: inline-flex;
}

.kp-cat__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.kp-cat__text {
  margin: 0;
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- CTA band (always on a dark blue gradient) ---------- */
.kp-cta {
  display: grid;
  gap: 14px;
  align-items: center;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(120, 220, 255, 0.3), transparent 60%),
    linear-gradient(140deg, #003fb8 0%, var(--ky-blue) 55%, var(--ky-teal) 100%);
  color: #fff;
}

.kp-cta__h2 {
  margin: 0 0 6px;
  color: #fff;
}

.kp-cta__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.6;
}

.kp-cta__act .ky-btn--go {
  width: 100%;
  margin-top: 0;
}

.kp-cta__note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

/* ---------- Hover ---------- */
@media (hover: hover) {
  .kp-studio:hover,
  .kp-live:hover,
  .kp-cat:hover {
    transform: translateY(-4px);
    border-color: var(--acc);
    box-shadow: var(--ky-lift-shadow);
  }

  .kp-game__shot:hover img,
  .kp-live__shot:hover img {
    transform: scale(1.05);
  }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .kp-figs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .kp-fig {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 6px;
    align-items: start;
  }

  .kp-fig .ky-badge {
    grid-row: auto;
  }
}

@media (min-width: 640px) {
  .kp-studios,
  .kp-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kp-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    padding: 26px 28px;
  }

  .kp-cta__act .ky-btn--go {
    width: auto;
  }
}

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

  .kp-read {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
  }

  .kp-read__tile {
    margin: 0;
  }

  .kp-legend {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .kp-studios,
  .kp-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .kp-wall {
    display: grid;
    padding-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kp-studio,
  .kp-live,
  .kp-cat,
  .kp-game__shot img,
  .kp-live__shot img {
    transition: none;
  }
}
