.water-page-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.water-shell-page {
  background:
    radial-gradient(circle at top, rgba(110, 182, 255, 0.2), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(100, 214, 176, 0.16), transparent 20%),
    linear-gradient(180deg, #eef6ff 0%, #f8f1ea 50%, #eef8f3 100%);
}

.water-head {
  padding-bottom: 12px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--moyu-accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.water-stage-card {
  padding: 16px;
  border-radius: 32px;
}

.compact-list li:last-child {
  margin-bottom: 0;
}

.water-topbar,
.water-level-strip,
.water-insight-grid {
  display: grid;
  gap: 16px;
}

.water-section-head,
.water-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.water-section-head h2,
.water-board-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.water-meta-copy,
.water-banner-kicker,
.water-info-card .card-copy {
  color: var(--moyu-muted);
}

.water-level-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.water-level-list::-webkit-scrollbar {
  display: none;
}

.water-level-button {
  position: relative;
  flex: 0 0 auto;
  min-width: 78px;
  padding: 12px 14px;
  border: 1px solid rgba(63, 51, 40, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--moyu-ink);
  text-align: left;
}

.water-level-button span,
.water-level-button strong {
  display: block;
}

.water-level-button span {
  margin-bottom: 4px;
  font-size: 0.76rem;
  color: var(--moyu-muted);
}

.water-level-button.active {
  background: linear-gradient(135deg, rgba(114, 182, 255, 0.18), rgba(100, 214, 176, 0.2));
  border-color: rgba(114, 182, 255, 0.28);
  box-shadow: 0 16px 28px rgba(114, 182, 255, 0.14);
}

.water-level-button.locked {
  opacity: 0.48;
}

.water-level-button.cleared::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 10px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(100, 214, 176, 0.2);
  color: #198d6b;
  font-weight: 800;
}

.water-level-stars {
  display: flex;
  gap: 2px;
  min-height: 14px;
  margin-top: 8px;
  font-style: normal;
}

.water-star-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.water-star {
  color: rgba(63, 51, 40, 0.18);
  font-size: 0.92rem;
  line-height: 1;
}

.water-star.is-active {
  color: #f1bb48;
  text-shadow: 0 4px 10px rgba(241, 187, 72, 0.28);
}

.water-hud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.water-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.water-meta-pill {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(63, 51, 40, 0.08);
}

.water-meta-pill span,
.water-meta-pill strong {
  display: block;
}

.water-meta-pill span {
  margin-bottom: 4px;
  font-size: 0.76rem;
  color: var(--moyu-muted);
}

.water-meta-pill strong {
  font-size: 1.02rem;
}

.water-hud-card {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(63, 51, 40, 0.08);
}

.water-hud-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--moyu-muted);
}

.water-hud-card strong {
  font-size: 1.08rem;
}

.water-board-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 252, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  border: 1px solid rgba(63, 51, 40, 0.08);
}

.water-goal-line {
  margin: 12px 2px 0;
  color: var(--moyu-muted);
  font-size: 0.88rem;
}

.water-difficulty-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(47, 36, 26, 0.08);
  color: var(--moyu-ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.water-difficulty-pill[data-difficulty="medium"] {
  background: rgba(244, 201, 90, 0.18);
  color: #a56916;
}

.water-difficulty-pill[data-difficulty="hard"] {
  background: rgba(238, 102, 117, 0.16);
  color: #b84f5d;
}

.water-board-wrap {
  position: relative;
  margin-top: 16px;
  padding: 14px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(180deg, rgba(215, 235, 255, 0.6), rgba(232, 245, 239, 0.72));
  border: 1px solid rgba(88, 130, 178, 0.12);
}

.water-board {
  display: grid;
  grid-template-columns: repeat(var(--water-columns, 4), minmax(0, 1fr));
  gap: 12px;
}

.water-board-overlay {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  overflow: hidden;
}

.water-bottle {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  transition: transform 160ms ease, filter 160ms ease;
}

.water-bottle.is-selected {
  transform: translateY(-6px);
}

.water-bottle.is-invalid {
  animation: waterBottleShake 320ms ease;
}

.water-bottle.is-selected .water-liquid-slot.is-filled,
.water-bottle.is-pouring-from .water-liquid-slot.is-filled {
  animation: waterLiquidSway 1.35s ease-in-out infinite;
}

.water-bottle .water-liquid-slot.is-filled:nth-child(2n) {
  animation-delay: -0.28s;
}

.water-bottle .water-liquid-slot.is-filled:nth-child(3n) {
  animation-delay: -0.5s;
}

.water-bottle.is-pouring-from {
  transform: translateY(-8px) rotate(-5deg);
}

.water-bottle.is-pouring-to {
  transform: translateY(-3px) scale(1.02);
}

.water-bottle-shell {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.58 / 1;
  border-radius: 22px 22px 16px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(232, 243, 255, 0.36)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  border: 2px solid rgba(123, 155, 187, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.48),
    0 18px 28px rgba(87, 119, 147, 0.12);
  overflow: hidden;
}

.water-bottle-shell::before {
  content: "";
  position: absolute;
  inset: 8px auto 14px 9px;
  width: 18%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  opacity: 0.75;
}

.water-bottle-rim {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 7px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(90, 122, 150, 0.12);
}

.water-bottle-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(63, 51, 40, 0.08);
  color: var(--moyu-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.water-liquid-stack {
  position: absolute;
  inset: 18px 10px 12px;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.water-liquid-slot {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
}

.water-liquid-slot.is-filled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--liquid-color) 84%, white), var(--liquid-color));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 6px 12px color-mix(in srgb, var(--liquid-color) 30%, transparent);
}

.water-bottle.is-selected .water-bottle-shell,
.water-bottle.is-targetable .water-bottle-shell,
.water-bottle.is-hint-target .water-bottle-shell {
  border-color: rgba(114, 182, 255, 0.68);
}

.water-bottle.is-selected .water-bottle-index {
  background: linear-gradient(135deg, rgba(114, 182, 255, 0.2), rgba(100, 214, 176, 0.22));
  color: #21598c;
}

.water-bottle.is-targetable .water-bottle-shell {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.56),
    0 18px 28px rgba(87, 119, 147, 0.12),
    0 0 0 4px rgba(114, 182, 255, 0.12);
}

.water-bottle.is-hint-target .water-bottle-shell {
  animation: waterHintPulse 1.2s ease-in-out infinite;
}

.water-bottle.is-sorted .water-bottle-index {
  background: rgba(100, 214, 176, 0.18);
  color: #198d6b;
}

.water-control-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.water-finish-banner,
.water-stuck-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 22px;
}

.water-finish-banner {
  background: linear-gradient(135deg, rgba(100, 214, 176, 0.16), rgba(114, 182, 255, 0.16));
  border: 1px solid rgba(100, 214, 176, 0.24);
}

.water-stuck-banner {
  background: linear-gradient(135deg, rgba(255, 201, 90, 0.14), rgba(238, 102, 117, 0.12));
  border: 1px solid rgba(255, 201, 90, 0.24);
}

.water-finish-banner h3,
.water-stuck-banner h3 {
  margin: 2px 0 6px;
  font-size: 1.08rem;
}

.water-finish-banner p,
.water-stuck-banner p {
  margin: 0;
  color: var(--moyu-muted);
}

.water-finish-metrics,
.water-finish-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.water-finish-metrics strong,
.water-finish-meta strong {
  font-size: 0.96rem;
}

.water-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.water-empty-best {
  color: var(--moyu-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.water-star {
  color: rgba(47, 36, 26, 0.18);
}

.water-star.is-active {
  color: #f2bf54;
}

.water-stuck-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(220px, 100%);
}

.water-message {
  margin: 14px 2px 0;
  color: var(--moyu-muted);
  line-height: 1.6;
}

.water-finish-copy {
  flex: 1 1 auto;
}

.water-info-card {
  border-radius: 26px;
}

.water-stream {
  position: absolute;
  height: 10px;
  border-radius: 999px;
  transform-origin: left center;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), color-mix(in srgb, var(--stream-color) 92%, white));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 8px 18px color-mix(in srgb, var(--stream-color) 36%, transparent);
  transition: transform 220ms ease, opacity 150ms ease;
}

.water-stream::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--stream-color) 88%, white);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--stream-color) 30%, transparent);
}

.water-stream.is-live {
  opacity: 0.94;
  transform: translateY(-50%) rotate(var(--stream-rotation, 0deg)) scaleX(1);
}

.water-hint-line {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%) rotate(var(--hint-rotation, 0deg));
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(114, 182, 255, 0.24), rgba(114, 182, 255, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.48),
    0 8px 16px rgba(114, 182, 255, 0.24);
}

.water-hint-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 3px solid rgba(114, 182, 255, 0.98);
  border-right: 3px solid rgba(114, 182, 255, 0.98);
  background: rgba(255, 255, 255, 0.82);
}

.water-toast {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translate(-50%, 16px);
  min-width: 180px;
  max-width: calc(100% - 24px);
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(12, 22, 34, 0.8);
  color: #f7fbff;
  text-align: center;
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.water-toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.hidden {
  display: none !important;
}

@keyframes waterHintPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.56),
      0 18px 28px rgba(87, 119, 147, 0.12),
      0 0 0 0 rgba(114, 182, 255, 0.18);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.56),
      0 18px 28px rgba(87, 119, 147, 0.12),
      0 0 0 7px rgba(114, 182, 255, 0);
  }
}

@keyframes waterBottleShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

@keyframes waterLiquidSway {
  0%,
  100% {
    transform: translateX(0) scaleY(1);
    border-radius: 10px;
  }
  50% {
    transform: translateX(1.5px) scaleY(0.985);
    border-radius: 12px 8px 11px 9px;
  }
}

@media (max-width: 560px) {
  .water-hud-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .water-stage-card,
  .water-board-card {
    padding: 14px;
  }

  .water-board-wrap {
    padding: 12px;
  }

  .water-board {
    gap: 10px;
  }

  .water-finish-banner,
  .water-stuck-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .water-stuck-actions {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .water-page-content {
    gap: 14px;
  }

  .water-stage-card,
  .water-board-card {
    padding: 12px;
    border-radius: 24px;
  }

  .water-topbar,
  .water-level-strip,
  .water-insight-grid {
    gap: 12px;
  }

  .water-hud-grid,
  .water-meta-row {
    gap: 8px;
  }

  .water-hud-card,
  .water-meta-pill,
  .water-level-button {
    padding: 10px 12px;
    border-radius: 16px;
  }
}
