/* v532 - pouze uvodni stranka: animovane pozadi + tmavy glass vzhled hlavniho parametrového panelu.
   Bez zmeny textu, rozlozeni, logiky, USP bloku, hlavicky a paticky. */

/* 1) Pohybujici se pozadi podle dodaneho nahledu. */
#startScreen {
  position: relative !important;
  isolation: isolate !important;
  background: #111 !important;
}

#startScreen::before {
  content: "";
  position: fixed;
  inset: -7%;
  z-index: 0;
  pointer-events: none;
  background-image: url("./start-background-v532.webp");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  filter: saturate(.88) contrast(1.02) brightness(.80);
  transform: translate3d(0, 0, 0) scale(1.18);
  animation: ahp-start-camera-v532 34s ease-in-out infinite alternate;
  will-change: transform;
}

#startScreen::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(8,10,13,.58) 0%, rgba(8,10,13,.34) 33%, rgba(8,10,13,.22) 60%, rgba(8,10,13,.42) 100%),
    radial-gradient(circle at 55% 48%, rgba(255,255,255,.06), rgba(0,0,0,.35) 78%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: cover, cover, 160px 160px;
}

#startScreen .start-content-layout {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
}

@keyframes ahp-start-camera-v532 {
  0%   { transform: translate3d(0, 0, 0) scale(1.18); }
  100% { transform: translate3d(-6.5%, 0, 0) scale(1.09); }
}

@media (prefers-reduced-motion: reduce) {
  #startScreen::before {
    animation: none !important;
    transform: scale(1.12) !important;
  }
}

/* 2) Cerne / glass modalni okno - pouze hlavni start-card. */
#startScreen .start-card {
  color: #fff !important;
  background: linear-gradient(145deg, rgba(17,20,23,.84), rgba(17,20,23,.62)) !important;
  border-color: rgba(255,255,255,.18) !important;
  border-radius: 22px !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.12) !important;
  backdrop-filter: blur(16px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(115%) !important;
}

#startScreen .start-copy .start-title,
#startScreen .start-title-rest,
#startScreen .start-copy .start-subtitle,
#startScreen .chooser-block > h2 {
  color: #fff !important;
}

#startScreen .start-title-brand {
  color: #e1262f !important;
}

#startScreen .choice-card {
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

#startScreen .choice-card:hover,
#startScreen .choice-card:focus-visible {
  color: #fff !important;
  border-color: rgba(255,255,255,.28) !important;
  background: rgba(255,255,255,.13) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 8px 22px rgba(0,0,0,.18) !important;
}

#startScreen .choice-card.active,
#startScreen .choice-card.active:hover,
#startScreen .choice-card.active:focus-visible {
  border-color: #28b864 !important;
  background: rgba(255,255,255,.105) !important;
  box-shadow: 0 0 0 2px rgba(40,184,100,.17), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

#startScreen .choice-label {
  color: #fff !important;
}

#startScreen .choice-desc {
  color: rgba(255,255,255,.72) !important;
}

#startScreen .swatch {
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
}

#startScreen .color-brush-swatch {
  border-color: transparent !important;
  background: transparent !important;
}

#startScreen .numeric-swatch {
  background: rgba(255,255,255,.92) !important;
  color: #c71920 !important;
}

#startScreen .wall-input > span,
#startScreen .wall-input-label-line > span:first-child {
  color: rgba(255,255,255,.72) !important;
}

#startScreen .wall-input input {
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}

#startScreen .wall-input input::placeholder {
  color: rgba(255,255,255,.48) !important;
}

#startScreen .wall-input input:focus {
  border-color: #28b864 !important;
  box-shadow: 0 0 0 2px rgba(40,184,100,.10), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

#startScreen .wall-input.is-valid input,
#startScreen .wall-input input.is-valid {
  border-color: #28b864 !important;
  background: rgba(255,255,255,.10) !important;
  box-shadow: 0 0 0 2px rgba(40,184,100,.10), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

#startScreen .wall-range-help {
  border-color: rgba(255,255,255,.35) !important;
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.82) !important;
}

#startScreen .wall-range-help:hover,
#startScreen .wall-range-help:focus,
#startScreen .wall-range-help:focus-visible {
  border-color: #e1262f !important;
  color: #fff !important;
  background: rgba(225,38,47,.16) !important;
}

#startScreen .start-actions .btn-light {
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}

#startScreen .start-actions .btn-light:hover,
#startScreen .start-actions .btn-light:focus-visible {
  color: #fff !important;
  border-color: rgba(255,255,255,.30) !important;
  background: rgba(255,255,255,.13) !important;
}

#startScreen .start-actions .btn-primary {
  color: #fff !important;
  border: 1px solid #bd151c !important;
  background: linear-gradient(180deg, #d82129, #bd151c) !important;
  box-shadow: 0 10px 20px rgba(196,24,31,.22) !important;
}

#startScreen .start-actions .btn-primary:hover,
#startScreen .start-actions .btn-primary:focus-visible {
  color: #fff !important;
  background: linear-gradient(180deg, #e1262f, #c2171e) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #startScreen .start-card {
    background: rgba(17,20,23,.94) !important;
  }
}
