*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120vh;
  background: #f5f0eb;
  font-family: 'Georgia', serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  transition: opacity 0.6s ease;
}


.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loading-text {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #8a7a6e;
  font-family: Georgia, serif;
  font-style: italic;
}

.dots span {
  animation: blink 1.4s infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40%           { opacity: 1; }
}

/* --- liquid fill animation --- */
.liquid-group {
  animation: fillUp 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes fillUp {
  0%    { transform: translateY(210px); }
  5%    { transform: translateY(210px); }
  78%   { transform: translateY(0px);   }
  88%   { transform: translateY(0px);   }
  100%  { transform: translateY(210px); }
}

/* --- wave --- */
.wave-layer {
  animation: waveMove 2.4s linear infinite;
}

@keyframes waveMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-140px); }
}

/* --- bubbles --- */
.bubble-1 {
  animation: rise1 2.1s ease-in infinite 0.5s;
}
.bubble-2 {
  animation: rise2 1.9s ease-in infinite 1.1s;
}
.bubble-3 {
  animation: rise3 2.5s ease-in infinite 0.3s;
}
.bubble-4 {
  animation: rise4 2.0s ease-in infinite 1.6s;
}

@keyframes rise1 {
  0%   { transform: translateY(0);   opacity: 0.5; }
  100% { transform: translateY(-70px); opacity: 0; }
}
@keyframes rise2 {
  0%   { transform: translateY(0);   opacity: 0.4; }
  100% { transform: translateY(-70px); opacity: 0; }
}
@keyframes rise3 {
  0%   { transform: translateY(0);   opacity: 0.4; }
  100% { transform: translateY(-80px); opacity: 0; }
}
@keyframes rise4 {
  0%   { transform: translateY(0);   opacity: 0.4; }
  100% { transform: translateY(-70px); opacity: 0; }
}