/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #1a1209;
    color: #e8d5b5;
    user-select: none;
    -webkit-user-select: none;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ── Header ─────────────────────────────────────────────── */
header {
    text-align: center;
    padding: 1rem 0 0.5rem;
    flex-shrink: 0;
}

header h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f0d6a0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

header .subtitle {
    font-size: clamp(0.7rem, 1.8vw, 0.9rem);
    color: #a08860;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
}

/* ── Canvas Container ───────────────────────────────────── */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
    min-height: 0;
}

#guitar-canvas {
    display: block;
    touch-action: none;           /* prevent scroll/zoom on touch */
    -ms-touch-action: none;
    cursor: pointer;
    border-radius: 12px;
    box-shadow:
        0 0 40px rgba(120, 80, 20, 0.3),
        0 0 80px rgba(60, 30, 5, 0.2);
}

/* ── Mobile / Tablet ───────────────────────────────────── */
@media (max-width: 900px), (pointer: coarse) {
    header {
        display: none;
    }

    main {
        padding: 0;
    }

    #guitar-canvas {
        border-radius: 0;
        box-shadow: none;
    }
}
