/* Journey V2 DEV — namespaced jv2-* only. No global site overrides. */
:root {
  --jv2-sky: #0b1a33;
  --jv2-sky-2: #16325a;
  --jv2-gold: #e6c36a;
  --jv2-gold-soft: #ffe9a8;
  --jv2-snow: #eef5ff;
  --jv2-panel: rgba(18, 32, 58, 0.88);
  --jv2-locked: #6b778c;
  --jv2-available: #3d9cf0;
  --jv2-done: #3ecf8e;
  --jv2-danger: #d66767;
  --jv2-radius: 14px;
  --jv2-touch: 44px;
  --jv2-safe: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body.jv2-body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 20% 0%, #1a3b6d 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 20%, #2a1f4d 0%, transparent 50%),
    linear-gradient(180deg, var(--jv2-sky) 0%, #07101f 100%);
  color: var(--jv2-snow);
  font-family: "Segoe UI", "Trebuchet MS", "Gill Sans", sans-serif;
  overflow-x: hidden;
}

.jv2-app {
  min-height: 100dvh;
  padding: var(--jv2-safe);
  display: grid;
  place-items: center;
}

.jv2-stage {
  width: min(100vw - 12px, 1280px);
  aspect-ratio: 16 / 9;
  max-height: min(100dvh - 12px, calc((100vw - 12px) * 9 / 16));
  background: linear-gradient(160deg, rgba(255,255,255,0.04), transparent 40%), var(--jv2-sky-2);
  border: 1px solid rgba(230, 195, 106, 0.28);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.jv2-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(7, 16, 31, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 5;
}

.jv2-brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.jv2-brand__mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff7d1, var(--jv2-gold) 55%, #8a6a20);
  box-shadow: 0 0 16px rgba(230,195,106,0.55);
  flex: 0 0 auto;
}
.jv2-brand__eyebrow { margin: 0; font-size: 0.7rem; letter-spacing: 0.04em; opacity: 0.75; }
.jv2-brand__title { margin: 0; font-size: clamp(0.95rem, 1.6vw, 1.2rem); font-weight: 700; color: var(--jv2-gold-soft); }
.jv2-topbar__meta { margin-left: auto; font-size: 0.8rem; opacity: 0.9; white-space: nowrap; }

.jv2-btn {
  min-height: var(--jv2-touch);
  min-width: var(--jv2-touch);
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: var(--jv2-snow);
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
}
.jv2-btn:hover { background: rgba(255,255,255,0.14); }
.jv2-btn--primary {
  background: linear-gradient(180deg, #f0d48a, #c9a24a);
  color: #1a1205;
  border-color: transparent;
  font-weight: 700;
}
.jv2-btn--danger { background: rgba(214,103,103,0.2); border-color: rgba(214,103,103,0.5); }
.jv2-btn--ghost { background: transparent; }
.jv2-btn--panel { flex: 0 0 auto; }

.jv2-panel {
  position: absolute;
  top: 58px; right: 10px;
  width: min(320px, calc(100% - 20px));
  max-height: calc(100% - 70px);
  overflow: auto;
  background: var(--jv2-panel);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(230,195,106,0.25);
  border-radius: var(--jv2-radius);
  padding: 14px;
  z-index: 20;
}
.jv2-panel__title { margin: 0 0 10px; font-size: 1rem; color: var(--jv2-gold-soft); }
.jv2-panel__note { font-size: 0.75rem; opacity: 0.7; margin: 12px 0 0; }
.jv2-field { display: grid; gap: 6px; margin-bottom: 10px; font-size: 0.85rem; }
.jv2-field--check { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.jv2-field--check input { width: 20px; height: 20px; }
.jv2-input {
  min-height: var(--jv2-touch);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: var(--jv2-snow);
  padding: 0 12px;
  font-size: 1rem;
}
.jv2-row { display: flex; gap: 8px; align-items: center; }
.jv2-row .jv2-input { flex: 1; }

.jv2-main { position: relative; min-height: 0; }
.jv2-view { height: 100%; }

.jv2-map {
  position: relative;
  height: calc(100% - 28px);
  margin: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: #102445;
}

/* === ETAPA 3: Interactive panable map === */
.jv2-imap {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.jv2-imap__hud {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 10px 0;
  font-size: 0.8rem;
  z-index: 4;
}
.jv2-imap__count { font-weight: 700; color: var(--jv2-gold-soft); }
.jv2-imap__hint { opacity: 0.65; margin-left: auto; }
.jv2-imap__chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px 8px;
  z-index: 4;
}
.jv2-chapter {
  font-size: clamp(0.6rem, 1.1vw, 0.78rem);
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.1);
}
.jv2-chapter.is-lit { border-color: rgba(230,195,106,0.55); box-shadow: 0 0 12px rgba(230,195,106,0.2); }
.jv2-chapter.is-complete { border-color: var(--jv2-done); color: var(--jv2-done); }
.jv2-imap__viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  border-radius: 10px;
  margin: 0 8px 8px;
  background: #0a1528;
}
.jv2-imap__viewport:active { cursor: grabbing; }
.jv2-imap__world {
  position: absolute;
  left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.jv2-imap__bg {
  position: absolute; inset: 0;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.jv2-imap__zone {
  position: absolute;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.45s ease;
  border-radius: 16px;
}
.jv2-imap__zone.is-lit { opacity: 0.55; }
.jv2-imap__prop {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.jv2-imap__prop.is-off { opacity: 0.15; filter: grayscale(1) brightness(0.6); }
.jv2-imap__prop.is-on { opacity: 1; filter: none; animation: jv2-pop 0.5s ease; }
.jv2-imap__char {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  pointer-events: none;
  z-index: 2;
}
.jv2-imap__pins { position: absolute; inset: 0; z-index: 3; }
.jv2-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(44px, 5vw, 52px);
  height: clamp(44px, 5vw, 52px);
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35), transparent 55%),
    rgba(18, 36, 64, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  padding: 0;
  box-shadow:
    0 0 0 2px rgba(11, 26, 51, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.jv2-pin:hover { transform: translate(-50%, -50%) scale(1.08); }
.jv2-pin.is-locked {
  color: #e8eef6;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.12), transparent 55%),
    rgba(70, 82, 102, 0.88);
  border-color: rgba(220, 228, 240, 0.75);
  cursor: not-allowed;
  opacity: 0.88;
  box-shadow: 0 0 0 2px rgba(11, 26, 51, 0.4), 0 2px 6px rgba(0,0,0,0.3);
}
.jv2-pin.is-available {
  border-color: #ffe9a8;
  color: #fffdf6;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 233, 168, 0.55), transparent 52%),
    linear-gradient(180deg, #2a6fb8 0%, #163e72 100%);
  box-shadow:
    0 0 0 3px rgba(230, 195, 106, 0.45),
    0 0 18px rgba(230, 195, 106, 0.55),
    0 0 28px rgba(61, 156, 240, 0.35);
  animation: jv2-pin-glow 1.8s ease-in-out infinite;
  z-index: 4;
}
.jv2-pin.is-completed {
  border-color: #9af0c4;
  background:
    radial-gradient(circle at 35% 30%, rgba(158, 240, 196, 0.4), transparent 55%),
    linear-gradient(180deg, #2a9a68 0%, #14553a 100%);
  box-shadow:
    0 0 0 2px rgba(62, 207, 142, 0.45),
    0 0 16px rgba(62, 207, 142, 0.4);
}
@keyframes jv2-pin-glow {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(230, 195, 106, 0.35),
      0 0 14px rgba(230, 195, 106, 0.4),
      0 0 22px rgba(61, 156, 240, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(230, 195, 106, 0.55),
      0 0 22px rgba(255, 233, 168, 0.65),
      0 0 34px rgba(61, 156, 240, 0.4);
  }
}
@keyframes jv2-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61,156,240,0.2), 0 0 12px rgba(61,156,240,0.25); }
  50% { box-shadow: 0 0 0 5px rgba(61,156,240,0.35), 0 0 22px rgba(61,156,240,0.45); }
}

.jv2-progress {
  margin: 0 12px 6px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.jv2-day {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  height: 100%;
  min-height: 0;
}
.jv2-day__scene {
  position: relative;
  overflow: hidden;
  background: #0d203c;
}
.jv2-day__scene img {
  width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9;
}
.jv2-day__panel {
  padding: 12px 14px 16px;
  overflow: auto;
  background: rgba(7,16,31,0.82);
}
.jv2-back { margin: 8px 0 0 8px; }
.jv2-day__eyebrow { margin: 0; font-size: 0.75rem; opacity: 0.75; color: var(--jv2-gold); }
.jv2-day__title { margin: 4px 0 12px; font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.jv2-step h3 { margin: 0 0 8px; font-size: 1rem; }
.jv2-step p { margin: 0 0 12px; line-height: 1.45; font-size: 0.95rem; }
.jv2-stub { opacity: 0.85; }
.jv2-stub-box {
  height: 88px;
  margin-bottom: 12px;
  border: 1px dashed rgba(230,195,106,0.45);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--jv2-gold-soft);
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 8px, transparent 8px, transparent 16px);
}
.jv2-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(230,195,106,0.12);
  border: 1px solid rgba(230,195,106,0.28);
}
.jv2-done-badge {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 8px 0 14px;
  background: rgba(62,207,142,0.2);
  border: 2px solid var(--jv2-done);
  color: var(--jv2-done);
  font-size: 1.6rem;
  animation: jv2-pop 0.45s ease;
}
@keyframes jv2-pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.jv2-flash {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 30;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 90, 60, 0.92);
  border: 1px solid rgba(62,207,142,0.5);
  font-size: 0.9rem;
}

.jv2-rotate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7,16,31,0.92);
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.jv2-rotate__text { margin: 0; max-width: 28rem; line-height: 1.45; }

@media (orientation: portrait) and (max-width: 900px) {
  .jv2-stage {
    aspect-ratio: auto;
    width: min(100vw - 8px, 720px);
    max-height: none;
    min-height: min(100dvh - 8px, 640px);
  }
  .jv2-day { grid-template-columns: 1fr; grid-template-rows: 28% 1fr; }
  .jv2-imap__chapters { grid-template-columns: repeat(2, 1fr); }
}

@media (orientation: landscape) and (max-height: 430px) {
  .jv2-brand__eyebrow { display: none; }
  .jv2-topbar { padding: 6px 10px; }
  .jv2-imap__chapters { display: none; }
  .jv2-imap__hint { display: none; }
  .jv2-imap__hud { padding-top: 2px; font-size: 0.72rem; }
  .jv2-day__title { font-size: 1rem; margin-bottom: 6px; }
  /* Keep ≥44px touch target even on short landscape */
  .jv2-pin {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jv2-pin.is-available { animation: none; }
  .jv2-done-badge { animation: none; }
  .jv2-imap__prop.is-on { animation: none; }
  .jv2-imap__zone { transition: none; }
}

/* === ETAPA 2: Pexeso === */
.jv2-day.is-playing {
  grid-template-columns: 1fr;
}
.jv2-day.is-playing .jv2-day__scene { display: none; }
.jv2-day.is-playing .jv2-day__panel {
  padding: 8px 10px 10px;
}
.jv2-day.is-playing .jv2-day__title,
.jv2-day.is-playing .jv2-day__eyebrow { display: none; }
.jv2-game-mount { min-height: 0; flex: 1; }
.jv2-step--game { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.jv2-game-chrome { margin-bottom: 6px; }
.jv2-game-chrome h3 { margin: 0; font-size: 0.95rem; }

.jv2-pexeso { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; }
.jv2-pexeso__hud {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.jv2-pexeso__score { margin-right: auto; font-weight: 700; color: var(--jv2-gold-soft); }
.jv2-pexeso__board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--jv2-pex-cols, 4), minmax(0, 1fr));
  grid-auto-rows: min-content;
  gap: clamp(4px, 1vw, 10px);
  align-content: center;
  justify-items: center;
  overflow: auto;
}
.jv2-pexeso__card {
  position: relative;
  border: 0;
  padding: 0;
  width: min(100%, 104px);
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: var(--jv2-touch);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  perspective: 800px;
  touch-action: manipulation;
}
.jv2-pexeso__inner {
  display: block; width: 100%; height: 100%;
  min-height: 0;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
  border-radius: 12px;
}
.jv2-rotate[hidden] { display: none !important; }
.jv2-pexeso__card.is-up .jv2-pexeso__inner,
.jv2-pexeso__card.is-matched .jv2-pexeso__inner { transform: rotateY(180deg); }
.jv2-pexeso__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.15);
}
.jv2-pexeso__face--back {
  background-color: #14325c;
  background-size: cover;
}
.jv2-pexeso__face--front {
  transform: rotateY(180deg);
  background-color: #0f2748;
  display: grid; place-items: end center;
}
.jv2-pexeso__label {
  font-size: clamp(0.55rem, 1.4vw, 0.75rem);
  background: rgba(11,26,51,0.7);
  color: #fff;
  width: 100%;
  padding: 2px 4px;
  border-radius: 0 0 10px 10px;
}
.jv2-pexeso__card.is-matched { box-shadow: 0 0 0 2px var(--jv2-done); }
.jv2-pexeso__card.is-golden.is-up .jv2-pexeso__face--front,
.jv2-pexeso__card.is-golden.is-matched .jv2-pexeso__face--front {
  box-shadow: inset 0 0 0 3px var(--jv2-gold);
}
.jv2-pexeso__finale {
  margin-top: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(230,195,106,0.35);
}
.jv2-pexeso__finale-prompt { margin: 0 0 8px; }
.jv2-pexeso__clue {
  display: block; width: min(100%, 280px); height: auto; margin: 0 auto 10px; border-radius: 10px;
}
.jv2-pexeso__choices { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jv2-pexeso__choice {
  width: 64px; height: 64px; min-width: var(--jv2-touch); min-height: var(--jv2-touch);
  border-radius: 12px; border: 2px solid rgba(255,255,255,0.2);
  background-size: cover; background-position: center; cursor: pointer;
}
.jv2-pexeso__choice.is-golden { border-color: var(--jv2-gold); }
.jv2-pexeso__won { margin: 6px 0 0; color: var(--jv2-done); font-weight: 700; }
.jv2-reward { margin-bottom: 8px; }
.jv2-reward img { width: 72px; height: 72px; animation: jv2-pop 0.45s ease; }

@media (prefers-reduced-motion: reduce) {
  .jv2-pexeso__inner { transition: none; }
}
@media (orientation: landscape) and (max-height: 430px) {
  .jv2-pexeso__inner { min-height: 44px; }
  .jv2-pexeso__label { display: none; }
  .jv2-back { margin: 4px 0 0 6px; }
  .jv2-spot__hud .jv2-btn { min-height: 36px; padding: 0 10px; font-size: 0.8rem; }
}

/* === ETAPA 3: Spot the difference === */
.jv2-spot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
}
.jv2-spot__hud {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.jv2-spot__score { margin-right: auto; font-weight: 700; color: var(--jv2-gold-soft); }
.jv2-spot__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.jv2-spot__stage.is-mode-a { grid-template-columns: 1fr; }
.jv2-spot__stage.is-mode-a .jv2-spot__pane--b { display: none; }
.jv2-spot__stage.is-mode-b { grid-template-columns: 1fr; }
.jv2-spot__stage.is-mode-b .jv2-spot__pane--a { display: none; }
.jv2-spot__stage.is-mode-zoom {
  grid-template-columns: 1fr;
  overflow: auto;
}
.jv2-spot__stage.is-mode-zoom .jv2-spot__pane {
  min-height: 140%;
}
.jv2-spot__pane {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.jv2-spot__frame {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(230,195,106,0.28);
  background: #0a1528;
  cursor: crosshair;
  touch-action: manipulation;
}
.jv2-spot__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.jv2-spot__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.jv2-spot__mark {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid transparent;
  box-sizing: border-box;
  height: 0;
}
.jv2-spot__mark.is-found {
  border-color: var(--jv2-done);
  box-shadow: 0 0 0 2px rgba(62,207,142,0.35), inset 0 0 12px rgba(62,207,142,0.25);
  background: rgba(62,207,142,0.12);
}
.jv2-spot__mark.is-hint {
  border-color: var(--jv2-gold);
  box-shadow: 0 0 0 3px rgba(230,195,106,0.35);
  animation: jv2-pulse 0.9s ease-in-out infinite;
}
.jv2-spot__mark.is-clock.is-found {
  border-color: var(--jv2-gold);
}
.jv2-spot__won {
  margin: 0;
  color: var(--jv2-done);
  font-weight: 700;
}

@media (orientation: landscape) and (max-height: 430px) {
  .jv2-spot__stage.is-mode-split {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jv2-spot__mark.is-hint { animation: none; }
}

/* === ETAPA 4: match / quiz / memory === */
.jv2-match, .jv2-quiz, .jv2-memory {
  display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0;
}
.jv2-match__hud, .jv2-quiz__hud, .jv2-memory__hud {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.jv2-match__score, .jv2-quiz__score, .jv2-memory__score {
  margin-right: auto; font-weight: 700; color: var(--jv2-gold-soft);
}
.jv2-match__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; flex: 1;
}
.jv2-match__col { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
.jv2-match__col-title { margin: 0; font-size: 0.85rem; color: var(--jv2-muted, #9eb6d8); }
.jv2-match__tile, .jv2-quiz__choice, .jv2-memory__lantern {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(158,182,216,0.35);
  background: rgba(16,36,69,0.72);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  min-height: 52px;
}
.jv2-match__tile img, .jv2-quiz__choice img, .jv2-memory__lantern img,
.jv2-quiz__image {
  width: 48px; height: 48px; object-fit: contain; border-radius: 8px; flex-shrink: 0;
}
.jv2-quiz__image { width: min(180px, 40vw); height: auto; align-self: center; }
.jv2-match__tile.is-selected { border-color: var(--jv2-gold); box-shadow: 0 0 0 2px rgba(230,195,106,0.35); }
.jv2-match__tile.is-matched, .jv2-match__tile--target.is-matched {
  opacity: 0.55; border-color: var(--jv2-done);
}
.jv2-match__tile.is-hint, .jv2-memory__lantern.is-hint {
  border-color: var(--jv2-gold);
  box-shadow: 0 0 0 3px rgba(230,195,106,0.4);
}
.jv2-match__feedback, .jv2-quiz__feedback, .jv2-memory__feedback {
  margin: 0; color: #ffb4a8; font-size: 0.9rem;
}
.jv2-match__won, .jv2-quiz__won, .jv2-memory__won {
  margin: 0; color: var(--jv2-done); font-weight: 700;
}
.jv2-quiz__prompt { margin: 0; font-size: 1rem; }
.jv2-quiz__choices {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px;
}
.jv2-memory__note { margin: 0; font-size: 0.85rem; color: var(--jv2-muted, #9eb6d8); }
.jv2-memory__board {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px;
  align-content: start; flex: 1; min-height: 0; overflow: auto;
}
.jv2-memory__lantern.is-lit {
  border-color: #fff3c4;
  box-shadow: 0 0 18px rgba(255,233,168,0.65), inset 0 0 20px rgba(255,233,168,0.25);
  transform: scale(1.04);
}
.jv2-memory__lantern:disabled { opacity: 0.85; cursor: default; }

@media (orientation: landscape) and (max-height: 430px) {
  .jv2-match__tile, .jv2-quiz__choice, .jv2-memory__lantern { min-height: 40px; padding: 4px 8px; }
  .jv2-match__tile img, .jv2-quiz__choice img, .jv2-memory__lantern img { width: 36px; height: 36px; }
  .jv2-quiz__image { width: min(120px, 28vw); }
}
@media (prefers-reduced-motion: reduce) {
  .jv2-memory__lantern.is-lit { transform: none; }
}

/* === ETAPA 5: starlight / gooddeed / seek === */
.jv2-starlight, .jv2-gooddeed, .jv2-seek {
  display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; padding: 6px 8px;
}
.jv2-starlight__hud, .jv2-gooddeed__hud, .jv2-seek__hud {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.jv2-starlight__score, .jv2-gooddeed__score, .jv2-seek__score {
  font-weight: 600; color: var(--jv2-gold-soft);
}
.jv2-starlight__chars {
  display: flex; gap: 10px; align-items: flex-end; height: 56px;
}
.jv2-starlight__char {
  height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}
.jv2-starlight__intro, .jv2-gooddeed__prompt, .jv2-seek__placeholder {
  margin: 0; font-size: 0.9rem; color: var(--jv2-muted, #9eb6d8);
}
.jv2-seek__placeholder {
  font-size: 0.75rem; letter-spacing: 0.02em; opacity: 0.85;
  border: 1px dashed rgba(230,195,106,0.45); border-radius: 8px; padding: 4px 8px;
}
.jv2-starlight__sky {
  position: relative; flex: 1; min-height: 140px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(80,120,200,0.25), transparent 55%),
    radial-gradient(1px 1px at 12% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 35%, #ffe9a8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 40%, #cde 50%, transparent 51%),
    linear-gradient(180deg, #061228 0%, #122a52 100%);
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(230,195,106,0.2);
}
.jv2-starlight.is-glow .jv2-starlight__sky {
  box-shadow: inset 0 0 60px rgba(255,233,168,0.25);
}
.jv2-starlight__star {
  position: absolute; transform: translate(-50%, -50%);
  border: 0; background: transparent; padding: 0; cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.jv2-starlight__star-fill {
  display: block; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,233,168,0.15) 40%, transparent 70%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.45; transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}
.jv2-starlight__star.is-main .jv2-starlight__star-fill { opacity: 0.55; filter: drop-shadow(0 0 6px rgba(255,233,168,0.4)); }
.jv2-starlight__star.is-lit .jv2-starlight__star-fill {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(255,233,168,0.95)) drop-shadow(0 0 28px rgba(230,195,106,0.55));
  background: radial-gradient(circle, #fff 0%, #ffe9a8 35%, #e6c36a 70%, transparent 75%);
  animation: jv2-star-pulse 1.6s ease-in-out infinite;
}
.jv2-starlight__star.is-hint .jv2-starlight__star-fill {
  opacity: 0.9; outline: 2px solid var(--jv2-gold); outline-offset: 4px;
}
@keyframes jv2-star-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.jv2-starlight__won, .jv2-gooddeed__won, .jv2-seek__won {
  margin: 0; text-align: center; color: var(--jv2-gold-soft); font-weight: 600;
}

.jv2-gooddeed__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px; flex: 1; min-height: 0; overflow: auto; align-content: start;
}
.jv2-gooddeed__deed {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(230,195,106,0.28); background: rgba(8,18,36,0.55);
  color: inherit; font: inherit; text-align: center;
}
.jv2-gooddeed__deed img { width: 48px; height: 48px; object-fit: contain; }
.jv2-gooddeed__deed span { font-size: 0.8rem; line-height: 1.25; }
.jv2-gooddeed__deed.is-selected {
  border-color: var(--jv2-gold); box-shadow: 0 0 0 2px rgba(230,195,106,0.35);
}
.jv2-gooddeed__deed.is-hint { box-shadow: 0 0 0 2px rgba(62,207,142,0.55); }
.jv2-gooddeed__seal-wrap { display: flex; justify-content: center; padding: 4px 0; }
.jv2-gooddeed__seal {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(230,195,106,0.35); background: rgba(18,32,58,0.9);
  color: inherit; font: inherit; cursor: pointer; opacity: 0.55;
}
.jv2-gooddeed__seal.is-ready { opacity: 1; box-shadow: 0 0 16px rgba(230,195,106,0.35); }
.jv2-gooddeed__seal img { width: 36px; height: 36px; }
.jv2-gooddeed__dev { margin: 0; font-size: 0.7rem; opacity: 0.65; }
.jv2-gooddeed--family_home { --deed-accent: #e6c36a; }
.jv2-gooddeed--neighbours_community { --deed-accent: #7ec8ff; }
.jv2-gooddeed--gratitude_wish { --deed-accent: #f0a0b8; }
.jv2-gooddeed--neighbours_community .jv2-gooddeed__seal.is-ready,
.jv2-gooddeed--gratitude_wish .jv2-gooddeed__seal.is-ready {
  box-shadow: 0 0 16px color-mix(in srgb, var(--deed-accent) 50%, transparent);
}

.jv2-seek__layout {
  display: grid; grid-template-columns: 1fr minmax(120px, 28%);
  gap: 8px; flex: 1; min-height: 0;
}
.jv2-seek__stage { min-height: 0; display: flex; }
.jv2-seek__frame {
  position: relative; width: 100%; margin: auto; aspect-ratio: 1 / 1;
  max-height: 100%; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(230,195,106,0.25); touch-action: manipulation;
}
.jv2-seek__img { display: block; width: 100%; height: 100%; object-fit: contain; background: #0a1528; pointer-events: none; user-select: none; }
.jv2-seek__markers { position: absolute; inset: 0; pointer-events: none; }
.jv2-seek__marker {
  position: absolute; transform: translate(-50%, -50%);
  border-radius: 50%; border: 2px solid transparent;
}
.jv2-seek__marker.is-found {
  border-color: var(--jv2-done); box-shadow: 0 0 10px rgba(62,207,142,0.55);
  background: rgba(62,207,142,0.15);
}
.jv2-seek__marker.is-hint {
  border-color: var(--jv2-gold);
  animation: jv2-seek-pulse 0.9s ease-in-out infinite;
}
@keyframes jv2-seek-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,195,106,0.55); }
  50% { box-shadow: 0 0 0 8px rgba(230,195,106,0); }
}
.jv2-seek__list {
  list-style: none; margin: 0; padding: 0; overflow: auto; min-height: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.jv2-seek__item {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 8px; background: rgba(8,18,36,0.45);
  font-size: 0.8rem;
}
.jv2-seek__item img { width: 28px; height: 28px; object-fit: contain; }
.jv2-seek__item.is-found { opacity: 0.55; text-decoration: line-through; }
.jv2-seek__item.is-hint { outline: 1px solid var(--jv2-gold); }

@media (orientation: landscape) and (max-height: 430px) {
  .jv2-starlight__chars { height: 40px; }
  .jv2-starlight__intro, .jv2-gooddeed__prompt { font-size: 0.75rem; }
  .jv2-gooddeed__deed { padding: 4px; }
  .jv2-gooddeed__deed img { width: 36px; height: 36px; }
  .jv2-seek__layout { grid-template-columns: 1fr minmax(100px, 24%); }
  .jv2-seek__item img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .jv2-starlight__star.is-lit .jv2-starlight__star-fill,
  .jv2-seek__marker.is-hint { animation: none; }
}

/* === ETAPA 6: maze / decorate / build / puzzle === */
.jv2-maze, .jv2-decorate, .jv2-build, .jv2-puzzle {
  display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 0; padding: 6px 8px;
}
.jv2-maze__hud, .jv2-decorate__hud, .jv2-build__hud, .jv2-puzzle__hud {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.jv2-maze__score, .jv2-decorate__score, .jv2-build__score, .jv2-puzzle__score {
  font-weight: 600; color: var(--jv2-gold-soft);
}
.jv2-maze__placeholder, .jv2-decorate__placeholder, .jv2-build__placeholder, .jv2-puzzle__placeholder {
  margin: 0; font-size: 0.72rem; opacity: 0.85;
  border: 1px dashed rgba(230,195,106,0.45); border-radius: 8px; padding: 3px 8px;
}
.jv2-maze__intro, .jv2-decorate__intro, .jv2-build__intro, .jv2-puzzle__intro {
  margin: 0; font-size: 0.85rem; color: var(--jv2-muted, #9eb6d8);
}
.jv2-maze__board {
  display: grid; gap: 3px; flex: 1; min-height: 0; max-width: min(100%, 520px); margin: 0 auto;
  align-content: center;
}
.jv2-maze__cell {
  aspect-ratio: 1; min-width: 0; min-height: 28px; border-radius: 6px; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
}
.jv2-maze__cell.is-wall { background: rgba(8,14,28,0.85); cursor: default; }
.jv2-maze__cell.is-path { background: rgba(62,156,240,0.18); border: 1px solid rgba(126,200,255,0.25); }
.jv2-maze__cell.is-goal { box-shadow: inset 0 0 0 2px var(--jv2-gold); background: rgba(230,195,106,0.2); }
.jv2-maze__cell.is-player { background: rgba(255,233,168,0.35); }
.jv2-maze__cell.is-hint { outline: 2px solid var(--jv2-done); outline-offset: 1px; }
.jv2-maze__cell img { width: 70%; height: 70%; object-fit: contain; pointer-events: none; }
.jv2-maze__won, .jv2-decorate__won, .jv2-build__won, .jv2-puzzle__won {
  margin: 0; text-align: center; color: var(--jv2-gold-soft); font-weight: 600;
}

.jv2-decorate__layout {
  display: grid; grid-template-columns: 1fr minmax(110px, 26%); gap: 8px; flex: 1; min-height: 0;
}
.jv2-decorate__stage {
  position: relative; margin: auto; width: min(100%, 360px); aspect-ratio: 1;
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(230,195,106,0.25);
  background: rgba(8,18,36,0.5);
}
.jv2-decorate__base { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.jv2-decorate__slot {
  position: absolute; transform: translate(-50%, -50%);
  width: 18%; height: 18%; min-width: 44px; min-height: 44px;
  border-radius: 50%; border: 2px dashed rgba(230,195,106,0.55);
  background: rgba(255,255,255,0.06); padding: 0; cursor: pointer;
}
.jv2-decorate__slot.is-filled { border-style: solid; background: rgba(62,207,142,0.15); }
.jv2-decorate__slot.is-hint { outline: 2px solid var(--jv2-gold); }
.jv2-decorate__slot img { width: 80%; height: 80%; object-fit: contain; }
.jv2-decorate__palette {
  display: flex; flex-direction: column; gap: 6px; overflow: auto; min-height: 0;
}
.jv2-decorate__orn {
  display: flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 4px 6px; border-radius: 10px; border: 1px solid rgba(230,195,106,0.28);
  background: rgba(8,18,36,0.55); color: inherit; font: inherit; cursor: pointer; text-align: left;
}
.jv2-decorate__orn img { width: 32px; height: 32px; object-fit: contain; }
.jv2-decorate__orn span { font-size: 0.75rem; }
.jv2-decorate__orn.is-selected { border-color: var(--jv2-gold); box-shadow: 0 0 0 2px rgba(230,195,106,0.35); }

.jv2-build__stack {
  display: flex; flex-direction: column-reverse; align-items: center; gap: 2px;
  flex: 1; min-height: 80px; justify-content: flex-end; overflow: auto;
}
.jv2-build__placed { width: min(120px, 28vw); height: auto; }
.jv2-build__tray {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; overflow: auto;
}
.jv2-build__part {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 72px; min-height: 44px; padding: 6px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(230,195,106,0.28); background: rgba(8,18,36,0.55); color: inherit; font: inherit;
}
.jv2-build__part img { width: 48px; height: 48px; object-fit: contain; }
.jv2-build__part span { font-size: 0.75rem; }
.jv2-build__part.is-next, .jv2-build__part.is-hint {
  border-color: var(--jv2-gold); box-shadow: 0 0 12px rgba(230,195,106,0.35);
}

.jv2-puzzle__board {
  display: grid; gap: 3px; flex: 1; min-height: 0; max-width: min(100%, 420px);
  margin: 0 auto; width: 100%;
}
.jv2-puzzle__tile {
  border: 1px solid rgba(230,195,106,0.3); border-radius: 4px; padding: 0; cursor: pointer;
  background-repeat: no-repeat; min-height: 36px; touch-action: manipulation;
}
.jv2-puzzle__tile.is-selected { outline: 2px solid var(--jv2-gold); outline-offset: 1px; z-index: 1; }
.jv2-puzzle__tile.is-hint { outline: 2px solid var(--jv2-done); }
.jv2-puzzle__tile.is-correct { box-shadow: inset 0 0 0 1px rgba(62,207,142,0.35); }

@media (orientation: landscape) and (max-height: 430px) {
  .jv2-maze__cell { min-height: 22px; }
  .jv2-decorate__layout { grid-template-columns: 1fr minmax(90px, 22%); }
  .jv2-decorate__orn span { display: none; }
  .jv2-build__part { min-width: 56px; padding: 4px; }
  .jv2-build__part img { width: 36px; height: 36px; }
  .jv2-puzzle__tile { min-height: 28px; }
}



/* === ETAPA 7: logic / wish / domino / sort === */
.jv2-logic, .jv2-wish, .jv2-domino, .jv2-sort {
  display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 0; padding: 6px 8px;
}
.jv2-logic__hud, .jv2-wish__hud, .jv2-domino__hud, .jv2-sort__hud {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.jv2-logic__score, .jv2-wish__score, .jv2-domino__score, .jv2-sort__score {
  font-weight: 600; color: var(--jv2-gold-soft);
}
.jv2-logic__placeholder, .jv2-wish__placeholder, .jv2-domino__placeholder, .jv2-sort__placeholder {
  margin: 0; font-size: 0.72rem; opacity: 0.85;
  border: 1px dashed rgba(230,195,106,0.45); border-radius: 8px; padding: 3px 8px;
}
.jv2-logic__prompt, .jv2-wish__prompt, .jv2-domino__intro, .jv2-sort__intro {
  margin: 0; font-size: 0.9rem;
}
.jv2-logic__seq {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.jv2-logic__seq img { width: 48px; height: 48px; object-fit: contain; background: rgba(8,18,36,0.4); border-radius: 8px; }
.jv2-logic__q { font-size: 1.6rem; color: var(--jv2-gold); font-weight: 700; padding: 0 6px; }
.jv2-logic__opts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; flex: 1; min-height: 0; overflow: auto;
}
.jv2-logic__opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 8px;
  border-radius: 12px; border: 1px solid rgba(230,195,106,0.28); background: rgba(8,18,36,0.55);
  color: inherit; font: inherit; cursor: pointer;
}
.jv2-logic__opt img { width: 48px; height: 48px; object-fit: contain; }
.jv2-logic__opt span { font-size: 0.75rem; text-align: center; }
.jv2-logic__opt.is-hint { outline: 2px solid var(--jv2-gold); }
.jv2-logic__won, .jv2-wish__won, .jv2-domino__won, .jv2-sort__won {
  margin: 0; text-align: center; color: var(--jv2-gold-soft); font-weight: 600;
}
.jv2-logic--pattern_sequence { --logic-accent: #7ec8ff; }
.jv2-logic--rule_match { --logic-accent: #e6c36a; }

.jv2-wish__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px;
  flex: 1; min-height: 0; overflow: auto; align-content: start;
}
.jv2-wish__card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 8px;
  border-radius: 12px; border: 1px solid rgba(230,195,106,0.28); background: rgba(8,18,36,0.55);
  color: inherit; font: inherit; cursor: pointer; text-align: center;
}
.jv2-wish__card img { width: 48px; height: 48px; object-fit: contain; }
.jv2-wish__card span { font-size: 0.78rem; line-height: 1.25; }
.jv2-wish__card.is-selected, .jv2-wish__card.is-hint {
  border-color: var(--jv2-gold); box-shadow: 0 0 0 2px rgba(230,195,106,0.35);
}
.jv2-wish__seal {
  display: inline-flex; align-items: center; gap: 8px; align-self: center;
  min-height: 48px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(230,195,106,0.35); background: rgba(18,32,58,0.9);
  color: inherit; font: inherit; cursor: pointer; opacity: 0.55;
}
.jv2-wish__seal.is-ready { opacity: 1; box-shadow: 0 0 18px rgba(255,233,168,0.45); }
.jv2-wish__seal img { width: 36px; height: 36px; }
.jv2-wish.is-sealed .jv2-wish__seal { animation: jv2-wish-glow 1.2s ease-in-out 2; }
@keyframes jv2-wish-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(255,233,168,0.35); }
  50% { box-shadow: 0 0 28px rgba(255,233,168,0.85); }
}
.jv2-wish__disc { margin: 0; font-size: 0.7rem; opacity: 0.7; }

.jv2-domino__chain-wrap {
  display: flex; align-items: center; gap: 6px; flex: 1; min-height: 0; overflow: auto;
}
.jv2-domino__chain { display: flex; gap: 4px; align-items: center; overflow: auto; flex: 1; }
.jv2-domino__tile {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 72px; min-width: 64px;
  padding: 4px; border-radius: 8px; background: rgba(8,18,36,0.55); border: 1px solid rgba(230,195,106,0.3);
}
.jv2-domino__tile img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.jv2-domino__hand {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; overflow: auto;
}
.jv2-domino__hand-btn {
  border: 1px solid transparent; background: transparent; padding: 2px; border-radius: 10px; cursor: pointer;
}
.jv2-domino__hand-btn.is-selected, .jv2-domino__hand-btn.is-hint {
  border-color: var(--jv2-gold); box-shadow: 0 0 0 2px rgba(230,195,106,0.35);
}
.jv2-domino__end { white-space: nowrap; font-size: 0.75rem; min-height: 44px; }

.jv2-sort__bins {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; flex: 1; min-height: 0; overflow: auto;
}
.jv2-sort__bin {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 8px;
  border-radius: 12px; border: 1px dashed rgba(230,195,106,0.4); background: rgba(8,18,36,0.45);
  color: inherit; font: inherit; cursor: pointer;
}
.jv2-sort__bin img { width: 40px; height: 40px; object-fit: contain; }
.jv2-sort__bin > span { font-size: 0.8rem; font-weight: 600; }
.jv2-sort__drop { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; min-height: 28px; }
.jv2-sort__drop img { width: 28px; height: 28px; object-fit: contain; }
.jv2-sort__tray {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; overflow: auto;
}
.jv2-sort__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; min-height: 44px; padding: 4px;
  border-radius: 10px; border: 1px solid rgba(230,195,106,0.28); background: rgba(8,18,36,0.55);
  color: inherit; font: inherit; cursor: pointer;
}
.jv2-sort__item img { width: 36px; height: 36px; object-fit: contain; }
.jv2-sort__item span { font-size: 0.7rem; }
.jv2-sort__item.is-selected, .jv2-sort__item.is-hint { border-color: var(--jv2-gold); box-shadow: 0 0 0 2px rgba(230,195,106,0.35); }
.jv2-sort__item.is-placed { opacity: 0.45; }

@media (orientation: landscape) and (max-height: 430px) {
  .jv2-logic__seq img, .jv2-logic__opt img { width: 36px; height: 36px; }
  .jv2-wish__card img { width: 36px; height: 36px; }
  .jv2-domino__tile { width: 56px; min-width: 52px; }
  .jv2-sort__bin { padding: 4px; }
  .jv2-sort__item { min-width: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .jv2-wish.is-sealed .jv2-wish__seal { animation: none; }
}

/* ========== ETAPA 8: music_memory + tree ========== */
.jv2-music, .jv2-tree {
  display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1;
}
.jv2-music__hud, .jv2-tree__hud {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.jv2-music__score, .jv2-tree__score {
  font-weight: 600; margin-right: auto; font-size: 0.9rem;
}
.jv2-music__placeholder, .jv2-tree__placeholder {
  margin: 0; font-size: 0.72rem; color: var(--jv2-muted, #9eb6d8); opacity: 0.9;
}
.jv2-music__note, .jv2-tree__prompt, .jv2-tree__story, .jv2-tree__summary {
  margin: 0; font-size: 0.85rem; color: var(--jv2-muted, #9eb6d8);
}
.jv2-music__feedback { margin: 0; color: #f0c070; font-size: 0.85rem; }
.jv2-music__won, .jv2-tree__won {
  margin: 0; font-weight: 700; color: var(--jv2-gold, #e6c36a);
}
.jv2-music__board {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: stretch;
}
.jv2-music__bell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 72px; min-height: 72px; padding: 8px 10px;
  border: 2px solid rgba(230,195,106,0.35); border-radius: 12px;
  background: rgba(12, 28, 54, 0.55); color: inherit; cursor: pointer;
}
.jv2-music__bell img { width: 48px; height: 48px; object-fit: contain; }
.jv2-music__bell span { font-size: 0.75rem; }
.jv2-music__bell.is-hint { border-color: var(--jv2-gold); box-shadow: 0 0 0 2px rgba(230,195,106,0.4); }
.jv2-music__bell.is-lit {
  border-color: #ffe08a; background: rgba(255, 220, 120, 0.22);
  transform: scale(1.06); box-shadow: 0 0 18px rgba(255, 220, 120, 0.45);
}
.jv2-music__bell:disabled { opacity: 0.88; cursor: default; }

.jv2-tree__intro { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.jv2-tree__chars { display: flex; gap: 12px; justify-content: center; align-items: flex-end; }
.jv2-tree__chars img { height: 72px; width: auto; object-fit: contain; }
.jv2-tree__stops {
  margin: 0; padding: 0 0 0 1.1rem; text-align: left; font-size: 0.75rem;
  max-height: 88px; overflow: auto; color: var(--jv2-muted, #9eb6d8);
}
.jv2-tree__stage {
  position: relative; flex: 1; min-height: 180px; max-height: 52vh;
  display: flex; align-items: center; justify-content: center;
}
.jv2-tree__base {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
}
.jv2-tree__ornaments { position: absolute; inset: 0; pointer-events: none; }
.jv2-tree__orn {
  position: absolute; transform: translate(-50%, -50%);
  width: 52px; height: 52px; padding: 4px; border-radius: 50%;
  border: 2px solid rgba(230,195,106,0.45); background: rgba(8, 20, 40, 0.55);
  pointer-events: auto; cursor: pointer;
}
.jv2-tree__orn img { width: 100%; height: 100%; object-fit: contain; }
.jv2-tree__orn.is-lit {
  border-color: #ffe08a; background: rgba(255, 220, 120, 0.28);
  box-shadow: 0 0 14px rgba(255, 220, 120, 0.55);
}
.jv2-tree__orn.is-hint { box-shadow: 0 0 0 3px rgba(230,195,106,0.55); }
.jv2-tree__orn:disabled { cursor: default; }
.jv2-tree__glow {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,230,140,0.35), transparent 70%);
  pointer-events: none; animation: jv2-tree-pulse 2.4s ease-in-out infinite;
}
.jv2-tree__finale-text { margin: 0; text-align: center; font-size: 0.9rem; }
.jv2-tree__finale-text.is-anim { animation: jv2-tree-fade 0.8s ease-out; }
.jv2-tree.is-finale .jv2-tree__base { filter: drop-shadow(0 0 12px rgba(255,220,120,0.45)); }

@keyframes jv2-tree-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.04); }
}
@keyframes jv2-tree-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (orientation: landscape) and (max-height: 430px) {
  .jv2-music__bell { min-width: 56px; min-height: 56px; padding: 4px 6px; }
  .jv2-music__bell img { width: 36px; height: 36px; }
  .jv2-tree__chars img { height: 48px; }
  .jv2-tree__orn { width: 44px; height: 44px; }
  .jv2-tree__stage { max-height: 58vh; min-height: 140px; }
  .jv2-tree__stops { max-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .jv2-music__bell.is-lit { transform: none; }
  .jv2-tree__glow, .jv2-tree__finale-text.is-anim { animation: none; }
  .jv2-tree.is-finale .jv2-tree__base { filter: none; }
}
