/* Fonte estilo cronômetro digital (exclusiva do Crave o Tempo) */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');
/* Fonte display arredondada — usada nos títulos-marca (nav logo + headers de jogo)
   pra dar corpo à gradiente clip. Peso 900 pros títulos; italic 700 pra tagline. */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,900;1,700&display=swap');

:root {
    --bg: #0f1220;
    --bg-elev: #1a1e34;
    --bg-elev-2: #232849;
    --text: #e7e9f5;
    --text-dim: #9aa0c3;
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --success: #22c55e;
    --danger: #ef4444;
    --warn: #f59e0b;
    --border: #2b3060;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 0%, #1a1f3a 0%, var(--bg) 60%);
    color: var(--text);
    min-height: 100vh;
}

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

.site-footer {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.site-footer__links {
    display: flex;
    gap: 20px;
    font-size: 13px;
}
.site-footer__links a {
    color: var(--text-dim);
    transition: color 0.15s;
}
.site-footer__links a:hover { color: var(--text); }

/* ----- Páginas legais (privacidade, termos) -----
   Typography-first. Reusa nav + site-footer do hub. */
.legal-body { background: var(--bg); }
.legal-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 64px;
    line-height: 1.65;
}
.legal-shell h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 32px;
    margin: 0 0 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.legal-shell .legal-updated {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0 0 32px;
}
.legal-shell h2 {
    font-size: 20px;
    margin: 36px 0 12px;
    color: var(--text);
}
.legal-shell p, .legal-shell li {
    color: var(--text);
}
.legal-shell ul, .legal-shell ol {
    padding-left: 20px;
    margin: 12px 0;
}
.legal-shell li { margin-bottom: 6px; }
.legal-shell a {
    color: var(--accent-2);
    text-decoration: underline;
}
.legal-shell table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.legal-shell th, .legal-shell td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.legal-shell th {
    background: var(--bg-elev);
    color: var(--text);
    font-weight: 600;
}
.legal-shell code {
    background: var(--bg-elev);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent-2);
}
@media (min-width: 720px) {
    .legal-shell { padding: 56px 24px 96px; }
    .legal-shell h1 { font-size: 40px; }
    .legal-shell h2 { font-size: 22px; }
}

/* ----- Banner LGPD -----
   Injetado por js/common.js quando localStorage['divertize:consent'] está vazio.
   Mobile-first: full-width no rodapé, botões empilhados abaixo do texto.
   Em ≥720px vira uma barra horizontal com botões à direita. */
.consent-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2000;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
    animation: consent-slide-in 0.25s ease-out;
}
.consent-banner__text { margin: 0; }
.consent-banner__text a {
    color: var(--accent-2);
    text-decoration: underline;
}
.consent-banner__actions {
    display: flex;
    gap: 8px;
}
.consent-banner__btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elev-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.consent-banner__btn:hover {
    background: var(--bg);
    border-color: var(--accent);
}
.consent-banner__btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.consent-banner__btn--primary:hover {
    background: #6b4be6;
    border-color: #6b4be6;
}
@keyframes consent-slide-in {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@media (min-width: 720px) {
    .consent-banner {
        left: auto;
        right: 24px;
        bottom: 24px;
        max-width: 520px;
        flex-direction: row;
        align-items: center;
        padding: 18px 20px;
    }
    .consent-banner__actions { flex: 0 0 auto; }
    .consent-banner__btn { flex: 0 0 auto; }
}

/* ============================================================
   HUB (home) — layout inspirado na Netflix
   Nav sticky, hero em destaque, fileiras horizontais de cards.
   ============================================================ */

.hub-body {
    background: var(--bg);
    /* Sticky footer via flex column: main cresce pra empurrar o footer pra
       baixo quando o conteúdo é curto (jogos.html com poucos cards). Index
       já tem hero + rows suficientes, então o comportamento visual não muda
       lá. Nav é position: fixed → fora do flex flow.
       100dvh respeita a toolbar dinâmica do browser mobile; 100vh fallback. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.hub-body > main { flex: 1 0 auto; }

/* ----- Nav ----- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(10, 12, 22, 0.85) 0%, rgba(10, 12, 22, 0) 100%);
    transition: background 0.3s ease;
    padding-top: max(10px, env(safe-area-inset-top));
}
.nav.is-scrolled {
    background: rgba(15, 18, 32, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1600px;
    margin: 0 auto;
}
.nav__logo {
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hamburguer — visível só no mobile */
.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Links: drawer lateral no mobile */
.nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(280px, 82vw);
    background: rgba(15, 18, 32, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid var(--border);
    padding: 80px 14px 24px;
    padding-top: max(80px, calc(env(safe-area-inset-top) + 64px));
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 51;
}
.nav__links.is-open { transform: translateX(0); }
.nav__links a {
    color: var(--text);
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 10px;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.nav__links a:active { background: rgba(255, 255, 255, 0.08); }
.nav__links a.is-active {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.15));
}

/* Backdrop do drawer (criado via JS) */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s, visibility 0.28s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: min(78vh, 640px);
    padding: 0 16px 60px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--hero-theme, linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%));
    filter: saturate(0.85);
    z-index: -2;
}
.hero__icon {
    position: absolute;
    right: -30px;
    top: 15%;
    font-size: clamp(220px, 60vw, 520px);
    line-height: 1;
    opacity: 0.14;
    filter: blur(1px) drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
    z-index: -1;
    user-select: none;
    pointer-events: none;
}
.hero__fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 18, 32, 0.35) 0%, transparent 30%, var(--bg) 100%);
    z-index: -1;
}

/* Hero com imagem real: esconde o emoji decorativo e escurece o fade
   pra garantir contraste do texto sobre a imagem. */
.hero--has-image .hero__icon { display: none; }
.hero--has-image .hero__fade {
    background:
        linear-gradient(180deg,
            rgba(10, 12, 22, 0.85) 0%,
            rgba(10, 12, 22, 0.55) 30%,
            rgba(10, 12, 22, 0.85) 65%,
            rgba(10, 12, 22, 0.98) 90%,
            var(--bg) 100%);
}
.hero__content {
    position: relative;
    max-width: 620px;
    padding-top: 96px;
}
.hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-2);
    margin: 0 0 10px;
    padding: 4px 10px;
    background: rgba(34, 211, 238, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 999px;
}
.hero__title {
    margin: 0 0 12px;
    font-size: clamp(30px, 9vw, 68px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.05;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.hero__desc {
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1.5;
    color: var(--text);
    opacity: 0.9;
    margin: 0 0 20px;
    max-width: 520px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* Botão "Jogar" — branco com texto/ícone em gradiente roxo→ciano */
.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        0 6px 20px rgba(124, 92, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-play > span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.btn-play:active { transform: translateY(1px) scale(0.98); }
.btn-play__icon {
    font-size: 12px;
    padding-left: 1px;
    line-height: 1;
}
.btn-play--lg {
    padding: 13px 28px;
    font-size: 15px;
    border-radius: 12px;
    min-height: 48px;
}
.btn-play--lg .btn-play__icon { font-size: 13px; }

/* Botão CTA em contexto hero-like (hero da home + modal de info do jogo):
   maior que o --lg padrão, uppercase-friendly com letter-spacing. */
.hero .btn-play,
.game-modal .btn-play {
    padding: 15px 30px;
    font-size: 16px;
    min-height: 54px;
    border-radius: 14px;
    letter-spacing: 1px;
}
.hero .btn-play__icon,
.game-modal .btn-play__icon { font-size: 14px; }
@media (hover: hover) {
    .btn-play:hover {
        transform: translateY(-2px);
        box-shadow:
            0 10px 28px rgba(124, 92, 255, 0.5),
            0 0 0 1px rgba(34, 211, 238, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

/* ----- Fileiras (rows) ----- */
.rows {
    position: relative;
    z-index: 2;
    padding: 8px 0 40px;
    margin-top: -40px;
}
.row { margin-bottom: 28px; }
.row__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    padding: 0 16px;
    letter-spacing: 0.2px;
}
.row__slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    scrollbar-width: none;
    padding: 8px 16px 16px;
    -webkit-overflow-scrolling: touch;
}
.row__slider::-webkit-scrollbar { display: none; }

/* ----- Card ----- */
.card {
    flex: 0 0 clamp(150px, 44vw, 200px);
    scroll-snap-align: start;
    background: var(--bg-elev);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    -webkit-tap-highlight-color: transparent;
}
.card:active { transform: scale(0.97); }
.card__art {
    aspect-ratio: 16 / 9;
    background: var(--card-theme, linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev)));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.card__art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 3;
    pointer-events: none;
}
.card__icon {
    font-size: clamp(42px, 11vw, 72px);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
    position: relative;
    z-index: 1;
}
/* Thumbnail real (opcional): renderizada por cima do ícone fallback */
.card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
}
.card__info {
    padding: 10px 12px 12px;
}
.card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.card__help {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    padding-bottom: 2px;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.card__help:active {
    transform: scale(0.9);
    background: var(--accent);
}
.card--soon { cursor: default; }
.card--soon .card__art { filter: grayscale(0.35) brightness(0.85); }
.card--soon:active { transform: none; }

/* CTA "Sugerir novo jogo" — vive abaixo da fileira "Todos os jogos"
   (não dentro dela — não é um jogo). Padrão do .btn-play (JOGAR AGORA)
   invertido: gradient roxo→ciano no bg (não branco), texto branco (não
   gradient clip), glow pulsante pra chamar atenção sem competir com o
   hero. Formato pílula horizontal — cabe centralizado abaixo da fileira. */
.row__cta {
    display: flex;
    justify-content: center;
    /* padding-top espelha .row margin-bottom (28 mobile / 40 desktop) pra o
       CTA ficar tão longe dos cards quanto o próximo título de fileira. */
    padding: 28px 16px 8px;
}
.suggest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    min-height: 48px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    border: none;
    font-family: inherit;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        0 6px 20px rgba(124, 92, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: suggest-pulse 2.4s ease-in-out infinite;
    transition: transform 0.12s ease;
}
.suggest-btn:active { transform: translateY(1px) scale(0.98); }
.suggest-btn__icon {
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.suggest-btn__label { line-height: 1; }
@keyframes suggest-pulse {
    0%, 100% {
        box-shadow:
            0 6px 20px rgba(124, 92, 255, 0.4),
            0 0 0 0 rgba(34, 211, 238, 0),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 10px 32px rgba(124, 92, 255, 0.6),
            0 0 28px 6px rgba(34, 211, 238, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}
@media (hover: hover) {
    .suggest-btn:hover { transform: translateY(-2px); }
}
/* Respeita quem prefere movimento reduzido (a11y). */
@media (prefers-reduced-motion: reduce) {
    .suggest-btn { animation: none; }
}

/* ----- Página "Todos os jogos" (jogos.html) ----- */
/* Sem hero. Grid responsivo (auto-fill) + barra de pesquisa que filtra por
   título em tempo real (base pequena, sem debounce). */
.games-page {
    padding: 88px 16px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.games-page__header {
    margin-bottom: 20px;
}
.games-page__title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.games-search__input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.games-search__input::placeholder { color: var(--text-dim); }
.games-search__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
/* Card no grid: sobrepõe o flex-basis do slider (a página não é slider). */
.games-grid .card {
    flex: initial;
    scroll-snap-align: unset;
}
.games-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 40px 16px;
    font-size: 15px;
}

/* ----- Modal de informações do jogo ----- */
/* Mobile: bottom sheet subindo. Desktop: modal centralizado (min-width: 720px). */
.game-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.game-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: game-modal-fade 0.2s ease;
}
.game-modal__card {
    position: relative;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 88dvh;
    overflow: hidden;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    animation: game-modal-slide-up 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.game-modal__card::before {
    /* Grabber do bottom sheet */
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 3;
}
@keyframes game-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes game-modal-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes game-modal-slide {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.game-modal__header {
    aspect-ratio: 16 / 8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.game-modal__header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 30, 52, 0.7) 100%);
}
.game-modal__icon {
    font-size: clamp(72px, 18vw, 110px);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45));
    position: relative;
    z-index: 1;
}
.game-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
    padding: 0;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.game-modal__close:active { background: rgba(0, 0, 0, 0.9); }
.game-modal__body {
    padding: 18px 20px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.game-modal__title {
    margin: 0 0 10px;
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.3px;
    line-height: 1.15;
}
/* Wrapper inline-block — mesma razão do .game-header__title-text: gradiente
   precisa da largura do texto, não da caixa block. */
.game-modal__title-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Tagline "divertize.com" — logo abaixo do nome do jogo no modal Como jogar. */
.game-modal__brand {
    display: block;
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    color: #ffffff;
    margin-top: 3px;
    line-height: 1;
}
.game-modal__desc {
    color: var(--text);
    opacity: 0.88;
    margin: 0 0 20px;
    line-height: 1.55;
    font-size: 15px;
}
.game-modal__subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin: 0 0 10px;
    font-weight: 700;
}
.game-modal__list {
    margin: 0 0 22px;
    padding-left: 22px;
    color: var(--text);
    opacity: 0.9;
    line-height: 1.6;
    font-size: 14px;
}
.game-modal__list li { margin-bottom: 6px; }
.game-modal__report {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    text-align: center;
}
.game-modal__report-label { color: var(--text-dim); }
.game-modal__report-link {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: background 0.15s, border-color 0.15s;
}
.game-modal__report-link:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: var(--accent-2);
}
.game-modal__actions {
    display: flex;
    gap: 10px;
}
.game-modal__actions .btn-play { flex: 1; }
.game-modal__soon {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed var(--border);
    color: var(--text-dim);
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}
/* Report-link virou <button> (dispara openReportModal). Reset dos default
   de <button> pra preservar o visual outline-cyan do <a> original. */
.game-modal__report-link {
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ----- Form modal (Reportar problema / Sugerir novo jogo) ----- */
/* Herda toda a estrutura visual do .game-modal (backdrop, card, header,
   close, animações). Só adiciona o styling específico do <form>. */
.form-modal__form { display: flex; flex-direction: column; gap: 14px; }
.form-modal__field { display: flex; flex-direction: column; gap: 6px; }
.form-modal__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.2px;
}
.form-modal__optional {
    font-weight: 400;
    color: var(--text-dim);
    font-size: 12px;
}
.form-modal__input,
.form-modal__textarea,
.form-modal__select {
    width: 100%;
    padding: 11px 13px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.form-modal__textarea { resize: vertical; min-height: 90px; line-height: 1.4; }
.form-modal__select {
    /* Chevron manual — appearance: none tira o nativo, aí a gente adiciona. */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%239aa0c3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}
.form-modal__input::placeholder,
.form-modal__textarea::placeholder { color: var(--text-dim); }
.form-modal__input:focus,
.form-modal__textarea:focus,
.form-modal__select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
/* Honeypot escondido pra bot (visualmente removido, acessível pra bot
   que ignora CSS e aria-hidden). */
.form-modal__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-modal__submit {
    margin-top: 4px;
    padding: 13px 20px;
    min-height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}
.form-modal__submit:active { transform: translateY(1px) scale(0.99); }
.form-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.form-modal__error {
    margin: 0;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    color: #fecaca;
    font-size: 13px;
    line-height: 1.4;
}
/* Estado de sucesso — substitui o form in-place. */
.form-modal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 0 8px;
    text-align: center;
}
.form-modal__success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}
.form-modal__success-msg {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    max-width: 360px;
}
.form-modal__success-close {
    padding: 10px 22px;
    min-height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.form-modal__success-close:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
}

/* ============================================================
   Tablet+ (>= 720px): promove nav para inline, aumenta hero e cards,
   volta o modal para o formato centralizado e ativa hover.
   ============================================================ */
@media (min-width: 720px) {
    /* Nav horizontal */
    .nav { padding: 16px 4%; }
    .nav__inner { justify-content: flex-start; gap: 40px; }
    .nav__logo { font-size: 24px; }
    .nav__toggle { display: none; }
    .nav__links {
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        border: none;
        padding: 0;
        flex-direction: row;
        gap: 22px;
        font-size: 14px;
        transform: none;
        transition: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: auto;
    }
    .nav__links a {
        color: var(--text-dim);
        font-weight: 400;
        padding: 0;
        border-radius: 0;
        background: transparent !important;
        transition: color 0.15s;
    }
    .nav__links a:hover,
    .nav__links a.is-active { color: var(--text); background: transparent !important; }
    .nav-backdrop { display: none; }

    /* Hero mais alto e com folga lateral */
    .hero {
        min-height: min(85vh, 720px);
        padding: 0 4% 120px;
    }
    .hero__icon {
        right: -40px;
        top: 50%;
        transform: translateY(-50%);
        font-size: clamp(280px, 40vw, 520px);
        opacity: 0.18;
    }
    .hero__fade {
        background:
            linear-gradient(180deg, transparent 40%, var(--bg) 100%),
            linear-gradient(90deg, rgba(15, 18, 32, 0.85) 0%, rgba(15, 18, 32, 0.35) 45%, transparent 70%);
    }
    .hero__content { padding-top: 120px; }
    .hero__eyebrow { font-size: 12px; letter-spacing: 3px; margin-bottom: 12px; }
    .hero__title { margin-bottom: 16px; font-size: clamp(36px, 5.5vw, 68px); }
    .hero__desc { font-size: clamp(15px, 1.4vw, 18px); margin-bottom: 24px; }

    /* Botão maior */
    .btn-play { padding: 12px 26px; font-size: 15px; }
    .btn-play__icon { font-size: 13px; }
    .btn-play--lg { padding: 14px 34px; font-size: 16px; }
    .btn-play--lg .btn-play__icon { font-size: 14px; }
    .hero .btn-play,
    .game-modal .btn-play { padding: 16px 36px; font-size: 17px; min-height: 56px; }
    .hero .btn-play__icon,
    .game-modal .btn-play__icon { font-size: 15px; }

    /* Rows com padding lateral em % */
    .rows { padding: 8px 0 60px; margin-top: -60px; }
    .row { margin-bottom: 40px; }
    .row__title {
        font-size: clamp(16px, 1.6vw, 20px);
        margin-bottom: 12px;
        padding: 0 4%;
    }
    .row__slider {
        gap: 12px;
        scroll-padding-left: 4%;
        padding: 10px 4% 20px;
    }
    .row__cta { padding: 40px 4% 8px; }

    /* Página "Todos os jogos" — mais respiro lateral + grid com cards maiores. */
    .games-page { padding: 100px 4% 60px; }
    .games-page__title { font-size: 32px; margin-bottom: 16px; }
    .games-search__input { max-width: 480px; font-size: 16px; padding: 14px 16px; }
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    /* Cards maiores + hover */
    .card { flex-basis: clamp(200px, 22vw, 260px); }
    .card__icon { font-size: clamp(48px, 6vw, 72px); }
    .card__info { padding: 12px 14px 14px; }
    .card__title { font-size: 15px; }
    .card__badge { font-size: 10px; top: 8px; left: 8px; }
    .card__help {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 14px;
        opacity: 0;
        transform: scale(0.9);
        transition: background 0.15s, transform 0.15s, opacity 0.15s, border-color 0.15s;
    }
    .card:hover .card__help,
    .card__help:focus-visible {
        opacity: 1;
        transform: scale(1);
    }
    .card__help:hover {
        background: var(--accent);
        border-color: rgba(255, 255, 255, 0.35);
        transform: scale(1.1);
    }
    .card:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
        z-index: 3;
    }
    .card:active { transform: translateY(-4px) scale(1.03); }
    .card--soon:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

    /* Modal centralizado (não é mais bottom sheet) */
    .game-modal {
        align-items: center;
        padding: 20px;
    }
    .game-modal__card {
        border: 1px solid var(--border);
        border-radius: 14px;
        max-height: 90vh;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
        animation: game-modal-slide 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
        padding-bottom: 0;
    }
    .game-modal__card::before { display: none; }
    .game-modal__header { aspect-ratio: 16 / 7; }
    .game-modal__icon { font-size: clamp(72px, 12vw, 110px); }
    .game-modal__close { width: 34px; height: 34px; font-size: 22px; }
    .game-modal__close:hover { background: rgba(0, 0, 0, 0.85); }
    .game-modal__body { padding: 20px 24px 24px; }
    .game-modal__title { font-size: 24px; }
    .game-modal__desc { margin-bottom: 22px; }
    .game-modal__list { margin-bottom: 24px; }
}

/* ============================================================
   DESIGN SYSTEM DE JOGO — compartilhado por todas as páginas de jogo.
   Cada jogo aplica <body class="game-body" style="--game-theme: ...">
   O --game-theme (gradiente CSS) pinta a barra do panel, o botão CTA
   e outros pontos, ligando visualmente o jogo ao seu card no hub.
   Mobile-first: regras padrão valem para mobile; @media (min-width: 720px) amplia.
   ============================================================ */

.game-body {
    background: var(--bg);
    /* Setados por Divertize.setGameBackground(slug) via preload:
       --game-bg      → portrait 1024×1536 (mobile, cover downscale = nítido)
       --game-bg-wide → landscape 1536×1024 (desktop, evita 87% upscale) */
    --game-bg: none;
    --game-bg-wide: none;
    /* Sticky footer via grid: linha 1 (1fr) = .game-shell cresce pra ocupar
       espaço disponível; linha 2 (auto) = .site-footer natural. Grid preserva
       o comportamento de block do .game-shell (max-width + margin auto
       centralizam como sempre), diferente de flex column que podia
       redimensionar horizontalmente com align-items: stretch.
       .game-header é position:fixed, fica fora do grid.
       100dvh respeita a toolbar do browser mobile; 100vh é fallback. */
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
}
/* Grid items não esticam pra grid track quando têm max-width — colapsam
   pra largura do conteúdo intrínseco (varia por jogo). Força width: 100%
   pra o max-width sempre ser o cap efetivo, restaurando o comportamento
   idêntico ao do block layout original. */
.game-body > .game-shell { width: 100%; }
/* Plano de fundo do jogo — imagem gerada por tools/background-generator/,
   aplicada num pseudo-element fixo pra não sofrer com repaints de scroll.
   O .panel opaco cobre o fundo na área central; o efeito aparece nas
   margens, header e espaço abaixo do painel. */
.game-body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--game-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.7;
}
@media (min-width: 720px) {
    /* Fallback pro portrait se a wide não estiver disponível ainda. */
    .game-body::before { background-image: var(--game-bg-wide, var(--game-bg)); }
}

/* ----- Header do jogo (topbar consistente com o hub) ----- */
.game-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    padding-top: max(8px, env(safe-area-inset-top));
    background: linear-gradient(180deg, rgba(10, 12, 22, 0.85) 0%, rgba(10, 12, 22, 0) 100%);
    transition: background 0.3s ease;
}
.game-header.is-scrolled {
    background: rgba(15, 18, 32, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.game-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.game-header__btn:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.94);
}
.game-header__title {
    flex: 1;
    min-width: 0;
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Wrapper interno inline-block — o background-clip: text precisa que o fundo
   tenha exatamente a largura do texto pra gradiente 135° cobrir de ponta a
   ponta. Sem isso, o fundo ocupa a caixa flex:1 inteira e o texto centralizado
   mostra só uma fatia esmaecida do meio (mesmo problema do .game-modal__title). */
.game-header__title-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ----- Shell principal ----- */
.game-shell {
    max-width: 640px;
    margin: 0 auto;
    padding: 60px 12px 32px;
    /* padding-top ancora exatamente no fim do header (60px = 44 do botão + 8+8 de
       padding). O cushion acima da tagline fica por conta da margem-top dela,
       igualando a margem-bottom — assim a tagline fica centrada no vão entre
       header e panel independente de safe-area do iOS. */
    padding-top: calc(60px + env(safe-area-inset-top));
    /* stacking context sobre o .game-bg (que fica em z-index: 0) */
    position: relative;
    z-index: 1;
}

/* Tagline "divertize.com" entre o header e o .panel — primeiro filho do
   .game-shell. Margens assimétricas de propósito: o .game-header tem fundo
   em gradient que fade pra transparente, então visualmente ele "termina" bem
   antes da borda física (60px). Margem top pequena + bottom maior compensam
   esse fade e fazem a tagline parecer visualmente centrada no vão. */
.game-brand {
    margin: 2px 0 28px;
    text-align: center;
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    color: #ffffff;
    line-height: 1;
}


/* ----- Panel: envelope de cada tela de jogo, com "wax seal" do tema no topo ----- */
.panel {
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel::before {
    /* Barra do gradiente do jogo no topo — assina a página como parte do jogo */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--game-theme, linear-gradient(90deg, var(--accent), var(--accent-2)));
}
.panel__hint {
    color: var(--text-dim);
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
}

/* ----- Mode tabs (seletor de modo/dificuldade) ----- */
.mode-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 14px;
}
.mode-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px 8px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s;
}
.mode-tab:active { background: rgba(255, 255, 255, 0.04); }
.mode-tab.is-active {
    background: var(--accent);
    color: white;
}
/* Selo BETA dentro de uma .mode-tab (ex: aba "Frases" na Forca). */
.mode-tab__beta {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.35);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    vertical-align: 1px;
}
.mode-tab.is-active .mode-tab__beta {
    background: rgba(255, 255, 255, 0.28);
}

/* ----- Range picker + time inputs (entrada numérica de tempo) ----- */
.range-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.range-picker__group {
    background: var(--bg-elev-2);
    border-radius: 12px;
    padding: 12px;
}
.range-picker__label {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 700;
}
.range-picker__hint {
    color: var(--text-dim);
    opacity: 0.65;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 10px;
    margin-left: 4px;
}
.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: end;
}
.time-inputs__field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.time-inputs input {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 6px;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    min-height: 48px;
    -moz-appearance: textfield;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.time-inputs input::-webkit-outer-spin-button,
.time-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.time-inputs input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.time-inputs input:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.time-inputs__field small {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ----- Aviso ----- */
.warn-msg {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--warn);
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* ----- Displays: painéis grandes de tempo / pontuação ----- */
.display {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 12px;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
}
.display__label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 700;
}
.display__value {
    font-family: 'Courier New', monospace;
    font-size: clamp(38px, 12vw, 64px);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}
.display__action {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, border-color 0.15s, transform 0.3s;
}
.display__action:active {
    color: var(--text);
    border-color: var(--accent);
    transform: rotate(180deg);
}

/* Cronômetro digital (Crave o Tempo): fonte estilizada para target e counter */
.display--target .display__value,
.display--counter .display__value {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-weight: 900;
    letter-spacing: 3px;
}
.display--target .display__value { color: var(--accent-2); }
.display--counter .display__value { color: #6ba86b; }
.display--counter.is-win .display__value {
    color: #39ff14;
    text-shadow:
        0 0 6px  rgba(57, 255, 20, 0.9),
        0 0 14px rgba(57, 255, 20, 0.7),
        0 0 22px rgba(57, 255, 20, 0.4);
}
.display--counter.is-running .display__value span {
    display: inline-block;
    color: #1b5e20;
    text-shadow: none;
    transition: color 60ms linear, text-shadow 60ms linear;
}
.display--counter.is-running .display__value span.is-lit {
    color: #39ff14;
    text-shadow:
        0 0 6px  rgba(57, 255, 20, 0.9),
        0 0 14px rgba(57, 255, 20, 0.7),
        0 0 22px rgba(57, 255, 20, 0.4);
}
.display--counter.is-shaking .display__value span {
    display: inline-block;
    color: #39ff14;
    text-shadow:
        0 0 6px  rgba(57, 255, 20, 0.9),
        0 0 14px rgba(57, 255, 20, 0.7),
        0 0 22px rgba(57, 255, 20, 0.4);
    animation: counter-shake 80ms infinite;
}
@keyframes counter-shake {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2px, 1px); }
    50%  { transform: translate(2px, -1px); }
    75%  { transform: translate(-1px, -2px); }
    100% { transform: translate(1px, 2px); }
}

/* ----- Botões dentro de jogos -----
   .btn = base (secundária, sólido roxo suave)
   .btn--primary = CTA principal, usa o gradiente do jogo (--game-theme)
   .btn--secondary = neutra, com borda
   .btn--danger = ação destrutiva
   .btn--win = feedback de vitória (verde)
   .btn--full = ocupa 100% da largura (mobile-first pattern)
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 22px;
    min-height: 48px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, background 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--primary {
    background: var(--game-theme, linear-gradient(135deg, var(--accent), var(--accent-2)));
    color: white;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow:
        0 6px 20px rgba(124, 92, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:active:not(:disabled) {
    transform: scale(0.98);
    box-shadow:
        0 3px 12px rgba(124, 92, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--secondary {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: none;
}
.btn--danger {
    background: var(--danger);
    box-shadow:
        0 6px 20px rgba(239, 68, 68, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn--win {
    background: var(--success);
    box-shadow:
        0 6px 20px rgba(34, 197, 94, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn--big {
    padding: 16px 32px;
    font-size: 16px;
    min-width: 220px;
    min-height: 52px;
}
.btn--full { width: 100%; }

.actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}
.actions .btn { flex: none; }

/* ----- Feedback de resultado ----- */
.result {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    display: none;
}
.result.is-visible { display: block; }
.result--win {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid var(--success);
    color: var(--success);
}
.result--over {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid var(--warn);
    color: var(--warn);
}
.result--under {
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid var(--accent-2);
    color: var(--accent-2);
}
.result__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.result__diff {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 700;
}
.result__arrow { font-size: 22px; margin-right: 6px; }
.result__meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.result__meta-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 6px auto;
    width: 60%;
}

/* ----- Desafio do dia (Crave o Tempo) -----
   Faixa de status no topo do gameArea + card de resultado após rodada 5.
   `.is-daily` no #gameArea esconde partes irrelevantes (histórico, "trocar tempo"). */
.daily-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(255, 176, 32, 0.18), rgba(255, 90, 32, 0.14));
    border: 1px solid rgba(255, 176, 32, 0.35);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.daily-strip__label { color: #ffb020; }
.daily-strip__date  { color: var(--text-dim); }
.daily-strip__round {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 176, 32, 0.25);
    color: #fff;
    font-size: 12px;
}

/* Bilhete curto abaixo da faixa: lembra da margem de 1s. */
.daily-hint {
    margin: 0 0 14px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-dim);
    text-align: center;
}
.daily-hint strong { color: var(--text); }

/* Quando o desafio está ativo, o gameArea some com os controles de rodada livre. */
.is-daily .display--target .display__action { display: none; }
.is-daily .history-toggle { display: none; }
.is-daily #resultMeta { display: none; }
/* Feedback de resultado por rodada não aparece no desafio — margem só no fim. */
.is-daily #result { display: none; }
/* Tela final: só o card de resultado fica visível. Faixa, explicação,
   display de alvo, cronômetro e botões da rodada somem. */
.is-daily-done .daily-strip,
.is-daily-done .daily-hint,
.is-daily-done .display--target,
.is-daily-done #counterBox,
.is-daily-done #mainBtn,
.is-daily-done #dailyNextBtn { display: none; }

.daily-result {
    margin-top: 22px;
    padding: 18px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.daily-result__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}
.daily-result__title--win  { color: #39ff14; }
.daily-result__title--lose { color: #ff5d5d; }
/* Card colorido com o veredicto da margem. Verde se sobrou, vermelho se estourou.
   Largura acompanha o texto (fit-content) e fica centralizado — não estica de ponta a ponta. */
.daily-result__margin {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 16px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.3px;
}
.daily-result__margin--win {
    background: rgba(57, 255, 20, 0.14);
    border-color: rgba(57, 255, 20, 0.45);
    color: #39ff14;
}
.daily-result__margin--lose {
    background: rgba(255, 93, 93, 0.15);
    border-color: rgba(255, 93, 93, 0.45);
    color: #ff5d5d;
}
.daily-result__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: 'Courier New', Courier, monospace;
}
.daily-result__table th,
.daily-result__table td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.daily-result__table th {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.daily-result__table tr:last-child td { border-bottom: none; }
.daily-result__diff--zero  { color: #39ff14; font-weight: 700; }
.daily-result__diff--over  { color: #ff9a5d; }
.daily-result__diff--under { color: #5db8ff; }
/* Botões de ação (Jogar novamente + Voltar) empilham no mobile e ficam
   lado a lado quando cabe — 2× btn--big (min-width 220px) estoura em telas
   estreitas. */
.daily-result .actions { flex-wrap: wrap; }

/* Dropdown de tentativas anteriores (M3) — mostrado abaixo dos botões de
   share quando o usuário volta a jogar um dia que já tinha resultado(s).
   Lista cronológica com veredicto + margem restante/excedida por tentativa. */
.daily-attempts {
    margin-top: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.daily-attempts > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.daily-attempts > summary::-webkit-details-marker { display: none; }
.daily-attempts > summary::after {
    content: '▾';
    font-size: 11px;
    color: var(--text-dim);
    transition: transform 0.15s;
}
.daily-attempts[open] > summary::after { transform: rotate(180deg); }
.daily-attempts__count {
    margin-left: auto;
    margin-right: 10px;
    padding: 2px 8px;
    background: rgba(255, 176, 32, 0.18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #ffb020;
}
.daily-attempts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}
.daily-attempts__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    font-size: 12.5px;
    border-bottom: 1px solid var(--border);
}
.daily-attempts__row:last-child { border-bottom: none; }
.daily-attempts__idx {
    color: var(--text-dim);
    font-weight: 600;
}
.daily-attempts__mark {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
}
.daily-attempts__row--win  .daily-attempts__mark { color: #39ff14; }
.daily-attempts__row--lose .daily-attempts__mark { color: #ff5d5d; }

/* ----- CTA do desafio do dia (M2) ----- */
/* Container separado (.daily-panel) abaixo do .panel principal, contendo o
   card-botão .daily-cta. Some quando o jogo (livre ou desafio) está ativo,
   sincronizado com o #setupArea via JS.
   Dois estados no botão via data-state:
   pending (gradient laranja→amarelo, pulsando + sparkles VIP no canto superior
   esquerdo) e done (neutro, discreto — sem animações nem sparkles). */
.daily-panel {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
.daily-cta {
    position: relative;
    /* Sparkles decorativos transbordam (top/left negativos) — sem overflow:visible
       o hit-box do <button> corta as estrelas. */
    overflow: visible;
    /* Bem maior que .btn--big (16px 32px, min-w 220, min-h 52, font 16px):
       min-width folgado, padding mais alto, fonte maior. Wrapper flex
       centraliza no eixo horizontal. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    min-height: 64px;
    padding: 20px 48px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.daily-cta:active { transform: scale(0.99); }
.daily-cta__title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.4px;
    line-height: 1.15;
}

/* Pending — gradient dourado + pulse. Texto escuro pra contraste. */
.daily-cta[data-state="pending"] {
    background: linear-gradient(135deg, #ff8a00, #ffc400);
    color: #1a0f00;
    border-color: rgba(255, 196, 0, 0.7);
    animation: daily-pulse 2.4s ease-in-out infinite;
}
@keyframes daily-pulse {
    0%, 100% { box-shadow: 0 0 0 0  rgba(255, 196, 0, 0.55); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 196, 0, 0); }
}

/* Sparkles VIP no canto superior esquerdo — visíveis só em pending. Três
   estrelas com posições/tamanhos/timings distintos: uma pisa fora do card
   (top/left negativos), duas por dentro. Twinkle escalonado dá efeito de
   brilho contínuo. */
.daily-cta__sparkle {
    display: none;
    position: absolute;
    pointer-events: none;
    line-height: 1;
    color: #fffbe6;
    text-shadow:
        0 0 6px  rgba(255, 240, 150, 0.95),
        0 0 14px rgba(255, 200, 60, 0.7);
    animation: sparkle-twinkle 2s ease-in-out infinite;
}
.daily-cta[data-state="pending"] .daily-cta__sparkle {
    display: inline-block;
}
/* Grande, transborda o canto (fora). */
.daily-cta__sparkle--1 {
    top: -9px;
    left: -8px;
    font-size: 20px;
    animation-duration: 1.8s;
}
/* Média, dentro. */
.daily-cta__sparkle--2 {
    top: 8px;
    left: 8px;
    font-size: 12px;
    animation-duration: 2.3s;
    animation-delay: 0.5s;
}
/* Pequena, dentro num ponto distinto. */
.daily-cta__sparkle--3 {
    top: -2px;
    left: 18px;
    font-size: 9px;
    animation-duration: 2.1s;
    animation-delay: 1s;
}
@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.55) rotate(0deg); }
    50%      { opacity: 1;    transform: scale(1.1)  rotate(20deg); }
}

/* ----- Modal do calendário (M2) ----- */
.daily-calendar-modal .modal__card {
    max-width: 440px;
}
.daily-cal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.daily-cal__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.daily-cal__nav-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, transform 0.15s, opacity 0.15s;
}
.daily-cal__nav-btn:active:not(:disabled) { transform: scale(0.92); }
.daily-cal__nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.daily-cal__month {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}
.daily-cal__weekdays,
.daily-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.daily-cal__weekdays span {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
}
.daily-cal__cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: default;
}
.daily-cal__cell--blank {
    pointer-events: none;
}
.daily-cal__cell--day {
    cursor: pointer;
    background: var(--bg);
    border-color: var(--border);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s, filter 0.15s;
}
.daily-cal__cell--day:active { transform: scale(0.9); }
.daily-cal__cell--pending {
    color: #ffb020;
    background: rgba(255, 176, 32, 0.08);
    border-color: rgba(255, 176, 32, 0.55);
    box-shadow: 0 0 10px rgba(255, 176, 32, 0.28);
}
.daily-cal__cell.is-today .daily-cal__num {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.daily-cal__cell.is-selected {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    background: rgba(124, 92, 255, 0.12);
}
.daily-cal__num { line-height: 1; }
.daily-cal__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}
.daily-cal__start { width: 100%; }
.daily-cal__msg {
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 176, 32, 0.10);
    border: 1px solid rgba(255, 176, 32, 0.35);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-dim);
    text-align: center;
}

/* ----- Histórico colapsável ----- */
.history-toggle {
    margin-top: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.history-toggle summary {
    padding: 14px 16px;
    min-height: 52px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text);
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 14px;
    transition: background 0.15s;
}
.history-toggle summary::-webkit-details-marker { display: none; }
.history-toggle summary::after {
    content: '▾';
    color: var(--text-dim);
    transition: transform 0.2s;
    margin-left: 8px;
}
.history-toggle[open] summary::after { transform: rotate(180deg); }
.history-toggle summary:active { background: var(--bg-elev-2); }
.history-toggle__count {
    background: var(--accent);
    color: white;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-left: auto;
    margin-right: 8px;
    min-width: 24px;
    text-align: center;
}
.history {
    padding: 12px 14px 14px;
    max-height: 320px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}
.history__empty { color: var(--text-dim); font-size: 14px; margin: 4px 0; }
.history__round {
    background: var(--bg-elev-2);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent);
}
.history__range { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.history__target {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}
.history__attempts { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.history__attempt {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-family: 'Courier New', monospace;
}
.history__attempt--win { color: var(--success); }
.history__attempt--over { color: var(--warn); }
.history__attempt--under { color: var(--accent-2); }
.history__clear {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 10px;
    min-height: 44px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, border-color 0.15s;
}
.history__clear:active { color: var(--danger); border-color: var(--danger); }

/* ----- Modal de confirmação (bottom sheet no mobile, centralizado no desktop) ----- */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
}
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: modal-fade 0.2s ease;
}
.modal__card {
    position: relative;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
    padding: 22px 20px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    width: 100%;
    max-width: 480px;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.6);
    animation: modal-slide-up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.modal__card::before {
    /* Grabber do bottom sheet */
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
}
@keyframes modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modal-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes modal-in {
    from { transform: scale(0.94); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.modal__title {
    margin: 4px 0 8px;
    font-size: 18px;
    font-weight: 700;
}
.modal__body {
    margin: 0 0 18px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
}
.modal__actions {
    display: flex;
    gap: 10px;
}
.modal__actions .btn { flex: 1; }

/* ----- Tablet+ (>= 720px) ----- */
@media (min-width: 720px) {
    .game-header { padding: 10px 20px; }
    .game-header__title {
        font-size: clamp(26px, 3.2vw, 34px);
        letter-spacing: 0.5px;
    }

    .game-shell {
        padding: 64px 24px 40px;
        /* Header tablet: 44 (botão) + 10+10 (padding) = 64px. Mesma lógica do
           mobile — a tagline .game-brand controla o cushion via margin. */
        padding-top: calc(64px + env(safe-area-inset-top));
        max-width: 720px;
    }

    .panel { padding: 24px; border-radius: 20px; }
    .panel__hint { margin-bottom: 20px; }

    .mode-tab { font-size: 14px; padding: 11px; }
    .range-picker { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
    .range-picker__group { padding: 14px; }
    .time-inputs input { font-size: 22px; }

    .display { padding: 20px; margin-bottom: 16px; }
    .display__value { font-size: clamp(48px, 6vw, 72px); }

    .btn { font-size: 15px; padding: 12px 24px; }
    .btn:hover:not(:disabled) { transform: translateY(-1px); }
    .btn--primary:hover:not(:disabled) {
        filter: brightness(1.08);
        box-shadow:
            0 10px 28px rgba(124, 92, 255, 0.45),
            0 0 0 1px rgba(34, 211, 238, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .modal { align-items: center; padding: 20px; }
    .modal__card {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 22px;
        padding-bottom: 22px;
        max-width: 440px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
        animation: modal-in 0.2s ease-out;
    }
    .modal__card::before { display: none; }
    .modal__title { font-size: 20px; }
    .modal__body { font-size: 15px; }
    .modal__actions { justify-content: flex-end; }
    .modal__actions .btn { flex: none; min-width: 120px; }
}

.hidden { display: none !important; }

/* ===== Acerte o país ===== */
/* Variante das mode-tabs que quebra em múltiplas linhas (6 continentes não cabem em uma linha em mobile). */
.mode-tabs--wrap {
    flex-wrap: wrap;
}
.mode-tabs--wrap .mode-tab {
    flex: 1 1 30%;
}

/* Grupos de setup abaixo dos continentes (nível de dificuldade, rodadas).
   Cada grupo tem um label uppercase seguido de uma linha de .mode-tabs. */
.setup-group {
    margin-top: 12px;
}
.setup-group__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    text-align: center;
    margin: 0 0 8px;
}

/* Toggle expansível — substitui o corpo do grupo até o jogador optar por abrir.
   Usado hoje pelo bloco de dificuldade (que é opcional). */
.setup-group__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 8px 14px;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.12s ease, border-color 0.12s ease;
}
.setup-group__toggle:active {
    color: var(--text);
    border-color: var(--text-dim);
}
.setup-group__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
    color: var(--text-dim);
}
@media (hover: hover) {
    .setup-group__toggle:hover {
        color: var(--text);
        border-color: var(--text-dim);
    }
}

/* ----- Attempts limit (input numérico centralizado, expandido via toggle) ----- */
.attempts-limit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}
.attempts-limit__input {
    width: 84px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    min-height: 44px;
    -moz-appearance: textfield;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.attempts-limit__input::-webkit-outer-spin-button,
.attempts-limit__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.attempts-limit__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
.attempts-limit__suffix {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
}
.attempts-limit__clear {
    display: block;
    margin: 0 auto;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    min-height: 32px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.12s ease;
}
.attempts-limit__clear:active { color: var(--danger); }
@media (hover: hover) {
    .attempts-limit__clear:hover { color: var(--danger); }
}

.score-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 14px;
    padding: 0 2px;
    gap: 8px;
}
.score-bar strong {
    color: var(--text);
    font-weight: 700;
}

/* Cronômetro por rodada (Palavras Embaralhadas com limite de tempo).
   Fica no meio do .score-bar, muda para vermelho quando faltam ≤5s. */
.round-timer {
    color: var(--text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-elev);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.round-timer--low {
    color: #ff5d5d;
    border-color: rgba(255, 93, 93, 0.5);
    background: rgba(255, 93, 93, 0.08);
    animation: round-timer-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes round-timer-pulse {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}
/* Botão discreto de "sair" no canto direito do score-bar. Não é primary
   (é a válvula de escape, não a ação principal). Ganha tom vermelho no
   :hover / :active pra sinalizar o caráter destrutivo antes do modal. */
.score-bar__end {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-dim);
    font: inherit;
    font-size: 12px;
    padding: 6px 12px;
    min-height: 32px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.12s ease, border-color 0.12s ease;
}
.score-bar__end:active {
    color: var(--danger);
    border-color: var(--danger);
}
@media (hover: hover) {
    .score-bar__end:hover {
        color: var(--danger);
        border-color: var(--danger);
    }
}

.flag-display {
    position: relative; /* âncora do botão de dica no canto sup. dir. */
    text-align: center;
    padding: 28px 16px 20px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.flag-display__hint-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
    min-height: 32px;
}
.flag-display__hint-btn:active { background: var(--bg-elev); transform: scale(0.96); }
.flag-display__hint-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Estrelas do orçamento de dicas — ancoradas embaixo do botão de dica.
   Cada estrela apaga (☆ + tom apagado) quando uma dica é gasta e
   regenera para o cheio no próximo acerto (ver revealHint/finishRound). */
.hint-stars {
    position: absolute;
    top: 42px;
    right: 12px;
    display: flex;
    gap: 3px;
    font-size: 13px;
    line-height: 1;
    color: var(--warn);
    pointer-events: none;
    user-select: none;
}
.hint-star {
    transition: color 0.2s ease, transform 0.2s ease;
}
.hint-star.is-empty {
    color: var(--border);
}
/* Renderizada pela lib flag-icons (.fi .fi-<iso>). Tamanho fixo aqui em vez de
   font-size, porque a lib usa background-image e não escala com font. */
.flag-display__flag.fi {
    display: inline-block;
    width: 176px;
    height: 132px; /* 4:3, default da flag-icons */
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    background-size: cover;
    background-position: center;
}
.flag-display__hint {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 14px;
    min-height: 18px;
}

/* Palavra embaralhada (jogo Palavras Embaralhadas). Vive dentro da mesma
   .flag-display do Acerte o país — reusamos o container "grande caixa da
   rodada". Cada letra vira um chip discreto com borda; text-transform garante
   o CAPS mesmo se o dataset vier em minúsculas. Wrap em telas estreitas. */
.scrambled-word {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px auto 4px;
    max-width: 100%;
}
.scrambled-word__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 44px;
    padding: 0 8px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--text);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
@media (min-width: 720px) {
    .scrambled-word__letter {
        min-width: 40px;
        height: 52px;
        font-size: 26px;
    }
}

/* Container do input — abriga o ícone de feedback (canto esquerdo). */
.answer-field {
    position: relative;
    margin-bottom: 12px;
}
.answer-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
    display: none;
    font-weight: 700;
}
.answer-field__icon--win   { display: block; color: var(--success); }
.answer-field__icon--wrong { display: block; color: var(--danger); }

.answer-input {
    width: 100%;
    /* Padding lateral simétrico reserva espaço pro ícone à esquerda sem
       descentralizar o text-align: center. */
    padding: 14px 44px;
    font-size: 16px; /* 16px+ evita zoom automático em iOS */
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}
.answer-input:focus {
    outline: none;
    border-color: var(--accent);
}
.answer-input:disabled {
    /* Estados de feedback desabilitam o input; o opacity default
       lava demais as cores semânticas, então cancelamos aqui. */
    cursor: not-allowed;
}

/* Feedback inline no input. Skip não tem modifier: auto-avança sem exibição. */
.answer-input--win {
    border-color: var(--success);
    background: rgba(107, 168, 107, 0.15);
    color: var(--success);
    -webkit-text-fill-color: var(--success); /* iOS ignora `color` em input:disabled */
    font-weight: 700;
}
.answer-input--wrong {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    -webkit-text-fill-color: var(--danger);
    text-decoration: line-through;
    font-weight: 700;
}

.answer-correct {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    margin: 6px 0 12px;
}
.answer-correct strong {
    color: var(--success);
    font-weight: 700;
}

.answer-warn {
    text-align: center;
    color: var(--warn);
    font-size: 13px;
    margin: 8px 0 6px;
}

/* Botão Pular: pequeno, borda amarela (cor oposta ao verde/gradiente do Confirmar). */
.btn--skip {
    background: transparent;
    border: 1.5px solid var(--warn);
    color: var(--warn);
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}
.btn--skip:active:not(:disabled) { background: rgba(234, 179, 8, 0.1); }

@media (min-width: 720px) {
    .flag-display__flag.fi { width: 220px; height: 165px; }
    .flag-display { padding: 36px 20px 24px; }
}

.game-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 4px;
}
.game-stats__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
    background: var(--bg-elev);
    border: 1px solid var(--border);
}
.game-stats__pill strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}
.game-stats__pill--win   { border-color: rgba(107, 168, 107, 0.5); }
.game-stats__pill--win   strong { color: var(--success); }
.game-stats__pill--wrong { border-color: rgba(239, 68, 68, 0.5); }
.game-stats__pill--wrong strong { color: var(--danger); }
.game-stats__pill--skip  { border-color: rgba(234, 179, 8, 0.5); }
.game-stats__pill--skip  strong { color: var(--warn); }

.game-history__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 20px 0 10px;
}
.game-history {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.game-history__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.game-history__item--win    { border-color: rgba(107, 168, 107, 0.4); }
.game-history__item--wrong  { border-color: rgba(239, 68, 68, 0.4); }
.game-history__item--skip   { border-color: rgba(234, 179, 8, 0.4); }

/* Reveal "embaralhada → correta" no histórico de Palavras Embaralhadas
   (rodadas puladas e com tempo esgotado). Escuros contra o bg-elev pra ter
   contraste alto sem ficar berrante. */
.game-history__reveal-wrong { color: var(--danger); }
.game-history__reveal-right { color: var(--success); font-weight: 700; }
.game-history__reveal-arrow { color: var(--text-dim); }
.game-history__flag.fi {
    width: 40px;
    height: 30px;
    flex: none;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.game-history__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.game-history__name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.game-history__guess {
    color: var(--text-dim);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.game-history__status {
    font-size: 20px;
    flex: none;
    line-height: 1;
}
.game-history__status--win    { color: var(--success); }
.game-history__status--wrong  { color: var(--danger); }
.game-history__status--skip   { color: var(--warn); }

/* Bloco colapsável dos pulos no resumo. Segue o mesmo padrão de .history-toggle
   do Crave o Tempo mas independente (não usa o mesmo class name pra não
   herdar tratamento que não faz sentido aqui). */
.game-history__skipped {
    margin-top: 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px 12px;
}
.game-history__skipped summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 0;
    color: var(--warn);
    font-size: 13px;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.game-history__skipped summary::-webkit-details-marker { display: none; }
.game-history__skipped summary::after {
    content: '▾';
    font-size: 12px;
    color: var(--text-dim);
    transition: transform 0.15s;
}
.game-history__skipped[open] summary::after { transform: rotate(180deg); }
.game-history__skipped .game-history {
    margin: 6px 0 10px;
}

/* =========================================================================
   FORCA — SVG do boneco, palavra oculta, teclado virtual, painel de resultado.
   ========================================================================= */

/* Cena do topo: forca à esquerda, contador de erros à direita. */
.forca-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 8px 0 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.forca-svg {
    width: 140px;
    height: 175px;
    flex-shrink: 0;
}
.forca-line {
    stroke: var(--text);
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
}
.forca-body {
    stroke: var(--warn);
    stroke-width: 4;
    stroke-linecap: round;
    fill: none;
    /* Fade-in leve quando aparece (remoção do .hidden). */
    animation: forca-body-in 0.25s ease-out;
}
.forca-body--head { fill: none; }
@keyframes forca-body-in {
    from { opacity: 0; transform: scale(0.7); transform-origin: 100px 45px; }
    to   { opacity: 1; transform: scale(1); }
}
.forca-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 78px;
}
.forca-info__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.forca-info__count {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.forca-info__count strong { color: var(--warn); }

/* Barra de dica — só um botão "💡 Dica" (uso único por palavra). Fica logo
   acima da palavra. Sem estrelas: uma dica por partida, reseta em "Nova palavra". */
.forca-hint-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.forca-hint-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    min-height: 32px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}
.forca-hint-btn:active:not(:disabled) { background: var(--bg-elev); transform: scale(0.96); }
.forca-hint-btn:disabled { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) {
    .forca-hint-btn:hover:not(:disabled) {
        background: var(--bg-elev);
        border-color: var(--accent);
    }
}
/* Palavra oculta: cada letra é um chip com underline. Reveladas mostram a
   letra; ocultas ficam vazias, mas o underline continua indicando a posição. */
.palavra-hidden {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px auto 18px;
    max-width: 100%;
}
.palavra-hidden__char {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 40px;
    padding: 0 4px;
    border-bottom: 3px solid var(--text-dim);
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.palavra-hidden__char--revealed {
    border-bottom-color: var(--accent-2);
}
.palavra-hidden__char--sep {
    border-bottom: none;
    min-width: 12px;
    color: var(--text-dim);
}
/* Frase (modo beta): agrupa chars da mesma palavra pra não quebrar linha no
   meio dela; o `__space` é o único ponto legítimo de wrap. */
.palavra-hidden__word {
    display: inline-flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
}
.palavra-hidden__space {
    display: inline-block;
    width: 14px;
    height: 40px;
    flex-shrink: 0;
}
/* Derrota: palavra revelada em vermelho pra sinalizar que era a resposta certa. */
.palavra-hidden--lose .palavra-hidden__char--revealed {
    color: #ff5d5d;
    border-bottom-color: #ff5d5d;
}

/* Teclado virtual — layout QWERTY em 3 linhas (10/9/7 letras). Cada linha
   centraliza sozinha, o que produz um efeito "pirâmide" visualmente limpo
   (não é o offset exato do QWERTY físico, mas é o padrão de teclados on-screen).
   Largura da tecla escala com o viewport pra caber 10 teclas na linha 1 sem
   overflow em telas pequenas: cap em 34px, encolhe até ~22px em iPhone SE. */
.teclado {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0 auto 4px;
}
.teclado__row {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.tecla {
    width: min(34px, calc((100vw - 100px) / 10));
    height: 42px;
    padding: 0;
    background: var(--bg-elev-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}
.tecla:active:not(:disabled) { transform: scale(0.94); }
.tecla:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}
.tecla--right {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.5);
    opacity: 1;
}
.tecla--wrong {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.5);
    opacity: 1;
}
@media (hover: hover) {
    .tecla:hover:not(:disabled) {
        background: var(--bg-elev);
        border-color: var(--accent);
    }
}

/* Painel de resultado (vitória ou derrota). Aparece embaixo do teclado, com
   botões pra próxima palavra ou trocar dificuldade. */
.forca-result {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    animation: forca-result-in 0.3s ease-out;
}
@keyframes forca-result-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.forca-result__title {
    margin: 0 0 6px;
    font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 22px;
    font-weight: 900;
}
.forca-result__title--win  { color: #4ade80; }
.forca-result__title--lose { color: #ff5d5d; }
.forca-result__word {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}
.forca-result__word strong {
    color: var(--accent-2);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Tablet+: forca maior, palavra maior, teclado maior. */
@media (min-width: 720px) {
    .forca-svg { width: 180px; height: 225px; }
    .forca-info { min-width: 90px; padding: 14px 18px; }
    .forca-info__count { font-size: 26px; }
    .palavra-hidden__char { min-width: 34px; height: 48px; font-size: 30px; }
    .teclado { gap: 8px; }
    .teclado__row { gap: 8px; }
    .tecla { width: 40px; height: 48px; font-size: 18px; }
}

/* ===== "Você também pode gostar" =====
   Bloco compacto que aparece dentro da tela de resultado de cada jogo,
   sugerindo 2 outros jogos aleatórios. Reusa a linguagem visual do .card
   do hub em escala menor (ícone/thumb menores, título compacto). */
/* Share card — botões pra baixar/compartilhar imagem do resultado. Ficam
   dentro da área de resultado do jogo, abaixo do CTA principal. Estilo
   secundário (não competir com "Jogar de novo"). */
.share-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 14px 0 4px;
    flex-wrap: wrap;
}
/* flex 1 1 220px iguala as larguras dentro da linha (o botão mais longo dita
   o tamanho e o outro cresce pra bater). Wrap pra 1 coluna quando não caber. */
.btn--share {
    flex: 1 1 220px;
    max-width: 280px;
    background: var(--bg-elev-2);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, transform 0.15s;
}
.btn--share:hover { background: var(--border); }
.btn--share:active { transform: scale(0.97); }
.btn--share:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Fora do .panel — bloco standalone abaixo do resultado. Sem fundo próprio;
   respira do padding do .game-shell (12px lateral, 640px max). */
.related-games {
    margin-top: 28px;
}
.related-games__title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.related-games__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
/* Cada recomendação: solta, sem fundo/sombra/borda de card. Só a thumbnail
   (com cantos arredondados própria) + título embaixo. O toque continua com
   feedback tátil pelo transform. */
.related-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.related-card:active { transform: scale(0.97); }
.related-card__art {
    aspect-ratio: 16 / 9;
    background: var(--card-theme, linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev)));
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.related-card__art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
    z-index: 3;
    pointer-events: none;
}
.related-card__icon {
    font-size: clamp(28px, 8vw, 42px);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    position: relative;
    z-index: 1;
}
.related-card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
}
.related-card__title {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 720px) {
    .related-games__title { font-size: 14px; }
    .related-card__title { font-size: 14px; margin-top: 10px; }
    .related-card__icon { font-size: clamp(36px, 5vw, 52px); }
}

