/* 3D kosmoso fonas + stikliniai paneliai. Canvas žemiau turinio. */
html { color-scheme: dark; }
body.space-ui {
  background-color: #020305;
  background-image:
    radial-gradient(ellipse 70% 42% at 50% -12%, rgba(28, 32, 44, .18), transparent 58%),
    linear-gradient(180deg, #020305 0%, #05070a 50%, #020305 100%);
  overflow-x: hidden;
}
.space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #020305;
}
.space-bg canvas.space-bg-gl,
.space-bg .space-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
body.space-ui > .skip-link,
body.space-ui > .announce-bar,
body.space-ui > .site-header,
body.space-ui > .container,
body.space-ui > .site-footer,
body.space-ui > .icon-sprite { position: relative; z-index: 1; }
body.space-ui > .site-header { z-index: 50; }
body.space-ui > .skip-link { z-index: 100; }

.space-fps {
  position: fixed;
  right: .75rem;
  bottom: .75rem;
  z-index: 80;
  margin: 0;
  padding: .25rem .55rem;
  font: 600 .75rem/1.2 var(--font-mono);
  letter-spacing: .04em;
  color: #d0d4dc;
  background: rgba(8, 10, 14, .72);
  border: 1px solid rgba(200, 210, 230, .18);
  border-radius: .25rem;
  pointer-events: none;
}

.panel,
.card,
.form-card,
.filters,
.checkout-summary,
.order-info,
.admin-panel,
.admin-nav,
.metric,
.table-wrap,
table,
.di-chat,
.di-disclaimer,
.chat-panel,
.smarthome-page .sh-modal-sheet {
  background: color-mix(in oklab, var(--n-card) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

@keyframes space-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero, .gate, .form-card, .content-page-header, .error-page {
  animation: space-fade-up .9s ease both;
}
.card, .product-card, .metric, .admin-panel {
  animation: space-fade-up .7s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .hero, .gate, .form-card, .content-page-header, .error-page, .card, .product-card, .metric, .admin-panel {
    animation-duration: 2.4s;
    animation-timing-function: linear;
  }
}
