/* Lucky Tony Casino (luckytony.ca) : login page. Mobile first, scoped to .kl- classes.
   Relies on the tokens declared in site.css (dark default + :root[data-theme="light"]). */

.ky-editorial-wrap.kl-wrap {
  margin-top: 4px;
}

/* ---------- Hero: intro + login card + art ---------- */
.kl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "card" "art";
  gap: 20px;
  padding: 22px 16px;
  border: 1px solid var(--ky-line);
  border-radius: calc(var(--ky-radius) + 4px);
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(0, 140, 255, 0.2), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(27, 177, 187, 0.16), transparent 60%),
    var(--ky-panel);
}

.kl-hero__intro {
  grid-area: intro;
  min-width: 0;
}

.kl-hero__h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1px;
}

.kl-hero__lede {
  max-width: 52ch;
  margin: 0 0 16px;
  color: var(--ky-prose);
  font-size: 16px;
  line-height: 1.6;
}

.kl-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kl-hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border: 1px solid var(--ky-line);
  border-radius: 999px;
  background: var(--ky-chip);
  color: var(--ky-prose);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.kl-hero__chips .ky-ic {
  width: 18px;
  height: 18px;
  color: var(--ky-ink-blue);
}

.kl-hero__art {
  grid-area: art;
  justify-self: center;
  width: min(260px, 78%);
}

.kl-hero__art img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--ky-lift-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ---------- Login card ---------- */
.kl-card {
  grid-area: card;
  min-width: 0;
  padding: 20px 16px;
  border: 1px solid var(--ky-line-strong);
  border-radius: 18px;
  background: var(--ky-raised);
  box-shadow: var(--ky-lift-shadow);
}

.kl-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.kl-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.kl-card__sub {
  margin: 2px 0 0;
  color: var(--ky-muted);
  font-size: 14px;
  line-height: 20px;
}

.kl-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.kl-field {
  display: grid;
  gap: 6px;
}

.kl-label {
  color: var(--ky-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.kl-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--ky-line-strong);
  border-radius: 12px;
  background: var(--ky-panel);
  color: var(--ky-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kl-input .ky-ic {
  width: 20px;
  height: 20px;
}

.kl-input input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ky-text);
  font-family: inherit;
  font-size: 16px;
}

.kl-input input::placeholder {
  color: var(--ky-muted);
  opacity: 1;
}

.kl-input:focus-within {
  border-color: var(--ky-blue);
  box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.25);
  color: var(--ky-ink-blue);
}

.kl-form__row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.kl-link {
  color: var(--ky-ink-blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.kl-link:hover,
.kl-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kl-submit {
  width: 100%;
  margin-top: 2px;
  box-shadow: 0 8px 22px rgba(25, 204, 97, 0.3);
}

.kl-card__alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--ky-line);
  color: var(--ky-prose);
  font-size: 14px;
}

.kl-card__alt .kl-link {
  color: var(--ky-ink-green);
  font-weight: 700;
}

.kl-card__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--ky-muted);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.kl-age {
  display: inline-grid;
  place-items: center;
  flex: none;
  padding: 1px 7px;
  border: 1.5px solid var(--ky-orange);
  border-radius: 999px;
  color: var(--ky-ink-orange);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Devices ---------- */
.kl-devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kl-device {
  position: relative;
  padding: 18px;
  border: 1px solid var(--ky-line);
  border-top: 3px solid var(--acc);
  border-radius: 16px;
  background: var(--ky-panel);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.kl-device .ky-badge {
  margin-bottom: 14px;
}

.kl-device__title,
.kl-tip__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.kl-device__text,
.kl-tip__text {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 1.6;
}

.kl-device__tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ky-chip);
  background: color-mix(in srgb, var(--acc) 16%, transparent);
  color: var(--acc-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.kl-device__swatch {
  position: absolute;
  top: 22px;
  right: 18px;
  display: flex;
}

.kl-device__swatch i {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ky-line-strong);
  border-radius: 50%;
  background: #0a0033;
}

.kl-device__swatch i + i {
  margin-left: -8px;
  background: #f1f4f8;
}

/* ---------- Trouble logging in ---------- */
.kl-tips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kl-tip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--ky-line);
  border-radius: 14px;
  background: var(--ky-raised);
}

.kl-tip__num {
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--acc-ink);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.35;
}

.kl-tip__title {
  padding-right: 28px;
}

.ky-block a.kl-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid var(--ky-line-strong);
  border-radius: 999px;
  color: var(--ky-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.ky-block a.kl-more .ky-ic {
  width: 20px;
  height: 20px;
  color: var(--acc-ink);
}

.ky-block a.kl-more:hover {
  border-color: var(--acc);
  background: var(--ky-chip);
}

/* ---------- Security note ---------- */
.ky-block.kl-safe {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--ky-line);
  background:
    linear-gradient(135deg, rgba(25, 204, 97, 0.12), transparent 55%),
    var(--ky-panel);
}

.kl-safe__body {
  min-width: 0;
}

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

.kl-safe__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ky-chip);
  color: var(--ky-prose);
  font-size: 14px;
  line-height: 1.55;
}

.kl-safe__list .ky-ic {
  margin-top: 1px;
  color: var(--acc-ink);
}

.kl-safe__list strong {
  color: var(--ky-text);
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .kl-devices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .kl-hero {
    padding: 28px;
  }

  .kl-hero__h1 {
    font-size: 34px;
  }

  .kl-card {
    padding: 24px;
  }

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

  .ky-block.kl-safe {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 20px;
  }
}

@media (min-width: 900px) {
  .kl-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    grid-template-areas: "intro card" "art card";
    column-gap: 36px;
    row-gap: 20px;
    align-items: start;
    padding: 36px;
  }

  .kl-hero__art {
    align-self: end;
    justify-self: start;
    width: min(300px, 100%);
  }

  .kl-safe__list,
  .kl-tips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .kl-hero__h1 {
    font-size: 40px;
  }

  .kl-devices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (hover: hover) {
  .kl-device:hover {
    transform: translateY(-4px);
    box-shadow: var(--ky-lift-shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kl-device,
  .kl-input,
  .ky-block a.kl-more {
    transition: none;
  }

  .kl-device:hover {
    transform: none;
  }
}
