@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --green: #00A859;
    --green-dark: #008F4C;
    --green-light: #E8F8EF;
    --green-mint: #F0FAF5;
    --dark: #0B241C;
    --yellow: #F5C518;
    --yellow-hover: #E6B800;
    --orange: #FF8C00;
    --blue: #2196F3;
    --purple: #7C3AED;
    --text: #1A1A1A;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    padding: 16px 0;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-dropdown-toggle:hover {
    background: var(--green-light);
}

.nav-dropdown-toggle .arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-dropdown-toggle.open .arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 300;
}

.nav-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--green-light);
    color: var(--green);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
    background: transparent;
}

button.btn {
    appearance: none;
}

.btn-outline {
    background: var(--white);
    border-color: var(--green);
    color: var(--green);
}

.btn-outline:hover {
    background: var(--green-light);
}

.btn-primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-yellow {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    padding: 14px 36px;
    border-radius: 10px;
}

.btn-yellow:hover {
    background: var(--yellow-hover);
    border-color: var(--yellow-hover);
}

.btn-participar {
    width: 100%;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: auto;
}

/* ===== HERO / CAROUSEL ===== */
.hero {
    padding: 24px 0 16px;
}

.carousel-wrapper {
    position: relative;
}

.carousel-track {
    position: relative;
    min-height: 380px;
}

.carousel-slide {
    display: none;
    background: linear-gradient(135deg, #0B241C 0%, #0F3028 50%, #0B241C 100%);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    animation: fadeIn 0.4s ease;
}

.carousel-slide.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(0, 168, 89, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    background: rgba(0, 168, 89, 0.25);
    border-radius: 8px;
    transform: rotate(15deg);
}

.hero-shape:nth-child(1) { width: 60px; height: 60px; top: 15%; right: 35%; opacity: 0.4; }
.hero-shape:nth-child(2) { width: 40px; height: 40px; top: 60%; right: 25%; opacity: 0.3; transform: rotate(-20deg); }
.hero-shape:nth-child(3) { width: 50px; height: 50px; top: 30%; right: 15%; opacity: 0.35; transform: rotate(30deg); }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-emoji {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.hero-badge {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 44px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-info-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-info-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.hero-info-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--green);
}

.hero-info-value.white {
    color: var(--white);
    font-size: 24px;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-trophy {
    width: 260px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.carousel-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.carousel-tab:hover {
    border-color: var(--green);
}

.carousel-tab.active {
    background: var(--green);
    color: var(--white);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--green);
    width: 24px;
    border-radius: 4px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title.center {
    text-align: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 36px;
}

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
}

/* ===== MAIORES PRÊMIOS ===== */
.premios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.premio-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.premio-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.premio-card.featured {
    border-color: var(--green);
    background: linear-gradient(135deg, #fff 0%, var(--green-mint) 100%);
}

.premio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.premio-card-name {
    font-size: 20px;
    font-weight: 800;
}

.premio-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--white);
    background: var(--green);
    letter-spacing: 0.3px;
}

.premio-badge.orange { background: var(--orange); }
.premio-badge.blue { background: var(--blue); }
.premio-badge.purple { background: var(--purple); }

.premio-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.premio-row span:first-child {
    color: var(--text-muted);
}

.premio-row span:last-child {
    font-weight: 700;
    color: var(--text);
}

.premio-row .valor-verde {
    color: var(--green);
    font-size: 18px;
    font-weight: 800;
}

.premio-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ===== COMO FUNCIONA (4 passos) ===== */
.como-funciona {
    background: var(--green-mint);
}

.steps-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-simple {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.step-simple-emoji {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.step-simple-num {
    width: 28px;
    height: 28px;
    background: var(--green);
    color: var(--white);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step-simple-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

/* ===== FLUXO ===== */
.fluxo-section {
    background: var(--white);
}

.fluxo-timeline {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fluxo-step {
    width: 100%;
    background: var(--white);
    border: 2px solid var(--green-light);
    border-radius: var(--radius);
    padding: 18px 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    transition: all 0.2s;
}

.fluxo-step:hover {
    border-color: var(--green);
    background: var(--green-light);
}

.fluxo-step.destaque {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    font-weight: 800;
    font-size: 16px;
}

.fluxo-arrow {
    color: var(--green);
    font-size: 22px;
    font-weight: 700;
    padding: 6px 0;
    line-height: 1;
}

/* ===== RANKING ===== */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
}

.ranking-pos {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.ranking-pos.p1 { background: #FFD700; color: #8B6914; }
.ranking-pos.p2 { background: #C0C0C0; color: #555; }
.ranking-pos.p3 { background: #CD7F32; color: #fff; }

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 16px;
    font-weight: 700;
}

.ranking-premio {
    font-size: 18px;
    font-weight: 800;
    color: var(--green);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    padding: 32px 0;
    margin-top: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-icon {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
}

.footer-icon svg {
    width: 18px;
    height: 18px;
}

.footer-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.footer-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .premios-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Header compacto */
    .header {
        padding: 10px 0;
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .header .container {
        gap: 12px;
    }

    .header-left {
        gap: 12px;
        min-width: 0;
    }

    .header-left .nav-dropdown {
        display: none;
    }

    .logo-text {
        font-size: 17px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Hero / carousel */
    .hero {
        padding: 12px 0 8px;
    }

    .carousel-track {
        min-height: auto;
    }

    .carousel-slide {
        grid-template-columns: 1fr;
        padding: 28px 20px 24px;
        text-align: center;
        min-height: auto;
        gap: 16px;
        border-radius: 16px;
    }

    .carousel-slide.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .hero-info {
        width: 100%;
        max-width: 280px;
        margin-bottom: 20px;
    }

    .hero-info-value {
        font-size: 24px;
    }

    .hero-info-value.white {
        font-size: 20px;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 4px;
    }

    .hero-trophy {
        width: 140px;
        margin: 0 auto;
    }

    .btn-yellow {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 14px;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 0 8px;
        margin-top: 12px;
        gap: 8px;
    }

    .carousel-tabs::-webkit-scrollbar {
        display: none;
    }

    .carousel-tab {
        flex-shrink: 0;
        font-size: 11px;
        padding: 8px 14px;
    }

    .carousel-dots {
        margin-top: 8px;
    }

    /* Seções */
    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 19px;
    }

    .section-title.center {
        margin-bottom: 24px;
    }

    .steps-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .step-simple {
        padding: 20px 14px;
    }

    .step-simple-title {
        font-size: 13px;
    }

    .ranking-list {
        max-width: 100%;
    }

    .ranking-item {
        padding: 16px;
        gap: 12px;
    }

    .ranking-premio {
        font-size: 15px;
        white-space: nowrap;
    }

    .footer {
        padding: 24px 0;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Cards de ligas — quase largura total no mobile */
    .room-card {
        flex: 0 0 min(300px, calc(100vw - 48px));
    }

    .category-block-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 15px;
        letter-spacing: 0.5px;
    }

    .header-actions .btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .header-actions .btn-outline {
        padding: 8px 12px;
    }

    .carousel-slide {
        padding: 24px 16px 20px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-trophy {
        width: 110px;
    }

    .hero-info-value {
        font-size: 20px;
    }

    .steps-simple {
        grid-template-columns: 1fr;
    }

    .fluxo-step {
        padding: 14px 16px;
        font-size: 14px;
    }

    .ranking-name {
        font-size: 14px;
    }

    .ranking-pos {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .room-card {
        flex: 0 0 calc(100vw - 40px);
        min-height: 200px;
        padding: 16px;
    }

    .room-card-name {
        font-size: 15px;
    }

    .category-filter {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .logo-text {
        display: none;
    }

    .header-actions {
        flex: 1;
        justify-content: flex-end;
    }
}

/* ===== CATEGORIAS / LIGAS (scroll horizontal) ===== */
.category-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 8px;
    scrollbar-width: none;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.category-filter {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.category-filter:hover {
    border-color: var(--green);
    color: var(--green);
}

.category-filter.active {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.category-block {
    margin-bottom: 36px;
}

.category-block-header {
    margin-bottom: 16px;
}

.category-block-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}

.category-block-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.rooms-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.rooms-scroll::-webkit-scrollbar {
    height: 6px;
}

.rooms-scroll::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.room-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.room-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.room-card.featured {
    border-color: var(--green);
    background: linear-gradient(135deg, #fff 0%, var(--green-mint) 100%);
}

.room-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.room-card-name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.room-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.room-badge.FREE { background: #E3F2FD; color: #1565C0; }
.room-badge.PREMIUM { background: #FDF6D8; color: #8B6914; }
.room-badge\.1x1,
.room-badge.x1 { background: #F3E5F5; color: #7B1FA2; }
.room-badge[class*="1x1"] { background: #F3E5F5; color: #7B1FA2; }
.room-badge.POPULAR { background: #FFF3E0; color: #E65100; }
.room-badge.EXCLUSIVO { background: #E8EAF6; color: #3949AB; }

.room-championship {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.room-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.room-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.room-row span:first-child {
    color: var(--text-muted);
}

.room-row .valor-verde {
    color: var(--green);
    font-weight: 800;
    font-size: 15px;
}

.room-matches {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.room-badge.CHEAPEST { background: #FFF3E0; color: #E65100; }

.categories-loading,
.categories-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* =============================================================================
   HOME APP — estilo Rei do Pitaco (mobile-first)
   ============================================================================= */

.home-page {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #F3F4F6;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    overflow-x: hidden;
}

@media (min-width: 481px) {
    body:has(.home-page) {
        background: #E5E7EB;
    }

    .home-page {
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
    }
}

/* Header estilo Pitaco */
.pitaco-header,
.home-header {
    position: sticky;
    top: 0;
    z-index: 200;
    padding-top: env(safe-area-inset-top);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.pitaco-header-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 12px;
}

.pitaco-header-bar {
    background: var(--white);
}

.pitaco-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 8px 4px;
}

.pitaco-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pitaco-header-logo {
    display: flex;
    align-items: center;
    color: var(--green);
    flex-shrink: 0;
    text-decoration: none;
}

.pitaco-header-logo-svg {
    display: block;
    width: 36px;
    height: 24px;
}

.pitaco-header-logo-img {
    height: 28px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

.pitaco-header-product {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.pitaco-header-product svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.pitaco-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    position: relative;
    flex-shrink: 0;
}

.pitaco-header-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: 4px 6px;
    text-decoration: none;
    color: var(--green);
    border-radius: 8px;
    transition: background 0.15s;
}

.pitaco-header-balance:hover {
    background: var(--green-mint);
}

.pitaco-header-balance-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    color: var(--green);
}

.pitaco-header-balance-value {
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    color: var(--green);
}

.pitaco-header-wallet {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    margin-left: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.15s, transform 0.15s;
}

.pitaco-header-wallet:hover {
    box-shadow: 0 2px 8px rgba(0, 168, 89, 0.15);
    transform: translateY(-1px);
}

.pitaco-header-icon-btn,
.pitaco-header-menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.pitaco-header-icon-btn:hover,
.pitaco-header-menu-btn:hover {
    background: var(--green-mint);
}

.pitaco-header-entrar {
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s;
}

.pitaco-header-entrar:hover {
    background: var(--green-dark);
}

/* Drawer conta — estilo Pitaco */
.pitaco-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 500;
}

.pitaco-drawer-overlay[hidden] {
    display: none;
}

.pitaco-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100%;
    z-index: 501;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.pitaco-drawer[aria-hidden="false"] {
    transform: translateX(0);
}

.pitaco-drawer-panel {
    height: 100%;
    overflow-y: auto;
    background: var(--white);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
}

.pitaco-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
}

.pitaco-drawer-ola {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    flex: 1;
}

.pitaco-drawer-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.pitaco-drawer-close:hover {
    background: #F3F4F6;
}

.pitaco-drawer-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.pitaco-drawer-wallet {
    padding: 16px 20px 20px;
    border-bottom: 8px solid #F3F4F6;
}

.pitaco-drawer-wallet-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pitaco-drawer-saldo-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pitaco-drawer-saldo-valor {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.pitaco-drawer-eye {
    width: 36px;
    height: 36px;
    border: none;
    background: #F3F4F6;
    border-radius: 50%;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.pitaco-drawer-wallet-tags {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.pitaco-drawer-tag {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pitaco-drawer-tag span {
    font-size: 11px;
    color: var(--text-muted);
}

.pitaco-drawer-tag strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
}

.pitaco-drawer-depositar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.15s;
}

.pitaco-drawer-depositar:hover {
    background: var(--green-dark);
}

.pitaco-drawer-list {
    list-style: none;
    padding: 8px 0 24px;
    margin: 0;
}

.pitaco-drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s;
}

.pitaco-drawer-item:hover {
    background: var(--green-mint);
}

.pitaco-drawer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #323232;
    flex-shrink: 0;
}

.pitaco-drawer-item--sair {
    color: var(--text);
    margin-top: 4px;
}

body.pitaco-drawer-aberto {
    overflow: hidden;
}

/* Filtros pills */
.home-filters-wrap {
    background: var(--white);
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--border);
}

.home-page .category-filters {
    padding-bottom: 4px;
    margin-bottom: 0;
    gap: 10px;
}

.home-page .category-filter {
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    border: 1.5px solid #D1D5DB;
    background: var(--white);
    color: var(--text);
}

.home-page .category-filter.active {
    background: var(--white);
    border-color: var(--green);
    color: var(--green);
    font-weight: 700;
}

/* Banner destaque */
.home-banner {
    padding: 12px 16px 0;
}

.home-banner .carousel-wrapper {
    overflow: hidden;
}

.home-banner .carousel-track {
    display: flex;
    min-height: 0;
    transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.home-banner .carousel-slide,
.home-banner .home-banner-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    min-height: 0;
    display: block !important;
    box-sizing: border-box;
}

.home-banner-slide {
    background: radial-gradient(ellipse 120% 90% at 50% 20%, #9EEFD4 0%, #6ADFB8 38%, #45CFA8 68%, #2FB896 100%);
    border-radius: 20px;
    padding: 14px 16px 12px;
    min-height: 168px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 80, 60, 0.18);
}

.home-banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, transparent 42%, rgba(255, 255, 255, 0.09) 42%, rgba(255, 255, 255, 0.09) 44%, transparent 44%),
        linear-gradient(55deg, transparent 48%, rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0.06) 50%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255, 255, 255, 0.04) 18px, rgba(255, 255, 255, 0.04) 36px);
    pointer-events: none;
}

.home-banner-slide.has-banner-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-banner-slide.has-banner-image::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.48) 100%);
}

.home-banner-tag,
.home-banner-head,
.home-banner-hero,
.home-banner-footer {
    position: relative;
    z-index: 1;
}

.home-banner-tag {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #0f3d32;
    margin-bottom: 4px;
    opacity: 0.9;
}

.home-banner-head {
    text-align: center;
    margin-bottom: 2px;
}

.home-banner-subtitle {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0f3d32;
    line-height: 1.2;
}

.home-banner-match {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.home-banner-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 12px;
    min-height: 56px;
}

.home-banner-escudo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.22));
}

.home-banner-escudo--placeholder {
    display: block;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

@keyframes home-banner-prize-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-7px) scale(1.04);
    }
}

@keyframes home-banner-prize-glow {
    0%, 100% {
        text-shadow:
            0 1px 0 #e8b800,
            0 2px 0 #d4a500,
            0 3px 0 #c49200,
            0 4px 0 #a67d00,
            0 6px 12px rgba(0, 0, 0, 0.32);
    }
    50% {
        text-shadow:
            0 1px 0 #ffe566,
            0 2px 0 #f0c020,
            0 3px 0 #e0a800,
            0 4px 0 #c49200,
            0 8px 18px rgba(255, 200, 0, 0.45),
            0 6px 14px rgba(0, 0, 0, 0.28);
    }
}

@keyframes home-banner-prize-shine {
    0% {
        transform: translateX(-130%) skewX(-18deg);
        opacity: 0;
    }
    12% {
        opacity: 0.85;
    }
    28% {
        transform: translateX(130%) skewX(-18deg);
        opacity: 0;
    }
    100% {
        transform: translateX(130%) skewX(-18deg);
        opacity: 0;
    }
}

.home-banner-prize {
    position: relative;
    flex-shrink: 0;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    color: #ffd42a;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    padding: 0 2px;
    animation:
        home-banner-prize-float 2.6s ease-in-out infinite,
        home-banner-prize-glow 2.6s ease-in-out infinite;
}

.home-banner-prize::after {
    content: '';
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: 0;
    width: 42%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.15) 65%,
        transparent 100%
    );
    pointer-events: none;
    animation: home-banner-prize-shine 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .home-banner-prize {
        animation: none;
        text-shadow:
            0 1px 0 #e8b800,
            0 2px 0 #d4a500,
            0 3px 0 #c49200,
            0 4px 0 #a67d00,
            0 6px 12px rgba(0, 0, 0, 0.32);
    }

    .home-banner-prize::after {
        display: none;
    }
}

.home-banner-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.home-banner-entrada {
    justify-self: start;
    font-size: 12px;
    font-weight: 600;
    color: #0f3d32;
    line-height: 1.2;
    white-space: nowrap;
}

.home-banner-entrada strong {
    font-weight: 800;
    font-size: 13px;
    color: #0a2e25;
}

.home-banner-cta {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 11px 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe566 0%, #ffc82e 48%, #f5a800 100%);
    color: #142e28;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow:
        0 4px 0 #c49210,
        0 7px 16px rgba(0, 0, 0, 0.22);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.home-banner-cta:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #c49210,
        0 4px 10px rgba(0, 0, 0, 0.18);
}

.home-banner-fecha {
    justify-self: end;
    font-size: 11px;
    font-weight: 600;
    color: #0f3d32;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
}

.home-banner-fecha--empty {
    visibility: hidden;
}

.home-banner-slide.has-banner-image .home-banner-tag,
.home-banner-slide.has-banner-image .home-banner-subtitle,
.home-banner-slide.has-banner-image .home-banner-entrada,
.home-banner-slide.has-banner-image .home-banner-entrada strong,
.home-banner-slide.has-banner-image .home-banner-fecha {
    color: rgba(255, 255, 255, 0.92);
}

.home-banner-slide.has-banner-image .home-banner-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 360px) {
    .home-banner-prize {
        font-size: 28px;
    }

    .home-banner-escudo,
    .home-banner-escudo--placeholder {
        width: 44px;
        height: 44px;
    }

    .home-banner-match {
        font-size: 16px;
    }

    .home-banner-cta {
        min-width: 92px;
        padding: 10px 24px;
        font-size: 14px;
    }

    .home-banner-entrada,
    .home-banner-fecha {
        font-size: 10px;
    }
}

.home-page .home-banner .carousel-dots {
    margin-top: 6px;
    margin-bottom: 0;
    padding: 0;
}

/* Seções de ligas */
.home-ligas {
    padding: 8px 0 16px;
}

.liga-section {
    margin-bottom: 20px;
}

.liga-section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    padding: 12px 16px 10px;
    text-transform: capitalize;
}

.liga-section-scroll-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.liga-section-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 8px;
    width: 40px;
    background: linear-gradient(to left, var(--white) 10%, rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 1;
}

.liga-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    padding: 0 16px 8px;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    cursor: grab;
}

.liga-scroll.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.liga-scroll--single {
    overflow-x: visible;
}

.liga-scroll::-webkit-scrollbar {
    display: none;
}

/* Cards estilo Rei do Pitaco — retangulares, header cinza */
.liga-card {
    --liga-card-width: clamp(248px, 78vw, 272px);
    flex: 0 0 var(--liga-card-width);
    width: var(--liga-card-width);
    min-width: var(--liga-card-width);
    max-width: var(--liga-card-width);
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    content-visibility: auto;
    contain-intrinsic-size: auto 220px;
    contain: layout style paint;
}

.liga-card--treino {
    border-color: #93C5FD;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.12);
}

.liga-card--treino .liga-card-header {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.liga-card--treino .liga-preco-valor:first-child {
    color: #2563EB;
    font-size: 13px;
}

.liga-card--assistencia {
    border-color: #93C5FD;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.14);
}

.liga-card--assistencia .liga-card-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #3B82F6 100%);
}

.liga-card--1x1 {
    border-color: #6EE7B7;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12);
}

.liga-card--1x1 .liga-card-header {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.liga-card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: none;
    overflow: hidden;
    background-color: #009739;
    background-image:
        linear-gradient(
            135deg,
            rgba(0, 100, 50, 0.35) 0%,
            rgba(255, 223, 0, 0.12) 45%,
            rgba(0, 39, 118, 0.28) 100%
        ),
        url('../img/liga-header-brasil-watercolor.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.liga-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        118deg,
        rgba(0, 120, 60, 0.25) 0%,
        rgba(255, 255, 255, 0.06) 38%,
        rgba(255, 223, 0, 0.08) 52%,
        rgba(0, 39, 118, 0.22) 100%
    );
    pointer-events: none;
}

.liga-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 90% at 8% 15%, rgba(0, 151, 57, 0.45) 0%, transparent 62%),
        radial-gradient(ellipse 85% 75% at 52% 48%, rgba(254, 221, 0, 0.35) 0%, transparent 58%),
        radial-gradient(ellipse 75% 85% at 92% 88%, rgba(0, 39, 118, 0.5) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.85;
}

.liga-card-header-left {
    position: relative;
    z-index: 2;
    min-width: 0;
    flex: 1;
}

.liga-card-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.liga-card-cat {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.liga-card-deadline {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    color: #002776;
    background: rgba(255, 255, 255, 0.92);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.liga-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: var(--white);
}

.liga-card-precos {
    display: flex;
    gap: 18px;
    min-width: 0;
}

.liga-preco-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.liga-preco-label {
    font-size: 11px;
    font-weight: 500;
    color: #9CA3AF;
    line-height: 1.2;
}

.liga-preco-valor {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    white-space: nowrap;
}

.liga-preco-hint {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted, #6B7280);
    line-height: 1.2;
    white-space: normal;
}

.liga-btn-entrar {
    background: var(--green);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.liga-btn-entrar:hover {
    background: var(--green-dark);
}

.liga-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid #F3F4F6;
    background: var(--white);
    font-size: 11px;
    color: #9CA3AF;
}

.liga-card-footer-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.liga-foot-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-weight: 500;
}

.liga-foot-item svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.liga-foot-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

.liga-foot-count svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 360px) {
    .liga-card {
        --liga-card-width: 260px;
    }

    .liga-preco-valor {
        font-size: 15px;
    }

    .liga-btn-entrar {
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* Ajuda — carousel compacto com autoplay */
.home-ajuda {
    padding: 8px 0 20px;
    overflow: hidden;
}

.home-ajuda-head {
    padding: 0 16px 10px;
}

.home-ajuda-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-ajuda-carousel {
    overflow: hidden;
    padding: 0 16px;
}

.home-ajuda-track {
    display: flex;
    transition: transform 0.45s ease;
}

.home-ajuda-card {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    min-height: 108px;
    padding: 12px 14px 11px;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-ajuda-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.06) 38%,
        transparent 62%
    );
    pointer-events: none;
    z-index: 1;
}

.home-ajuda-card-shine {
    position: absolute;
    top: -40%;
    left: -60%;
    width: 45%;
    height: 180%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    transform: skewX(-18deg);
    animation: home-ajuda-shine 4.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.home-ajuda-card:nth-child(2) .home-ajuda-card-shine { animation-delay: 0.8s; }
.home-ajuda-card:nth-child(3) .home-ajuda-card-shine { animation-delay: 1.6s; }
.home-ajuda-card:nth-child(4) .home-ajuda-card-shine { animation-delay: 2.4s; }

@keyframes home-ajuda-shine {
    0%, 72% {
        left: -70%;
        opacity: 0;
    }
    78% {
        opacity: 1;
    }
    100% {
        left: 130%;
        opacity: 0;
    }
}

.home-ajuda-card--1 {
    background: linear-gradient(145deg, #00c96a 0%, #008f4c 55%, #066b3a 100%);
}

.home-ajuda-card--2 {
    background: linear-gradient(145deg, #5b8cff 0%, #3b6fe8 55%, #254fb8 100%);
}

.home-ajuda-card--3 {
    background: linear-gradient(145deg, #a855f7 0%, #7c3aed 55%, #5b21b6 100%);
}

.home-ajuda-card--4 {
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%);
}

.home-ajuda-card-num {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.home-ajuda-card-icon {
    position: relative;
    z-index: 3;
    font-size: 22px;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.home-ajuda-card-title {
    position: relative;
    z-index: 3;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.home-ajuda-card-text {
    position: relative;
    z-index: 3;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-ajuda-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.home-ajuda-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #D1D5DB;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.home-ajuda-dot.active {
    background: var(--green);
    transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
    .home-ajuda-card-shine {
        animation: none;
    }

    .home-ajuda-track {
        transition: none;
    }
}

/* Pausa animações durante rolagem vertical (evita travadas) */
body.home-page.home-scrolling .home-banner-prize,
body.home-page.home-scrolling .home-banner-prize::after,
body.home-page.home-scrolling .home-ajuda-card-shine,
body.home-page.home-scrolling .app-footer-badge--pulse {
    animation-play-state: paused;
}

body.home-page.home-scrolling .home-banner .carousel-track.is-sliding,
body.home-page.home-scrolling .home-ajuda-track.is-sliding {
    will-change: transform;
}

/* Footer fixo */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    z-index: 300;
}

.app-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 500;
    color: #9CA3AF;
    padding: 6px 10px;
    min-width: 64px;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.app-footer-item svg {
    width: 22px;
    height: 22px;
}

.app-footer-item.active {
    color: var(--green);
    font-weight: 700;
}

.app-footer-menu-btn {
    appearance: none;
}

.app-footer-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.app-footer-badge {
    position: absolute;
    top: -5px;
    right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--white);
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

.app-footer-badge--pulse {
    animation: app-footer-badge-pulse 1.4s ease-in-out infinite;
}

@keyframes app-footer-badge-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(1.08);
    }
}

/* Menu drawer */
.menu-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 400;
}

.menu-drawer-overlay[hidden] {
    display: none;
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100%;
    background: var(--white);
    z-index: 401;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    padding-top: env(safe-area-inset-top);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.menu-drawer[aria-hidden="false"] {
    transform: translateX(0);
}

.menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.menu-drawer-title {
    font-size: 18px;
    font-weight: 800;
}

.menu-drawer-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #F3F4F6;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.menu-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
}

.menu-drawer-nav a,
.menu-drawer-nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.menu-drawer-nav a:hover,
.menu-drawer-nav button:hover {
    background: var(--green-light);
    color: var(--green);
}

.menu-drawer-user {
    padding: 8px 12px 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.menu-drawer-sair {
    color: #DC2626 !important;
    margin-top: 8px;
}

body.menu-aberto {
    overflow: hidden;
}
