/* ============================================================
   Desert Villa · Seasonal Walkthrough
   Wabi-sabi LIGHT — warm washi paper, sumi ink, soft clay.
   Imperfect geometry. Quiet over chrome.
   All selectors/IDs preserved so player.js keeps working.
   ============================================================ */

:root {
  /* Warm washi / stone paper — light stage */
  --bg: #e4ddd0;
  --bg-2: #ebe5d8;
  --ink: #2c261f;
  --ink-dim: rgba(44, 38, 31, 0.62);
  --ink-faint: rgba(44, 38, 31, 0.40);
  --ink-ghost: rgba(44, 38, 31, 0.12);

  /* Soft iron-oxide — muted, aged */
  --accent: #8f6a4a;
  --accent-strong: #6e4f35;
  --accent-soft: rgba(143, 106, 74, 0.14);

  --clay: var(--accent);
  --clay-deep: var(--accent-strong);
  --clay-soft: var(--accent-soft);
  --ochre: #a8844e;
  --sage: #6a7d6c;
  --slate: #7a7268;

  --track-h: 1.5px;
  --thumb: 10px;
  --facts-w: 372px;

  /* Frosted washi — very light glass (readout overrides further) */
  --card: rgba(244, 238, 227, 0.28);
  --card-strong: rgba(248, 243, 234, 0.36);

  /* Text resting on the video print */
  --on-video: rgba(252, 248, 240, 0.98);
  --on-video-dim: rgba(252, 248, 240, 0.86);
  --on-video-accent: #f0d4b0;
  --on-video-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 2px 12px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 0, 0, 0.35);

  --line: rgba(44, 38, 31, 0.12);
  --line-soft: rgba(44, 38, 31, 0.07);
  --hair: inset 0 1px 0 rgba(255, 255, 250, 0.55);
  --lift: 0 12px 32px -18px rgba(44, 38, 31, 0.18);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --r: 4px 12px 6px 10px;
  --r-sm: 3px 9px 5px 8px;
  --r-seal: 48% 52% 50% 50% / 50% 48% 52% 50%;

  --font: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
}

/* Soft washi field — light, uneven, quiet */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(115% 100% at 40% 8%, #f2ebe0 0%, var(--bg) 46%, #d8d0c0 100%);
}

/* Paper fiber grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)' opacity='0.09'/></svg>");
  background-size: 200px 200px;
}

.mockup-badge {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 9999;
  font: 400 10px/1 var(--font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink-dim);
  border: 1px solid var(--line);
  box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Seasonal wash — soft earth drifts behind the print */
#season-wash {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  color: #c4b49a;
  transition: color 2s ease;
  background: radial-gradient(52% 46% at 48% 44%, currentColor 0%, transparent 72%);
  opacity: 0.35;
  mix-blend-mode: multiply;
}
:root[data-season="dia"] #season-wash { color: #d4c09a; }
:root[data-season="tormenta"] #season-wash { color: #a8aea4; }
:root[data-season="atardecer"] #season-wash { color: #c9a888; }
:root[data-season="noche"] #season-wash { color: #9aa0ae; }

/* Ghost season title removed — it fought the print */
#season-watermark { display: none !important; }

/*
 * Source clips are 1764×1176 (3:2). Frame as a print on washi.
 * Leave a clear washi band under the print for the season dock (never overlap).
 */
.stage-frame {
  position: relative;
  z-index: 2;
  width: min(86vw, 1120px, calc(62vh * 1.5));
  aspect-ratio: 3 / 2;
  margin-bottom: clamp(118px, 16vh, 168px);
  border-radius: 2px 6px 3px 5px;
  overflow: hidden;
  transform: translate3d(0, var(--frame-lift, 0px), 0);
  background: #2a241c;
  box-shadow:
    0 1px 0 rgba(255, 255, 250, 0.4),
    0 2px 4px rgba(44, 38, 31, 0.08),
    0 24px 56px -28px rgba(44, 38, 31, 0.28),
    0 48px 90px -48px rgba(44, 38, 31, 0.18);
  transition:
    box-shadow 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}
@media (hover: hover) {
  .stage-frame:hover {
    --frame-lift: -4px;
    box-shadow:
      0 1px 0 rgba(255, 255, 250, 0.55),
      0 8px 18px rgba(44, 38, 31, 0.1),
      0 36px 64px -30px rgba(44, 38, 31, 0.34);
  }
  .stage-frame:hover .clip-layer {
    filter: brightness(1.04) contrast(1.02);
  }
  .stage-frame:hover::after {
    box-shadow:
      inset 0 0 0 1px rgba(44, 38, 31, 0.2),
      inset 0 0 48px -18px rgba(0, 0, 0, 0.28);
  }
  .stage-frame:hover .vignette {
    opacity: 0.72;
  }
}

.stage-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(44, 38, 31, 0.14),
    inset 0 0 40px -16px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.55s var(--ease-out);
}

.clip-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #2a241c;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.014 0.04' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23w)' opacity='0.12'/></svg>"),
    radial-gradient(110% 90% at 50% 40%, #3a3228 0%, #2a241c 58%, #1c1814 100%);
  background-size: 480px 480px, 100% 100%;
  transition: filter 0.55s var(--ease-out);
}

/* Locked crop window — size + pin by anchor (roof / center), not a free transform */
.clip-layer video,
.clip-layer .clip-video {
  position: absolute;
  inset: auto;
  width: calc(100% * var(--frame-scale, 1.12));
  height: calc(100% * var(--frame-scale, 1.12));
  left: var(--frame-left, 0%);
  top: var(--frame-top, 0%);
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
  opacity: 0;
  transition: opacity 70ms linear, filter 1.6s var(--ease-out);
  will-change: opacity;
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  background-image: 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='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(to top, rgba(12, 10, 8, 0.62) 0%, rgba(12, 10, 8, 0.22) 18%, rgba(12, 10, 8, 0) 36%, rgba(12, 10, 8, 0) 72%, rgba(12, 10, 8, 0.28) 100%),
    radial-gradient(120% 92% at 50% 48%, rgba(0, 0, 0, 0) 54%, rgba(16, 12, 8, 0.32) 100%);
  transition: opacity 0.55s var(--ease-out);
}

/* ---------- HUD ---------- */

.hud {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: max(20px, env(safe-area-inset-left));
  right: max(20px, env(safe-area-inset-right));
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.hud-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px 14px;
  border-radius: var(--r);
  background: rgba(244, 238, 227, 0.92);
  border: 1px solid rgba(44, 38, 31, 0.12);
  box-shadow: var(--lift);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: auto;
  transition: border-color 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
@media (hover: hover) {
  .hud-title:hover {
    border-color: rgba(143, 106, 74, 0.35);
    background: rgba(248, 243, 234, 0.96);
  }
  .hud-title:hover .hud-kicker::after { transform: scaleX(1); }
}

.hud-kicker {
  position: relative;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.hud-kicker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}

.hud-scene {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
}

.hud-credit {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 2px;
}

.hud-controls {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.btn-icon {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border-radius: var(--r-seal);
  border: 1px solid rgba(44, 38, 31, 0.12);
  background: rgba(244, 238, 227, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--lift);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background .3s var(--ease-out), transform .35s var(--ease-out),
              border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 55%, rgba(143, 106, 74, 0.12), transparent 72%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.btn-icon:hover {
  background: rgba(248, 243, 234, 0.96);
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}
.btn-icon:hover::before { opacity: 1; transform: scale(1); }
.btn-icon:active { transform: translateY(0) scale(0.96); }
.btn-icon:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.btn-icon .ic { transition: transform .3s var(--ease-out); }
.btn-icon:hover .ic { transform: scale(1.06); }
#share-btn:hover .ic { transform: scale(1.05) translateY(-1px); }

.btn-icon .ic {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
}

/* ---------- Share toast ---------- */

.share-toast {
  position: fixed;
  top: max(72px, calc(env(safe-area-inset-top) + 72px));
  right: max(20px, env(safe-area-inset-right));
  z-index: 45;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--card-strong);
  border: 1px solid var(--line);
  box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.share-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Orientation / sun path — architectural ink diagram ---------- */

.orient-badge {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(128px, calc(env(safe-area-inset-bottom) + 108px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.orient-dial {
  display: block;
  width: 88px;
  height: 88px;
}

.orient-label {
  font: 600 8px/1 var(--font);
  letter-spacing: 0.06em;
  fill: rgba(44, 38, 31, 0.45);
}
.orient-label--south { fill: var(--accent-strong); }

.orient-arc-ref {
  pointer-events: none;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 2 3;
}
.orient-arc-ref--summer {
  stroke: rgba(143, 106, 74, 0.28);
  stroke-width: 1;
}
.orient-arc-ref--winter {
  stroke: rgba(44, 38, 31, 0.2);
  stroke-width: 1;
}

.orient-sun-arc {
  pointer-events: none;
  stroke: var(--accent-strong);
  stroke-width: 1.7;
  transition: d 0.45s var(--ease-out), stroke 0.35s ease;
}

.orient-sun {
  fill: var(--accent-strong) !important;
  stroke: none;
  transition: opacity 0.35s ease, fill 0.35s ease;
}
.orient-badge.is-night .orient-sun {
  fill: var(--slate) !important;
  opacity: 0.5;
}
.orient-badge.is-night .orient-sun-arc {
  stroke: rgba(122, 114, 104, 0.7);
}

.orient-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
}

.orient-kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.orient-caption {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  line-height: 1.3;
  min-height: 1.3em;
}

@media (max-width: 640px) {
  .orient-badge { display: none; }

  .clip-layer video,
  .clip-layer .clip-video {
    /* Facade lock stays; bias crop toward the villa in the taller phone frame */
    object-position: 50% 40%;
  }
}

/* ---------- Facts panel ---------- */

.facts-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(372px, 88vw);
  padding: max(88px, calc(env(safe-area-inset-top) + 88px)) 30px 32px;
  background:
    linear-gradient(180deg, #f3ede2 0%, #ebe4d6 100%);
  border-left: 1px solid var(--line-soft);
  box-shadow: -18px 0 48px -36px rgba(44, 38, 31, 0.22);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}
.facts-panel.is-open { transform: translateX(0); }

.facts-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)' opacity='0.1'/></svg>");
  background-size: 180px 180px;
}

.facts-close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: var(--r-seal);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.facts-close:hover { background: var(--card-strong); border-color: var(--accent); color: var(--accent-strong); }

.facts-kicker {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.facts-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--ink);
}

.facts-sub {
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  line-height: 1.5;
}

.facts-live {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 26px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line-soft);
}

.facts-live-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-seal);
  box-shadow: none;
  transition: opacity 120ms ease;
}
.facts-live-icon svg { width: 17px; height: 17px; display: block; }

.facts-live-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.facts-live-when {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.facts-live-season {
  font-family: var(--font);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1px;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
  margin: 0 0 28px;
}
.facts-grid > div { display: flex; flex-direction: column; gap: 5px; }
.facts-grid dt {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.facts-grid dd {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

.facts-note {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font);
  font-size: 13.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-dim);
}

.facts-quote {
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-soft);
}
.facts-quote p {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}
.facts-quote cite {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-faint);
}

@media (hover: hover) {
  .facts-live,
  .facts-grid > div,
  .facts-energy-row { transition: transform 0.5s var(--ease-out); }
  .facts-grid dt,
  .facts-energy-label { transition: color 0.3s var(--ease-out); }
  .facts-live-icon { transition: transform 0.5s var(--ease-out); }

  .facts-live:hover,
  .facts-grid > div:hover,
  .facts-energy-row:hover { transform: translateX(3px); }
  .facts-live:hover .facts-live-icon { transform: scale(1.08); }
  .facts-grid > div:hover dt { color: var(--accent); }
  .facts-energy-row:hover .facts-energy-label { color: var(--accent); }

  .facts-grid > div { position: relative; }
  .facts-grid > div::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 3px;
    bottom: 3px;
    width: 1px;
    border-radius: 1px;
    background: var(--accent);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s var(--ease-out), opacity 0.35s var(--ease-out);
  }
  .facts-grid > div:hover::before { opacity: 0.7; transform: scaleY(1); }

  .facts-energy-fill { transition: filter 0.35s var(--ease-out); }
  .facts-energy-row:hover .facts-energy-fill { filter: saturate(1.1) brightness(1.02); }
}

/* ---------- Energy panel ---------- */

.facts-energy {
  margin: 0 0 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.facts-energy-title {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.facts-energy-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facts-energy-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
}
.label-ic { width: 14px; height: 14px; flex: none; color: var(--accent); }
.facts-energy-row--live .facts-energy-label { gap: 0; }

.facts-energy-bar {
  height: 2px;
  border-radius: 1px;
  background: rgba(44, 38, 31, 0.1);
  overflow: hidden;
}

.facts-energy-fill {
  display: block;
  height: 100%;
  border-radius: 1px;
}
.facts-energy-fill--solar { background: var(--ochre); }
.facts-energy-fill--cool { background: var(--sage); }
.facts-energy-fill--live {
  background: var(--accent);
  transition: width 0.5s ease, background-color 0.5s ease, filter 0.35s var(--ease-out);
}

.facts-energy-value {
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-dim);
}

.facts-energy-row--live {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.facts-energy-row--live .facts-energy-label {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Mini energy readout ---------- */

.season-energy-mini {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: none;
  width: auto;
  min-width: 140px;
  margin: 0;
  padding: 0;
  border: none;
  text-align: right;
}

.season-energy-mini-bar {
  width: 72px;
  height: 2px;
  border-radius: 1px;
  background: rgba(44, 38, 31, 0.12);
  overflow: hidden;
  order: 2;
}

.season-energy-mini-fill {
  display: block;
  height: 100%;
  border-radius: 1px;
  background: var(--accent);
  transition: width 0.5s ease, background-color 0.5s ease;
}

#season-energy-mini-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: none;
  line-height: 1.3;
  white-space: nowrap;
  order: 1;
}

/* ---------- Intro overlay ---------- */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 48% 46%, rgba(228, 221, 208, 0.82) 0%, rgba(228, 221, 208, 0.55) 46%, rgba(228, 221, 208, 0.18) 76%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: opacity 0.8s var(--ease-out);
}
.intro-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-card {
  position: relative;
  max-width: 620px;
  text-align: center;
  padding: 12px;
  background: none;
  border: none;
  box-shadow: none;
  transition: opacity 0.8s var(--ease-out);
}

.intro-enso {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(300px, 42vw, 470px);
  height: auto;
  transform: translate(-50%, -53%) rotate(-2deg);
  pointer-events: none;
  z-index: -1;
}
.intro-enso path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0.35;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: ensoDraw 1.8s var(--ease-out) 0.2s forwards;
}
@keyframes ensoDraw {
  to { stroke-dashoffset: 80; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-enso path { animation: none; stroke-dashoffset: 80; }
}

@keyframes introRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.intro-kicker { animation: introRise 0.8s var(--ease-out) 0.05s backwards; }
.intro-title  { animation: introRise 0.9s var(--ease-out) 0.18s backwards; }
.intro-body   { animation: introRise 0.9s var(--ease-out) 0.32s backwards; }
.intro-cta    { animation: introRise 0.9s var(--ease-out) 0.48s backwards; }

.intro-overlay.is-hidden .intro-card {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .intro-kicker,
  .intro-title,
  .intro-body,
  .intro-cta { animation: none; }
}

.intro-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.intro-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--accent-strong);
}

.intro-body {
  margin: 0 auto 30px;
  max-width: 420px;
  font-family: var(--font);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-dim);
}

.intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--accent-strong);
  font: 500 13px/1 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.intro-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
  border-color: var(--accent-strong);
  color: var(--ink);
}
.intro-cta:active { transform: translateY(0) scale(0.98); }
.intro-cta span[aria-hidden] {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.intro-cta:hover span[aria-hidden] { transform: translateX(3px); }

.intro-hint {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--ink-dim);
}

/* Season note */
.season-note {
  display: block;
  margin: 0;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-dim);
  text-shadow: none;
}

.rum-cta-bar { display: none !important; }

/* ---------- Entrance choreography ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.is-live .hud { animation: rumDropIn 0.8s var(--ease-out) 0.12s both; }
  body.is-live .orient-badge { animation: rumRiseIn 0.8s var(--ease-out) 0.42s both; }
  body.is-live .season-panel { animation: rumSeasonIn 0.9s var(--ease-out) 0.26s both; }
  body.is-live .stage-frame { animation: framePrint 1.5s var(--ease-out) 0.04s both; }
}

@keyframes framePrint {
  from { opacity: 0; filter: blur(8px) contrast(0.96) sepia(0.06); }
  60% { filter: blur(2px) contrast(0.99) sepia(0.02); }
  to { opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  body.is-live .facts-panel { animation: rumFactsIn 1s var(--ease-out) 0.34s both; }
}
@keyframes rumFactsIn {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes rumDropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rumRiseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rumSeasonIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Season panel — slim washi strip BELOW the print (no card) ---------- */

.season-panel {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  width: min(640px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}
.season-panel .season-track-wrap { pointer-events: auto; }

.season-readout {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding: 0 2px;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.season-readout-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
}

.season-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent-strong);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 120ms ease;
}
.season-icon svg { width: 16px; height: 16px; display: block; }

@keyframes sealStamp {
  0% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.season-icon.is-stamping {
  animation: sealStamp 0.4s var(--ease-out) both;
}

.season-icon::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .season-icon.is-stamping { animation: none; }
}

.season-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: none;
}

.season-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-shadow: none;
  line-height: 1.35;
}

.season-track-wrap {
  position: relative;
  width: 100%;
  padding: 0 2px;
}

.season-track {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: var(--track-h);
  transform: translateY(-50%);
  border-radius: 1px;
  background: linear-gradient(90deg,
    rgba(44, 38, 31, 0.08) 0%,
    rgba(44, 38, 31, 0.28) 50%,
    rgba(44, 38, 31, 0.08) 100%);
}

.season-range {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  height: 28px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: grab;
}
.season-range:active { cursor: grabbing; }

.season-range::-webkit-slider-runnable-track {
  height: var(--track-h);
  background: transparent;
}
.season-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 3px;
  height: 18px;
  margin-top: calc((var(--track-h) - 18px) / 2);
  border-radius: 1px;
  background: var(--ink);
  border: none;
  box-shadow: none;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out);
}
.season-range:hover::-webkit-slider-thumb,
.season-range:active::-webkit-slider-thumb {
  transform: scaleY(1.12);
  background: var(--accent-strong);
  box-shadow: none;
}
.season-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--accent-strong);
}

.season-range::-moz-range-track {
  height: var(--track-h);
  background: transparent;
}
.season-range::-moz-range-thumb {
  width: 3px;
  height: 18px;
  border-radius: 1px;
  background: var(--ink);
  border: none;
  box-shadow: none;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out);
}
.season-range:hover::-moz-range-thumb,
.season-range:active::-moz-range-thumb {
  transform: scaleY(1.12);
  background: var(--accent-strong);
}
.season-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--accent-strong);
}

.season-ticks {
  position: relative;
  height: 28px;
  margin-top: 0;
}

.season-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-dim);
  font: 600 10px/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 2px;
  text-shadow: none;
  transition: color .25s ease, transform .35s var(--ease-out);
}

.season-tick::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 40% 60% 55% 45%;
  background: currentColor;
  opacity: 0.55;
  transition: opacity .3s ease, transform .35s var(--ease-out);
}

.season-tick:hover {
  color: var(--ink);
  transform: translateX(-50%) translateY(-1px);
}
.season-tick:hover::before { opacity: 0.9; transform: scale(1.2); }
.season-tick.is-active { color: var(--accent-strong); }
.season-tick.is-active::before {
  opacity: 1;
  transform: scale(1.25);
}

.season-tick span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px;
  border-radius: 0;
  transition: color .35s var(--ease-out), opacity .35s var(--ease-out);
}
.season-tick.is-active span {
  background: transparent;
  color: var(--accent-strong);
  opacity: 1;
}
.season-tick-ic { display: inline-flex; }
.season-tick-ic svg { width: 12px; height: 12px; display: block; }

@media (max-width: 640px) {
  .mockup-badge { display: none; }

  /* Clear the injected Showroom back pill */
  .hud {
    top: max(56px, calc(env(safe-area-inset-top) + 44px));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    align-items: center;
    gap: 8px;
  }
  .hud-title {
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 12px 9px;
  }
  .hud-kicker { font-size: 9px; letter-spacing: 0.16em; }
  .hud-scene {
    font-size: 15px;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hud-credit { display: none; }
  .hud-controls { gap: 5px; flex: none; }
  .btn-icon { width: 36px; height: 36px; }
  .btn-icon .ic { width: 15px; height: 15px; }

  .share-toast {
    top: max(104px, calc(env(safe-area-inset-top) + 96px));
    right: max(12px, env(safe-area-inset-right));
  }

  /* Pack the print between HUD and dock — kill the empty washi band */
  .stage {
    align-items: center;
    justify-content: flex-end;
    padding-top: max(112px, calc(env(safe-area-inset-top) + 100px));
    padding-bottom: max(156px, calc(env(safe-area-inset-bottom) + 144px));
  }
  .stage-frame {
    /* Slightly taller crop so the villa fills a phone better than strict 3:2 */
    width: min(96vw, 100%);
    aspect-ratio: 5 / 4;
    max-height: calc(100dvh - 280px);
    margin-bottom: 8px;
    border-radius: 2px 5px 3px 4px;
  }

  .season-panel {
    width: calc(100vw - 20px);
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 4px;
  }
  .season-readout {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .season-readout-main { gap: 4px 8px; }
  .season-date { font-size: 17px; }
  .season-meta { font-size: 9.5px; letter-spacing: 0.08em; }
  .season-note {
    font-size: 11px;
    line-height: 1.35;
    /* Reserve space so the orb doesn't cover the note */
    padding-right: 64px;
  }
  .season-energy-mini {
    justify-content: flex-start;
    min-width: 0;
    padding-right: 64px;
  }

  /* Month labels back — dots alone are too cryptic on a phone */
  .season-tick {
    padding: 6px 4px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .season-tick span { display: inline-flex; }
  .season-tick-ic { display: none; }

  /* Larger grab area for the scrubber */
  .season-range { height: 36px; }
  .season-range::-webkit-slider-thumb {
    width: 4px;
    height: 22px;
    margin-top: calc((var(--track-h) - 22px) / 2);
  }
  .season-range::-moz-range-thumb {
    width: 4px;
    height: 22px;
  }
  .season-ticks { height: 26px; }

  /* Intro fits a phone screen without overflow */
  .intro-overlay { padding: 20px 18px; }
  .intro-enso { width: min(240px, 68vw); }
  .intro-kicker { margin-bottom: 12px; font-size: 10px; }
  .intro-title {
    margin-bottom: 12px;
    font-size: clamp(26px, 7.2vw, 34px);
    line-height: 1.1;
  }
  .intro-body {
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.45;
  }
  .intro-cta { padding: 12px 20px; font-size: 12px; }

  /* Facts as a full-bleed sheet */
  .facts-panel {
    width: 100vw;
    padding: max(72px, calc(env(safe-area-inset-top) + 64px)) 20px
      max(28px, calc(env(safe-area-inset-bottom) + 20px));
  }
  .facts-title { font-size: 28px; }
  .facts-grid { gap: 18px 14px; margin-bottom: 22px; }
}

/* Short phones / landscape: keep print + dock usable */
@media (max-width: 900px) and (max-height: 520px) {
  .hud-title { display: none; }
  .stage {
    padding-top: max(56px, calc(env(safe-area-inset-top) + 48px));
    padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 84px));
  }
  .stage-frame {
    width: min(70vw, calc((100dvh - 160px) * 1.5));
  }
  .season-note,
  .season-energy-mini { display: none; }
  .season-panel { gap: 2px; }
}

/* ---------- Docked panel on large screens ---------- */
@media (min-width: 901px) {
  .stage { padding-right: var(--facts-w); }
  .stage-frame {
    width: min(86%, 1120px, calc(62vh * 1.5));
    margin-bottom: clamp(118px, 16vh, 168px);
  }

  .intro-overlay { padding-right: var(--facts-w); }

  .facts-panel {
    width: var(--facts-w);
    transform: none;
    padding-top: 32px;
    box-shadow: -18px 0 48px -40px rgba(44, 38, 31, 0.2);
  }

  #facts-toggle,
  .facts-close { display: none; }

  .hud { right: calc(var(--facts-w) + 20px); }
  .share-toast { right: calc(var(--facts-w) + 20px); }

  .mockup-badge { left: calc((100vw - var(--facts-w)) / 2); transform: translateX(-50%); }
  .season-panel {
    left: calc((100vw - var(--facts-w)) / 2);
    width: min(640px, calc(100vw - var(--facts-w) - 48px));
  }

  /* Orbe RÜM: a la izquierda del panel docked, no encima de él.
     No pelear opacity/visibility — el widget fuerza su propia posición inline. */
  .rum-rum-widget {
    right: calc(var(--facts-w) + 22px) !important;
  }
}
