/* === monstrance-faith.css ===
   Faith subpages, faith games (sequence/match/reveal), checkpoint, lightbox, tiles, explainer, playful rubric games, finale, audio caption.
   Auto-extracted from catholic-monstrance-for-kids.html
*/

/* === Faith subpages, enhanced === */
.faith-page-bg {
  background:
    radial-gradient(140% 90% at 50% 22%, var(--halo) 0%, transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, var(--paper) 60%, var(--paper-deep) 100%);
}
.faith-shell {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px clamp(16px, 3vw, 36px) 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.faith-hero {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 32px;
  align-items: center;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  padding: 26px clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-ink);
}
.faith-hero-art {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  border-radius: var(--rad-md);
  border: 2.5px solid var(--ink);
  overflow: hidden;
  box-shadow: 0 2px 0 var(--ink);
  background: radial-gradient(circle at 40% 35%, var(--halo), var(--gold-light) 70%, var(--paper-deep));
}
.faith-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.faith-hero-text .stop-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 6px 0 10px;
}
.faith-hero-text .stop-kicker {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-deep);
}
@media (max-width: 760px) {
  .faith-hero { grid-template-columns: 1fr; gap: 18px; padding: 20px 18px 22px; }
  .faith-hero-art { max-width: 460px; margin: 0 auto; }
}

.big-idea {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--gold-light);
  border: 2px dashed var(--ink);
  border-radius: var(--rad-md);
  padding: 14px 16px;
  margin-top: 14px;
}
.big-idea h3 {
  font-size: 18px;
  margin: 0 0 4px;
}
.big-idea-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-family: 'Sentient', serif;
  font-weight: 800;
  font-size: 22px;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--ink);
}

.guide-bubble {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  padding: 14px 18px 14px 14px;
  box-shadow: var(--shadow-ink);
  transform: rotate(-0.6deg);
}
.guide-portrait {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  overflow: hidden;
  background: radial-gradient(circle, var(--halo), var(--gold-light) 70%, transparent);
  box-shadow: 0 2px 0 var(--ink);
}
.guide-portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.guide-name {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 4px;
}
.guide-speech p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.teaching-card.has-image {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  padding: 18px;
  box-shadow: var(--shadow-ink);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}
.teaching-card.has-image h3 {
  font-size: 20px;
  margin: 0 0 4px;
}
.teaching-card.has-image p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0;
}
.teaching-img {
  width: 120px; height: 120px;
  border-radius: 18px;
  border: 2.5px solid var(--ink);
  overflow: hidden;
  background: radial-gradient(circle, var(--halo), var(--gold-light) 70%, transparent);
  box-shadow: 0 2px 0 var(--ink);
}
.teaching-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.faith-game {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  padding: 22px clamp(18px, 3vw, 32px) 26px;
  box-shadow: var(--shadow-ink);
}
.faith-game h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 4px 0 8px;
}
.quest-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.quest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.mini-progress {
  display: flex;
  gap: 6px;
  margin: 14px 0;
}
.mini-progress span {
  height: 8px;
  flex: 1;
  max-width: 56px;
  background: var(--paper-deep);
  border-radius: 999px;
  border: 1.5px solid var(--ink);
}
.mini-progress span.is-on { background: var(--accent); }

.activity-note {
  background: var(--gold-light);
  border: 1.5px solid var(--ink);
  border-radius: var(--rad-md);
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink);
}
.activity-note.is-success {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--ink);
}
.hint-zone {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.hint-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  color: var(--ink);
  border: 2px dashed var(--accent-deep);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}
.hint-button:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.hint-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.hint-button-secondary {
  border-style: solid;
  font-size: 18px;
  padding: 6px 14px;
}
.hint-reveal {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--accent-deep);
  background: var(--paper);
  border: 2px solid var(--accent-deep);
  border-radius: var(--rad-md);
  padding: 10px 14px;
  max-width: 720px;
}
.hint-label {
  font-weight: 700;
}

/* Sequence game */
.seq-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.seq-slot {
  position: relative;
  background: var(--paper-deep);
  border: 2.5px dashed var(--ink);
  border-radius: var(--rad-md);
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
}
.seq-slot.is-next { border-style: solid; background: var(--gold-light); }
.seq-slot.is-filled {
  border-style: solid;
  background: var(--paper);
  animation: popIn 280ms cubic-bezier(.3,1.4,.5,1);
}
.seq-num {
  position: absolute;
  top: -10px; left: -10px;
  width: 26px; height: 26px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.seq-slot img {
  width: 140px; height: 140px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--ink);
}
.seq-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-top: 6px;
}
.seq-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.seq-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  padding: 14px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 120ms ease;
}
.seq-card:hover { transform: translateY(-2px); }
.seq-card.is-wrong { animation: wiggle 0.4s ease; background: #FFE0DA; }
.seq-card img {
  width: 140px; height: 140px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--ink);
}
.seq-card-text strong {
  display: block;
  font-size: 17px;
}
.seq-card-text span {
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: var(--accent-deep);
}
@keyframes wiggle {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Match game */
.phase-head {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--gold-light);
  border: 2px solid var(--accent-deep);
  border-radius: var(--rad-md);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.phase-head-text {
  flex: 1 1 240px;
  min-width: 0;
}
.phase-head h4 {
  margin: 0 0 2px;
  font-family: 'Newsreader', serif;
  font-size: 20px;
}
.phase-head p {
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 18px;
  color: var(--accent-deep);
}
.phase-counter {
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: 4px 12px;
  border: 1.5px solid var(--accent-deep);
  white-space: nowrap;
}
.game-advance {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.match-col-head {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.match-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-tile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 120ms ease, background 200ms ease;
}
.match-tile:hover { transform: translateY(-2px); }
.match-tile:disabled { cursor: default; opacity: 0.65; transform: none; }
.match-tile.is-picked { background: var(--gold-light); }
.match-tile.is-done { background: var(--accent); color: var(--paper); }
.match-tile.is-done .match-text strong,
.match-tile.is-done .match-text em { color: var(--paper); }
.match-tile.is-wrong { animation: wiggle 0.4s ease; background: #FFE0DA; }
.match-emoji {
  width: 120px; height: 120px;
  display: grid; place-items: center;
  font-size: 60px;
  background: var(--gold-light);
  border: 2px solid var(--ink);
  border-radius: 16px;
}
.match-thumb {
  width: 120px; height: 120px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--ink);
}
.match-text strong { display: block; font-size: 17px; }
.match-text em { font-style: normal; font-family: 'Caveat', cursive; font-size: 16px; color: var(--accent-deep); }
@media (max-width: 560px) {
  .match-grid { grid-template-columns: 1fr; }
}

/* Reveal game */
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.reveal-card-game {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: center;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 120ms ease;
}
.reveal-card-game:hover { transform: translateY(-3px); }
.reveal-card-game.is-focus { outline: 4px solid var(--accent); outline-offset: -4px; }
.reveal-card-game img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: popIn 300ms cubic-bezier(.3,1.4,.5,1);
}
.reveal-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(42,26,14,0.78), transparent);
  color: var(--paper);
  text-align: left;
}
.reveal-text strong { display: block; font-size: 14px; line-height: 1.1; }
.reveal-text span { font-family: 'Caveat', cursive; font-size: 15px; opacity: 0.95; }
.reveal-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 6px;
  background: radial-gradient(circle, var(--halo), var(--gold-light) 70%, var(--paper-deep));
  font-family: 'Sentient', serif;
  font-weight: 700;
  color: var(--ink);
}
.reveal-cover > span:first-child {
  font-size: 38px;
  color: var(--accent-deep);
}
.reveal-cover-label {
  font-size: 14px;
  max-width: 90%;
  padding: 0 6px;
}
.game-reset { margin-top: 14px; text-align: center; }

/* Checkpoint */
.checkpoint {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  padding: 22px clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-ink);
  position: relative;
  overflow: hidden;
  transition: background 220ms ease;
}
.checkpoint.is-bloomed {
  background: radial-gradient(140% 100% at 50% 0%, var(--halo) 0%, var(--paper) 60%);
}
.checkpoint-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.checkpoint-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 240ms ease;
}
.checkpoint.is-bloomed .checkpoint-badge {
  background: var(--gold);
  transform: rotate(-12deg) scale(1.08);
}
.checkpoint h4 {
  font-family: 'Sentient', serif;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 0;
}
.checkpoint-hint {
  margin: 6px 0 14px;
  color: var(--ink-soft);
  font-style: italic;
}
.checkpoint-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.checkpoint-choice {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 160ms ease, background 220ms ease, box-shadow 220ms ease;
}
.checkpoint-choice:hover { transform: translateY(-2px); }
.checkpoint-choice.is-open {
  background: var(--gold-light);
}
.checkpoint-choice.is-bloom {
  background: linear-gradient(135deg, var(--gold-light), #fff8e0);
  box-shadow: 0 0 0 3px var(--gold), 0 6px 0 var(--ink);
  transform: translateY(-2px);
  animation: checkpoint-bloom-pop 540ms ease;
}
@keyframes checkpoint-bloom-pop {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-4px) scale(1.04); }
  100% { transform: translateY(-2px) scale(1); }
}
.checkpoint-face {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-areas: "mark text" "mark feedback";
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
}
.checkpoint-mark {
  grid-area: mark;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-deep);
  border: 1.5px solid var(--ink);
  font-size: 14px;
}
.checkpoint-choice.is-bloom .checkpoint-mark {
  background: var(--gold);
  color: var(--ink);
}
.checkpoint-text {
  grid-area: text;
  font-weight: 700;
}
.checkpoint-feedback-inline {
  grid-area: feedback;
  font-size: 14px;
  color: var(--ink-soft);
}
.checkpoint-bloom {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--gold-light);
  border: 2px solid var(--ink);
  border-radius: var(--rad-md);
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.faith-arcade-cta {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px clamp(16px, 3vw, 22px);
  background: linear-gradient(135deg, var(--halo), var(--gold-light));
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-ink);
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.faith-arcade-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--ink);
}
.faith-arcade-cta .arcade-link-icon {
  font-size: 32px;
}
.faith-arcade-cta .arcade-link-copy {
  display: grid;
  gap: 2px;
}
.faith-arcade-cta strong { font-size: 18px; }
.faith-arcade-cta em { font-style: normal; color: var(--ink-soft); font-size: 14px; }
.faith-arcade-cta .arcade-link-tag {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}

/* Co-play and offline bridge */
.grownup-bridge {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.bridge-card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bridge-card strong {
  font-family: 'Sentient', serif;
  font-weight: 700;
  font-size: 17px;
}
.bridge-card span {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.faith-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 6px;
}
.faith-nav .btn { flex: 1 1 200px; justify-content: center; text-align: center; }
.faith-tts { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.faith-tts .btn { font-size: 16px; padding: 10px 18px; }

/* === Image lightbox === */
.zoomable {
  cursor: zoom-in;
  transition: transform 160ms ease;
}
.zoomable:hover { transform: scale(1.03); }
.lightbox-scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 17, 64, 0.78);
  backdrop-filter: blur(8px);
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade 180ms ease;
  cursor: zoom-out;
}
.lightbox-frame {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--rad-lg);
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  cursor: default;
  animation: modalIn 280ms cubic-bezier(.3,1.3,.5,1);
}
.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 30px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--rad-md);
}
.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  display: grid;
  place-items: center;
  font-family: 'Sentient', serif;
}

/* === Tile-wide buttons (teaching, guide, hero) === */
.tile-button {
  appearance: none;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: transform 140ms ease, box-shadow 140ms ease;
  position: relative;
}
.tile-button:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.tile-button:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.tile-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.faith-hero-art.tile-button {
  padding: 0;
  overflow: hidden;
  border-radius: var(--rad-md);
}

.guide-bubble.tile-button {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px 14px 14px;
  text-align: left;
}

.teaching-card.has-image.tile-button {
  padding: 16px;
}
.teaching-card.tile-button p { margin: 0 0 6px; }
.tile-cue {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: var(--accent-deep);
  margin-top: 4px;
}
.tile-cue::before { content: "→ "; }

/* === Explainer modal === */
.explainer-frame {
  position: relative;
  max-width: min(640px, 96vw);
  max-height: 92vh;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--rad-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  animation: modalIn 280ms cubic-bezier(.3,1.3,.5,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.explainer-frame.has-text {
  max-width: min(720px, 96vw);
}
.explainer-media {
  background: radial-gradient(circle at 40% 35%, var(--halo), var(--gold-light) 70%, var(--paper-deep));
  display: grid;
  place-items: center;
  padding: 14px;
  flex: 0 0 auto;
}
.explainer-media img {
  display: block;
  max-width: 100%;
  max-height: min(56vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--rad-md);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.explainer-body {
  padding: 18px clamp(18px, 4vw, 28px) 26px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.explainer-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-deep);
  line-height: 1;
}
.explainer-title {
  font-family: 'Sentient', 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.05;
  margin: 6px 0 8px;
}
.explainer-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.explainer-text {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 12px;
}
.explainer-verse {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent-deep);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  margin-top: 8px;
}
.explainer-coplay {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--gold-light);
  border: 1.5px solid var(--ink);
  border-radius: var(--rad-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.explainer-coplay strong { font-family: 'Sentient', serif; font-size: 16px; }
.explainer-coplay span { font-size: 15px; color: var(--ink-soft); }

@media (max-width: 640px) {
  .guide-bubble.tile-button { grid-template-columns: 72px 1fr; }
  .guide-bubble .tile-cue { grid-column: 2; }
}

/* ===== Playful rubric-based games ===== */
.games-page {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 42px);
  position: relative;
  z-index: 8;
}
.sky-scene.is-guadalupe-scene {
  display: block;
  min-height: 100dvh;
}
.games-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.games-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
}
.games-copy {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-ink);
  padding: clamp(22px, 4vw, 34px);
}
.game-picker {
  display: grid;
  gap: 10px;
}
.game-pick {
  appearance: none;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.game-pick:hover { transform: translateY(-1px); }
.game-pick.is-active {
  background: var(--gold-light);
  box-shadow: 0 3px 0 var(--accent-deep);
}
.game-pick.is-complete {
  border-color: var(--accent-deep);
  background:
    linear-gradient(90deg, rgba(255, 244, 186, 0.78), rgba(255, 253, 245, 0.96));
}
.game-pick.is-complete .game-pick-icon::after {
  content: "✓";
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fffdf3;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 900;
}
.game-pick-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  font-size: 27px;
}
.game-pick strong,
.game-card-title {
  display: block;
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-weight: 800;
}
.game-pick span {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.25;
}
.game-pick-tag {
  font-family: "Caveat", cursive;
  color: var(--accent-deep);
  font-size: 20px;
  min-width: 72px;
  text-align: right;
}
.games-hero.is-tiles {
  grid-template-columns: 1fr;
}
.mini-tile-section {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-ink);
  padding: clamp(14px, 3vw, 24px);
}
.mini-tile-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.mini-tile-heading {
  margin: 0;
}
.mini-tile-grownup-title {
  margin: 0;
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.02;
}
.mini-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.mini-tile {
  appearance: none;
  position: relative;
  min-height: 196px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  align-items: start;
  gap: 8px;
  padding: 16px 12px 14px;
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.96), rgba(255, 233, 168, 0.88));
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.mini-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ink);
}
.mini-tile-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-size: 32px;
}
.mini-tile-title {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.08;
}
.mini-tile-blurb {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.3;
}
.mini-tile-tag {
  font-family: "Caveat", cursive;
  color: var(--accent-deep);
  font-size: 19px;
  line-height: 1;
}
.mini-tile.is-complete {
  border-color: var(--accent-deep);
  background: linear-gradient(180deg, rgba(255, 244, 186, 0.85), rgba(255, 253, 245, 0.96));
}
.mini-tile.is-complete .mini-tile-icon::after {
  content: "✓";
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fffdf3;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 900;
}
.mini-tile.is-complete .mini-tile-icon {
  position: relative;
}
.mini-tile.is-next {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
}
.mini-game-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  box-shadow: var(--shadow-ink);
  padding: 10px 14px;
}
.mini-game-back {
  min-height: 48px;
  white-space: nowrap;
}
.mini-game-topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 800;
  line-height: 1;
}
.mini-game-topbar-title i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-size: 22px;
  font-style: normal;
}
.mini-game-topbar-count {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}
.mini-game-session-progress {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  border: 1.5px solid var(--paper-deep);
  border-radius: var(--rad-sm);
  background: rgba(255, 255, 255, 0.62);
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.25;
}
.mini-game-session-progress strong {
  color: var(--accent-deep);
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 22px;
  line-height: 1;
}
.mini-game-session-status {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.mini-game-next-label {
  flex: 1 1 100%;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}
.mini-game-session-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.mini-game-session-progress button {
  appearance: none;
  border: 1.5px solid var(--paper-deep);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 44px;
  padding: 8px 12px;
}
.mini-game-session-progress button:hover {
  border-color: var(--accent-deep);
}
.games-stage {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(rgba(255, 248, 230, 0.2), rgba(255, 239, 196, 0.72)),
    url("../images/catholic-kids/games/chapel-playmat.webp");
  background-size: cover;
  background-position: center;
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-ink);
  padding: clamp(14px, 3vw, 24px);
  overflow: hidden;
}
.games-stage:focus {
  outline: 3px solid var(--accent-deep);
  outline-offset: 5px;
}
.games-page.is-guadalupe-immersive {
  position: fixed;
  inset: 0;
  z-index: 50;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
}
.games-shell.is-guadalupe-shell {
  width: 100%;
  height: 100%;
  gap: 10px;
}
.games-stage.is-guadalupe-stage {
  min-height: 100dvh;
  height: 100%;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.arcade-link-section {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-ink);
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  gap: 16px;
}
.arcade-link-title {
  margin: 0;
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 0.98;
}
.arcade-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.arcade-link-card {
  min-height: 188px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 14px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.96), rgba(255, 233, 168, 0.88));
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  box-shadow: 0 3px 0 var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.arcade-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ink);
}
.arcade-link-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-size: 28px;
}
.arcade-link-copy {
  display: grid;
  gap: 5px;
}
.arcade-link-copy strong {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 20px;
  line-height: 1;
}
.arcade-link-copy em {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 14px;
  line-height: 1.25;
}
.arcade-link-tag {
  justify-self: start;
  padding: 5px 9px;
  border: 2px solid rgba(42, 26, 14, 0.28);
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.42);
  font-family: "Caveat", cursive;
  font-size: 18px;
  line-height: 1;
}
.game-card {
  min-height: 512px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  background: rgba(255, 248, 230, 0.86);
  border: 2px solid rgba(42, 26, 14, 0.42);
  border-radius: var(--rad-md);
  padding: clamp(14px, 3vw, 22px);
  backdrop-filter: blur(2px);
}
.game-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.game-card-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.98;
}
.game-card-copy {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.38;
  max-width: 58ch;
}
.game-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.game-badge {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  padding: 7px 11px;
  font-weight: 900;
  font-size: 14px;
}
.game-area {
  display: grid;
  align-items: center;
  gap: 12px;
}
.monstrance-build-card {
  position: relative;
  overflow: hidden;
  --build-gold: #d69a20;
  --build-glow: rgba(255, 218, 96, 0.72);
  --build-sky: #d9f2ff;
}
.monstrance-build-board {
  grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.9fr);
  align-items: stretch;
}
.monstrance-build-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  margin: 10px 0 12px;
  border: 2px solid rgba(143, 91, 15, 0.28);
  border-radius: var(--rad-md);
  background: rgba(255, 248, 218, 0.76);
  padding: 10px 12px;
}
.monstrance-build-story strong,
.monstrance-build-story span,
.monstrance-build-story em {
  min-width: 0;
}
.monstrance-build-story strong {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.05;
}
.monstrance-build-story span {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.25;
}
.monstrance-build-story em {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent-deep);
  padding: 7px 10px;
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
}
.monstrance-build-playfield {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 420px;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  box-sizing: border-box;
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  background:
    linear-gradient(180deg, rgba(255, 252, 239, 0.94), rgba(255, 237, 186, 0.72)),
    linear-gradient(135deg, var(--build-sky), #fff8df 62%, #f8d579);
  box-shadow: inset 0 -14px 0 rgba(102, 72, 24, 0.1);
  touch-action: none;
  isolation: isolate;
}
.monstrance-build-playfield.is-completing {
  animation: monstrance-build-completion-glow 1.8s ease-out;
}
.monstrance-build-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.36) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255,255,255,0.28) 0 1px, transparent 1px 100%);
  background-size: 46px 46px;
  opacity: 0.34;
  pointer-events: none;
}
.monstrance-build-slot {
  appearance: none;
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 6px;
  border: 2px dashed rgba(42, 26, 14, 0.38);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  color: rgba(42, 26, 14, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
  transition: opacity 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.monstrance-build-slot.is-next {
  background: rgba(255, 246, 190, 0.72);
  border-color: var(--accent-deep);
  border-style: solid;
  box-shadow: 0 0 0 8px rgba(255, 218, 96, 0.24), 0 0 28px var(--build-glow);
  pointer-events: auto;
}
.monstrance-build-slot.is-next .monstrance-build-slot-label {
  max-width: 92%;
  border: 2px solid rgba(42, 26, 14, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 5px 8px;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(42, 26, 14, 0.14);
}
.monstrance-build-slot-icon {
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  color: rgba(143, 91, 15, 0.38);
  font-size: clamp(32px, 7vw, 68px);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}
.monstrance-build-slot.is-next .monstrance-build-slot-icon {
  color: rgba(180, 115, 17, 0.68);
  animation: monstrance-slot-breathe 1.4s ease-in-out infinite;
}
.monstrance-build-slot-label {
  position: relative;
  z-index: 2;
}
.monstrance-build-lock {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  color: var(--accent-deep);
  box-shadow: 0 3px 0 rgba(42, 26, 14, 0.2), 0 0 18px rgba(255, 226, 117, 0.78);
  font-size: 18px;
  animation: monstrance-lock-snap 620ms ease-out;
}
.monstrance-build-slot.is-filled {
  opacity: 0.06;
}
.monstrance-build-slot.is-filled span {
  opacity: 0;
}
.monstrance-build-slot.is-just-placed {
  opacity: 0.28;
  background: rgba(255, 247, 200, 0.88);
  box-shadow: 0 0 0 10px rgba(255, 218, 96, 0.28);
  transform: translate(-50%, -50%) scale(1.04);
}
.monstrance-build-slot.is-just-placed .monstrance-build-lock {
  opacity: 1;
}
.monstrance-build-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.monstrance-build-rayburst {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 72%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -7deg, rgba(255, 225, 98, 0.58) 0 8deg, transparent 8deg 17deg),
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 12%, rgba(255, 231, 139, 0.3) 32%, transparent 64%);
  mix-blend-mode: multiply;
  opacity: 0;
  animation: monstrance-rayburst-open 1.6s ease-out forwards;
}
.monstrance-build-piece {
  position: absolute;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(84, 51, 9, 0.26));
  opacity: 0;
  animation: monstrance-piece-place 260ms ease-out forwards;
}
.monstrance-build-piece.is-just-placed {
  animation: monstrance-piece-place 260ms ease-out forwards, monstrance-piece-pop 620ms ease-out 120ms;
}
.monstrance-build-piece.is-lunette {
  filter: drop-shadow(0 8px 12px rgba(84, 51, 9, 0.22));
}
.monstrance-build-host {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 9.5%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 20;
  background: radial-gradient(circle, #fffef8 0 43%, #fff4ad 48% 66%, rgba(255,255,255,0.02) 70%);
  box-shadow: 0 0 18px rgba(255, 244, 173, 0.92), 0 0 34px rgba(255, 220, 94, 0.58);
  animation: monstrance-host-glow 1.9s ease-in-out infinite;
}
.monstrance-build-sparkles {
  position: absolute;
  inset: 0;
  z-index: 26;
  pointer-events: none;
}
.monstrance-build-sparkles span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff7b8;
  box-shadow: 0 0 14px #ffe78b;
  animation: monstrance-sparkle 1.2s ease-in-out infinite;
}
.monstrance-build-sparkles span:nth-child(1) { left: 37%; top: 21%; animation-delay: 0ms; }
.monstrance-build-sparkles span:nth-child(2) { left: 64%; top: 24%; animation-delay: 180ms; }
.monstrance-build-sparkles span:nth-child(3) { left: 34%; top: 48%; animation-delay: 320ms; }
.monstrance-build-sparkles span:nth-child(4) { left: 66%; top: 52%; animation-delay: 460ms; }
.monstrance-build-sparkles span:nth-child(5) { left: 50%; top: 17%; animation-delay: 620ms; }
.monstrance-build-sparkles span:nth-child(6) { left: 44%; top: 62%; animation-delay: 760ms; }
.monstrance-build-sparkles span:nth-child(7) { left: 58%; top: 63%; animation-delay: 880ms; }
.monstrance-build-sparkles span:nth-child(8) { left: 50%; top: 42%; animation-delay: 1040ms; }
.monstrance-build-drag {
  position: absolute;
  width: clamp(88px, 24%, 154px);
  transform: translate(-50%, -50%) scale(1.04);
  z-index: 40;
  pointer-events: none;
  filter: drop-shadow(0 14px 16px rgba(42, 26, 14, 0.32));
}
.monstrance-build-drag.is-base { width: clamp(116px, 32%, 220px); }
.monstrance-build-drag.is-rays { width: clamp(130px, 34%, 230px); }
.monstrance-build-drag.is-lunette { width: clamp(82px, 20%, 140px); }
.monstrance-build-reset {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 35;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font: inherit;
  font-weight: 900;
  padding: 8px 12px;
  cursor: pointer;
}
.monstrance-build-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
.monstrance-build-shelf-piece {
  appearance: none;
  min-height: 148px;
  display: grid;
  grid-template-rows: 84px 1fr;
  gap: 7px;
  align-items: center;
  padding: 10px;
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  cursor: grab;
  font: inherit;
  text-align: center;
  touch-action: none;
  user-select: none;
  transition: transform 120ms ease, background 160ms ease, opacity 160ms ease;
}
.monstrance-build-shelf-piece:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 0 var(--ink);
}
.monstrance-build-shelf-piece:hover,
.monstrance-build-shelf-piece.is-selected {
  transform: translateY(-2px);
}
.monstrance-build-shelf-piece.is-next {
  background: var(--gold-light);
  box-shadow: 0 3px 0 var(--ink), 0 0 0 5px rgba(255, 218, 96, 0.24);
}
.monstrance-build-shelf-piece.is-bouncing {
  animation: monstrance-piece-bounce 420ms ease;
}
.monstrance-build-shelf-piece:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}
.monstrance-build-shelf-piece strong,
.monstrance-build-shelf-piece span {
  display: block;
}
.monstrance-build-shelf-piece strong {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1;
}
.monstrance-build-shelf-piece span span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.18;
}
.monstrance-build-thumb {
  height: 84px;
  display: grid;
  place-items: center;
  position: relative;
}
.monstrance-build-thumb img {
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(84, 51, 9, 0.18));
}
.monstrance-build-thumb-icon {
  position: absolute;
  right: 4px;
  bottom: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(42, 26, 14, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-deep);
  font-size: 16px;
  line-height: 1;
}
.monstrance-build-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.monstrance-build-step {
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 7px;
  align-items: center;
  border: 2px solid var(--paper-deep);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  padding: 6px 9px;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.05;
}
.monstrance-build-step span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.monstrance-build-step.is-next {
  border-color: var(--accent-deep);
  background: var(--gold-light);
  color: var(--ink);
}
.monstrance-build-step.is-done {
  border-color: var(--accent-deep);
  background: var(--halo);
  color: var(--ink);
}
.monstrance-build-step.is-done span {
  background: var(--gold);
}
.monstrance-build-confirm {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(42, 26, 14, 0.32);
}
.monstrance-build-confirm-card {
  width: min(420px, 100%);
  display: grid;
  gap: 10px;
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  background: var(--paper);
  box-shadow: var(--shadow-ink);
  padding: 20px;
}
.monstrance-build-confirm-card h3 {
  margin: 0;
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1;
}
.monstrance-build-confirm-card p {
  margin: 0;
  color: var(--ink-soft);
}
@keyframes monstrance-piece-place {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes monstrance-piece-pop {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 12px 16px rgba(84, 51, 9, 0.26)); }
  35% { transform: translate(-50%, -50%) scale(1.09); filter: drop-shadow(0 16px 18px rgba(84, 51, 9, 0.24)) drop-shadow(0 0 22px rgba(255, 223, 110, 0.86)); }
  60% { transform: translate(-50%, -50%) scale(0.98); }
}
@keyframes monstrance-piece-bounce {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-7px); }
  60% { transform: translateX(7px); }
}
@keyframes monstrance-host-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.92; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
@keyframes monstrance-sparkle {
  0%, 100% { transform: translateY(0) scale(0.7); opacity: 0; }
  45% { transform: translateY(-8px) scale(1.1); opacity: 1; }
}
@keyframes monstrance-slot-breathe {
  0%, 100% { transform: scale(1); opacity: 0.78; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes monstrance-lock-snap {
  0% { transform: scale(0.2) rotate(-24deg); opacity: 0; }
  48% { transform: scale(1.22) rotate(8deg); opacity: 1; }
  72% { transform: scale(0.92) rotate(0); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes monstrance-rayburst-open {
  0% { transform: translate(-50%, -50%) scale(0.36) rotate(-10deg); opacity: 0; }
  35% { opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.08) rotate(6deg); opacity: 0.62; }
}
@keyframes monstrance-build-completion-glow {
  0% { box-shadow: inset 0 -14px 0 rgba(102, 72, 24, 0.1), 0 0 0 rgba(255, 221, 88, 0); }
  42% { box-shadow: inset 0 -14px 0 rgba(102, 72, 24, 0.1), 0 0 0 12px rgba(255, 221, 88, 0.3), 0 0 46px rgba(255, 214, 69, 0.7); }
  100% { box-shadow: inset 0 -14px 0 rgba(102, 72, 24, 0.1), 0 0 0 rgba(255, 221, 88, 0); }
}
.builder-board {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(260px, 1.15fr);
  gap: 14px;
  align-items: stretch;
}
.builder-target {
  min-height: 330px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: 8px;
  background: rgba(255,255,255,0.48);
  border: 2px dashed var(--ink-faint);
  border-radius: var(--rad-md);
  padding: 10px;
}
.builder-slot {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 2px solid var(--paper-deep);
  border-radius: var(--rad-sm);
  background: rgba(255,255,255,0.46);
  padding: 8px;
}
.builder-slot.is-filled {
  border-color: var(--accent-deep);
  background: var(--halo);
}
.builder-shape {
  width: 54px;
  height: 54px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  background: var(--gold);
  font-size: 26px;
}
.builder-shape.cross { border-radius: 16px; }
.builder-shape.center { border-radius: 50%; background: var(--paper); }
.builder-shape.sunburst { border-radius: 50%; background: var(--gold-light); }
.builder-shape.stem { border-radius: 999px; width: 34px; justify-self: center; }
.builder-shape.base { border-radius: 16px 16px 28px 28px; width: 74px; }
.token-bank,
.memory-grid,
.light-grid {
  display: grid;
  gap: 10px;
}
.token-bank {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}
.game-token,
.memory-card,
.light-ray {
  appearance: none;
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  font: inherit;
  transition: transform 120ms ease, background 160ms ease;
}
.game-token {
  min-height: 88px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
}
.game-token:hover,
.memory-card:hover,
.light-ray:hover { transform: translateY(-2px); }
.game-token:disabled,
.memory-card:disabled,
.light-ray:disabled {
  cursor: default;
  opacity: 0.68;
  transform: none;
}
.game-token.is-next { background: var(--gold-light); }
.game-token.is-wrong,
.memory-card.is-wrong,
.light-ray.is-wrong { animation: wiggle 0.4s ease; background: #ffe0da; }
.game-token-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--gold);
  font-size: 22px;
}
.memory-grid {
  grid-template-columns: repeat(4, minmax(84px, 1fr));
  gap: 12px;
}
.memory-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  margin: 10px 0 12px;
  border: 2px solid rgba(87, 61, 32, 0.24);
  border-radius: var(--rad-md);
  background: rgba(255, 255, 255, 0.62);
  padding: 10px 12px;
}
.memory-story strong {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.05;
}
.memory-story span {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.25;
}
.memory-story em {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  max-width: 180px;
  border: 2px solid rgba(42, 26, 14, 0.26);
  border-radius: 999px;
  background: var(--gold-light);
  color: var(--accent-deep);
  padding: 7px 10px;
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}
.memory-card {
  min-height: 128px;
  padding: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  line-height: 1.08;
  position: relative;
  overflow: hidden;
  perspective: 900px;
}
.memory-card:not(.is-open):not(.is-done) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 42%),
    repeating-linear-gradient(45deg, rgba(139, 85, 16, 0.08) 0 8px, transparent 8px 16px),
    radial-gradient(circle at 50% 34%, rgba(255, 233, 168, 0.96), rgba(255, 248, 230, 0.98) 72%);
}
.memory-card:not(.is-open):not(.is-done) .memory-symbol {
  font-size: 46px;
  color: var(--accent-deep);
}
.memory-card.is-open,
.memory-card.is-done {
  background: #fff9e6;
}
.memory-card.is-cross .memory-card-back { background: radial-gradient(circle at 50% 34%, #fff3c7 0 18%, #f8d579 19% 48%, #fff8df 86%); }
.memory-card.is-dove .memory-card-back { background: radial-gradient(circle at 50% 34%, #dff8ff 0 28%, #f5fbff 64%, #fff8df 100%); }
.memory-card.is-chalice .memory-card-back { background: radial-gradient(circle at 50% 36%, #fff7a8 0 18%, #ffd15f 19% 42%, #fff1c4 84%); }
.memory-card.is-bible .memory-card-back { background: radial-gradient(circle at 50% 34%, #e8f0ff 0 28%, #fff9e6 72%, #ffffff 100%); }
.memory-card.is-candle .memory-card-back { background: radial-gradient(circle at 50% 34%, #fffbe0 0 26%, #ffe18a 54%, #fff9e6 100%); }
.memory-card.is-fish .memory-card-back { background: radial-gradient(circle at 50% 34%, #d7f4ef 0 30%, #fff4c4 72%, #fff9e6 100%); }
.memory-card.is-lamb .memory-card-back { background: radial-gradient(circle at 50% 34%, #ffffff 0 30%, #f3eee3 72%, #fff9e6 100%); }
.memory-card.is-lily .memory-card-back { background: radial-gradient(circle at 50% 34%, #ffe5ef 0 30%, #fff4c4 72%, #fff9e6 100%); }
.memory-card.is-done {
  border-color: var(--accent-deep);
  box-shadow: 0 3px 0 var(--ink), 0 0 0 5px rgba(255, 218, 96, 0.18);
}
.memory-card.is-done::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  color: var(--accent-deep);
  font-size: 18px;
  line-height: 1;
}
.memory-card.is-new-match {
  animation: memory-match-pop 560ms ease-out;
}
.memory-card.is-new-match .memory-card-back {
  box-shadow: inset 0 0 0 4px rgba(255, 209, 68, 0.8), inset 0 0 30px rgba(255, 233, 148, 0.95);
}
.memory-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 360ms cubic-bezier(.2,.78,.2,1);
}
.memory-card.is-open .memory-card-inner,
.memory-card.is-done .memory-card-inner {
  transform: rotateY(180deg);
}
.memory-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.memory-card-front {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.84) 0 18%, transparent 19%),
    repeating-conic-gradient(from 0deg, rgba(214, 154, 32, 0.2) 0 11deg, transparent 11deg 22deg),
    radial-gradient(circle at 50% 50%, #fff3ba 0 34%, #fff9e6 72%);
}
.memory-card-back {
  transform: rotateY(180deg);
  border-radius: calc(var(--rad-md) - 2px);
}
.memory-card-tap {
  font-size: 16px;
  color: var(--ink-soft);
}
.memory-card-number {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(42, 26, 14, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1;
}
.memory-symbol {
  display: block;
  font-size: 46px;
  line-height: 1;
  margin-bottom: 6px;
}
.memory-match-burst {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.memory-match-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(255, 220, 94, 0.95);
  animation: memory-burst-dot 620ms ease-out forwards;
}
.memory-match-burst span:nth-child(1) { --burst-x: -48px; --burst-y: -34px; }
.memory-match-burst span:nth-child(2) { --burst-x: 44px; --burst-y: -30px; animation-delay: 60ms; }
.memory-match-burst span:nth-child(3) { --burst-x: 0; --burst-y: 42px; animation-delay: 110ms; }
.memory-card {
  font-size: 18px;
}
@keyframes memory-match-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-5px) scale(1.05); }
}
@keyframes memory-burst-dot {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(1.1); opacity: 0; }
}
.light-grid {
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 12px;
  position: relative;
  isolation: isolate;
}
.light-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  margin: 10px 0 12px;
  border: 2px solid rgba(82, 112, 126, 0.24);
  border-radius: var(--rad-md);
  background: rgba(240, 250, 255, 0.72);
  padding: 10px 12px;
}
.light-story strong {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.05;
}
.light-story span {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.25;
}
.light-story em {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  border: 2px solid rgba(42, 26, 14, 0.24);
  border-radius: 999px;
  background: var(--paper);
  color: var(--accent-deep);
  padding: 7px 10px;
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}
.light-grid::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: var(--rad-lg);
  background: radial-gradient(circle at 50% 48%, rgba(255, 229, 121, var(--light-progress-glow, 0.06)), transparent 68%);
  opacity: 0.9;
  pointer-events: none;
}
.light-grid.is-complete::before {
  animation: light-completion-glow 2.6s ease-in-out infinite;
}
.light-ray {
  min-height: 136px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px 10px 12px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 249, 231, 0.96));
}
.light-ray::before {
  content: "";
  position: absolute;
  inset: -28%;
  background: conic-gradient(from -20deg, transparent 0 30deg, rgba(255, 225, 105, 0.34) 30deg 42deg, transparent 42deg 84deg, rgba(255, 244, 178, 0.42) 84deg 96deg, transparent 96deg 360deg);
  opacity: 0;
  transform: scale(0.72) rotate(-8deg);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}
.light-ray::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--rad-md) - 4px);
  border: 2px solid rgba(255, 255, 255, 0.58);
  opacity: 0;
  pointer-events: none;
}
.light-ray.is-next {
  background: #fff9df;
  box-shadow: 0 3px 0 var(--ink), 0 0 0 5px rgba(255, 218, 96, 0.2);
}
.light-ray.is-next::before {
  opacity: 0.32;
  transform: scale(0.88) rotate(0);
}
.light-ray.is-next .light-ray-number {
  background: var(--gold);
  transform: scale(1.08);
}
.light-ray.is-lit {
  background: radial-gradient(circle, #fff7c8, var(--gold-light));
  box-shadow:
    0 3px 0 var(--ink),
    0 0 var(--ray-glow-size, 24px) rgba(255, 216, 83, var(--ray-glow-alpha, 0.65));
}
.light-ray.is-locked {
  background: rgba(255, 255, 255, 0.58);
  color: rgba(42, 26, 14, 0.54);
  box-shadow: 0 3px 0 rgba(42, 26, 14, 0.5);
}
.light-ray.is-locked .light-ray-icon {
  opacity: 0.48;
  filter: grayscale(0.3);
}
.light-ray.is-lit::before {
  opacity: var(--ray-shine-alpha, 0.5);
  transform: scale(var(--ray-shine-scale, 0.95)) rotate(var(--ray-shine-rotate, 0deg));
  animation: light-ray-soft-spin 3.8s linear infinite;
}
.light-ray.is-lit::after {
  opacity: 1;
}
.light-grid.is-complete .light-ray.is-lit {
  animation: light-ray-calm-complete 2.4s ease-in-out infinite;
  animation-delay: var(--ray-complete-delay, 0ms);
}
.light-ray.is-just-lit {
  animation: light-ray-pop 560ms ease-out;
}
.light-ray-number {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}
.light-ray.is-lit .light-ray-number {
  background: var(--gold);
  color: var(--accent-deep);
}
.light-ray-icon {
  display: block;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 6px;
}
.light-ray.is-lit .light-ray-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 226, 112, 0.9));
}
.light-ray strong {
  font-size: 19px;
  line-height: 1.08;
}
@keyframes light-ray-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-4px) scale(1.04); }
}
@keyframes light-ray-soft-spin {
  to { transform: scale(var(--ray-shine-scale, 0.95)) rotate(var(--ray-shine-rotate-end, 360deg)); }
}
@keyframes light-ray-calm-complete {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
@keyframes light-completion-glow {
  0%, 100% { opacity: 0.56; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}
.guadalupe-mystery-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #1b1711;
  box-shadow: none;
  isolation: isolate;
}
.guadalupe-hud {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(14px, 2.4vw, 28px);
  color: #fff9e8;
  background:
    linear-gradient(90deg, rgba(17, 14, 10, 0.84), rgba(40, 26, 15, 0.62)),
    var(--guadalupe-bg);
  background-size: cover;
  background-position: center 36%;
  border-bottom: 2px solid rgba(255, 248, 230, 0.28);
  position: relative;
  z-index: 5;
}
.guadalupe-kicker,
.guadalupe-hud h2 {
  margin: 0;
}
.guadalupe-kicker {
  color: #ffe69a;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 12px;
}
.guadalupe-hud h2 {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 0.95;
}
.guadalupe-count {
  min-width: 84px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 9px 12px;
  border: 2px solid rgba(255, 248, 230, 0.76);
  border-radius: var(--rad-sm);
  background: rgba(17, 14, 10, 0.52);
  color: #fff9e8;
}
.guadalupe-count strong {
  font-size: 32px;
  line-height: 1;
}
.guadalupe-count span {
  color: #ffe69a;
  font-weight: 900;
}
.guadalupe-world {
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #191711;
}
.guadalupe-backdrop,
.guadalupe-atmosphere {
  position: absolute;
  inset: 0;
}
.guadalupe-backdrop {
  background-image: var(--guadalupe-bg);
  background-size: cover;
  background-position: var(--guadalupe-bg-position, center);
  transform: scale(var(--guadalupe-bg-scale, 1));
  transition: background-position 620ms ease, transform 620ms ease;
}
.guadalupe-atmosphere {
  background:
    linear-gradient(180deg, rgba(17, 14, 10, 0.1) 0%, transparent 28%, rgba(17, 14, 10, 0.42) 100%),
    radial-gradient(circle at 50% 20%, rgba(255, 238, 164, 0.22), transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(20, 15, 8, 0.48), transparent 55%);
  pointer-events: none;
  z-index: 2;
}
.guadalupe-actor {
  position: absolute;
  left: var(--actor-x);
  top: var(--actor-y);
  width: clamp(86px, 9vw, 148px);
  aspect-ratio: 1;
  transform: translate(-50%, -100%) scale(var(--actor-scale));
  transform-origin: 50% 100%;
  will-change: transform;
  background-repeat: no-repeat;
  background-size: 400% 400%;
  filter: drop-shadow(0 15px 12px rgba(21, 13, 7, 0.42));
  opacity: var(--actor-opacity, 1);
  pointer-events: none;
  transition: left var(--actor-move-ms, 520ms) linear, top var(--actor-move-ms, 520ms) linear, transform var(--actor-move-ms, 520ms) linear, opacity 900ms ease, filter 360ms ease;
  z-index: 4;
}
.guadalupe-actor::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 4%;
  height: 9%;
  border-radius: 50%;
  background: rgba(18, 12, 7, 0.26);
  filter: blur(2px);
  transform: scaleX(1);
  transform-origin: 50% 50%;
}
.guadalupe-actor.is-mary {
  width: clamp(112px, 12vw, 194px);
  filter: drop-shadow(0 0 18px rgba(255, 226, 126, 0.52)) drop-shadow(0 17px 14px rgba(21, 13, 7, 0.38));
}
.guadalupe-actor.is-priest {
  width: clamp(84px, 8.6vw, 136px);
}
.guadalupe-actor.is-walking {
  animation: none;
}
.guadalupe-actor.is-walking::after {
  animation: guadalupe-step-shadow 360ms ease-in-out infinite;
}
.guadalupe-actor.is-controlled-walking {
  transition: left 0s linear, top 0s linear, transform 0s linear, opacity 900ms ease, filter 220ms ease;
}
.guadalupe-actor.is-apparition {
  animation: guadalupe-apparition-float 3.4s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(255, 231, 132, 0.62)) drop-shadow(0 17px 14px rgba(21, 13, 7, 0.32));
}
.guadalupe-actor.is-apparition.is-veiled {
  filter: blur(2px) drop-shadow(0 0 18px rgba(255, 231, 132, 0.48));
}
.guadalupe-game-hud {
  position: absolute;
  left: clamp(12px, 2vw, 24px);
  top: clamp(10px, 2vw, 20px);
  width: min(390px, calc(100% - 24px));
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 248, 230, 0.56);
  border-radius: var(--rad-sm);
  background: rgba(17, 14, 10, 0.54);
  color: #fff9e8;
  z-index: 8;
  backdrop-filter: blur(8px);
}
.guadalupe-game-hud span,
.guadalupe-gamebar-main > span {
  color: #ffe69a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.guadalupe-game-hud strong,
.guadalupe-gamebar-main > strong {
  line-height: 1.2;
}
.guadalupe-quest-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.guadalupe-quest-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 248, 230, 0.38);
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.14);
  color: rgba(255, 249, 232, 0.82);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.guadalupe-quest-step.is-next {
  border-color: rgba(255, 230, 154, 0.82);
  background: rgba(255, 230, 154, 0.24);
  color: #fff9e8;
}
.guadalupe-quest-step.is-complete {
  background: #ffe69a;
  color: var(--ink);
}
.guadalupe-trail-meter {
  position: absolute;
  top: clamp(10px, 2vw, 20px);
  right: clamp(12px, 2vw, 24px);
  width: min(250px, calc(100% - 48px));
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 248, 230, 0.48);
  border-radius: var(--rad-sm);
  background: rgba(17, 14, 10, 0.52);
  color: #fff9e8;
  z-index: 8;
  backdrop-filter: blur(8px);
}
.guadalupe-trail-meter span {
  color: #ffe69a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.guadalupe-trail-meter strong {
  font-size: 15px;
  line-height: 1.05;
}
.guadalupe-trail-meter i {
  height: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 230, 0.48);
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.22);
}
.guadalupe-trail-meter b {
  display: block;
  height: 100%;
  min-width: 6px;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb84c, #fff0a3);
  transition: width 180ms ease;
}
.guadalupe-search-glow {
  position: absolute;
  left: var(--glow-x);
  top: var(--glow-y);
  width: clamp(80px, 10vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 132, 0.34), rgba(255, 231, 132, 0.12) 42%, transparent 68%);
  transform: translate(-50%, -50%);
  opacity: var(--glow-opacity, 0.56);
  pointer-events: none;
  z-index: 3;
  animation: guadalupe-search-pulse 1.8s ease-in-out infinite;
}
.guadalupe-search-glow.is-fatima {
  width: clamp(118px, 16vw, 180px);
  background: radial-gradient(circle, rgba(255, 252, 176, 0.72), rgba(88, 132, 216, 0.46) 42%, rgba(38, 58, 113, 0.34) 64%, transparent 82%);
  filter: drop-shadow(0 0 18px rgba(255, 248, 198, 0.84));
}
.guadalupe-sign-gesture {
  appearance: none;
  position: absolute;
  left: var(--sign-x);
  top: var(--sign-y);
  min-width: 92px;
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 248, 230, 0.86);
  border-radius: var(--rad-sm);
  background: rgba(42, 26, 14, 0.64);
  color: #fff9e8;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transform: translate(-50%, -50%);
  z-index: 116;
  touch-action: none;
  box-shadow: 0 10px 24px rgba(17, 14, 10, 0.34), 0 0 0 5px rgba(255, 230, 154, 0.16);
  user-select: none;
}
.guadalupe-sign-gesture::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(255, 230, 154, 0.48);
  border-radius: inherit;
  animation: guadalupe-hotspot-ready 1.3s ease-in-out infinite;
}
.guadalupe-sign-gesture strong {
  position: relative;
  z-index: 2;
  font-size: 17px;
  line-height: 1;
}
.guadalupe-sign-gesture em {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}
.guadalupe-sign-gesture.is-ground-taps {
  border-radius: 999px;
}
.guadalupe-sign-water {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: var(--water-width, 24px);
  height: var(--water-height, 10px);
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(180deg, rgba(145, 229, 255, 0.78), rgba(42, 142, 205, 0.88));
  filter: drop-shadow(0 0 12px rgba(164, 229, 255, 0.72));
  opacity: var(--sign-opacity, 0.28);
  transform: translateX(-50%);
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
  z-index: 1;
}
.guadalupe-sign-gesture.is-sky-drag {
  width: min(176px, 42vw);
  min-height: 78px;
  border-radius: 999px;
  background: rgba(28, 53, 111, 0.58);
}
.guadalupe-sign-sun {
  position: relative;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff9bd 0 28%, #ffd64f 29% 58%, rgba(255, 172, 54, 0.96) 59% 100%);
  box-shadow: 0 0 24px rgba(255, 244, 169, 0.88), 0 0 42px rgba(255, 180, 52, 0.54);
  transform: rotate(var(--sun-rotation, 0deg));
  transition: transform 120ms ease;
  z-index: 2;
}
.guadalupe-sign-sun::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(255, 244, 169, 0.92), transparent 12%, rgba(255, 206, 76, 0.82) 24%, transparent 36%, rgba(255, 244, 169, 0.82) 48%, transparent 60%, rgba(255, 206, 76, 0.76) 72%, transparent 84%, rgba(255, 244, 169, 0.84));
  z-index: -1;
}
.guadalupe-sign-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(90px, 12vh, 124px);
  width: min(420px, calc(100% - 24px));
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 248, 230, 0.86);
  border-radius: var(--rad-sm);
  background: rgba(17, 14, 10, 0.68);
  color: #fff9e8;
  text-align: center;
  transform: translateX(-50%);
  z-index: 126;
  box-shadow: 0 12px 28px rgba(17, 14, 10, 0.34);
}
.guadalupe-sign-caption span {
  color: #ffe69a;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}
.guadalupe-sign-caption strong {
  font-size: 15px;
  line-height: 1.2;
}
.guadalupe-sign-caption.is-modal {
  position: static;
  width: auto;
  padding: 9px 10px;
  background: rgba(138, 47, 31, 0.1);
  border-color: rgba(138, 47, 31, 0.28);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}
.guadalupe-room-hotspot {
  appearance: none;
  position: absolute;
  left: var(--spot-x);
  top: var(--spot-y);
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 76px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff9e8;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  z-index: 110;
}
.guadalupe-room-hotspot i {
  display: block;
  width: clamp(58px, 6.4vw, 88px);
  height: clamp(24px, 3vw, 38px);
  border: 3px solid rgba(255, 230, 154, 0.92);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 231, 132, 0.42), rgba(255, 231, 132, 0.12) 56%, transparent 78%);
  box-shadow: 0 0 18px rgba(255, 230, 154, 0.55), inset 0 0 14px rgba(255, 230, 154, 0.4);
  animation: guadalupe-marker-pulse 1.6s ease-in-out infinite;
}
.guadalupe-room-hotspot span {
  padding: 5px 11px;
  border: 2px solid rgba(255, 248, 230, 0.82);
  border-radius: 999px;
  background: rgba(42, 26, 14, 0.62);
  box-shadow: 0 8px 18px rgba(17, 14, 10, 0.26);
  backdrop-filter: blur(6px);
}
.guadalupe-room-hotspot:hover span,
.guadalupe-room-hotspot.is-active span,
.guadalupe-room-hotspot.is-near span {
  background: #ffe69a;
  color: var(--ink);
  border-color: var(--ink);
}
.guadalupe-room-hotspot.is-near i {
  border-color: #fff8e6;
  box-shadow: 0 0 26px rgba(255, 240, 180, 0.9), inset 0 0 18px rgba(255, 240, 180, 0.62);
  animation-duration: 0.9s;
}
.guadalupe-room-hotspot:disabled,
.guadalupe-tilma-find:disabled {
  cursor: wait;
  opacity: 0.72;
}
.guadalupe-room-hotspot.is-complete i {
  border-color: rgba(255, 230, 154, 0.5);
  background: radial-gradient(ellipse at center, rgba(255, 230, 154, 0.16), transparent 70%);
  box-shadow: none;
  animation: none;
  opacity: 0.6;
}
.guadalupe-room-hotspot.is-complete span {
  border-color: #ffe69a;
  background: rgba(255, 230, 154, 0.84);
  color: var(--ink);
}
.guadalupe-room-hotspot.is-complete span::before {
  content: "✓ ";
}
.guadalupe-interact-prompt {
  appearance: none;
  position: absolute;
  left: var(--prompt-x);
  top: calc(var(--prompt-y) - 9%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid rgba(255, 248, 230, 0.92);
  border-radius: 999px;
  background: rgba(17, 14, 10, 0.78);
  color: #fff9e8;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  transform: translate(-50%, -100%);
  z-index: 118;
  box-shadow: 0 10px 24px rgba(17, 14, 10, 0.4), 0 0 0 5px rgba(255, 230, 154, 0.18);
  backdrop-filter: blur(6px);
  animation: guadalupe-prompt-bob 1.4s ease-in-out infinite;
}
.guadalupe-interact-prompt kbd {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(42, 26, 14, 0.8);
  border-radius: 7px;
  background: #ffe69a;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1;
}
.guadalupe-vision-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(14px, 3vw, 34px);
  background: radial-gradient(circle at 50% 42%, rgba(255, 230, 154, 0.4), rgba(20, 12, 6, 0.88) 64%);
  backdrop-filter: blur(4px);
  z-index: 210;
  animation: guadalupe-vision-fade 600ms ease both;
}
.guadalupe-vision-rays {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 200vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 240, 190, 0.36) 0deg 5deg,
    rgba(255, 240, 190, 0.02) 5deg 16deg
  );
  transform: translate(-50%, -50%);
  animation: guadalupe-vision-spin 44s linear infinite;
  pointer-events: none;
}
.guadalupe-vision-card {
  position: relative;
  width: min(460px, calc(100% - 24px));
  display: grid;
  gap: 9px;
  justify-items: center;
  padding: clamp(20px, 4vw, 30px) clamp(16px, 4vw, 26px);
  border: 2px solid rgba(255, 230, 154, 0.9);
  border-radius: var(--rad-sm);
  background: rgba(26, 17, 9, 0.9);
  color: #fff9e8;
  text-align: center;
  box-shadow: 0 24px 64px rgba(17, 14, 10, 0.6), 0 0 0 6px rgba(255, 230, 154, 0.16);
  animation: guadalupe-vision-card-in 700ms cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
.guadalupe-vision-kicker {
  color: #ffe69a;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guadalupe-vision-card h3 {
  margin: 0;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.05;
}
.guadalupe-vision-words {
  margin: 2px 0;
  font-family: "Caveat", cursive;
  font-size: clamp(25px, 5vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff3c4;
}
.guadalupe-vision-card em {
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 249, 232, 0.85);
}
.guadalupe-voice {
  display: none;
}
.guadalupe-tilma-cinematic {
  position: absolute;
  left: var(--cine-x);
  top: calc(var(--cine-y) - 2%);
  width: 0;
  display: grid;
  place-items: start center;
  transform: translate(-50%, -100%);
  z-index: 124;
  pointer-events: none;
}
.guadalupe-cine-burst {
  position: absolute;
  left: 50%;
  top: 32%;
  width: clamp(190px, 24vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 180, 0.85), rgba(255, 231, 132, 0.32) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: guadalupe-cine-burst 2.5s ease-out both;
}
.guadalupe-cine-cloak {
  position: relative;
  display: block;
  transform-origin: 50% 0%;
  animation: guadalupe-cine-unfurl 1.5s cubic-bezier(0.2, 0.85, 0.3, 1.05) both;
  filter: drop-shadow(0 0 24px rgba(255, 231, 132, 0.78)) drop-shadow(0 14px 16px rgba(21, 13, 7, 0.4));
}
.guadalupe-cine-cloak .guadalupe-tilma-cloak {
  width: clamp(110px, 12vw, 170px);
}
.guadalupe-cine-rose {
  position: absolute;
  left: 0;
  top: 40%;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(21, 13, 7, 0.45));
  opacity: 0;
  animation: guadalupe-cine-rose-fall 1.7s cubic-bezier(0.3, 0.1, 0.6, 1) both;
  animation-delay: var(--rose-delay, 0.6s);
}
@keyframes guadalupe-cine-unfurl {
  0% {
    transform: scaleY(0.12) scaleX(0.6);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: scaleY(1) scaleX(1);
    opacity: 1;
  }
}
@keyframes guadalupe-cine-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}
@keyframes guadalupe-cine-rose-fall {
  0% {
    transform: translate(-50%, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--rose-dx, 0px)), var(--rose-fall, 110px)) rotate(var(--rose-spin, 200deg));
    opacity: 1;
  }
}
.guadalupe-rose-pickup {
  appearance: none;
  position: absolute;
  left: var(--rose-x);
  top: var(--rose-y);
  display: grid;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 108;
}
.guadalupe-rose-pickup i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(46px, 5.4vw, 70px);
  height: clamp(20px, 2.6vw, 30px);
  border: 3px solid rgba(255, 158, 184, 0.92);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 170, 196, 0.4), rgba(255, 170, 196, 0.1) 56%, transparent 78%);
  box-shadow: 0 0 16px rgba(255, 158, 184, 0.6), inset 0 0 12px rgba(255, 158, 184, 0.4);
  transform: translate(-50%, -28%);
  animation: guadalupe-marker-pulse 1.5s ease-in-out infinite;
}
.guadalupe-rose-pickup span {
  position: relative;
  z-index: 2;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(21, 13, 7, 0.45));
}
.guadalupe-rose-pickup.is-picked {
  pointer-events: none;
}
.guadalupe-rose-pickup.is-picked i {
  animation: none;
  opacity: 0;
  transition: opacity 200ms ease;
}
.guadalupe-rose-pickup.is-picked span {
  animation: guadalupe-rose-pop 700ms cubic-bezier(0.2, 0.85, 0.3, 1.05) both;
}
@keyframes guadalupe-rose-pop {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  35% {
    transform: scale(1.65) translateY(-14px);
    opacity: 1;
  }
  100% {
    transform: scale(0.4) translateY(-52px);
    opacity: 0;
  }
}
.guadalupe-sign-splash {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(231, 249, 255, 0.95), rgba(145, 229, 255, 0.65) 55%, transparent 75%);
  animation: guadalupe-splash-pop 650ms ease-out both;
  pointer-events: none;
  z-index: 3;
}
.guadalupe-sign-splash::before,
.guadalupe-sign-splash::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(186, 236, 255, 0.92);
  animation: guadalupe-splash-drop 650ms ease-out both;
}
.guadalupe-sign-splash::before {
  left: -10px;
  --drop-dx: -16px;
}
.guadalupe-sign-splash::after {
  right: -10px;
  --drop-dx: 16px;
}
@keyframes guadalupe-splash-pop {
  0% {
    transform: translateX(-50%) scale(0.4);
    opacity: 0;
  }
  30% {
    transform: translateX(-50%) scale(2.4);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(3.4);
    opacity: 0;
  }
}
@keyframes guadalupe-splash-drop {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--drop-dx, 14px), -26px);
    opacity: 0;
  }
}
.guadalupe-spring-flow {
  position: absolute;
  left: var(--sign-x);
  top: var(--sign-y);
  width: clamp(86px, 10vw, 132px);
  height: clamp(34px, 4.4vw, 54px);
  transform: translate(-50%, -40%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.66), transparent 36%),
    radial-gradient(ellipse at center, rgba(145, 229, 255, 0.8), rgba(42, 142, 205, 0.78) 62%, rgba(26, 96, 148, 0.5) 82%, transparent 95%);
  filter: drop-shadow(0 0 16px rgba(164, 229, 255, 0.66));
  pointer-events: none;
  z-index: 6;
  animation: guadalupe-spring-shimmer 2.6s ease-in-out infinite;
}
.guadalupe-spring-flow i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  height: 30%;
  border: 2px solid rgba(212, 241, 255, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: guadalupe-spring-ripple 2.4s ease-out infinite;
}
.guadalupe-spring-flow i:nth-child(2) {
  animation-delay: 0.8s;
}
.guadalupe-spring-flow i:nth-child(3) {
  animation-delay: 1.6s;
}
@keyframes guadalupe-spring-shimmer {
  0%,
  100% {
    transform: translate(-50%, -40%) scale(1);
  }
  50% {
    transform: translate(-50%, -40%) scale(1.06);
  }
}
@keyframes guadalupe-spring-ripple {
  0% {
    width: 24%;
    height: 24%;
    opacity: 0.9;
  }
  100% {
    width: 104%;
    height: 104%;
    opacity: 0;
  }
}
.guadalupe-sun-rest {
  position: absolute;
  left: var(--sign-x);
  top: var(--sign-y);
  width: clamp(44px, 5.4vw, 64px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9bd 0 28%, #ffd64f 29% 58%, rgba(255, 172, 54, 0.96) 59% 100%);
  box-shadow: 0 0 24px rgba(255, 244, 169, 0.88), 0 0 42px rgba(255, 180, 52, 0.54);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
  animation: guadalupe-sun-rest-spin 9s linear infinite;
}
.guadalupe-sun-rest::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(255, 244, 169, 0.85), transparent 12%, rgba(255, 206, 76, 0.75) 24%, transparent 36%, rgba(255, 244, 169, 0.75) 48%, transparent 60%, rgba(255, 206, 76, 0.7) 72%, transparent 84%, rgba(255, 244, 169, 0.78));
  z-index: -1;
}
@keyframes guadalupe-sun-rest-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.guadalupe-sun-cinematic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 124;
}
.guadalupe-sun-cine-sky {
  position: absolute;
  inset: 0;
  animation: guadalupe-sun-sky-wash 3s ease-in-out both;
}
.guadalupe-sun-cine-sun {
  position: absolute;
  left: var(--cine-sun-x, 70%);
  top: var(--cine-sun-y, 26%);
  width: clamp(72px, 9vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdda 0 26%, #ffd64f 27% 56%, rgba(255, 168, 48, 0.97) 57% 100%);
  box-shadow: 0 0 36px rgba(255, 244, 169, 0.95), 0 0 78px rgba(255, 180, 52, 0.7);
  animation: guadalupe-sun-dance 3s cubic-bezier(0.45, 0.05, 0.4, 1) both;
}
.guadalupe-sun-cine-sun::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(255, 120, 120, 0.8), rgba(255, 220, 120, 0.8) 18%, rgba(150, 235, 160, 0.78) 36%, rgba(140, 200, 255, 0.8) 54%, rgba(210, 150, 255, 0.78) 72%, rgba(255, 160, 200, 0.8) 88%, rgba(255, 120, 120, 0.8));
  filter: blur(1px);
  z-index: -1;
}
@keyframes guadalupe-sun-dance {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.85);
  }
  22% {
    transform: translate(calc(-50% - 64px), calc(-50% + 70px)) rotate(240deg) scale(1.05);
  }
  48% {
    transform: translate(calc(-50% + 58px), calc(-50% + 150px)) rotate(480deg) scale(1.18);
  }
  74% {
    transform: translate(calc(-50% - 26px), calc(-50% + 54px)) rotate(700deg) scale(1.02);
  }
  100% {
    transform: translate(-50%, -50%) rotate(900deg) scale(1);
  }
}
@keyframes guadalupe-sun-sky-wash {
  0% {
    background: rgba(255, 244, 169, 0);
  }
  20% {
    background: rgba(255, 196, 150, 0.3);
  }
  45% {
    background: rgba(168, 220, 255, 0.28);
  }
  70% {
    background: rgba(214, 178, 255, 0.26);
  }
  100% {
    background: rgba(255, 244, 169, 0);
  }
}
.guadalupe-sun-cine-fleck {
  position: absolute;
  left: var(--cine-sun-x, 70%);
  top: var(--cine-sun-y, 26%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 230, 154, 0.85) 60%, transparent 80%);
  filter: hue-rotate(calc(var(--fleck-hue, 0) * 1deg)) drop-shadow(0 0 8px rgba(255, 240, 180, 0.8));
  opacity: 0;
  animation: guadalupe-sun-fleck-fall 1.9s ease-in both;
  animation-delay: var(--fleck-delay, 0.4s);
}
@keyframes guadalupe-sun-fleck-fall {
  0% {
    transform: translate(-50%, -50%);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--fleck-dx, 0px)), calc(-50% + var(--fleck-fall, 180px)));
    opacity: 0;
  }
}
@keyframes guadalupe-marker-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}
@keyframes guadalupe-prompt-bob {
  0%,
  100% {
    transform: translate(-50%, -100%);
  }
  50% {
    transform: translate(-50%, calc(-100% - 7px));
  }
}
@keyframes guadalupe-vision-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes guadalupe-vision-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes guadalupe-vision-card-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.guadalupe-tilma-find {
  appearance: none;
  position: absolute;
  left: var(--tilma-x);
  top: var(--tilma-y);
  display: grid;
  place-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #fff9e8;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  z-index: 112;
  filter: drop-shadow(0 12px 16px rgba(17, 14, 10, 0.45));
}
.guadalupe-tilma-find > span:last-child {
  padding: 4px 8px;
  border: 2px solid rgba(255, 248, 230, 0.82);
  border-radius: 999px;
  background: rgba(42, 26, 14, 0.58);
}
.guadalupe-tilma-find .guadalupe-tilma-cloak {
  animation: guadalupe-tilma-float 2.6s ease-in-out infinite;
}
.guadalupe-tilma-find.is-drag-gesture {
  touch-action: none;
  user-select: none;
}
.guadalupe-tilma-find.is-drag-gesture::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 12px);
  width: 3px;
  height: var(--tilma-drag-height, 24px);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff9e8, #ffe69a);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(255, 230, 154, 0.64);
}
.guadalupe-dpad {
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 22px);
  display: grid;
  grid-template-columns: repeat(3, 54px);
  grid-template-areas:
    ". up ."
    "left down right";
  gap: 7px;
  z-index: 100;
  touch-action: none;
}
.guadalupe-dpad button {
  appearance: none;
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 248, 230, 0.78);
  border-radius: var(--rad-sm);
  background: rgba(42, 26, 14, 0.62);
  color: #fff9e8;
  box-shadow: 0 10px 22px rgba(17, 14, 10, 0.3);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(8px);
  user-select: none;
}
.guadalupe-dpad button:hover,
.guadalupe-dpad button:focus-visible,
.guadalupe-dpad button:active {
  background: #ffe69a;
  border-color: var(--ink);
  color: var(--ink);
  outline: none;
}
.guadalupe-dpad button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.guadalupe-dpad .is-up {
  grid-area: up;
}
.guadalupe-dpad .is-left {
  grid-area: left;
}
.guadalupe-dpad .is-down {
  grid-area: down;
}
.guadalupe-dpad .is-right {
  grid-area: right;
}
.guadalupe-tilma-cloak {
  width: clamp(74px, 8vw, 116px);
  aspect-ratio: 0.72;
  display: block;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(129, 81, 32, 0.74);
  border-radius: 36% 36% 12% 12%;
  background:
    linear-gradient(100deg, rgba(105, 62, 21, 0.28), transparent 20%, rgba(255, 255, 255, 0.18) 42%, transparent 62%, rgba(85, 47, 18, 0.22)),
    linear-gradient(180deg, #f8e6b0 0%, #d0a654 58%, #9e6529 100%);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
  transform: perspective(460px) rotateY(-15deg) rotateX(5deg);
  transform-style: preserve-3d;
  box-shadow: inset 0 0 18px rgba(255, 250, 210, 0.42), 0 14px 22px rgba(17, 14, 10, 0.36);
}
.guadalupe-tilma-cloak.is-large {
  width: clamp(178px, 28vw, 290px);
  animation: guadalupe-tilma-turn 4.4s ease-in-out infinite;
}
.guadalupe-tilma-fold {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22%;
  background: linear-gradient(90deg, rgba(70, 39, 14, 0.32), transparent);
  mix-blend-mode: multiply;
  opacity: 0.76;
}
.guadalupe-tilma-fold.is-left {
  left: 14%;
}
.guadalupe-tilma-fold.is-right {
  right: 14%;
  transform: scaleX(-1);
}
.guadalupe-tilma-image {
  position: absolute;
  left: 21%;
  right: 21%;
  top: 8%;
  bottom: 9%;
  display: block;
  overflow: hidden;
  border-radius: 50% 50% 46% 46%;
  background:
    url("../images/catholic-kids/games/guadalupe/guadalupe-tilma-image-v2.png") center / contain no-repeat,
    radial-gradient(ellipse at 50% 52%, rgba(255, 239, 139, 0.48), transparent 62%);
  box-shadow: 0 0 0 2px rgba(88, 51, 20, 0.24), 0 0 24px rgba(255, 221, 110, 0.58);
  transform: translateZ(18px);
}
.guadalupe-tilma-cloak.is-revealing .guadalupe-tilma-image {
  clip-path: inset(var(--tilma-reveal-clip, 72%) 0 0 0);
  opacity: var(--tilma-reveal-opacity, 0.16);
  transition: clip-path 160ms ease, opacity 160ms ease;
}
.guadalupe-tilma-cloak.is-revealing .guadalupe-tilma-fold.is-left {
  transform: translateX(var(--tilma-fold-shift, 0px));
}
.guadalupe-tilma-cloak.is-revealing .guadalupe-tilma-fold.is-right {
  transform: scaleX(-1) translateX(var(--tilma-fold-shift, 0px));
}
.guadalupe-tilma-image > span {
  display: none;
}
.guadalupe-tilma-mantle,
.guadalupe-tilma-face,
.guadalupe-tilma-hair,
.guadalupe-tilma-halo,
.guadalupe-tilma-robe,
.guadalupe-tilma-hands,
.guadalupe-tilma-sash,
.guadalupe-tilma-moon,
.guadalupe-tilma-angel,
.guadalupe-tilma-rays {
  position: absolute;
  display: block;
}
.guadalupe-tilma-halo {
  left: 35%;
  top: 4%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 146, 0.92) 0 42%, rgba(255, 210, 78, 0.34) 43% 70%, transparent 71%);
  z-index: 4;
}
.guadalupe-tilma-mantle {
  left: 18%;
  right: 18%;
  top: 15%;
  bottom: 16%;
  border-radius: 50% 50% 38% 38%;
  background:
    radial-gradient(circle at 28% 25%, #f4e996 0 2.4%, transparent 2.8%),
    radial-gradient(circle at 67% 29%, #f4e996 0 2.1%, transparent 2.5%),
    radial-gradient(circle at 22% 42%, #f4e996 0 2.1%, transparent 2.5%),
    radial-gradient(circle at 74% 48%, #f4e996 0 2.2%, transparent 2.6%),
    radial-gradient(circle at 35% 62%, #f4e996 0 2.1%, transparent 2.5%),
    radial-gradient(circle at 64% 70%, #f4e996 0 2.2%, transparent 2.6%),
    radial-gradient(ellipse at 50% 24%, transparent 0 12%, #265f8f 13% 33%, transparent 34%),
    linear-gradient(180deg, #1c628f 0%, #10446f 68%, #0c2e52 100%);
  border: 1px solid rgba(9, 47, 76, 0.48);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.22);
  z-index: 3;
}
.guadalupe-tilma-robe {
  left: 34%;
  right: 34%;
  top: 35%;
  bottom: 16%;
  border-radius: 42% 42% 30% 30%;
  background:
    linear-gradient(90deg, rgba(118, 30, 40, 0.22), transparent 30% 70%, rgba(118, 30, 40, 0.22)),
    linear-gradient(180deg, #ce6c68 0%, #b9344c 78%, #8f263c 100%);
  z-index: 5;
}
.guadalupe-tilma-face {
  left: 38%;
  top: 14%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #edb374;
  box-shadow: 0 7px 0 1px #2c241d;
  z-index: 7;
}
.guadalupe-tilma-hair {
  left: 34%;
  top: 12%;
  width: 32%;
  aspect-ratio: 0.76;
  border-radius: 48% 48% 40% 40%;
  background:
    radial-gradient(circle at 50% 20%, transparent 0 23%, #241a16 24% 43%, transparent 44%),
    linear-gradient(180deg, #2c211c, #16100e);
  z-index: 6;
}
.guadalupe-tilma-hands {
  left: 39%;
  top: 42%;
  width: 22%;
  height: 16%;
  z-index: 8;
}
.guadalupe-tilma-hands::before,
.guadalupe-tilma-hands::after {
  content: "";
  position: absolute;
  top: 8%;
  width: 42%;
  height: 78%;
  border-radius: 50% 50% 40% 40%;
  background: #edb374;
  border: 1px solid rgba(88, 51, 20, 0.25);
}
.guadalupe-tilma-hands::before {
  left: 6%;
  transform: rotate(28deg);
}
.guadalupe-tilma-hands::after {
  right: 6%;
  transform: rotate(-28deg);
}
.guadalupe-tilma-sash {
  left: 38%;
  top: 55%;
  width: 25%;
  height: 5%;
  border-radius: 999px;
  background: #202016;
  transform: rotate(-8deg);
  z-index: 9;
}
.guadalupe-tilma-moon {
  left: 30%;
  bottom: 6%;
  width: 40%;
  height: 12%;
  border-radius: 0 0 999px 999px;
  background: #d5c8b8;
  box-shadow: inset 0 -4px 0 rgba(90, 82, 73, 0.25);
  z-index: 8;
}
.guadalupe-tilma-moon::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 32%;
  height: 90%;
  border-radius: 0 0 999px 999px;
  background: #f8e9b1;
}
.guadalupe-tilma-angel {
  left: 35%;
  bottom: 0%;
  width: 30%;
  height: 13%;
  border-radius: 50% 50% 20% 20%;
  background:
    radial-gradient(circle at 50% 30%, #e7a36a 0 16%, transparent 17%),
    linear-gradient(115deg, transparent 0 30%, #c94d48 31% 51%, transparent 52%),
    linear-gradient(65deg, transparent 0 30%, #2c6e94 31% 51%, transparent 52%);
  z-index: 9;
}
.guadalupe-tilma-rays {
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 52%, transparent 0 40%, rgba(92, 57, 18, 0.1) 41% 100%);
  mix-blend-mode: multiply;
  opacity: 0.38;
  pointer-events: none;
  z-index: 10;
}
.guadalupe-tilma-modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(17, 14, 10, 0.68);
  backdrop-filter: blur(5px);
  z-index: 200;
}
.guadalupe-tilma-modal-card {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: minmax(190px, 0.58fr) minmax(260px, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  border: 2px solid rgba(255, 248, 230, 0.82);
  border-radius: var(--rad-sm);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 230, 154, 0.24), transparent 34%),
    linear-gradient(135deg, #fff8e6, #f2d99b);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(17, 14, 10, 0.42);
}
.guadalupe-tilma-modal-art {
  min-height: 300px;
  display: grid;
  place-items: center;
  perspective: 760px;
}
.guadalupe-tilma-modal-copy {
  display: grid;
  gap: 10px;
}
.guadalupe-tilma-modal-copy span {
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.guadalupe-tilma-modal-copy h3 {
  margin: 0;
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.95;
}
.guadalupe-tilma-modal-copy p {
  margin: 0;
  font-weight: 760;
  line-height: 1.35;
}
.guadalupe-tilma-modal-copy .guadalupe-controls {
  justify-content: flex-start;
  margin-top: 4px;
}
.guadalupe-tilma-close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.guadalupe-place-card {
  position: absolute;
  left: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  max-width: min(360px, calc(100% - 24px));
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 2px solid rgba(255, 248, 230, 0.78);
  border-radius: var(--rad-sm);
  background: rgba(17, 14, 10, 0.58);
  color: #fff9e8;
  z-index: 6;
  backdrop-filter: blur(8px);
}
.guadalupe-place-card span {
  color: #ffe69a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.guadalupe-place-card strong {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 0.95;
}
.guadalupe-scene-dots {
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  display: flex;
  gap: 7px;
  padding: 7px;
  border: 2px solid rgba(255, 248, 230, 0.54);
  border-radius: 999px;
  background: rgba(17, 14, 10, 0.5);
  z-index: 7;
  backdrop-filter: blur(8px);
}
.guadalupe-scene-dots button {
  appearance: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 248, 230, 0.74);
  border-radius: 50%;
  background: rgba(255, 248, 230, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.guadalupe-scene-dots button.is-active {
  background: #ffe69a;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 248, 230, 0.3);
}
.guadalupe-dialogue {
  display: grid;
  grid-template-columns: clamp(50px, 5vw, 72px) minmax(0, 1fr) auto;
  gap: clamp(10px, 1.6vw, 16px);
  align-items: center;
  padding: clamp(10px, 1.6vw, 14px) clamp(14px, 2.4vw, 24px);
  border-top: 2px solid rgba(42, 26, 14, 0.2);
  background:
    linear-gradient(90deg, rgba(255, 248, 230, 0.97), rgba(255, 238, 197, 0.94));
  color: var(--ink);
  position: relative;
  z-index: 8;
}
.guadalupe-dialogue.is-popup {
  position: absolute;
  left: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  max-width: min(900px, calc(100% - 24px));
  border: 2px solid rgba(42, 26, 14, 0.34);
  border-radius: var(--rad-sm);
  box-shadow: 0 18px 42px rgba(17, 14, 10, 0.28);
  z-index: 120;
}
.guadalupe-popup-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.guadalupe-popup-close::before {
  content: "X";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
}
.guadalupe-dialogue-portrait {
  width: clamp(50px, 5vw, 72px);
  aspect-ratio: 288 / 768;
  justify-self: center;
  background-repeat: no-repeat;
  background-size: 800% 100%;
  filter: drop-shadow(0 7px 8px rgba(42, 26, 14, 0.26));
}
.guadalupe-dialogue-copy {
  display: grid;
  gap: 5px;
}
.guadalupe-dialogue-copy span {
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.guadalupe-dialogue-copy p {
  margin: 0;
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.02;
}
.guadalupe-dialogue-copy em {
  max-width: 72ch;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 760;
  line-height: 1.28;
}
.guadalupe-dialogue-find {
  max-width: 70ch;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  margin-top: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(138, 47, 31, 0.24);
  border-radius: var(--rad-sm);
  background: rgba(255, 255, 255, 0.42);
}
.guadalupe-dialogue-find span {
  grid-row: span 2;
  align-self: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(138, 47, 31, 0.1);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.guadalupe-dialogue-find strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.1;
}
.guadalupe-dialogue-find p {
  margin: 0;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}
.guadalupe-dialogue-find.is-tilma {
  margin-top: 2px;
  background: rgba(255, 248, 230, 0.62);
}
.guadalupe-voice {
  width: min(360px, 100%);
  height: 34px;
  margin-top: 2px;
  display: block;
  accent-color: #8a2f1f;
}
.guadalupe-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.guadalupe-controls .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.guadalupe-controls .btn-primary {
  background: #ffd96f;
  color: var(--ink);
}
.guadalupe-controls .btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}
.guadalupe-gamebar {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(14px, 2.4vw, 24px);
  border-top: 2px solid rgba(42, 26, 14, 0.2);
  background: linear-gradient(90deg, rgba(255, 248, 230, 0.97), rgba(255, 238, 197, 0.94));
  color: var(--ink);
  position: relative;
  z-index: 8;
}
.guadalupe-gamebar > div {
  display: grid;
  gap: 3px;
}
.guadalupe-gamebar-main {
  min-width: 0;
}
.guadalupe-token-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.guadalupe-token {
  width: 42px;
  min-height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42, 26, 14, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(42, 26, 14, 0.66);
  font-size: 8px;
  font-weight: 1000;
  letter-spacing: 0;
}
.guadalupe-token.is-active {
  border-color: rgba(138, 47, 31, 0.72);
  background: rgba(255, 217, 111, 0.5);
}
.guadalupe-token.is-found {
  border-color: rgba(42, 26, 14, 0.52);
  background: #ffd96f;
  color: var(--ink);
}
.guadalupe-token.is-found.is-active {
  animation: guadalupe-token-pop 760ms ease-out 2;
  box-shadow: 0 0 0 3px rgba(138, 47, 31, 0.16);
}
.guadalupe-gamebar .btn-primary:not(:disabled) {
  animation: guadalupe-next-ready 1.45s ease-in-out infinite;
}
@keyframes guadalupe-soft-step {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25% { translate: 0 -1px; rotate: -0.35deg; }
  50% { translate: 0 0; rotate: 0deg; }
  75% { translate: 0 -1px; rotate: 0.35deg; }
}
@keyframes guadalupe-step-shadow {
  0%, 100% { transform: scaleX(1); opacity: 0.82; }
  50% { transform: scaleX(0.9); opacity: 0.58; }
}
@keyframes guadalupe-apparition-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -13px; }
}
@keyframes guadalupe-search-pulse {
  0%, 100% { scale: 0.92; }
  50% { scale: 1.08; }
}
@keyframes guadalupe-hotspot-ready {
  0%, 100% { opacity: 0.46; box-shadow: 0 0 0 0 rgba(255, 230, 154, 0.36); }
  50% { opacity: 0.92; box-shadow: 0 0 0 7px rgba(255, 230, 154, 0.16); }
}
@keyframes guadalupe-token-pop {
  0% { scale: 0.92; }
  44% { scale: 1.12; }
  100% { scale: 1; }
}
@keyframes guadalupe-next-ready {
  0%, 100% { box-shadow: 0 3px 0 var(--ink), 0 0 0 0 rgba(138, 47, 31, 0.16); }
  50% { box-shadow: 0 3px 0 var(--ink), 0 0 0 5px rgba(138, 47, 31, 0.12); }
}
@keyframes guadalupe-tilma-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes guadalupe-tilma-turn {
  0%, 100% { transform: perspective(520px) rotateY(-16deg) rotateX(5deg); }
  50% { transform: perspective(520px) rotateY(14deg) rotateX(2deg); }
}
.word-family-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.76fr) minmax(330px, 1.24fr);
  gap: 14px;
  align-items: stretch;
}
.word-token-bank,
.word-family-zones {
  display: grid;
  gap: 10px;
}
.word-token-bank {
  align-content: start;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  min-height: 350px;
  padding: 10px;
  border: 2px dashed rgba(42, 26, 14, 0.28);
  border-radius: var(--rad-md);
  background: rgba(255, 255, 255, 0.5);
}
.word-token {
  appearance: none;
  min-height: 118px;
  display: grid;
  gap: 6px;
  place-items: center;
  padding: 9px;
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  cursor: grab;
  font: inherit;
  font-weight: 900;
  text-align: center;
  transition: transform 120ms ease, background 160ms ease;
}
.word-token:hover,
.word-token.is-selected {
  transform: translateY(-2px);
  background: var(--gold-light);
}
.word-token:active { cursor: grabbing; }
.word-token-art {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(42, 26, 14, 0.35);
  border-radius: 50%;
  background: rgba(255, 248, 230, 0.88);
  overflow: hidden;
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 25px;
}
.word-sprite {
  width: 100%;
  height: 100%;
  display: inline-block;
  border-radius: inherit;
  background-image: url("../images/catholic-kids/games/generated/word-family-icons-v1.webp");
  background-repeat: no-repeat;
  background-size: 400% 300%;
}
.word-sprite.is-small {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(42, 26, 14, 0.18);
}
.word-token-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.word-token-label {
  display: block;
  font-size: 16px;
  line-height: 1.05;
}
.word-bank-empty {
  grid-column: 1 / -1;
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 900;
}
.word-family-zones {
  grid-template-rows: repeat(3, minmax(108px, 1fr));
}
.word-family-zone {
  appearance: none;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 112px;
  padding: 12px;
  border: 2.5px solid var(--ink);
  border-radius: var(--rad-md);
  background: rgba(255, 248, 230, 0.9);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.word-family-zone.is-ready {
  background: var(--gold-light);
}
.word-family-zone.is-wrong {
  animation: wiggle 0.4s ease;
  background: #ffe0da;
}
.word-family-head {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
}
.word-family-head strong,
.word-family-head em {
  display: block;
}
.word-family-head strong {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 22px;
  line-height: 1;
}
.word-family-head em {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 14px;
  line-height: 1.25;
}
.word-family-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
  font-size: 23px;
}
.word-family-sorted {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.word-family-pill,
.word-family-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 2px solid rgba(42, 26, 14, 0.22);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
}
.word-family-placeholder {
  color: var(--ink-soft);
  font-weight: 800;
}
.word-family-pill img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.word-family-token {
  min-height: 132px;
  padding: 12px 10px;
  border-width: 3px;
  box-shadow: 0 5px 0 var(--ink), 0 10px 18px rgba(42, 26, 14, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 202, 0.9)),
    var(--paper);
}
.word-family-token .word-token-art {
  width: 70px;
  height: 70px;
  background: #fff8dc;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.7);
}
.word-family-token .word-token-label {
  font-size: 19px;
  line-height: 1.04;
  color: var(--ink);
}
.word-family-token-selected {
  animation: word-family-selected-pop 0.52s ease both;
  outline: 4px solid rgba(255, 214, 90, 0.62);
  outline-offset: 3px;
}
.word-family-zone {
  transition: transform 140ms ease, background 160ms ease, box-shadow 160ms ease;
}
.word-family-zone:nth-child(1) {
  background: linear-gradient(90deg, rgba(255, 248, 230, 0.96), rgba(255, 238, 196, 0.82));
}
.word-family-zone:nth-child(2) {
  background: linear-gradient(90deg, rgba(240, 255, 223, 0.94), rgba(255, 248, 230, 0.86));
}
.word-family-zone:nth-child(3) {
  background: linear-gradient(90deg, rgba(232, 244, 255, 0.94), rgba(255, 248, 230, 0.86));
}
.word-family-zone-ready {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ink), 0 0 0 4px rgba(255, 214, 90, 0.26);
}
.word-family-zone-success {
  animation: word-family-zone-success 0.72s ease both;
}
.word-family-count {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-weight: 1000;
  box-shadow: 0 2px 0 var(--ink);
}
.word-family-snap-spark {
  justify-self: start;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 3px 11px;
  border: 2px solid rgba(47, 116, 76, 0.45);
  border-radius: 999px;
  background: #f0ffdf;
  color: #2f744c;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
  animation: word-family-snap-spark 0.62s ease both;
}
.word-family-pill-new {
  animation: word-family-pill-land 0.68s ease both;
  border-color: rgba(47, 116, 76, 0.55);
  background: #f0ffdf;
}
.word-family-bank-complete {
  min-height: 170px;
  border-style: solid;
  background: linear-gradient(180deg, rgba(240, 255, 223, 0.78), rgba(255, 248, 230, 0.72));
}
.word-family-helper {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 2px solid rgba(42, 26, 14, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-weight: 900;
  text-align: center;
}
.word-family-storyline {
  max-width: 58ch;
}
.word-family-challenge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}
.word-family-challenge-strip span {
  border: 1.5px solid rgba(42, 26, 14, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  padding: 6px 10px;
}
.word-family-helper strong {
  color: var(--ink);
  font-size: 19px;
}
.word-family-helper-art {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(42, 26, 14, 0.2);
  border-radius: 50%;
  background: #fff8dc;
  overflow: hidden;
}
.word-family-complete {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 12px;
  border: 2px solid rgba(47, 116, 76, 0.36);
  border-radius: var(--rad-md);
  background: linear-gradient(90deg, #f0ffdf, #fff4c9);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 4px 0 rgba(42, 26, 14, 0.18);
  animation: word-family-complete-rise 0.72s ease both;
}
.word-family-complete strong {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: 22px;
}
.word-family-complete span {
  color: var(--ink-soft);
  font-weight: 900;
}
@keyframes word-family-selected-pop {
  0% { transform: translateY(0) scale(1); }
  42% { transform: translateY(-4px) scale(1.06); }
  100% { transform: translateY(-2px) scale(1.02); }
}
@keyframes word-family-zone-success {
  0% { box-shadow: 0 3px 0 var(--ink), 0 0 0 0 rgba(47, 116, 76, 0.24); }
  45% { box-shadow: 0 5px 0 var(--ink), 0 0 0 8px rgba(47, 116, 76, 0.16); }
  100% { box-shadow: 0 3px 0 var(--ink), 0 0 0 0 rgba(47, 116, 76, 0); }
}
@keyframes word-family-pill-land {
  0% { transform: scale(0.7) rotate(-3deg); opacity: 0; }
  55% { transform: scale(1.14) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes word-family-snap-spark {
  0% { transform: translateY(8px) scale(0.72); opacity: 0; }
  44% { transform: translateY(-4px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0; }
}
@keyframes word-family-complete-rise {
  0% { transform: translateY(12px) scale(0.96); opacity: 0; }
  70% { transform: translateY(-2px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.shepherd-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.42fr);
  gap: 14px;
  align-items: center;
}
.shepherd-storyline {
  max-width: 58ch;
}
.shepherd-challenge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}
.shepherd-challenge-strip span {
  border: 1.5px solid rgba(47, 116, 76, 0.24);
  border-radius: 999px;
  background: rgba(240, 255, 223, 0.7);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  padding: 6px 10px;
}
.shepherd-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border: 2px solid rgba(42, 26, 14, 0.28);
  border-radius: var(--rad-md);
  background:
    linear-gradient(rgba(255, 248, 230, 0.08), rgba(255, 239, 196, 0.22)),
    url("../images/catholic-kids/games/3d/sheep-pasture-map-3d.webp");
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 999px rgba(255, 248, 230, 0.08);
}
.pasture-cell {
  aspect-ratio: 1;
  min-height: 58px;
  border: 2px dashed rgba(42, 26, 14, 0.14);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 248, 230, 0.16);
  color: var(--ink);
  font: inherit;
  position: relative;
}
.pasture-cell:disabled {
  color: var(--ink);
  opacity: 1;
}
.pasture-cell {
  cursor: pointer;
}
.pasture-cell:disabled {
  cursor: default;
}
.pasture-cell.is-step {
  border-style: solid;
  border-color: var(--accent-deep);
  background: rgba(255, 233, 168, 0.62);
}
.pasture-cell.is-step:hover,
.pasture-cell:not(:disabled):hover { transform: translateY(-1px); }
.pasture-cell.is-target {
  border-style: solid;
  border-color: var(--accent-deep);
  background: rgba(255, 216, 83, 0.5);
  box-shadow: inset 0 0 0 3px rgba(255, 253, 245, 0.85);
}
.jesus-player,
.sheep-token,
.gate-token {
  width: min(48px, 80%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 7px 6px rgba(42, 26, 14, 0.25));
}
.jesus-player {
  width: min(74px, 108%);
  background-image: url("../images/catholic-kids/games/3d/jesus-shepherd-sheet-3d.webp");
  background-size: 400% 200%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
}
.jesus-player.dir-left { background-position: 66.666% 0%; }
.jesus-player.dir-right { background-position: 0% 100%; }
.jesus-player.dir-up { background-position: 66.666% 100%; }
.jesus-player.dir-down { background-position: 0% 0%; }
.sheep-token {
  width: min(60px, 92%);
  background-image: url("../images/catholic-kids/games/3d/sheep-sheet-3d.webp");
  background-size: 400% 300%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
}
.sheep-token.pose-1 { background-position: 0% 0%; }
.sheep-token.pose-2 { background-position: 33.333% 0%; }
.sheep-token.pose-3 { background-position: 66.666% 0%; }
.sheep-token.pose-4 { background-position: 100% 0%; }
.gate-token {
  width: min(48px, 80%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper-deep);
  font-size: 23px;
  box-shadow: 0 2px 0 var(--ink);
}
.shepherd-controls {
  display: grid;
  gap: 10px;
  justify-items: center;
  background: rgba(255, 255, 255, 0.54);
  border: 1.5px solid var(--paper-deep);
  border-radius: var(--rad-md);
  padding: 12px;
}
.shepherd-cell {
  min-height: 68px;
  border-width: 2.5px;
  transition: transform 130ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.shepherd-cell::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 85%, rgba(61, 107, 60, 0.18), rgba(61, 107, 60, 0) 62%);
  pointer-events: none;
}
.shepherd-cell-step,
.shepherd-cell-target {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72), 0 5px 14px rgba(42, 26, 14, 0.13);
}
.shepherd-cell-found {
  animation: shepherd-found-pop 0.72s ease both;
}
.shepherd-cell-gate-ready {
  animation: shepherd-gate-ready 1s ease-in-out infinite;
  border-style: solid;
}
.shepherd-cell-gate-celebrate {
  animation: shepherd-gate-celebrate 0.9s ease both;
}
.shepherd-jesus {
  width: min(84px, 116%);
  transform-origin: 50% 90%;
  transition: transform 140ms ease;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 6px rgba(42, 26, 14, 0.28)) drop-shadow(0 0 0 rgba(255, 255, 255, 0.9));
}
.shepherd-jesus::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 58%;
  height: 12%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(42, 26, 14, 0.18);
  filter: blur(2px);
  z-index: -1;
}
.shepherd-jesus-walking {
  animation: shepherd-walk-bounce 0.34s ease both;
}
.shepherd-jesus-happy {
  animation: shepherd-jesus-happy 0.62s ease both;
}
.shepherd-jesus-home {
  animation: shepherd-home-glow 1.1s ease both;
}
.shepherd-sheep {
  width: min(72px, 104%);
  transform-origin: 50% 88%;
  position: relative;
  z-index: 2;
  animation: shepherd-sheep-idle 1.8s ease-in-out infinite;
  filter: drop-shadow(0 7px 5px rgba(42, 26, 14, 0.24)) saturate(1.08);
}
.shepherd-sheep-face {
  position: absolute;
  right: 16%;
  top: 30%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: rgba(42, 26, 14, 0.55);
  box-shadow: -12px 1px 0 rgba(42, 26, 14, 0.4);
}
.shepherd-sheep-bell {
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: 12px;
  height: 11px;
  transform: translateX(-50%);
  border: 2px solid rgba(42, 26, 14, 0.42);
  border-radius: 50% 50% 45% 45%;
  background: #ffd65a;
  box-shadow: 0 2px 0 rgba(42, 26, 14, 0.25);
}
.shepherd-gate {
  min-width: 54px;
  width: min(58px, 88%);
  font-size: 28px;
  background: linear-gradient(#fff0b7, var(--paper-deep));
  position: relative;
  z-index: 2;
}
.shepherd-controls strong {
  font-size: 19px;
  color: var(--ink);
}
.shepherd-progress-pips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: -4px;
}
.shepherd-progress-pip {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(42, 26, 14, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  font-size: 22px;
  filter: grayscale(0.75);
  opacity: 0.62;
}
.shepherd-progress-pip.is-filled {
  animation: shepherd-progress-pop 0.44s ease both;
  border-color: rgba(47, 116, 76, 0.48);
  background: #f0ffdf;
  filter: none;
  opacity: 1;
}
.shepherd-progress-gate {
  background: rgba(255, 239, 196, 0.78);
}
.shepherd-safe-celebration {
  position: absolute;
  inset: 10px;
  z-index: 5;
  display: grid;
  gap: 4px;
  place-items: center;
  align-content: center;
  border: 3px solid rgba(138, 47, 31, 0.42);
  border-radius: var(--rad-md);
  background: radial-gradient(circle at 50% 18%, rgba(255, 246, 184, 0.96), rgba(255, 248, 230, 0.88) 54%, rgba(240, 255, 223, 0.86));
  color: var(--ink);
  text-align: center;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.5), 0 12px 26px rgba(42, 26, 14, 0.18);
  animation: shepherd-safe-celebration 0.86s ease both;
  pointer-events: none;
}
.shepherd-safe-celebration strong {
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(25px, 5vw, 42px);
  line-height: 1;
}
.shepherd-safe-sun {
  width: 54px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffd65a;
  font-size: 31px;
  box-shadow: 0 0 0 8px rgba(255, 214, 90, 0.24);
  animation: shepherd-safe-sun 1.1s ease-in-out infinite;
}
.shepherd-safe-flock {
  font-size: 24px;
  letter-spacing: 2px;
}
.shepherd-move-btn {
  width: 56px;
  min-height: 56px;
  font-size: 27px;
}
@keyframes shepherd-found-pop {
  0% { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.7), 0 0 0 0 rgba(255, 220, 92, 0.32); }
  40% { background: rgba(255, 244, 173, 0.92); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.86), 0 0 0 10px rgba(255, 220, 92, 0.18); }
  100% { box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 220, 92, 0); }
}
@keyframes shepherd-gate-ready {
  0%, 100% { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72), 0 0 0 0 rgba(138, 47, 31, 0.12); }
  50% { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.86), 0 0 0 8px rgba(138, 47, 31, 0.1); }
}
@keyframes shepherd-gate-celebrate {
  0% { transform: scale(1); }
  36% { transform: scale(1.08); background: rgba(255, 242, 168, 0.96); }
  100% { transform: scale(1); }
}
@keyframes shepherd-jesus-happy {
  0%, 100% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-6px) scale(1.06); }
}
@keyframes shepherd-walk-bounce {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  45% { transform: translateY(-7px) rotate(-2deg) scale(1.03); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes shepherd-home-glow {
  0%, 100% { filter: drop-shadow(0 10px 6px rgba(42, 26, 14, 0.28)) drop-shadow(0 0 0 rgba(255, 214, 90, 0)); }
  45% { filter: drop-shadow(0 10px 6px rgba(42, 26, 14, 0.28)) drop-shadow(0 0 12px rgba(255, 214, 90, 0.82)); }
}
@keyframes shepherd-sheep-idle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}
@keyframes shepherd-safe-celebration {
  0% { transform: scale(0.9); opacity: 0; }
  62% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes shepherd-safe-sun {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.08); }
}
@keyframes shepherd-progress-pop {
  0% { transform: scale(0.74); }
  62% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.move-pad {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(3, 54px);
  gap: 7px;
}
.move-btn {
  appearance: none;
  width: 48px;
  min-height: 48px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  font-size: 24px;
}
.move-btn:hover { transform: translateY(-1px); }
.move-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
}
.bread-catch-area {
  position: relative;
  min-height: 360px;
  border: 2px solid rgba(42, 26, 14, 0.28);
  border-radius: var(--rad-md);
  touch-action: none;
  background:
    linear-gradient(rgba(255, 248, 230, 0.02), rgba(255, 239, 196, 0.18)),
    url("../images/catholic-kids/games/3d/galilee-bread-game-bg-3d.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.falling-gift {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 54px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background-image: url("../images/catholic-kids/games/3d/bread-fish-basket-sheet-3d.webp");
  background-size: 400% 400%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 8px 6px rgba(42, 26, 14, 0.22));
}
.falling-gift.kind-0 { background-position: 0% 0%; }
.falling-gift.kind-1 { background-position: 33.333% 0%; }
.falling-gift.kind-2 { background-position: 66.666% 0%; }
.falling-gift.kind-3 { background-position: 100% 0%; }
.falling-gift.kind-4 { background-position: 0% 33.333%; }
.falling-gift.kind-5 { background-position: 33.333% 33.333%; }
.bread-catcher {
  position: absolute;
  left: var(--player-x);
  bottom: 10px;
  width: 84px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background-image: url("../images/catholic-kids/games/3d/jesus-shepherd-sheet-3d.webp");
  background-size: 400% 200%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 8px rgba(42, 26, 14, 0.3));
}
.bread-basket {
  position: absolute;
  left: calc(var(--player-x) + 34px);
  bottom: 8px;
  width: 48px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background-image: url("../images/catholic-kids/games/3d/bread-fish-basket-sheet-3d.webp");
  background-size: 400% 400%;
  background-position: 66.666% 66.666%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 6px 5px rgba(42, 26, 14, 0.22));
}
.bread-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.bread-storyline {
  max-width: 58ch;
}
.bread-challenge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}
.bread-challenge-strip span {
  border: 1.5px solid rgba(42, 26, 14, 0.2);
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.76);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  padding: 6px 10px;
}
.bread-catch-area {
  min-height: 410px;
  box-shadow: inset 0 -42px 44px rgba(63, 106, 57, 0.18);
}
.bread-catch-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 246, 184, 0.42), rgba(255, 246, 184, 0) 18%),
    radial-gradient(circle at 82% 28%, rgba(232, 244, 255, 0.36), rgba(232, 244, 255, 0) 20%);
  pointer-events: none;
}
.bread-target-lane {
  position: absolute;
  left: var(--player-x);
  bottom: 0;
  width: 118px;
  height: 120px;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(rgba(255, 243, 175, 0), rgba(255, 243, 175, 0.28));
  pointer-events: none;
}
.bread-falling-gift {
  width: 64px;
  filter: drop-shadow(0 9px 5px rgba(42, 26, 14, 0.28)) saturate(1.08);
  z-index: 2;
  animation: bread-gift-float 0.82s ease-in-out infinite;
  animation-delay: var(--gift-delay);
}
.bread-falling-gift::after {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.52);
}
.bread-falling-gift.kind-0,
.bread-falling-gift.kind-3 {
  width: 70px;
  filter: drop-shadow(0 10px 5px rgba(42, 26, 14, 0.28)) saturate(1.18);
}
.bread-falling-gift.kind-1,
.bread-falling-gift.kind-4 {
  width: 58px;
  filter: drop-shadow(0 8px 5px rgba(42, 26, 14, 0.24)) hue-rotate(-8deg) saturate(1.12);
}
.bread-falling-gift.kind-2,
.bread-falling-gift.kind-5 {
  width: 66px;
  filter: drop-shadow(0 8px 5px rgba(42, 26, 14, 0.24)) hue-rotate(8deg) saturate(1.16);
}
.bread-gift-drift-0 {
  transform: translate(-50%, -50%) rotate(-5deg);
}
.bread-gift-drift-1 {
  transform: translate(-50%, -50%) rotate(6deg);
}
.bread-catcher {
  width: 98px;
  transition: left 120ms linear, transform 120ms ease;
  z-index: 4;
}
.bread-catcher.is-catching {
  animation: bread-catcher-catch 0.46s ease both;
}
.bread-catcher-happy {
  animation: bread-catcher-happy 1.15s ease both;
}
.bread-basket {
  width: 60px;
  transition: left 120ms linear, transform 120ms ease;
  z-index: 5;
}
.bread-basket.is-catching {
  animation: bread-basket-catch 0.46s ease both;
}
.bread-basket-full {
  width: 78px;
  animation: bread-basket-full 0.94s ease both;
  filter: drop-shadow(0 8px 6px rgba(42, 26, 14, 0.28)) drop-shadow(0 0 14px rgba(255, 214, 90, 0.58));
}
.bread-catch-pop {
  position: absolute;
  left: calc(var(--player-x) + 42px);
  bottom: 78px;
  z-index: 3;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: #f0ffdf;
  color: var(--ink);
  font-weight: 1000;
  font-size: 19px;
  box-shadow: 0 4px 0 var(--ink);
  animation: bread-catch-pop 0.62s ease both;
}
.bread-finish-banner {
  position: absolute;
  inset: 18px auto auto 50%;
  transform: translateX(-50%);
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 248, 230, 0.94);
  color: var(--ink);
  font-weight: 1000;
  font-size: 20px;
  box-shadow: 0 4px 0 var(--ink);
  animation: bread-finish-pop 0.7s ease both;
  z-index: 8;
  gap: 9px;
}
.bread-finish-banner strong,
.bread-finish-banner span {
  display: inline-flex;
  align-items: center;
}
.bread-finale {
  position: absolute;
  inset: 62px 18px 118px;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.bread-finale-glow {
  position: absolute;
  width: min(78%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 184, 0.76), rgba(255, 246, 184, 0.18) 48%, rgba(255, 246, 184, 0) 70%);
  animation: bread-finale-glow 1.15s ease both;
}
.bread-finale-baskets {
  position: relative;
  font-size: clamp(34px, 8vw, 68px);
  letter-spacing: 10px;
  animation: bread-finale-baskets 0.9s ease both;
}
.bread-score-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(12px, 1fr));
  gap: 5px;
  align-items: center;
  padding: 0 4px;
}
.bread-score-dot {
  min-height: 14px;
  border: 1.5px solid rgba(42, 26, 14, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}
.bread-score-dot.is-filled {
  animation: bread-score-fill 0.38s ease both;
  border-color: rgba(47, 116, 76, 0.5);
  background: linear-gradient(90deg, #f0ffdf, #ffe9a8);
}
.bread-control-btn {
  min-width: 58px;
  min-height: 54px;
  padding-inline: 16px;
  font-weight: 1000;
}
@keyframes bread-catcher-catch {
  0%, 100% { transform: translateX(-50%) scale(1); }
  42% { transform: translateX(-50%) translateY(-7px) scale(1.06); }
}
@keyframes bread-catcher-happy {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  35% { transform: translateX(-50%) translateY(-8px) scale(1.06); }
  68% { transform: translateX(-50%) translateY(-2px) scale(1.02); }
}
@keyframes bread-basket-catch {
  0%, 100% { transform: translateX(-50%) rotate(0deg) scale(1); }
  42% { transform: translateX(-50%) rotate(-5deg) scale(1.14); }
}
@keyframes bread-basket-full {
  0% { transform: translateX(-50%) scale(1); }
  42% { transform: translateX(-50%) translateY(-10px) rotate(4deg) scale(1.2); }
  100% { transform: translateX(-50%) scale(1.08); }
}
@keyframes bread-catch-pop {
  0% { transform: translate(-50%, 12px) scale(0.72); opacity: 0; }
  45% { transform: translate(-50%, -8px) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -18px) scale(1); opacity: 0; }
}
@keyframes bread-finish-pop {
  0% { transform: translateX(-50%) translateY(-10px) scale(0.88); opacity: 0; }
  60% { transform: translateX(-50%) translateY(0) scale(1.05); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}
@keyframes bread-gift-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -5px; }
}
@keyframes bread-finale-glow {
  0% { transform: scale(0.75); opacity: 0; }
  65% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 0.86; }
}
@keyframes bread-finale-baskets {
  0% { transform: translateY(18px) scale(0.72); opacity: 0; }
  58% { transform: translateY(-4px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes bread-score-fill {
  0% { transform: scaleX(0.35); opacity: 0.4; }
  70% { transform: scaleX(1.08); opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}
.game-feedback {
  min-height: 56px;
  border: 1.5px solid var(--paper-deep);
  border-radius: var(--rad-sm);
  background: rgba(255,255,255,0.62);
  color: var(--ink-soft);
  padding: 12px;
  font-weight: 700;
}
.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.game-actions .mini-next-btn,
.bread-controls .mini-next-btn,
.guadalupe-controls .mini-next-btn {
  box-shadow: 0 3px 0 var(--accent-deep);
}
.rubric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.rubric-chip {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid var(--paper-deep);
  border-radius: var(--rad-sm);
  padding: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.25;
}
.rubric-chip strong {
  display: block;
  color: var(--ink);
}
@media (max-width: 860px) {
  .games-hero,
  .monstrance-build-board,
  .builder-board,
  .shepherd-layout,
  .word-family-layout {
    grid-template-columns: 1fr;
  }
  .games-stage {
    min-height: 0;
  }
  .game-card {
    min-height: 0;
  }
  .memory-grid,
  .light-grid,
  .word-token-bank,
  .arcade-link-grid,
  .rubric-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .games-stage.is-guadalupe-stage {
    min-height: 100dvh;
  }
  .guadalupe-mystery-shell {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .guadalupe-world {
    min-height: 0;
  }
  .guadalupe-trail-meter {
    top: 190px;
    left: 12px;
    right: auto;
    width: min(240px, calc(100% - 24px));
    padding: 8px 10px;
  }
  .guadalupe-dialogue {
    grid-template-columns: clamp(50px, 9vw, 68px) minmax(0, 1fr);
  }
  .guadalupe-dialogue-portrait {
    width: clamp(50px, 9vw, 68px);
  }
  .guadalupe-controls {
    grid-column: 1 / -1;
    gap: 10px;
    justify-content: flex-start;
  }
  .game-pick {
    grid-template-columns: 48px 1fr;
  }
  .game-pick-tag {
    grid-column: 2;
  }
  .monstrance-build-playfield {
    min-height: 380px;
  }
  .monstrance-build-story,
  .memory-story,
  .light-story {
    grid-template-columns: 1fr;
  }
  .monstrance-build-story em,
  .memory-story em,
  .light-story em {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    max-width: 100%;
  }
}
@media (max-width: 520px) {
  .memory-grid,
  .light-grid,
  .word-token-bank,
  .arcade-link-grid,
  .rubric-strip {
    grid-template-columns: 1fr;
  }
  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .memory-card {
    min-height: 112px;
    padding: 10px 8px;
    font-size: 16px;
  }
  .memory-symbol {
    font-size: 38px;
  }
  .memory-card:not(.is-open):not(.is-done) .memory-symbol {
    font-size: 40px;
  }
  .light-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .light-ray {
    min-height: 124px;
    padding: 12px 8px 10px;
  }
  .light-ray-icon {
    font-size: 34px;
  }
  .light-ray strong {
    font-size: 17px;
  }
  .word-token-bank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .word-token {
    min-height: 116px;
    padding: 10px 8px;
  }
  .word-token-art {
    width: 58px;
    height: 58px;
  }
  .word-token-label {
    font-size: 16px;
  }
  .word-family-pill {
    font-size: 14px;
  }
  .mini-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mini-tile {
    min-height: 178px;
    padding: 12px 8px 12px;
  }
  .mini-tile-blurb {
    display: none;
  }
  .mini-game-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .games-page.is-guadalupe-immersive {
    padding: 0;
  }
  .guadalupe-hud {
    min-height: 64px;
    padding: 10px 12px;
  }
  .guadalupe-hud h2 {
    font-size: clamp(26px, 9vw, 40px);
  }
  .guadalupe-count {
    min-width: 68px;
    padding: 7px 8px;
  }
  .guadalupe-world {
    min-height: 0;
  }
  .guadalupe-game-hud {
    border-color: rgba(255, 248, 230, 0.82);
    background: rgba(17, 14, 10, 0.76);
  }
  .guadalupe-game-hud strong {
    color: #fffef5;
    font-size: 18px;
    line-height: 1.24;
    text-shadow: 0 2px 4px rgba(17, 14, 10, 0.72);
  }
  .guadalupe-actor {
    left: var(--actor-mobile-x, var(--actor-x));
    top: var(--actor-mobile-y, var(--actor-y));
    width: clamp(72px, 18vw, 98px);
    transform: translate(-50%, -100%) scale(var(--actor-mobile-scale, var(--actor-scale)));
  }
  .guadalupe-actor.is-mary {
    width: clamp(88px, 23vw, 126px);
  }
  .guadalupe-actor.is-priest {
    width: clamp(70px, 17vw, 94px);
  }
  .guadalupe-room-hotspot {
    left: var(--spot-mobile-x, var(--spot-x));
    top: var(--spot-mobile-y, var(--spot-y));
    min-width: 56px;
    font-size: 11px;
  }
  .guadalupe-room-hotspot i {
    width: clamp(48px, 15vw, 64px);
    height: clamp(20px, 6vw, 28px);
  }
  .guadalupe-interact-prompt {
    left: var(--prompt-mobile-x, var(--prompt-x));
    top: calc(var(--prompt-mobile-y, var(--prompt-y)) - 9%);
    font-size: 12px;
  }
  .guadalupe-sign-gesture {
    left: var(--sign-mobile-x, var(--sign-x));
    top: var(--sign-mobile-y, var(--sign-y));
    min-width: 84px;
    min-height: 68px;
    padding: 8px 10px;
  }
  .guadalupe-sign-gesture.is-sky-drag {
    width: min(132px, 40vw);
    min-height: 68px;
  }
  .guadalupe-sign-caption {
    bottom: 148px;
    padding: 8px 10px;
  }
  .guadalupe-sign-caption strong {
    font-size: 13px;
  }
  .guadalupe-tilma-find {
    left: var(--tilma-mobile-x, var(--tilma-x));
    top: var(--tilma-mobile-y, var(--tilma-y));
    font-size: 10px;
  }
  .guadalupe-dpad {
    right: 10px;
    bottom: 10px;
    grid-template-columns: repeat(3, 48px);
    gap: 8px;
  }
  .guadalupe-dpad button {
    width: 48px;
    font-size: 21px;
  }
  .guadalupe-tilma-cloak {
    width: clamp(56px, 18vw, 82px);
  }
  .guadalupe-tilma-cloak.is-large {
    width: min(220px, 58vw);
  }
  .guadalupe-tilma-modal {
    padding: 12px;
  }
  .guadalupe-tilma-modal-card {
    max-height: calc(100dvh - 24px);
    overflow: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
  .guadalupe-tilma-modal-art {
    min-height: 210px;
  }
  .guadalupe-tilma-modal-copy h3 {
    font-size: clamp(28px, 9vw, 38px);
  }
  .guadalupe-place-card {
    display: none;
  }
  .guadalupe-scene-dots {
    left: 10px;
    right: 10px;
    justify-content: center;
  }
  .guadalupe-dialogue {
    grid-template-columns: clamp(50px, 13vw, 62px) minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }
  .guadalupe-dialogue.is-popup {
    border-color: rgba(42, 26, 14, 0.72);
    background: linear-gradient(90deg, #fffdf3, #fff1cd);
  }
  .guadalupe-dialogue-portrait {
    width: clamp(50px, 13vw, 62px);
  }
  .guadalupe-dialogue-copy p {
    font-size: clamp(17px, 5vw, 22px);
  }
  .guadalupe-dialogue-copy em {
    font-size: 13px;
  }
  .guadalupe-dialogue-find {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px;
  }
  .guadalupe-dialogue-find span {
    grid-row: auto;
    justify-self: start;
    white-space: normal;
  }
  .guadalupe-dialogue-find p {
    font-size: 12px;
  }
  .guadalupe-controls .btn {
    min-height: 48px;
    padding-inline: 12px;
  }
  .guadalupe-token {
    width: 36px;
    min-height: 17px;
    font-size: 7px;
  }
  .game-card-head {
    display: grid;
  }
  .monstrance-build-board {
    gap: 10px;
  }
  .monstrance-build-playfield {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .monstrance-build-slot {
    font-size: 10px;
    padding: 4px;
  }
  .monstrance-build-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .monstrance-build-shelf-piece {
    min-height: 118px;
    grid-template-rows: 62px 1fr;
    padding: 8px;
  }
  .monstrance-build-thumb,
  .monstrance-build-thumb img {
    max-height: 62px;
    height: 62px;
  }
  .monstrance-build-shelf-piece strong {
    font-size: 16px;
  }
  .monstrance-build-shelf-piece span span {
    font-size: 11px;
  }
  .monstrance-build-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .monstrance-build-step {
    min-height: 44px;
    font-size: 12px;
    padding: 5px 7px;
  }
  .monstrance-build-reset {
    right: 8px;
    top: 8px;
    padding: 7px 10px;
  }
  .move-pad {
    grid-template-columns: repeat(3, 48px);
    grid-template-rows: repeat(3, 48px);
  }
}

/* --- Marian detail scenes (look-closer zoom) ------------------------------ */
.marian-detail-overlay {
  position: absolute;
  inset: 0;
  z-index: 230;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(6px, 1.4vh, 12px);
  padding: clamp(10px, 2vw, 22px);
  background: radial-gradient(
    circle at 50% 36%,
    rgba(66, 47, 20, 0.94),
    rgba(14, 10, 6, 0.98) 72%
  );
  animation: guadalupe-vision-fade 500ms ease both;
}
.marian-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff9e8;
}
.marian-detail-kicker {
  display: block;
  color: #ffe69a;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marian-detail-top h3 {
  margin: 0;
  font-family: "Sentient", "Newsreader", Georgia, serif;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1;
}
.marian-detail-close {
  appearance: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 230, 154, 0.9);
  border-radius: 50%;
  background: rgba(26, 17, 9, 0.9);
  color: #ffe69a;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.marian-detail-close:hover {
  background: rgba(255, 230, 154, 0.18);
}
.marian-detail-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  container-type: size;
}
.marian-detail-frame {
  position: relative;
  width: min(88vw, 58vh);
  width: min(100cqw, calc(100cqh * 440 / 580));
  aspect-ratio: 440 / 580;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(8, 5, 2, 0.7),
    0 0 0 3px rgba(255, 230, 154, 0.85),
    0 0 0 9px rgba(255, 230, 154, 0.16);
  background: #171009;
}
.marian-detail-art {
  position: absolute;
  inset: 0;
  transform: scale(var(--md-zoom, 1));
  transform-origin: var(--md-ox, 50%) var(--md-oy, 50%);
  transition: transform 850ms cubic-bezier(0.22, 0.9, 0.24, 1);
  will-change: transform;
}
.marian-detail-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.marian-detail-spots {
  position: absolute;
  inset: 0;
}
.marian-detail-spot {
  appearance: none;
  position: absolute;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 3px solid #ffe69a;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 230, 154, 0) 56%,
    rgba(255, 230, 154, 0.3)
  );
  cursor: zoom-in;
  animation: marian-spot-pulse 2.2s ease-out infinite;
}
.marian-detail-spot > span {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 2px solid #2b1c0a;
  border-radius: 50%;
  background: #ffe69a;
  color: #2b1c0a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.marian-detail-spot:hover {
  background: radial-gradient(
    circle,
    rgba(255, 230, 154, 0.08) 40%,
    rgba(255, 230, 154, 0.42)
  );
}
.marian-detail-spot.is-found {
  border-color: #9fd8a2;
  animation: none;
  box-shadow: 0 0 0 5px rgba(127, 176, 105, 0.25);
}
.marian-detail-spot.is-found > span {
  background: #c9f2cb;
  border-color: #2c4a2e;
  color: #2c4a2e;
  font-size: 13px;
}
@keyframes marian-spot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 230, 154, 0.75);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 230, 154, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 230, 154, 0);
  }
}
.marian-detail-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: clamp(12px, 2vw, 18px) clamp(14px, 2.4vw, 22px);
  border: 2px solid rgba(255, 230, 154, 0.9);
  border-radius: var(--rad-sm);
  background: rgba(26, 17, 9, 0.92);
  color: #fff9e8;
}
.marian-detail-caption-copy {
  display: grid;
  gap: 4px;
  min-width: min(280px, 100%);
  flex: 1;
}
.marian-detail-caption-copy span {
  color: #ffe69a;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marian-detail-caption-copy.is-complete span {
  color: #c9f2cb;
}
.marian-detail-caption-copy p {
  margin: 0;
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 700;
  line-height: 1.35;
}
.marian-tilma-zoom {
  appearance: none;
  position: relative;
  width: min(100%, 250px);
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #171009;
  cursor: zoom-in;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.marian-tilma-zoom:hover,
.marian-tilma-zoom:focus-visible {
  transform: scale(1.025);
  box-shadow: 0 10px 28px rgba(17, 14, 10, 0.35);
}
.marian-tilma-zoom .marian-detail-svg {
  height: auto;
}
.marian-tilma-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid rgba(43, 28, 10, 0.85);
  background: rgba(255, 230, 154, 0.95);
  color: #2b1c0a;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.mdf-sun-spin {
  transform-box: view-box;
  transform-origin: 220px 148px;
  animation: marian-sun-spin 36s linear infinite;
}
@keyframes marian-sun-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 640px) {
  .marian-detail-top h3 {
    font-size: 20px;
  }
  .marian-detail-close {
    width: 40px;
    height: 40px;
  }
  .marian-detail-spot {
    width: 44px;
    height: 44px;
  }
  .marian-detail-caption {
    flex-direction: column;
    align-items: stretch;
  }
  .marian-detail-caption .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marian-detail-art {
    transition: none;
  }
  .marian-detail-spot {
    animation: none;
  }
  .mdf-sun-spin {
    animation: none;
  }
}
