<?php
// ======================================================
// JOGO - Bônus de Retorno
// 页面为纯静态，不需要数据库
// ======================================================

$targetUrl = 'https://www.jogo-p9.com/?id=210892497';
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">

    <title>Bônus de Retorno - JOGO</title>

    <meta name="description" content="Volte para a JOGO e receba R$ 20 de bônus no seu primeiro depósito na nova plataforma.">

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

        :root {
            --green: #048562;
            --green2: #06a879;
            --green3: #063c32;
            --greenDark: #021d18;

            --gold: #ffd54a;
            --gold2: #ffb300;
            --gold3: #fff1a6;

            --white: #ffffff;
            --textSoft: #d8eee8;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family:
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                Roboto,
                Arial,
                sans-serif;

            min-height: 100vh;
            color: var(--white);

            background:
                radial-gradient(circle at 50% -10%, rgba(0, 255, 183, .22), transparent 38%),
                radial-gradient(circle at 100% 25%, rgba(255, 205, 60, .12), transparent 25%),
                linear-gradient(180deg, #063f34 0%, #022920 45%, #011b16 100%);

            overflow-x: hidden;
        }

        /* =========================
           背景动态光效
        ========================= */

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;

            background-image:
                linear-gradient(
                    rgba(255,255,255,.018) 1px,
                    transparent 1px
                ),
                linear-gradient(
                    90deg,
                    rgba(255,255,255,.018) 1px,
                    transparent 1px
                );

            background-size: 36px 36px;

            mask-image:
                linear-gradient(
                    to bottom,
                    rgba(0,0,0,.6),
                    transparent
                );
        }

        .glow {
            position: fixed;
            border-radius: 50%;
            filter: blur(90px);
            pointer-events: none;
            z-index: 0;
        }

        .glow.one {
            width: 260px;
            height: 260px;
            background: rgba(0, 230, 168, .12);
            top: 10%;
            left: -100px;
        }

        .glow.two {
            width: 260px;
            height: 260px;
            background: rgba(255, 190, 0, .10);
            top: 30%;
            right: -100px;
        }

        /* =========================
           金币
        ========================= */

        .coin {
            position: fixed;
            width: 22px;
            height: 22px;
            border-radius: 50%;

            background:
                radial-gradient(circle at 35% 30%, #fff7be, #ffd246 38%, #d99300 75%);

            border: 2px solid #ffdd69;

            box-shadow:
                0 0 15px rgba(255, 200, 40, .35),
                inset 0 0 5px rgba(255,255,255,.5);

            opacity: .30;
            z-index: 0;
            pointer-events: none;

            animation: coinFloat 8s ease-in-out infinite;
        }

        .coin::after {
            content: "★";
            position: absolute;
            inset: 0;

            display: flex;
            align-items: center;
            justify-content: center;

            color: #b97900;
            font-size: 10px;
            font-weight: 900;
        }

        .coin.c1 {
            top: 12%;
            left: 6%;
            animation-delay: 0s;
        }

        .coin.c2 {
            top: 23%;
            right: 7%;
            width: 30px;
            height: 30px;
            animation-delay: 1.2s;
        }

        .coin.c3 {
            top: 55%;
            left: 3%;
            width: 17px;
            height: 17px;
            animation-delay: 2.2s;
        }

        .coin.c4 {
            top: 75%;
            right: 4%;
            width: 26px;
            height: 26px;
            animation-delay: 3.4s;
        }

        @keyframes coinFloat {
            0%, 100% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-24px) rotate(180deg);
            }
        }

        /* =========================
           主容器
        ========================= */

        .page {
            position: relative;
            z-index: 2;

            width: 100%;
            max-width: 760px;

            margin: 0 auto;
            padding:
                max(22px, env(safe-area-inset-top))
                16px
                max(40px, env(safe-area-inset-bottom));
        }

        /* =========================
           顶部
        ========================= */

        .top-badge {
            display: table;
            margin: 2px auto 18px;

            padding: 7px 14px;

            border: 1px solid rgba(255, 216, 76, .35);
            border-radius: 999px;

            background: rgba(255, 210, 60, .08);

            color: var(--gold3);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .6px;

            animation: fadeDown .7s ease both;
        }

        .hero {
            text-align: center;

            animation: fadeUp .8s ease both;
        }

        .hero-title {
            color: #fff;
            font-size: clamp(29px, 7vw, 50px);
            line-height: 1.05;
            font-weight: 950;
            letter-spacing: -1px;

            text-shadow:
                0 4px 16px rgba(0,0,0,.35);
        }

        .hero-title span {
            display: block;

            margin-top: 8px;

            font-size: clamp(48px, 13vw, 86px);
            line-height: .95;

            background:
                linear-gradient(
                    180deg,
                    #fff7af 0%,
                    #ffd43f 35%,
                    #ffb100 72%,
                    #ffdf5c 100%
                );

            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;

            filter:
                drop-shadow(0 5px 0 rgba(138, 82, 0, .35))
                drop-shadow(0 10px 18px rgba(0,0,0,.22));
        }

        .hero-title small {
            display: block;
            margin-top: 8px;

            color: #ffffff;

            font-size: clamp(22px, 6vw, 40px);
            line-height: 1;
        }

        .hero-subtitle {
            max-width: 580px;
            margin: 20px auto 0;

            color: var(--textSoft);

            font-size: 16px;
            line-height: 1.55;
            font-weight: 600;
        }

        /* =========================
           礼物展示
        ========================= */

        .gift-area {
            position: relative;

            width: 170px;
            height: 150px;

            margin: 22px auto 14px;

            animation: giftFloat 3.2s ease-in-out infinite;
        }

        .gift-glow {
            position: absolute;

            width: 150px;
            height: 100px;

            left: 10px;
            bottom: 10px;

            border-radius: 50%;

            background: rgba(255, 194, 30, .26);

            filter: blur(35px);
        }

        .gift-box {
            position: absolute;

            width: 130px;
            height: 86px;

            left: 20px;
            bottom: 8px;

            border-radius: 12px;

            background:
                linear-gradient(
                    135deg,
                    #08a97d,
                    #036e52
                );

            box-shadow:
                0 18px 30px rgba(0,0,0,.28),
                inset 0 0 20px rgba(255,255,255,.09);

            border: 1px solid rgba(255,255,255,.15);
        }

        .gift-box::before {
            content: "";
            position: absolute;

            width: 24px;
            height: 100%;

            top: 0;
            left: 53px;

            background:
                linear-gradient(
                    90deg,
                    #e7a900,
                    #ffe068,
                    #e7a900
                );
        }

        .gift-box::after {
            content: "R$20";

            position: absolute;
            inset: 0;

            display: flex;
            align-items: center;
            justify-content: center;

            padding-top: 6px;

            color: #fff8b5;
            font-size: 22px;
            font-weight: 950;

            text-shadow: 0 2px 5px rgba(0,0,0,.35);
        }

        .gift-lid {
            position: absolute;

            width: 146px;
            height: 34px;

            left: 12px;
            bottom: 84px;

            border-radius: 9px;

            background:
                linear-gradient(
                    135deg,
                    #0cc18e,
                    #037257
                );

            box-shadow:
                0 10px 20px rgba(0,0,0,.2);

            transform: rotate(-5deg);
        }

        .gift-lid::before {
            content: "";
            position: absolute;

            width: 26px;
            height: 100%;

            left: 60px;

            background:
                linear-gradient(
                    90deg,
                    #e3a100,
                    #ffe16b,
                    #e3a100
                );
        }

        .bow {
            position: absolute;

            width: 62px;
            height: 38px;

            left: 54px;
            bottom: 112px;
        }

        .bow::before,
        .bow::after {
            content: "";

            position: absolute;

            width: 38px;
            height: 28px;

            top: 3px;

            border: 8px solid #ffd84e;
            border-radius: 50%;
        }

        .bow::before {
            left: -8px;
            transform: rotate(25deg);
        }

        .bow::after {
            right: -8px;
            transform: rotate(-25deg);
        }

        @keyframes giftFloat {
            0%, 100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-8px);
            }
        }

        /* =========================
           奖励主卡片
        ========================= */

        .offer-card {
            position: relative;

            margin-top: 12px;
            padding: 24px;

            overflow: hidden;

            border-radius: 24px;

            background:
                linear-gradient(
                    145deg,
                    rgba(10, 117, 87, .80),
                    rgba(3, 55, 44, .92)
                );

            border: 1px solid rgba(101, 255, 201, .25);

            box-shadow:
                0 18px 45px rgba(0,0,0,.22),
                inset 0 1px 0 rgba(255,255,255,.07);

            animation: fadeUp .8s .10s ease both;
        }

        .offer-card::before {
            content: "";

            position: absolute;

            width: 220px;
            height: 220px;

            right: -130px;
            top: -140px;

            border-radius: 50%;

            background: rgba(255, 216, 66, .10);

            filter: blur(20px);
        }

        .offer-label {
            color: #aef8df;

            font-size: 12px;
            letter-spacing: 1px;
            font-weight: 900;

            text-transform: uppercase;
        }

        .offer-text {
            margin-top: 8px;

            color: white;

            font-size: 20px;
            line-height: 1.45;
            font-weight: 750;
        }

        .offer-text strong {
            color: var(--gold);
        }

        /* =========================
           网站
        ========================= */

        .website {
            display: flex;
            align-items: center;
            gap: 13px;

            margin-top: 14px;
            padding: 18px 20px;

            border-radius: 18px;

            background: rgba(2, 40, 31, .75);

            border: 1px solid rgba(98, 237, 190, .18);

            animation: fadeUp .8s .16s ease both;
        }

        .website-icon {
            width: 42px;
            height: 42px;

            flex: 0 0 42px;

            display: flex;
            align-items: center;
            justify-content: center;

            border-radius: 13px;

            background: rgba(0, 218, 158, .12);

            font-size: 23px;
        }

        .website small {
            display: block;

            margin-bottom: 3px;

            color: #a9d8cb;

            font-size: 12px;
        }

        .website strong {
            color: var(--gold3);

            font-size: 21px;
            font-weight: 900;

            word-break: break-all;
        }

        /* =========================
           领取步骤
        ========================= */

        .section {
            margin-top: 16px;
            padding: 22px;

            border-radius: 22px;

            background: rgba(1, 34, 27, .72);

            border: 1px solid rgba(104, 232, 190, .18);

            box-shadow: 0 15px 35px rgba(0,0,0,.16);

            animation: fadeUp .8s .22s ease both;
        }

        .section-title {
            display: flex;
            align-items: center;
            gap: 9px;

            margin-bottom: 17px;

            color: white;

            font-size: 21px;
            font-weight: 900;
        }

        .steps {
            display: flex;
            flex-direction: column;
            gap: 11px;
        }

        .step {
            display: flex;
            align-items: center;
            gap: 13px;

            padding: 13px;

            border-radius: 15px;

            background: rgba(255,255,255,.045);

            border: 1px solid rgba(255,255,255,.05);
        }

        .step-num {
            width: 34px;
            height: 34px;

            flex: 0 0 34px;

            display: flex;
            align-items: center;
            justify-content: center;

            border-radius: 50%;

            color: #4d3600;

            font-weight: 950;

            background:
                linear-gradient(
                    180deg,
                    #fff097,
                    #ffc928
                );

            box-shadow: 0 4px 10px rgba(255, 189, 22, .16);
        }

        .step-content {
            color: #eaf8f4;

            font-size: 15px;
            line-height: 1.4;
            font-weight: 650;
        }

        .step-content strong {
            color: white;
        }

        /* =========================
           PIX 提醒
        ========================= */

        .pix-note {
            margin-top: 14px;
            padding: 15px 16px;

            display: flex;
            align-items: flex-start;
            gap: 11px;

            border-radius: 15px;

            background:
                linear-gradient(
                    135deg,
                    rgba(0, 207, 150, .10),
                    rgba(255,255,255,.025)
                );

            border: 1px solid rgba(81, 227, 180, .17);

            color: #caece2;

            font-size: 14px;
            line-height: 1.5;
        }

        .pix-note strong {
            color: #fff;
        }

        /* =========================
           到期时间
        ========================= */

        .expiry {
            margin-top: 16px;

            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;

            padding: 15px 17px;

            border-radius: 16px;

            background: rgba(255, 192, 25, .08);

            border: 1px solid rgba(255, 210, 65, .20);
        }

        .expiry-left {
            display: flex;
            align-items: center;
            gap: 9px;
        }

        .expiry small {
            color: #ecdca3;
            display: block;
            font-size: 11px;
        }

        .expiry strong {
            display: block;
            margin-top: 2px;

            color: #fff1a8;

            font-size: 17px;
        }

        .timer {
            color: white;
            font-size: 12px;
            font-weight: 800;
            text-align: right;
            white-space: nowrap;
        }

        /* =========================
           CTA
        ========================= */

        .cta-wrap {
            position: sticky;
            bottom: 0;

            margin-top: 20px;

            padding:
                10px 0
                calc(7px + env(safe-area-inset-bottom));

            z-index: 20;

            background:
                linear-gradient(
                    180deg,
                    rgba(1, 27, 22, 0),
                    rgba(1, 27, 22, .88) 32%,
                    rgba(1, 27, 22, .98) 100%
                );
        }

        .cta {
            position: relative;

            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;

            width: 100%;

            padding: 18px 20px;

            overflow: hidden;

            border: 0;
            border-radius: 18px;

            text-decoration: none;

            color: #243107;

            background:
                linear-gradient(
                    180deg,
                    #fff27c 0%,
                    #ffd02b 45%,
                    #ffb900 100%
                );

            box-shadow:
                0 9px 0 #b37a00,
                0 18px 36px rgba(255, 186, 0, .22);

            font-size: 18px;
            line-height: 1.25;
            font-weight: 950;

            text-align: center;

            transition:
                transform .2s ease,
                filter .2s ease;

            animation: ctaPulse 2.3s infinite;
        }

        .cta::before {
            content: "";

            position: absolute;

            top: -20%;
            left: -45%;

            width: 35%;
            height: 140%;

            transform: skewX(-22deg);

            background:
                linear-gradient(
                    90deg,
                    transparent,
                    rgba(255,255,255,.65),
                    transparent
                );

            animation: shine 3.4s infinite;
        }

        .cta:active {
            transform: translateY(5px);
            box-shadow:
                0 4px 0 #b37a00,
                0 10px 22px rgba(255, 186, 0, .18);
        }

        .cta-arrow {
            font-size: 24px;
        }

        @keyframes ctaPulse {
            0%, 100% {
                filter: brightness(1);
            }

            50% {
                filter: brightness(1.08);
            }
        }

        @keyframes shine {
            0% {
                left: -45%;
            }

            55%, 100% {
                left: 125%;
            }
        }

        /* =========================
           底部
        ========================= */

        .footer {
            padding: 10px 5px 0;

            color: rgba(214, 238, 231, .52);

            text-align: center;

            font-size: 11px;
            line-height: 1.6;
        }

        .footer strong {
            color: rgba(255,255,255,.72);
        }

        /* =========================
           进入动画
        ========================= */

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(18px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeDown {
            from {
                opacity: 0;
                transform: translateY(-15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* =========================
           桌面
        ========================= */

        @media (min-width: 700px) {

            .page {
                padding-top: 34px;
            }

            .offer-card {
                padding: 28px 30px;
            }

            .steps {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
            }

            .step {
                flex-direction: column;
                align-items: flex-start;
            }

            .cta {
                font-size: 20px;
            }
        }

        /* =========================
           小手机
        ========================= */

        @media (max-width: 390px) {

            .page {
                padding-left: 12px;
                padding-right: 12px;
            }

            .offer-card,
            .section {
                padding: 18px;
            }

            .offer-text {
                font-size: 18px;
            }

            .website {
                padding: 15px;
            }

            .website strong {
                font-size: 18px;
            }

            .expiry {
                align-items: flex-start;
                flex-direction: column;
            }

            .timer {
                text-align: left;
            }
        }

        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: .01ms !important;
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
            }
        }
    </style>
</head>

<body>

<div class="glow one"></div>
<div class="glow two"></div>

<div class="coin c1"></div>
<div class="coin c2"></div>
<div class="coin c3"></div>
<div class="coin c4"></div>

<main class="page">

    <div class="top-badge">
        🎁 PRESENTE ESPECIAL DE RETORNO
    </div>

    <section class="hero">

        <h1 class="hero-title">
            BÔNUS DE RETORNO
            <span>R$ 20</span>
            <small>PRA VOCÊ!</small>
        </h1>

        <p class="hero-subtitle">
            Preparamos um presente especial para nossos
            jogadores que estão voltando 💙
        </p>

        <div class="gift-area" aria-hidden="true">
            <div class="gift-glow"></div>
            <div class="bow"></div>
            <div class="gift-lid"></div>
            <div class="gift-box"></div>
        </div>

    </section>


    <section class="offer-card">

        <div class="offer-label">
            SEU PRESENTE DE RETORNO
        </div>

        <div class="offer-text">
            Faça seu <strong>1º depósito de qualquer valor</strong>
            na nova plataforma e ganhe
            <strong>R$ 20 de bônus!</strong>
        </div>

    </section>


    <div class="website">

        <div class="website-icon">
            🌐
        </div>

        <div>
            <small>Nova plataforma</small>
            <strong>jogo-p9.com</strong>
        </div>

    </div>


    <section class="section">

        <div class="section-title">
            🎯 Como resgatar
        </div>

        <div class="steps">

            <div class="step">

                <div class="step-num">
                    1
                </div>

                <div class="step-content">
                    Acesse a página
                    <strong>Ofertas</strong>
                </div>

            </div>


            <div class="step">

                <div class="step-num">
                    2
                </div>

                <div class="step-content">
                    Entre na
                    <strong>9ª opção</strong>
                </div>

            </div>


            <div class="step">

                <div class="step-num">
                    3
                </div>

                <div class="step-content">
                    Abra
                    <strong>Código de Resgate</strong>
                </div>

            </div>

        </div>


        <div class="pix-note">

            <div style="font-size:22px;">
                💠
            </div>

            <div>
                Digite a
                <strong>chave PIX cadastrada na JOGO</strong>
                e confirme.

                <br><br>

                📧 PIX com e-mail?
                Digite apenas o que vem
                <strong>antes do @</strong>.
            </div>

        </div>


        <div class="expiry">

            <div class="expiry-left">

                <div style="font-size:24px;">
                    ⏰
                </div>

                <div>
                    <small>Válido até</small>
                    <strong>31/10/2026</strong>
                </div>

            </div>

            <div class="timer" id="countdown">
                Calculando...
            </div>

        </div>

    </section>


    <div class="cta-wrap">

        <a
            class="cta"
            href="<?= htmlspecialchars($targetUrl, ENT_QUOTES, 'UTF-8') ?>"
        >
            <span>
                Volte para a JOGO e
                resgate seu bônus
            </span>

            <span class="cta-arrow">
                ➜
            </span>
        </a>

    </div>


    <footer class="footer">

        <strong>JOGO</strong>
        · Promoção válida até 31/10/2026

        <br>

        18+ · Jogue com responsabilidade

    </footer>

</main>


<script>
(function () {

    /*
     * 到期时间：
     * 2026年10月31日 23:59:59
     * 巴西圣保罗时间 UTC-3
     */
    const expireTime =
        new Date('2026-10-31T23:59:59-03:00').getTime();

    const countdown =
        document.getElementById('countdown');


    function updateCountdown() {

        const now = new Date().getTime();

        const distance =
            expireTime - now;


        if (distance <= 0) {

            countdown.innerHTML =
                'Promoção encerrada';

            return;
        }


        const days =
            Math.floor(
                distance / (1000 * 60 * 60 * 24)
            );


        const hours =
            Math.floor(
                (
                    distance %
                    (1000 * 60 * 60 * 24)
                ) /
                (1000 * 60 * 60)
            );


        const minutes =
            Math.floor(
                (
                    distance %
                    (1000 * 60 * 60)
                ) /
                (1000 * 60)
            );


        countdown.innerHTML =
            days + 'd ' +
            hours + 'h ' +
            minutes + 'min';

    }


    updateCountdown();

    setInterval(
        updateCountdown,
        30000
    );

})();
</script>

</body>
</html>