/* ══════════════════════════════════════════════════════════
   Water Flow — Zen Garden (Endless Calm Flow) Stylesheet
   ══════════════════════════════════════════════════════════ */

.zen-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    background: #07192C url('../assets/images/innerpage.png') no-repeat center top / cover;
}

/* Background Video (innervideo.mp4) */
.zen-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
    z-index: 0;
}

/* Subtle ambient emerald/cyan water glow effect */
.zen-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 15%, rgba(16, 185, 129, 0.15) 0%, rgba(7, 25, 44, 0.3) 55%, rgba(4, 14, 26, 0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Top Bar ─────────────────────────────────────────────── */
.zen__top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(4, 16, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
    z-index: 10;
}

.zen__back-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.zen__back-btn:active {
    transform: scale(0.92);
}

.zen__back-btn svg {
    width: 20px;
    height: 20px;
}

.zen__title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zen__title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.zen__subtitle {
    font-size: 11px;
    color: #6EE7B7;
    font-weight: 600;
}

.zen__skip-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #A7F3D0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.zen__skip-btn:active {
    transform: scale(0.94);
    background: rgba(16, 185, 129, 0.15);
}

/* ── Zen Flow Ambient Counter ────────────────────────────── */
.zen__counter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
    z-index: 10;
}

.zen__counter-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 800;
    color: #34D399;
}

/* ── Canvas Container ───────────────────────────────────── */
.zen__canvas-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    z-index: 5;
}

.zen__canvas-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* ── Zen Peaceful Solved Toast ──────────────────────────── */
.zen__toast {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid #10B981;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
    pointer-events: none;
    animation: zenToastAnim 1.2s ease forwards;
    z-index: 20;
}

@keyframes zenToastAnim {
    0% { transform: translate(-50%, 20px); opacity: 0; }
    20% { transform: translate(-50%, 0); opacity: 1; }
    80% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, -15px); opacity: 0; }
}
