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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

.wheel-container {
    position: relative;
    margin: 30px auto;
    width: 300px;
    height: 300px;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    transform: rotate(var(--rotation));
    background: var(--color);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-size: 0.8rem;
}

.wheel-segment::before {
    content: attr(data-food);
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translateX(-50%) translateY(-50%) rotate(22.5deg);
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    transform-origin: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #ff4757;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.status {
    font-size: 1.5rem;
    margin: 20px 0;
    color: #666;
    font-weight: 500;
}

.spin-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
    font-weight: bold;
    margin: 20px 0;
}

.spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

.spin-button:active {
    transform: translateY(0);
}

.spin-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.food-management {
    margin-top: 30px;
    text-align: left;
}

.food-management h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.input-group button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.input-group button:hover {
    background: #5a67d8;
}

.current-options {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.food-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.food-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.food-item span {
    font-size: 1.1rem;
}

.remove-button {
    background: #ff4757;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.remove-button:hover {
    background: #ff3742;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .wheel-container {
        width: 250px;
        height: 250px;
    }
    
    .wheel-segment {
        font-size: 0.8rem;
    }
}

.steps-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.steps-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.steps-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.steps-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.yes-btn {
    background: #4caf50;
    color: white;
}

.yes-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.no-btn {
    background: #f44336;
    color: white;
}

.no-btn:hover {
    background: #da190b;
    transform: translateY(-2px);
}

.steps-response {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    min-height: 20px;
}

.steps-response.positive {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.steps-response.negative {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.compliment-section {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 12px;
    text-align: center;
}

.compliment-section h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.compliment-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    margin-bottom: 20px;
}

.compliment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
}

.compliment-response {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 15px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.8);
    color: #333;
    min-height: 20px;
    border: 2px solid #ff6b6b;
    font-style: italic;
}