* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Nunito', sans-serif;
    color: #f3e9dc;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 240, 200, .25) 0 60px, transparent 61px),
        radial-gradient(ellipse at top, #2a0f3d 0%, #120617 60%, #050207 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

a { color: #ff8c1a; }

header {
    text-align: center;
    padding: 1.5rem 1rem .5rem;
}

.logo {
    font-family: 'Creepster', cursive;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #ff7518;
    text-decoration: none;
    text-shadow: 0 0 12px rgba(255, 117, 24, .7), 3px 3px 0 #000;
    letter-spacing: 2px;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.card {
    width: 100%;
    max-width: 720px;
    background: rgba(20, 8, 28, .85);
    border: 2px solid #ff7518;
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 117, 24, .3);
}

h1, h2 {
    font-family: 'Creepster', cursive;
    color: #9cff57;
    letter-spacing: 1px;
    font-weight: normal;
}
h1 { font-size: 2.4rem; margin: .3rem 0 1rem; }
h2 { font-size: 1.5rem; margin: 1.6rem 0 .4rem; }

.counter {
    display: inline-block;
    margin: 0;
    padding: .3rem 1rem;
    background: #ff7518;
    color: #120617;
    font-weight: 700;
    border-radius: 999px;
}

.frame {
    padding: 10px;
    background: #000;
    border-radius: 12px;
    border: 3px dashed #9cff57;
}
.frame img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
    border-radius: 6px;
}

.big { font-size: 3rem; margin: .5rem 0; }
.hint { opacity: .7; font-size: .9rem; }
.error { color: #ff5c5c; font-weight: 700; }

.terms { text-align: left; }
.terms h1, .terms > .hint { text-align: center; }

footer {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: .9rem;
    opacity: .85;
}
footer p { margin: .5rem 0 0; opacity: .6; }

/* Flying bats */
.bats span {
    position: fixed;
    font-size: 2rem;
    z-index: -1;
    animation: fly linear infinite;
    opacity: .7;
}
.bats span:nth-child(1) { top: 15%; animation-duration: 18s; }
.bats span:nth-child(2) { top: 35%; animation-duration: 24s; animation-delay: -6s; font-size: 1.4rem; }
.bats span:nth-child(3) { top: 60%; animation-duration: 20s; animation-delay: -12s; }
.bats span:nth-child(4) { top: 80%; animation-duration: 30s; animation-delay: -3s; }
.bats span:nth-child(5) { top: 5%;  animation-duration: 26s; animation-delay: -16s; font-size: 1.2rem; }

@keyframes fly {
    0%   { left: -10%; transform: translateY(0); }
    25%  { transform: translateY(-30px); }
    50%  { transform: translateY(20px); }
    75%  { transform: translateY(-15px); }
    100% { left: 110%; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .bats { display: none; }
}
