:root {
    --color-primary: #ff7300;
    --color-time: #22cc99;
    --color-primary-dark: #ff5700;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: url('bg.svg') repeat;
    background-size: 260px 260px;
    animation: bgScroll 6s linear infinite;
}

@keyframes bgScroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 260px;
    }
}

.container {
    border-radius: 24px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 60px;
    font-weight: 600;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

h1 .title-line {
    display: inline;
}

@media (max-width: 680px) {
    h1 {
        flex-direction: column;
        gap: 8px;
    }

    h1 .title-line {
        display: inline;
    }
}

#timePart {
    color: var(--color-time);
}

#foodPart {
    color: var(--color-primary);
    font-weight: 700;
    transition: all 0.1s ease;
}

#foodPart.animating {
    transform: scale(1.1);
}

.start-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 40px;
}

.start-btn:hover {
    border-color: #999;
}

.footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.time-selector {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 4px;
}

.time-btn {
    padding: 2px 14px;
    border: none;
    background: transparent;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.time-btn.active {
    background: var(--color-time);
    color: #fff;
    opacity: 1;
}
