body {
    background: #ffe0f0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.game-container { text-align: center; }

.machine {
    width: 200px;
    margin: 20px auto;
    position: relative;
}

.glass-sphere {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border: 4px solid #ff4081;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.base {
    width: 180px;
    height: 100px;
    background: #ff4081;
    margin: -10px auto 0;
    border-radius: 10px 10px 50% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lever {
    background: #c2185b;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.memory-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 280px;
}

.memory-card.show { transform: translate(-50%, -50%) scale(1); }
.memory-card img { width: 100%; border-radius: 10px; }
.hidden { display: none; }

.back-link { display: block; margin-top: 30px; color: #ff4081; text-decoration: none; font-weight: bold; }