:root {
    --primary-color: #1b5e20;
    --primary-light: #4c8c4a;
    --primary-dark: #003300;
    --accent-color: #ffd700;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.main-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 5px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-top: 10px;
    color: var(--primary-dark);
}

.game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.wheel-area {
    position: relative;
    width: 500px;
    height: 500px;
}

#wheel {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.2));
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
}

#spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--white);
    background: var(--primary-color);
    color: var(--white);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 20;
}

#spin-btn:hover {
    background: var(--primary-light);
    transform: translate(-50%, -50%) scale(1.1);
}

#spin-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

#spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translate(-50%, -50%) scale(1);
}

/* Result Overlay */
#result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.result-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.timer {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.logo-display {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-display img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
}

.company-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 25px;
    animation: fadeIn 0.8s ease;
}

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

#next-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

#next-btn:hover {
    background: var(--primary-light);
}

footer {
    margin-top: 50px;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 550px) {
    .wheel-area {
        width: 320px;
        height: 320px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}
