* {
    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;
    padding: 10px;
    overflow-x: hidden;
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
}

h1 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 24px;
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 15px;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
}

.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    word-break: break-word;
}

@media (max-width: 480px) {
    .message {
        font-size: 12px;
        padding: 8px;
    }
}

.message.error {
    background: #fee;
    color: #c33;
}

.message.success {
    background: #efe;
    color: #3c3;
}

.wheel-container {
    position: relative;
    display: inline-block;
    margin: 20px auto;
    max-width: 100%;
}

#wheel {
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    .wheel-container {
        margin: 10px auto;
    }
    
    #wheel {
        width: 100% !important;
        height: auto !important;
    }
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: 4px solid white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.spin-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.1);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.result.hidden {
    display: none;
}

.result > div {
    background: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.5s;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .result > div {
        padding: 20px 15px;
        width: 95%;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.result h2 {
    color: #f5576c;
    margin-bottom: 15px;
    font-size: 24px;
}

.result p {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
    word-break: break-word;
}

@media (max-width: 480px) {
    .result h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .result p {
        font-size: 14px;
    }
}

.card-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.card-info.hidden {
    display: none;
}

.card-info h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.card-info p {
    text-align: left;
    margin: 8px 0;
    font-size: 14px;
}

.card-info span {
    color: #f5576c;
    font-weight: bold;
    word-break: break-all;
}

@media (max-width: 480px) {
    .card-info p {
        font-size: 12px;
    }
}

.btn-again {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-again:hover {
    background: #5568d3;
}
