/* Tasleya homepage v2 — the game runtimes remain isolated in their existing bundles. */
.tasleya-brand {
  --nl-navy: #071b4b;
  --nl-ink: #0a1b4a;
  --nl-cream: #fffcf5;
  --nl-yellow: #ffc629;
  --nl-purple: #5f3df4;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 4% 16%, rgba(255, 198, 41, .12) 0 70px, transparent 71px),
    radial-gradient(circle at 91% 17%, rgba(95, 61, 244, .09) 0 84px, transparent 85px),
    linear-gradient(180deg, #fffdf8 0%, #fffaf0 62%, #fffdf8 100%);
  color: var(--nl-ink);
}

.tasleya-brand .nl-legacy-home[hidden] { display: none !important; }

.tasleya-brand .nl-header,
.tasleya-brand .nl-hero,
.tasleya-brand .nl-flagships,
.tasleya-brand .nl-features,
.tasleya-brand .nl-discovery {
  width: min(calc(100% - 44px), 1390px);
  max-width: none;
}

.tasleya-brand .nl-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: clamp(12px, 1.55vw, 24px);
  height: 82px;
  min-height: 82px;
  padding-block: 0;
  border-bottom: 1px solid rgba(7, 27, 75, .06);
}

.tasleya-brand .nl-header .rb-logo > span {
  color: var(--nl-navy);
  font-size: 28px;
  line-height: 1.15;
}

.tasleya-brand .nl-header .rb-logo small { font-size: 8px; letter-spacing: 3.5px; }

.tasleya-brand .nl-header nav {
  justify-content: center;
  gap: clamp(7px, 1.25vw, 20px);
  color: var(--nl-navy);
  font-size: 14px;
  font-weight: 600;
  flex-wrap: nowrap;
  max-width: none;
}

.tasleya-brand .nl-header nav a { gap: 6px; padding-inline: 3px; white-space: nowrap; }
.tasleya-brand .nl-header nav a > span { display: inline-grid; place-items: center; min-width: 20px; font-weight: 800; }

.tasleya-brand .nl-header nav .nl-nav-product {
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 14px;
  font-family: var(--heading);
  font-weight: 700;
}

.tasleya-brand .nl-header nav .nl-nav-original { background: #fff2b6; }
.tasleya-brand .nl-header nav .nl-nav-live { color: #4f2ee6; background: #eee9ff; }

.tasleya-brand .nl-header nav a:hover,
.tasleya-brand .nl-header nav a[aria-current] { text-decoration: none; box-shadow: inset 0 -3px 0 currentColor; }

.tasleya-brand .nl-header .rb-header-join {
  display: inline-flex !important;
  min-height: 48px;
  padding-inline: 18px;
  border: 1.5px solid var(--nl-navy);
  border-radius: 13px;
  color: var(--nl-navy);
  background: #fff;
  white-space: nowrap;
}

.tasleya-brand .nl-header .rb-header-join:hover { color: #fff; background: var(--nl-navy); }
.tasleya-brand .nl-header .rb-account-control { min-width: 92px; min-height: 44px; }

.tasleya-brand .nl-header .rb-account-skeleton {
  height: 42px;
  background: linear-gradient(90deg, #eef0f4, #f8f9fb, #eef0f4);
  background-size: 200% 100%;
}

.tasleya-brand .nl-header .rb-account-login,
.tasleya-brand .nl-header .rb-account-toggle {
  min-height: 44px;
  color: var(--nl-navy);
  border: 0;
  border-radius: 14px;
  background: #f1f2f5;
}

.tasleya-brand .nl-header .rb-account-toggle > span { color: #fff; background: #12bfa8; }

.tasleya-brand .nl-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 152px;
  padding: 10px 160px 8px;
  text-align: center;
}

.tasleya-brand .nl-hero h1 {
  position: relative;
  z-index: 1;
  width: fit-content;
  font-size: clamp(48px, 5.1vw, 76px);
  line-height: 1.18;
  letter-spacing: -2.8px;
}

.tasleya-brand .nl-hero h1 span { position: relative; display: inline-block; }

.tasleya-brand .nl-hero h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4%;
  bottom: 5px;
  width: 108%;
  height: 19px;
  border-radius: 999px;
  background: var(--nl-yellow);
  transform: rotate(-1deg);
}

.tasleya-brand .nl-hero p {
  margin-top: -5px;
  font-family: var(--heading);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.4;
}

.tasleya-brand .nl-doodle { position: absolute; user-select: none; }

.tasleya-brand .nl-doodle-controller {
  right: 10%;
  top: 45px;
  color: #6047f4;
  font-size: 58px;
  transform: rotate(13deg);
  filter: drop-shadow(0 10px 14px rgba(95, 61, 244, .2));
}

.tasleya-brand .nl-doodle-spark-one { right: 20%; top: 72px; color: #6551fa; font-size: 30px; }
.tasleya-brand .nl-doodle-spark-two { left: 12%; top: 52px; color: #ffbe18; font-size: 30px; }

.tasleya-brand .nl-doodle-rays {
  width: 56px;
  height: 50px;
  background: repeating-conic-gradient(from 65deg, #ffb814 0 8deg, transparent 8deg 28deg);
  -webkit-mask: radial-gradient(circle, transparent 0 22px, #000 23px);
  mask: radial-gradient(circle, transparent 0 22px, #000 23px);
}

.tasleya-brand .nl-doodle-rays-start { right: 31%; top: 25px; transform: rotate(15deg); }
.tasleya-brand .nl-doodle-rays-end { left: 29%; top: 22px; transform: rotate(115deg); }

.tasleya-brand .nl-flagships {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tasleya-brand .nl-game-card {
  position: relative;
  min-width: 0;
  min-height: 426px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(7, 27, 75, .12);
  isolation: isolate;
}

.tasleya-brand .nl-game-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.tasleya-brand .nl-game-original::after { background: linear-gradient(90deg, rgba(255, 247, 205, .99) 0 42%, rgba(255, 247, 205, .82) 53%, rgba(255, 247, 205, 0) 75%); }
.tasleya-brand .nl-game-live::after { background: linear-gradient(90deg, rgba(244, 239, 255, .99) 0 42%, rgba(244, 239, 255, .84) 53%, rgba(244, 239, 255, 0) 75%); }

.tasleya-brand .nl-game-art,
.tasleya-brand .nl-game-art img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tasleya-brand .nl-game-art img { object-fit: cover; object-position: center; }

.tasleya-brand .nl-game-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 53%;
  min-height: 426px;
  margin-inline-start: auto;
  padding: 22px 20px 18px;
}

.tasleya-brand .nl-game-label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 48px;
  margin-bottom: 11px;
  padding: 7px 15px;
  border-radius: 15px;
  font-family: var(--heading);
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.tasleya-brand .nl-game-original .nl-game-label { background: rgba(255, 255, 255, .56); }
.tasleya-brand .nl-game-live .nl-game-label { color: #341eb2; background: rgba(255, 255, 255, .72); }
.tasleya-brand .nl-game-label > span { font-size: 35px; line-height: 1; }
.tasleya-brand .nl-game-copy h2 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.45; }

.tasleya-brand .nl-game-description {
  margin-top: 12px;
  color: #27375d;
  font-size: 14.5px;
  line-height: 1.78;
}

.tasleya-brand .nl-points {
  display: flex;
  gap: 5px;
  margin-top: 9px;
  direction: ltr;
}

.tasleya-brand .nl-points b {
  flex: 1;
  padding: 4px 2px;
  color: #fff;
  border-radius: 6px;
  background: #0b4ca7;
  font: 700 10px/1.2 var(--body);
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
}

.tasleya-brand .nl-play-modes {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.tasleya-brand .nl-play-modes > span {
  grid-row: 1 / 3;
  color: #0647ba;
  font-size: 25px;
  letter-spacing: -9px;
  transform: translateX(7px);
}

.tasleya-brand .nl-game-live .nl-play-modes > span { color: #5537ed; }
.tasleya-brand .nl-play-modes strong { font-family: var(--heading); font-size: 15px; }
.tasleya-brand .nl-play-modes small { color: #3f4c6b; font-size: 12px; }

.tasleya-brand .nl-game-cta {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin-top: 13px;
  padding: 8px 16px;
  color: #fff;
  border-radius: 19px;
  background: var(--nl-navy);
  box-shadow: 0 10px 24px rgba(7, 27, 75, .22);
  font-family: var(--heading);
  font-size: 19px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tasleya-brand .nl-game-live .nl-game-cta { background: linear-gradient(135deg, #5937e9, #6948ff); }
#startScreen.tasleya-brand #startLocalBtn.nl-game-cta {
  color: #fff;
  background: var(--nl-navy);
  border-color: var(--nl-navy);
}
.tasleya-brand .nl-game-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(7, 27, 75, .28); filter: saturate(1.08); }

.tasleya-brand .nl-play-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding-inline-start: 2px;
  color: var(--nl-navy);
  border-radius: 50%;
  background: #ffdb55;
  font-size: 14px;
}

.tasleya-brand .nl-game-live .nl-play-icon { color: #5c3ff0; background: #fff; }

.tasleya-brand .nl-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 86px;
  margin-top: 16px;
  padding: 13px 8px;
  border: 1px solid rgba(7, 27, 75, .06);
  border-radius: 19px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px rgba(7, 27, 75, .06);
}

.tasleya-brand .nl-features article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 0;
  padding-inline: 14px;
}

.tasleya-brand .nl-features article + article { border-inline-start: 1px solid #e5e7ed; }

.tasleya-brand .nl-feature-icon {
  flex: 0 0 auto;
  color: #6647ff;
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 5px 7px rgba(95, 61, 244, .2));
}

.tasleya-brand .nl-feature-people { color: #3973ff; font-size: 25px; letter-spacing: -9px; }
.tasleya-brand .nl-feature-bulb { filter: drop-shadow(0 5px 7px rgba(255, 183, 0, .22)); }
.tasleya-brand .nl-feature-bars { color: #f23e84; font-size: 38px; }
.tasleya-brand .nl-features h2 { font-size: 15px; line-height: 1.5; }
.tasleya-brand .nl-features p { color: #60709a; font-size: 12.5px; line-height: 1.55; }

.tasleya-brand .nl-discovery {
  margin-top: 14px;
  margin-bottom: 42px;
  padding: 16px 20px 20px;
  border-radius: 22px;
  background: linear-gradient(110deg, #eef8ff, #f2f8ff 55%, #e9f4ff);
}

.tasleya-brand .nl-discovery > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: clamp(25px, 2.2vw, 34px);
}

.tasleya-brand .nl-discovery > h2 > span {
  display: block;
  width: 32px;
  height: 28px;
  background: repeating-conic-gradient(from 65deg, #ffb814 0 10deg, transparent 10deg 34deg);
  -webkit-mask: radial-gradient(circle at bottom left, transparent 0 8px, #000 9px);
  mask: radial-gradient(circle at bottom left, transparent 0 8px, #000 9px);
}

.tasleya-brand .nl-discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.tasleya-brand .nl-discovery-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 15px;
  min-height: 112px;
  padding: 11px 14px;
  border: 1px solid #cfe0f6;
  border-radius: 17px;
  background: rgba(255, 255, 255, .92);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tasleya-brand .nl-discovery-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(7, 27, 75, .09); }

.tasleya-brand .nl-discovery-art {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 18px;
  background: #f0f6ff;
  font-size: 58px;
}

.tasleya-brand .nl-controller { background: #e9f2ff; filter: drop-shadow(0 6px 8px rgba(35, 79, 159, .15)); }

.tasleya-brand .nl-compass {
  color: #1559b9;
  border: 9px solid #ffbd15;
  border-radius: 50%;
  background: #e9f6ff;
  box-shadow: inset 0 0 0 3px #fff, 0 6px 12px rgba(7, 27, 75, .12);
  font-size: 44px;
  transform: rotate(-20deg) scale(.82);
}

.tasleya-brand .nl-books {
  position: relative;
  align-content: center;
  gap: 4px;
  padding: 14px 9px;
  background: #eef6ff;
  transform: rotate(-4deg);
}

.tasleya-brand .nl-books i {
  display: block;
  width: 66px;
  height: 17px;
  border-radius: 4px 9px 9px 4px;
  background: #2775ef;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 3px 5px rgba(7, 27, 75, .13);
}

.tasleya-brand .nl-books i:nth-child(2) { width: 72px; background: #ff9b17; transform: translateX(-3px); }
.tasleya-brand .nl-books i:nth-child(3) { width: 63px; background: #4bb5ff; transform: translateX(4px); }
.tasleya-brand .nl-discovery-card strong { display: block; margin-bottom: 4px; font-family: var(--heading); font-size: 19px; }
.tasleya-brand .nl-discovery-card small { display: block; color: #526385; font-size: 13px; line-height: 1.55; }

.tasleya-brand .nl-discovery-card > b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #1455b6;
  border-radius: 50%;
  background: #e5f0ff;
  font-size: 21px;
}

.tasleya-brand .rb-site-footer { border-top-color: rgba(7, 27, 75, .1); }

@media (max-width: 1220px) {
  .tasleya-brand .nl-header nav { gap: 8px; font-size: 12px; }
  .tasleya-brand .nl-header nav .nl-nav-product { padding-inline: 10px; }
  .tasleya-brand .nl-game-copy { width: 57%; }
}

@media (max-width: 1100px) {
  .tasleya-brand .nl-header { grid-template-columns: auto auto 1fr auto; }

  .tasleya-brand .nl-header .rb-menu-toggle:not([hidden]) {
    display: inline-flex;
    min-height: 44px;
    padding: 6px 12px;
    border-radius: 12px;
  }

  .tasleya-brand .nl-header nav {
    position: absolute;
    top: calc(100% - 5px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 12px;
    border: 1px solid #e1e5ed;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(7, 27, 75, .15);
  }

  .tasleya-brand .nl-header nav[data-collapsed="true"] { display: none; }

  .tasleya-brand .nl-header nav a {
    justify-content: center;
    min-height: 46px;
    border-radius: 10px;
    background: #f7f8fb;
  }

  .tasleya-brand .nl-hero { min-height: 142px; }
  .tasleya-brand .nl-flagships { grid-template-columns: 1fr; }
  .tasleya-brand .nl-game-card, .tasleya-brand .nl-game-copy { min-height: 410px; }
  .tasleya-brand .nl-game-copy { width: 45%; }

  .tasleya-brand .nl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .tasleya-brand .nl-features article:nth-child(3) { border-inline-start: 0; }
  .tasleya-brand .nl-features article:nth-child(n + 3) { padding-top: 9px; border-top: 1px solid #e5e7ed; }
  .tasleya-brand .nl-discovery-grid { gap: 10px; }
  .tasleya-brand .nl-discovery-card { grid-template-columns: 64px minmax(0, 1fr) 32px; gap: 10px; }
  .tasleya-brand .nl-discovery-art { width: 64px; height: 64px; font-size: 42px; }
  .tasleya-brand .nl-books i { width: 50px; height: 13px; }
  .tasleya-brand .nl-books i:nth-child(2) { width: 55px; }
  .tasleya-brand .nl-books i:nth-child(3) { width: 47px; }
}

@media (max-width: 700px) {
  .tasleya-brand {
    background: radial-gradient(circle at 0 11%, rgba(255, 198, 41, .11) 0 54px, transparent 55px), linear-gradient(180deg, #fffdf8, #fff9ed 62%, #fffdf8);
  }

  .tasleya-brand .nl-header,
  .tasleya-brand .nl-hero,
  .tasleya-brand .nl-flagships,
  .tasleya-brand .nl-features,
  .tasleya-brand .nl-discovery { width: min(calc(100% - 24px), 540px); }

  .tasleya-brand .nl-header { grid-template-columns: auto auto auto auto; gap: 5px; height: 72px; min-height: 72px; }
  .tasleya-brand .nl-header .rb-logo { gap: 7px; }
  .tasleya-brand .nl-header .rb-logo img { width: 40px; height: 40px; }
  .tasleya-brand .nl-header .rb-logo > span { font-size: 22px; }

  .tasleya-brand .nl-header .rb-menu-toggle:not([hidden]) {
    grid-column: 4;
    grid-row: 1;
    justify-self: start;
    min-width: 44px;
    padding: 5px 9px;
  }

  .tasleya-brand .nl-header .rb-menu-toggle span:last-child { display: none; }

  .tasleya-brand .nl-header .rb-header-join {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex !important;
    justify-self: center;
    min-height: 42px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .tasleya-brand .nl-header .rb-account-control { position: relative; left: auto; grid-column: 3; grid-row: 1; min-width: 40px; }
  .tasleya-brand .nl-header .rb-account-login { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 8px; font-size: 11px; }
  .tasleya-brand .nl-header .rb-account-toggle > b { display: none; }
  .tasleya-brand .nl-header nav { grid-template-columns: repeat(2, minmax(0, 1fr)); top: calc(100% - 2px); }

  .tasleya-brand .nl-hero { min-height: 132px; padding: 14px 38px 8px; }
  .tasleya-brand .nl-hero h1 { font-size: clamp(39px, 12vw, 55px); letter-spacing: -1.8px; }
  .tasleya-brand .nl-hero h1 span::after { bottom: 4px; height: 13px; }
  .tasleya-brand .nl-hero p { margin-top: 3px; font-size: 17px; line-height: 1.55; }
  .tasleya-brand .nl-doodle-controller { right: 0; top: 42px; font-size: 34px; }
  .tasleya-brand .nl-doodle-spark-one { right: 10%; top: 78px; font-size: 18px; }
  .tasleya-brand .nl-doodle-spark-two { left: 2%; top: 33px; font-size: 20px; }
  .tasleya-brand .nl-doodle-rays { display: none; }
  .tasleya-brand .nl-flagships { gap: 14px; }

  .tasleya-brand .nl-game-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 21px;
  }

  .tasleya-brand .nl-game-card::after { display: none; }

  .tasleya-brand .nl-game-art,
  .tasleya-brand .nl-game-art img { position: static; width: 100%; height: auto; }

  .tasleya-brand .nl-game-art { order: 2; display: block; height: 205px; }
  .tasleya-brand .nl-game-art img { height: 205px; object-fit: cover; }

  .tasleya-brand .nl-game-copy {
    order: 1;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 17px 16px 15px;
  }

  .tasleya-brand .nl-game-original .nl-game-copy { background: linear-gradient(135deg, #fff8cf, #ffefaa); }
  .tasleya-brand .nl-game-live .nl-game-copy { background: linear-gradient(135deg, #f2ecff, #ddd2ff); }
  .tasleya-brand .nl-game-label { min-height: 42px; margin-bottom: 9px; padding: 5px 10px; font-size: 23px; }
  .tasleya-brand .nl-game-label > span { font-size: 27px; }
  .tasleya-brand .nl-game-copy h2 { font-size: 21px; }
  .tasleya-brand .nl-game-description { margin-top: 8px; font-size: 13.5px; }
  .tasleya-brand .nl-play-modes { margin-top: 11px; padding-top: 0; }
  .tasleya-brand .nl-game-cta { min-height: 58px; font-size: 17px; }

  .tasleya-brand .nl-features { grid-template-columns: 1fr; margin-top: 14px; padding: 7px 14px; }
  .tasleya-brand .nl-features article { justify-content: flex-start; min-height: 68px; padding: 8px 4px; }

  .tasleya-brand .nl-features article + article,
  .tasleya-brand .nl-features article:nth-child(n + 3) { border: 0; border-top: 1px solid #e5e7ed; }

  .tasleya-brand .nl-feature-icon { width: 45px; text-align: center; }
  .tasleya-brand .nl-features h2 { font-size: 16px; }
  .tasleya-brand .nl-discovery { padding: 14px; }
  .tasleya-brand .nl-discovery-grid { grid-template-columns: 1fr; }
  .tasleya-brand .nl-discovery-card { grid-template-columns: 70px minmax(0, 1fr) 36px; }
  .tasleya-brand .nl-discovery-art { width: 66px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  .tasleya-brand .nl-game-cta,
  .tasleya-brand .nl-discovery-card { transition: none; }
}
