/*
 * NANATALE KID safety and route-only styles.
 *
 * Public-site material, artwork mapping, controls, cards, header, and footer
 * live in /styles/experience-system.css, which is activated only while the
 * document is in the Kids experience.
 */

html[data-experience="kids"] {
  --ink: #fff8df;
  --panel: #fffdf3;
  --panel-raised: #fff;
  --panel-soft: #e6fbff;
  --line: #8bd9df;
  --line-strong: #22577a;
  --text: #17324d;
  --muted: #52738d;
  --muted-strong: #315e78;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, .12);
  --accent-ink: #fff;
  --blue: #58c7e7;
  --violet: #8d7de8;
  --amber: #ffbe4a;
  --red: #ff7f79;
  --green: #4dc9a5;
  color-scheme: light;
}

html[data-experience="kids"] body {
  color: #17324d;
  background: #f8f1e6;
}

html[data-experience="kids"] [data-asset-role="background-decorative"] {
  display: none !important;
  opacity: 0 !important;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  color: #17324d;
  background: linear-gradient(145deg, #dff9ff, #fff2bc 55%, #ffd9d2);
}

.age-gate-card {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(320px, 1.05fr);
  overflow: hidden;
  border: 2px solid rgba(34, 87, 122, .2);
  border-radius: 32px;
  background: #fffdf3;
  box-shadow: 0 28px 90px rgba(34, 87, 122, .22);
}

.age-gate-art {
  min-height: 560px;
  background: #dff9ff;
}

.age-gate-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.age-gate form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 6vw, 64px);
}

.age-gate form > span {
  color: #087f8c;
  font: 900 12px/1.3 ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.age-gate h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.age-gate p {
  margin: 0;
  color: #52738d;
  font-size: 16px;
  line-height: 1.7;
}

.age-gate label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.age-gate input,
.age-gate button {
  min-height: 58px;
  border-radius: 16px;
  color: #17324d;
  font-size: 18px;
}

.age-gate input {
  padding: 0 16px;
  border: 2px solid #8bd9df;
  background: #fff;
}

.age-gate button {
  border: 2px solid #22577a;
  background: #ffd54a;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 6px 0 #e4a92c;
}

.age-gate small {
  color: #52738d;
  line-height: 1.6;
}

.age-gate .age-gate-error {
  color: #a33a43;
  font-weight: 800;
}

.kids-player-block {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #17324d;
  background: #fff8df;
}

.kids-player-block > img {
  width: 100%;
  height: 100dvh;
  object-fit: cover;
}

.kids-player-block > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(30px, 8vw, 100px);
}

.kids-player-block span,
.kids-route-block span {
  color: #087f8c;
  font-weight: 950;
  letter-spacing: .1em;
}

.kids-player-block h1,
.kids-route-block h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.05em;
}

.kids-player-block p,
.kids-route-block p {
  margin: 0;
  color: #52738d;
  font-size: 18px;
  line-height: 1.7;
}

.kids-route-block {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #17324d;
  background: linear-gradient(145deg, #dff9ff, #fff8df);
}

.kids-route-block > img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}

.kids-route-block > div {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(28px, 6vw, 60px);
  border: 2px solid rgba(34, 87, 122, .18);
  border-radius: 32px;
  background: rgba(255, 253, 243, .96);
  box-shadow: 0 24px 80px rgba(34, 87, 122, .18);
}

.kids-route-block h1 {
  margin: 16px 0;
}

.kids-route-block a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 12px;
  color: #fff;
  background: #2563eb;
  font-weight: 950;
  text-decoration: none;
}

@media (max-width: 760px) {
  .age-gate-card,
  .kids-player-block {
    grid-template-columns: 1fr;
  }

  .age-gate-art {
    min-height: 230px;
    max-height: 34vh;
  }

  .age-gate form {
    padding: 26px 22px 30px;
  }

  .kids-player-block > img {
    height: 42vh;
  }
}
