:root {
    /* Farben */
    --background-dark: #2B2E3B;
    --background-darker: #252830;
    --card-background: #343845;
    --accent-blue: #688db1;
    --accent-green: #9cb68f;
    --accent-red: #e16162;
    --text-primary: #d1d5db;
    --text-secondary: #9ca3af;
    
    /* Schatten */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Abstände */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    
    /* Rundungen */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
                 sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    text-align: center;
    background: var(--card-background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-10);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    transition: all 0.3s ease;
}

.icon {
    font-size: var(--spacing-16);
    margin-bottom: var(--spacing-5);
    display: inline-block;
}

h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-5);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.status {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-8);
    color: var(--text-secondary);
    font-weight: 400;
}

.unlock-hint {
    background: var(--background-darker);
    border-radius: var(--radius);
    padding: var(--spacing-5);
    margin-top: var(--spacing-5);
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sequence {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-top: var(--spacing-2);
}

.progress {
    height: 6px;
    background: var(--background-darker);
    border-radius: var(--radius-sm);
    margin: var(--spacing-6) 0;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), #7ab56e);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 8px rgba(156, 182, 143, 0.4);
}

.locked {
    animation: pulse 2s infinite;
    color: var(--accent-blue);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.05);
    }
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    background: #5a7d9f;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-8);
        max-width: 90%;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .icon {
        font-size: 3rem;
    }
}

/* Blubberblasen Animation */
.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible !important;
    z-index: -1;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(104, 141, 177, 0.05));
    border-radius: 50%;
    opacity: 0.6;
    animation: rise 15s infinite ease-in-out;
    transition: transform 0.3s ease;
    overflow: visible !important;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 20%;
    height: 20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
}

/* PRÄSENTE WASSER-PARTIKEL TROPFEN */
.water-drop {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, 
        rgba(104, 141, 177, 1) 0%,
        rgba(104, 141, 177, 0.8) 50%,
        rgba(104, 141, 177, 0.4) 100%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: -10;
    box-shadow: 0 0 2px rgba(104, 141, 177, 0.8);
    transform-origin: center center;
}

/* Verschiedene Startpositionen für 20 Wassertropfen */
.water-drop:nth-child(1) { top: 10%; left: 20%; }
.water-drop:nth-child(2) { top: 90%; left: 80%; }
.water-drop:nth-child(3) { top: 30%; left: 70%; }
.water-drop:nth-child(4) { top: 70%; left: 30%; }
.water-drop:nth-child(5) { top: 20%; left: 60%; }
.water-drop:nth-child(6) { top: 80%; left: 40%; }
.water-drop:nth-child(7) { top: 50%; left: 10%; }
.water-drop:nth-child(8) { top: 60%; left: 90%; }
.water-drop:nth-child(9) { top: 15%; left: 45%; }
.water-drop:nth-child(10) { top: 85%; left: 65%; }
.water-drop:nth-child(11) { top: 40%; left: 25%; }
.water-drop:nth-child(12) { top: 75%; left: 75%; }
.water-drop:nth-child(13) { top: 25%; left: 35%; }
.water-drop:nth-child(14) { top: 65%; left: 55%; }
.water-drop:nth-child(15) { top: 35%; left: 15%; }
.water-drop:nth-child(16) { top: 55%; left: 85%; }
.water-drop:nth-child(17) { top: 45%; left: 50%; }
.water-drop:nth-child(18) { top: 75%; left: 20%; }
.water-drop:nth-child(19) { top: 25%; left: 80%; }
.water-drop:nth-child(20) { top: 85%; left: 30%; }

/* NATÜRLICHE SEIFENBLASEN-ZERPLATZ-ANIMATION */
.bubble.popping {
    animation: naturalPop 0.6s ease-out forwards !important;
    z-index: 50;
    overflow: visible !important;
}

@keyframes naturalPop {
    0% {
        transform: scale(1);
        opacity: 0.6;
        filter: blur(0px);
    }
    30% {
        transform: scale(1.15);
        opacity: 0.4;
        filter: blur(1px);
    }
    60% {
        transform: scale(1.3);
        opacity: 0.2;
        filter: blur(2px);
    }
    100% {
        transform: scale(0);
        opacity: 0;
        filter: blur(4px);
    }
}

/* ENTFERNT - Test-Animation nicht mehr benötigt */

/* DEZENTE FINALE ZERPLATZ-ANIMATION für alle Blasen */
.bubble.final-pop {
    animation: finalSimplePop 0.5s ease-out forwards !important;
    z-index: 60;
}

@keyframes finalSimplePop {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* FINALE REGENTROPFEN-SPRITZER-ANIMATION */
.bubble.final-pop .water-drop {
    animation: finalRainDropSplash 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 2002;
}

/* Finale Regentropfen fliegen weiter und stärker */
.bubble.final-pop .water-drop:nth-child(1) { 
    animation-delay: 0.03s;
    --splash-x: -70px; --splash-y: -50px; --gravity: 80px; --rotation: -25deg;
}
.bubble.final-pop .water-drop:nth-child(2) { 
    animation-delay: 0.08s;
    --splash-x: 75px; --splash-y: -45px; --gravity: 75px; --rotation: 35deg;
}
.bubble.final-pop .water-drop:nth-child(3) { 
    animation-delay: 0.13s;
    --splash-x: 60px; --splash-y: -60px; --gravity: 90px; --rotation: 20deg;
}
.bubble.final-pop .water-drop:nth-child(4) { 
    animation-delay: 0.18s;
    --splash-x: -80px; --splash-y: -40px; --gravity: 70px; --rotation: -40deg;
}
.bubble.final-pop .water-drop:nth-child(5) { 
    animation-delay: 0.1s;
    --splash-x: 45px; --splash-y: -70px; --gravity: 95px; --rotation: 15deg;
}
.bubble.final-pop .water-drop:nth-child(6) { 
    animation-delay: 0.15s;
    --splash-x: -65px; --splash-y: -50px; --gravity: 78px; --rotation: -20deg;
}
.bubble.final-pop .water-drop:nth-child(7) { 
    animation-delay: 0.05s;
    --splash-x: -40px; --splash-y: -75px; --gravity: 100px; --rotation: -45deg;
}
.bubble.final-pop .water-drop:nth-child(8) { 
    animation-delay: 0.2s;
    --splash-x: 85px; --splash-y: -35px; --gravity: 65px; --rotation: 40deg;
}

@keyframes finalRainDropSplash {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: translate(0, 0) scale(1.1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(
            var(--splash-x, 50px), 
            calc(var(--splash-y, -50px) + var(--gravity, 75px))
        ) scale(0.5) rotate(var(--rotation, 0deg));
    }
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110vh;
        transform: translateX(100px) scale(0.8);
        opacity: 0;
    }
}

/* Endlos-Schleife für kontinuierliche Blasen */
.bubble {
    animation-iteration-count: infinite;
}

/* Verschiedene Blasengrößen und Animationsverzögerungen */
.bubble:nth-child(1) {
    width: 40px; height: 40px; left: 8%;
    animation-duration: 12s; animation-delay: 0s;
}
.bubble:nth-child(2) {
    width: 60px; height: 60px; left: 18%;
    animation-duration: 16s; animation-delay: 2s;
}
.bubble:nth-child(3) {
    width: 30px; height: 30px; left: 28%;
    animation-duration: 14s; animation-delay: 4s;
}
.bubble:nth-child(4) {
    width: 75px; height: 75px; left: 38%;
    animation-duration: 18s; animation-delay: 1s;
}
.bubble:nth-child(5) {
    width: 45px; height: 45px; left: 48%;
    animation-duration: 13s; animation-delay: 3s;
}
.bubble:nth-child(6) {
    width: 35px; height: 35px; left: 58%;
    animation-duration: 15s; animation-delay: 5s;
}
.bubble:nth-child(7) {
    width: 55px; height: 55px; left: 68%;
    animation-duration: 17s; animation-delay: 7s;
}
.bubble:nth-child(8) {
    width: 25px; height: 25px; left: 78%;
    animation-duration: 11s; animation-delay: 6s;
}
.bubble:nth-child(9) {
    width: 65px; height: 65px; left: 88%;
    animation-duration: 19s; animation-delay: 8s;
}
.bubble:nth-child(10) {
    width: 50px; height: 50px; left: 93%;
    animation-duration: 14s; animation-delay: 9s;
}
.bubble:nth-child(11) {
    width: 42px; height: 42px; left: 12%;
    animation-duration: 15s; animation-delay: 1.5s;
}
.bubble:nth-child(12) {
    width: 38px; height: 38px; left: 22%;
    animation-duration: 13s; animation-delay: 3.5s;
}
.bubble:nth-child(13) {
    width: 52px; height: 52px; left: 32%;
    animation-duration: 17s; animation-delay: 5.5s;
}
.bubble:nth-child(14) {
    width: 28px; height: 28px; left: 42%;
    animation-duration: 12s; animation-delay: 7.5s;
}
.bubble:nth-child(15) {
    width: 68px; height: 68px; left: 52%;
    animation-duration: 20s; animation-delay: 2.5s;
}
.bubble:nth-child(16) {
    width: 33px; height: 33px; left: 62%;
    animation-duration: 16s; animation-delay: 4.5s;
}
.bubble:nth-child(17) {
    width: 48px; height: 48px; left: 72%;
    animation-duration: 18s; animation-delay: 6.5s;
}
.bubble:nth-child(18) {
    width: 58px; height: 58px; left: 82%;
    animation-duration: 14s; animation-delay: 8.5s;
}
.bubble:nth-child(19) {
    width: 36px; height: 36px; left: 3%;
    animation-duration: 16s; animation-delay: 0.5s;
}
.bubble:nth-child(20) {
    width: 44px; height: 44px; left: 95%;
    animation-duration: 15s; animation-delay: 2.8s;
}