:root {
    --peach: #d5a18a;
    --peach-dark: #c88f73;
    --green: #8da06a;
    --pink: #d78686;
    --pink-dark: #c96b6b;
    --cream: #fff7f2;
    --ink: #6b4a3a;
}
* {
    box-sizing: border-box;
}
body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    background: radial-gradient(circle at 10% 10%, #fffaf6, var(--cream));
    color: var(--ink);
    margin: 0;
    padding: 0;
}
img {
    max-width: 100%;
    height: auto;
}
header {
    background: linear-gradient(180deg, #fcf1ea, #f6e3d8);
    padding: 26px 12px 14px;
    text-align: center;
    border-bottom: 1px solid #ead0c1;
}
header h1 {
    margin: 6px 0 0;
    letter-spacing: 1.2px;
    color: #b57a5f;
    font-size: 2.4rem;
    font-weight: 600;
}
main {
    width: 92%;
    max-width: 860px;
    margin: 18px auto 30px;
}
main.center {
    text-align: center;
}
.card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(122, 86, 65, 0.14);
    border: 1px solid #f1d9cc;
}
.hero {
    display: grid;
    gap: 12px;
    justify-items: center;
    margin-bottom: 16px;
}
.hero img {
    width: min(100%, 440px);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(134, 94, 73, 0.18);
}
.section-header {
    margin: 6px 0 8px;
}
.summary {
    display: flex;
    justify-content: space-around;
    margin: 18px 0 18px;
    gap: 16px;
    flex-wrap: wrap;
}
.special-message {
    background: #fff;
    border: 1px dashed #e2c6b8;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 10px 0 12px;
    font-size: 1.05rem;
    color: #7b5847;
}
.box {
    background: #fff;
    border-radius: 14px;
    padding: 14px 22px;
    box-shadow: 0 6px 16px rgba(122, 86, 65, 0.12);
    flex: 1;
    min-width: 200px;
    text-align: center;
    border: 1px solid #f1d9cc;
}
.chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.3px;
}
.chip.green {
    background: var(--green);
}
.chip.pink {
    background: var(--pink);
}
.big-number {
    font-size: 2.2em;
    margin: 10px 0 2px;
}
a.button.secondary {
    background-color: #c76e6e;
}
a.button:hover,
button.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(122, 86, 65, 0.2);
}
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
a.button,
button.button {
    background-color: #c98f74;
    color: #fff;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
ul {
    list-style: none;
    padding: 0;
}
.vote-item {
    background: #fff;
    padding: 14px 16px;
    margin: 8px 0;
    box-shadow: 0 8px 18px rgba(122, 86, 65, 0.08);
    border-radius: 12px;
    border: 1px solid #f1d9cc;
}
.vote-message {
    margin: 5px 0 0;
    font-style: italic;
}
.error {
    color: #b84a4a;
    font-weight: bold;
}
.form-card input,
.form-card textarea {
    width: 100%;
    padding: 8px;
    margin: 6px 0 2px;
}
textarea {
    resize: vertical;
}
.form-row {
    margin-bottom: 14px;
}
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.choice-grid input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.choice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #f1d9cc;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(122, 86, 65, 0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.choice-emoji {
    font-size: 1.5rem;
}
.choice-label {
    font-size: 1.05rem;
}
#guess-menino:checked + .choice-card,
#guess-menina:checked + .choice-card {
    border-color: #c98f74;
    box-shadow: 0 10px 22px rgba(122, 86, 65, 0.18);
    transform: translateY(-1px);
}
@media (max-width: 640px) {
    .choice-grid {
        grid-template-columns: 1fr;
    }
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    a.button,
    button.button {
        width: 100%;
        text-align: center;
    }
}
footer {
    text-align: center;
    padding: 10px;
    background-color: #f1e7e0;
    color: #8a6c5f;
    font-size: 0.9em;
}
.votes-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 12px 0 18px;
}
.votes-column {
    border-right: 1px solid #ead0c1;
    padding-right: 18px;
}
.votes-column:last-child {
    border-right: none;
    padding-right: 0;
    padding-left: 18px;
}
.votes-title-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}
.votes-header {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    color: #1783d6;
}
.votes-header.right {
    justify-self: end;
    text-align: right;
    color: #d22b9f;
}
.votes-count {
    font-size: 2.2rem;
    font-weight: 700;
}
.votes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.vote-mini {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #f1d9cc;
    box-shadow: 0 6px 16px rgba(122, 86, 65, 0.08);
    min-height: 74px;
}
.vote-mini .vote-name {
    font-weight: 700;
    font-size: 0.95rem;
}
.vote-mini .vote-date {
    font-size: 0.8rem;
    color: #8a6c5f;
}
.vote-mini .vote-message {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #6b4a3a;
}
.vote-mini .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
    margin-top: 6px;
}
.vote-mini .badge.menino {
    background: #1783d6;
}
.vote-mini .badge.menina {
    background: #d22b9f;
}
@media (max-width: 960px) {
    .votes-columns {
        grid-template-columns: 1fr;
    }
    .votes-column {
        border-right: none;
        padding-right: 0;
        padding-left: 0;
    }
    .votes-title-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .votes-header.right {
        justify-self: start;
        text-align: left;
    }
    .votes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .votes-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1024px) {
    main {
        width: 94%;
    }
    header h1 {
        font-size: 2.1rem;
    }
    .hero img {
        width: min(100%, 420px);
    }
    .about-hero {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    header {
        padding: 20px 12px 12px;
    }
    header h1 {
        font-size: 1.9rem;
    }
    .summary {
        gap: 12px;
    }
    .box {
        min-width: 160px;
    }
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }
    a.button,
    button.button {
        width: 100%;
        text-align: center;
    }
    .choice-grid {
        grid-template-columns: 1fr;
    }
    .votes-title-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .votes-header.right {
        justify-self: start;
        text-align: left;
    }
}
@media (max-width: 480px) {
    main {
        width: 92%;
    }
    header h1 {
        font-size: 1.6rem;
    }
    .hero img {
        width: 100%;
    }
    .card {
        padding: 14px;
    }
    .big-number {
        font-size: 1.8em;
    }
    .vote-item {
        padding: 12px;
    }
    .votes-count {
        font-size: 1.8rem;
    }
}
.about-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
}
.about-hero h2 {
    margin-top: 0;
    font-size: 2rem;
}
.about-hero-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(122, 86, 65, 0.14);
    object-fit: cover;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.about-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}
.about-card h3 {
    margin: 6px 0 4px;
}
.instagram {
    color: #b75d8c;
    text-decoration: none;
    font-weight: 600;
}
.about-story h2 {
    margin-top: 0;
}
@media (max-width: 900px) {
    .about-hero {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}
