/* ==========================================================================
   PleApps 共通ハンバーガーローディング スタイルシート (BurgerLoader)
   ========================================================================== */

.burger-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
}

.burger-stack {
  --burger-bun-bottom: #D98E3F;
  --burger-patty: #7C4A2D;
  --burger-cheese: #F6C945;
  --burger-lettuce: #5BAA4A;
  --burger-bun-top: #E8A247;
  --burger-seed: #FFF3D6;
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
}

html.theme-dark .burger-stack,
html.theme-oled .burger-stack {
  --burger-patty: #925B3A;
}

.burger-stack > i {
  position: absolute;
  left: 50%;
  width: 80px;
  margin-left: -40px;
  display: block;
  opacity: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.burger-stack .b-bottom {
  bottom: 6px;
  height: 14px;
  border-radius: 4px 4px 12px 12px;
  background: var(--burger-bun-bottom);
}

.burger-stack .b-patty {
  bottom: 20px;
  height: 14px;
  border-radius: 7px;
  background: var(--burger-patty);
}

.burger-stack .b-cheese {
  bottom: 34px;
  height: 8px;
  border-radius: 2px;
  background: var(--burger-cheese);
}

.burger-stack .b-lettuce {
  bottom: 42px;
  height: 10px;
  border-radius: 8px;
  background: var(--burger-lettuce);
}

.burger-stack .b-top {
  bottom: 52px;
  height: 28px;
  border-radius: 40px 40px 6px 6px;
  background: var(--burger-bun-top);
}

.burger-stack .b-top::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 8px;
  width: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--burger-seed);
  box-shadow: 14px 3px 0 var(--burger-seed), 28px 0 0 var(--burger-seed);
}

.burger-text {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-sub, #a1a1aa);
  min-height: 20px;
  text-align: center;
}

html:not(.burger-js) .burger-stack > i {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .burger-stack > i {
    opacity: 1 !important;
    transform: none !important;
  }
}
