/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f0f4f8;
    color: #333;
    padding: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ---- Фон с плавающими эмодзи ---- */
#emoji-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* чтобы не мешать кликам */
    z-index: 0;
    overflow: hidden;
}
.emoji-particle {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float linear infinite;
    user-select: none;
}
@keyframes float {
    0% {
        transform: translateY(110vh) rotate(0deg) scale(0.8);
        opacity: 0.1;
    }
    20% {
        opacity: 0.2;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg) scale(1.2);
        opacity: 0;
    }
}

/* ---- Основное содержимое ---- */
#app {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
header {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
header h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
}
section {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e7ef;
    border-radius: 8px;
    font-size: 16px;
    background: #fafcff;
    transition: border 0.2s;
}
select:focus {
    border-color: #2196F3;
    outline: none;
}
#location-status {
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}
#timer {
    text-align: center;
    padding: 24px;
}
#countdown {
    font-size: 40px;
    font-weight: 700;
    color: #2196F3;
    background: #e3f2fd;
    padding: 6px 18px;
    border-radius: 40px;
    display: inline-block;
    margin: 4px 0;
}
#route-number, #stop-name, #direction-name {
    font-weight: 600;
    color: #0d47a1;
}
#day-info {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
}
#next-bus-info p {
    margin: 8px 0;
    font-size: 17px;
}
#next-bus-info p:last-child {
    margin-bottom: 0;
}
footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #999;
}