/* Nyári Pontvadászat */

.npv-game {
    --npv-bg: #fff7d6;
    --npv-card: rgba(255, 255, 255, 0.94);
    --npv-text: #21415a;
    --npv-accent: #ffb703;
    --npv-accent-dark: #fb8500;
    --npv-blue: #219ebc;
    position: relative;
    width: min(100%, 980px);
    min-height: 520px;
    margin: 28px auto;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 183, 3, 0.35), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(33, 158, 188, 0.22), transparent 25%),
        linear-gradient(180deg, #e0f7ff 0%, #fff7d6 67%, #ffe0a8 100%);
    box-shadow: 0 18px 55px rgba(20, 60, 90, 0.18);
    font-family: inherit;
    color: var(--npv-text);
    isolation: isolate;
}

.npv-game * {
    box-sizing: border-box;
}

.npv-card {
    position: absolute;
    z-index: 3;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 620px);
    padding: 28px 26px;
    border-radius: 24px;
    background: var(--npv-card);
    box-shadow: 0 12px 38px rgba(33, 65, 90, 0.14);
    text-align: center;
    backdrop-filter: blur(8px);
}

.npv-card h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    color: var(--npv-text);
}

.npv-card p {
    margin: 0 auto 18px;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.5;
}

.npv-sun {
    font-size: 52px;
    margin-bottom: 8px;
    animation: npvFloat 2.5s ease-in-out infinite;
}

.npv-info-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 18px 0 20px;
}

.npv-info-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(33, 158, 188, 0.13);
    font-weight: 700;
}

.npv-start,
.npv-restart {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--npv-accent), var(--npv-accent-dark));
    color: #2c1b00;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(251, 133, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.npv-start:hover,
.npv-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(251, 133, 0, 0.32);
}

.npv-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(33, 65, 90, 0.08);
    color: var(--npv-text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.npv-playfield {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.npv-game.npv-running .npv-card {
    top: 16px;
    width: auto;
    min-width: 260px;
    padding: 14px 18px;
    border-radius: 20px;
}

.npv-game.npv-running .npv-card .npv-sun,
.npv-game.npv-running .npv-card h2,
.npv-game.npv-running .npv-card p,
.npv-game.npv-running .npv-start {
    display: none;
}

.npv-game.npv-running .npv-info-row {
    margin: 0;
}

.npv-icon {
    position: absolute;
    z-index: 2;
    top: -60px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 20px rgba(33, 65, 90, 0.13);
    font-size: 34px;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    touch-action: manipulation;
    animation-name: npvFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.npv-icon:hover {
    transform: scale(1.08);
}

.npv-pop {
    animation: npvPop 0.2s ease forwards !important;
}

.npv-points {
    position: absolute;
    z-index: 5;
    font-size: 20px;
    font-weight: 900;
    color: #0f6f87;
    pointer-events: none;
    animation: npvPoints 0.65s ease forwards;
}

.npv-result {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(255, 247, 214, 0.78);
    backdrop-filter: blur(6px);
}

.npv-result[hidden] {
    display: none;
}

.npv-result-box {
    width: min(92%, 440px);
    padding: 30px 24px;
    border-radius: 26px;
    background: white;
    text-align: center;
    box-shadow: 0 18px 55px rgba(20, 60, 90, 0.2);
}

.npv-result-box h3 {
    margin: 0 0 10px;
    font-size: 36px;
    color: var(--npv-text);
}

.npv-result-box p {
    margin: 0 0 22px;
    font-size: 20px;
}

.npv-hidden {
    display: none !important;
}

@keyframes npvFall {
    from {
        top: -70px;
        rotate: -10deg;
    }
    to {
        top: calc(100% + 80px);
        rotate: 18deg;
    }
}

@keyframes npvPop {
    to {
        opacity: 0;
        scale: 1.7;
    }
}

@keyframes npvPoints {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-36px);
    }
}

@keyframes npvFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-6px) rotate(8deg);
    }
}

@media (max-width: 640px) {
    .npv-game {
        min-height: 500px;
        border-radius: 20px;
        margin: 20px auto;
    }

    .npv-card {
        top: 18px;
        padding: 22px 18px;
    }

    .npv-card p {
        font-size: 15px;
    }

    .npv-icon {
        width: 52px;
        height: 52px;
        font-size: 30px;
        border-radius: 16px;
    }

    .npv-game.npv-running .npv-card {
        min-width: 230px;
    }

    .npv-info-row {
        gap: 8px;
    }

    .npv-info-row span {
        min-width: 98px;
        padding: 8px 10px;
        font-size: 14px;
    }
}
