/* Pocket Pickleball — stili specifici (guest + auth).
   Palette e reset in ../games-common.css */

.shell { max-width: 440px; margin: 0 auto; }
h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.sub { color: var(--gc-muted); font-size: 0.88rem; margin-bottom: 1rem; line-height: 1.45; }

a.back-link {
    display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gc-accent-light);
    text-decoration: none; font-size: 0.88rem; margin-bottom: 1rem; font-weight: 600;
}
a.back-link:hover { color: #c7d2fe; }

.banner-demo {
    background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 12px; padding: 0.65rem 0.85rem; font-size: 0.8rem; color: #fde68a; margin-bottom: 1rem;
}
.banner-pi-safe {
    background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px; padding: 0.65rem 0.85rem; font-size: 0.78rem; color: #c7d2fe; margin-bottom: 1rem; line-height: 1.45;
}
.career-block { text-align: left; margin-bottom: 1rem; padding: 0.85rem 1rem; background: rgba(0,0,0,0.2); border-radius: 14px; border: 1px solid var(--gc-line); }
.career-block .lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gc-muted); margin-bottom: 0.35rem; }
.career-badge { font-size: 1.15rem; font-weight: 800; color: var(--gc-gold); margin-bottom: 0.5rem; }
.career-next { font-size: 0.78rem; color: var(--gc-muted); margin-bottom: 0.5rem; line-height: 1.4; }
.career-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.career-bar .fill { height: 100%; background: linear-gradient(90deg, var(--gc-accent), var(--gc-accent-light)); border-radius: 999px; width: 0%; transition: width 0.35s ease; }
.end-career { font-size: 0.88rem; color: var(--gc-accent-light); font-weight: 700; margin-bottom: 0.75rem; display: none; }
.end-career.show { display: block; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 1rem; min-height: 1.5rem; }
.badge-pill {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 0.3rem 0.55rem; border-radius: 999px; background: rgba(99, 102, 241, 0.25); border: 1px solid rgba(99, 102, 241, 0.45); color: #e0e7ff;
}
.stats-bar {
    display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap;
    background: var(--gc-panel); border: 1px solid var(--gc-line); border-radius: 16px;
    padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: 0.85rem;
}
.stats-bar strong { color: var(--gc-gold); font-size: 1.15rem; }
.scenario {
    background: linear-gradient(145deg, rgba(30, 27, 75, 0.5), var(--gc-panel));
    border: 1px solid var(--gc-line); border-radius: 20px; padding: 1.2rem 1.1rem; margin-bottom: 1rem;
    min-height: 120px;
}
.scenario .emoji { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.scenario .tag { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gc-accent-light); margin-bottom: 0.35rem; }
.scenario h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.4rem; }
.scenario p { font-size: 0.9rem; color: var(--gc-muted); line-height: 1.5; }
.scores {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding: 0.75rem; background: rgba(0,0,0,0.25); border-radius: 14px;
}
.scores .n { font-size: 1.75rem; font-weight: 800; }
.scores .lbl { font-size: 0.65rem; text-transform: uppercase; color: var(--gc-muted); letter-spacing: 0.06em; }
.moves { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; margin-bottom: 0.75rem; }
.move-btn {
    border: 2px solid var(--gc-line); border-radius: 14px; padding: 0.75rem 0.4rem;
    background: rgba(255,255,255,0.04); color: var(--gc-text); font-family: inherit;
    font-weight: 700; font-size: 0.72rem; cursor: pointer; transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
}
.move-btn:hover:not(:disabled) { transform: translateY(-2px); }
.move-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.move-btn[data-move="safe"] { border-color: rgba(99, 102, 241, 0.5); }
.move-btn[data-move="balanced"] { border-color: rgba(165, 180, 252, 0.55); }
.move-btn[data-move="aggressive"] { border-color: rgba(251, 113, 133, 0.55); }
.move-btn .ico { font-size: 1.35rem; display: block; margin-bottom: 0.2rem; }
.reveal {
    display: none; margin-top: 0.75rem; padding: 1rem; border-radius: 14px;
    font-size: 0.9rem; line-height: 1.5; border: 1px solid var(--gc-line);
}
.reveal.show { display: block; }
.reveal.win { background: rgba(74, 222, 128, 0.12); border-color: rgba(74, 222, 128, 0.4); }
.reveal.lose { background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.35); }
.reveal.tie { background: rgba(148, 163, 184, 0.1); }
.primary-btn {
    width: 100%; margin-top: 0.75rem; padding: 0.95rem; border: none; border-radius: 14px;
    background: linear-gradient(135deg, var(--gc-accent), var(--gc-accent-strong)); color: #fff; font-family: inherit;
    font-weight: 800; font-size: 1rem; cursor: pointer; display: none;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.primary-btn.show { display: block; }
.primary-btn:hover { filter: brightness(1.06); }
.screen { display: none; }
.screen.active { display: block; }
.menu-card {
    background: var(--gc-panel); border: 1px solid var(--gc-line); border-radius: 20px; padding: 1.5rem 1.25rem; text-align: center;
}
.menu-card .big-stat { font-size: 2.5rem; font-weight: 800; color: var(--gc-gold); line-height: 1.1; }
.menu-card .lbl { color: var(--gc-muted); font-size: 0.8rem; margin-top: 0.25rem; }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.85; } }
.pocket-loading-screen, .pocket-denied-screen {
    position: fixed; inset: 0; background: var(--gc-bg-surface); display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: var(--gc-text); z-index: 9998; font-weight: 600; padding: 1.5rem; text-align: center;
}
.pocket-denied-screen p { max-width: 420px; line-height: 1.5; margin-bottom: 1rem; }
.pocket-denied-screen a { display: inline-block; margin: 0.35rem; padding: 0.65rem 1rem; border-radius: 10px; background: var(--gc-accent-strong); color: #fff; font-weight: 700; text-decoration: none; font-size: 0.88rem; }
#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-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: 700; text-decoration: none; }
#gameAccessDenied a.secondary { background: var(--gc-line-subtle); }
