/* Flooded Mode · a brief threshold, then the real body-state loop. */

html.flooded-mode-on #tabs,
html.flooded-mode-on .tabbar,
html.flooded-mode-on .harbor-nav,
#device.is-flooded #tabs,
#device.is-flooded .tabbar {
  opacity: 0 !important;
  pointer-events: none !important;
}

.flooded-veil {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  background: #0a0d09;
  color: #ede7d6;
  opacity: 0;
  transition: opacity .22s ease;
}

.flooded-veil.in { opacity: 1; }

.flooded-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 48% at 50% 42%, rgba(10, 13, 9, .16), rgba(10, 13, 9, .72) 76%),
    linear-gradient(180deg, rgba(10, 13, 9, .3), rgba(10, 13, 9, .78));
  pointer-events: none;
}

.flooded-veil-art {
  position: absolute;
  inset: -5%;
  opacity: .78;
  transform: scale(1.08);
}

.flooded-veil-art .lt-vig {
  width: 100%;
  height: 100%;
  display: block;
}

.flooded-veil-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  text-align: center;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .6);
}

.flooded-k {
  margin: 0 0 14px;
  color: rgba(195, 183, 154, .9);
  font: 500 10px/1.2 var(--font-brand, system-ui, sans-serif);
  letter-spacing: .22em;
  text-transform: lowercase;
}

.flooded-veil h2 {
  margin: 0;
  font: 500 clamp(2rem, 6vw, 3.2rem)/1.05 var(--font-brand, system-ui, sans-serif);
  letter-spacing: -.045em;
}

.flooded-copy {
  margin: 14px auto 0;
  max-width: 36ch;
  color: rgba(237, 231, 214, .78);
  font: 400 clamp(14px, 2.2vw, 17px)/1.55 var(--font-brand, system-ui, sans-serif);
}

.flooded-arrival {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
}

.flooded-arrival i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(237, 231, 214, .72);
  animation: flooded-arrive 1.2s ease-in-out infinite;
}
.flooded-arrival i:nth-child(2) { animation-delay: .16s; }
.flooded-arrival i:nth-child(3) { animation-delay: .32s; }

@keyframes flooded-arrive {
  0%, 100% { opacity: .2; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .flooded-veil { transition: none; }
  .flooded-arrival i { animation: none; opacity: .72; }
}
