/* ============================================================
   COPA 2026 – HOME  | 
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue:   #2563EB;
    --blue2:  #1D4ED8;
    --pink:   #EC4899;
    --yellow: #FACC15;
    --black:  #0a0a0a;
    --dark:   #111318;
    --card-bg:#18191d;
    --white:  #ffffff;
    --muted:  rgba(255,255,255,0.6);
    --font:   'Space Mono', monospace;
    --radius: 14px;
}

.home-body {
    background: var(--black);
    font-family: var(--font);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   NAVBAR –
   ============================================================ */
.rf-navbar {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--dark);
    border-bottom: 2px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 58px;
    gap: 12px;
}

.rf-navbar-logo img {
    height: 36px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 6px rgba(250,204,21,0.35));
}

.rf-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rf-nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 7px 14px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.2s;
}
.rf-nav-link:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.rf-nav-cta {
    background: #48e4ec;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 9px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(178, 236, 72, 0.4);
}
.rf-nav-cta:hover {
    background: #0e6c71;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(192, 236, 72, 0.5);
}

/* Hamburger — mobile only */
.rf-nav-ham {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 600;
}
.rf-nav-ham span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}
/* Hamburger → X when open */
.rf-nav-ham.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rf-nav-ham.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rf-nav-ham.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Dropdown Menu ---- */
.rf-mobile-menu {
    display: none; /* JS toggle */
    position: absolute;
    top: 58px; /* navbar height */
    left: 0;
    right: 0;
    z-index: 498;
    background: #16181e;
    border-bottom: 2px solid rgba(255,255,255,0.07);
    padding: 16px 20px 20px;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    animation: slideDown 0.22s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rf-mobile-menu.is-open { display: flex; }

.rf-mob-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    display: block;
    text-align: center;
    transition: all 0.2s;
}
.rf-mob-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
.rf-mob-link.cta {
    background: #48e4ec;
    border-color: #48e4ec;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(72, 236, 138, 0.323);
}
.rf-mob-link.cta:hover {
    background: #48e4ec;
    box-shadow: 0 6px 20px rgba(72, 236, 138, 0.323);
}

/* ============================================================
   HERO – MOLDURA (carrossel + carteira)
   ============================================================ */

/* Seção externa: fundo temático com imagem */
.rf-hero-outer {
    position: relative;
    width: 100%;
    padding: 20px 16px 24px;
    background:
        linear-gradient(135deg, rgba(88, 88, 11, 0.23) 0%, rgba(20, 10, 50, 0.274) 100%),
        url('../images/game_home.png') center/cover no-repeat fixed;
    overflow: hidden;
}

/* A MOLDURA – container arredondado escuro com borda sutil */
.rf-hero-frame {
    display: flex;
    gap: 14px;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(13, 13, 10, 0.848);
    border-radius: 22px;
    border: 7.5px solid rgba(13, 13, 10, 0.848);
    box-shadow: 0 24px 64px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

/* ── CARROSSEL ── */
.rf-carousel-wrap {
    position: relative;
    flex: 1.4;           /* ocupa mais espaço que o painel direito */
    min-width: 0;
    border-radius: 18px 0 0 18px;
    overflow: hidden;
}

.rf-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.rf-slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0a0c14;  /* fundo escuro para contain no mobile */
}
.rf-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* desktop: cobre todo o frame */
    object-position: center;
    display: block;
}

/* Overlay de texto no banner */
.rf-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 22px;
    gap: 6px;
}
.rf-slide-badge {
    display: inline-block;
    background: var(--yellow);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 50px;
    width: fit-content;
}
.rf-slide-title {
    font-size: clamp(1.2rem, 4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
    text-transform: uppercase;
}
.rf-slide-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
}
.rf-slide-sub strong { color: var(--yellow); }
.rf-slide-cta {
    display: inline-block;
    width: fit-content;
    background: #48e4ec;
    color: #fff;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 9px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(34,197,94,0.4);
    margin-top: 4px;
}
.rf-slide-cta:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.5);
}

/* Setas do carrossel */
.rf-car-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.rf-car-arrow:hover { background: rgba(0,0,0,0.85); }
.rf-car-prev { left: 8px; }
.rf-car-next { right: 8px; }

/* Dots */
.rf-car-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.rf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.25s;
    border: none;
}
.rf-dot.active {
    background: var(--yellow);
    width: 22px;
    border-radius: 4px;
}

/* ── PAINEL DIREITO – Saldo da Carteira ── */
.rf-wallet-card {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 24px;
    gap: 14px;
    background: #16191f;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.rf-wallet-title {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--white);
}
.rf-wallet-msg {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
    font-family: monospace;
}
.rf-wallet-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.rf-wallet-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 16px;
    border-radius: 13px;
    transition: all 0.2s;
}
.rf-wallet-btn.login {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.25);
}
.rf-wallet-btn.login:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
}
.rf-wallet-btn.register {
    background: #48e4ec;
    color: var(--white);
    border: none;
    box-shadow: 0 4px 14px rgb(203 236 72 / 35%);
}
.rf-wallet-btn.register:hover {
    background: #0f98b0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgb(203 236 72 / 35%);
}

/* ── RESPONSIVIDADE da moldura ── */
@media (max-width: 600px) {
    .rf-hero-outer { padding: 14px 12px 18px; }
    .rf-hero-frame  {
        flex-direction: column;
        border-radius: 18px;
    }
    .rf-carousel-wrap {
        border-radius: 14px 14px 0 0;
        flex: unset;
        width: 100%;
    }

    /* Mobile: banner horizontal, mostra o centro da imagem */
    .rf-slide {
        aspect-ratio: 4 / 3;
        min-width: 100%;
        width: 100%;
    }
    .rf-slide img {
        object-fit: cover;
        object-position: center center; /* centro da imagem quadrada = conteúdo principal */
    }
    .rf-slide-overlay { padding: 14px 16px; }
    .rf-slide-title { font-size: 1.05rem; }
    .rf-slide-badge { font-size: 0.55rem; }
    .rf-slide-cta   { font-size: 0.68rem; padding: 7px 16px; }

    .rf-wallet-card {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.06);
        padding: 18px 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    .rf-wallet-title { font-size: 0.85rem; flex: 1 0 100%; }
    .rf-wallet-msg   { display: none; }
    .rf-wallet-actions { flex-direction: row; flex: 1; }
    .rf-wallet-btn { flex: 1; padding: 9px 10px; font-size: 0.68rem; }
}




.rf-btn-play {
    background: var(--yellow);
    color: #000;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s;
    box-shadow: 0 6px 20px rgba(250,204,21,0.4);
}
.rf-btn-play:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(250,204,21,0.5);
}
.rf-btn-play:active { transform: scale(0.97); }

.rf-btn-register {
    background: transparent;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.4);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s;
}
.rf-btn-register:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ============================================================
   WINNERS TICKER
   ============================================================ */
.rf-ticker-wrap {
    background: rgba(0,0,0,0.7);
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 10px 0;
    overflow: hidden;
}
.rf-ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}
.rf-ticker-track span {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    padding-right: 60px;
}
.rf-ticker-track span::before { content: '🏆 '; }
@keyframes ticker {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
}

/* ============================================================
   HOW TO PLAY (3 steps) 
   ============================================================ */
.rf-steps-section {
    background: #0d0f14;
    padding: 36px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rf-section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--yellow);
}

.rf-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
}

.rf-step-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 3px solid var(--yellow);
}
.rf-step-card:hover {
    background: #1e2028;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.rf-step-num {
    width: 36px;
    height: 36px;
    background: var(--yellow);
    color: #000;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.rf-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--yellow);
    display: block;
    margin-bottom: 6px;
}

.rf-step-desc {
    font-size: 0.65rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ============================================================
   GAME SECTION – fundo preto, grade de cards
   ============================================================ */
.rf-games-section {
    background: #16161637;
    padding: 36px 16px 44px;
}
.mes-section::after  { width: 200px; height: 200px; bottom: -60px; right: -60px; }

.rf-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
}

/* Single card (o jogo Copa 2026) ocupa linha inteira no mobile */
.rf-games-grid.single-game {
    grid-template-columns: 1fr;
    max-width: 340px;
}

.rf-game-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}
.rf-game-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 48px rgba(0,0,0,0.7), 0 0 0 2px rgba(250,204,21,0.3);
}
.rf-game-card:active { transform: scale(0.98); }

.rf-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.rf-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.rf-game-card:hover .rf-card-img-wrap img {
    transform: scale(1.05);
}

/* Badge JOGAR hover */
.rf-card-badge {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.rf-game-card:hover .rf-card-badge { opacity: 1; }
.rf-card-badge span {
    background: var(--yellow);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 50px;
}

.rf-card-footer {
    background: #1a1c22;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.rf-card-name {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}
.rf-card-tag {
    font-size: 0.6rem;
    color: var(--yellow);
    border: 1px solid var(--yellow);
    border-radius: 50px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   BLUE SECTION – mascotes + ranking
   ============================================================ */
.rf-blue-section {
    background: #013952;
    padding: 44px 20px 52px;
    position: relative;
    overflow: hidden;
}

/* spots decorativos */
.rf-blue-section::before,
.rf-blue-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.rf-blue-section::before { width: 300px; height: 300px; top: -80px; left: -80px; }

.rf-blue-section::after  { width: 200px; height: 200px; bottom: -60px; right: -60px; }

.rf-ranking-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    font-style: italic;
    letter-spacing: 1px;
}

.rf-ranking-box {
    background: var(--white);
    border-radius: var(--radius);
    border: 7.5px solid rgb(0, 0, 0);
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ---- Infinite scroll wrapper ---- */
.rf-ranking-scroll-wrap {
    height: 380px;          /* janela visível — mostra ~8 linhas */
    overflow: hidden;
    position: relative;
}

/* Fade gradiente no topo e rodapé para suavizar a entrada/saída */
.rf-ranking-scroll-wrap::before,
.rf-ranking-scroll-wrap::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 48px;
    z-index: 10;
    pointer-events: none;
}
.rf-ranking-scroll-wrap::before {
    top: 0;
    background: linear-gradient(to bottom, #fff 0%, transparent 100%);
}
.rf-ranking-scroll-wrap::after {
    bottom: 0;
    background: linear-gradient(to top, #fff 0%, transparent 100%);
}

/* Track: coluna vertical que contém lista A + clone B */
.rf-ranking-track {
    display: flex;
    flex-direction: column;
    /* animation injetada via JS depois que o clone é adicionado */
}

/* Cada lista individual */
.rf-ranking-list { display: flex; flex-direction: column; }

/* Remove borda da última linha para o loop ficar imperceptível */
.rf-ranking-list .rf-ranking-row:last-child { border-bottom: 1px solid #f0f0f0; }

/* Animação do scroll para cima */
@keyframes rankScrollUp {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }  /* -50% = sobe exatamente 1 lista (A) */
}


.rf-ranking-row {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    gap: 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #111;
    transition: background 0.15s;
}
.rf-ranking-row:last-child { border-bottom: none; }
.rf-ranking-row:hover { background: #f9f9f9; }

.rf-rank-pos {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.rf-rank-pos.gold   { color: #f59e0b; }
.rf-rank-pos.silver { color: #9ca3af; }
.rf-rank-pos.bronze { color: #b45309; }

.rf-rank-medal {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rf-rank-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 700;
    color: #222;
}

.rf-rank-val {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111;
    flex-shrink: 0;
}

/* ============================================================
   FOOTER – preto com logo grande
   ============================================================ */
.rf-footer {
    background: #050507;
    padding: 48px 20px 32px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.rf-footer-brand {
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.rf-footer-copy {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.8;
    margin-bottom: 14px;
}

.rf-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.rf-footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.72rem;
    transition: color 0.2s;
}
.rf-footer-links a:hover { color: var(--yellow); }

.rf-footer-email {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================================
   MODALS (mantidos intactos)
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: #16191f;
    margin: 12% auto;
    padding: 30px;
    border: 1px solid rgba(250,204,21,0.25);
    width: 88%;
    max-width: 400px;
    border-radius: 20px;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bounceIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.close-modal {
    color: var(--yellow);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close-modal:hover { color: var(--white); }

.rules-text h2 { color: var(--yellow); margin-bottom: 16px; text-align: center; font-size: 1rem; letter-spacing: 2px; }
.rules-text p  { margin-bottom: 10px; font-size: 0.82rem; color: var(--muted); }
.rules-text strong { color: var(--white); }
.rules-text ol { margin-left: 20px; margin-bottom: 10px; }
.rules-text li { margin-bottom: 5px; font-size: 0.82rem; color: var(--muted); }

/* Guide modals */
.guide-modal-content {
    background: #16191f;
    margin: 8% auto;
    width: 92%;
    max-width: 440px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.9);
    animation: bounceIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.guide-image-container img { width: 100%; display: block; max-height: 380px; object-fit: cover; }
.guide-footer-text { background: #1c2028; padding: 20px; color: var(--white); border-top: 1px solid rgba(250,204,21,0.2); text-align: center; }
.guide-footer-text h3 { color: var(--yellow); margin: 0 0 8px; font-size: 1rem; font-weight: 700; letter-spacing: 1.5px; }
.guide-footer-text p  { font-size: 0.85rem; line-height: 1.5; margin: 0; color: var(--muted); }
.guide-footer-text strong { color: var(--white); }
.close-guide { position: absolute; top: 10px; right: 14px; color: #fff; font-size: 28px; font-weight: bold; cursor: pointer; z-index: 10; }

/* Scratch */
.scratch-container {
    background: #0f1014;
    margin: 8vh auto;
    padding: 28px 24px;
    width: 92%;
    max-width: 340px;
    border-radius: 28px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8);
    animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}
.scratch-box {
    position: relative;
    width: 220px; height: 220px;
    margin: 20px auto;
    background: #f0f0f0;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: inset -8px -8px 24px rgba(0,0,0,0.2), 0 0 24px rgba(250,204,21,0.12);
    border: 4px solid rgba(255,255,255,0.9);
}
.scratch-prize {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; z-index: 1;
}
.scratch-prize h2   { font-size: 2.8rem; color: #013952; margin: 5px 0; font-weight: 900; }
.scratch-prize span { color: #e67e22; font-weight: 900; font-size: 1.1rem; display: block; margin-bottom: 4px; }
.scratch-prize p    { color: #27ae60; font-size: 0.85rem; font-weight: bold; letter-spacing: 1px; }
.win-animation { animation: win-pop 0.5s ease-out forwards; }
@keyframes win-pop {
    0%   { transform: translate(-50%,-50%) scale(0.4); opacity: 0; }
    70%  { transform: translate(-50%,-50%) scale(1.15); }
    100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
#scratch-canvas { position: absolute; top: 0; left: 0; cursor: crosshair; z-index: 5; border-radius: 50%; }
.scratch-hint  { color: var(--yellow); font-size: 0.82rem; font-weight: 700; margin-top: 14px; text-transform: uppercase; letter-spacing: 1px; position: relative; z-index: 1; }
.close-scratch { position: absolute; top: 12px; right: 16px; font-size: 26px; color: rgba(255,255,255,0.7); cursor: pointer; z-index: 10; }
.close-scratch:hover { color: var(--white); }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* --- Mobile (até 600px) --- */
@media (max-width: 600px) {
    /* Navbar: esconde links, mostra hamburguer */
    .rf-navbar { padding: 0 14px; }
    .rf-nav-links { display: none; } /* esconde todos os links da navbar */
    .rf-nav-ham   { display: flex; } /* mostra hamburguer */

    /* Hero */
    .rf-hero { padding: 36px 16px 44px; min-height: 260px; }
    .rf-hero-logo { width: 130px; }

    /* Steps: coluna única */
    .rf-steps-grid { grid-template-columns: 1fr; max-width: 360px; }
    .rf-step-card  { padding: 16px; text-align: left; }
    .rf-step-num   { margin: 0 0 10px; }

    /* Cards */
    .rf-games-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }

    /* Ranking */
    .rf-ranking-row { padding: 11px 14px; }
    .rf-rank-name   { font-size: 0.75rem; }
    .rf-rank-val    { font-size: 0.75rem; }

    /* Footer */
    .rf-footer-brand { font-size: 2.2rem; }
}

/* --- Tablet (601-768px) --- */
@media (min-width: 601px) and (max-width: 768px) {
    .rf-nav-links { display: flex; } /* links visíveis */
    .rf-nav-ham   { display: none; }
    /* Mobile menu não aparece em tablet/desktop */
    .rf-mobile-menu { display: none !important; }
    .rf-steps-grid { grid-template-columns: repeat(3,1fr); }
    .rf-games-grid { grid-template-columns: repeat(2,1fr); }
}

/* --- Desktop (769px+) --- */
@media (min-width: 769px) {
    .rf-nav-links { display: flex; }
    .rf-nav-ham   { display: none; }
    .rf-mobile-menu { display: none !important; }
    .rf-steps-grid { grid-template-columns: repeat(3,1fr); }
    .rf-games-grid { grid-template-columns: repeat(2,1fr); max-width: 480px; }
    .rf-hero { min-height: 360px; }
    .rf-hero-logo { width: 180px; }
}
