:root {
  color-scheme: dark;
  --background: #06172b;
  --text: #e7f1fa;
  --subtle: #96b0c6;
  --line: rgba(167, 202, 225, .19);
  --sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text);
  background: radial-gradient(ellipse 110% 85% at 50% -15%, #0a2948 0%, #071e36 44%, #06172b 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.shell {
  width: min(1480px, calc(100% - 104px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.header {
  min-height: 93px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
}
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(174, 205, 231, .46);
  border-radius: 50%;
  color: #d9ecf9;
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .15em;
  white-space: nowrap;
}
.clock {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 11px 0 11px 14px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.clock-city {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .065em;
  white-space: nowrap;
}
.clock-zone { margin-left: 10px; color: #748fa8; }
.clock-time {
  color: #edf7ff;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.clock:hover .clock-time, .clock:focus-visible .clock-time { color: #a3d5f6; }
.clock:focus-visible, .spire-trigger:focus-visible, .brand:focus-visible {
  outline: 2px solid #a5d6f8;
  outline-offset: 5px;
}
.main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 0 45px;
}
.panorama {
  width: min(100%, 1390px);
  margin: 0;
}
.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1672 / 746;
  background: #0b2c50;
  border: 1px solid rgba(163, 205, 238, .26);
  box-shadow: 0 24px 68px rgba(0, 8, 24, .17);
}
.artwork, .artwork img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.artwork img {
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter 3.5s ease;
}
.white-night {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(130, 173, 219, .43), rgba(168, 192, 210, .06) 75%);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 3.2s ease;
}
.scene.is-awake .white-night { opacity: .84; }
.scene.is-awake .artwork img { filter: brightness(1.18) saturate(.9); }
.bridge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}
.scene.is-awake .bridge { opacity: 1; }
.bridge-leaf { transition: transform 3.1s cubic-bezier(.16, .65, .18, 1); }
.bridge-leaf-left { transform-origin: 1387px 587px; }
.bridge-leaf-right { transform-origin: 1671px 587px; }
.scene.is-awake .bridge-leaf-left { transform: rotate(-28deg); }
.scene.is-awake .bridge-leaf-right { transform: rotate(28deg); }
.boat {
  position: absolute;
  left: -13%;
  bottom: 10%;
  z-index: 3;
  width: 7.4%;
  min-width: 26px;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(215, 242, 255, .45));
}
.boat svg { width: 100%; height: auto; display: block; }
.scene.is-awake .boat { opacity: 1; animation: sail 12s linear 1s both; }
@keyframes sail { from { left: -13%; } to { left: 108%; } }
.spire-trigger {
  position: absolute;
  z-index: 4;
  left: 35.2%;
  top: 14%;
  width: 7.5%;
  height: 62%;
  border: 0;
  border-radius: 44% 44% 16% 16%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}
.spire-trigger::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(190, 226, 250, .8);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s ease;
}
.spire-trigger:hover::after, .spire-trigger:focus-visible::after { opacity: .8; }
.snow { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.flake {
  position: absolute;
  top: -10px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background: #f6fbff;
  border-radius: 50%;
  opacity: 0;
}
.scene.is-snowing .flake { animation: fall var(--duration) linear var(--delay) infinite; }
@keyframes fall {
  0% { transform: translate3d(0, -15px, 0); opacity: 0; }
  7% { opacity: var(--opacity); }
  90% { opacity: var(--opacity); }
  100% { transform: translate3d(var(--drift), 85vh, 0); opacity: 0; }
}
.notification {
  position: absolute;
  top: 10%;
  left: 50%;
  z-index: 5;
  width: min(450px, 88%);
  padding: 20px 24px 23px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: rgba(5, 22, 41, .91);
  border: 1px solid rgba(172, 212, 239, .55);
  box-shadow: 0 15px 55px rgba(0, 6, 17, .35);
  backdrop-filter: blur(10px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition: opacity .4s ease, visibility .4s ease, transform .4s ease;
}
.notification.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.notification-tag {
  color: #91b8d1;
  font: 400 10px/1.5 var(--mono);
  letter-spacing: .08em;
}
.notification-title { font: 500 clamp(16px, 2.1vw, 24px)/1.35 var(--sans); }
.notification-detail { color: #a8c5d9; font: 400 11px/1.55 var(--mono); }
.notification-detail[hidden] { display: none; }
.caption {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 1px;
}
.caption-title { font-size: 14px; font-weight: 400; letter-spacing: .005em; color: #dceaf4; }
.caption-place { color: var(--subtle); font-family: var(--mono); font-size: 11px; letter-spacing: .015em; white-space: nowrap; }
.footer {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: #7895ad;
  font-size: 11px;
}
.coordinates { font: 400 10px/1.5 var(--mono); letter-spacing: .02em; }
@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .header { min-height: 74px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .brand-name { font-size: 11px; letter-spacing: .08em; }
  .clock { gap: 0; padding-left: 4px; }
  .clock-city { display: none; }
  .clock-time { font-size: 14px; }
  .main { padding: 32px 0 24px; }
  .scene { aspect-ratio: 5 / 4; }
  .spire-trigger { left: 22.5%; top: 13%; width: 18%; height: 64%; }
  .spire-trigger::after { top: 9%; width: 16px; height: 16px; }
  .caption { min-height: 72px; align-items: flex-start; gap: 6px; flex-direction: column; justify-content: center; padding-top: 14px; padding-bottom: 10px; }
  .caption-title { font-size: 14px; }
  .caption-place { font-size: 10px; }
  .footer { min-height: 63px; font-size: 10px; }
  .coordinates { font-size: 9px; }
  .notification { top: 8%; width: 90%; padding: 13px 12px 15px; gap: 6px; }
  .notification-tag { font-size: 9px; }
  .notification-title { font-size: 16px; }
  .notification-detail { font-size: 10px; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 28px); }
  .brand-name { font-size: 10px; }
  .coordinates { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
