:root {
    --bg: #0f1724;
    --card: #0b1220;
    --accent: #7c3aed;
    /* purple candy accent */
    --water: linear-gradient(180deg, #008cff 0%, #2b9ad6 60%);
    --glass: rgba(255, 255, 255, 0.06);
    --muted: #9aa4b2;
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Basic page layout */
html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

body {
    background: radial-gradient(1200px 1200px at 10% 10%, rgba(150, 58, 237, 0.12), transparent 10%),
        radial-gradient(900px 900px at 90% 90%, rgba(76, 0, 255, 0.06), transparent 10%),
        var(--bg);
    color: #e6eef8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    overflow-y: auto;
}

.panel {
    width: min(920px, 96vw);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    padding: 28px;
    /* box-shadow: 0 8px 50px rgba(2, 6, 23, 0.288); */
    display: grid;
    align-items: center;
    border: 3px solid rgba(255, 134, 150, 0.103);
}

@media (max-width:740px) {
    body{
        padding: 10px;
    }
    .panel {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 16px;
    }
}

/* Left: animated tank */
.tank-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.label {
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* SVG container styling */
.tank {
    width: 320px;
    max-width: 86%;
    height: 360px;
    position: relative;
    display: block;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
}

/* percent text centered over tank */
.tank .percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-weight: 700;
    font-size: 32px;
    color: white;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.desc {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    max-width: 320px;
}

/* Right side content */
.info {
    padding: 8px 6px;
}

h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.05;
    color: #f4f6fb;
}

p.lead {
    margin: 0 0 18px 0;
    color: var(--muted);
}

.progress-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.bar {
    flex: 1;
    height: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.bar>.fill {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255, 0, 64, 0.9), rgba(255, 84, 92, 0.877));
    overflow: hidden;
    border-radius: 8px;
    transition: width 300ms linear;
    box-shadow: 0 6px 18px rgba(255, 134, 184, 0.9) inset;
}

/* Particle overlay – multi-layered drifting glow */
.bar>.fill::before,
.bar>.fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.85;
  filter: blur(0.6px);
  background-repeat: repeat;
  background-size: 24px 22px;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 1.2px, transparent 2px),
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.7) 1px, transparent 2px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.8) 1.3px, transparent 2px),
    radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.5) 1px, transparent 2px),
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.6) 1.1px, transparent 2px);
  animation: particleDrift 1.2s linear infinite;
}

/* Second layer moves differently (out of sync) */
.bar>.fill::after {
  animation: particleDriftAlt 1s linear infinite;
  opacity: 0.65;
  filter: blur(1px);
}

@keyframes particleDrift {
  0% {
    transform: translateX(60%) translateY(3px);
    opacity: 0;
  }
  30% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(0%) translateY(-2px);
    opacity: 0;
  }
}

@keyframes particleDriftAlt {
  0% {
    transform: translateX(55%) translateY(-2px);
    opacity: 0;
  }
  25% {
    opacity: 0.8;
  }
  60% {
    opacity: 0.7;
  }
  100% {
    transform: translateX(0%) translateY(2px);
    opacity: 0;
  }
}




.meta {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta b {
    color: #eaf3ff;
}

/* raindrop animation styles for fallback (invisible — controlled by JS within SVG) */
.drop {
    fill: rgba(255, 255, 255, 0.95);
    opacity: 0.95;
}

/* subtle floating bubbles on right column */
.bubbles {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  padding-block: 2rem;
}

.bubble {
  position: absolute;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}


/* footer */
.foot {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
}

/* ripple CSS for circle pulses (small decorative) */
.ripple {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 2;
    animation: ripple 2200ms linear infinite;
}

@keyframes ripple {
    0% {
        stroke-opacity: 0.12;
        transform: scale(0.8);
    }

    60% {
        stroke-opacity: 0.02;
        transform: scale(1.45);
    }

    100% {
        stroke-opacity: 0;
        transform: scale(1.8);
    }
}

/* tiny credit */
.small {
    font-size: 12px;
    color: var(--muted);
}

.color-success {
  color: #4ade80; /* soft green */
}

.color-error {
  color: #f87171; /* soft red */
}