/* ============================================
   MAGIC CANVAS — Glow Chase Stylesheet
   ============================================ */

.magic-canvas-page {
    background: linear-gradient(135deg, #0f0f2a 0%, #1a1a3e 50%, #0a0a1a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
    padding-top: 56px;
}

/* ----- HUD ----- */
#mc-hud {
    width: 100%;
    max-width: 540px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    margin: 8px auto 4px;
    gap: 6px;
    flex-wrap: wrap;
}
.mc-hud-left { display: flex; align-items: center; gap: 6px; }
.mc-hud-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-score-display {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
}
#mc-lives { font-size: 0.85rem; letter-spacing: 2px; }

/* ----- Game Area ----- */
#mc-game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 540px;
    margin-top: 4px;
}
.mc-canvas-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.06);
}
#mc-canvas {
    display: block;
    cursor: crosshair;
    touch-action: none;
}

/* ----- Stats ----- */
.mc-stats {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
    margin-top: 4px;
    text-align: center;
}

/* ----- Overlay ----- */
.mc-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s;
}
.mc-overlay.hidden { opacity: 0; pointer-events: none; }
.mc-overlay-content {
    text-align: center;
    padding: 30px;
}
.mc-overlay-icon { font-size: 3rem; margin-bottom: 8px; }
.mc-overlay-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.mc-overlay-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 4px 0 16px;
    line-height: 1.5;
}
.mc-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.mc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155,89,182,0.4);
}

/* ----- Responsive ----- */
@media (max-width: 480px) {
    .mc-score-display { font-size: 0.65rem; }
    .mc-hud-right { gap: 4px; }
}
