@keyframes hud-potential-pulse {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.hud-potential-pulse {
    animation: hud-potential-pulse 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.game-overlay-card {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    pointer-events: none;
    animation: overlay-fade 0.18s ease both;
}
.game-overlay-card.is-leaving {
    animation: overlay-out 0.2s ease both;
}

@keyframes overlay-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlay-out  { from { opacity: 1; } to { opacity: 0; transform: scale(1.02); } }

.game-overlay-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 0 24px rgba(0, 0, 0, 0.85), 0 4px 18px rgba(0, 0, 0, 0.65);
    transform: scale(0);
    animation: pop-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.game-overlay-sub {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: sub-in 0.3s ease 0.12s forwards;
}

@keyframes pop-in {
    0%   { transform: scale(0);   opacity: 0; }
    70%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}
@keyframes sub-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
/* ===== Overlay de bloqueio (usuario nao logado) ===== */
.game-locked-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(10px) saturate(1.2);
    transform: scale(1.15);
    z-index: 0;
}

.game-locked-veil {
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.game-locked-card {
    animation: game-locked-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes game-locked-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.game-locked-cover {
    width: 180px;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: -60px;
    position: relative;
    z-index: 2;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 80px color-mix(in srgb, var(--primary, #facc15) 25%, transparent);
    transform: rotate(-1deg);
    transition: transform 0.4s ease;
}
.game-locked-cover:hover {
    transform: rotate(0deg) scale(1.02);
}
.game-locked-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.game-locked-body {
    background: rgba(20, 20, 22, 0.92);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 80px 28px 28px;
    text-align: center;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-locked-title {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.02em;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 10px;
}

.game-locked-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    line-height: 1.4;
}

.game-locked-btn {
    padding: 14px 16px;
    border-radius: 12px;
    border: 0;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.game-locked-btn:active { transform: scale(0.97); }

.game-locked-btn-primary {
    background: linear-gradient(135deg, var(--primary, #facc15) 0%, color-mix(in srgb, var(--primary, #facc15) 75%, #b45309) 100%);
    color: var(--background, #0a0a0a);
    box-shadow:
        0 10px 24px color-mix(in srgb, var(--primary, #facc15) 35%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.game-locked-btn-primary:hover {
    box-shadow:
        0 14px 32px color-mix(in srgb, var(--primary, #facc15) 50%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-locked-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.game-locked-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}