.minigame-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.minigame-content {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Size Modes */
.minigame-content.medium { width: 640px; height: 640px; }
.minigame-content.full { width: 95vw; height: 95vh; border-radius: 0; }

.minigame-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    background: rgba(0,0,0,0.5);
    padding: 5px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.control-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #824dff;
    border-color: #824dff;
    transform: scale(1.1);
}

.control-btn.close:hover {
    background: #ff4444;
    border-color: #ff4444;
}

#minigame-frame {
    width: 100%;
    height: 100%;
    flex-grow: 1;
}

.minigame-ui {
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin-top: 10px;
}

.minigame-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

.minigame-btn:hover {
    background: #0056b3;
}
