/* =============================================================================
   NETLOVE · GLOBAL.CSS
   Design system compartilhado por todas as telas do PWA.
   Fonte única da verdade para tokens e componentes reutilizáveis.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

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

:root {
    /* --- Cor --- */
    --red: #E50914;
    --red-dark: #B20710;
    --red-glow: rgba(229, 9, 20, 0.22);
    --bg: #080808;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --border: rgba(255, 255, 255, 0.07);
    --border-red: rgba(229, 9, 20, 0.30);
    --text: #f0f0f0;
    --text-muted: #777777;
    --text-dim: #444444;

    /* --- Layout --- */
    --topbar-h: 52px;
    --bottomnav-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);

    /* --- Raios --- */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    /* --- Easing --- */
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* Grão de filme sutil — assinatura visual do app */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.6;
}

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

button {
    font-family: inherit;
}

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

/* =============================================================================
   LAYOUT — TOPO MÍNIMO (opcional, só logo + logout) e MAIN
   ============================================================================= */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--topbar-h) + var(--safe-top));
    padding-top: var(--safe-top);
    padding: var(--safe-top) 1.1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0) 100%);
    z-index: 200;
    pointer-events: none;
}

.topbar>* {
    pointer-events: auto;
}

.topbar-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.topbar-logo span {
    color: var(--red);
}

.btn-icon-round {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.btn-icon-round:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-icon-round svg {
    width: 15px;
    height: 15px;
}

main {
    padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 1.25rem);
    min-height: 100vh;
}

/* =============================================================================
   COMPONENTE — TAB BAR (navegação inferior nativa)
   5 destinos fixos: Início · Linha do Tempo · Mídias · Guia · Passaporte
   ============================================================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottomnav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 500;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.2s var(--ease-out);
}

.nav-item svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    transition: transform 0.25s var(--spring);
}

.nav-item.active {
    color: var(--text);
}

.nav-item.active svg {
    stroke: var(--red);
    transform: translateY(-1px);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px 1px var(--red-glow);
}

/* =============================================================================
   COMPONENTE — HERO SECTION (Início)
   ============================================================================= */
.hero {
    position: relative;
    width: 100%;
    height: 78svh;
    max-height: 680px;
    overflow: hidden;
}

.hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    animation: heroReveal 1s var(--ease-out) both;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 8, 0.92) 20%, rgba(8, 8, 8, 0.05) 52%, rgba(8, 8, 8, 0.3) 100%),
        linear-gradient(100deg, rgba(8, 8, 8, 0.7) 0%, transparent 55%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 1.25rem 1.5rem;
    animation: heroContentIn 0.9s 0.15s var(--ease-out) both;
}

@keyframes heroContentIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.hero-eyebrow .dot {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.7);
    }
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.1rem, 9vw, 3.1rem);
    letter-spacing: 1px;
    line-height: 0.98;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-title .sub {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.72rem, 3.4vw, 0.85rem);
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.hero-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 34ch;
    line-height: 1.55;
    margin-bottom: 1.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #0a0a0a;
    border: none;
    padding: 0.75rem 1.35rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), background 0.2s;
}

.btn-hero-primary:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: scale(1.02);
}

.btn-hero-primary:active {
    transform: scale(0.97);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
    border: none;
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s;
}

.btn-hero-ghost:hover {
    background: rgba(109, 109, 110, 0.9);
}

/* =============================================================================
   COMPONENTE — CONTADOR DE TEMPO ("episódio em andamento")
   ============================================================================= */
.since-line {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.6rem 1.25rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.since-line strong {
    color: var(--red);
}

.time-counter {
    position: relative;
    background: linear-gradient(90deg, var(--bg-card) 0%, rgba(229, 9, 20, 0.05) 100%);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 1.1rem 1.25rem;
    overflow: hidden;
}

.time-counter::before {
    /* barra "em reprodução" — preenchimento contínuo, nunca termina */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--red) 0%, var(--red) 70%, transparent 70%);
    background-size: 200% 100%;
    animation: counterPlaying 3.2s linear infinite;
}

@keyframes counterPlaying {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.time-counter-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.time-counter-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--red);
}

.time-counter-live .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: heartbeat 1.4s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.35);
        opacity: 0.7;
    }
}

.time-counter-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.time-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.time-unit {
    text-align: center;
    position: relative;
}

.time-unit+.time-unit::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8%;
    width: 1px;
    height: 84%;
    background: var(--border);
}

.time-unit strong {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    letter-spacing: 1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.time-unit span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.58rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* =============================================================================
   COMPONENTE — CABEÇALHO DE PÁGINA (telas sem Hero: Linha do Tempo, Mídias,
   Guia, Passaporte)
   ============================================================================= */
.page-header {
    padding: calc(1.5rem + var(--safe-top)) 1.25rem 1.1rem;
}

.page-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    line-height: 1;
}

.page-header h1 em {
    color: var(--red);
    font-style: normal;
}

.page-header p {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.page-stats {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.stat-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.stat-chip strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--red);
}

/* Thumbnail com ícone/gradiente — fallback quando não há foto do episódio */
.episode-thumb.icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.16) 0%, var(--bg-elevated) 70%);
}

/* =============================================================================
   COMPONENTE — CABEÇALHO DE SEÇÃO + TRILHOS (CARROSSÉIS)
   ============================================================================= */
.section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.25rem 0.75rem;
}

.section-hd h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 2.5px;
}

.section-hd h3 em {
    color: var(--red);
    font-style: normal;
}

.section-hd a {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.section-hd a:hover {
    color: var(--red);
}

.rail {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1.25rem 0.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
    display: none;
}

/* Card de "episódio" — usado na trilha da Linha do Tempo */
.episode-card {
    flex-shrink: 0;
    width: 210px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .25s, transform .25s var(--ease-out);
}

.episode-card:hover {
    border-color: var(--border-red);
    transform: translateY(-3px);
}

.episode-card:active {
    transform: scale(.98);
}

.episode-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-elevated);
    overflow: hidden;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-num {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.episode-body {
    padding: 0.8rem 0.9rem 0.95rem;
}

.episode-date {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.3rem;
    display: block;
}

.episode-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.episode-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Poster 2:3 — usado nos trilhos de Mídias */
.poster-card {
    flex-shrink: 0;
    width: 128px;
    aspect-ratio: 2/3;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: transform .25s var(--ease-out), box-shadow .25s;
}

.poster-card:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .7), 0 0 0 1px var(--border-red);
    z-index: 2;
}

.poster-card:active {
    transform: scale(.97);
}

.poster-card img,
.poster-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .95) 100%);
    display: flex;
    align-items: flex-end;
    padding: 0.55rem;
    opacity: 0;
    transition: opacity .25s;
}

.poster-card:hover .poster-overlay {
    opacity: 1;
}

.poster-caption {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 1);
    line-height: 1.3;
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 34px;
    height: 34px;
    background: rgba(229, 9, 20, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--spring);
}

.poster-card:hover .poster-play {
    transform: translate(-50%, -50%) scale(1);
}

.poster-play svg {
    width: 12px;
    height: 12px;
    fill: #fff;
    margin-left: 2px;
}

/* =============================================================================
   COMPONENTE — TEASER (Guia / Passaporte) estilo "Minha Lista"
   ============================================================================= */
.teaser-card {
    margin: 0.25rem 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(229, 9, 20, .08) 0%, rgba(229, 9, 20, .03) 100%);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: border-color .2s, transform .2s var(--ease-out);
}

.teaser-card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.teaser-card:active {
    transform: scale(.98);
}

.teaser-info h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.teaser-info p {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.teaser-progress {
    flex: 1;
    max-width: 120px;
}

.teaser-bar {
    height: 4px;
    background: rgba(255, 255, 255, .08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.teaser-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), #ff4444);
    border-radius: 4px;
    transition: width .6s var(--ease-out);
}

.teaser-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.teaser-arrow {
    font-size: 1.3rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* =============================================================================
   OVERLAYS COMPARTILHADOS — loading / toast / bloqueio
   ============================================================================= */
#loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.2s ease;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    margin: 0 auto 0.9rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-inner p {
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.toast {
    position: fixed;
    bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-red);
    color: var(--text);
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 0.82rem;
    z-index: 3000;
    opacity: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.toast i {
    color: var(--red);
    font-size: 0.9rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.blocked-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.25rem;
    animation: fadeIn 0.25s ease;
}

.blocked-card {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.75rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(229, 9, 20, 0.25);
    animation: slideUp 0.3s var(--ease-out);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.blocked-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.blocked-card h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 0.85rem;
}

.blocked-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
}

.blocked-card button {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.blocked-card button:hover {
    background: var(--red-dark);
}

/* =============================================================================
   COMPONENTE — MODAL GENÉRICO (detalhe de episódio, formulários, etc.)
   ============================================================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 420px;
    max-height: 86vh;
    overflow-y: auto;
    animation: modalIn 0.25s var(--ease-out);
    position: relative;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }

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

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    z-index: 2;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* =============================================================================
   COMPONENTE — GUIA ("Minha Lista") · progresso + grid de itens
   ============================================================================= */
.guide-progress-wrap {
    margin: 0 1.25rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
}

.guide-progress-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.guide-progress-pct {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    color: var(--red);
    letter-spacing: 1px;
}

.guide-progress-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.guide-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    overflow: hidden;
}

.guide-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), #ff4444);
    border-radius: 8px;
    transition: width 0.6s var(--ease-out);
}

.guide-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.guide-toolbar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.filter-chip:not(.active):hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.random-btn {
    flex-shrink: 0;
    margin-left: auto;
    background: transparent;
    border: 1px dashed var(--border-red);
    color: var(--red);
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.random-btn:hover {
    background: var(--red-glow);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    padding: 1rem 1.25rem 1.5rem;
}

.guide-card {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s var(--ease-out);
}

.guide-card:active {
    transform: scale(0.95);
}

.guide-card .g-icon {
    font-size: 1.4rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.guide-card .g-label {
    font-size: 0.63rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.guide-card.done {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.12) 0%, var(--bg-card) 100%);
    border-color: var(--border-red);
}

.guide-card.done .g-icon {
    color: var(--red);
}

.guide-card.done .g-label {
    color: var(--text);
}

.guide-check {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red);
    display: none;
    align-items: center;
    justify-content: center;
}

.guide-card.done .guide-check {
    display: flex;
}

.guide-check svg {
    width: 9px;
    height: 9px;
    stroke: #fff;
    stroke-width: 3;
    fill: none;
}

.guide-card.pulse {
    animation: guidePulse 0.9s var(--ease-out);
}

@keyframes guidePulse {
    0% {
        box-shadow: 0 0 0 0 var(--red-glow);
    }

    70% {
        box-shadow: 0 0 0 10px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

/* =============================================================================
   COMPONENTE — PASSAPORTE (cartão estilo boarding pass / carimbo)
   ============================================================================= */
.passport-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 0.5rem 1.25rem 1.5rem;
}

.passport-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.passport-photo {
    width: 34%;
    min-height: 130px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.passport-photo.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(160deg, rgba(229, 9, 20, 0.18) 0%, var(--bg-elevated) 75%);
}

.passport-divider {
    width: 0;
    position: relative;
    border-left: 2px dashed var(--border);
}

.passport-divider::before,
.passport-divider::after {
    content: '';
    position: absolute;
    left: -8px;
    width: 16px;
    height: 16px;
    background: var(--bg);
    border-radius: 50%;
}

.passport-divider::before {
    top: -8px;
}

.passport-divider::after {
    bottom: -8px;
}

.passport-info {
    flex: 1;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.passport-stamp {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1.5px solid var(--red);
    color: var(--red);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transform: rotate(-3deg);
    margin-bottom: 0.3rem;
}

.passport-dest {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    line-height: 1.05;
}

.passport-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.passport-note {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
    line-height: 1.4;
}

/* =============================================================================
   COMPONENTE — LIGHTBOX IMERSIVO (Mídias: fotos e vídeos)
   ============================================================================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 5000;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}

.lightbox.active {
    display: flex;
}

.lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.lightbox-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(1rem + var(--safe-top)) 1rem 2.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.lightbox-counter {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.lightbox-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.lightbox-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.25rem calc(1.25rem + var(--safe-bottom));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    z-index: 2;
}

.lightbox-caption {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    text-align: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-prev {
    left: 0.75rem;
}

.lightbox-next {
    right: 0.75rem;
}

.lightbox-nav svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 480px) {
    .lightbox-nav {
        display: none;
    }

    /* mobile usa gesto de swipe */
}

/* =============================================================================
   COMPONENTE — HUB DE EXTRAS (grid de 4 cards + sistema de painéis)
   ============================================================================= */
.extras-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  padding: 0.5rem 1.25rem 1.5rem;
}
.extras-card {
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.extras-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent, var(--red)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}
.extras-card:hover { border-color: var(--border-red); transform: translateY(-3px); }
.extras-card:hover::before { opacity: 0.1; }
.extras-card:active { transform: scale(0.97); }
.extras-card i {
  font-size: 1.9rem;
  color: var(--accent, var(--red));
  position: relative;
}
.extras-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
}
.extras-card small {
  font-size: 0.64rem;
  color: var(--text-muted);
  line-height: 1.3;
  position: relative;
}
.extras-badge-18 {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  background: var(--red);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

/* Painéis — só um visível por vez, alternados via JS */
.extras-panel { display: none; }
.extras-panel.active { display: block; animation: panelIn 0.35s var(--ease-out); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.extras-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: calc(1.25rem + var(--safe-top)) 1.25rem 1rem;
}
.extras-back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.extras-back-btn:hover { border-color: var(--border-red); color: var(--red); }
.extras-panel-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  line-height: 1;
}
.extras-panel-header p { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Aviso +18 reutilizável dentro dos painéis íntimos */
.intimate-notice {
  margin: 0 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(229,9,20,0.08);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.intimate-notice i { color: var(--red); flex-shrink: 0; }

/* =============================================================================
   COMPONENTES COMPARTILHADOS — módulos +18 do Extras (Posições, Verdade ou
   Desafio, Pureza). Botões em formato pílula, deliberadamente distintos do
   resto do app, para sinalizar "modo jogo" dentro do hub.
   ============================================================================= */
.btn-pill {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.btn-pill:active { transform: scale(0.97); }
.btn-pill:disabled { opacity: 0.5; pointer-events: none; }
.btn-pill-accent {
  background: linear-gradient(120deg, #ff3468, #d81a4d);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255,52,104,0.28);
}
.btn-pill-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-pill-ghost:hover { border-color: var(--border-red); color: var(--text); }

/* =============================================================================
   MÓDULO · POSIÇÕES (sorteador sem repetição)
   ============================================================================= */
.ks-card {
  margin: 0 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}
.ks-counter {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.ks-counter b { color: var(--red); font-weight: 800; }

.ks-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--bg-elevated), var(--bg-card) 80%);
  border: 1px solid var(--border-red);
  box-shadow: inset 0 0 0 1px rgba(229,9,20,0.08), 0 20px 50px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ks-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius-md) - 6px);
  border: 1px solid rgba(229,9,20,0.18);
  pointer-events: none;
}
.ks-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: ksReveal 0.5s var(--ease-out) both;
}
@keyframes ksReveal {
  from { opacity: 0; transform: scale(1.04); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}
.ks-frame.spinning img { opacity: 0; }
.ks-frame.spinning::before {
  content: '\f2f1';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--red);
  animation: ksSpin 0.6s linear infinite;
  position: absolute;
}
@keyframes ksSpin { to { transform: rotate(360deg); } }
.ks-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem;
}
.ks-placeholder i { font-size: 2rem; color: var(--red); opacity: 0.7; }
.ks-badge-rep {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.ks-badge-rep i { color: var(--red); }

.btn-pill-light {
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.btn-pill-light:hover { background: rgba(255,255,255,0.88); }

/* =============================================================================
   MÓDULO · VERDADE OU DESAFIO
   ============================================================================= */
.vd-card-wrap {
  margin: 0 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.vd-players-row { display: flex; gap: 0.6rem; }
.vd-players-row input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.vd-players-row input:focus { outline: none; border-color: var(--red); }
.vd-add-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--red);
}
.vd-players-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.vd-player-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}
.vd-player-del { background: none; border: none; color: var(--text-dim); font-size: 0.7rem; padding: 0; cursor: pointer; }
.vd-empty-hint { font-size: 0.72rem; color: var(--text-dim); }

.vd-level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.vd-level-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0.9rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s;
}
.vd-level-btn i { font-size: 1.05rem; }
.vd-level-btn.active {
  border-color: var(--lvl-color);
  color: var(--lvl-color);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 0 0 1px var(--lvl-color);
}

.vd-current-player { text-align: center; }
.vd-current-player .vd-eyebrow {
  font-size: 0.68rem; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700; margin-bottom: 0.3rem;
}
.vd-current-player .vd-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 1px;
  color: var(--text);
}

.vd-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.vd-choice-btn {
  display: flex; flex-direction: column; gap: 8px;
  padding: 1.6rem 0.75rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-out);
}
.vd-choice-btn:active { transform: scale(0.96); }
.vd-choice-btn i { font-size: 1.5rem; }
.vd-choice-verdade { background: rgba(160,107,216,0.14); border-color: #a06bd8; color: #c6a4ea; }
.vd-choice-desafio { background: rgba(255,52,104,0.12); border-color: #ff3468; color: #ff7a9e; }

.vd-card {
  position: relative;
  min-height: 170px;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1.5px solid var(--card-color, var(--red));
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
  box-shadow: 0 0 30px var(--card-glow, transparent);
}
.vd-card.flip { animation: vdFlip 0.5s ease both; }
@keyframes vdFlip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.vd-card-type { font-size: 0.68rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.vd-card-text { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.15rem, 4.5vw, 1.4rem); letter-spacing: 0.3px; color: var(--text); line-height: 1.35; }
.vd-card-player { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

.vd-history { display: flex; flex-direction: column; gap: 0.5rem; max-height: 220px; overflow-y: auto; }
.vd-history-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--h-color, var(--red));
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.vd-history-item strong { color: var(--text); font-size: 0.78rem; display: block; margin-bottom: 2px; }

/* =============================================================================
   MÓDULO · TESTE DE PUREZA
   ============================================================================= */
.tp-card {
  margin: 0 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tp-intro { text-align: center; padding: 0.5rem 0; }
.tp-intro i { font-size: 2.4rem; color: var(--red); opacity: 0.85; display: block; margin-bottom: 1rem; }
.tp-intro h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 1px; margin-bottom: 0.6rem; }
.tp-intro p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; max-width: 320px; margin: 0.6rem auto 0; }
.tp-intro strong { color: var(--red); }

.tp-counter { text-align: center; font-size: 0.68rem; color: var(--text-dim); font-weight: 700; letter-spacing: 0.5px; }
.tp-progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; margin-top: 6px; }
.tp-progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), #ff8a3d); transition: width 0.3s ease; }

.tp-question {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  line-height: 1.35;
  text-align: center;
  color: var(--text);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
}
.tp-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.tp-btn-sim { background: linear-gradient(120deg, #ff3468, #d81a4d); border: none; color: #fff; }
.tp-btn-nao { background: linear-gradient(120deg, #8b6bb8, #6f4a99); border: none; color: #fff; }
.tp-abandon {
  background: none; border: none; color: var(--text-dim); font-size: 0.72rem;
  padding: 4px; width: auto; margin: 0 auto; display: block; cursor: pointer;
}

.tp-result-icon { font-size: 3rem; text-align: center; margin-bottom: 0.5rem; color: var(--red); }
.tp-result-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: 1px; color: var(--text); text-align: center; }
.tp-result-comment { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; text-align: center; margin-top: 0.5rem; }

.tp-bar-labels { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-muted); }
.tp-purity-bar { height: 10px; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.tp-purity-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), #ff8a3d); transition: width 0.8s ease; width: 0%; }
.tp-purity-pct { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.tp-purity-pct span { color: var(--red); font-weight: 800; font-size: 1.05rem; }

.tp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.tp-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem; text-align: center; }
.tp-stat-label { font-size: 0.66rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tp-stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; font-weight: 700; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    body {
        max-width: 600px;
        margin: 0 auto;
    }

    .topbar,
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
    }

    .poster-card {
        width: 150px;
    }
}