@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg-top: #587887;
  --bg-mid: #324f5d;
  --bg-bot: #102028;
  --card-bg: rgba(11, 20, 26, 0.78);
  --pill-bg: rgba(7, 13, 17, 0.76);
  --pill-hover: rgba(16, 28, 35, 0.88);
  --pill-active: rgba(24, 42, 50, 0.95);
  --ink: #f4f8fa;
  --muted: rgba(212, 228, 235, 0.68);
  --mist-ink: rgba(210, 228, 236, 0.46);
  --warm: #ff9d2e;
  --warm-soft: #ffc266;
  --mint: #cce6d4;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.28);
  --frame-border: rgba(208, 226, 235, 0.34);
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
}

body[data-mode="garoa"] {
  --bg-top: #527778;
  --bg-mid: #2d4f52;
  --bg-bot: #0e1e21;
}

body[data-mode="janela"] {
  --bg-top: #586c76;
  --bg-mid: #354750;
  --bg-bot: #151e24;
}

body[data-mode="tempestade"] {
  --bg-top: #3d5666;
  --bg-mid: #213544;
  --bg-bot: #0a131b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bot) 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: clamp(14px, 2.4vw, 30px);
  display: grid;
  place-items: center;
  transition: background 0.9s var(--ease-fluid);
}

/* Subtle misty pine silhouette aura behind the outer glass frame */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 44% 62%, rgba(255, 148, 36, 0.14), transparent 45%),
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(162, 196, 210, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.25s var(--ease-fluid),
    background 0.3s var(--ease-fluid),
    border-color 0.3s var(--ease-fluid),
    color 0.3s var(--ease-fluid),
    opacity 0.4s var(--ease-fluid),
    box-shadow 0.3s var(--ease-fluid);
}

button:active {
  transform: scale(0.98);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--warm-soft);
  outline-offset: 3px;
}

::selection {
  background: var(--warm);
  color: #0b1418;
}

svg {
  display: block;
}

/* ==========================================================================
   Framed Glass Viewport Container (WoodNest Outer Frame)
   ========================================================================== */
.app {
  position: relative;
  z-index: 1;
  width: min(1380px, 100%);
  height: 100%;
  max-height: 860px;
  border-radius: 30px;
  padding: 0;
  border: 3.5px solid var(--frame-border);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  background: #1b313b;
  transition: border-radius 0.6s var(--ease-fluid), border-color 0.6s var(--ease-fluid);
}

.scene {
  --sway-deg: 1.4deg;
  --sway-dur: 5.6s;
  isolation: isolate;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scene[data-mode="garoa"] {
  --sway-deg: 0.9deg;
  --sway-dur: 6.8s;
}

.scene[data-mode="janela"] {
  --sway-deg: 1.1deg;
  --sway-dur: 6s;
}

.scene[data-mode="tempestade"] {
  --sway-deg: 2.8deg;
  --sway-dur: 2.8s;
}

.landscape,
.scene-art,
#rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landscape {
  transition: filter 0.85s var(--ease-fluid), transform 0.95s var(--ease-fluid);
}

.scene[data-mode="garoa"] .landscape {
  filter: brightness(1.06) saturate(1.08) hue-rotate(-4deg);
}

.scene[data-mode="janela"] .landscape {
  filter: blur(3.5px) saturate(1.12) brightness(0.95);
  transform: scale(1.03);
}

.scene[data-mode="tempestade"] .landscape {
  filter: brightness(0.82) contrast(1.18) saturate(0.9);
}

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 24% 38%, rgba(16, 34, 42, 0.28), transparent 55%),
    linear-gradient(
      180deg,
      rgba(12, 26, 33, 0.26) 0%,
      transparent 35%,
      transparent 62%,
      rgba(6, 13, 17, 0.78) 100%
    );
  pointer-events: none;
}

#rain {
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   Living SVG Ambient Animations
   ========================================================================== */
@keyframes mistDriftSlow {
  0% {
    transform: translate3d(-45px, 0, 0);
  }
  50% {
    transform: translate3d(45px, 6px, 0);
  }
  100% {
    transform: translate3d(-45px, 0, 0);
  }
}

@keyframes mistDriftReverse {
  0% {
    transform: translate3d(52px, 0, 0);
  }
  50% {
    transform: translate3d(-52px, -5px, 0);
  }
  100% {
    transform: translate3d(52px, 0, 0);
  }
}

@keyframes treeSway {
  0%,
  100% {
    transform: skewX(calc(var(--sway-deg) * -0.6));
  }
  50% {
    transform: skewX(var(--sway-deg));
  }
}

@keyframes hearthFlicker {
  0%,
  100% {
    opacity: 0.94;
  }
  25% {
    opacity: 1;
  }
  55% {
    opacity: 0.84;
  }
  80% {
    opacity: 0.98;
  }
}

@keyframes glowBreath {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.05);
  }
}

@keyframes smokeRise1 {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.85);
  }
  35% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translate3d(-24px, -44px, 0) scale(1.35);
  }
}

@keyframes smokeRise2 {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.82);
  }
  40% {
    opacity: 0.22;
  }
  100% {
    opacity: 0;
    transform: translate3d(18px, -50px, 0) scale(1.4);
  }
}

.svg-mist-sky {
  animation: mistDriftSlow 24s var(--ease-breath) infinite;
}

.svg-mist-far {
  animation: mistDriftReverse 19s var(--ease-breath) infinite;
}

.svg-mist-valley {
  animation: mistDriftSlow 15s var(--ease-breath) infinite;
}

.svg-trees-far {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: treeSway calc(var(--sway-dur) * 1.35) var(--ease-breath) infinite;
}

.svg-trees-mid {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: treeSway var(--sway-dur) var(--ease-breath) infinite;
  animation-delay: -1.6s;
}

.svg-trees-near {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: treeSway calc(var(--sway-dur) * 0.85) var(--ease-breath) infinite;
  animation-delay: -2.8s;
}

.scene-art .light {
  animation: hearthFlicker 3.8s var(--ease-breath) infinite;
}

.scene-art .light-side {
  animation-delay: -1.7s;
}

.svg-light-beam {
  animation: hearthFlicker 4.4s var(--ease-breath) infinite;
}

.svg-amber-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: glowBreath 5.2s var(--ease-breath) infinite;
}

.svg-smoke-1 {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: smokeRise1 7.5s ease-out infinite;
}

.svg-smoke-2 {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: smokeRise2 9.2s ease-out infinite;
  animation-delay: -4s;
}

/* Window Frame & Condensation Haze for "janela" mode */
.window-haze {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 42% 60%, rgba(255, 168, 52, 0.2), transparent 48%),
    linear-gradient(180deg, rgba(16, 32, 38, 0.25), rgba(7, 15, 19, 0.42));
  transition: opacity 0.8s var(--ease-fluid);
}

.window-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  box-shadow: inset 0 0 60px rgba(3, 9, 12, 0.75);
  transition: opacity 0.8s var(--ease-fluid);
  background:
    linear-gradient(
      90deg,
      transparent calc(50% - 3px),
      rgba(15, 27, 33, 0.72) calc(50% - 3px),
      rgba(8, 16, 20, 0.82) calc(50% + 3px),
      transparent calc(50% + 3px)
    ),
    linear-gradient(
      180deg,
      transparent calc(48% - 2px),
      rgba(15, 27, 33, 0.65) calc(48% - 2px),
      rgba(8, 16, 20, 0.75) calc(48% + 2px),
      transparent calc(48% + 2px)
    );
}

.scene[data-mode="janela"] .window-frame,
.scene[data-mode="janela"] .window-haze {
  opacity: 1;
}

.lightning {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 62% 18%, #f0f8fc 0%, #c5e2ee 45%, #7ba4b5 100%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 0.12s ease-out;
}

/* ==========================================================================
   Top Navigation Bar (Floating Inside the Frame)
   ========================================================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 28px 44px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: opacity 0.5s var(--ease-fluid), transform 0.5s var(--ease-fluid);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f4f8fa;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -.04em;
  user-select: none;
}
.brand-mark { width: 32px; height: 32px; color: #c4dce3; flex: none; }
.brand-word { display: inline-flex; align-items: baseline; }
.brand-dot { color: var(--warm); font-size: 48px; line-height: 0; margin-left: 2px; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-note {
  font-size: 13px;
  font-weight: 500;
  color: rgba(235, 244, 248, 0.82);
}

.nav-link {
  border: 0;
  background: none;
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(235, 244, 248, 0.82);
}

.nav-link:hover {
  color: #ffffff;
}

.focus-button {
  background: #ffffff;
  color: #0d181e;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.focus-button:hover {
  background: #f2f7fa;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Monumental Multi-Tone Editorial Greeting & Hero (Left Side, WoodNest Style)
   ========================================================================== */
.greeting {
  position: absolute;
  top: 15%;
  left: 44px;
  z-index: 4;
  max-width: min(680px, calc(100% - 88px));
  user-select: none;
  transition: opacity 0.5s var(--ease-fluid), transform 0.5s var(--ease-fluid);
}

.greeting-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.greeting-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e0ebed;
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.greeting-eyebrow svg { width: 16px; height: 16px; fill: none; stroke: #e1c89d; stroke-width: 1.7; stroke-linecap: round; }

.greeting-text {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 5.3vw, 72px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.04em;
  color: #f4f8fa;
  text-wrap: balance;
  text-shadow: 0 4px 24px #15293255;
}
.hero-line { display: block; }
.greeting-sub {
  display: block;
  margin-top: 8px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 20px;
  color: #d9e5e9;
  text-wrap: pretty;
}

/* ==========================================================================
   Floating Dark-Glass Lodge Control Card (Bottom-Right, WoodNest Style)
   ========================================================================== */
.lodge-card {
  position: absolute;
  right: 40px;
  bottom: 32px;
  z-index: 5;
  width: clamp(304px, 27.5vw, 344px);
  padding: 22px;
  border-radius: 22px;
  background: var(--card-bg);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    opacity 0.5s var(--ease-fluid),
    transform 0.5s var(--ease-fluid);
}

.lodge-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lodge-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
  color: #ffffff;
}

.mute-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 0;
  flex: none;
}

.mute-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
}

.mute-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.mute-button[aria-pressed="true"] {
  color: var(--warm);
  background: rgba(255, 157, 46, 0.16);
  border-color: rgba(255, 157, 46, 0.38);
}

/* 2x2 Dark Capsule Selector (Like Feb 11 / Mar 25 Pills in Reference) */
.atmospheres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.atmosphere {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--pill-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.atmosphere:hover {
  color: #ffffff;
  background: var(--pill-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

.atmosphere[aria-pressed="true"] {
  color: #ffffff;
  background: var(--pill-active);
  border-color: rgba(255, 178, 88, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 157, 46, 0.18);
}

.preview {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.atmosphere[aria-pressed="true"] .preview {
  color: var(--warm-soft);
}

.preview svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atmosphere-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atmosphere-chevron {
  font-size: 14px;
  line-height: 1;
  opacity: 0.45;
  transform: rotate(90deg);
}

.atmosphere[aria-pressed="true"] .atmosphere-chevron {
  opacity: 0.9;
  color: var(--warm-soft);
}

/* Controls Split Box (Like Check-in / Check-out Box in Reference) */
.controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  background: var(--pill-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.volume-control,
.timer-control {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.timer-control {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.setting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.volume-control label,
.timer-control label {
  font-size: 10.5px;
  line-height: 1.2;
  color: rgba(200, 218, 226, 0.56);
  font-weight: 500;
}

#volumeValue {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  appearance: none;
  width: 100%;
  height: 18px;
  margin: 0;
  background: linear-gradient(
      to right,
      #ffffff var(--fill, 60%),
      rgba(255, 255, 255, 0.18) var(--fill, 60%)
    )
    center / 100% 3px no-repeat;
  cursor: pointer;
  touch-action: pan-y;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  background: #ffffff;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s var(--ease-fluid);
}

input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  background: #ffffff;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
}

select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239eb4bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center / 12px 12px;
  border: 0;
  padding: 0 16px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

select option {
  background: #0d181e;
  color: #ffffff;
}

/* Status & Metric Row (Like "$359/night · 2-5 guests" in Reference) */
.lodge-status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lodge-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

#countdown {
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

#countdown[data-active="true"] {
  color: var(--warm-soft);
}

.metric-unit {
  font-size: 12px;
  color: rgba(200, 218, 226, 0.56);
}

.play-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

#status {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  opacity: 0.4;
}

.eq i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: #ffffff;
  transform-origin: bottom;
  transform: scaleY(0.3);
}

body.playing .eq {
  opacity: 1;
}

body.playing .eq i {
  background: var(--warm);
  animation: eqBar 1s var(--ease-breath) infinite;
}

body.playing .eq i:nth-child(2) {
  animation-duration: 0.8s;
  animation-delay: -0.3s;
}

body.playing .eq i:nth-child(3) {
  animation-duration: 1.2s;
  animation-delay: -0.6s;
}

body.playing .eq i:nth-child(4) {
  animation-duration: 0.9s;
  animation-delay: -0.15s;
}

@keyframes eqBar {
  0%,
  100% {
    transform: scaleY(0.28);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Full-Width Crisp White CTA Button (Like "Reserve" in Reference) */
.play-group {
  display: block;
}

.play {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #0b1418;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.play:hover {
  background: #f2f7fa;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

body.playing .play {
  background: linear-gradient(135deg, #ffae42 0%, #ff8814 100%);
  color: #140b02;
  box-shadow: 0 10px 30px rgba(255, 140, 24, 0.38);
}

.play svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

/* Restore button in Immersed Mode */
.restore {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(11, 20, 26, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.restore:hover {
  background: #ffffff;
  color: #0b1418;
}

/* Immersed Mode ("Só a chuva") */
.immersed .header,
.immersed .greeting,
.immersed .lodge-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.immersed .restore {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.immersed.idle-ui .restore {
  opacity: 0.35;
}

.immersed.idle-ui .restore:hover {
  opacity: 1;
}


/* Toast Notice & Credits Dialog */
.notice {
  position: fixed;
  z-index: 10;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 8px);
  background: #ffffff;
  color: #0b1418;
  padding: 12px 20px;
  border-radius: 9999px;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  transition: opacity 0.35s var(--ease-fluid), transform 0.35s var(--ease-fluid);
}

.notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

dialog {
  background: rgba(12, 22, 28, 0.96);
  backdrop-filter: blur(24px);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  width: min(540px, calc(100% - 32px));
  max-height: 84dvh;
  padding: 28px 32px;
  margin: auto;
  font-size: 14px;
  line-height: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75);
}

dialog::backdrop {
  background: rgba(5, 11, 15, 0.76);
  backdrop-filter: blur(8px);
}

dialog h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

dialog p {
  color: var(--muted);
  margin: 0 0 16px;
}

dialog ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

dialog li {
  padding-bottom: 10px;
}

dialog a {
  color: var(--warm-soft);
}

.close {
  position: absolute;
  right: 16px;
  top: 16px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .header {
    padding: 22px 28px 0;
  }

  .top-nav {
    gap: 16px;
  }

  .greeting {
    left: 28px;
    top: 13%;
  }

  
  .lodge-card {
    right: 24px;
    bottom: 24px;
    width: 300px;
    padding: 18px;
  }
}

@media (max-width: 720px) {
  body {
    padding: 8px;
  }

  .app {
    border-radius: 22px;
    border-width: 2.5px;
  }

  .header {
    padding: 16px 18px 0;
  }

  .header-note,
  .nav-link[data-nav-mode] {
    display: none;
  }

  .top-nav {
    gap: 12px;
  }

  .focus-button {
    padding: 6px 14px;
    min-height: 34px;
    font-size: 12px;
  }

  .greeting {
    top: 80px;
    left: 18px;
    right: 18px;
  }

  .greeting-text {
    font-size: 36px;
  }

  .greeting-sub {
    font-size: 12px;
  }

  
  .lodge-card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    padding: 16px;
    gap: 10px;
    border-radius: 18px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  body {
    padding: 8px;
  }

  .header {
    padding: 12px 20px 0;
  }

  .greeting {
    top: 52px;
    left: 20px;
  }

  .greeting-text {
    font-size: clamp(28px, 5vw, 40px);
  }

  .greeting-line {
    display: none;
  }

  
  .caption-copy {
    display: none;
  }

  .lodge-card {
    right: 16px;
    bottom: 12px;
    width: 290px;
    padding: 12px 14px;
    gap: 8px;
  }

  .lodge-kicker {
    display: none;
  }

  h1 {
    font-size: 17px;
  }

  .play {
    height: 36px;
  }
}


/* Passive architectural atmosphere. No minigame, hit targets or counters. */
.landscape { background: #0b1419; }
.scene-art .light { animation: none; }
.svg-light-beam { animation: none; }
.svg-amber-glow { animation: none; }
.scene[data-mode="janela"] .landscape { filter: blur(1.5px) saturate(.92) brightness(.94); }
.nav-link, .focus-button { min-height: 44px; font-size: 14px; }
.setting-head label, .timer-control label { font-size: 12px; }
@media (max-width: 720px) {
  .header { padding: 16px 16px 0; gap: 8px; }
  .brand { font-size: 24px; line-height: 32px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-dot { font-size: 40px; }
  .top-nav { gap: 8px; }
  .nav-link { font-size: 12px; padding: 4px; white-space: nowrap; }
  .focus-button { font-size: 12px; padding: 8px 12px; white-space: nowrap; }
  .greeting { max-width: none; }
  .greeting-inner { gap: 8px; }
  .greeting-sub { font-size: 12px; line-height: 16px; max-width: 38ch; margin-top: 4px; }
}
@media (max-width: 375px) {
  .header { padding: 12px 12px 0; }
  .brand { font-size: 20px; line-height: 28px; gap: 4px; }
  .brand-mark { width: 20px; height: 24px; }
  .brand-dot { font-size: 36px; }
  .top-nav { gap: 4px; }
  .greeting-text { font-size: 30px; line-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-art *, .eq i { animation: none !important; }
  .landscape { transition: none; }
}
body.environment-paused .scene-art * { animation-play-state: paused !important; }
