.buffer-tile {
  height: 362px;
  min-height: 362px;
  overflow: visible;
}

.buffer-layout {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.buffer-visual-wrap {
  --buffer-tank-width: 150px;
  --buffer-tank-height: 288px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  display: flex;
  justify-content: center;
  padding: 4px 12px 14px 24px;
  scrollbar-width: thin;
}

.buffer-visual {
  --tank-liquid-gradient: linear-gradient(180deg,
    rgba(251,103,64,.98) 0%,
    rgba(251,93,52,.97) 18%,
    rgba(214,97,97,.96) 33%,
    rgba(167,101,155,.95) 49%,
    rgba(104,129,222,.95) 65%,
    rgba(76,157,244,.96) 82%,
    rgba(62,172,255,.97) 100%);
  position: relative;
  isolation: isolate;
  overflow: visible;
  flex: 0 0 var(--buffer-tank-width);
  width: var(--buffer-tank-width);
  min-width: var(--buffer-tank-width);
  min-height: var(--buffer-tank-height);
  padding: 9px 8px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 29px 29px 31px 31px / 60px 60px 40px 40px;
  border: 1px solid rgba(255,204,150,.22);
  background: linear-gradient(180deg, rgba(84,50,34,.98), rgba(29,28,38,.985) 56%, rgba(18,36,58,.99));
  box-shadow:
    inset 0 1px 0 rgba(255,245,235,.16),
    inset 0 0 0 1px rgba(255,255,255,.018),
    inset 0 8px 14px rgba(255,181,104,.05),
    inset 0 -10px 14px rgba(74,184,255,.07),
    0 0 12px rgba(255,152,69,.08),
    0 10px 21px rgba(0,0,0,.30);
}

.buffer-visual::before {
  content: "";
  position: absolute;
  inset: 6px 6px 9px;
  z-index: 0;
  border-radius: 21px 21px 23px 23px / 51px 51px 26px 26px;
  background:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,.06), transparent 11%),
    radial-gradient(circle at 20% 66%, rgba(255,255,255,.05), transparent 11%),
    radial-gradient(ellipse at 50% 1%, rgba(255,229,198,.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01) 16%, transparent 30%),
    var(--tank-liquid-gradient);
  box-shadow:
    inset 0 1px 0 rgba(255,238,225,.08),
    inset 0 -5px 9px rgba(0,0,0,.10),
    inset 4px 0 7px rgba(255,255,255,.02),
    inset -4px 0 7px rgba(0,0,0,.04);
}

.buffer-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 58px;
  height: 15px;
  z-index: 0;
  border-radius: 2px 2px 5px 5px;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(77,107,143,.86), rgba(41,59,84,.94));
  box-shadow: 0 5px 10px rgba(0,0,0,.24);
}

.buffer-segment {
  --hue: 210;
  --alpha: .28;
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 11px;
  overflow: visible;
  background: radial-gradient(ellipse at center, hsla(var(--hue), 75%, 58%, calc(var(--alpha) * .32)), transparent 68%);
  transition: background 700ms cubic-bezier(.2,.6,.2,1);
}

.buffer-segment::before,
.buffer-segment::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(240,244,248,.98), rgba(145,155,170,.96));
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 2px 5px rgba(0,0,0,.16);
}

.buffer-segment::before {
  left: -18px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #d9dee8 55%, #9ea7b7 78%, #6f7a8d);
  box-shadow: 0 0 0 1px rgba(86,103,126,.58), 0 2px 5px rgba(0,0,0,.18);
}

.buffer-segment::after {
  left: -8px;
  width: 21px;
  height: 5px;
  border-radius: 999px;
}

.buffer-zone-label,
.buffer-segment strong {
  position: relative;
  z-index: 3;
}

.buffer-zone-label {
  margin-bottom: 5px;
  color: rgba(255,244,236,.90);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

.buffer-segment strong {
  color: #fff7f0;
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.28);
}

@media (max-width: 520px) {
  .buffer-visual-wrap {
    justify-content: flex-start;
  }
}
