#loading-bar-section {
  background-color: #F6C445;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: -1rem;;
  cursor: none;
}

.loading-text {
  font-family: 'East Sea Dokdo', cursive;
  font-size: 4rem;
  color: #E45F2B;
  margin-bottom: -1rem;
  z-index: 10;
  text-align: center;
}

.loading-bar-wrapper {
  position: relative;
  width: min(80vw, 600px);
  aspect-ratio: 6 / 1;
}

.loading-bar-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
}

.loading-bar-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  border-radius: 999rem;
  display: flex;
  align-items: center;
}

.loading-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  clip-path: inset(0 100% 0 0); /* 初始隐藏全部 */
  transition: clip-path 0.3s ease;
  z-index: 1;
  display: flex;
  align-items: center; /* ✅ 让 inner 居中 */
  justify-content: flex-start;
}

.loading-bar-inner {
  height: 40%; /* ✅ 控制你想要的 bar 粗细，例：35% 宽度 */
  width: 90%;
  background-color: #E45F2B;
  border-top-left-radius: 999rem;
  border-bottom-left-radius: 999rem;
}


.loading-bar-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

#loading-float-line {
  font-family: 'Edu SA Beginner', cursive;
  font-weight: 600;
  font-size: 1.75rem;
  color: #E4602C;
  margin-top: 2rem;
  text-align: center;
  white-space: nowrap;
}

#loading-float-line .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%) scale(0.95);
}

/* buffer section */
#buffer-section {
  position: relative;
  width: 100vw;
  height: 80vh;
  background-color: #F6C445;
  background-image: url('images/loading_bg.png');
  background-size:cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* 让内容靠底部 */
  padding-bottom: 10rem; /* 内容与底部背景之间留空间 */
  cursor: none;
}

.buffer-content {
  z-index: 2;
  text-align: center;
  margin-bottom: 20rem;;
}

.buffer-text {
  font-size: clamp(5rem, 8vw, 15rem);
  font-family: 'East Sea Dokdo', sans-serif;
  color: #14142B;
  padding: 1rem 2rem;

  transform: translateX(-150vw);
  opacity: 1;
  white-space: nowrap;
}

