body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    color: white;
    margin: 0;
    padding: 0;
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 400px;
    margin: auto;
    padding: 10px;
}

.app-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 34px auto;
    align-items: center;
    gap: 2px 8px;
    margin-bottom: 6px;
}

.header-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.app-logo {
    display: block;
    width: auto;
    height: 37px;
    object-fit: contain;
}

.login-status {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    text-align: right;
}

.status-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.status-dot.is-online {
    background: #22c55e;
}

.status-dot.is-offline {
    background: #ef4444;
}

.status-name {
    max-width: 86px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-title-line {
    grid-column: 1 / 4;
    grid-row: 2;
    text-align: center;
    color: white;
    font-family: "Lobster", sans-serif;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.header-actions {
    grid-column: 2 / 4;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.header-actions button {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

@media (max-width: 500px) {
    .container {
        max-width: 100%;
        padding: 8px;
    }
}

.daily-challenge-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 6px 0 8px 0;
    padding: 5px 0;
    white-space: nowrap;
    color: white;
    font-family: "Courgette", cursive;
    font-weight: 700;
    font-style: normal;
    line-height: 3.1;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.daily-challenge-line h2 {
    margin: 0;
    font-size: 1.5em;
}

.daily-challenge-line p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.1;
}

#prizesBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 7px 8px;
    border-radius: 5px;
    background: #1e293b;
    font-size: inherit;
    line-height: 1.15;
}

#prizesBtn:hover {
    background: #27364d;
}

#partnersBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    padding: 7px 8px;
    border-radius: 5px;
    background: #f59e0b;
    color: #111827;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

#partnersBtn:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

@media (max-width: 500px) {
    .daily-challenge-line {
        flex-wrap: wrap;
        line-height: 1.2;
    }

    .daily-challenge-line p {
        flex-basis: 100%;
        text-align: center;
    }
}

.stats-line {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 7px 0;
    font-size: 1em;
    /* font-size: 1.2em; */
    text-align: center;
}

.stats-line > span {
    background: #1e293b;
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
}

.communication-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4cm;
    margin: 10px 0;
    padding: 0 14px;
    border: 1px solid #2d3748;
    border-radius: 10px;
    background: #1e293b;
    color: white;
    font-size: 1.1em;
}

#leaderboard {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

#leaderboard h3 {
    margin-bottom: 15px;
    color: white;
}

#leaderboard-list {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    border-radius: 10px;
    background: #1e293b;
    text-align: left;
}

#leaderboard-weekly {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

#leaderboard-weekly h3 {
    margin-bottom: 15px;
    color: white;
}

#leaderboard-weekly-list {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    border-radius: 10px;
    background: #1e293b;
    text-align: left;
}

@media (max-width: 380px) {
    .stats-line {
        gap: 6px;
        font-size: 1em;
    }

    .stats-line > span {
        padding: 7px 8px;
    }
}

/* 🖼️ IMAGEM */
.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 280px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
}

#gameImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 🟦 BLUR ZONE */
#blurZone {
    position: absolute;
    overflow: hidden;
    border-radius: 8px;
    pointer-events: none;
}

#blurZone img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
}

/* 💬 FEEDBACK - BOTTOM DA IMAGEM */
#feedback {
    position: absolute;
    bottom: 10px;
    left: calc(50% + 20px);
    transform: translateX(-50%);

    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    pointer-events: none;
    z-index: 10;

    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
    margin: 0;
}

#feedback.success {
    background: rgba(34, 197, 94, 0.9);
}

#feedback.error {
    background: rgba(239, 68, 68, 0.9);
}

#feedback.info {
    background: rgba(59, 130, 246, 0.9);
}

#feedback.has-rewards {
    align-items: center;
    gap: 10px;
    width: max-content;
}

.feedback-message {
    min-width: 0;
    line-height: 1.25;
}

.feedback-rewards {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.feedback-reward {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 2px 7px;
    color: #fff;
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
}

.feedback-reward--streak {
    background: rgba(245, 158, 11, 0.48);
    border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 380px) {
    #feedback.has-rewards {
        gap: 7px;
        padding-inline: 10px;
        font-size: 13px;
    }

    .feedback-reward {
        padding-inline: 6px;
    }
}

/* ⏱️ TIMER OVERLAY */
#timer-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    z-index: 5;
}

/* 🔝 STATS PANEL */
.stats-panel {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    gap: 10px;
}

.stat-block {
    flex: 1;
    background: #1e293b;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-emoji {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-title {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #f8fafc;
}

/* ℹ️ INFO BUTTON */
#infoBtn,
#profileBtn {
    background: #334155;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    color: #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#infoBtn {
    font-weight: 900;
    font-size: 20px;
}

.profile-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.profile-icon::before,
.profile-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #fde68a;
}

.profile-icon::before {
    top: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.profile-icon::after {
    bottom: 1px;
    width: 16px;
    height: 8px;
    border-radius: 999px 999px 5px 5px;
}

#infoBtn:hover,
#profileBtn:hover {
    background: #475569;
}

/* 🔘 BOTÕES */
button {
    display: block;
    width: 100%;
    margin: 10px auto;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    background: #334155;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #475569;
}

button:disabled {
    background: #1e293b;
    opacity: 0.5;
    cursor: not-allowed;
}

#resumeBtn {
    background: #22c55e;
}

#resumeBtn:hover {
    background: #16a34a;
}

#revealBtn {
    background: #3b82f6;
}

#revealBtn:hover {
    background: #2563eb;
}

#skipBtn {
    background: #f59e0b;
}

#skipBtn:hover {
    background: #d97706;
}

#exitBtn {
    opacity: 0.6;
}

/* 📋 OPÇÕES */
#options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 15px;
    margin-bottom: 15px;
}

#options .option-btn {
    display: block;
    width: calc(50% - 5px);
    margin: 0;
}

/* 🎛️ ACTION BUTTONS */
#action-buttons {
    display: flex;
    gap: 10px;
    margin: 15px auto;
}

#action-buttons button {
    flex: 1;
    margin: 0;
    padding: 12px;
    font-size: 14px;
}

/* 📊 TOP BAR */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-weight: bold;
}

.top-bar .left {
    font-size: 22px;
    color: #ff3b3b;
}

.top-bar .center {
    font-size: 18px;
    text-align: center;
    flex: 1;
}

.top-bar .right {
    font-size: 14px;
    display: flex;
    gap: 10px;
}

/* 💰 COINS (removido fixed) */

#coinFly {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 24px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.6s ease;
}

/* 🎆 CONFETTI */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
    z-index:11;
}

/* 🎭 OVERLAY (MODAL) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9;
}

.box {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    color: #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* ✨ TROPHY WIN ANIMATION */
.win-flash {
    position: relative;
    overflow: hidden; /* necessário pro shimmer */
}

@keyframes trophy-shimmer {
    0%   { transform: translateX(-150%) skewX(-20deg); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateX(250%) skewX(-20deg); opacity: 0; }
}

@keyframes trophy-pulse {
    0%   { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    30%  { box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.5), 0 0 20px rgba(250, 204, 21, 0.3); }
    100% { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
}

@keyframes trophy-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25%       { transform: scale(1.4) rotate(-8deg); }
    50%       { transform: scale(1.3) rotate(8deg); }
    75%       { transform: scale(1.2) rotate(-4deg); }
}

.win-flash {
    animation: trophy-pulse 0.7s ease-out forwards, trophy-bounce 0.5s ease-out forwards;
}

/* a faixa de luz — pseudo-elemento no bloco do troféu */
.win-flash::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 60px;
    height: 300%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    animation: trophy-shimmer 0.45s ease-in-out forwards,
               trophy-shimmer 0.45s ease-in-out 0.5s forwards; /* 2ª passada */
}

/* emoji quicando */
.win-flash .stat-emoji {
    animation: trophy-bounce 0.5s ease-out forwards;
}

#questionEffectCanvas {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
}

#questionHintOverlay {
    position: absolute;
    z-index: 6;
    left: 50%;
    display: none;
    width: calc(100% - 28px);
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: rgba(2, 6, 23, .82);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
    padding: 8px 12px;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 1px 2px #000;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

/* Novo modelo visual do jogo */
body {
    background: #031126;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.app-title-line {
    font-family: "Anton", Impact, sans-serif;
    font-size: clamp(2.55rem, 12vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.045em;
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: none;
    margin-top: 12px;
}

.app-title-line span:first-child { color: #f8fafc; }
.app-title-line span:last-child { color: #ffb703; }

.game-tagline {
    margin: 10px 0 22px;
    color: #f8fafc;
    font-size: clamp(0.7rem, 3.7vw, 1.02rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.daily-challenge-line {
    justify-content: stretch;
    gap: 14px;
    margin: 0 0 20px;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1;
}

#prizesBtn,
#partnersBtn {
    flex: 1 1 0;
    min-height: 58px;
    padding: 10px 8px;
    border: 2px solid;
    border-radius: 14px;
    color: #fff;
    font-size: clamp(0.82rem, 3.6vw, 1rem);
    font-weight: 800;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    box-sizing: border-box;
}

#prizesBtn { background: linear-gradient(135deg, #7836c9, #57209b); border-color: #a861f4; }
#prizesBtn:hover { background: linear-gradient(135deg, #8a48de, #6828b3); }
#partnersBtn { background: linear-gradient(135deg, #104eaa, #082d6b); border-color: #367df2; }
#partnersBtn:hover { background: linear-gradient(135deg, #1760c7, #0b3b87); }

.stats-line {
    width: 100%;
    gap: 0;
    margin: 0 0 13px;
    padding: 10px 4px;
    border: 1px solid rgba(116, 173, 255, 0.48);
    border-radius: 9px;
    background: rgba(6, 41, 88, 0.85);
    box-sizing: border-box;
}

.stats-line > .stat-item {
    display: flex;
    flex: 1;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 2px 7px;
    color: inherit;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font: inherit;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.stats-line > .stat-item + .stat-item { border-left: 1px solid rgba(148, 190, 247, 0.45); }
.stats-line > .stat-info-trigger:hover { background: rgba(255, 255, 255, 0.08); }
.stats-line > .stat-info-trigger:active { background: rgba(255, 255, 255, 0.14); }
.stats-line > .stat-info-trigger:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #c4a2ff;
    outline-offset: -2px;
    border-radius: 7px;
}
.stat-icon { font-size: 1.55rem; line-height: 1; }
.stat-icon--coins {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: #ffbd16;
    color: #5c3600;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 900;
}
.stat-content { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.stat-content small { color: #dbeafe; font-size: 0.59rem; font-weight: 800; text-transform: uppercase; }
.stat-content strong { color: #fff; font-size: 1.1rem; line-height: 1.05; }

.game-card {
    margin-top: 12px;
    padding: 20px 8px 16px;
    border: 1px solid rgba(169, 202, 249, 0.42);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(7, 35, 76, 0.96), rgba(4, 23, 52, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.18);
}

.game-question {
    margin: 4px 0 24px;
    color: #f8fafc;
    font-size: clamp(1.08rem, 5.2vw, 1.5rem);
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: break-word;
}

.game-card .image-container { height: 280px; border-radius: 16px; }
.game-card #gameImage { border-radius: 16px; }
.game-progress { width: 100%; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, 0.25); }
.game-progress #progress { height: 100%; width: 0; border-radius: inherit; background: #ffb703; }

.game-card #options { gap: 10px; margin: 14px 0 16px; }
.game-card #options .option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 9px 12px;
    border: 1px solid rgba(88, 151, 246, 0.48);
    border-radius: 14px;
    background: rgba(7, 38, 83, 0.92);
    color: #f8fafc;
    font-weight: 700;
    line-height: 1.35;
}
.game-card #options .option-btn:hover { background: rgba(18, 68, 137, 0.95); }

.game-card #options.prediction-confidence {
    display: block;
    padding: 14px;
    border: 1px solid rgba(88, 151, 246, 0.32);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(8, 35, 74, 0.96), rgba(10, 25, 55, 0.96));
}

.game-card #options.prediction-confidence.is-attention {
    animation: answer-ready-glow 1.15s ease both;
}

@keyframes prediction-confidence-highlight {
    0%, 100% {
        border-color: rgba(88, 151, 246, 0.32);
        box-shadow: none;
    }
    45% {
        border-color: rgba(103, 232, 249, 0.92);
        box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.16), 0 0 18px rgba(34, 211, 238, 0.3);
    }
}

.game-card #options.prediction-confidence.win-flash {
    animation: prediction-confidence-highlight 0.9s ease-out forwards;
}

.game-card #options.prediction-confidence.win-flash::after {
    z-index: 3;
    width: 85px;
    background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.58), transparent);
    animation: trophy-shimmer 0.65s ease-in-out forwards;
    pointer-events: none;
}

.prediction-confidence__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    color: #f8fafc;
    font-size: 0.93rem;
}

.prediction-confidence__answer {
    max-width: 48%;
    overflow: hidden;
    padding: 5px 9px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: #a5f3fc;
    font-size: 0.72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prediction-confidence__scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(2, 12, 31, 0.72);
}

.prediction-confidence__option {
    min-width: 0;
    min-height: 58px;
    margin: 0;
    padding: 7px 3px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: clamp(0.62rem, 2.3vw, 0.75rem);
    font-weight: 700;
    line-height: 1.1;
    transition: transform 120ms ease, color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.prediction-confidence__icon {
    display: block;
    margin-bottom: 5px;
    color: #38bdf8;
    font-size: 1.25rem;
    line-height: 1;
}

.prediction-confidence__option:hover,
.prediction-confidence__option:focus-visible {
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(14, 116, 144, 0.2);
    color: #f8fafc;
    outline: none;
}

.prediction-confidence__option:active { transform: scale(0.96); }

.prediction-confidence__option.is-selected {
    border-color: #22d3ee;
    background: linear-gradient(145deg, rgba(8, 145, 178, 0.56), rgba(37, 99, 235, 0.48));
    color: #fff;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.12);
}

.prediction-confidence__option:disabled:not(.is-selected) { opacity: 0.38; }

@media (max-width: 380px) {
    .prediction-confidence__header { align-items: flex-start; flex-direction: column; }
    .prediction-confidence__answer { max-width: 100%; }
    .game-card #options.prediction-confidence { padding: 11px; }
}

.game-card #action-buttons { margin: 12px 0 0; gap: 12px; }
.game-card #action-buttons button { min-height: 64px; border: 1px solid transparent; border-radius: 13px; color: #fff; font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; font-weight: 800; font-size: 0.93rem; text-transform: uppercase; }
.game-card #revealBtn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #7937c9, #54219a); border-color: #a65cf0; }
.game-card #revealBtn .reveal-button__remaining { display: block; margin-top: 2px; font-size: 0.62rem; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; opacity: 0.82; }
.game-card #revealBtn:hover { background: linear-gradient(135deg, #8a48da, #672bb0); }
.game-card #skipBtn { background: linear-gradient(135deg, #ffb800, #ff9800); border-color: #ffd15a; }
.game-card #skipBtn:hover { background: linear-gradient(135deg, #ffc629, #ffa617); }

#leaderboard-list,
#leaderboard-weekly-list {
    border: 1px solid rgba(116, 173, 255, 0.35);
    background: #062554;
}

@media (max-width: 380px) {
    .daily-challenge-line { gap: 8px; }
    #prizesBtn, #partnersBtn { min-height: 52px; font-size: 0.72rem; }
    .game-card { padding: 16px 10px 10px; }
    .game-card .image-container { height: 280px; }
    .stat-icon { font-size: 1.25rem; }
    .stats-line > .stat-item { gap: 4px; padding: 2px 4px; }
}

/* Prize showcase */
.prizes-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 10, 24, 0.76);
    box-sizing: border-box;
    backdrop-filter: blur(12px);
}

.prizes-sheet {
    width: min(100%, 620px);
    max-height: min(88vh, 820px);
    overflow-y: auto;
    color: #f8fafc;
    background: #061a35;
    border-radius: 28px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
    scrollbar-width: thin;
    scrollbar-color: #28598c transparent;
}

.prizes-sheet__header {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 92px;
    min-height: 92px;
    padding: 20px 54px 20px 18px;
    background: rgba(6, 26, 53, 0.94);
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    text-align: center;
}

.prizes-sheet__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #8fb4dc;
    font: 800 0.68rem/1.2 "Trebuchet MS", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.prizes-sheet__header h2 {
    margin: 0;
    color: #fff;
    font: 800 clamp(1.35rem, 5vw, 1.75rem)/1.05 "Trebuchet MS", sans-serif;
    letter-spacing: -0.035em;
}

.prizes-sheet__close {
    position: absolute;
    top: 50%;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    color: #fff;
    background: #12365d;
    border: 0;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.prizes-sheet__close:hover { background: #1c4b7c; }

.prizes-content { padding: 2px 18px 24px; }

.prizes-nav {
    position: static;
    z-index: auto;
    display: flex;
    justify-content: flex-start !important;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    gap: 22px;
    margin: 0;
    padding: 0 52px 0 0;
    box-sizing: border-box;
    overflow-x: auto;
    background: transparent;
    scrollbar-width: none;
}

.prizes-nav::-webkit-scrollbar { display: none; }

.prizes-nav button {
    width: auto;
    margin: 0;
    padding: 2px 0 6px;
    flex: 0 0 auto;
    color: #9eb7d2;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font: 700 0.75rem/1.2 "Trebuchet MS", sans-serif;
    cursor: pointer;
}

.prizes-nav button:hover,
.prizes-nav button.is-active {
    color: #fff;
    border-bottom-color: #b66df0;
}

.prizes-group + .prizes-group {
    position: relative;
    margin-top: 68px;
}

.prizes-group { scroll-margin-top: 155px; }

.prizes-group + .prizes-group::before {
    position: absolute;
    top: -35px;
    left: 4%;
    width: 92%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(127, 174, 222, 0.55), transparent);
}

.prizes-group__heading {
    width: 100%;
    margin: 0 0 13px;
    padding: 11px 16px;
    color: #fff;
    background: linear-gradient(135deg, #6632a5, #8244be);
    border-radius: 13px;
    box-sizing: border-box;
    text-align: center;
}

#semanalSection .prizes-group__heading { background: linear-gradient(135deg, #0c568d, #1478ad); }
#diarioSection .prizes-group__heading,
#semanalSection .prizes-group__heading,
#trocaSection .prizes-group__heading { margin-bottom: 39px; }
#diarioSection .prizes-group__heading { margin-top: 39px; }
#trocaSection .prizes-group__heading { background: linear-gradient(135deg, #9a5e05, #c88616); }

.prizes-group__heading h3 {
    margin: 0;
    color: #fff;
    font: 800 0.98rem/1.2 "Trebuchet MS", sans-serif;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.prizes-group__heading h3 span { color: #c7e9ff; font-size: 0.8rem; }

.prizes-grid { display: grid; gap: 40px; }

.prize-card {
    display: block;
    overflow: hidden;
    color: #f8fafc;
    background: #0b2b52;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(0, 5, 17, 0.3);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

a.prize-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 38px rgba(0, 5, 17, 0.44);
}

.prize-card__header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 14px 18px 16px;
    text-align: left;
}

.prize-card__header h4 {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    margin: 12px 0 0;
    color: #fff;
    font: 600 1rem/1.35 "Inter", "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.prize-card__redemption-type {
    align-self: flex-end;
    margin: 10px 0 0;
    padding: 5px 9px;
    color: #dcebfa;
    background: rgba(91, 150, 204, 0.2);
    border: 1px solid rgba(186, 230, 253, 0.14);
    border-radius: 999px;
    font: 600 0.69rem/1.2 "Inter", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.01em;
}

.prize-partner {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    align-self: flex-end;
    justify-content: flex-end;
    gap: 8px;
    color: #bed3ea;
    font: 800 0.88rem/1.2 "Trebuchet MS", sans-serif;
    text-align: right;
}

.prize-partner__text {
    display: inline-flex;
    min-width: 0;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
}

.prize-partner__label {
    color: #f6c85f;
    font: 400 0.72rem/1 "Anton", "Arial Narrow", sans-serif;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.prize-partner__separator {
    color: rgba(125, 211, 252, 0.48);
    font-weight: 400;
}

.prize-partner__name {
    overflow: hidden;
    color: #bae6fd;
    font-family: "Arial Narrow", "Trebuchet MS", sans-serif;
    font-stretch: condensed;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prize-partner__logo,
.prize-partner__fallback {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    object-fit: contain;
    color: #fff;
    background: #305d8c;
    border-radius: 9px;
    font-weight: 900;
}

.prize-partner__logo {
    width: auto;
    height: auto;
    max-width: 45%;
    max-height: 2cm;
    flex: 0 1 auto;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    object-fit: contain;
}

.prize-card__image {
    width: 100%;
    overflow: hidden;
    background: #05152a;
}

.prize-card__image img {
    display: block;
    width: 100%;
    height: auto;
}

.prize-card__details {
    padding: 2px 18px 18px;
    text-align: left;
}

.prize-card__description {
    margin: 0 0 16px;
    color: #c0cee0;
    font: 400 0.91rem/1.55 Arial, sans-serif;
}

.prize-card__benefit {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    color: #fff;
    background: linear-gradient(135deg, #56318c, #7c45b1);
    border-radius: 15px;
}

#semanalSection .prize-card__benefit { background: linear-gradient(135deg, #0d517f, #1681aa); }
#trocaSection .prize-card__benefit { background: linear-gradient(135deg, #865006, #b5760d); }
.prize-card__benefit span { font: 700 0.68rem/1.2 Arial, sans-serif; opacity: 0.78; text-transform: uppercase; }
.prize-card__benefit strong { font: 800 0.9rem/1.25 "Trebuchet MS", sans-serif; text-align: right; }

.prizes-status,
.prizes-empty {
    padding: 44px 24px;
    color: #9bb2cb;
    text-align: center;
}

.prizes-status p,
.prizes-empty p { margin: 0; }
.prizes-status--error { color: #ff9c9c; }

.prizes-status__loader {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 12px;
    border: 3px solid #22486f;
    border-top-color: #b26bf1;
    border-radius: 50%;
    animation: prizes-spin 700ms linear infinite;
}

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

@media (max-width: 520px) {
    .prizes-modal { align-items: flex-end; padding: 0; }
    .prizes-sheet { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; }
    .prizes-sheet__header { height: 92px; min-height: 92px; padding: 16px 52px 16px 14px; }
    .prizes-sheet__close { right: 14px; }
    .prizes-content { padding: 2px 12px calc(22px + env(safe-area-inset-bottom)); }
    .prizes-nav { justify-content: flex-start; gap: 18px; padding-inline: 14px; }
    .prizes-grid { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .prize-card { transition: none; }
    .prizes-status__loader { animation-duration: 1.4s; }
}

/* Comunicações leves do jogo: informam sem pausar a pergunta. */
.game-communication-notice {
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    z-index: 1200;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 8px;
    width: auto;
    padding: 17px 40px;
    color: #334155;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 240, 255, 0.96));
    border: 1px solid rgba(121, 55, 201, 0.28);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.2);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(calc(-50% + 10px));
    transition: opacity 180ms ease, transform 180ms ease;
    text-align: center;
}

.game-communication-notice.is-visible {
    opacity: 1;
    transform: translateY(-50%);
}

.game-communication-notice.is-leaving {
    opacity: 0;
    transform: translateY(calc(-50% + 7px));
}

.game-communication-notice__title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #54219a;
    font: 600 0.9rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-communication-notice__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.game-communication-notice__message {
    color: #334155;
    font: 400 0.82rem/1.4 "Segoe UI", Arial, sans-serif;
}

.game-communication-notice__message--reward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px;
    color: #166534;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 999px;
    font-weight: 600;
}

.game-communication-notice__wink {
    font-size: 1.05rem;
    line-height: 1;
}

.game-communication-notice__lead,
.game-communication-notice__consequence {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #334155;
    font: 400 0.82rem/1.4 "Segoe UI", Arial, sans-serif;
}

.game-communication-notice__ordinal {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    padding: 0 5px;
    color: #fff;
    background: #7937c9;
    border-radius: 999px;
    box-sizing: border-box;
    font-size: 0.78rem;
    font-weight: 700;
}

.game-communication-notice__button-preview {
    width: min(220px, 100%);
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    color: #fff;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border: 1px solid #a65cf0;
    border-radius: 11px;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 1;
    pointer-events: none;
}

.game-communication-notice__close {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
}

.game-communication-notice__close:hover,
.game-communication-notice__close:focus-visible {
    color: #54219a;
    background: rgba(121, 55, 201, 0.08);
}

@media (max-width: 430px) {
    .game-communication-notice {
        left: 10px;
        right: 10px;
        padding: 15px 38px;
    }

    .game-communication-notice__button-preview {
        min-height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-communication-notice { transition: none; }
}

.reveal-discovery-tip {
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    z-index: 1200;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 9px;
    width: auto;
    padding: 16px 40px;
    color: #334155;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 240, 255, 0.96));
    border: 1px solid rgba(121, 55, 201, 0.28);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.2);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(calc(-50% + 10px));
    transition: opacity 180ms ease, transform 180ms ease;
    font: 400 0.82rem/1.4 "Segoe UI", Arial, sans-serif;
    text-align: center;
}

.reveal-discovery-tip.is-visible {
    opacity: 1;
    transform: translateY(-50%);
}

.reveal-discovery-tip.is-leaving {
    opacity: 0;
    transform: translateY(calc(-50% + 7px));
}

.reveal-discovery-tip__intro {
    color: #54219a;
    font-size: 0.9rem;
    font-weight: 600;
}

.reveal-discovery-tip__button-preview {
    width: min(220px, 100%);
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    color: #fff;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border: 1px solid #a65cf0;
    border-radius: 11px;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 1;
    pointer-events: none;
}

.reveal-discovery-tip__explanation {
    font-weight: 400;
}

.reveal-discovery-tip__close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 430px) {
    .reveal-discovery-tip {
        left: 10px;
        right: 10px;
        gap: 8px;
        padding: 14px 38px;
    }

    .reveal-discovery-tip__button-preview {
        min-height: 38px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .reveal-discovery-tip { transition: none; }
}

/* Painel de informações do jogo */
.game-info-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(7px);
    box-sizing: border-box;
}

.game-info-sheet {
    display: flex;
    width: 100%;
    max-width: 500px;
    max-height: min(92dvh, 760px);
    flex-direction: column;
    overflow: hidden;
    color: #334155;
    background: #f8fafc;
    border: 1px solid rgba(121, 55, 201, 0.3);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.4);
}

.game-info-header {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 17px 14px 16px 17px;
    background: linear-gradient(135deg, #ffffff, #f2eaff);
    border-bottom: 1px solid rgba(121, 55, 201, 0.18);
}

.game-info-header__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(84, 33, 154, 0.22);
    font-size: 1.35rem;
}

.game-info-header h2,
.game-info-header p,
.game-info-rule h3,
.game-info-rule p,
.game-info-prizes p,
.game-info-feedback h3,
.game-info-feedback p {
    margin: 0;
}

.game-info-header h2 {
    color: #54219a;
    font: 600 1.15rem/1.2 "Segoe UI", Arial, sans-serif;
}

.game-info-header p {
    margin-top: 3px;
    color: #64748b;
    font: 400 0.78rem/1.35 "Segoe UI", Arial, sans-serif;
}

.game-info-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    color: #64748b;
    background: rgba(121, 55, 201, 0.07);
    border: 0;
    border-radius: 50%;
    font-size: 1.35rem;
}

.game-info-close:hover,
.game-info-close:focus-visible {
    color: #54219a;
    background: rgba(121, 55, 201, 0.14);
}

.game-info-content {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 15px;
}

.game-info-prizes {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    color: #4c1d95;
    background: linear-gradient(135deg, #f4edff, #fff7df);
    border: 1px solid rgba(121, 55, 201, 0.17);
    border-radius: 14px;
    font: 400 0.82rem/1.4 "Segoe UI", Arial, sans-serif;
}

.game-info-prizes > span {
    font-size: 1.35rem;
}

.game-info-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 11px;
    padding: 12px 13px;
    color: #475569;
    background: #fff;
    border: 1px solid rgba(121, 55, 201, 0.14);
    border-radius: 14px;
    cursor: pointer;
    font: 400 0.82rem/1.4 "Segoe UI", Arial, sans-serif;
}

.game-info-profile:hover,
.game-info-profile:focus-visible {
    background: #f7f2ff;
    border-color: rgba(121, 55, 201, 0.35);
    outline: none;
}

.game-info-profile > .profile-icon {
    flex: 0 0 auto;
}

.game-info-profile > .profile-icon::before,
.game-info-profile > .profile-icon::after {
    background: #fde68a;
    border: 2px solid #8b5cf6;
    box-sizing: border-box;
}

.game-info-profile p {
    margin: 0;
}

.game-info-profile strong {
    color: #54219a;
    font-weight: 600;
}

.game-info-rules {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 11px;
}

.game-info-rule {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 13px rgba(15, 23, 42, 0.05);
}

.game-info-rule > span {
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1.2;
}

.game-info-rule h3 {
    display: inline;
    color: #334155;
    font: 600 0.84rem/1.25 "Segoe UI", Arial, sans-serif;
}

.game-info-rule p {
    display: inline;
    margin-left: 4px;
    color: #64748b;
    font: 400 0.75rem/1.4 "Segoe UI", Arial, sans-serif;
}

.game-info-rule strong {
    color: #54219a;
    font-weight: 600;
}

.game-info-rule--streak {
    background: #fffaf0;
    border-color: rgba(245, 158, 11, 0.3);
}

.game-info-feedback {
    margin-top: 12px;
    padding: 13px;
    background: linear-gradient(135deg, #ffffff, #f7f2ff);
    border: 1px solid rgba(121, 55, 201, 0.18);
    border-radius: 14px;
}

.game-info-feedback__heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.game-info-feedback__heading > span {
    font-size: 1.2rem;
}

.game-info-feedback h3 {
    color: #54219a;
    font: 600 0.88rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-info-feedback__heading p {
    margin-top: 2px;
    color: #64748b;
    font: 400 0.74rem/1.35 "Segoe UI", Arial, sans-serif;
}

#infoFeedbackText {
    display: block;
    width: 100%;
    min-height: 82px;
    padding: 10px 11px;
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    box-sizing: border-box;
    resize: vertical;
    font: 400 0.82rem/1.4 "Segoe UI", Arial, sans-serif;
}

#infoFeedbackText:focus {
    border-color: #8b5cf6;
    outline: 3px solid rgba(139, 92, 246, 0.14);
}

.game-info-feedback__validation {
    min-height: 17px;
    padding-top: 3px;
    color: #be123c;
    font: 400 0.72rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-info-feedback__send,
.game-info-back {
    min-height: 44px;
    margin: 0;
    border-radius: 11px;
    font: 600 0.86rem/1.2 "Segoe UI", Arial, sans-serif;
}

.game-info-feedback__send {
    color: #fff;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border: 1px solid #a65cf0;
}

.game-info-feedback__send:hover,
.game-info-feedback__send:focus-visible {
    background: linear-gradient(135deg, #8a48da, #672bb0);
}

.game-info-thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    min-height: 92px;
    color: #54219a;
    text-align: center;
}

.game-info-thanks[hidden] {
    display: none;
}

.game-info-thanks > span {
    font-size: 1.5rem;
}

.game-info-thanks strong {
    font: 600 0.95rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-info-thanks small {
    color: #64748b;
    font: 400 0.74rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-info-back {
    margin-top: 11px;
    color: #54219a;
    background: #fff;
    border: 1px solid rgba(121, 55, 201, 0.25);
}

.game-info-back:hover,
.game-info-back:focus-visible {
    background: #f4edff;
}

@media (max-width: 430px) {
    .game-info-modal { padding: 8px; }
    .game-info-sheet { max-height: calc(100dvh - 16px); border-radius: 16px; }
    .game-info-header { padding: 14px 11px 13px 14px; }
    .game-info-header__icon { width: 40px; height: 40px; }
    .game-info-content { padding: 12px; }
    .game-info-rules { grid-template-columns: minmax(0, 1fr); }
    .game-info-rule { padding: 11px 12px; }
}

/* Pesquisa rápida durante o jogo */
.game-survey-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(7px);
    box-sizing: border-box;
}

.game-survey-sheet {
    display: flex;
    width: 100%;
    max-width: 430px;
    max-height: calc(100dvh - 24px);
    flex-direction: column;
    overflow: hidden;
    color: #334155;
    background: #f8fafc;
    border: 1px solid rgba(121, 55, 201, 0.3);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.4);
}

.game-survey-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 17px 14px 16px 17px;
    background: linear-gradient(135deg, #ffffff, #f2eaff);
    border-bottom: 1px solid rgba(121, 55, 201, 0.18);
}

.game-survey-header__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(84, 33, 154, 0.22);
    font-size: 1.25rem;
}

.game-survey-header h2,
.game-survey-header p,
.game-survey-content p {
    margin: 0;
}

.game-survey-header h2 {
    color: #54219a;
    font: 600 1.1rem/1.2 "Segoe UI", Arial, sans-serif;
}

.game-survey-header p {
    margin-top: 3px;
    color: #64748b;
    font: 400 0.77rem/1.35 "Segoe UI", Arial, sans-serif;
}

.game-survey-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    color: #64748b;
    background: rgba(121, 55, 201, 0.07);
    border: 0;
    border-radius: 50%;
    font-size: 1.35rem;
}

.game-survey-close:hover,
.game-survey-close:focus-visible {
    color: #54219a;
    background: rgba(121, 55, 201, 0.14);
}

.game-survey-content {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
}

.game-survey-question {
    color: #334155;
    text-align: center;
    font: 600 0.9rem/1.35 "Segoe UI", Arial, sans-serif;
}

.game-survey-ratings {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    margin-top: 13px;
}

.game-survey-rating {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 59px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 5px 2px;
    color: #475569;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.05);
}

.game-survey-rating > span {
    font-size: 1.15rem;
    line-height: 1;
}

.game-survey-rating > strong {
    font: 600 0.78rem/1 "Segoe UI", Arial, sans-serif;
}

.game-survey-rating:hover,
.game-survey-rating:focus-visible {
    color: #54219a;
    background: #f7f2ff;
    border-color: #a78bfa;
    outline: none;
}

.game-survey-rating.is-selected {
    color: #fff;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border-color: #a65cf0;
    box-shadow: 0 7px 17px rgba(84, 33, 154, 0.25);
}

.game-survey-scale {
    display: flex;
    justify-content: space-between;
    margin: 5px 2px 17px;
    color: #94a3b8;
    font: 400 0.68rem/1.2 "Segoe UI", Arial, sans-serif;
}

.game-survey-form > label {
    display: block;
    margin: 15px 0 7px;
    color: #475569;
    font: 600 0.81rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-survey-form > label small {
    color: #94a3b8;
    font-weight: 400;
}

#surveyText {
    display: block;
    width: 100%;
    min-height: 88px;
    padding: 10px 11px;
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    box-sizing: border-box;
    resize: vertical;
    font: 400 0.82rem/1.4 "Segoe UI", Arial, sans-serif;
}

#surveyText:focus {
    border-color: #8b5cf6;
    outline: 3px solid rgba(139, 92, 246, 0.14);
}

.game-survey-status {
    min-height: 19px;
    padding-top: 3px;
    color: #be123c;
    font: 400 0.73rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-survey-submit,
.game-survey-later {
    min-height: 45px;
    margin: 0;
    border-radius: 11px;
    font: 600 0.86rem/1.2 "Segoe UI", Arial, sans-serif;
}

.game-survey-submit {
    color: #fff;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border: 1px solid #a65cf0;
}

.game-survey-submit:hover,
.game-survey-submit:focus-visible {
    background: linear-gradient(135deg, #8a48da, #672bb0);
}

.game-survey-later {
    margin-top: 8px;
    color: #64748b;
    background: transparent;
    border: 1px solid #d8dee8;
}

.game-survey-later:hover,
.game-survey-later:focus-visible {
    color: #54219a;
    background: #f4edff;
}

.game-survey-thanks {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: #54219a;
    text-align: center;
}

.game-survey-thanks[hidden] {
    display: none;
}

.game-survey-thanks > span {
    font-size: 2rem;
}

.game-survey-thanks strong {
    font: 600 1.05rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-survey-thanks p,
.game-survey-thanks small {
    color: #64748b;
    font: 400 0.78rem/1.35 "Segoe UI", Arial, sans-serif;
}

@media (max-width: 380px) {
    .game-survey-modal { padding: 8px; }
    .game-survey-header { padding: 14px 10px 13px 13px; gap: 9px; }
    .game-survey-header__icon { width: 40px; height: 40px; }
    .game-survey-content { padding: 15px 12px; }
    .game-survey-ratings { gap: 5px; }
    .game-survey-rating { min-height: 55px; border-radius: 10px; }
}

/* Preferências progressivas: regiões e interesses */
.game-preference-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(7px);
    box-sizing: border-box;
}

.game-preference-sheet {
    display: flex;
    width: 100%;
    max-width: 440px;
    max-height: calc(100dvh - 24px);
    flex-direction: column;
    overflow: hidden;
    color: #334155;
    background: #f8fafc;
    border: 1px solid rgba(121, 55, 201, 0.3);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.4);
}

.game-preference-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 17px;
    background: linear-gradient(135deg, #ffffff, #f2eaff);
    border-bottom: 1px solid rgba(121, 55, 201, 0.18);
}

.game-preference-header__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(84, 33, 154, 0.22);
    font-size: 1.3rem;
}

.game-preference-header__tag {
    display: inline-block;
    margin-bottom: 3px;
    color: #7c3aed;
    font: 700 0.62rem/1.2 "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.08em;
}

.game-preference-header h2,
.game-preference-header p,
.game-preference-content p {
    margin: 0;
}

.game-preference-header h2 {
    color: #54219a;
    font: 600 1.06rem/1.2 "Segoe UI", Arial, sans-serif;
}

.game-preference-header p {
    margin-top: 3px;
    color: #64748b;
    font: 400 0.76rem/1.35 "Segoe UI", Arial, sans-serif;
}

.game-preference-content {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
}

.game-preference-content fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.game-preference-content fieldset + fieldset {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.game-preference-content legend {
    padding: 0;
    color: #334155;
    font: 600 0.88rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-preference-fieldset--main legend {
    margin-bottom: 15px;
}

.game-preference-content fieldset > p {
    margin: 3px 0 10px;
    color: #64748b;
    font: 400 0.73rem/1.35 "Segoe UI", Arial, sans-serif;
}

.game-preference-grid,
.game-preference-interests {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.game-preference-choice {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 10px;
    color: #475569;
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.game-preference-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.game-preference-choice > span {
    flex: 0 0 auto;
    font-size: 1rem;
}

.game-preference-choice > strong {
    overflow: hidden;
    font: 600 0.79rem/1.25 "Segoe UI", Arial, sans-serif;
    text-overflow: ellipsis;
}

.game-preference-choice:hover,
.game-preference-choice:focus-within {
    color: #54219a;
    background: #f7f2ff;
    border-color: #a78bfa;
}

.game-preference-choice.is-selected {
    color: #fff;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border-color: #a65cf0;
    box-shadow: 0 6px 15px rgba(84, 33, 154, 0.2);
}

.game-preference-choice.is-disabled {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.68;
}

.game-preference-status {
    min-height: 19px;
    padding-top: 5px;
    color: #be123c;
    font: 400 0.73rem/1.3 "Segoe UI", Arial, sans-serif;
}

.game-preference-save,
.game-preference-later {
    min-height: 45px;
    margin: 0;
    border-radius: 11px;
    font: 600 0.86rem/1.2 "Segoe UI", Arial, sans-serif;
}

.game-preference-save {
    color: #fff;
    background: linear-gradient(135deg, #7937c9, #54219a);
    border: 1px solid #a65cf0;
}

.game-preference-save:hover,
.game-preference-save:focus-visible {
    background: linear-gradient(135deg, #8a48da, #672bb0);
}

.game-preference-later {
    margin-top: 8px;
    color: #64748b;
    background: transparent;
    border: 1px solid #d8dee8;
}

.game-preference-later:hover,
.game-preference-later:focus-visible {
    color: #54219a;
    background: #f4edff;
}

@media (max-width: 380px) {
    .game-preference-modal { padding: 8px; }
    .game-preference-sheet { max-height: calc(100dvh - 16px); }
    .game-preference-header { padding: 14px 13px; gap: 10px; }
    .game-preference-header__icon { width: 41px; height: 41px; }
    .game-preference-content { padding: 14px 12px; }
    .game-preference-grid,
    .game-preference-interests { gap: 7px; }
    .game-preference-choice { min-height: 43px; padding: 8px 7px; }
}

/* Retain the controls for restoration, without a flash or CSS display override. */
body[data-reveal-enabled="false"] #revealBtn,
body[data-reveal-enabled="false"] .game-progress,
body[data-reveal-enabled="false"] #questionHintOverlay { display: none !important; }

/* Compact game navigation */
.app-header {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 58px;
    margin: 0 0 10px;
    padding: 5px 6px;
    border-bottom: 1px solid rgba(148, 190, 247, 0.22);
}

.app-header .app-logo {
    justify-self: start;
    flex: 0 0 auto;
    width: auto;
    height: 52px;
    max-width: 90px;
    object-fit: contain;
}

.app-header .header-actions {
    display: flex;
    justify-self: center;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.app-header .header-action,
.app-header #prizesBtn,
.app-header #partnersBtn,
.app-header #infoBtn,
.app-header #profileBtn {
    position: relative;
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 38px;
    min-height: 38px;
    margin: 0;
    padding: 5px 6px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
    color: #dbeafe;
    font: 700 0.64rem/1 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
}

.app-header > #profileBtn { justify-self: end; }

.app-header .header-action:hover,
.app-header .header-action:focus-visible,
.app-header #prizesBtn:hover,
.app-header #partnersBtn:hover,
.app-header #infoBtn:hover,
.app-header #profileBtn:hover {
    border-color: rgba(148, 190, 247, 0.3);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    outline: none;
    transform: none;
}

.header-action__icon { font-size: 1.05rem; line-height: 1; }

.instagram-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}
.app-header #infoBtn .header-action__icon {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.72rem;
}

.app-header .profile-icon { width: 17px; height: 17px; }
.app-header .profile-icon::before,
.app-header .profile-icon::after { background: currentColor; }
.app-header .status-dot {
    position: absolute;
    top: 4px;
    left: 18px;
    width: 6px;
    height: 6px;
}

/* One clear answer per row */
.game-card #options {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin: 25px 0 14px;
}

.game-card #options .option-btn {
    justify-content: flex-start;
    width: 100%;
    min-height: 54px;
    padding: 9px 12px;
    text-align: left;
}

.option-letter {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    place-items: center;
    border: 1px solid rgba(250, 204, 21, 0.68);
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    font-size: 0.76rem;
    font-weight: 900;
}

.option-text { min-width: 0; overflow-wrap: anywhere; }
.game-card #options.is-preparing { pointer-events: none; }
.game-card #options.is-preparing .option-btn { opacity: 0.58; }
.game-card #options.is-attention .option-btn { animation: answer-ready-glow 1.15s ease both; }
.game-card #options.is-attention .option-btn:nth-child(2) { animation-delay: 130ms; }
.game-card #options.is-attention .option-btn:nth-child(3) { animation-delay: 260ms; }
.game-card #options.is-attention .option-btn:nth-child(4) { animation-delay: 390ms; }

@keyframes answer-ready-glow {
    0%, 100% { border-color: rgba(88, 151, 246, 0.48); box-shadow: none; }
    45% { border-color: rgba(103, 232, 249, 0.95); box-shadow: 0 0 16px rgba(34, 211, 238, 0.34); }
}

/* Skip straddles the image edge without competing with the primary action. */
.game-card .image-container { overflow: visible; }
.game-card #skipBtn {
    position: absolute;
    z-index: 20;
    right: 10px;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    min-width: 78px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(251, 191, 36, 0.62);
    border-radius: 999px;
    background: rgba(120, 72, 8, 0.9);
    color: #fef3c7;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    transform: translateY(50%);
    backdrop-filter: blur(8px);
}

.game-card #skipBtn:hover,
.game-card #skipBtn:focus-visible {
    border-color: rgba(253, 230, 138, 0.9);
    background: rgba(161, 98, 7, 0.95);
    outline: 2px solid rgba(251, 191, 36, 0.72);
    outline-offset: 2px;
}

.game-card #skipBtn .skip-button__icon {
    font-size: 0.75rem;
    line-height: 1;
    transform: none;
}

.game-card .prediction-closing-badge {
    position: absolute;
    z-index: 20;
    left: 10px;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    height: 22px;
    margin: 0;
    padding: 3px 10px;
    border: 1px solid rgba(192, 132, 252, 0.7);
    border-radius: 999px;
    background: rgba(76, 29, 149, 0.9);
    color: #f3e8ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(50%);
    backdrop-filter: blur(8px);
    pointer-events: none;
    white-space: nowrap;
}

.game-card .prediction-closing-badge[hidden] {
    display: none;
}

/* Phones must meet both conditions. Touchscreen laptops and narrow desktop
   windows retain the compact desktop measurements. */
@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
    .game-card #skipBtn {
        min-width: 92px;
        min-height: 50px;
        gap: 7px;
        padding: 7px 13px;
        font-size: 0.82rem;
    }

    .game-card #skipBtn .skip-button__icon {
        font-size: 1.65rem;
        line-height: 1;
        transform: translateY(-1px);
    }

    .game-card .prediction-closing-badge {
        height: 25px;
        padding-inline: 11px;
        font-size: 0.69rem;
    }
}

.game-card #action-buttons { display: block; }
.game-card #revealBtn { width: 100%; }

@media (max-width: 390px) {
    .app-header { gap: 3px; padding-inline: 2px; }
    .app-header .app-logo { width: auto; height: 48px; }
    .app-header .header-actions { gap: 1px; }
    .app-header .header-action,
    .app-header #prizesBtn,
    .app-header #partnersBtn,
    .app-header #infoBtn,
    .app-header #profileBtn { min-width: 36px; padding-inline: 5px; }
    .app-header .nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .game-card #options.is-attention .option-btn,
    .game-card #options.prediction-confidence.is-attention,
    .game-card #options.prediction-confidence.win-flash { animation: none; }
    .game-card #options.prediction-confidence.win-flash::after { animation: none; }
}

.game-question { text-align: left; }

.typing-character {
    display: inline-block;
    opacity: 0;
    transform: scale(1.35);
    transform-origin: center bottom;
}

.typing-character.is-visible { animation: typing-character-settle 300ms ease-out both; }
.typing-word { display: inline-block; white-space: nowrap; }

@keyframes typing-character-settle {
    from { opacity: 0.45; transform: scale(1.35); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .typing-character { opacity: 1; transform: none; animation: none; }
}

/* Keep the navigation on one compact row at every supported width. */
.app-header {
    position: relative;
    width: 100%;
    grid-template-columns: minmax(84px, 1fr) auto minmax(84px, 1fr);
    box-sizing: border-box;
    white-space: nowrap;
}

.app-header > .app-logo { grid-column: 1; grid-row: 1; }
.app-header .header-actions {
    position: absolute;
    left: 50%;
    grid-column: auto;
    grid-row: auto;
    width: max-content;
    gap: 1px;
    justify-self: auto;
    transform: translateX(-50%);
}
.app-header > #profileBtn { grid-column: 3; grid-row: 1; }
.app-header .header-action,
.app-header #prizesBtn,
.app-header #partnersBtn,
.app-header #infoBtn,
.app-header #profileBtn { flex: 0 0 38px; width: 38px; padding-inline: 4px; }

.app-title-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 4px 0 8px;
    padding: 0 8px;
    text-align: left;
}

.app-title-line span:first-child {
    color: #ffb703;
    font-size: clamp(1.9rem, 9.5vw, 2.75rem);
    line-height: 0.9;
}

.app-title-line span:last-child {
    color: #f8fafc;
    font-size: clamp(1.3rem, 6vw, 1.75rem);
    line-height: 0.9;
    overflow-wrap: normal;
    white-space: nowrap;
}

.app-title-line span:last-child.is-long-title {
    font-size: clamp(0.86rem, 4vw, 1.15rem);
    line-height: 1.05;
    white-space: normal;
}

.game-question {
    min-height: 0;
    margin: 2px 0 12px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 10px;
    padding-right: 6px;
    font-size: 1rem;
    line-height: 1.35;
    white-space: normal;
}

@media (max-width: 340px) {
    .app-header { grid-template-columns: minmax(78px, 1fr) auto minmax(78px, 1fr); }
    .app-header .app-logo { max-width: 84px; }
    .app-title-line { gap: 7px; padding-inline: 5px; }
    .app-title-line span:first-child { font-size: 1.8rem; }
    .app-title-line span:last-child { font-size: 1.15rem; }
    .app-title-line span:last-child.is-long-title { font-size: 0.76rem; }
}

.game-card { padding-top: 15px; }

.stats-line {
    margin-bottom: 11px;
    padding-block: 8px;
}

.stats-line > .stat-item { min-height: 36px; }

.app-header {
    min-height: 0;
    margin-bottom: 12px;
    padding-bottom: 1px;
}
.app-title-line {
    margin-block: 4.4px 8.8px;
    padding-block: 4px;
}
