/* ============================================
   Verbete — Estetica Cuphead (1930s Cartoon)
   Paleta fosca, vintage, rubber hose animations
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&family=Noto+Emoji:wght@300..700&display=swap');

/* Fonte Noto Emoji para todos os emojis do site */
.noto-emoji {
    font-family: 'Noto Emoji', sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
}

/* ============================================
   VARIÁVEIS (Paleta Cuphead)
   ============================================ */
:root {
    /* Cores principais */
    --creme: #f2e6d0;
    --creme-claro: #faf3e6;
    --creme-escuro: #e0cdad;
    --marrom: #5c3d2e;
    --marrom-escuro: #2d1b0e;
    --vermelho-vintage: #b33a3a;
    --vermelho-escuro: #8b1a1a;
    --dourado: #c9963a;
    --dourado-claro: #e6c06e;
    --azul-vintage: #3a7a8a;
    --azul-escuro: #264f5a;
    --verde-oliva: #5a7a28;
    --laranja-fosco: #c97632;

    /* Compatibilidade com JS existente */
    --cinza-escuro: var(--marrom-escuro);
    --branco: var(--creme-claro);
    --amarelo-queimado: var(--dourado);
    --azul-profundo: var(--azul-vintage);
    --vermelho-vivo: var(--vermelho-vintage);

    /* Sombras "desenhadas à mão" */
    --sombra: 4px 4px 0px var(--marrom-escuro);
    --sombra-hover: 6px 6px 0px var(--marrom-escuro);
    --sombra-press: 1px 1px 0px var(--marrom-escuro);
    --sombra-suave: 3px 3px 0px rgba(45, 27, 14, 0.3);

    /* Bordas grossas estilo cartoon */
    --borda: 3px solid var(--marrom-escuro);
    --borda-grossa: 4px solid var(--marrom-escuro);

    /* Radius */
    --radius: 14px;
    --radius-grande: 22px;
    --radius-pill: 50px;

    /* Easing "rubber hose" */
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #dfd0b5;
    color: var(--marrom-escuro);
    min-height: 100vh;
    overflow-x: hidden;
    /* Warm gradient background — tom mais escuro e profundo */
    background-image:
        radial-gradient(ellipse at 15% 80%, rgba(180, 130, 40, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(160, 45, 45, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(45, 30, 15, 0.1) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Grain overlay — efeito de filme antigo */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ============================================
   ILUMINACAO AMBIENTE REALISTA
   ============================================ */

/* Luz dinamica que segue o cursor (background controlado via JS) */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99997;
    opacity: 0;
    transition: opacity 0.8s ease;
    mix-blend-mode: soft-light;
}

.ambient-light.active {
    opacity: 1;
}

/* Luz estatica — fonte de luz quente no canto superior esquerdo */
.ambient-light-static {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99996;
    background:
        radial-gradient(
            ellipse 80% 70% at 10% 5%,
            rgba(255, 230, 160, 0.15) 0%,
            rgba(255, 220, 140, 0.07) 40%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 60% 50% at 90% 90%,
            rgba(90, 60, 40, 0.08) 0%,
            transparent 60%
        );
    mix-blend-mode: soft-light;
}

a {
    color: var(--azul-vintage);
    text-decoration: none;
}

::selection {
    background: var(--dourado);
    color: var(--marrom-escuro);
}

/* Scrollbar vintage */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--creme-escuro);
}

::-webkit-scrollbar-thumb {
    background: var(--marrom);
    border-radius: 5px;
    border: 2px solid var(--creme-escuro);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--marrom-escuro);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1;
}

.main-content {
    padding: 1rem 0 3rem;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: var(--borda);
    margin-bottom: 2rem;
    gap: 1rem;
}

.logo h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--marrom-escuro);
    cursor: pointer;
    transition: transform 0.3s var(--ease-bounce);
    text-shadow: 2px 2px 0px var(--dourado);
    user-select: none;
}

.logo h1:hover {
    transform: scale(1.05) rotate(-2deg);
}

.logo h1:active {
    transform: scale(0.95);
}

.logo-icon {
    height: 48px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
    filter: drop-shadow(2px 2px 0px var(--dourado));
    transition: transform 0.3s var(--ease-bounce);
}

.logo-icon-loading {
    height: 72px;
    filter: drop-shadow(2px 3px 0px var(--dourado));
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* ============================================
   BOTÕES
   ============================================ */

/* Botão primário — estilo vintage game */
.btn-primary {
    background: var(--vermelho-vintage);
    color: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius);
    padding: 0.75rem 1.8rem;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--sombra);
    transition: all 0.15s ease;
    position: relative;
    top: 0;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}

.btn-primary:hover {
    top: -3px;
    box-shadow: var(--sombra-hover);
    background: var(--vermelho-escuro);
}

.btn-primary:active {
    top: 2px;
    box-shadow: var(--sombra-press);
}

.btn-primary.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Botão secundário */
.btn-secondary {
    background: var(--creme-escuro);
    color: var(--marrom-escuro);
    border: var(--borda);
    border-radius: var(--radius);
    padding: 0.6rem 1.4rem;
    font-family: 'Fredoka One', cursive;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--sombra-suave);
    transition: all 0.15s ease;
    position: relative;
    top: 0;
}

.btn-secondary:hover {
    top: -2px;
    box-shadow: var(--sombra);
    background: var(--creme);
}

.btn-secondary:active {
    top: 2px;
    box-shadow: var(--sombra-press);
}

/* Botão de perigo */
.btn-danger {
    background: var(--vermelho-escuro);
    color: var(--creme-claro);
    border: var(--borda);
    border-radius: var(--radius);
    padding: 0.6rem 1.4rem;
    font-family: 'Fredoka One', cursive;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--sombra-suave);
    transition: all 0.15s ease;
    position: relative;
    top: 0;
}

.btn-danger:hover {
    top: -2px;
    box-shadow: var(--sombra);
}

.btn-danger:active {
    top: 2px;
    box-shadow: var(--sombra-press);
}

/* Botão de navegação */
.btn-nav {
    background: var(--creme);
    color: var(--marrom-escuro);
    border: var(--borda);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: var(--sombra-suave);
    transition: all 0.2s var(--ease-elastic);
    position: relative;
    top: 0;
    white-space: nowrap;
}

.btn-nav:hover {
    top: -2px;
    box-shadow: var(--sombra);
}

.btn-nav.active {
    background: var(--marrom-escuro);
    color: var(--creme-claro);
    box-shadow: var(--sombra-suave);
}

.btn-nav-logout {
    background: transparent;
    color: var(--vermelho-vintage);
    border-color: var(--vermelho-vintage);
    opacity: 0.8;
}

.btn-nav-logout:hover {
    background: var(--vermelho-vintage);
    color: var(--creme-claro);
    opacity: 1;
}

/* Botão Admin */
.btn-admin {
    background: var(--dourado);
    color: var(--marrom-escuro);
    border: var(--borda);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--sombra-suave);
    transition: all 0.2s var(--ease-elastic);
    position: relative;
    top: 0;
}

.btn-admin:hover {
    top: -2px;
    box-shadow: var(--sombra);
    background: var(--dourado-claro);
}

/* Botão link */
.btn-link {
    background: none;
    border: none;
    color: var(--azul-vintage);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.btn-link:hover {
    color: var(--azul-escuro);
    text-decoration-thickness: 3px;
}

.btn-link-small {
    background: none;
    border: none;
    color: var(--marrom);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.btn-link-small:hover {
    opacity: 1;
    color: var(--vermelho-vintage);
}

/* Botão close */
.btn-close {
    background: var(--creme-escuro);
    border: var(--borda);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s var(--ease-bounce);
}

.btn-close:hover {
    background: var(--vermelho-vintage);
    color: var(--creme-claro);
    transform: rotate(90deg);
}

/* Botões pequenos */
.btn-small {
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    border: 2px solid var(--marrom-escuro);
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    top: 0;
    box-shadow: 2px 2px 0px var(--marrom-escuro);
}

.btn-small:hover {
    top: -2px;
    box-shadow: 3px 3px 0px var(--marrom-escuro);
}

.btn-small:active {
    top: 1px;
    box-shadow: 1px 1px 0px var(--marrom-escuro);
}

/* ============================================
   FORM INPUTS
   ============================================ */
.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--marrom-escuro);
}

input[type="text"],
input[type="email"],
input[type="password"],
.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--creme-claro);
    border: var(--borda);
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--marrom-escuro);
    box-shadow: inset 2px 2px 4px rgba(45, 27, 14, 0.08);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--azul-vintage);
    box-shadow: inset 0 0 0 1px var(--azul-vintage), 3px 3px 0px var(--azul-vintage);
}

input:disabled {
    background: var(--creme-escuro);
    opacity: 0.7;
    cursor: not-allowed;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--marrom);
    font-style: italic;
    margin-top: 0.3rem;
    opacity: 0.7;
}

/* ============================================
   AUTH SECTION (Login / Registro)
   ============================================ */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    animation: fadeInUp 0.6s var(--ease-elastic);
}

.auth-container {
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 8px 8px 0px var(--marrom-escuro);
    position: relative;
    /* Borda decorativa dupla vintage */
    outline: 2px solid var(--creme-escuro);
    outline-offset: 6px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--marrom-escuro);
    margin-bottom: 0.4rem;
    text-shadow: 1px 1px 0px var(--dourado);
}

.auth-header p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--marrom);
    opacity: 0.8;
}

.auth-form {
    margin-bottom: 1rem;
}

.auth-switch {
    text-align: center;
    padding-top: 1rem;
    border-top: 2px dashed var(--creme-escuro);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-switch p {
    font-weight: 600;
    color: var(--marrom);
}

.auth-forgot {
    text-align: center;
    margin-top: 0.8rem;
}

/* ============================================
   GOOGLE LOGIN — Botão, Divisor e Badge
   ============================================ */

/* Divisor "ou continue com" */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.2rem 0 1rem;
}

.auth-divider-line {
    flex: 1;
    height: 2px;
    background: var(--creme-escuro);
    border-radius: 2px;
}

.auth-divider-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--marrom);
    opacity: 0.6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botão Google — estilo vintage compatível com o Verbete */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--marrom-escuro);
    cursor: pointer;
    box-shadow: var(--sombra);
    transition: all 0.15s ease;
    position: relative;
    top: 0;
    margin-bottom: 0.5rem;
}

.btn-google:hover {
    top: -3px;
    box-shadow: var(--sombra-hover);
    background: white;
}

.btn-google:active {
    top: 2px;
    box-shadow: var(--sombra-press);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    top: 0;
    box-shadow: var(--sombra-suave);
}

.google-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Badge de conta Google no perfil */
.google-account-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.85rem;
    background: rgba(66, 133, 244, 0.1);
    border: 2px solid rgba(66, 133, 244, 0.3);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a56b0;
}

.google-badge-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Wrapper do botao Google (relativo para o overlay funcionar) */
.google-btn-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Overlay invisivel onde o Google SDK renderiza o botao real */
/* Cobre 100% do nosso botao e captura os cliques */
.google-btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.001; /* Quase invisivel mas clicavel */
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius);
}

/* O iframe do Google dentro do overlay precisa ocupar 100% */
.google-btn-overlay iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}


/* ============================================
   CONFIRMAÇÃO DE EMAIL
   ============================================ */
.confirm-notice {
    text-align: center;
    padding: 2rem 1rem;
}

.confirm-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: rubberBounce 2s ease infinite;
}

.confirmed-icon {
    animation: rubberBounce 1.5s ease infinite !important;
}

.confirm-notice p {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--marrom-escuro);
    margin-bottom: 0.5rem;
}

.confirm-tip {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: var(--marrom) !important;
    font-style: italic;
    opacity: 0.7;
}

/* Campo de codigo de verificacao */
.code-input {
    text-align: center;
    font-size: 1.8rem !important;
    font-weight: 800;
    letter-spacing: 0.5rem;
    font-family: 'Fredoka One', monospace;
    padding: 0.8rem 1rem !important;
}

.code-input::placeholder {
    font-size: 1.4rem;
    letter-spacing: 0.3rem;
    opacity: 0.3;
}

/* Dicas de senha */
.password-hints {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--marrom);
    opacity: 0.8;
}

.password-hints .hint-item {
    display: inline-block;
    margin-right: 0.6rem;
    margin-bottom: 0.2rem;
}

.password-hints .hint-ok {
    color: #2a9d3e;
}

.password-hints .hint-fail {
    color: var(--vermelho);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard {
    animation: fadeInUp 0.5s var(--ease-elastic);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px dashed var(--creme-escuro);
}

.dashboard-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    color: var(--marrom-escuro);
    text-shadow: 1px 1px 0px var(--dourado);
}

.dashboard-section {
    /* Animacao controlada por JS via classes section-enter / section-exit */
    min-height: 0;
}

/* Transicao de entrada entre abas */
.section-enter {
    animation: sectionSlideIn 0.35s var(--ease-elastic) both;
}

/* Transicao de saida entre abas */
.section-exit {
    animation: sectionSlideOut 0.2s ease both;
    pointer-events: none;
}

@keyframes sectionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sectionSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
}

/* ============================================
   PERFIL — Sistema de Tabs
   ============================================ */
.profile-card {
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    padding: 0;
    box-shadow:
        var(--sombra),
        -2px -2px 8px rgba(255, 240, 210, 0.5),
        6px 8px 20px rgba(45, 27, 14, 0.12);
    position: relative;
    overflow: hidden;
}

/* Tabs de navegacao */
.profile-tabs {
    display: flex;
    position: relative;
    border-bottom: var(--borda);
    background: var(--creme);
}

.profile-tab {
    flex: 1;
    padding: 0.9rem 1.2rem;
    background: none;
    border: none;
    font-family: 'Fredoka One', cursive;
    font-size: 0.95rem;
    color: var(--marrom);
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 1;
    text-align: center;
    opacity: 0.65;
}

.profile-tab:hover {
    color: var(--marrom-escuro);
    background: rgba(45, 27, 14, 0.04);
    opacity: 0.85;
}

.profile-tab.active {
    color: var(--marrom-escuro);
    opacity: 1;
}

/* Indicador animado da tab ativa */
.profile-tab-indicator {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50%;
    height: 4px;
    background: var(--dourado);
    border-radius: 4px 4px 0 0;
    transition: transform 0.35s var(--ease-elastic);
    z-index: 2;
}

/* Conteudo das tabs */
.profile-tab-content {
    padding: 2rem;
    display: none;
    animation: profileTabIn 0.4s var(--ease-elastic) both;
}

.profile-tab-content.active {
    display: block;
}

@keyframes profileTabIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Secoes internas da tab Conta */
.account-email-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed var(--creme-escuro);
}

.account-section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.05rem;
    color: var(--marrom-escuro);
    margin-bottom: 1.2rem;
}

.account-password-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed var(--creme-escuro);
}

/* Zona de perigo */
.account-danger-zone {
    padding-top: 0.5rem;
}

.danger-title {
    color: var(--vermelho-vintage) !important;
}

.danger-description {
    font-size: 0.85rem;
    color: var(--marrom);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.profile-form {
    max-width: 500px;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ============================================
   CAMPO NEON - NOME DO PATO
   ============================================ */
.duck-name-group {
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.duck-name-label {
    display: block;
    font-family: 'Fredoka One', 'Nunito', cursive;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #fff;
    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.9),
        0 0 15px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(200, 180, 255, 0.4);
    margin-bottom: 0.5rem;
}

.duck-name-input-wrapper {
    position: relative;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(200, 180, 255, 0.4),
        rgba(255, 255, 255, 0.3),
        rgba(180, 160, 255, 0.4));
    box-shadow:
        0 0 8px rgba(200, 180, 255, 0.3),
        0 0 20px rgba(180, 160, 255, 0.15),
        inset 0 0 8px rgba(200, 180, 255, 0.1);
    animation: duckInputGlow 3s ease-in-out infinite;
}

@keyframes duckInputGlow {
    0%, 100% {
        box-shadow:
            0 0 8px rgba(200, 180, 255, 0.3),
            0 0 20px rgba(180, 160, 255, 0.15),
            inset 0 0 8px rgba(200, 180, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 12px rgba(200, 180, 255, 0.5),
            0 0 30px rgba(180, 160, 255, 0.25),
            inset 0 0 12px rgba(200, 180, 255, 0.15);
    }
}

.duck-name-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(30, 20, 50, 0.85);
    font-family: 'Fredoka One', 'Nunito', cursive;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow:
        0 0 7px rgba(255, 255, 255, 0.9),
        0 0 15px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(200, 180, 255, 0.4),
        0 0 50px rgba(180, 160, 255, 0.2);
    outline: none;
    box-sizing: border-box;
}

.duck-name-input::placeholder {
    color: rgba(200, 180, 255, 0.35);
    text-shadow: none;
    font-weight: 400;
    letter-spacing: 1px;
}

.duck-name-input:focus {
    text-shadow:
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(200, 180, 255, 0.6),
        0 0 60px rgba(180, 160, 255, 0.3);
}

.duck-name-input:focus + .duck-name-input-wrapper,
.duck-name-input-wrapper:focus-within {
    box-shadow:
        0 0 15px rgba(200, 180, 255, 0.6),
        0 0 35px rgba(180, 160, 255, 0.3),
        inset 0 0 15px rgba(200, 180, 255, 0.2);
}

.duck-name-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: rgba(200, 180, 255, 0.5);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ============================================
   AMIGOS
   ============================================ */
.friends-container {
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    padding: 2rem;
    box-shadow:
        var(--sombra),
        -2px -2px 8px rgba(255, 240, 210, 0.5),
        6px 8px 20px rgba(45, 27, 14, 0.12);
    position: relative;
}

.friends-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.friends-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--marrom-escuro);
}

.friends-content h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--marrom-escuro);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--creme-escuro);
}

.pending-requests-section,
.friends-list-section {
    margin-bottom: 2rem;
}

/* Items de amigos e pedidos */
.friend-item,
.request-item,
.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--creme);
    border: var(--borda);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    transition: all 0.2s var(--ease-elastic);
}

.friend-item:hover,
.request-item:hover,
.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}

.friend-info,
.request-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.friend-name-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.friend-duck-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--azul-vintage);
    background: rgba(58, 122, 138, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    border: 1.5px solid rgba(58, 122, 138, 0.25);
}

.friend-info strong,
.request-info strong {
    font-size: 1rem;
    color: var(--marrom-escuro);
}

.friend-info span,
.request-info span {
    font-size: 0.8rem;
    color: var(--marrom);
    opacity: 0.8;
}

.friend-actions,
.request-actions,
.user-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.no-friends,
.no-requests {
    text-align: center;
    padding: 2rem;
    color: var(--marrom);
    font-weight: 600;
    font-style: italic;
    opacity: 0.7;
}

/* Status badges */
.status-pending {
    color: var(--laranja-fosco);
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(201, 118, 50, 0.15);
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    border: 2px solid var(--laranja-fosco);
}

.status-friends {
    color: var(--verde-oliva);
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(90, 122, 40, 0.15);
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    border: 2px solid var(--verde-oliva);
}

/* Busca de amigos */
.search-input-group {
    display: flex;
    gap: 0.5rem;
}

.search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--marrom);
    font-weight: 600;
    font-style: italic;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 27, 14, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 10px 10px 0px var(--marrom-escuro);
    animation: popIn 0.4s var(--ease-bounce);
    outline: 2px solid var(--creme-escuro);
    outline-offset: 5px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px dashed var(--creme-escuro);
}

.modal-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--marrom-escuro);
}

.search-section {
    padding-top: 0.5rem;
}

/* ============================================
   PAINEL ADMIN
   ============================================ */
.admin-section {
    animation: fadeInUp 0.4s var(--ease-elastic);
}

.admin-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--creme-claro);
    padding: 1.2rem;
    border: var(--borda);
    border-radius: var(--radius-grande);
    box-shadow: var(--sombra-suave);
}

.admin-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: var(--borda);
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: var(--creme);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.admin-search input:focus {
    outline: none;
    border-color: var(--azul-vintage);
    box-shadow: 3px 3px 0px var(--azul-vintage);
}

/* Filtros */
.admin-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-filter-btn {
    padding: 0.45rem 0.9rem;
    border: var(--borda);
    border-radius: var(--radius-pill);
    background: var(--creme);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s var(--ease-elastic);
    color: var(--marrom-escuro);
    position: relative;
    top: 0;
    box-shadow: 2px 2px 0px var(--marrom-escuro);
}

.admin-filter-btn:hover {
    top: -2px;
    box-shadow: 3px 3px 0px var(--marrom-escuro);
}

.admin-filter-btn.active {
    background: var(--marrom-escuro);
    color: var(--creme-claro);
}

/* Stats */
.admin-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(58, 122, 138, 0.12);
    color: var(--azul-escuro);
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8rem;
    border: 2px solid var(--azul-vintage);
}

/* User items no admin */
.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--creme-claro);
    border: var(--borda);
    border-radius: var(--radius);
    margin-bottom: 0.7rem;
    transition: all 0.2s var(--ease-elastic);
}

.user-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}

.user-item-self {
    border-color: var(--azul-vintage);
    border-width: 3px;
    background: rgba(58, 122, 138, 0.06);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-info span {
    font-size: 0.82rem;
    color: var(--marrom);
    opacity: 0.8;
}

/* Badges */
.admin-badge {
    background: var(--dourado);
    color: var(--marrom-escuro);
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.75rem;
    border: 2px solid var(--marrom-escuro);
    display: inline-block;
}

.unconfirmed-badge {
    background: rgba(201, 118, 50, 0.15);
    color: var(--laranja-fosco);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.7rem;
    border: 2px solid var(--laranja-fosco);
}

.self-badge {
    color: var(--azul-vintage);
    font-weight: 800;
    font-size: 0.75rem;
    font-style: italic;
}

/* Botões Admin */
.btn-edit {
    background: var(--dourado) !important;
    color: var(--marrom-escuro) !important;
}

.btn-delete {
    background: var(--vermelho-vintage) !important;
    color: var(--creme-claro) !important;
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--creme-escuro);
    border-radius: 28px;
    border: 2px solid var(--marrom-escuro);
    transition: 0.3s var(--ease-elastic);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--creme-claro);
    border-radius: 50%;
    transition: 0.3s var(--ease-elastic);
    border: 2px solid var(--marrom-escuro);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--verde-oliva);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch input:disabled+.toggle-slider {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--creme);
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(201, 150, 58, 0.2) 0%, transparent 60%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}

.loading-spinner {
    text-align: center;
    color: var(--marrom-escuro);
}

.loading-spinner h2 {
    font-size: 4rem;
    animation: rubberBounce 1.2s ease infinite;
}

.loading-spinner p {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin-top: 1rem;
    text-shadow: 2px 2px 0px var(--dourado);
    animation: fadeInUp 0.8s var(--ease-elastic);
}

.loading-text {
    text-align: center;
    padding: 2rem;
    color: var(--marrom);
    font-weight: 700;
    font-style: italic;
    opacity: 0.7;
}

/* ============================================
   ANIMAÇÕES "RUBBER HOSE" (Cuphead Style)
   ============================================ */

/* Fade in de baixo para cima */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

/* Fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Pop in (para modais) */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-3deg);
    }

    60% {
        transform: scale(1.05) rotate(1deg);
    }

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

/* Bouncy rubber hose */
@keyframes rubberBounce {

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

    20% {
        transform: scale(1.15, 0.88) rotate(-2deg);
    }

    40% {
        transform: scale(0.88, 1.12) rotate(2deg);
    }

    60% {
        transform: scale(1.06, 0.95) rotate(-1deg);
    }

    80% {
        transform: scale(0.97, 1.03) rotate(0deg);
    }
}

/* Wobble (tremida) */
@keyframes wobble {

    0%,
    100% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-3deg);
    }

    30% {
        transform: rotate(2.5deg);
    }

    45% {
        transform: rotate(-1.5deg);
    }

    60% {
        transform: rotate(1deg);
    }
}

/* Bounce clássico */
@keyframes bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* Pulse */
@keyframes pulse {

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

    50% {
        transform: scale(1.08);
    }
}

/* Slide in da direita */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

/* Slide out para direita */
@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .logo-icon {
        height: 40px;
    }

    .logo-icon-loading {
        height: 60px;
    }

    .auth-container {
        padding: 1.8rem 1.3rem;
        outline: none;
        box-shadow: 5px 5px 0px var(--marrom-escuro);
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .friends-header {
        flex-direction: column;
        align-items: stretch;
    }

    .friend-item,
    .request-item,
    .search-result-item,
    .user-item {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .friend-actions,
    .request-actions,
    .user-actions {
        justify-content: center;
    }

    .search-input-group {
        flex-direction: column;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-tab-content {
        padding: 1.5rem;
    }

    .profile-tab {
        font-size: 0.85rem;
        padding: 0.75rem 0.8rem;
    }

    .admin-filters {
        justify-content: center;
    }

    .admin-stats {
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        box-shadow: 6px 6px 0px var(--marrom-escuro);
        outline: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.8rem 1rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo-icon {
        height: 32px;
    }

    .logo-icon-loading {
        height: 48px;
    }

    .auth-header h2 {
        font-size: 1.4rem;
    }

    .btn-primary {
        width: 100%;
    }
}

/* ============================================
   MODAL DE CONFIRMACAO ESTILIZADO
   ============================================ */
.confirm-modal .confirm-modal-content {
    max-width: 420px;
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    animation: confirmPopIn 0.5s var(--ease-bounce);
    position: relative;
    overflow: visible;
}

@keyframes confirmPopIn {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
    70% {
        transform: scale(0.97) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes confirmShakeIn {
    0% { transform: translateX(0); }
    15% { transform: translateX(-8px) rotate(-2deg); }
    30% { transform: translateX(7px) rotate(2deg); }
    45% { transform: translateX(-5px) rotate(-1deg); }
    60% { transform: translateX(4px) rotate(1deg); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(5deg);
        opacity: 1;
    }
    70% {
        transform: scale(0.9) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.confirm-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconBounce 0.6s var(--ease-bounce) 0.1s both,
               iconFloat 3s ease-in-out 0.8s infinite;
    line-height: 1;
}

.confirm-modal-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: var(--marrom-escuro);
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 0px var(--creme-escuro);
}

.confirm-modal-message {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--marrom);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.confirm-modal-warning {
    background: rgba(179, 58, 58, 0.08);
    border: 2px solid var(--vermelho-vintage);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vermelho-vintage);
    line-height: 1.4;
    animation: confirmShakeIn 0.6s ease 0.3s both;
}

.confirm-modal-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.confirm-btn-cancel {
    flex: 1;
    max-width: 160px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
}

.confirm-btn-confirm {
    flex: 1;
    max-width: 160px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.confirm-btn-confirm:hover {
    transform: scale(1.05);
}

.confirm-btn-confirm:active {
    transform: scale(0.95);
}

/* Variante: abandono de partida */
.confirm-modal-content.confirm-abandon {
    outline-color: var(--vermelho-vintage);
    border-color: var(--vermelho-vintage);
}

.confirm-modal-content.confirm-abandon .confirm-modal-icon {
    filter: drop-shadow(0 4px 8px rgba(179, 58, 58, 0.3));
}

/* Variante: deletar conta */
.confirm-modal-content.confirm-delete-account {
    outline-color: var(--vermelho-escuro);
    border-color: var(--vermelho-escuro);
}

.confirm-modal-content.confirm-delete-account .confirm-modal-icon {
    filter: drop-shadow(0 4px 8px rgba(139, 0, 0, 0.3));
}

/* Variante: admin deletar usuario */
.confirm-modal-content.confirm-admin-delete {
    outline-color: var(--laranja-fosco);
    border-color: var(--laranja-fosco);
}

/* Animacao de saida do modal */
.confirm-modal.closing .confirm-modal-content {
    animation: confirmPopOut 0.3s ease forwards;
}

.confirm-modal.closing {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes confirmPopOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Responsivo */
@media (max-width: 480px) {
    .confirm-modal .confirm-modal-content {
        padding: 2rem 1.3rem 1.5rem;
        max-width: 95%;
    }

    .confirm-modal-icon {
        font-size: 3rem;
    }

    .confirm-modal-title {
        font-size: 1.2rem;
    }

    .confirm-modal-actions {
        flex-direction: column;
    }

    .confirm-btn-cancel,
    .confirm-btn-confirm {
        max-width: 100%;
    }
}

/* ============================================
   MODO: CARTAS WIKIPEDIA
   ============================================ */

/* Lobby */
.game-lobby {
    animation: fadeInUp 0.4s var(--ease-elastic);
}

.game-lobby-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-lobby-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    color: var(--marrom-escuro);
    text-shadow: 1px 1px 0px var(--dourado);
    margin-bottom: 0.3rem;
}

.game-subtitle {
    font-size: 0.95rem;
    color: var(--marrom);
    font-weight: 600;
    opacity: 0.8;
}

/* Cards de jogos disponiveis (multi-game) */
.game-modes-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.game-mode-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    cursor: pointer;
    transition: all 0.25s var(--ease-elastic);
    position: relative;
    overflow: hidden;
}

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

.game-mode-active {
    border-color: var(--dourado);
    background: rgba(201, 150, 58, 0.08);
}

.game-mode-soon {
    opacity: 0.55;
    cursor: default;
    filter: grayscale(0.3);
}

.game-mode-soon:hover {
    transform: none;
    box-shadow: none;
}

.game-mode-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.game-mode-info h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    color: var(--marrom-escuro);
    margin-bottom: 0.2rem;
}

.game-mode-info p {
    font-size: 0.8rem;
    color: var(--marrom);
    opacity: 0.8;
    line-height: 1.3;
}

.game-mode-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--dourado);
    color: var(--marrom-escuro);
}

.badge-soon {
    background: var(--creme-escuro);
    color: var(--marrom);
}

.game-invites-section,
.game-active-section {
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--sombra);
}

.game-invites-section h4,
.game-active-section h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--marrom-escuro);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--creme-escuro);
}

.game-new-section {
    text-align: center;
    margin-top: 1.5rem;
}

.game-new-section .btn-primary {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
}

/* Items de partida */
.game-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    background: var(--creme);
    border: var(--borda);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    transition: all 0.2s var(--ease-elastic);
}

.game-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}

.game-item-myturn {
    border-color: var(--dourado);
    border-width: 3px;
    background: rgba(201, 150, 58, 0.08);
}

.game-invite-item {
    border-color: var(--vermelho-vintage);
    background: rgba(179, 58, 58, 0.06);
}

/* Tag de tipo de jogo nos items */
.game-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: var(--creme-escuro);
    color: var(--marrom);
    white-space: nowrap;
}

/* Seletor de tipo de jogo no modal Novo Desafio */
.new-game-type-list {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.new-game-type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.8rem;
    background: var(--creme-claro);
    border: 3px solid var(--creme-escuro);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.8rem;
    transition: all 0.2s var(--ease-elastic);
}

.new-game-type-btn:hover {
    border-color: var(--dourado);
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}

.new-game-type-btn.new-game-type-selected {
    border-color: var(--dourado);
    background: rgba(201, 150, 58, 0.1);
    box-shadow: 0 0 0 2px rgba(201, 150, 58, 0.3);
}

.new-game-type-name {
    font-family: 'Fredoka One', cursive;
    font-size: 0.75rem;
    color: var(--marrom-escuro);
    letter-spacing: 0.3px;
}

.game-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.game-item-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.game-item-header strong {
    font-size: 1rem;
    color: var(--marrom-escuro);
}

.game-item-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--marrom);
}

.game-item-date {
    font-size: 0.8rem;
    color: var(--marrom);
    opacity: 0.7;
}

.game-item-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.game-status-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    border: 2px solid;
}

.game-status-badge.status-waiting {
    background: rgba(201, 118, 50, 0.15);
    color: var(--laranja-fosco);
    border-color: var(--laranja-fosco);
}

.game-status-badge.status-prep {
    background: rgba(58, 122, 138, 0.12);
    color: var(--azul-vintage);
    border-color: var(--azul-vintage);
}

.game-status-badge.status-active {
    background: rgba(201, 150, 58, 0.15);
    color: var(--dourado);
    border-color: var(--dourado);
}

.game-status-badge.status-done {
    background: rgba(90, 122, 40, 0.12);
    color: var(--verde-oliva);
    border-color: var(--verde-oliva);
}

.game-status-badge.status-win {
    background: rgba(42, 157, 62, 0.15);
    color: #2a9d3e;
    border-color: #2a9d3e;
}

.game-status-badge.status-loss {
    background: rgba(180, 40, 40, 0.15);
    color: #b42828;
    border-color: #b42828;
}

.game-status-badge.status-draw {
    background: rgba(120, 120, 120, 0.12);
    color: #888;
    border-color: #999;
}

.game-turn-indicator {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--vermelho-vintage);
    animation: pulse 1.5s ease infinite;
}

.game-item-expired {
    opacity: 0.6;
    border-style: dashed;
}

.game-expired-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--vermelho-vintage);
    background: rgba(179, 58, 58, 0.1);
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    border: 2px solid var(--vermelho-vintage);
}

.no-games {
    text-align: center;
    padding: 2rem;
    color: var(--marrom);
    font-weight: 600;
    font-style: italic;
    opacity: 0.7;
}

/* Novo jogo - modal de amigos */
.new-game-hint {
    font-weight: 700;
    color: var(--marrom-escuro);
    margin-bottom: 1rem;
}

.friends-challenge-list {
    max-height: 300px;
    overflow-y: auto;
}

.friend-challenge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    background: var(--creme);
    border: var(--borda);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.friend-challenge-item strong {
    color: var(--marrom-escuro);
}

/* Fases do jogo */
.game-phase {
    animation: fadeInUp 0.4s var(--ease-elastic);
}

.game-phase-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px dashed var(--creme-escuro);
}

.game-phase-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: var(--marrom-escuro);
    text-shadow: 1px 1px 0px var(--dourado);
}

.game-hint {
    font-size: 0.95rem;
    color: var(--marrom);
    font-weight: 600;
    margin-bottom: 0.8rem;
    opacity: 0.85;
}

.game-draft-intro {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    box-shadow: var(--sombra);
}

.game-draft-intro p {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--marrom-escuro);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    margin-top: 1rem;
}

/* Aguardando oponente */
.game-waiting {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--creme-claro);
    border: var(--borda);
    border-radius: var(--radius-grande);
    box-shadow: var(--sombra-suave);
}

.waiting-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    animation: rubberBounce 2s ease infinite;
}

.game-waiting p {
    font-weight: 700;
    color: var(--marrom-escuro);
    margin-bottom: 0.3rem;
}

.waiting-text {
    font-size: 0.95rem;
    color: var(--marrom);
    opacity: 0.8;
}

/* Swap info */
.swap-info {
    background: var(--creme-claro);
    padding: 1rem 1.2rem;
    border: var(--borda);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--sombra-suave);
}

.swap-info p {
    margin-bottom: 0.3rem;
}

.swap-actions {
    text-align: center;
    margin-top: 1.5rem;
}

/* Mao de cartas */
.cards-hand {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

/* Carta do jogo */
.game-card {
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: all 0.25s var(--ease-elastic);
    cursor: default;
}

.game-card:hover {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: var(--sombra-hover);
}

.card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-thumbnail {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: var(--borda);
    background: var(--creme-escuro);
}

.card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: var(--marrom);
    opacity: 0.3;
}

.card-content {
    padding: 0.8rem 1rem;
    flex: 1;
}

.card-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    color: var(--marrom-escuro);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.card-extract {
    font-size: 0.82rem;
    color: var(--marrom);
    line-height: 1.4;
    opacity: 0.85;
}

.card-footer {
    padding: 0.6rem 1rem;
    border-top: 2px dashed var(--creme-escuro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-wiki-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--azul-vintage);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.card-wiki-link:hover {
    color: var(--azul-escuro);
}

.card-swapped-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--azul-vintage);
    background: rgba(58, 122, 138, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    border: 2px solid var(--azul-vintage);
}

/* Placar da batalha */
.battle-scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    box-shadow: var(--sombra);
}

.score-player {
    text-align: center;
}

.score-name {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--marrom);
    margin-bottom: 0.3rem;
}

.score-value {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--marrom-escuro);
    text-shadow: 2px 2px 0px var(--dourado);
}

.score-vs {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: var(--vermelho-vintage);
    text-shadow: 1px 1px 0px var(--marrom-escuro);
}

/* Fase de batalha */
.battle-choose {
    background: var(--creme-claro);
    border: var(--borda);
    border-radius: var(--radius-grande);
    padding: 1.5rem;
    box-shadow: var(--sombra-suave);
}

/* Votacao */
.voting-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.voting-card-wrapper {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    text-align: center;
}

.voting-label {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 0.95rem;
    color: var(--marrom-escuro);
    margin-bottom: 0.5rem;
}

.voting-vs {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--vermelho-vintage);
    text-shadow: 1px 1px 0px var(--marrom-escuro);
    align-self: center;
    padding-top: 3rem;
}

.vote-hint {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--azul-vintage);
    margin-top: 1rem;
    font-style: italic;
}

/* Resultado */
.game-result {
    text-align: center;
    padding: 2rem;
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    box-shadow: var(--sombra);
    margin-bottom: 2rem;
}

.result-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.result-win .result-title {
    color: var(--verde-oliva);
    text-shadow: 2px 2px 0px var(--dourado);
}

.result-loss .result-title {
    color: var(--vermelho-vintage);
    text-shadow: 2px 2px 0px var(--marrom-escuro);
}

.result-draw .result-title {
    color: var(--azul-vintage);
    text-shadow: 2px 2px 0px var(--dourado);
}

.result-score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.result-score-me,
.result-score-op {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: var(--marrom-escuro);
    text-shadow: 2px 2px 0px var(--dourado);
}

.result-score-x {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--vermelho-vintage);
}

.game-result p {
    font-weight: 700;
    color: var(--marrom);
    font-size: 1.05rem;
}

.result-actions {
    text-align: center;
    margin-top: 1.5rem;
}

/* Historico de rodadas */
.rounds-history {
    background: var(--creme-claro);
    border: var(--borda);
    border-radius: var(--radius-grande);
    padding: 1.5rem;
    box-shadow: var(--sombra-suave);
}

.rounds-history h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--marrom-escuro);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--creme-escuro);
}

.round-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.8rem;
    background: var(--creme);
    border: var(--borda);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.round-number {
    font-family: 'Fredoka One', cursive;
    font-size: 0.9rem;
    color: var(--marrom-escuro);
    white-space: nowrap;
    min-width: 100px;
}

.round-cards {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
}

.round-card-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--marrom-escuro);
    background: var(--creme-claro);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 2px solid var(--creme-escuro);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

.round-vs {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--vermelho-vintage);
}

/* ============================================
   JOGO - RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .game-item {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .game-item-actions {
        justify-content: center;
    }

    .cards-hand {
        grid-template-columns: 1fr;
    }

    .voting-cards {
        flex-direction: column;
        align-items: center;
    }

    .voting-card-wrapper {
        max-width: 100%;
    }

    .voting-vs {
        padding-top: 0;
        font-size: 1.4rem;
    }

    .battle-scoreboard {
        gap: 1rem;
    }

    .score-value {
        font-size: 2rem;
    }

    .result-score-me,
    .result-score-op {
        font-size: 2.2rem;
    }

    .round-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .friend-challenge-item {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
        text-align: center;
    }
}

/* ============================================
   MENTIROSO DE DADOS
   ============================================ */

/* Layout geral */
.dice-game-view {
    animation: fadeInUp 0.4s var(--ease-elastic);
}

.dice-game-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dice-game-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--marrom-escuro);
    text-shadow: 1px 1px 0px var(--dourado);
    margin-bottom: 0.2rem;
}

.dice-header-vs {
    font-size: 1rem;
    color: var(--marrom);
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 0.4rem;
}

.dice-header-scores {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--marrom);
    font-weight: 600;
}

.dice-header-divider {
    opacity: 0.4;
}

/* Tabuleiro */
.dice-board {
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    padding: 1.5rem;
    box-shadow: var(--sombra);
}

/* Areas de jogador */
.dice-opponent-area,
.dice-player-area {
    padding: 1rem 0;
}

.dice-player-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--marrom-escuro);
}

.dice-player-label strong {
    font-family: 'Fredoka One', cursive;
}

/* Linha de dados */
.dice-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Dado individual */
.dice-die {
    width: 52px;
    height: 52px;
    background: #fff;
    border: 3px solid var(--marrom-escuro);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 6px;
    box-shadow: 2px 3px 0px var(--marrom-escuro),
                inset 0 1px 2px rgba(255,255,255,0.8);
    position: relative;
    transition: transform 0.2s var(--ease-elastic), box-shadow 0.2s;
}

.dice-die:hover {
    transform: translateY(-2px) rotate(2deg);
    box-shadow: 2px 5px 0px var(--marrom-escuro),
                inset 0 1px 2px rgba(255,255,255,0.8);
}

.dice-die.dice-small {
    width: 38px;
    height: 38px;
    padding: 4px;
    border-width: 2px;
}

.dice-die.dice-highlight {
    border-color: var(--dourado);
    background: rgba(201, 150, 58, 0.12);
    box-shadow: 2px 3px 0px var(--dourado),
                0 0 12px rgba(201, 150, 58, 0.3);
    animation: diceHighlightPulse 1s ease-in-out infinite;
}

@keyframes diceHighlightPulse {
    0%, 100% { box-shadow: 2px 3px 0px var(--dourado), 0 0 8px rgba(201, 150, 58, 0.2); }
    50% { box-shadow: 2px 3px 0px var(--dourado), 0 0 18px rgba(201, 150, 58, 0.5); }
}

.dice-die.dice-lost {
    opacity: 0.3;
    filter: grayscale(1);
}

/* Dado oculto */
.dice-die.dice-hidden {
    background: var(--marrom-escuro);
    border-color: var(--marrom);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dice-question {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: var(--creme);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Pontos do dado */
.dice-dot {
    width: 9px;
    height: 9px;
    background: var(--marrom-escuro);
    border-radius: 50%;
    display: block;
}

.dice-small .dice-dot {
    width: 6px;
    height: 6px;
}

/* Posicionamento dos pontos no grid 3x3 */
.dot-top-left     { grid-column: 1; grid-row: 1; align-self: start; justify-self: start; }
.dot-top-right    { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; }
.dot-mid-left     { grid-column: 1; grid-row: 2; align-self: center; justify-self: start; }
.dot-center       { grid-column: 2; grid-row: 2; align-self: center; justify-self: center; }
.dot-mid-right    { grid-column: 3; grid-row: 2; align-self: center; justify-self: end; }
.dot-bottom-left  { grid-column: 1; grid-row: 3; align-self: end; justify-self: start; }
.dot-bottom-right { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; }

/* Separador */
.dice-divider {
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--creme-escuro), var(--creme-escuro) 8px, transparent 8px, transparent 16px);
    margin: 1rem 0;
}

/* Aposta central */
.dice-bet-display {
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(201, 150, 58, 0.08);
    border: 2px dashed var(--dourado);
    border-radius: var(--radius);
}

.dice-current-bet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.dice-bet-label {
    font-size: 0.8rem;
    color: var(--marrom);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dice-bet-value {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--marrom-escuro);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dice-face-icon {
    font-size: 1.6rem;
}

.dice-bet-by {
    font-size: 0.75rem;
    color: var(--marrom);
    opacity: 0.7;
}

.dice-no-bet {
    font-size: 0.95rem;
    color: var(--marrom);
    opacity: 0.7;
}

/* Controles de aposta (stepper) */
.dice-bet-controls {
    background: var(--creme);
    border: var(--borda-grossa);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-top: 1rem;
    text-align: center;
}

.dice-bet-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--dourado);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 0px var(--marrom-escuro);
}

.dice-bet-inputs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.dice-bet-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.dice-bet-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--marrom);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dice-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 3px solid var(--marrom-escuro);
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}

.dice-stepper-btn {
    width: 36px;
    height: 40px;
    border: none;
    background: var(--creme-escuro);
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: var(--marrom-escuro);
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dice-stepper-btn:hover {
    background: var(--dourado);
    color: #fff;
}

.dice-stepper-btn:active {
    transform: scale(0.95);
}

.dice-stepper-value {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--marrom-escuro);
    background: transparent;
    border-left: 2px solid var(--creme-escuro);
    border-right: 2px solid var(--creme-escuro);
}

.dice-bet-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dice-bet-btn {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
}

/* Botao MENTIRA - dramatico */
.dice-liar-btn {
    padding: 0.7rem 1.8rem;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: 3px solid #922b21;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 0px #7b241c,
                0 6px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.15s var(--ease-elastic);
    position: relative;
    overflow: hidden;
}

.dice-liar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.4s;
}

.dice-liar-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 0px #7b241c,
                0 8px 25px rgba(231, 76, 60, 0.6);
}

.dice-liar-btn:hover::before {
    left: 100%;
}

.dice-liar-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0px #7b241c,
                0 3px 8px rgba(231, 76, 60, 0.3);
}

/* Prompt de rolagem */
.dice-roll-prompt {
    text-align: center;
    padding: 1.5rem;
}

.dice-roll-prompt p {
    margin-bottom: 1rem;
    color: var(--marrom);
    font-weight: 600;
}

.dice-roll-btn {
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    animation: dicePulse 2s ease-in-out infinite;
}

@keyframes dicePulse {
    0%, 100% { box-shadow: var(--sombra); }
    50% { box-shadow: 0 4px 20px rgba(201, 150, 58, 0.5); }
}

/* Status de espera */
.dice-status-text,
.dice-waiting-turn {
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    color: var(--marrom);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Contador de dados (bolinhas) */
.dice-counter {
    display: flex;
    gap: 4px;
}

.dice-counter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--marrom-escuro);
    transition: all 0.3s;
}

.dice-counter-dot.active {
    background: var(--dourado);
    border-color: var(--marrom-escuro);
    box-shadow: 0 0 4px rgba(201, 150, 58, 0.4);
}

.dice-counter-dot.lost {
    background: transparent;
    border-color: var(--creme-escuro);
    opacity: 0.4;
}

/* Revelacao */
.dice-reveal-section {
    text-align: center;
    padding: 1rem 0;
}

.dice-reveal-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    color: var(--marrom-escuro);
    margin-bottom: 0.8rem;
}

.dice-reveal-bet {
    font-size: 1.1rem;
    color: var(--marrom);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.dice-reveal-area {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.dice-reveal-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dice-reveal-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--marrom);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dice-reveal-result {
    padding: 1.2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.dice-reveal-result.result-true {
    background: rgba(46, 204, 113, 0.12);
    border: 2px solid rgba(46, 204, 113, 0.4);
}

.dice-reveal-result.result-false {
    background: rgba(231, 76, 60, 0.12);
    border: 2px solid rgba(231, 76, 60, 0.4);
}

.dice-result-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.1rem;
    color: var(--marrom-escuro);
    margin-bottom: 0.3rem;
}

.dice-result-loser {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--marrom);
}

.dice-next-btn {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}

/* Tela de resultado final */
.dice-result-section {
    text-align: center;
    padding: 2rem 0;
}

.dice-result-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.dice-result-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.dice-result-title.result-win {
    color: var(--dourado);
    text-shadow: 2px 2px 0px var(--marrom-escuro);
}

.dice-result-title.result-lose {
    color: #c0392b;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.2);
}

.dice-result-sub {
    font-size: 1rem;
    color: var(--marrom);
    margin-bottom: 1.5rem;
}

.dice-final-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dice-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--marrom-escuro);
}

.dice-score-vs {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: var(--marrom);
    opacity: 0.5;
}

.dice-final-reveal {
    background: var(--creme);
    border: var(--borda);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--marrom);
}

.dice-final-reveal h4 {
    font-family: 'Fredoka One', cursive;
    margin-bottom: 0.5rem;
    color: var(--marrom-escuro);
}

/* Botao voltar */
.dice-back-section {
    text-align: center;
    margin-top: 1.5rem;
}

.dice-back-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
}

/* Responsivo */
@media (max-width: 480px) {
    .dice-die {
        width: 44px;
        height: 44px;
        padding: 5px;
    }

    .dice-dot {
        width: 7px;
        height: 7px;
    }

    .dice-bet-inputs {
        flex-direction: column;
        gap: 0.8rem;
    }

    .dice-bet-actions {
        flex-direction: column;
    }

    .dice-liar-btn,
    .dice-bet-btn {
        width: 100%;
    }

    .dice-reveal-title {
        font-size: 1.1rem;
    }

    .dice-result-title {
        font-size: 1.6rem;
    }
}

/* ============================================
   TUTORIAIS
   ============================================ */

/* Botao "?" nos cards de modo de jogo */
.game-mode-help-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--marrom);
    background: transparent;
    color: var(--marrom);
    font-family: 'Fredoka One', cursive;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.game-mode-help-btn:hover {
    opacity: 1;
    background: var(--marrom);
    color: var(--creme);
    transform: scale(1.15);
}

.game-mode-card {
    position: relative;
}

/* Overlay do modal */
.tutorial-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 25, 15, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

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

/* Modal do tutorial */
.tutorial-modal {
    background: var(--creme);
    border: var(--borda-grossa);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(40, 25, 15, 0.4);
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tutorial-close-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.2);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
    line-height: 1;
}

.tutorial-close-btn:hover {
    background: rgba(180, 40, 40, 0.8);
    transform: scale(1.1);
}

/* Conteudo do tutorial */
.tutorial-header {
    background: linear-gradient(135deg, var(--marrom-escuro), var(--marrom));
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    border-radius: var(--radius) var(--radius) 0 0;
}

.tutorial-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.tutorial-header h2 {
    margin: 0;
    color: var(--dourado);
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.tutorial-tagline {
    margin: 0.5rem 0 0;
    color: var(--creme);
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.4;
    font-style: italic;
}

.tutorial-section {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tutorial-step {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.8rem;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    border: 1.5px solid rgba(92, 61, 46, 0.1);
    transition: transform 0.15s;
}

.tutorial-step:hover {
    transform: translateX(4px);
}

.tutorial-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--dourado);
    color: var(--marrom-escuro);
    border-radius: 50%;
    font-family: 'Fredoka One', cursive;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid var(--marrom-escuro);
}

.tutorial-step-body h4 {
    margin: 0 0 0.3rem;
    color: var(--marrom-escuro);
    font-family: 'Fredoka One', cursive;
    font-size: 0.95rem;
}

.tutorial-step-body p {
    margin: 0;
    color: var(--marrom);
    font-size: 0.85rem;
    line-height: 1.45;
}

.tutorial-tip {
    margin: 0 1.5rem 1.5rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(201, 150, 58, 0.15), rgba(201, 150, 58, 0.05));
    border-left: 4px solid var(--dourado);
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    color: var(--marrom);
    line-height: 1.45;
}

.tutorial-tip strong {
    color: var(--dourado);
}

/* Tutorial responsivo */
@media (max-width: 600px) {
    .tutorial-modal {
        max-height: 90vh;
        border-radius: 12px;
    }

    .tutorial-header {
        padding: 1.5rem 1rem 1rem;
    }

    .tutorial-icon {
        font-size: 2.5rem;
    }

    .tutorial-header h2 {
        font-size: 1.3rem;
    }

    .tutorial-section {
        padding: 1rem;
    }

    .tutorial-step {
        padding: 0.6rem;
    }

    .tutorial-tip {
        margin: 0 1rem 1rem;
    }
}

/* ============================================
   BANNER DE COOKIES (LGPD)
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 700px;
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    box-shadow: var(--sombra);
    z-index: 999990;
    padding: 20px 24px;
    animation: cookieBannerEntrada 0.5s var(--ease-bounce);
}

@keyframes cookieBannerEntrada {
    from { transform: translateX(-50%) translateY(30px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner-duck {
    font-size: 2.4rem;
    flex-shrink: 0;
    animation: cookieDuckBob 2s ease-in-out infinite;
}

@keyframes cookieDuckBob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}

.cookie-banner-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.05rem;
    color: var(--marrom-escuro);
    margin-bottom: 4px;
}

.cookie-banner-desc {
    font-size: 0.8rem;
    color: var(--marrom);
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    flex-shrink: 0;
    min-width: 150px;
}

.cookie-btn-accept {
    padding: 10px 18px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-btn-details {
    font-size: 0.75rem;
    text-align: center;
    color: var(--marrom);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    font-family: 'Nunito', sans-serif;
    padding: 2px 0;
}

.cookie-btn-details:hover {
    color: var(--marrom-escuro);
}

/* Overlay de detalhes dos cookies */
.cookie-details-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 27, 14, 0.65);
    z-index: 999991;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-details-modal {
    background: var(--creme-claro);
    border: var(--borda-grossa);
    border-radius: var(--radius-grande);
    box-shadow: var(--sombra);
    max-width: 480px;
    width: 100%;
    padding: 24px;
}

.cookie-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cookie-details-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: var(--marrom-escuro);
}

.cookie-detail-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 2px dashed var(--creme-escuro);
}

.cookie-detail-item:last-of-type {
    border-bottom: none;
}

.cookie-detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1.3;
}

.cookie-detail-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--marrom-escuro);
    margin-bottom: 3px;
}

.cookie-detail-item p {
    font-size: 0.78rem;
    color: var(--marrom);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 540px) {
    .cookie-banner {
        bottom: 12px;
        padding: 14px 16px;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
    }
}
