/* PicklePong — stili specifici.
   Palette e reset in ../games-common.css */

.pp-access-loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gc-bg-surface);
    color: var(--gc-accent-light);
    z-index: 9998;
    font-weight: 600;
}

.pp-access-denied {
    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;
}

.pp-access-denied p {
    max-width: 420px;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.pp-access-denied 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;
}

.pp-access-denied a.secondary {
    background: var(--gc-line-subtle);
}

.pp-root {
    max-width: 960px;
    margin: 0 auto;
}

.pp-back {
    display: inline-flex;
    color: var(--gc-accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.pp-back:hover {
    color: #c7d2fe;
}

.pp-header h1 {
    font-size: 1.65rem;
    color: var(--gc-accent-light);
    margin-bottom: 0.35rem;
}

.pp-sub {
    font-size: 0.9rem;
    color: var(--gc-muted);
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.pp-banner-demo {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #fef9c3;
    background: rgba(120, 53, 15, 0.45);
    border: 1px solid rgba(250, 204, 21, 0.35);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
}

.pp-banner-demo a {
    color: #fde68a;
    font-weight: 700;
    text-decoration: underline;
}

.pp-banner-demo strong {
    color: #fff;
}

.pp-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pp-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gc-dimmed);
}

.pp-mode-row {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .pp-mode-row {
        flex-direction: row;
    }
    .pp-mode-row .pp-mode {
        flex: 1;
    }
}

.pp-mode {
    text-align: left;
    padding: 1rem 1.1rem;
    border: 2px solid var(--gc-line-subtle);
    border-radius: 14px;
    background: var(--gc-panel);
    color: var(--gc-text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.pp-mode:hover {
    border-color: var(--gc-accent-subtle);
}

.pp-mode.active {
    border-color: var(--gc-accent-light);
    background: rgba(99, 102, 241, 0.18);
}

.pp-mode strong {
    display: block;
    color: var(--gc-accent-light);
    margin-bottom: 0.25rem;
}

.pp-mode span {
    font-size: 0.82rem;
    color: var(--gc-muted);
}

.pp-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;
}

.pp-primary:hover {
    filter: brightness(1.06);
}

.pp-hint-keys {
    font-size: 0.82rem;
    color: var(--gc-dimmed);
}

.pp-hint-keys kbd {
    background: #1e293b;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.pp-hud {
    margin-top: 0.5rem;
}

.pp-canvas-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: #020617;
}

#ppCanvas {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    touch-action: manipulation;
}

.pp-touch-lane {
    margin-top: 0.75rem;
    min-height: 7.25rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 2px solid rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.15rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.pp-touch-lane:active {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.12);
}

.pp-touch-lane-label {
    font-size: 0.88rem;
    color: var(--gc-muted);
    text-align: center;
    line-height: 1.45;
    pointer-events: none;
    max-width: 22rem;
}

.pp-tier-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.pp-tier-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pp-tier {
    flex: 1;
    min-width: 6.5rem;
    padding: 0.65rem 0.75rem;
    border: 2px solid var(--gc-line-subtle);
    border-radius: 12px;
    background: var(--gc-panel);
    color: var(--gc-text);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.pp-tier:hover {
    border-color: var(--gc-accent-subtle);
}

.pp-tier.active {
    border-color: var(--gc-accent-light);
    background: rgba(99, 102, 241, 0.18);
}

.pp-tier strong {
    display: block;
    font-size: 0.88rem;
    color: var(--gc-accent-light);
}

.pp-tier span {
    display: block;
    font-size: 0.72rem;
    color: var(--gc-muted);
    margin-top: 0.15rem;
    line-height: 1.25;
}

.pp-main-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pp-main-tab {
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    border: 2px solid var(--gc-line-subtle);
    background: var(--gc-panel);
    color: var(--gc-muted);
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pp-main-tab:hover {
    border-color: var(--gc-accent-subtle);
    color: var(--gc-text);
}

.pp-main-tab.active {
    border-color: var(--gc-accent-light);
    background: rgba(99, 102, 241, 0.18);
    color: var(--gc-accent-light);
}

.pp-panel-lb .pp-lb-body {
    max-height: min(50vh, 380px);
}

.pp-lb-intro {
    font-size: 0.82rem;
    color: var(--gc-muted);
    line-height: 1.45;
    margin: 0.35rem 0 0.5rem;
}

.pp-training-level-row {
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--gc-line-subtle);
    background: rgba(15, 23, 42, 0.35);
}

.pp-training-lvl-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pp-train-lvl-label {
    font-size: 0.88rem;
    color: var(--gc-text);
    font-weight: 600;
    min-width: 12rem;
    text-align: center;
}

.pp-train-step {
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    border: 2px solid var(--gc-line-subtle);
    background: rgba(30, 41, 59, 0.8);
    color: var(--gc-accent-light);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.pp-train-step:hover:not(:disabled) {
    border-color: var(--gc-accent-light);
}

.pp-train-step:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pp-training-hint {
    font-size: 0.78rem;
    color: var(--gc-dimmed);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.pp-leaderboard {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--gc-line-subtle);
}

.pp-lb-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.pp-lb-tab {
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--gc-line-subtle);
    background: rgba(15, 23, 42, 0.65);
    color: var(--gc-muted);
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.pp-lb-tab:hover {
    border-color: var(--gc-accent-subtle);
    color: var(--gc-text);
}

.pp-lb-tab.active {
    border-color: var(--gc-accent-light);
    background: rgba(99, 102, 241, 0.18);
    color: var(--gc-accent-light);
}

.pp-guest-mode-note {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.45;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--gc-line-subtle);
    background: rgba(15, 23, 42, 0.45);
}

.pp-lb-body {
    font-size: 0.82rem;
    margin-top: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
}

.pp-lb-head,
.pp-lb-row {
    display: grid;
    grid-template-columns: 2rem 1fr 3.5rem;
    gap: 0.35rem;
    padding: 0.25rem 0;
    align-items: center;
}

.pp-lb-head {
    font-weight: 700;
    color: var(--gc-dimmed);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--gc-line-subtle);
    margin-bottom: 0.25rem;
}

.pp-lb-row span:last-child {
    text-align: right;
    color: var(--gc-accent-light);
    font-weight: 600;
}

.pp-lb-empty {
    color: var(--gc-dimmed);
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

.pp-overlay,
.pp-feedback {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.88);
    z-index: 10000;
}

.pp-overlay-card,
.pp-feedback-card {
    max-width: 440px;
    width: 100%;
    background: #1e293b;
    border: 1px solid var(--gc-line-subtle);
    border-radius: 16px;
    padding: 1.5rem;
}

.pp-overlay-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--gc-text-bright);
    line-height: 1.35;
}

.pp-overlay-wait {
    font-size: 0.9rem;
    color: var(--gc-muted);
}

.pp-feedback-card h3 {
    color: var(--gc-accent-light);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.pp-feedback-body {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    max-height: min(50vh, 320px);
    overflow-y: auto;
}

.pp-feedback-body h2,
.pp-feedback-body h3,
.pp-feedback-body h4 {
    color: var(--gc-accent-light);
    margin: 0.75rem 0 0.35rem;
    font-size: 1rem;
}

.pp-feedback-body p {
    margin: 0.35rem 0;
}
