.shuka-splash {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  text-align: center;
  touch-action: none;
  overscroll-behavior: contain;
  opacity: 1;
  transition: opacity 300ms ease;
}

html.shuka-splash-active {
  overflow: hidden;
}

html.shuka-splash-active .shuka-splash {
  display: flex;
}

html.shuka-splash-leaving .shuka-splash {
  opacity: 0;
  pointer-events: none;
}

.shuka-splash-content {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  animation: shuka-splash-appear 200ms ease-out both;
}

.shuka-splash-logo {
  display: block;
  width: 128px;
  height: 128px;
  margin-bottom: 16px;
  object-fit: contain;
}

.shuka-splash-copy {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.shuka-splash-copy--he {
  display: none;
}

html[lang='he'] .shuka-splash-copy--he {
  display: flex;
}

html[lang='he'] .shuka-splash-copy--en {
  display: none;
}

.shuka-splash-name {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 750;
  line-height: 1.15;
}

.shuka-splash-tagline {
  color: var(--muted);
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
}

@keyframes shuka-splash-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shuka-splash {
    transition: none;
  }

  .shuka-splash-content {
    animation: none;
  }
}

/* Hanukkah 2026 — seasonal splash decoration. */
.shuka-splash-content--hanukkah {
  position: relative;
}

.shuka-hanukkah {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: min(220px, 100%);
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.shuka-hanukkah-wax {
  fill: var(--hanukkah-wax);
  stroke: var(--control-line);
  stroke-width: 0.8;
}

.shuka-hanukkah-flame {
  transform-origin: 0 -4px;
  animation: shuka-hanukkah-flicker 1.15s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px var(--hanukkah-glow));
}

.shuka-hanukkah-flame-outer {
  fill: var(--accent);
}

.shuka-hanukkah-flame-inner {
  fill: var(--hanukkah-flame-inner);
}

@keyframes shuka-hanukkah-flicker {
  from {
    transform: scale(0.94, 0.97);
  }

  to {
    transform: scale(1.03, 1.06);
  }
}

/* Keep the candles on screen in short/landscape viewports. */
@media (max-height: 440px) {
  .shuka-hanukkah {
    position: static;
    transform: none;
    margin-top: 10px;
    width: min(180px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shuka-hanukkah-flame {
    animation: none;
  }
}
