:root {
  color-scheme: dark;
  --ink: #fff8ee;
  --muted: #d8c7b5;
  --faint: rgba(255, 248, 238, 0.68);
  --surface: rgba(54, 35, 27, 0.78);
  --surface-strong: rgba(37, 25, 20, 0.94);
  --line: rgba(255, 230, 193, 0.18);
  --line-bright: rgba(255, 213, 158, 0.42);
  --amber: #f4a45f;
  --gold: #ffd18b;
  --rose: #e98c82;
  --sage: #a8c69a;
  --sky: #9fcbd2;
  --shadow: 0 22px 62px rgba(20, 10, 5, 0.34);
  --radius: 22px;
  --weather-particle: rgba(255, 226, 183, 0.85);
  --season-a: rgba(238, 151, 91, 0.2);
  --season-b: rgba(136, 184, 160, 0.16);
}

body[data-season="winter"] {
  --season-a: rgba(173, 216, 224, 0.2);
  --season-b: rgba(127, 157, 181, 0.15);
  --weather-particle: rgba(240, 248, 255, 0.9);
}

body[data-season="spring"] {
  --season-a: rgba(235, 151, 158, 0.18);
  --season-b: rgba(169, 204, 132, 0.2);
  --weather-particle: rgba(255, 193, 204, 0.76);
}

body[data-season="autumn"] {
  --season-a: rgba(235, 157, 73, 0.23);
  --season-b: rgba(179, 97, 64, 0.15);
  --weather-particle: rgba(246, 176, 89, 0.78);
}

body[data-weather="rain"],
body[data-weather="storm"] {
  --season-a: rgba(106, 159, 176, 0.2);
  --season-b: rgba(83, 112, 139, 0.16);
  --weather-particle: rgba(178, 222, 238, 0.8);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, var(--season-a), transparent 25rem),
    radial-gradient(circle at 92% 14%, rgba(255, 211, 139, 0.16), transparent 29rem),
    radial-gradient(circle at 72% 92%, var(--season-b), transparent 30rem),
    linear-gradient(145deg, #211813 0%, #16110f 46%, #291b16 100%);
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.5;
  background:
    linear-gradient(rgba(255, 236, 213, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 236, 213, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 50% 5%, rgba(255, 239, 207, 0.1), transparent 32rem);
  background-size: 48px 48px, 48px 48px, auto;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
}

body::after {
  z-index: -3;
  opacity: 0.62;
  background:
    radial-gradient(ellipse at 22% 25%, rgba(238, 147, 105, 0.12), transparent 17rem),
    radial-gradient(ellipse at 78% 72%, rgba(164, 202, 147, 0.1), transparent 19rem);
  will-change: transform;
  animation: roomLight 20s ease-in-out infinite alternate;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--amber), var(--gold), var(--sage));
  box-shadow: 0 0 18px rgba(244, 164, 95, 0.62);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.weather-layer,
.sky-band,
.motion-orbit { position: fixed; pointer-events: none; }

.weather-layer {
  inset: 0;
  z-index: -1;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
}

.weather-layer::before {
  position: absolute;
  inset: -15%;
  content: "";
  background:
    radial-gradient(circle at 70% 14%, rgba(255, 242, 215, 0.2), transparent 10rem),
    linear-gradient(116deg, transparent 38%, rgba(255, 240, 211, 0.06) 48%, transparent 58%);
  will-change: transform;
  animation: skySway 16s ease-in-out infinite alternate;
}

body[data-weather="cloudy"] .weather-layer::before,
body[data-weather="fog"] .weather-layer::before {
  background:
    radial-gradient(ellipse at 18% 16%, rgba(255, 245, 225, 0.14), transparent 16rem),
    radial-gradient(ellipse at 74% 21%, rgba(255, 243, 219, 0.12), transparent 20rem),
    radial-gradient(ellipse at 48% 43%, rgba(255, 249, 236, 0.08), transparent 21rem);
}

body[data-weather="storm"] .weather-layer::after {
  position: absolute;
  inset: 0;
  content: "";
  animation: lightning 10s linear infinite;
}

.weather-particle {
  position: absolute;
  top: -12vh;
  display: block;
  opacity: 0.78;
  will-change: transform;
  animation-name: weatherFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.weather-particle.rain {
  width: 2px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, var(--weather-particle));
}

.weather-particle.snow,
.weather-particle.spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--weather-particle);
  box-shadow: 0 0 12px rgba(255, 242, 218, 0.5);
}

.weather-particle.spark { width: 3px; height: 3px; opacity: 0.45; }

.weather-particle.leaf,
.weather-particle.petal {
  width: 11px;
  height: 7px;
  border-radius: 80% 0 80% 0;
  background: var(--weather-particle);
  animation-name: weatherFall, leafSpin;
}

.sky-band {
  z-index: -2;
  width: 42rem;
  height: 14rem;
  opacity: 0.36;
  filter: blur(38px);
  will-change: transform;
  animation: bandFloat 18s ease-in-out infinite alternate;
}

.sky-band-one {
  top: -9rem;
  right: -14rem;
  border-radius: 50%;
  background: rgba(244, 163, 98, 0.34);
}

.sky-band-two {
  bottom: -9rem;
  left: -15rem;
  border-radius: 50%;
  background: rgba(132, 183, 151, 0.28);
  animation-delay: -7s;
}

.motion-orbit {
  z-index: -2;
  width: 19rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 223, 181, 0.1);
  border-radius: 50%;
  opacity: 0.68;
  will-change: transform;
  animation: driftRing 22s ease-in-out infinite;
}

.motion-orbit::before,
.motion-orbit::after { position: absolute; content: ""; }
.motion-orbit::before { inset: 18%; border: 1px dashed rgba(168, 198, 154, 0.22); border-radius: inherit; }
.motion-orbit::after { top: 14%; right: 18%; width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px rgba(255, 208, 139, 0.7); }
.orbit-one { top: 10rem; right: -10rem; }
.orbit-two { bottom: 6rem; left: -11rem; width: 15rem; animation-delay: -10s; }

.site-header,
main { width: min(1120px, calc(100% - clamp(28px, 5vw, 56px))); margin-inline: auto; }

.site-header {
  display: block;
  padding: clamp(34px, 7vw, 74px) 0 clamp(22px, 4vw, 42px);
}

.title-block { position: relative; animation: titleIn 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) both; }
.title-block::before { position: absolute; top: -18px; left: -18px; width: 72px; height: 72px; content: ""; border-top: 1px solid rgba(255, 207, 146, 0.55); border-left: 1px solid rgba(255, 207, 146, 0.55); border-radius: 16px 0 0; }

.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: 0; text-wrap: balance; }
h1 { max-width: none; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4.35vw, 3.65rem); font-weight: 700; line-height: 1.04; white-space: nowrap; text-shadow: 0 3px 28px rgba(255, 176, 112, 0.18); }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.7vw, 2.15rem); line-height: 1.08; }

.header-widgets { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin-top: 20px; }

.weather-pill,
.time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(50, 33, 26, 0.55);
  box-shadow: inset 0 1px rgba(255,255,255,0.06), 0 10px 28px rgba(20, 10, 5, 0.18);
  backdrop-filter: blur(16px);
  color: var(--faint);
  font-size: 0.9rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.weather-pill:hover, .time-pill:hover { transform: translateY(-2px); border-color: var(--line-bright); background: rgba(65, 42, 31, 0.66); }
.weather-pill { min-width: 280px; }
.time-pill { min-width: 210px; }
.weather-place, .weather-pill small, .time-pill strong { color: var(--ink); font-weight: 750; }
.time-pill small { color: var(--gold); font-size: 0.88rem; font-variant-numeric: tabular-nums; font-weight: 750; }
.time-pill span { width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(168, 198, 154, 0.14), 0 0 12px rgba(168, 198, 154, 0.44); animation: softPulse 3.4s ease-in-out infinite; }
.location-pin { position: relative; width: 14px; height: 14px; flex: 0 0 auto; border: 2px solid var(--rose); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.location-pin::after { position: absolute; top: 3px; left: 3px; width: 4px; height: 4px; content: ""; border-radius: 50%; background: var(--rose); }
.weather-mark { width: 14px; aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; background: #f7cf73; box-shadow: 0 0 13px rgba(247, 207, 115, 0.58); }
body[data-weather="cloudy"] .weather-mark, body[data-weather="fog"] .weather-mark { background: #c8c8c0; box-shadow: -6px 2px 0 -2px #f0e9db, 6px 3px 0 -3px #9d9c97; }
body[data-weather="rain"] .weather-mark, body[data-weather="storm"] .weather-mark { background: #86bdd1; box-shadow: 0 0 13px rgba(134, 189, 209, 0.48); }
body[data-weather="snow"] .weather-mark, body[data-season="winter"] .weather-mark { background: #f3fbff; box-shadow: 0 0 0 5px rgba(199, 223, 229, 0.15), 0 0 13px rgba(255, 255, 255, 0.62); }

main { display: grid; gap: clamp(26px, 4vw, 42px); padding-bottom: clamp(48px, 8vw, 78px); }
section { position: relative; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }

.map-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 470px);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(128deg, rgba(255, 223, 184, 0.1), transparent 42%), var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map-section::before { position: absolute; right: 9%; bottom: -28px; width: 160px; height: 160px; content: ""; border: 1px solid rgba(255, 210, 150, 0.17); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255, 210, 150, 0.03), 0 0 0 48px rgba(255, 210, 150, 0.02); animation: mapPulse 5.5s ease-in-out infinite; }
.map-section .section-heading { display: block; margin: 0; }
.map-section .section-heading::after { display: block; max-width: 28rem; margin-top: 18px; content: "Коротко: красная точка показывает камеру, а штриховка - видимую зону без перекрытий домами."; color: var(--muted); line-height: 1.65; }

.map-frame,
.video-shell,
.support-section,
.contact-section {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.interactive-frame { transition: transform 0.35s cubic-bezier(0.2, 0.85, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease; }
.interactive-frame:hover { transform: translateY(-4px); border-color: var(--line-bright); box-shadow: 0 30px 74px rgba(20, 10, 5, 0.46); }

.map-frame { z-index: 1; margin: 0; overflow: hidden; border-radius: 17px; }
.map-frame img { display: block; width: 100%; aspect-ratio: 1.42 / 1; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.85, 0.25, 1), filter 0.45s ease; }
.map-frame:hover img { transform: scale(1.045); filter: saturate(1.08) contrast(1.04); }
.map-frame::after { position: absolute; inset: 0; content: ""; pointer-events: none; background: linear-gradient(110deg, transparent 20%, rgba(255, 240, 217, 0.26) 48%, transparent 72%); transform: translateX(-140%); animation: mapShimmer 7.5s ease-in-out infinite; }

.player-section { padding-top: 2px; }
.video-shell { overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: #160f0c; }
.video-shell::before { position: absolute; inset: 0; z-index: 3; content: ""; pointer-events: none; border: 1px solid rgba(255, 213, 158, 0.26); border-radius: inherit; box-shadow: inset 0 0 50px rgba(255, 171, 103, 0.08); animation: frameGlow 5.8s ease-in-out infinite; }
video { display: block; width: 100%; height: 100%; object-fit: contain; background: #110c0a; }

.player-overlay { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; color: var(--ink); text-align: center; background: radial-gradient(circle at 50% 45%, rgba(244, 164, 95, 0.13), transparent 29%), rgba(24, 15, 11, 0.78); transition: opacity 0.28s ease, visibility 0.28s ease; }
.player-overlay.hidden { visibility: hidden; opacity: 0; }
.player-overlay p { max-width: 580px; margin: 0; color: rgba(255, 247, 236, 0.92); font-weight: 700; line-height: 1.5; }
.player-overlay button,
.max-button { min-height: 46px; border: 1px solid rgba(255, 218, 163, 0.44); border-radius: 999px; padding: 0 20px; background: linear-gradient(135deg, #d17b61, #eeb36f); color: #2b1710; font: inherit; font-weight: 800; text-decoration: none; box-shadow: 0 10px 26px rgba(225, 139, 91, 0.25); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.player-overlay button:hover, .max-button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 34px rgba(225, 139, 91, 0.35); }
.orbital-loader { position: relative; width: 70px; aspect-ratio: 1; border: 1px solid rgba(255, 215, 158, 0.55); border-radius: 50%; animation: loaderFloat 3.8s ease-in-out infinite; }
.orbital-loader span { position: absolute; inset: 9px; border: 2px solid transparent; border-top-color: var(--gold); border-radius: 50%; animation: spin 1.45s linear infinite; }
.orbital-loader span + span { inset: 20px; border-top-color: var(--rose); animation-duration: 1.05s; animation-direction: reverse; }

.local-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 11px; color: var(--muted); font-size: 0.9rem; }
.local-tools[hidden] { display: none; }
.local-tools a { border-bottom: 1px solid var(--amber); color: var(--gold); font-weight: 700; text-decoration: none; transition: color 0.2s ease; }
.local-tools a:hover { color: #fff2d8; }

.archive-section { padding: clamp(24px, 4vw, 38px); background: radial-gradient(circle at 12% 16%, rgba(244, 180, 105, 0.16), transparent 20rem), linear-gradient(145deg, rgba(255, 237, 208, 0.07), transparent 45%), var(--surface); }
.archive-intro { max-width: 620px; margin: -2px 0 22px; color: var(--muted); line-height: 1.6; }
.archive-controls { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 12px; align-items: end; }
.archive-controls label { display: grid; gap: 7px; color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.archive-controls input { min-height: 46px; border: 1px solid rgba(255, 214, 157, 0.32); border-radius: 10px; padding: 0 12px; background: rgba(38, 24, 17, 0.68); color: var(--ink); color-scheme: dark; font: inherit; }
.archive-controls input:focus { outline: 2px solid rgba(239, 181, 106, 0.54); outline-offset: 2px; }
.archive-controls button { min-height: 46px; border: 1px solid rgba(255, 218, 163, 0.44); border-radius: 999px; padding: 0 20px; background: linear-gradient(135deg, #d17b61, #eeb36f); color: #2b1710; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 10px 26px rgba(225, 139, 91, 0.22); transition: transform 0.2s ease, filter 0.2s ease; }
.archive-controls button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.archive-controls button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.archive-timeline { margin-top: 24px; padding: 14px 14px 12px; border: 1px solid rgba(255, 213, 158, 0.24); border-radius: 8px; background: rgba(13, 10, 9, 0.72); box-shadow: inset 0 1px rgba(255, 255, 255, 0.035); }
.archive-timeline[hidden] { display: none; }
.timeline-hours { display: grid; grid-template-columns: repeat(9, 1fr); margin-bottom: 8px; color: rgba(255, 239, 216, 0.56); font-size: 0.68rem; font-weight: 700; }
.timeline-hours span { transform: translateX(-50%); white-space: nowrap; }
.timeline-hours span:first-child { transform: none; text-align: left; }
.timeline-hours span:last-child { transform: translateX(-100%); text-align: right; }
.timeline-track { position: relative; height: 42px; border: 1px solid rgba(255, 224, 183, 0.18); border-radius: 5px; overflow: hidden; background: #171311; }
.timeline-grid { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(4.166% - 1px), rgba(255, 241, 222, 0.11) calc(4.166% - 1px), rgba(255, 241, 222, 0.11) 4.166%); }
.timeline-availability, .timeline-selection { position: absolute; inset: 0; pointer-events: none; }
.timeline-segment { position: absolute; top: 12px; height: 18px; min-width: 2px; border-radius: 2px; background: linear-gradient(180deg, #6f95ff, #476bd7); box-shadow: 0 0 10px rgba(87, 126, 232, 0.26); }
.timeline-selection { top: 7px; bottom: 7px; height: auto; border: 2px solid #f3bd72; border-radius: 4px; background: rgba(240, 170, 91, 0.17); box-shadow: 0 0 18px rgba(236, 161, 83, 0.25); transition: left 0.12s ease, width 0.12s ease; }
.timeline-scrubber { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.timeline-track::after { position: absolute; top: 0; bottom: 0; left: var(--cursor-position, 0%); z-index: 2; width: 2px; content: ""; background: #ffd180; box-shadow: 0 0 10px rgba(255, 190, 102, 0.9); transform: translateX(-1px); pointer-events: none; }
.timeline-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 0.78rem; }
.timeline-footer span { display: inline-flex; align-items: center; gap: 7px; }
.timeline-footer strong { color: var(--gold); font-size: 0.86rem; }
.timeline-record-dot { width: 14px; height: 8px; border-radius: 2px; background: #5c82eb; box-shadow: 0 0 8px rgba(92, 130, 235, 0.42); }
.archive-status { min-height: 1.5em; margin: 16px 0 0; color: var(--gold); font-weight: 700; }
.archive-video-shell { position: relative; aspect-ratio: 16 / 9; margin-top: 18px; overflow: hidden; border: 1px solid rgba(255, 211, 153, 0.3); border-radius: 16px; background: #110c0a; box-shadow: inset 0 0 48px rgba(255, 178, 109, 0.09); }
.archive-video-shell video { object-fit: contain; }

.support-section,
.contact-section { display: grid; align-items: center; gap: 30px; padding: clamp(24px, 4vw, 42px); overflow: visible; }
.support-section { grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); background: radial-gradient(circle at 88% 36%, rgba(236, 158, 83, 0.2), transparent 16rem), linear-gradient(135deg, rgba(255, 226, 190, 0.09), transparent 40%), var(--surface); }
.contact-section { grid-template-columns: 1fr; background: radial-gradient(circle at 82% 24%, rgba(163, 200, 149, 0.14), transparent 18rem), var(--surface); }
.support-copy p:last-child, .contact-copy p { max-width: 620px; margin: 14px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.max-button { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; }

.qr-card { position: relative; justify-self: end; display: grid; gap: 18px; width: min(100%, 230px); padding: 12px; border-radius: 18px; background: #fff8ec; color: #3a2117; text-align: center; text-decoration: none; box-shadow: 0 20px 48px rgba(20, 10, 5, 0.28); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.qr-card:hover { transform: translateY(-5px) rotate(0.5deg); box-shadow: 0 26px 56px rgba(20, 10, 5, 0.38); }
.qr-card span { color: #4d2d20; font-size: 0.86rem; font-weight: 800; }
.qr-image-wrap { position: relative; display: block; padding: 9px; border-radius: 12px; background: #fffdf7; isolation: isolate; overflow: visible; }
.qr-image-wrap::before { display: none; }
.qr-image-wrap img { position: relative; z-index: 3; display: block; width: 100%; border-radius: 7px; background: #fff; transition: transform 0.35s ease; }
.qr-image-wrap .qr-fire-frame { position: absolute; inset: -30px; z-index: 1; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; border-radius: 0; background: transparent; filter: drop-shadow(0 0 7px rgba(255, 89, 24, 0.56)); pointer-events: none; transform-origin: center; animation: realFireFlicker 4.8s ease-in-out infinite; }
.qr-card:hover img { transform: scale(1.015); }
.qr-flame-frame { display: none; }
.flame-route { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flame-glow { stroke: rgba(229, 96, 32, 0.38); stroke-width: 10; filter: blur(5px); animation: softFlicker 3.8s ease-in-out infinite; }
.flame-core { stroke: url(#qrFlameGradient); stroke-width: 3.2; stroke-dasharray: 13 11; filter: url(#qrFlameWobble) drop-shadow(0 0 3px rgba(235, 111, 39, 0.62)); animation: flameTravel 6.2s linear infinite, flameBreathe 3s ease-in-out infinite; }
.flame-run { stroke: #fff3c8; stroke-width: 1.8; stroke-dasharray: 1 18; filter: drop-shadow(0 0 3px rgba(255, 212, 114, 0.76)); animation: flameTravel 4.4s linear infinite, emberWink 1.7s ease-in-out infinite; }
.flame-lash, .flame-spark, .flame-ember { display: none; }
.flame-right, .flame-run-b, .flame-lash-b, .flame-spark-b, .flame-ember-b { animation-delay: -1.8s; }
.flame-tongues { filter: url(#qrFlameWobble); }
.flame-tongue { fill: url(#qrFlameGradient); opacity: 0.78; transform-box: fill-box; transform-origin: center bottom; filter: drop-shadow(0 0 3px rgba(244, 106, 31, 0.62)); animation: flameTongue 3.2s ease-in-out infinite; }
.flame-tongue.tongue-b { animation-delay: -0.8s; animation-duration: 3.4s; }
.flame-tongue.tongue-c { animation-delay: -1.6s; animation-duration: 2.5s; }
.flame-tongue.tongue-d { animation-delay: -2.1s; animation-duration: 3.1s; }
.flame-tongue.tongue-e { animation-delay: -0.45s; animation-duration: 2.6s; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.85, 0.25, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes roomLight { to { transform: translate3d(2%, -1.5%, 0) scale(1.04); } }
@keyframes skySway { to { transform: translate3d(-4%, 2%, 0) scale(1.04); } }
@keyframes bandFloat { to { transform: translate3d(-3rem, 1.4rem, 0) scale(1.06); } }
@keyframes driftRing { 50% { transform: translate3d(-1rem, 1.1rem, 0) rotate(18deg); } 100% { transform: translate3d(0.7rem, -0.5rem, 0) rotate(35deg); } }
@keyframes titleIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes softPulse { 50% { transform: scale(1.13); box-shadow: 0 0 0 6px rgba(168, 198, 154, 0.08), 0 0 17px rgba(168, 198, 154, 0.5); } }
@keyframes mapPulse { 50% { transform: scale(1.05); opacity: 0.56; } }
@keyframes mapShimmer { 14%, 100% { transform: translateX(145%); } }
@keyframes frameGlow { 50% { box-shadow: inset 0 0 68px rgba(255, 178, 109, 0.18), 0 0 0 1px rgba(255, 213, 158, 0.16); } }
@keyframes loaderFloat { 50% { transform: translateY(-5px); } }
@keyframes weatherFall { to { transform: translate3d(var(--drift), 118vh, 0) rotate(18deg) scale(var(--scale)); } }
@keyframes leafSpin { 50% { rotate: 120deg; } }
@keyframes lightning { 0%, 92%, 96%, 100% { background: transparent; } 93% { background: rgba(255,255,255,0.14); } 94% { background: rgba(255,255,255,0.03); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flameTravel { to { stroke-dashoffset: -120; } }
@keyframes softFlicker { 50% { opacity: 0.82; stroke-width: 18; } }
@keyframes flameBreathe { 50% { opacity: 0.82; stroke-width: 8; } }
@keyframes flameTongue { 0%, 100% { opacity: 0.48; transform: scaleX(0.68) scaleY(0.62) rotate(-2deg); } 45% { opacity: 0.9; transform: scaleX(0.92) scaleY(0.94) rotate(3deg); } 72% { transform: scaleX(0.74) scaleY(0.76) rotate(-4deg); } }
@keyframes emberWink { 50% { opacity: 0.38; } }
@keyframes realFireFlicker { 0%, 100% { filter: brightness(0.94) saturate(1.02) drop-shadow(0 0 6px rgba(255, 89, 24, 0.5)); transform: scale(0.992) rotate(-0.2deg); } 42% { filter: brightness(1.11) saturate(1.14) drop-shadow(0 0 11px rgba(255, 112, 35, 0.78)); transform: scale(1.008) rotate(0.2deg); } 68% { filter: brightness(0.99) saturate(0.96) drop-shadow(0 0 8px rgba(255, 170, 61, 0.62)); transform: scale(1.002) rotate(-0.12deg); } }

@media (max-width: 820px) {
  .site-header { padding-top: 34px; }
  .header-widgets { justify-content: flex-start; width: 100%; }
  .weather-pill, .time-pill { justify-content: flex-start; width: 100%; min-width: 0; padding: 10px 14px; font-size: 0.84rem; }
  h1 { max-width: 11ch; font-size: clamp(2.3rem, 12vw, 3.6rem); white-space: normal; }
  h2 { font-size: 1.5rem; }
  .map-section { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .map-section .section-heading::after { margin-top: 12px; font-size: 0.95rem; }
  .map-frame img { aspect-ratio: 1.52 / 1; }
  .section-heading { display: block; margin-bottom: 11px; }
  .video-shell { aspect-ratio: 4 / 3; margin-inline: -2px; }
  .player-overlay { padding: 18px; }
  .support-section, .contact-section { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .archive-section { padding: 22px; }
  .archive-controls { grid-template-columns: 1fr 1fr; }
  .archive-controls label:first-child { grid-column: 1 / -1; }
  .archive-controls button { grid-column: 1 / -1; }
  .archive-timeline { margin-inline: -8px; padding-inline: 9px; }
  .timeline-hours span:nth-child(even) { visibility: hidden; }
  .timeline-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .qr-card { justify-self: center; width: min(100%, 225px); }
  .local-tools { align-items: stretch; flex-direction: column; }
}

@media (max-width: 430px) {
  .site-header, main { width: min(100% - 24px, 1120px); }
  .title-block::before { top: -12px; left: -8px; width: 48px; height: 48px; }
  .weather-pill { gap: 7px; }
  .weather-place { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .support-section, .contact-section, .map-section { margin-inline: -2px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
