/* ============================================================
   AMEFAR · Egipto 2026 — components.css  (Core lane · FINAL.md §5, §7, §9)
   Shared components: .photo, .sheet, .plaque, .tile-rule, .torn, .kicker, .pill, .stamp,
   .scrim, .btn, .cat-pose, nav, preloader, sky, lightswitch, #menu, .dialog
   Mobile-first; tokens only; no !important.
   ============================================================ */

/* =========================================================
   5.3  .photo
   ========================================================= */
.photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 3/2);
  background: var(--c-navy);
  contain: layout paint;
}
.photo picture, .photo img {
  width: 100%;
  height: 100%;
}
.photo img {
  object-fit: cover;
  object-position: var(--fp, 50% 50%);
  display: block;
  transform-origin: 50% 50%;
}
.photo__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--c-cream);
  transform: translateX(105%);           /* parked off-canvas; fx.revealPhoto sweeps it 0 → 105 % */
  pointer-events: none;
}
html.no-js .photo__veil { display: none; }
.photo__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: var(--sp-3) var(--sp-4);
  font: 600 var(--fs-eyebrow) / 1.3 var(--ff-body);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--c-cream);
  background: var(--g-scrim);
  padding-top: var(--sp-6);
}
.photo--arch { border-radius: var(--r-arch); }
.photo--round {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px double var(--c-gold);
}
.photo--bleed {
  width: 100%;
  height: 100svh;
  aspect-ratio: auto;
}
/* archive: duotone stack for the low-res photos (§2). Static CSS, hover/tap lifts the tone */
.photo--archive { max-width: 240px; }
.photo--archive::before {                /* grain + vignette (normal blend, never animated) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(23,11,28,0) 45%, rgba(23,11,28,.55) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .18 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>") 0 0 / 120px 120px repeat;
  opacity: .9;
}
.photo--archive::after {                 /* navy multiply */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--g-duotone);
  mix-blend-mode: multiply;
  opacity: .8;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out);
}
.photo--archive .photo__tone {           /* gold screen .18 (optional <span class="photo__tone">) */
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--c-gold);
  mix-blend-mode: screen;
  opacity: .18;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out);
}
.photo--archive:hover::after, .photo--archive:focus-within::after, .photo--archive.is-lit::after,
.photo--archive:hover .photo__tone, .photo--archive:focus-within .photo__tone, .photo--archive.is-lit .photo__tone { opacity: 0; }

/* =========================================================
   5.4  Paper & plaques
   ========================================================= */
.sheet {
  position: relative;
  isolation: isolate;
  background: var(--c-cream);
  color: var(--c-navy);
  box-shadow: var(--sh-paper);
  border-radius: 2px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  contain: layout paint;
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url("../assets/egipto/art/papyrus-900.webp") center / 900px auto repeat;
  mix-blend-mode: multiply;
  opacity: .22;
  pointer-events: none;
}
.sheet--ruled {
  background-image: repeating-linear-gradient(transparent 0 31px, var(--c-cream-dark) 31px 32px);
  background-blend-mode: normal;
  background-color: var(--c-cream);
  line-height: 32px;
}
.sheet--ruled::before { opacity: .12; }
.sheet--fold::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: linear-gradient(225deg, var(--c-cream) 0 50%, var(--c-cream-dark) 50% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}

.plaque {
  position: relative;
  background: var(--c-cream);
  color: var(--c-navy);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--sh-paper);
}
.plaque::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--g-tile);
  margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-6)) var(--sp-4);
}
.plaque .kicker { color: var(--c-terracotta-text); }
.plaque h2 { font-size: var(--fs-h1); line-height: var(--lh-display); }
.plaque .lead { margin-top: var(--sp-4); color: var(--c-ink-soft); }

.tile-rule {
  height: 10px;
  background: var(--g-tile);
  border-top: 1px solid var(--c-navy);
  border-bottom: 1px solid var(--c-navy);
  transform-origin: 0 50%;
}

.torn {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 8vh;
  height: 8svh;
  margin-top: -8vh;
  margin-top: -8svh;
  fill: var(--c-cream);
  color: var(--c-cream);
  pointer-events: none;
}

.kicker {
  display: block;
  font: 600 var(--fs-eyebrow) / 1.4 var(--ff-body);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--c-gold);
  max-width: none;
}
.paper .kicker, .sheet .kicker, .plaque .kicker, .dialog .kicker { color: var(--c-terracotta-text); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .45em .9em;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  font: 500 var(--fs-small) / 1 var(--ff-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--c-navy);
}
.pill--mx { color: var(--c-red-ink); }
.pill--eg { color: var(--c-teal-ink); }
.pill .ico { width: 1.1em; height: 1.1em; vertical-align: 0; }

/* stamp — ink stamp; data-rot="-4" is the resting rotation fx.inkStamp respects; --rot for no-JS */
.stamp {
  --rot: 0deg;
  --stamp-c: var(--c-red-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: .55em 1em;
  border: 2px solid var(--stamp-c);
  border-radius: var(--r-md);
  color: var(--stamp-c);
  font: 700 var(--fs-eyebrow) / 1.2 var(--ff-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transform: rotate(var(--rot));
  transform-origin: 50% 50%;
  background: transparent;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.3 1.55'/></filter><rect width='90' height='90' filter='url(%23n)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.3 1.55'/></filter><rect width='90' height='90' filter='url(%23n)'/></svg>");
  -webkit-mask-size: 90px 90px;
  mask-size: 90px 90px;
}
.stamp__ring {
  position: absolute;
  inset: 3px;
  border: 1px dashed var(--stamp-c);
  border-radius: inherit;
  pointer-events: none;
}
.stamp--round { border-radius: 50%; aspect-ratio: 1; padding: 1.1em; }
.stamp--oval { border-radius: 50%; padding: .9em 1.6em; }
.stamp--rect { border-radius: var(--r-sm); }
.stamp--teal { --stamp-c: var(--c-teal-ink); }
.stamp--ok { --stamp-c: var(--c-green-eye); }
.stamp--mini { padding: .3em .6em; font-size: .625rem; letter-spacing: .14em; border-width: 1.5px; }
.stamp .ico { width: 1.4em; height: 1.4em; }
a.stamp:hover, a.stamp:focus-visible { background: rgba(143,46,34,.06); }

.scrim {
  position: absolute;
  inset: 0;
  background: var(--g-scrim);
  pointer-events: none;
}
.scrim--l { background: var(--g-scrim-l); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 44px;
  padding: .8em 1.5em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--c-terracotta-deep);
  color: var(--c-cream);
  font: 500 var(--fs-small) / 1 var(--ff-body);
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.btn:hover { background: #5E220E; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-cream);
  border-color: var(--c-gold);
}
.btn--ghost:hover { background: rgba(217,164,65,.14); }
.paper .btn--ghost, .sheet .btn--ghost, .dialog .btn--ghost, .plaque .btn--ghost {
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.paper .btn--ghost:hover, .sheet .btn--ghost:hover, .dialog .btn--ghost:hover { background: rgba(42,22,48,.08); }
.btn--sm { min-height: 36px; padding: .55em 1em; font-size: var(--fs-eyebrow); }
.btn[hidden] { display: none; }

/* dual clock (CDMX · El Cairo) — shared by #pasaporte and #cierre; lanes only recolour */
.clock {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35em .5em;
  font: 500 var(--fs-small) / 1.3 var(--ff-body);
}
.clock__pair { white-space: nowrap; display: inline-flex; align-items: baseline; gap: .4em; }
.clock__city {
  font: 600 var(--fs-eyebrow) / 1 var(--ff-body);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}
.clock__time {
  font: 700 1.25rem / 1 var(--ff-display);
  font-optical-sizing: auto;
  font-variant-numeric: tabular-nums;
}
.clock__sep { color: var(--c-gold); }

/* =========================================================
   5.5  .cat-pose  (preloader + hero: pixel-identical)
   ========================================================= */
.cat-pose {
  position: absolute;
  left: 50%;
  bottom: 12svh;
  height: 50svh;
  aspect-ratio: 738/1283;
  transform: translateX(-46%);
  transform-origin: 50% 100%;
  pointer-events: none;
}
.cat-pose picture, .cat-pose img {
  width: 100%;
  height: 100%;
}
.cat-pose img { object-fit: contain; object-position: 50% 100%; }
@media (min-width: 1024px) {
  .cat-pose { height: 58svh; bottom: 9svh; transform: translateX(-42%); }
}
.cat__lid {
  position: absolute;
  left: var(--eye-x);
  top: var(--eye-y);
  width: 6%;
  height: 3.4%;
  translate: -50% -50%;
  background: var(--c-cat);
  border-radius: 50%;
  transform: scaleY(0);
  transform-origin: 50% 50%;
}
.cat__glint {
  position: absolute;
  left: calc(var(--eye-x) + .8%);
  top: calc(var(--eye-y) - .6%);
  width: 2.2%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  opacity: 0;
}
/* sleeping Bastet (footer) reuses the picture at a fixed height */
.cat-sleep { position: relative; height: 160px; aspect-ratio: 738/1283; }
.cat-sleep .cat__lid { transform: scaleY(1); }
@media (min-width: 1024px) { .cat-sleep { height: 240px; } }

/* =========================================================
   7.1  Sky
   ========================================================= */
.sky {
  position: fixed;
  inset: 0;
  z-index: var(--z-sky);
  overflow: hidden;
  background: var(--c-night);
  pointer-events: none;
}
.sky__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.sky__layer[data-phase="dawn"]   { background: var(--g-dawn); opacity: 1; }
.sky__layer[data-phase="day"]    { background: var(--g-day); }
.sky__layer[data-phase="golden"] { background: var(--g-golden); }
.sky__layer[data-phase="dusk"]   { background: var(--g-dusk); }
.sky__layer[data-phase="night"]  { background: var(--g-night); }
html.no-js .sky__layer[data-phase="dawn"] { opacity: 0; }
html.no-js .sky__layer[data-phase="day"]  { opacity: 1; }
.sky__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.sun {
  position: absolute;
  top: 0;
  left: 0;
  width: 18vmin;
  height: 18vmin;
  margin: -9vmin;
  background: var(--g-sun);
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
html.no-js .sun { transform: translate3d(70vw, 20vh, 0); opacity: 1; }

/* =========================================================
   7.3  Preloader  #apertura
   ========================================================= */
.pre {
  position: fixed;
  inset: 0;
  z-index: var(--z-pre);
  overflow: hidden;
  background: var(--c-night);
  color: var(--c-cream);
  clip-path: circle(160% at 50% 50%);
}
html.no-js .pre { display: none; }
.pre__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
}
.pre__logo {
  position: absolute;
  top: 8svh;
  left: 50%;
  width: 120px;
  height: auto;
  translate: -50% 0;
}
.pre__rule {
  position: absolute;
  top: calc(8svh + 40px);
  left: 50%;
  width: 120px;
  height: 1px;
  translate: -50% 0;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: 50% 50%;
}
.pre__counter {
  position: absolute;
  left: var(--gutter);
  bottom: var(--gutter);
  margin: 0;
  font: 900 clamp(2.5rem, 6vw, 5rem) / 1 var(--ff-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--c-gold);
}
@media (min-width: 1024px) {
  .pre__logo { width: 160px; }
  .pre__rule { top: calc(8svh + 48px); width: 160px; }
}

/* =========================================================
   7.4  Lightswitch
   ========================================================= */
.lightswitch {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightswitch);
  background: var(--c-cream);
  transform: scaleY(0);
  transform-origin: 50% 0;
  pointer-events: none;
  opacity: 1;
}
.lightswitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/egipto/art/papyrus-900.webp") center / 900px auto repeat;
  mix-blend-mode: multiply;
  opacity: .35;
}
html.no-js .lightswitch { display: none; }

/* =========================================================
   9  Nav
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-inline: var(--gutter);
  background: rgba(23,11,28,.94);
  color: var(--c-cream);
}
html.js .nav { transform: translateY(-100%); }   /* nav.js slides it in after the hero */
.nav__logo {
  display: flex;
  align-items: center;
  min-height: 44px;              /* §10 touch target */
  flex: none;
  margin-right: auto;
}
.nav__logo img { width: 132px; height: auto; }
.nav__links { display: none; }
.nav__links a {
  position: relative;
  display: inline-block;
  padding: .6em .2em;
  font: 600 13px / 1 var(--ff-body);
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-cream);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: .2em;
  right: .2em;
  bottom: .2em;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-ui) var(--ease-out);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__links a[aria-current="true"] { color: var(--c-gold-light); }
.nav__today {
  min-height: 36px;
  padding: .55em 1em;
  font-size: var(--fs-eyebrow);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__today.is-here { background: var(--c-teal-ink); }
.nav__today[hidden], .menu__today[hidden] { display: none; }
.nav__dates {
  display: none;
  margin: 0;
  font: italic 500 var(--fs-small) / 1 var(--ff-display);
  color: var(--c-gold);
  white-space: nowrap;
}
.nav__burger {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  margin-right: calc(-1 * var(--sp-3));
  border-radius: 50%;
}
.nav__burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--c-cream);
  border-radius: 1px;
  transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { bottom: 17px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: visible;
}
.nav__bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c-teal), var(--c-gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.nav__boat {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 14px;
  height: 10px;
  overflow: visible;
}
@media (min-width: 640px) {
  .nav__dates { display: block; }
}
@media (min-width: 1024px) {
  .nav {
    gap: var(--sp-5);
    background: rgba(23,11,28,.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .nav__logo img { width: 180px; }
  .nav__links { display: flex; gap: var(--sp-4); margin-inline: auto; }
  .nav__burger { display: none; }
}
@media (min-width: 1280px) {
  .nav__links { gap: var(--sp-5); }
}

/* =========================================================
   9  Mobile menu  #menu
   ========================================================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + var(--sp-6)) var(--gutter) var(--sp-8);
  background: var(--c-navy);
  color: var(--c-cream);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .35;
  pointer-events: none;
}
.menu__close {
  position: absolute;
  top: calc((var(--nav-h) - 44px) / 2);
  right: calc(var(--gutter) - var(--sp-3));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font: 300 2rem / 1 var(--ff-display);
  color: var(--c-cream);
}
.menu__links {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: auto;
}
.menu__links a {
  display: block;
  overflow: hidden;
  font: 700 var(--fs-h2) / 1.15 var(--ff-display);
  text-decoration: none;
  color: var(--c-cream);
}
.menu__links a > span { display: block; }
.menu__links a[aria-current="true"] { color: var(--c-gold); }
.menu__links a:hover { color: var(--c-gold-light); }
.menu__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}
.menu__today { flex: none; }
.menu__dates {
  margin: 0;
  font: italic 500 var(--fs-lead) / 1 var(--ff-display);
  color: var(--c-gold);
}

/* =========================================================
   Dialog base  (#exp-dialog; lane D fills and animates)
   ========================================================= */
.dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 92svh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--c-cream);
  color: var(--c-navy);
  box-shadow: var(--sh-3);
  overflow: hidden;
  display: none;
  grid-template-rows: auto 1fr;
}
.dialog[open] { display: grid; }
.dialog::backdrop { background: rgba(23,11,28,.9); }
.dialog__media {
  aspect-ratio: 16/9;
  max-height: 34svh;
}
.dialog__body {
  padding: var(--sp-5) var(--gutter) var(--sp-7);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.dialog__title { margin: var(--sp-2) 0 var(--sp-4); font-size: var(--fs-h2); line-height: var(--lh-heading); }
.dialog__text > * + * { margin-top: var(--sp-4); }
.dialog__text h4 { margin-top: var(--sp-5); }
.dialog__jump { margin-top: var(--sp-6); }
.dialog__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(239,227,203,.92);
  color: var(--c-navy);
  font: 300 1.75rem / 1 var(--ff-display);
}
.dialog__cat { position: absolute; right: var(--sp-5); bottom: var(--sp-4); width: 28px; height: 46px; color: var(--c-gold); opacity: .8; }
@media (min-width: 1024px) {
  .dialog {
    width: min(92vw, 960px);
    max-height: min(84svh, 720px);
    margin: auto;
    border-radius: 2px;
    grid-template-rows: none;
    grid-template-columns: 5fr 7fr;
  }
  .dialog__media { aspect-ratio: auto; max-height: none; height: 100%; }
  .dialog__body { padding: var(--sp-7) var(--sp-7) var(--sp-8); }
}

/* ===================================================================
   LA PUERTA · el preloader no avanza sin un gesto (§ sonido)
   El navegador solo deja sonar audio tras un clic; en vez de pelear con
   esa regla la convertimos en la entrada al viaje.
   =================================================================== */
.pre__gate {
  position: absolute;
  left: 50%;
  bottom: clamp(3rem, 9svh, 7rem);
  translate: -50% 0;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  width: min(92vw, 420px);
  text-align: center;
}
.pre__gate[hidden] { display: none; }
.pre__gate-kicker {
  margin: 0;
  font: 600 var(--fs-eyebrow) / 1 var(--ff-body);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--c-gold);
}
.pre__enter {
  min-height: 52px;
  padding: .95em 1.9em;
  background: var(--c-gold);
  color: var(--c-night);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--sh-gold);
}
.pre__enter:hover { background: var(--c-gold-light); }
.pre__enter .ico { width: 1.15em; height: 1.15em; }
.pre__quiet {
  padding: .5em .9em;
  border: 0;
  background: none;
  color: var(--c-paper-soft);
  font: 500 var(--fs-small) / 1 var(--ff-body);
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.pre__quiet:hover { color: var(--c-cream); }
.pre__gate.is-going { pointer-events: none; }

/* Con la puerta abierta, Bastet sube y se encoge: si no, los botones se le
   sientan encima de las patas. La transicion la hace GSAP-less a proposito
   (una sola propiedad, sin coste). */
.pre.is-gated .pre__cat {
  bottom: 27svh;
  height: 44svh;
  transition: bottom .9s var(--ease-out), height .9s var(--ease-out);
}
@media (max-width: 1023px) {
  .pre.is-gated .pre__cat { bottom: 31svh; height: 38svh; }
}

/* ------------------------------------------------ control de sonido (nav) */
.nav__sound {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--c-cream);
  cursor: pointer;
}
.nav__sound:hover { color: var(--c-gold); }
.nav__sound .ico { width: 20px; height: 20px; }
.nav__sound .ico--on { display: none; }
.nav__sound.is-on .ico--on { display: block; }
.nav__sound.is-on .ico--off { display: none; }
.nav__sound.is-on { color: var(--c-gold); }

/* ------------------------------------------------ instalar (Android/iOS) */
.nav__install {
  min-height: 36px;
  padding: .55em 1.1em;
  font-size: var(--fs-eyebrow);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--c-gold);
  color: var(--c-night);
}
.nav__install:hover { background: var(--c-gold-light); }
.nav__install[hidden] { display: none; }
@media (max-width: 767px) { .nav__install { display: none; } }

/* ------------------------------------------------ aviso de version nueva */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(var(--sp-5), env(safe-area-inset-bottom));
  translate: -50% 0;
  z-index: var(--z-menu);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: min(92vw, 460px);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid rgba(217,164,65,.35);
  border-radius: var(--r-md);
  background: rgba(23,11,28,.96);
  color: var(--c-cream);
  box-shadow: var(--sh-3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast__txt { font: 500 var(--fs-small) / 1.4 var(--ff-body); }
.toast__btn {
  margin-left: auto;
  flex: none;
  min-height: 40px;
  padding: .5em 1.1em;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--c-gold);
  color: var(--c-night);
  font: 600 var(--fs-eyebrow) / 1 var(--ff-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* menu movil: instalar + sonido */
.menu__install[hidden] { display: none; }
.menu__install .ico { width: 1.1em; height: 1.1em; }
.menu__sound {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 44px;
  padding: .5em .2em;
  border: 0;
  background: none;
  color: var(--c-paper-soft);
  font: 500 var(--fs-small) / 1 var(--ff-body);
  letter-spacing: .04em;
  cursor: pointer;
}
.menu__sound .ico { width: 18px; height: 18px; }
.menu__sound .ico--on { display: none; }
.menu__sound.is-on { color: var(--c-gold); }
.menu__sound.is-on .ico--on { display: block; }
.menu__sound.is-on .ico--off { display: none; }

/* la puerta nace deshabilitada (preloader.js la abre al poner el listener) */
.pre__enter[disabled], .pre__quiet[disabled] { opacity: .55; cursor: default; }
