:root {
  color-scheme:dark; --night:#070a10; --panel:#0c1119; --text:#f6f7fa; --sub:#bec6d0; --quiet:#98a4b3;
  --gold:#ebcca0; --line:#a8b9d12c; --rim:#8191a46b; --face:"Roboto",sans-serif;
  --edge:clamp(24px,6.35vw,115px); --head-top:max(clamp(16px,3.7svh,45px),env(safe-area-inset-top)); --head-height:48px;
}
*,*::before,*::after { box-sizing:border-box }
html,body { margin:0; background:var(--night); color:var(--text) }
/* Место под полосу прокрутки зарезервировано заранее: когда появляются разделы, ширина сайта не меняется */
html { scrollbar-gutter:stable }
body { font:400 18px/1.47 var(--face); -webkit-font-smoothing:antialiased }
[hidden] {display:none!important}
.symbols,.sr-only {position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
button,input,a {font:inherit}
button,a {color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button {padding:0;border:0;background:none;cursor:pointer}
a {text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible {outline:2px solid #f4dcb8;outline-offset:4px}
svg {display:block;pointer-events:none}
h1,h2,h3,h4,p,dl,dd,figure {margin:0}
.icon {width:20px;height:20px;flex:none}
#moon-page {position:relative;isolation:isolate;overflow-x:clip}
#experience {position:relative;overflow:clip;height:100vh;height:100svh;min-height:490px}
#experience[data-phase=event] {overflow:visible}
.night-sky {position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:-2;pointer-events:none;background:var(--night);overflow:hidden}
.night-sky canvas {will-change:transform}
.universe,.universe canvas,.night-sky canvas {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.universe {bottom:auto;z-index:-1;mix-blend-mode:screen}
.masthead {position:absolute;top:var(--head-top);left:max(var(--edge),env(safe-area-inset-left));right:max(var(--edge),env(safe-area-inset-right));height:var(--head-height);display:flex;align-items:center;gap:32px;z-index:4}
.brand {display:inline-flex;align-items:center;min-height:44px;margin-right:auto}
.brand img {width:98px;height:auto;display:block}
.brand .gate-mark {width:26px;height:26px}
#experience[data-phase=event] .gate-mark,#experience:not([data-phase=event]) .brand img {display:none}
.event-nav {display:flex;align-items:center;gap:clamp(18px,2.6vw,43px);font-size:17px;color:#d1d7e1}
.event-nav a {display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;text-underline-offset:5px;transition:color .3s ease,text-decoration-color .3s ease;text-decoration:underline;text-decoration-color:transparent}
.event-nav a:hover,.event-nav a:focus-visible {color:#fff;text-decoration-color:var(--gold)}
.copy {position:absolute;z-index:2;left:var(--edge);width:min(43%,650px);top:48%;transform:translateY(-50%);pointer-events:none}
.copy button,.copy a {pointer-events:auto}
.kicker {display:flex;align-items:center;gap:10px;color:var(--gold);font-size:14px;line-height:1.2;letter-spacing:.105em;font-weight:600;text-transform:uppercase}
.kicker .icon {width:13px;height:13px}
h1 {width:max-content;max-width:100%;color:#fcfbf8;font-weight:600;font-size:clamp(76px,min(8.9vw,14.6svh),160px);line-height:.88;letter-spacing:-.05em;outline:none}
h1 span {display:block}
#experience:not([data-phase=event]) .copy {top:auto;bottom:clamp(32px,9svh,110px);transform:none;width:max-content;max-width:calc(100% - 2*var(--edge))}
#gate-title {font-size:clamp(29px,2.85vw,51px);letter-spacing:-.037em;line-height:1.05;font-weight:400;color:#fff}
.gate-prompt {display:flex;align-items:center;gap:9px;margin-top:10px;color:var(--gold);font-size:clamp(14px,1.15vw,18px);line-height:1.25;font-weight:500}
.gate-prompt::before {content:"";width:21px;height:1px;background:currentColor;opacity:.7}
#experience[data-phase=lighting] .gate-prompt {visibility:hidden}
/* Шпаргалка на стартовом экране */
.gate-guide {display:flex;align-items:center;gap:14px;margin-top:18px;padding:12px 20px 12px 12px;max-width:470px;border:1px solid #e9c99a5c;border-radius:20px;background:#0c1018e0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 10px 40px #0007;animation:rise .9s .5s cubic-bezier(.22,1,.36,1) both}
.guide-icon {position:relative;display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;border:1px solid #e3c49aa8;background:#1e1a15;color:#ffe6bd}
.guide-icon .icon {width:27px;height:27px;animation:tap 1.7s ease-in-out infinite}
.guide-icon::after {content:"";position:absolute;inset:-3px;border-radius:50%;border:1px solid #edd5b0;animation:call 2.2s ease-out infinite}
@keyframes tap {0%,100%{transform:translateY(0)}38%{transform:translateY(-3px)}52%{transform:translateY(1px) scale(.92)}66%{transform:none}}
.guide-body {display:grid;gap:8px;min-width:0}
#guide-text {font-size:clamp(16px,1.2vw,19px);line-height:1.3;color:#f6f2ea;font-weight:500}
.guide-progress {display:flex;align-items:center;gap:7px;min-height:16px;color:var(--gold);font-size:14px;font-weight:500}
.guide-progress i {width:13px;height:13px;border-radius:50%;border:1px solid #d9bd94b0;transition:background .45s,box-shadow .45s,transform .45s cubic-bezier(.22,1,.36,1)}
.guide-progress i.on {background:#f6d199;border-color:#f6d199;box-shadow:0 0 12px #f6d199b0;transform:scale(1.18)}
.guide-progress em {font-style:normal;margin-left:5px}
.guide-progress b {color:#ffe3b3;font-size:17px;font-variant-numeric:tabular-nums}
.spark-body::after {content:"";position:absolute;inset:-4px;border-radius:50%;border:1px solid #f1d3a6c0;animation:call 2.4s ease-out infinite;pointer-events:none}
.spark-target:nth-child(2n) .spark-body::after {animation-delay:-.8s}.spark-target:nth-child(3n) .spark-body::after {animation-delay:-1.6s}
.spark-tip {position:absolute;top:0;left:0;z-index:2;pointer-events:none;opacity:0;transition:opacity .5s ease;will-change:transform}
.spark-tip.show {opacity:1}
.spark-tip span {position:absolute;left:0;bottom:30px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:6px 13px 6px 9px;border-radius:999px;background:#f3d4a3;color:#1d1710;font-size:15px;font-weight:700;white-space:nowrap;box-shadow:0 6px 22px #f0b46a55;animation:hop 1.4s ease-in-out infinite}
.spark-tip span::after {content:"";position:absolute;left:50%;bottom:-5px;width:10px;height:10px;background:inherit;transform:translateX(-50%) rotate(45deg);border-radius:2px}
.spark-tip svg {width:19px;height:19px}
@keyframes hop {0%,100%{translate:0 0}50%{translate:0 -5px}}
.hero-lead {max-width:32ch;margin-top:23px;color:var(--sub);font-size:clamp(17px,1.55vw,24px);line-height:1.32}
#show-title {margin-top:25px}
/* Плавный переход после пятой искры: надпись тает, сцена мягко вспыхивает, герой выплывает по очереди */
#gate-copy {transition:opacity .8s cubic-bezier(.4,0,.2,1),transform .8s cubic-bezier(.4,0,.2,1)}
#experience[data-phase=lighting] #gate-copy {opacity:0;transform:translate3d(0,-14px,0)}
#experience::after {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:0;will-change:opacity;
  background:radial-gradient(ellipse 55% 62% at 50% 50%,#ffd59a24,#ffb86810 45%,transparent 72%);
  transition:opacity 1.8s cubic-bezier(.4,0,.2,1)}
#experience[data-phase=lighting]::after {opacity:1;transition-duration:1.1s}
@keyframes rise {from{opacity:0;transform:translate3d(0,22px,0)}to{opacity:1;transform:none}}
@keyframes fade-in {from{opacity:0}to{opacity:1}}
#hero-intro>*,.hero-actions,.hero-facts dl,.hero-facts .scroll-link {animation:rise 1.15s cubic-bezier(.22,1,.36,1) both}
#hero-intro .kicker {animation-delay:.35s}
#show-title {animation-delay:.5s}
#hero-intro .hero-lead {animation-delay:.7s}
.hero-actions {animation-delay:.9s}
.hero-facts dl {animation-delay:1.05s}
.hero-facts .scroll-link {animation-delay:1.2s}
#experience[data-phase=event] .brand img {animation:fade-in 1s .25s both}
#experience:not([data-phase=event]) .gate-mark {animation:fade-in .8s both}
#hero-copy .hero-lead {max-width:35ch}
@keyframes arrival {from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.hero-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.pill {display:inline-flex;align-items:center;justify-content:center;gap:12px;width:max-content;max-width:100%;min-height:46px;padding:9px 19px;border:1px solid var(--rim);border-radius:999px;background:#0b1019d9;color:#e4ebf4;font-size:17px;line-height:1.2;font-weight:600;transition:background .35s ease,border-color .35s ease,transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s ease}
.pill:hover {transform:translateY(-1px)}
.pill.warm:hover {box-shadow:0 6px 26px #f0b46a2b}
.pill .icon:last-child {transition:transform .35s cubic-bezier(.22,1,.36,1)}
.pill:hover .icon:last-child {transform:translateX(3px)}
.pill.warm {border-color:#b69a72b5;background:#1a1714e6;color:#ffe5bb}
.pill:hover {border-color:#afbdcc;background:#171e27}
.pill.warm:hover {border-color:#ffe1af;background:#30271c}
.pill .icon {width:17px;height:17px}
.pill .icon:first-child:not(:last-child) {width:15px;height:15px}
.hero-facts {position:absolute;z-index:2;bottom:max(26px,4svh);left:var(--edge);right:var(--edge);display:flex;justify-content:space-between;align-items:center;gap:20px}
.hero-facts dl {display:flex;gap:clamp(16px,3.15vw,65px);padding:13px 23px 14px;border:1px solid var(--line);border-radius:17px;background:#0a0e16d9}
.hero-facts dt {font-size:13px;color:var(--quiet);line-height:1.35}
.hero-facts dd {font-size:19px;line-height:1.25;white-space:nowrap}
.scroll-link,.round-arrow,.dialog-close {display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--rim);border-radius:50%;background:#0c121bc9}
.scroll-link .icon {transform:rotate(90deg)}
#spark-field { position: absolute; inset: 0; padding-bottom:env(safe-area-inset-bottom,0px); z-index: 1; overflow: hidden; pointer-events: none }
.spark-target { position: absolute; top: 0; left: 0; width: 60px; height: 60px; display: grid; place-items: center; pointer-events: auto; border-radius: 50%; will-change: transform }
.spark-body {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; position: relative;
  border: 1px solid #ebc790a8; background: #201c18e3; color: #ffe4b4; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.spark-body::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px dashed #ddc0996b; animation: orbit 34s linear infinite }
.spark-body svg { width: 20px; height: 20px; filter: drop-shadow(0 0 4px #ebbd7b94); animation: glint 2.4s ease-in-out infinite alternate }
.spark-target:nth-child(even) .spark-body svg { animation-delay: -1.4s }
.spark-target:hover .spark-body, .spark-target:focus-visible .spark-body { transform: scale(1.14); box-shadow: 0 0 22px #f3c27f55 }
.spark-target { animation: fade-in .7s cubic-bezier(.22,1,.36,1) both }
.spark-target.is-caught { pointer-events: none }
.spark-target.is-caught .spark-body { animation: caught .52s cubic-bezier(.22,1,.36,1) forwards }
@keyframes caught { 35% { transform: scale(1.35); opacity: 1 } to { transform: scale(2.1); opacity: 0 } }
#pulse-tree { position: absolute; z-index: 1; -webkit-user-select: none; user-select: none; border-radius: 20% }
#pulse-tree:focus-visible { outline-offset: -4px; outline: 1px dashed #e7cda7b5 }
.touch-cue {
  display: grid; place-items: center; position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border: 1px solid #dfc199a8; border-radius: 50%; background: #11151ce3;
  color: #fff0d8; transition: opacity .2s; pointer-events: none;
}
.touch-cue svg { width: 25px; height: 25px }
.touch-cue::after { content: ""; position: absolute; inset: -2px; border: 1px solid #edd5b0; border-radius: 50%; animation: call 2.5s ease-out infinite }
#pulse-tree.is-playing .touch-cue { opacity: 0; visibility: hidden }
@keyframes orbit { to { transform: rotate(360deg) } }
@keyframes glint { to { transform: scale(.78); opacity: .74 } }
@keyframes call { 0%, 15% { opacity: .66; transform: scale(.95) } 82%, 100% { opacity: 0; transform: scale(1.45) } }


@media (min-width:1700px) {.copy{width:670px}}
@media (max-width:980px) {.masthead{gap:17px}.event-nav{gap:16px}.hero-actions .pill{font-size:16px;padding-inline:14px}}
@media (max-aspect-ratio:11/10),(max-width:700px) and (max-aspect-ratio:3/2) {
  :root {--edge:clamp(21px,6vw,55px);--head-top:max(clamp(10px,2.1svh,25px),env(safe-area-inset-top));--head-height:44px}
  #experience {min-height:540px}
  #experience[data-phase=event] {min-height:740px}
  .masthead {gap:5px}
  .brand img {width:80px}
  .event-nav {gap:clamp(11px,2.8vw,17px);font-size:clamp(14px,3.45vw,16px)}
  .copy {top:calc(var(--head-top) + var(--head-height) + clamp(15px,2.4svh,32px));left:var(--edge);right:var(--edge);width:auto;transform:none}
  .kicker {font-size:12px;gap:7px}.kicker .icon{width:11px;height:11px}
  #experience:not([data-phase=event]) .copy {top:calc(var(--head-top) + var(--head-height) + clamp(15px,2.4svh,32px));bottom:auto}
  #gate-title {font-size:clamp(29px,7.45vw,49px)}
  .gate-guide {margin-top:12px;padding:9px 14px 9px 9px;gap:11px;max-width:none}.guide-icon{width:40px;height:40px}.guide-icon .icon{width:23px;height:23px}#guide-text{font-size:15px}.guide-body{gap:6px}
  .spark-target{width:48px;height:48px}.spark-body{width:31px;height:31px}.spark-body svg{width:17px;height:17px}
  #show-title {font-size:clamp(59px,15vw,99px);margin-top:14px;line-height:.91}
  #hero-copy .hero-lead {margin-top:13px;max-width:37ch;font-size:17px}
  .hero-actions {gap:7px;margin-top:15px}.hero-actions .pill {min-height:42px;padding:8px 12px;gap:7px;font-size:15px}
  .hero-facts {bottom:14px;gap:0}.hero-facts dl{width:100%;justify-content:space-between;gap:6px;padding:11px 13px;border-radius:14px}.hero-facts dd{font-size:16px}.hero-facts dt{font-size:11px}.scroll-link{display:none}
}
@media (max-width:700px) and (max-aspect-ratio:11/10){
  #experience[data-phase=event] {
    display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;
    row-gap:12px;padding:calc(var(--head-top) + var(--head-height) + 14px) var(--edge) max(13px,env(safe-area-inset-bottom));
  }
  #experience[data-phase=event] .copy,#hero-copy {display:contents;animation:none}
  #hero-intro {grid-row:1;position:relative;z-index:2}
  #show-title {font-size:clamp(42px,11.8vw,71px);line-height:.99;margin-top:9px}
  #show-title span {display:inline;white-space:nowrap}
  #hero-copy .hero-lead {margin-top:8px}
  .hero-actions {grid-row:3;position:relative;z-index:2;align-items:stretch;margin:0}
  .hero-actions .pill {min-height:44px;padding-inline:10px;gap:6px}
  .hero-facts {grid-row:4;position:relative;inset:auto;align-self:end}
  .hero-facts dl {padding-inline:10px;gap:4px}
  .hero-facts dt {white-space:nowrap}
  .hero-facts dd {font-size:clamp(13px,3.72vw,16px)}
  .touch-cue {top:82%}
}
@media (max-width:420px){
  #experience[data-phase=event] .brand img {display:none}
  #experience[data-phase=event] .brand .gate-mark {display:block}
  .hero-actions .warm .icon:last-child {display:none}
}
@media (max-width:365px){.masthead{gap:6px}.event-nav{gap:7px;font-size:13px}.hero-actions .pill{font-size:14px;gap:5px}}
@media (max-width:700px) and (max-aspect-ratio:11/10) {
  html.short-screen #experience[data-phase=event] {height:calc(100svh + var(--mobile-facts-height,56px) + 12px);min-height:0}
}
@media (max-width:365px) and (max-aspect-ratio:11/10) {
  .hero-actions .icon {display:none}
  .hero-actions .pill {padding-inline:10px}
  .hero-facts dl {display:grid;grid-template-columns:1fr 1fr;gap:9px 14px;padding-inline:12px}
  #hero-copy .hero-lead {font-size:15px}
}
@media (min-aspect-ratio:3/2) and (max-height:560px) {
  :root{--head-top:8px;--head-height:40px;--edge:4vw}
  #experience{min-height:330px}#experience[data-phase=event]{min-height:450px}
  .brand img{width:75px}.copy{top:52%}#show-title{font-size:clamp(43px,7.5vw,70px);margin-top:8px}
  #experience:not([data-phase=event]) .copy{bottom:24px}#gate-title{font-size:clamp(24px,3vw,31px)}
  .hero-lead{font-size:16px;margin-top:9px}.hero-actions{margin-top:12px}.hero-facts{bottom:10px}.hero-facts dl{padding-block:5px}.hero-facts dd{font-size:15px}
  .hero-actions {gap:7px;width:max-content;max-width:calc(100vw - 2*var(--edge))}
  .hero-actions .pill {font-size:15px;padding:8px 11px;gap:6px;min-height:42px}
}
@media(prefers-reduced-motion:reduce){html:not(.force-motion) *,html:not(.force-motion) *::before,html:not(.force-motion) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Адрес площадки */
.fact-place a {display:grid;color:inherit;text-decoration:underline;text-decoration-color:#ebcca066;text-underline-offset:4px;transition:text-decoration-color .3s}
.fact-place a:hover {text-decoration-color:var(--gold)}
.fact-place small {font-size:13px;color:var(--quiet);text-decoration:none;margin-top:1px}
@media (max-aspect-ratio:11/10),(max-width:700px) and (max-aspect-ratio:3/2) {
  .hero-facts dl {flex-wrap:wrap;row-gap:8px}
  .hero-facts .fact-place {flex-basis:100%;padding-top:8px;border-top:1px solid var(--line)}
  .fact-place small {font-size:12px}
}
.hero-facts dl .fact-place {grid-column:1/-1}
