/* =============================================================================
   BASE.CSS — CSS Custom Properties, Reset & Body Layout
   Plinko Game | Claymorphism Theme
   ============================================================================= */

/* ── Design Token Definitions ─────────────────────────────────────────────── */
:root {
    /* Background gradient for the outer page */
    --bg-radial: radial-gradient(circle at 50% 25%, #ffeef2 0%, #e8eaff 50%, #ccd2ff 100%);

    /* Core clay surface & text colours */
    --clay-bg: #fdfbff;
    --clay-text-dark: #3a3350;
    --clay-text-muted: #8e87ad;

    /* Reusable clay box-shadow presets */
    --clay-inset: inset 3px 3px 8px rgba(121, 110, 187, 0.28), inset -3px -3px 8px #ffffff;
    --clay-out:   0 16px 36px rgba(46, 43, 84, 0.08),
                  inset 4px 4px 10px #ffffff,
                  inset -4px -4px 10px rgba(121, 110, 187, 0.2);
    --clay-btn-inset: inset 2px 2px 5px rgba(255, 255, 255, 0.8),
                      inset -2px -2px 5px rgba(121, 110, 187, 0.24);
}

/* ── Global Reset ─────────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */
body {
    background: #ccd2ff;
    background: var(--bg-radial);
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clay-text-dark);
    overflow: hidden;
}

/* ── Game Container ───────────────────────────────────────────────────────── */
#game-container {
    background: var(--clay-bg);
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Elevated card style on wider screens */
@media (min-width: 500px) {
    #game-container {
        height: 94vh;
        border-radius: 40px;
        border: 5px solid #ffffff;
        box-shadow:
            0 25px 60px rgba(46, 43, 84, 0.15),
            inset 4px 4px 12px #ffffff,
            inset -4px -4px 12px rgba(121, 110, 187, 0.2);
    }
}

/* ── Utility: Hide Scrollbar ──────────────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
