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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.instructions-box {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    text-align: left;
}

.instructions-box h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 10px;
}

.instructions-box > p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.instruction-content h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 20px;
}

.instructions-box ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.instructions-box ul li {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #444;
    font-size: 1rem;
    border-left: 4px solid #667eea;
}

.instruction-note {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.instruction-note p {
    margin: 0 0 10px 0;
    color: #333;
}

.instruction-note p:last-child {
    margin-bottom: 0;
}

.wheel-section {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    text-align: center;
}

.wheel-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
    background: conic-gradient(
        #ff6b6b 0deg 90deg,
        #4ecdc4 90deg 180deg,
        #45b7d1 180deg 270deg,
        #f9ca24 270deg 360deg
    );
}

.segment {
    position: absolute;
    width: 150px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-size: 16px;
    text-align: center;
    transform-origin: 0 50%;
}

.segment1 {
    top: 50%;
    left: 50%;
    transform: translateY(-50%) rotate(45deg);
    margin-left: 10px;
}

.segment2 {
    top: 50%;
    left: 50%;
    transform: translateY(-50%) rotate(135deg);
    margin-left: 10px;
}

.segment3 {
    top: 50%;
    left: 50%;
    transform: translateY(-50%) rotate(225deg);
    margin-left: 10px;
}

.segment4 {
    top: 50%;
    left: 50%;
    transform: translateY(-50%) rotate(315deg);
    margin-left: 10px;
}

.pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #fff;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.spin-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 280px;
    display: inline-block;
}

.spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

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

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

.result-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 250px;
}

.result-box h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.result-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.spinning {
    pointer-events: none;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.celebrate {
    animation: celebrate 0.6s ease-in-out;
}