/* Critical CSS — structural layout to prevent FOUC. Loaded blocking; main style.css loads async. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bottom-ui-offset: 160px; }
html, body {
  height: 100%;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}
body {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  margin: 0;
  background-color: transparent;
}
#app {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity .4s ease-in-out;
}
.category-section {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  position: relative;
}
.category-section.active { display: flex; }
.main-header, .category-nav { flex-shrink: 0; }
.products-list {
  padding: 10px 18px calc(var(--bottom-ui-offset) + env(safe-area-inset-bottom, 0px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
  scroll-padding-bottom: calc(var(--bottom-ui-offset) + env(safe-area-inset-bottom, 0px) + 24px);
}
.product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #8fb952;
  border-radius: 12px;
  padding: 12px;
  min-height: 120px;
  cursor: pointer;
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}
.product-thumb {
  width: 95px;
  height: 95px;
  border-radius: 8px;
  background: #0d180d;
  border: 1px solid rgba(124, 255, 79, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bg-layer, .bg-static-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.bg-layer.bg-active, .bg-static-fallback.bg-active {
  opacity: 1;
  visibility: visible;
}
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Minimal positioning for decorative background logo layers before style.css loads. */
.bg-logo-layer {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
