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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #03101c 0%, #0b2c5e 50%, #03101c 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

#snow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
}

h1 {
    font-family: 'Pacifico', cursive;
    color: #ffeb3b;
    text-shadow: 0 0 20px #ff1744, 0 0 10px #ffeb3b, 0 0 30px #ff5722;
    font-size: 5.4em;
    text-align: center;
    letter-spacing: 2px;
    margin-top: 280px;
}

/* ===== SPLIT FLIP COUNTER STYLES ===== */
.split-flip-wrapper {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.split-flip-label {
    font-size: 1.3em;
    color: #ffeb3b;
    text-shadow: 0 0 10px #ff1744;
    font-weight: bold;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    position: absolute;
}

.split-flip-counter {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 20px 30px;
    border-radius: 12px;
}

.split-flip-digit {
    width: 170px;
    height: 270px;
    position: relative;
    perspective: 1000px;
    background: linear-gradient(to bottom, #e0e0e0 50%, #f5f5f5 50%);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 
        inset -1px 0 3px rgba(0, 0, 0, 0.3),
        inset 1px 0 3px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.split-flip-digit span {
    position: absolute;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.split-flip-digit .top {
    top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.split-flip-digit .bottom {
    top: 50%;
    background: linear-gradient(to bottom, #f0f0f0, #e8e8e8);
    transform-origin: top center;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.split-flip-digit.flip-animation .bottom {
    animation: splitFlip 0.5s ease-in-out forwards;
}

@keyframes splitFlip {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* ===== FIM SPLIT FLIP COUNTER ===== */

.logo {
    display: block;
    margin: 0 auto 20px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    position: absolute;
    top: -300px;
    z-index: -1;
}

.logo:hover {
    transform: scale(1.05);
}

.twinkle {
    animation: twinkle 1.2s infinite alternate;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.7; filter: brightness(1.3); }
}

.qr {
    text-align: center;
    margin: 25px 0;
    font-size: 1.1em;
}

.qr img {
    border: 3px solid #ff5722;
    border-radius: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
}

/* ===== AUTOCOMPLETE STYLES ===== */
.location-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

#localizacao {
    padding: 12px;
    border: 1px solid rgba(106, 107, 109, 0.4);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
    width: 100%;
}

#localizacao:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
    background: rgba(255,255,255,0.08);
}

#localizacao.validated {
    border-color: #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 50, 0.95);
    border: 1px solid #ff5722;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px;
    cursor: pointer;
    color: #fff;
    border-bottom: 1px solid rgba(255, 87, 34, 0.2);
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(255, 87, 34, 0.2);
    color: #ffeb3b;
}

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

/* ===== MAPA STYLES ===== */
.mapa-container {
    margin: 40px 0;
    padding: 20px;
    background: rgba(30, 30, 50, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

.mapa-container h3 {
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

#mapa {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
}

.marker-popup {
    color: #333;
    font-size: 0.9em;
}

.marker-popup strong {
    color: #ff5722;
}

/* ===== FIM MAPA ===== */

.form-comentario {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 100, 0, 0.08);
    border-radius: 12px;
}

input, textarea {
    padding: 12px;
    border: 1px solid rgba(106, 107, 109, 0.4);
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
    background: rgba(255,255,255,0.08);
}

button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff1744, #ad1010);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
}

button:active {
    transform: translateY(0);
}

#comments {
    margin: 30px 0;
}

.comments-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 34, 34, 0.3);
}

.comments-header h3 {
    color: #ffffff;
}

.comment {
    background: rgba(255, 87, 34, 0.08);
    border-left: 4px solid #af0202;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-header strong {
    color: #ffeb3b;
}

.location {
    color: #ff5722;
    font-size: 0.9em;
}

.comment-text {
    margin: 10px 0;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.comment-date {
    font-size: 0.8em;
    color: rgba(255,255,255,0.5);
}

.no-comments {
    text-align: center;
    color: rgba(255,255,255,0.6);
    padding: 30px;
}

@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .logo {
        width: 260px;
    }

    #mapa {
        height: 300px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ===== Ajustes Responsivos Consolidados ===== */

/* Contador responsivo */
.split-flip-counter {
  max-width: 100%;
  flex-wrap: nowrap; /* evita quebra */
}
.split-flip-digit {
  width: clamp(48px, 12vw, 170px);
  height: clamp(80px, 19vw, 270px);
}
.split-flip-digit span {
  font-size: clamp(2em, 6vw, 8em);
}
.split-flip-label {
  position: static;
  display: block;
  width: 100%;
  margin: 6px 0 10px;
  text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
    margin-top: 20px; /* reduz espaço acima */
    margin-bottom: 4px; /* quase colado ao logo */
    padding: 0 10px;
  }
  .logo {
    position: relative !important;
    top: auto !important;
    z-index: 3;
    display: block;
    margin-top: 0; /* elimina espaço extra */
    margin-bottom: 8px;
    max-width: min(70vw, 260px);
    height: auto;
  }
  .split-flip-counter {
    gap: 2px;
    padding: 6px;
  }
  .split-flip-digit {
    width: clamp(32px, 9vw, 120px);
    height: clamp(64px, 16vw, 180px);
  }
  .split-flip-digit span {
    font-size: clamp(1.8em, 5.5vw, 5.2em);
  }
  #mapa { height: 260px; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  h1 {
    font-size: 3.4em;
    margin-top: 120px;
  }
  .logo {
    position: relative !important;
    top: auto !important;
    z-index: 3;
    display: block;
    margin: 20px auto 12px;
    max-width: min(45vw, 280px);
    height: auto;
  }
  .split-flip-counter {
    gap: 6px;
    padding: 12px 16px;
  }
  .split-flip-digit {
    width: clamp(70px, 9vw, 140px);
    height: clamp(110px, 15vw, 220px);
  }
  .split-flip-digit span {
    font-size: clamp(3.2em, 5vw, 6em);
  }
}
