body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #4a5568 99%, #4a5568 100%);
    color: #e2e8f0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: #1a202c;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    animation: fadeIn 1s ease-in-out;
}

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

h1 {
    text-align: center;
    color: #e53e3e;
    margin-bottom: 20px;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #cbd5e0;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #4a5568;
    border-radius: 5px;
    box-sizing: border-box;
    background: #2d3748;
    color: #e2e8f0;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #e53e3e;
}

.food-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, 130px);
    gap: 30px;
    margin-bottom: 20px;
    justify-content: center;
    padding: 10px;
}

.food-options label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #2d3748;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 120px;
    height: 120px;
    border: 2px solid transparent;
}

.food-options label:hover {
    background: #4a5568;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.food-options label input:checked + img + span {
    color: #e53e3e;
    font-weight: bold;
}

.food-options label input {
    display: none;
}

.food-options img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s;
    margin-bottom: 10px;
}

.food-options label:hover img {
    transform: scale(1.1);
}

.food-options label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(229, 62, 62, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.food-options label:hover::before {
    opacity: 1;
}

.food-options label:has(input:checked) {
    background: #4a5568;
    border: 2px solid #68d391;
    box-shadow: 0 0 10px rgba(104, 211, 145, 0.8);
}

button {
    width: 100%;
    padding: 15px;
    background: #e53e3e;
    color: #e2e8f0;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #c53030;
    transform: scale(1.05);
}

#result {
    display: none;
    text-align: center;
    margin-top: 20px;
}

#result h2 {
    color: #e53e3e;
    font-size: 1.8em;
}

#result p {
    font-size: 1.2em;
    margin: 10px 0;
    color: #e2e8f0;
}

.animation-container {
    position: relative;
    width: 100%;
    height: 100px;
    background: linear-gradient(to right, #68d391, #e53e3e);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.road {
    position: absolute;
    bottom: 10px;
    width: 100%;
    height: 15px;
    background: repeating-linear-gradient(90deg, #e2e8f0 0, #e2e8f0 8px, #1a202c 8px, #1a202c 16px);
    border-top: 2px solid #4a5568;
    border-bottom: 2px solid #4a5568;
}

.avatar {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 50px;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="30" r="20" fill="%23ffd700"/><rect x="30" y="50" width="40" height="40" fill="%23007bff"/></svg>') no-repeat center/cover;
    background-size: cover;
    border-radius: 50%;
    animation: walk 1s infinite steps(4);
}

@keyframes walk {
    0% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes moveAvatar {
    from { left: 0; }
    to { left: var(--target-position); }
}

.label-start {
    position: absolute;
    left: 10px;
    top: 10px;
    color: #e2e8f0;
    font-weight: bold;
}

.label-end {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #e2e8f0;
    font-weight: bold;
}