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

:root {
    --amarelo-brasil: #FFDF00;
    --verde-brasil: #009C3B;
    --azul-brasil: #002776;
    --vermelho-aviso: #D32F2F;
    --fundo-boteco: #1a1a1a;
    --branco: #ffffff;
    --cinza-texto: #444;
}

* {
    box-sizing: border-box; /* Garante que padding não aumente o tamanho total */
}

body {
    background-color: var(--amarelo-brasil);
    /* Padrão de fundo sutil e moderno */
    background-image: radial-gradient(circle at 50% 50%, #FFEB3B 2px, transparent 2.5px);
    background-size: 24px 24px;
    
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px; /* Padding menor no body para mobile */
    color: var(--fundo-boteco);
}

/* --- O CARD PRINCIPAL --- */
.container {
    background: var(--branco);
    border-radius: 24px;
    /* Sombra mais suave e moderna (Glass shadow) */
    box-shadow: 
        0 20px 50px -10px rgba(0,0,0,0.2),
        0 0 0 6px var(--fundo-boteco); /* Borda estilo Sticker */
    
    max-width: 480px; /* Aumentei de 400 pra 480 pra respirar */
    width: 100%;
    padding: 30px 25px; /* Reduzi o padding vertical */
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaçamento inteligente entre elementos */
}

/* Badge no topo */
.brand-badge {
    background: #f0f0f0;
    color: #666;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    align-self: center;
    letter-spacing: 1px;
    margin-bottom: -5px;
}

/* Título Otimizado */
h1.title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 800;
    font-size: 2.4rem; /* Levemente menor para não quebrar tanto */
    margin: 0;
    text-transform: uppercase;
    color: var(--fundo-boteco);
    line-height: 0.95;
    letter-spacing: -1px;
}

p.subtitle {
    font-size: 0.95rem;
    color: var(--cinza-texto);
    margin: 0;
    line-height: 1.4;
    padding: 0 10px;
}

/* --- MOEDA OTIMIZADA (MENOR E MAIS FLUIDA) --- */
.coin-container {
    background-color: transparent;
    width: 140px;  /* Reduzi de 180px para 140px (Ganha muito espaço) */
    height: 140px;
    perspective: 1000px;
    margin: 5px auto 0 auto; /* Margens reduzidas */
    cursor: pointer;
}

.coin-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 2, 0.5, 1);
    transform-style: preserve-3d;
}

.coin-container:hover .coin-inner {
    transform: rotateY(180deg);
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 3px solid #DAA520;
    background: #fff; /* Evita fundo transparente */
}

.coin-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.coin-back {
    transform: rotateY(180deg);
}

/* Dica da moeda */
.coin-hint {
    font-size: 0.7rem;
    color: #999;
    font-weight: 600;
    margin-top: 5px;
}

/* --- PREÇO COMPACTO --- */
.price-card {
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 16px;
    padding: 15px; /* Reduzi padding */
    margin: 5px 0;
}

.price-card h2 {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}

.price-value {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 3.5rem; /* Grande destaque */
    color: var(--fundo-boteco);
    margin: 0;
    line-height: 1;
    font-weight: 700;
}

.price-info {
    font-size: 0.75rem;
    color: var(--vermelho-aviso);
    margin: 5px 0 0 0;
    font-weight: 700;
}

/* --- BOTÃO CALL TO ACTION (CTA) --- */
.btn-primary {
    background: var(--verde-brasil);
    color: white;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 16px;
    width: 100%;
    border: none;
    border-radius: 12px; /* Borda menos arredondada fica mais moderna */
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0px #007029; /* Efeito botão físico 3D */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-top: 5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #007029;
    background: #00b345;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 0 0px #007029;
}

/* --- TICKER E FOOTER --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--fundo-boteco);
    color: var(--amarelo-brasil);
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Chakra Petch', monospace;
    text-transform: uppercase;
    border-radius: 6px;
}

.footer-text {
    font-size: 0.7rem;
    color: #bbb;
    line-height: 1.3;
    margin: 0;
}

/* --- RESPONSIVIDADE MOBILE --- */
@media (max-width: 400px) {
    .container {
        padding: 20px 15px;
        width: 100%;
    }
    h1.title {
        font-size: 2rem;
    }
    .coin-container {
        width: 120px;
        height: 120px;
    }
    .price-value {
        font-size: 3rem;
    }
}