:root {
    --primary-color: #68a4c4;
    --secondary-color: #53c28b;
    --accent-color: #ffa07a;
    --background-color: #e6d2bc;
    --jar-color: rgba(186, 228, 255, 0.6);
    --sticky-note-color: #fffacd;
    --text-color: #333;
    --fish-color: #ff9966;
    --plant-color: #66bb6a;
    --snail-color: #8d6e63;
    --bubble-icon-color: #b3e5fc;
    --creature-icon-color: #ffcc80;
    --essence-icon-color: #ce93d8;
    --tab-active-color: #68a4c4;
    --tab-inactive-color: #dcdcdc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    max-height: 675px; /* 16:9 Verhältnis bei 1200px Breite */
    display: flex;
    flex-direction: column;
    gap: 20px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    overflow: hidden;
    /* Itch.io responsive scaling */
    min-width: 800px;
    min-height: 450px;
}

header {
    background-color: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.resources {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.resource {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

.resource-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
}

/* Placeholder icons */
.resource-icon[alt="Bubbles"] {
    background-color: var(--bubble-icon-color);
    position: relative;
}
.resource-icon[alt="Bubbles"]::after {
    content: "🫧";
    font-size: 18px;
}

.resource-icon[alt="Creatures"] {
    background-color: var(--creature-icon-color);
    position: relative;
}
.resource-icon[alt="Creatures"]::after {
    content: "🐠";
    font-size: 18px;
}

.resource-icon[alt="Essence"] {
    background-color: var(--essence-icon-color);
    position: relative;
}
.resource-icon[alt="Essence"]::after {
    content: "✨";
    font-size: 18px;
}

main {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    height: calc(100% - 80px); /* Weniger Höhe für den Header */
    overflow: hidden;
}

.jar-container {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#jar {
    width: 300px;
    height: 450px;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    background-image: url('assets/jar.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    box-shadow: none;
}

#water {
    display: none;
}

#click-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 450px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

#creatures-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.creature {
    position: absolute;
    transition: transform 0.3s ease;
    z-index: 2;
}

/* Richtungsklassen für Fische und Schnecken */
.creature.facing-right {
    transform: scaleX(1) !important;
}

.creature.facing-left {
    transform: scaleX(-1) !important;
}

/* Getrennte Y-Animation für Fische */
@keyframes fish-swim-y {
    0% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(2px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Anwenden der Animation nur auf Y-Komponente */
.fish1, .fish2, .fish3, .fish4, .fish5 {
    width: 20px;
    height: 15px;
    background-color: transparent;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: fish-swim-y 4s ease-in-out infinite;
    transition: width 0.5s ease, height 0.5s ease;
}

/* Größere Fische nach dem Wachstum */
.fish1.adult, .fish2.adult, .fish3.adult, .fish4.adult, .fish5.adult {
    width: 33px;
    height: 24px;
}

/* Tote Fische - keine Schwimm-Animation und drehen sich um 180 Grad */
.fish1.dead, .fish2.dead, .fish3.dead, .fish4.dead, .fish5.dead {
    animation: none !important;
    transform: rotate(180deg) !important; /* !important überschreibt die facing-Klassen */
    filter: grayscale(0.5) brightness(0.8);
    transition: transform 2s ease-out, top 10s linear;
}

/* Aufsteigen der toten Fische an die Oberfläche wird direkt in JavaScript gesteuert */
.fish1.dead, .fish2.dead, .fish3.dead, .fish4.dead, .fish5.dead {
    animation: none; /* Keine CSS-Animation, da wir die Bewegung mit JS steuern */
}

/* Das @keyframes wird nicht benötigt, da wir die Bewegung mit .style.top direkt steuern */

.fish1 {
    background-image: url('assets/fish-1.png');
}

.fish2 {
    background-image: url('assets/fish-2.png');
}

.fish3 {
    background-image: url('assets/fish-3.png');
}

.fish4 {
    background-image: url('assets/fish-4.png');
}

.fish5 {
    background-image: url('assets/fish-5.png');
}

.fish::before, .fish::after {
    display: none;
}

.plant {
    width: 97px;
    height: 150px;
    background-color: transparent;
    background-image: url('assets/plant-1.png');
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.plant2 {
    width: 97px;
    height: 150px;
    background-color: transparent;
    background-image: url('assets/plant-2.png');
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.plant::before, .plant::after {
    display: none;
}

.plant2::before, .plant2::after {
    display: none;
}

.snail {
    width: 25px;
    height: 20px;
    background-color: transparent;
    background-image: url('assets/snail.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    box-shadow: none;
}

.snail::before {
    display: none;
}

.bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: bubble-rise 3s ease-in-out;
    pointer-events: none;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
        transform: translateY(-75px) translateX(10px) scale(0.8);
    }
    100% {
        transform: translateY(-150px) translateX(-5px) scale(1.2);
        opacity: 0;
    }
}

.upgrades-section {
    background: none;
    border-radius: 15px;
    padding: 0;
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    max-height: 500px;
    overflow: hidden;
}

.tabs {
    margin: 20px 20px 5px 20px;
    z-index: 2;
    position: relative;
}

.tab-btn {
    padding: 12px 15px;
    border: none;
    background-color: #dcdcdc;
    color: #333;
    flex: 1;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
    border-right: 1px solid #bbb;
    text-align: center;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background-color: #68a4c4;
    color: white;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.tab-content {
    background-color: #fff;
    border-radius: 12px 12px 12px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin: 0 20px 20px 20px;
    padding: 10px 0 0 0;
    display: none;
    max-height: 420px;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

.upgrades-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-auto-rows: minmax(140px, auto);
    gap: 8px;
    padding: 10px;
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.upgrades-container::-webkit-scrollbar {
    width: 6px;
}

.upgrades-container::-webkit-scrollbar-track {
    background: transparent;
}

.upgrades-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.sticky-note {
    background-color: transparent;
    background-image: url('assets/ui-upgrade-note.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 15px 12px 12px;
    border-radius: 0;
    box-shadow: none;
    transform: rotate(1deg);
    transition: transform 0.2s;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    text-align: center;
    width: 100%;
}

/* Verwende ui-buy-note.png für die Kauf-Tab-Notizen */
#buy-tab .sticky-note {
    background-image: url('assets/ui-buy-note.png');
    padding: 15px 8px 10px;
    min-height: 100px;
}

/* Verwende ui-upgrade-note.png für die Upgrade-Tab-Notizen */
#upgrade-tab .sticky-note {
    background-image: url('assets/ui-upgrade-note.png');
    padding: 25px 8px 12px;
    min-height: 130px;
}

/* Kompaktere Darstellung im Buy-Tab */
#buy-tab .sticky-note h3 {
    font-size: 12px;
    margin-bottom: 2px;
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

#buy-tab .sticky-note p {
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1.2;
}

#buy-tab .sticky-note .creature-preview {
    width: 22px;
    height: 22px;
    margin: 0 auto 3px;
}

#buy-tab .sticky-note button {
    padding: 2px 8px;
    font-size: 10px;
    margin-top: 2px;
    width: 60%;
    align-self: center;
}

/* Kompaktere Darstellung im Upgrade-Tab */
#upgrade-tab .sticky-note h3 {
    color: #000;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-weight: bold;
}

#upgrade-tab .sticky-note p {
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1.2;
}

#upgrade-tab .sticky-note .creature-preview {
    width: 22px;
    height: 22px;
    margin: 0 auto 3px;
}

#upgrade-tab .sticky-note button {
    padding: 2px 8px;
    font-size: 10px;
    margin-top: 2px;
    width: 60%;
    align-self: center;
}

/* Reduziere die Rotation für ein einheitlicheres Aussehen */
.sticky-note:nth-child(odd) {
    transform: rotate(-0.3deg);
}

.sticky-note:nth-child(even) {
    transform: rotate(0.3deg);
}

.sticky-note:hover {
    transform: rotate(0) scale(1.02);
}

.sticky-note h3 {
    margin-bottom: 5px;
    color: #333;
    font-size: 16px;
    text-align: center;
}

/* Entfernt - doppelte Definition */

.sticky-note p {
    margin-bottom: 5px;
    font-size: 13px;
    text-align: center;
}

.sticky-note button {
    margin-top: auto;
    align-self: center;
    padding: 6px 12px;
    font-size: 13px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
    border-color: #999;
    transform: none;
    box-shadow: none;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: #ccc;
}

/* Spezifische Styles für deaktivierte Buttons in den Sticky Notes */
.sticky-note button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc;
    border-color: #999;
    transform: none;
    box-shadow: none;
}

.sticky-note button:disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: #ccc;
}

/* Itch.io viewport scaling */
@media (max-width: 1200px) {
    .container {
        width: 95vw;
        height: calc(95vw * 9 / 16);
        max-height: 95vh;
    }
    
    body {
        padding: 10px;
    }
}

/* Extra small screens - mobile fallback */
@media (max-width: 800px) {
    .container {
        min-width: 100%;
        width: 100vw;
        height: calc(100vw * 9 / 16);
        max-height: 100vh;
        gap: 10px;
    }
    
    body {
        padding: 5px;
        overflow-x: auto;
        overflow-y: auto;
    }
}

/* Markierung für den Schneckenbereich (Boden) */
#jar::before {
    content: '';
    position: absolute;
    top: 40%;  /* Wassergrenze bei 40% von oben */
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 1;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Sichere Zone für Fische markieren */
#jar::after {
    content: '';
    position: absolute;
    top: 60%;  /* Untere Grenze für Fische */
    left: 15%;
    width: 70%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* Boden-Markierung für Schnecken */
.jar-bottom-line {
    content: '';
    position: absolute;
    top: 80%;  /* Schnecken-Boden bei 80% */
    left: 15%;
    width: 70%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

/* Kompaktere Darstellung für die Fischvorschau */
.creature-preview {
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.creature-preview.plant {
    height: 45px;
    background-position: bottom center;
}

.sticky-note .creature-preview {
    transform: scale(1.3);
}

/* Kompaktere Darstellung für Fisch-Sticky-Notes */
.sticky-note[id^="fish"] {
    min-height: 130px;
}

/* Spezifische Vorschau-Stile für jede Kreatur */
.creature-preview.fish1 {
    background-image: url('assets/fish-1.png');
}

.creature-preview.fish2 {
    background-image: url('assets/fish-2.png');
}

.creature-preview.fish3 {
    background-image: url('assets/fish-3.png');
}

.creature-preview.fish4 {
    background-image: url('assets/fish-4.png');
}

.creature-preview.fish5 {
    background-image: url('assets/fish-5.png');
}

.creature-preview.plant {
    background-image: url('assets/plant-1.png');
}

.creature-preview.plant2 {
    background-image: url('assets/plant-2.png');
}

.creature-preview.snail {
    background-image: url('assets/snail.png');
}

.upgrade-preview {
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.upgrade-preview.mouse-cursor {
    background-image: url('assets/upgrade-mouse-cursor.png');
}

.upgrade-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.7) 0%, rgba(255, 215, 0, 0) 70%);
    animation: upgrade-pulse 2s ease-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes upgrade-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Clean Glass Button Styling */
#clean-glass-btn {
    margin-left: auto;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

#clean-glass-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

#clean-glass-btn:active {
    transform: translateY(0);
}

/* Clean Glass Button Styling */
#reset-game-btn {
    margin-left: auto;
    padding: 8px 15px;
    background-color: #ff4444;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

#reset-game-btn:hover {
    background-color: #ba3434;
    transform: translateY(-2px);
}

#reset-game-btn:active {
    transform: translateY(0);
}

/* Settings Tab Styles */
.settings-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 10px;
    max-height: 420px;
    overflow-y: auto;
}

#audio-settings {
    min-width: 280px;
    padding: 25px 15px 15px;
}

.setting {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.setting label {
    min-width: 60px;
    font-weight: bold;
}

#volume-slider {
    flex-grow: 1;
    margin: 0 5px;
}

#volume-value {
    min-width: 40px;
    text-align: right;
}

#test-audio {
    margin-top: 10px;
    padding: 8px 15px;
    color: #333;
    background-color: #e0f0ff;
    border: 1px solid #b0d0ff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 60%;
    align-self: center;
}

#test-audio:hover {
    background-color: #d0e8ff;
}

#settings-tab .sticky-note {
    background-image: url('assets/ui-setting-note.png');
}

.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.buttons-section button {
    width: 100%;  /* Alle Buttons nehmen die volle Breite ein */
    min-width: 200px;  /* Minimale Breite für bessere Lesbarkeit */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--sticky-note-color);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal h2 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.modal p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.modal-btn.confirm {
    background-color: #ff4444;
    color: white;
}

.modal-btn.cancel {
    background-color: var(--primary-color);
    color: white;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Special Event Styles */
.special-event {
    z-index: 100;
    position: relative;
}

.special-glow {
    animation: special-glow-pulse 2s infinite;
    filter: drop-shadow(0 0 10px #ffd700);
}

@keyframes special-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px #ffd700);
    }
    50% {
        filter: drop-shadow(0 0 20px #ffd700) drop-shadow(0 0 30px #ffef94);
    }
}

/* Special Event Kreaturen */
.special-event.jellyfish1 {
    background-image: url('assets/jellyfish-1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: jellyfish-float 3s ease-in-out infinite;
}

.special-event.jellyfish2 {
    background-image: url('assets/jellyfish-2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: jellyfish-float 3.5s ease-in-out infinite;
}

.special-event.seaTurtle {
    background-image: url('assets/sea-turtle.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: turtle-swim 4s ease-in-out infinite;
}

.special-event.seahorse {
    background-image: url('assets/seahorse.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: seahorse-dance 2.5s ease-in-out infinite;
}

@keyframes jellyfish-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

@keyframes turtle-swim {
    0%, 100% {
        transform: translateY(0) scaleX(1);
    }
    50% {
        transform: translateY(-3px) scaleX(1.05);
    }
}

@keyframes seahorse-dance {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(5deg);
    }
    50% {
        transform: translateY(-6px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-5deg);
    }
}

/* Special Bubble Effects */
.special-bubble {
    background: linear-gradient(135deg, #ffd700, #ffef94);
    border: 1px solid #e6c200;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    animation: special-bubble-rise 2s ease-out forwards;
}

@keyframes special-bubble-rise {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-100px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.8);
    }
}

/* Click Multiplier Effect */
.click-multiplier-effect {
    position: absolute;
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 200;
    animation: multiplier-float 1.5s ease-out forwards;
}

/* Bubble Count Effect */
.bubble-count-effect {
    position: absolute;
    font-size: 22px;
    font-weight: bold;
    color: #00d4ff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 212, 255, 0.6);
    pointer-events: none;
    z-index: 200;
    animation: bubble-count-float 2s ease-out forwards;
}

@keyframes bubble-count-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateY(-15px) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.8);
    }
}

@keyframes multiplier-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1);
    }
}

/* Special Event Notification */
.special-event-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffef94);
    border: 2px solid #e6c200;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: notification-slide-in 0.5s ease-out;
    max-width: 250px;
    min-width: 200px;
}

.event-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-icon {
    font-size: 24px;
    animation: star-twinkle 1s infinite;
}

@keyframes star-twinkle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.event-text h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.event-text p {
    margin: 5px 0;
    font-size: 14px;
    color: #444;
    font-weight: bold;
}

.event-timer {
    font-size: 12px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
}

@keyframes notification-slide-in {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.glass-reflection {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255,255,255,0.3) 50%, 
        transparent 70%);
    pointer-events: none;
    opacity: 0;
    animation: reflection-sweep 0.6s ease-out;
}

@keyframes reflection-sweep {
    0% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(100%); }
}

@keyframes screen-shake {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -1px); }
    20% { transform: translate(2px, 1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(1px, -1px); }
    50% { transform: translate(-2px, 1px); }
    60% { transform: translate(2px, -2px); }
    70% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 2px); }
    90% { transform: translate(-2px, -1px); }
}

.shake {
    animation: screen-shake 0.5s ease-in-out;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00bfff, #1e90ff);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-fly 0.8s ease-out forwards;
    z-index: 15;
}

@keyframes particle-fly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

 