/* Pi Coach — Design system condiviso per tutti i mini-giochi.
   Palette: Pickleball Cards (indigo / viola).
   Ogni gioco importa questo file e aggiunge solo le proprie classi specifiche. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

:root {
    /* Sfondo e superfici */
    --gc-bg:            #0f172a;
    --gc-bg-surface:    #1e1b4b;
    --gc-bg-gradient:   linear-gradient(145deg, #1e1b4b 0%, #0f172a 45%, #14532d 100%);
    --gc-card-bg:       linear-gradient(180deg, #312e81 0%, #1e1b4b 100%);
    --gc-card-border:   #4f46e5;
    --gc-panel:         rgba(15, 23, 42, 0.55);

    /* Testo */
    --gc-text:          #e2e8f0;
    --gc-text-bright:   #f1f5f9;
    --gc-muted:         #94a3b8;
    --gc-dimmed:        #64748b;

    /* Accent indigo */
    --gc-accent:        #6366f1;
    --gc-accent-strong: #4f46e5;
    --gc-accent-light:  #a5b4fc;
    --gc-accent-subtle: #818cf8;

    /* Semantici */
    --gc-gold:          #fbbf24;
    --gc-ok:            #86efac;
    --gc-ok-strong:     #22c55e;
    --gc-warn:          #fbbf24;
    --gc-bad:           #f87171;

    /* Bordi e linee */
    --gc-line:          rgba(99, 102, 241, 0.25);
    --gc-line-subtle:   #334155;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--gc-bg-gradient);
    min-height: 100vh;
    color: var(--gc-text);
    padding: 1rem 1rem 2rem;
}

/* ---- Access gate (loading / denied) ---- */
#gameAccessLoading {
    position: fixed;
    inset: 0;
    background: var(--gc-bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-accent-light);
    z-index: 9998;
    font-size: 1rem;
    font-weight: 600;
}

#gameAccessDenied {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.97);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--gc-text);
}

#gameAccessDenied p {
    max-width: 420px;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

#gameAccessDenied a {
    display: inline-block;
    margin: 0.35rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    background: var(--gc-accent-strong);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

#gameAccessDenied a.secondary {
    background: var(--gc-line-subtle);
}

/* ---- Link "torna indietro" ---- */
.gc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gc-accent-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.gc-back:hover { color: #c7d2fe; }

/* ---- Bottone primario generico ---- */
.gc-btn-primary {
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-strong));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.15s;
}
.gc-btn-primary:hover { filter: brightness(1.08); }
