/*
 * wisнblower - A Bubble For A Wish Component CSS
 * Dark cosmic theme with canvas-based bubble shooter
 * Layout pattern: identical to washyourwish.css
 */

/* ===== BACKGROUND ===== */
/* Image is also baked into the canvas (prerenderBackground) so the canvas
   is fully opaque (no CSS opacity needed) — eliminates per-frame GPU
   alpha-compositing that caused sporadic frame drops. The ::before remains
   for header/footer/margins around the canvas (static layer, no per-frame cost). */
.abubbleforawish-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../wbpics/bubbleup_bg.png') center center / cover no-repeat;
    z-index: -1;
    pointer-events: none;
}

/* ===== PAGE LAYOUT (identical pattern to washyourwish) ===== */
.abubbleforawish-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #0c0a20 0%, #1a1230 50%, #2a1e40 100%);
    position: relative;
    overflow-x: hidden;
}

/* Override base.css background image + overlay */
html:has(.abubbleforawish-page) {
    background-image: none;
}

html:has(.abubbleforawish-page)::after {
    display: none;
}

/* ===== FIX: apps-overlay nimmt trotz position:fixed Platz im Flex-Layout ===== */
.abubbleforawish-page .apps-overlay:not(.active) {
    display: none;
}

/* ===== MAIN CONTENT (flex: 1 pushes footer to bottom) ===== */
.abubbleforawish-page main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== CANVAS CONTAINER (same role as .washyourwish-container) ===== */
.bubbleup-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.bubbleup-canvas-container canvas {
    display: block;
}

/* ===== MOBILE: Kompakter Header + Footer für maximale Spielfläche ===== */
@media (max-width: 768px) {
    /* Header: einzeilig, Logo kleiner, vertikal zentriert */
    .abubbleforawish-page header {
        padding: 0.5rem 0;
    }

    .abubbleforawish-page .header-content {
        flex-direction: row;
        align-items: center;
        min-height: auto;
    }

    .abubbleforawish-page .logo-with-info {
        margin-bottom: 0;
        align-items: center;
    }

    .abubbleforawish-page .logo {
        font-size: 1.2rem;
    }

    /* Footer: einzeilig, kompakt */
    .abubbleforawish-page footer {
        padding: 0.5rem 0;
    }

    .abubbleforawish-page .footer-content {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .abubbleforawish-page .footer-links {
        margin-top: 0;
    }

    .abubbleforawish-page .copyright {
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .abubbleforawish-page .footer-links a {
        font-size: 0.75rem;
        padding: 0.25rem;
    }
}
