* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Sukhumvit Set', 'Kanit', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 20px;
}

.container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.btn:hover {
    background: #c0392b;
}

/* Wheel Design */
.wheel-box {
    position: relative;
    margin: 20px auto;
    width: 320px;
    height: 320px;
}

.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: 25px solid #e74c3c;
    z-index: 10;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #f39c12;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.15, 0.99, 0.35, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.spin-btn {
    margin-top: 20px;
    background: #2ecc71;
}

.spin-btn:hover {
    background: #27ae60;
}

.hidden {
    display: none !important;
}

.history-link {
    display: inline-block;
    margin-top: 20px;
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    width: 90%;
}

#prize-result-text {
    font-size: 1.2rem;
    margin: 15px 0;
    color: #27ae60;
    font-weight: bold;
}

/* History Page */
.history-container {
    max-width: 800px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.history-table th, .history-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.history-table th {
    background-color: #34495e;
    color: white;
}

.prize-tag {
    color: #e67e22;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}