@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    min-height: 100vh;
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #f8d9c8, #f8efe7, #d9e9f6);
    color: #24425f;
}

.page { padding: 25px 12px; display: flex; justify-content: center; }

.card {
    width: min(820px, 100%);
    position: relative;
    overflow: hidden;
    padding: 32px;
    border-radius: 28px;
    background: #fff7ef;
    border: 2px dashed #dec3ae;
    box-shadow: 0 20px 50px rgba(80, 61, 50, 0.16);
}

.card::before, .card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(206, 227, 246, 0.75);
    z-index: 0;
}
.card::before { width: 190px; height: 190px; right: -55px; top: 210px; }
.card::after { width: 160px; height: 160px; left: -50px; bottom: -50px; }

.hero, .info-grid, .numbers-area, .details, footer { position: relative; z-index: 2; }

.balloon {
    position: absolute;
    width: 145px;
    left: 18px;
    top: 20px;
    z-index: 1;
}
.bear {
    position: absolute;
    width: 185px;
    right: 28px;
    top: 170px;
    z-index: 1;
}

.hero { text-align: center; max-width: 550px; margin: 0 auto 20px; }
.small-title { letter-spacing: 9px; color: #987767; font-size: 1.45rem; font-weight: 700; }
h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 7.4rem);
    line-height: 0.95;
    color: #3c7bb6;
    text-shadow: 1px 2px 0 #d0a88d;
}
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: #caa188; margin: 12px 0; }
.divider::before, .divider::after { content: ""; width: 120px; height: 2px; background: #d2b09d; }
.message { max-width: 490px; margin: auto; line-height: 1.75; font-size: 1rem; color: #4a4a4a; }
.message strong { color: #3c7bb6; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 28px auto;
    border-top: 1px solid #dcc2ae;
    border-bottom: 1px solid #dcc2ae;
}
.info-grid article { text-align: center; padding: 20px 16px; border-right: 1px solid #dcc2ae; }
.info-grid article:last-child { border-right: none; }
.icon { width: 48px; height: 48px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; background: #f1dfd4; font-size: 1.45rem; }
.info-grid h2 { text-transform: uppercase; font-size: 0.93rem; color: #1f5f98; }
.info-grid strong { display: block; color: #1f5f98; font-size: 1.8rem; line-height: 1.2; }
.info-grid p { font-size: 0.82rem; color: #544a45; }

.section-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.08rem;
    letter-spacing: 1px;
    color: #1f5f98;
    background: #f4e4d8;
    border-radius: 18px;
    padding: 10px;
    margin-bottom: 16px;
}
.numbers {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
}
.number-btn {
    border: none;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #d7e5f4;
    color: #1f4d7a;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.07), 0 4px 8px rgba(52, 88, 120, 0.15);
    transition: 0.25s;
}
.number-btn:hover { transform: translateY(-3px); background: #bcd5ee; }
.number-btn.reserved {
    background: #d95b5b;
    color: #fff;
    cursor: not-allowed;
    transform: none;
}

.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 24px 0 16px;
}
.details div {
    background: rgba(255,255,255,0.55);
    border: 1px solid #dbc1af;
    border-radius: 16px;
    padding: 15px;
}
.details h3 { color: #1f5f98; margin-bottom: 6px; font-size: 0.95rem; }
.details p { font-size: 0.83rem; color: #3f4c5c; }

footer { text-align: center; color: #6e554c; }
footer strong { display: block; font-family: 'Great Vibes', cursive; font-size: 2rem; color: #9c715d; }
.export-btn {
    margin-top: 12px;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    background: #3c7bb6;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 36, 0.55);
    backdrop-filter: blur(7px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-box {
    width: min(430px, 100%);
    background: #fff7ef;
    padding: 28px;
    border-radius: 24px;
    border: 2px solid #e3c5b1;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.close {
    position: absolute;
    top: 12px;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: #9c715d;
}
.modal-box h2 { color: #1f5f98; margin-bottom: 18px; }
form { display: flex; flex-direction: column; gap: 10px; }
label { font-weight: 700; color: #6e554c; }
input, select, textarea {
    width: 100%;
    border: 1px solid #d2b09d;
    border-radius: 12px;
    padding: 12px;
    font-family: 'Poppins', Arial, sans-serif;
    outline: none;
    background: #fff;
}
textarea { min-height: 95px; resize: vertical; }
.submit-btn {
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    padding: 13px;
    background: #d95b5b;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 720px) {
    .card { padding: 22px; }
    .balloon, .bear { opacity: .25; }
    .info-grid, .details { grid-template-columns: 1fr; }
    .info-grid article { border-right: none; border-bottom: 1px solid #dcc2ae; }
    .info-grid article:last-child { border-bottom: none; }
    .numbers { grid-template-columns: repeat(5, 1fr); }
}

/* =========================
CONTROLE DOS PAIS
========================= */

.parent-control-btn{
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 20;

    border: none;
    border-radius: 30px;

    padding: 12px 20px;

    background: #3c7bb6;
    color: white;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 6px 14px rgba(0,0,0,.15);

    transition: .25s;
}

.parent-control-btn:hover{
    transform: translateY(-2px);
    background: #2d669b;
}

.parent-box{
    max-width: 620px;
}

.parent-text{
    margin-bottom: 18px;
    color: #6e554c;
    font-weight: 500;
}

.parent-numbers{
    grid-template-columns: repeat(5, 1fr);
}