* {
      box-sizing: border-box;
      margin: 0;
      padding: 0
    }

    html,
    body {
      width: 100%;
      height: 100%;
      overflow: hidden;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
      color: white;
      background: #050014
    }

    .encounter {
      position: relative;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
      background: #050014 url("./img/fondonew.png") center/cover no-repeat
    }

    .encounter::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(90deg, rgba(8, 0, 35, .22), rgba(8, 0, 35, .02) 50%, rgba(0, 20, 50, .22)), linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .38));
      pointer-events: none
    }

    .star-dust {
      position: absolute;
      inset: 0;
      z-index: 2;
      background-image: radial-gradient(#fff 1.4px, transparent 1.5px), radial-gradient(#7df7ff 1px, transparent 1.2px), radial-gradient(#ff7bf5 1px, transparent 1.2px);
      background-size: 120px 120px, 180px 180px, 240px 240px;
      opacity: .25;
      animation: dustMove 16s linear infinite;
      pointer-events: none
    }

    @keyframes dustMove {
      to {
        transform: translateY(120px)
      }
    }

    .center-line {
      position: absolute;
      z-index: 3;
      top: 0;
      bottom: 0;
      left: 50%;
      width: 2px;
      transform: translateX(-50%);
      background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .45), rgba(255, 64, 255, .95), rgba(65, 230, 255, .95), rgba(255, 255, 255, .45), transparent);
      box-shadow: 0 0 18px rgba(255, 79, 216, .9), 0 0 40px rgba(39, 215, 255, .65)
    }

    .center-flare {
      position: absolute;
      z-index: 3;
      left: 50%;
      bottom: 20%;
      width: 220px;
      height: 220px;
      transform: translateX(-50%);
      border-radius: 50%;
      background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 79, 216, .35) 20%, rgba(39, 215, 255, .18) 42%, transparent 70%);
      filter: blur(8px);
      pointer-events: none;
      animation: flarePulse 3s ease-in-out infinite
    }

    @keyframes flarePulse {

      0%,
      100% {
        opacity: .65;
        transform: translateX(-50%) scale(.92)
      }

      50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08)
      }
    }

    .planet-img {
      position: absolute;
      z-index: 2;
      object-fit: contain;
      pointer-events: none;
      filter: drop-shadow(0 0 26px rgba(255, 255, 255, .2)) drop-shadow(0 0 46px rgba(255, 79, 216, .18));
      will-change: transform
    }

    .planet-one {
      width: min(34vw, 430px);
      left: 4%;
      top: 8%;
      animation: planetFloatOne 9s ease-in-out infinite
    }

    .planet-two {
      width: min(32vw, 410px);
      right: 4%;
      top: 10%;
      animation: planetFloatTwo 10s ease-in-out infinite
    }

    @keyframes planetFloatOne {

      0%,
      100% {
        transform: translateY(0) rotate(-3deg) scale(1)
      }

      50% {
        transform: translateY(-20px) rotate(4deg) scale(1.03)
      }
    }

    @keyframes planetFloatTwo {

      0%,
      100% {
        transform: translateY(0) rotate(3deg) scale(1)
      }

      50% {
        transform: translateY(22px) rotate(-4deg) scale(1.025)
      }
    }

    .logo {
      margin-top: 340px;
      position: absolute;
      z-index: 10;
      top: 28px;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
      font-weight: 950;
      font-size: clamp(42px, 6vw, 86px);
      line-height: .76;
      letter-spacing: -.07em;
      text-shadow: 0 8px 0 rgba(0, 0, 0, .22), 0 0 34px rgba(255, 255, 255, .25);
      pointer-events: none
    }

    .logo span {
      display: block;
      color: #f6c21a
    }

    .sound-toggle {
      position: absolute;
      z-index: 20;
      top: 28px;
      left: 28px;
      display: flex;
      align-items: center;
      gap: 10px;
      border: none;
      border-radius: 999px;
      padding: 12px 16px;
      color: white;
      font-weight: 950;
      font-size: 16px;
      cursor: pointer;
      background: rgba(255, 255, 255, .12);
      border: 1px solid rgba(255, 255, 255, .25);
      backdrop-filter: blur(14px);
      box-shadow: 0 16px 36px rgba(0, 0, 0, .24)
    }

    .parents {
      position: absolute;
      z-index: 20;
      left: 50%;
      bottom: 20px;
      transform: translateX(-50%);
      border: none;
      border-radius: 999px;
      padding: 13px 24px;
      color: white;
      font-weight: 950;
      font-size: 17px;
      cursor: pointer;
      background: rgba(255, 255, 255, .12);
      border: 1px solid rgba(255, 255, 255, .25);
      backdrop-filter: blur(14px);
      box-shadow: 0 16px 36px rgba(0, 0, 0, .24)
    }

    .center-content {
      position: absolute;
      z-index: 12;
      left: 50%;
      top: 34%;
      transform: translate(-50%, -50%);
      width: min(430px, 34vw);
      text-align: center;
      pointer-events: none
    }

    .center-content h1 {
      font-size: clamp(32px, 4vw, 58px);
      line-height: .88;
      margin-bottom: 12px;
      font-weight: 950;
      text-shadow: 0 8px 20px rgba(0, 0, 0, .35)
    }

    .center-content p {
      font-size: clamp(17px, 1.8vw, 25px);
      font-weight: 900;
      color: #eaed2e;
      line-height: 1.15;
      text-shadow: 0 6px 18px rgba(0, 0, 0, .45)
    }

    .tap-hint {
      margin-top: 18px;
      display: inline-flex;
      padding: 12px 18px;
      border-radius: 999px;
      background: linear-gradient(145deg, #fff7bd, #f6c21a);
      color: #ffffff;
      font-weight: 950;
      box-shadow: 0 15px 35px rgba(0, 0, 0, .28);
      animation: hintPulse 1.6s ease-in-out infinite
    }

    @keyframes hintPulse {

      0%,
      100% {
        transform: scale(1)
      }

      50% {
        transform: scale(1.05)
      }
    }

    .side {
      position: absolute;
      z-index: 8;
      top: 0;
      bottom: 0;
      width: 50%;
      border: none;
      background: transparent;
      cursor: pointer
    }

    .nova-side {
      left: 0
    }

    .kai-side {
      right: 0
    }

    .character-img {
      position: absolute;
      z-index: 9;
      bottom: 7%;
      height: 78vh;
      max-height: 880px;
      width: auto;
      object-fit: contain;
      pointer-events: none;
      filter: drop-shadow(0 0 32px rgba(255, 255, 255, .16)) drop-shadow(0 34px 42px rgba(0, 0, 0, .58));
      animation: characterEnter .9s ease both, characterFloat 3.3s ease-in-out infinite .9s;
      transform-origin: center bottom;
      transition: transform .28s ease, filter .28s ease, opacity .28s ease
    }

    .nova-side .character-img {
      left: 8%
    }

    .kai-side .character-img {
      right: 8%;
      animation-delay: .15s, .9s
    }

    @keyframes characterEnter {
      from {
        opacity: 0;
        transform: translateY(50px) scale(.92)
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1)
      }
    }

    @keyframes characterFloat {

      0%,
      100% {
        transform: translateY(0) scale(1)
      }

      50% {
        transform: translateY(-16px) scale(1.025)
      }
    }

    .side:hover .character-img {
      transform: scale(1.06);
      filter: drop-shadow(0 0 38px rgba(255, 255, 255, .24)) drop-shadow(0 38px 46px rgba(0, 0, 0, .62))
    }

    .name-plate {
      position: absolute;
      z-index: 11;
      left: 50%;
      bottom: 5%;
      transform: translateX(-50%);
      min-width: 300px;
      padding: 18px 34px;
      border-radius: 32px;
      text-align: center;
      font-size: clamp(42px, 5vw, 82px);
      line-height: .78;
      font-weight: 950;
      letter-spacing: -.05em;
      color: white;
      text-shadow: 0 5px 0 rgba(0, 0, 0, .18);
      pointer-events: none
    }

    .nova-side .name-plate {
      background: linear-gradient(180deg, rgba(255, 79, 216, .26), rgba(90, 0, 95, .5));
      border: 2px solid rgba(255, 79, 216, .85);
      box-shadow: 0 0 24px rgba(255, 79, 216, .75), inset 0 1px 0 rgba(255, 255, 255, .38)
    }

    .kai-side .name-plate {
      background: linear-gradient(180deg, rgba(39, 215, 255, .22), rgba(0, 60, 95, .5));
      border: 2px solid rgba(39, 215, 255, .9);
      box-shadow: 0 0 24px rgba(39, 215, 255, .72), inset 0 1px 0 rgba(255, 255, 255, .38)
    }

    .encounter.selected .side:not(.chosen) {
      opacity: .28;
      filter: saturate(.6)
    }

    .side.chosen .character-img {
      animation: chosenPop .62s ease both
    }

    @keyframes chosenPop {
      0% {
        transform: scale(1)
      }

      45% {
        transform: scale(1.14)
      }

      100% {
        transform: scale(1.06)
      }
    }

    .video-welcome {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: #050014;
      display: grid;
      place-items: center
    }

    .video-welcome video {
      width: 100%;
      height: 100%;
      object-fit: cover
    }

    .skip-video {
      position: absolute;
      right: 22px;
      bottom: 22px;
      border: none;
      border-radius: 999px;
      padding: 14px 22px;
      font-weight: 900;
      background: rgba(255, 255, 255, .85);
      color: #241000
    }

    @media(max-width:900px) {
      .logo {
        top: 20px;
        font-size: 46px
      }

      .sound-toggle {
        top: 16px;
        left: 14px;
        font-size: 0;
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center
      }

      .sound-toggle span {
        font-size: 22px
      }

      .center-content {
        top: 32%;
        width: 82vw
      }

      .center-content h1 {
        font-size: 38px
      }

      .center-content p {
        font-size: 18px
      }

      .character-img {
        height: 58vh;
        bottom: 17%
      }

      .nova-side .character-img {
        left: -14%
      }

      .kai-side .character-img {
        right: -14%
      }

      .name-plate {
        min-width: 150px;
        padding: 14px 22px;
        bottom: 10%;
        font-size: 38px
      }

      .planet-one {
        width: 44vw;
        left: -10%;
        top: 10%
      }

      .planet-two {
        width: 44vw;
        right: -10%;
        top: 11%
      }

      .parents {
        bottom: 16px;
        font-size: 15px;
        padding: 12px 18px
      }
    }

    .name-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(5,0,20,.72);
  backdrop-filter:blur(12px);
}

.name-modal.show{
  display:flex;
}

.name-card{
  width:min(420px,88vw);
  padding:30px 26px;
  border-radius:32px;
  text-align:center;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.35);
  box-shadow:0 30px 80px rgba(0,0,0,.45);
}

.name-card img{
  height:170px;
  object-fit:contain;
  margin-bottom:10px;
  filter:drop-shadow(0 18px 28px rgba(0,0,0,.45));
}

.name-card h2{
  font-size:28px;
  line-height:1;
  margin-bottom:18px;
  font-weight:950;
}

.name-card input{
  width:100%;
  height:56px;
  border:none;
  outline:none;
  border-radius:999px;
  padding:0 22px;
  font-size:20px;
  font-weight:900;
  text-align:center;
}

.name-card button{
  margin-top:16px;
  width:100%;
  height:56px;
  border:none;
  border-radius:999px;
  cursor:pointer;
  font-size:19px;
  font-weight:950;
  color:#321f00;
  background:linear-gradient(145deg,#fff7bd,#f6c21a);
}

#startAdventure {
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}

#welcomeVideo {
  pointer-events: none;
}

.welcome-box {
  position: relative;
}

.welcome-box::before,
.welcome-box::after {
  pointer-events: none;
}

/* PKLanguage — selector de idioma */
.language-picker{margin-top:16px;display:grid;gap:8px;text-align:center}
.language-label{font-size:13px;font-weight:900;color:rgba(255,255,255,.86)}
.language-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.language-option{margin:0!important;height:46px!important;border-radius:999px!important;background:rgba(255,255,255,.13)!important;color:#fff!important;border:1px solid rgba(255,255,255,.35)!important;box-shadow:none!important;font-size:15px!important}
.language-option.is-active{background:linear-gradient(145deg,#fff7bd,#f6c21a)!important;color:#322000!important;border-color:#fff1a0!important;box-shadow:0 10px 24px rgba(0,0,0,.18)!important}

/* CENTRAR PERSONAJES EN HOME PARA PANTALLAS ANGOSTAS */
@media (max-width: 760px){

  .side{
    width:50%!important;
    display:flex!important;
    justify-content:center!important;
    align-items:flex-end!important;
  }

  .nova-side{
    left:0!important;
    right:auto!important;
  }

  .kai-side{
    left:auto!important;
    right:0!important;
  }

  .side img,
  .side video{
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
  }
}

/* =====================================================================
   HOME — AVISO TEMPORAL PARA CELULARES Y TABLETS
   ===================================================================== */

.desktop-only-notice {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  min-height: 100dvh;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));

  overflow-y: auto;

  background:
    radial-gradient(
      circle at 18% 22%,
      rgba(31, 189, 255, 0.32),
      transparent 34%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(238, 63, 255, 0.28),
      transparent 35%
    ),
    radial-gradient(
      circle at 50% 88%,
      rgba(246, 194, 26, 0.18),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #060319 0%,
      #121044 48%,
      #060319 100%
    );
}

.desktop-only-notice::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.8) 1px,
      transparent 1.7px
    );

  background-size: 34px 34px;
  opacity: 0.36;
}

body.pk-desktop-only .desktop-only-notice {
  display: flex;
}

body.pk-desktop-only {
  overflow: hidden !important;
  touch-action: none;
}

body.pk-desktop-only .encounter {
  display: none !important;
}

.desktop-only-card {
  position: relative;
  z-index: 2;

  width: min(100%, 520px);
  padding: 36px 28px 32px;

  display: flex;
  flex-direction: column;
  align-items: center;

  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 36px;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.19),
      rgba(255, 255, 255, 0.08)
    );

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.desktop-only-logo {
  margin-bottom: 24px;

  color: #fff;
  font-size: clamp(34px, 10vw, 50px);
  font-weight: 1000;
  line-height: 0.82;
  letter-spacing: -0.07em;

  text-shadow:
    0 8px 24px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(255, 255, 255, 0.16);
}

.desktop-only-logo span {
  display: block;
  color: #f6c21a;
}

.desktop-only-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 22px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;

  font-size: 48px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.25),
      rgba(246, 194, 26, 0.2)
    );

  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.desktop-only-card h1 {
  margin: 0;

  color: #fff;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 1000;

  text-wrap: balance;

  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.desktop-only-card p {
  max-width: 410px;
  margin: 18px auto 0;

  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 4.5vw, 18px);
  line-height: 1.4;
  font-weight: 700;

  text-wrap: balance;
}

.desktop-only-card .desktop-only-highlight {
  margin-top: 16px;

  color: #fff;
  font-size: clamp(17px, 5vw, 21px);
  line-height: 1.3;
  font-weight: 900;
}

.desktop-only-badge {
  margin-top: 26px;
  min-height: 46px;
  padding: 0 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;

  color: #3d2b00;
  font-size: 14px;
  font-weight: 900;

  background:
    linear-gradient(
      135deg,
      #fff3a4,
      #f6c21a
    );

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

@media (max-height: 620px) {
  .desktop-only-card {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .desktop-only-logo {
    margin-bottom: 16px;
    font-size: 34px;
  }

  .desktop-only-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
    font-size: 36px;
  }

  .desktop-only-card p {
    margin-top: 12px;
  }

  .desktop-only-badge {
    margin-top: 18px;
  }
}