/* Inicio only: concealed discoveries and the vault door in one voluntary dialog. */
#view-inicio { animation: none; }
html:has(#view-inicio :is(.clue-notebook, .clue-reset-dialog)[open]) { overflow: hidden; }
#view-inicio .home-canvas { touch-action: none; }
#view-inicio .clue-tools { position:absolute;left:26px;bottom:26px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:calc(100% - 52px);pointer-events:none; }
#view-inicio .clue-actions { display:flex;align-items:stretch;gap:8px; }
#view-inicio :is(.notebook-toggle, .clue-reset) { display:inline-flex;align-items:center;min-height:50px;border:1px solid #d4c6a8;border-radius:3px;background:#faf7eef5;color:#343a2d;box-shadow:0 4px 18px #272d2421;pointer-events:auto;cursor:pointer; }
#view-inicio .notebook-toggle { gap:12px;padding:12px 15px;font:500 13px/1.2 "Work Sans",Arial,sans-serif; }
#view-inicio .clue-reset { justify-content:center;width:50px;padding:0; }
#view-inicio .notebook-toggle-count { display:inline-block;margin-left:8px;padding-left:10px;border-left:1px solid #c2bcaa;color:#6e6a59;font-size:11px; }
#view-inicio .notebook-toggle-arrow { margin-left:4px;font-size:17px; }
#view-inicio :is(.notebook-toggle, .clue-reset):hover { background:#fffdf5;border-color:#685f46; }
#view-inicio :is(.clue-reset, .clue-reset-dialog button):focus-visible { outline:2px solid #5b543e;outline-offset:3px; }
#view-inicio .clue-reset-dialog {
  box-sizing:border-box;
  width:min(370px, calc(100% - 32px));
  padding:24px;
  border:1px solid #d4c6a8;
  border-radius:4px;
  background:#faf7ee;
  color:#343a2d;
  box-shadow:0 12px 44px #272d2459;
}
#view-inicio .clue-reset-dialog::backdrop { background:#1b211dab; }
#view-inicio .clue-reset-dialog h2 { margin:0 0 8px;font:600 31px/1.05 "Cormorant Garamond",Georgia,serif; }
#view-inicio .clue-reset-dialog p { margin:0;font:400 14px/1.5 "Work Sans",Arial,sans-serif; }
#view-inicio .clue-reset-dialog form { display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px; }
#view-inicio .clue-reset-dialog button { min-height:44px;padding:8px 14px;border:1px solid #847858;border-radius:3px;background:transparent;color:inherit;cursor:pointer;font:600 13px/1.2 "Work Sans",Arial,sans-serif; }
#view-inicio .clue-reset-dialog button[value="reset"] { border-color:#343a2d;background:#343a2d;color:#faf7ee; }
#view-inicio .clue-discovery-notice { max-width:290px;margin:0;padding:10px 13px;border-left:2px solid #bba56c;background:#faf7eef2;color:#514b3d;font:400 12px/1.45 "Work Sans",Arial,sans-serif;box-shadow:0 4px 15px #272d2414; }
#view-inicio .clue-hotspot { width:44px;height:44px; }
#view-inicio .clue-hotspot:not(.is-found) { visibility:hidden;pointer-events:none; }
#view-inicio .clue-hotspot.is-found { visibility:visible;opacity:1;pointer-events:auto;cursor:pointer; }
#view-inicio .clue-hotspot.is-found::after { position:absolute;inset:3px;border:1px solid #fcf5dbdd;border-radius:50%;box-shadow:0 0 0 1px #66573d70,0 0 14px #f2df9f66;content:""; }
#view-inicio .clue-hotspot.is-solved::after { border-color:#c8eafa;box-shadow:0 0 0 1px #49687b99,0 0 12px #b9dbe799; }
#view-inicio .clue-hotspot:hover::after,#view-inicio .clue-hotspot:focus-visible::after { border-width:2px; }
#view-inicio .clue-notebook {
  --notebook-viewport-height: 100dvh;
  --vault-door-duration: 3950ms;
  --vault-crossing-duration: 1550ms;
  position: fixed;
  inset: var(--notebook-viewport-top, 0px) 0 auto;
  width: 100%;
  height: var(--notebook-viewport-height);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f0eee8;
  color-scheme: dark;
  overflow: hidden auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
#view-inicio .clue-notebook::backdrop {
  background: radial-gradient(ellipse at 50% 43%, #101b24b5, #05090ee8 83%);
  backdrop-filter: blur(3px);
}
#view-inicio .clue-notebook::after {
  position: fixed;
  z-index: 4;
  inset: 0;
  background: #0b141e;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--vault-crossing-duration) ease-in-out;
  content: "";
}
#view-inicio .clue-notebook.is-crossing::after { opacity: 1; }
#view-inicio .notebook-stage {
  --notebook-scene-height: 100dvh;
  --notebook-door-width: min(625px, 100vw, calc(max(360px, var(--notebook-scene-height) - 20px) * 6 / 7));
  --notebook-door-top: max(6px, calc((100% - var(--notebook-door-width) * 7 / 6) / 2));
  position: relative;
  height: var(--notebook-scene-height);
}
#view-inicio .notebook-door-panel {
  --rune-fade: 340ms;
  --rune-1-opacity: .48;
  --rune-2-opacity: .48;
  --rune-3-opacity: .48;
  --rune-1-color: #7e929e;
  --rune-2-color: #7e929e;
  --rune-3-color: #7e929e;
  position: absolute;
  top: var(--notebook-door-top);
  left: 50%;
  width: var(--notebook-door-width);
  transform: translateX(-50%);
  container-type: inline-size;
  isolation: isolate;
}
#view-inicio .portal-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 15px #000a);
}
#view-inicio .rock-texture { mix-blend-mode: screen; }
#view-inicio .portal-halo {
  position: absolute;
  inset: 9% 12% 6%;
  opacity: .06;
  background: radial-gradient(ellipse, #9bdcfb 0%, transparent 70%);
  filter: blur(24px);
  transition: opacity 2400ms ease-in-out;
  pointer-events: none;
}
#view-inicio .portal-passage { opacity: .3; transition: opacity 2450ms ease-in-out; }
#view-inicio .threshold-light { opacity: 0; transition: opacity 2550ms ease-in-out; }
#view-inicio .portal-leaves {
  position: absolute;
  inset: 0;
  perspective: 136.667cqw;
  perspective-origin: 50% 56.143%;
  pointer-events: none;
}
#view-inicio .door-leaf {
  position: absolute;
  top: 19.429%;
  width: 26%;
  height: 72.571%;
  transform: rotateY(var(--leaf-angle, 0deg));
  transition: transform var(--vault-door-duration) cubic-bezier(.46,.05,.27,1);
}
#view-inicio .door-leaf svg { display: block; width: 100%; height: 100%; overflow: hidden; }
#view-inicio .door-leaf--left { left: 24%; transform-origin: 0% 50.591%; }
#view-inicio .door-leaf--right { left: 50%; transform-origin: 100% 50.591%; }
#view-inicio .is-opening .door-leaf--left { --leaf-angle: 86deg; }
#view-inicio .is-opening .door-leaf--right { --leaf-angle: -86deg; }
#view-inicio .is-opening .portal-passage { opacity: 1; }
#view-inicio .is-opening .threshold-light { opacity: .55; }
#view-inicio .arch-words { font-family: "Cormorant Garamond", Georgia, serif; }
#view-inicio .notebook-door-panel[data-key-1="true"] {
  --rune-1-color: #dcf6ff;
  --rune-1-opacity: 1;
  --rune-1-glow: drop-shadow(0 0 3px #8ddcff) drop-shadow(0 0 9px #68bfff80);
}
#view-inicio .notebook-door-panel[data-key-2="true"] {
  --rune-2-color: #dcf6ff;
  --rune-2-opacity: 1;
  --rune-2-glow: drop-shadow(0 0 3px #8ddcff) drop-shadow(0 0 9px #68bfff80);
}
#view-inicio .notebook-door-panel[data-key-3="true"] {
  --rune-3-color: #dcf6ff;
  --rune-3-opacity: 1;
  --rune-3-glow: drop-shadow(0 0 3px #8ddcff) drop-shadow(0 0 9px #68bfff80);
}
#view-inicio .notebook-door-panel[data-progress="1"] .portal-halo { opacity: .13; }
#view-inicio .notebook-door-panel[data-progress="2"] .portal-halo { opacity: .24; }
#view-inicio .notebook-door-panel[data-progress="3"] .portal-halo { opacity: .42; }
#view-inicio .notebook-door-panel.is-opening .portal-halo { opacity: .68; }

#view-inicio .notebook-close {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 24px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #9bb6c369;
  border-radius: 4px;
  background: #101820e6;
  color: #efe9da;
  font: 500 14px/1.2 "Work Sans", Arial, sans-serif;
  cursor: pointer;
}
#view-inicio .notebook-close:hover { border-color: #e5d8b7; background: #243441; }
#view-inicio :is(.notebook-close, .notebook-toggle):focus-visible {
  outline: 2px solid #b5eaff;
  outline-offset: 2px;
  border-radius: 4px;
}
#view-inicio :is(.notebook-door-status, .notebook-progress, .notebook-entry-meta) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#view-inicio .notebook-puzzle-panel {
  position: absolute;
  top: 50%;
  /* The right edge of the stone jamb sits at about 86% of the SVG width. */
  left: calc(50% + var(--notebook-door-width) * .36 + clamp(12px, 1.6vw, 24px));
  right: clamp(12px, 2vw, 36px);
  max-width: 280px;
  transform: translateY(-50%);
  transition: opacity 360ms ease;
}
#view-inicio .clue-notebook[aria-busy="true"] .notebook-puzzle-panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms ease, visibility 0s 360ms;
}
#view-inicio .notebook-entry { text-shadow: 0 1px 2px #000; }
#view-inicio .notebook-entry h3 {
  margin: 0;
  color: #f2eee3;
  font: 600 clamp(17px, 1.7vw, 23px)/1.13 "Cormorant Garamond", Georgia, serif;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
#view-inicio .notebook-entry h3:focus { outline: none; }
#view-inicio .notebook-entry-hint {
  color: #d3dce0;
  font: 400 12px/1.25 "Work Sans", Arial, sans-serif;
}
#view-inicio .notebook-answer-form {
  position: relative;
  isolation: isolate;
  width: min(100%, 186px);
  margin: 4px 0 0;
}
#view-inicio .clue-notebook[aria-busy="true"] .notebook-answer-form { pointer-events: none; }
#view-inicio .notebook-answer-form::before {
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  border: 1px solid #8799a375;
  border-radius: 2px;
  background: linear-gradient(164deg, #0a131a 12%, #243441 90%);
  box-shadow: inset 0 2px 4px #0008, 0 1px 0 #a8b9c22b;
  content: "";
}
#view-inicio .notebook-answer-form:focus-within::before {
  border-color: #acd4e9;
  box-shadow: inset 0 2px 4px #0008, 0 0 12px #85bde032;
}
#view-inicio .notebook-answer-form:has([aria-invalid="true"])::before { border-color: #c6ad7c; }
#view-inicio .notebook-answer-form input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #edf7fa;
  caret-color: #c0e9fa;
  font: 600 16px/1.15 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
#view-inicio .notebook-answer-form input::placeholder {
  color: #bcc9cc;
  font-size: 13px;
  letter-spacing: .01em;
  text-transform: none;
}
#view-inicio .notebook-answer-form::after {
  position: absolute;
  inset: 8% 8% 0;
  opacity: 0;
  background: radial-gradient(circle at 16% 48%, #d6c7a4 0 1px, transparent 1.5px),
    radial-gradient(circle at 46% 21%, #cad9e2 0 1px, transparent 1.8px),
    radial-gradient(circle at 76% 48%, #d6c7a4 0 1px, transparent 1.5px);
  pointer-events: none;
  content: "";
}
#view-inicio .notebook-entry.is-striking .notebook-answer-form::after {
  animation: pjb-stone-dust 440ms ease-out both;
}
@keyframes pjb-stone-dust {
  0% { opacity: 0; transform: translateY(-3px); }
  15% { opacity: .8; }
  100% { opacity: 0; transform: translateY(11px); }
}
#view-inicio .notebook-inscribed-answer {
  margin: 5px 0 0;
  color: #dcf6ff;
  font: 600 17px/1.2 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#view-inicio :is(.notebook-answer-feedback, .notebook-storage-error) {
  margin: 3px 0 0;
  color: #eed19d;
  font: 400 11px/1.25 "Work Sans", Arial, sans-serif;
  text-wrap: balance;
}
#view-inicio .notebook-answer-feedback:empty { display: none; }
@media (max-width: 720px) {
  #view-inicio .notebook-close { top: auto;bottom:16px;left:16px; }
  #view-inicio .clue-tools { bottom:16px;left:14px;max-width:calc(100% - 28px); }
  #view-inicio .notebook-toggle { min-height:48px;padding:10px 12px;gap:9px;font-size:12px; }
  #view-inicio .clue-reset { min-height:48px;width:48px; }
  #view-inicio .clue-discovery-notice { max-width:260px;font-size:11px; }
  #view-inicio .notebook-puzzle-panel {
    top: auto;
    /* The top of the stone arch starts 80 units down in the 600-wide SVG. */
    bottom: calc(100% - var(--notebook-door-top) - var(--notebook-door-width) * 2 / 15 + 10px);
    left: 50%;
    right: auto;
    width: min(320px, calc(100% - 32px));
    max-width: none;
    transform: translateX(-50%);
    text-align: center;
  }
  #view-inicio .notebook-answer-form { margin-inline: auto; }
}
@media (max-width: 720px) and (max-height: 580px) and (orientation: landscape),
       (min-width: 500px) and (max-width: 720px) and (max-height: 800px) {
  #view-inicio .notebook-puzzle-panel {
    bottom: calc(100% - var(--notebook-door-top) - var(--notebook-door-width) * 2 / 15 + 2px);
    width: min(480px, calc(100% - 32px));
  }
  #view-inicio .notebook-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(104px, 32%);
    align-items: center;
    gap: 0 12px;
  }
  #view-inicio .notebook-answer-form { width: 100%; margin: 0; }
  #view-inicio .notebook-answer-feedback {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-end: 0;
    width: 32%;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #view-inicio .notebook-door-panel { --rune-fade: 0ms; }
  #view-inicio .clue-notebook::after,
  #view-inicio .clue-notebook *,
  #view-inicio .clue-notebook *::before,
  #view-inicio .clue-notebook *::after {
    scroll-behavior: auto !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0ms !important;
  }
}
