body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 2.8em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.lobby {
    text-align: center;
    margin: 50px 0;
}

button {
    background: #fff;
    color: #333;
    border: 2px solid #3498db;
    padding: 18px 35px;
    margin: 15px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

button:active {
    transform: translateY(-1px);
}

.btn-create {
    background: linear-gradient(to right, #00b09b, #96c93d);
    color: white;
    border: none;
}

.btn-join {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    border: none;
}

.btn-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.ticket {
    display: inline-block;
    margin: 20px;
    border: 3px solid #2c3e50;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.ticket-row {
    display: flex;
}

.ticket-cell {
    width: 55px;
    height: 55px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    background: white;
    transition: all 0.2s ease;
}

.ticket-cell:hover {
    background: #e9ecef;
}

.ticket-cell.marked {
    background: #27ae60;
    color: white;
    position: relative;
}

.ticket-cell.marked::after {
    content: "✓";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 12px;
    color: white;
}

.number-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.number:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.number.called {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: scale(1.15);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.rules {
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 15px;
    margin-top: 50px;
    border-left: 5px solid #3498db;
}

.rules h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.rules ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.rules li {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.rules li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rule-icon {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    object-fit: contain;
}

#calledNumbers {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    min-height: 80px;
    font-size: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.winner-announcement {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.game-code-display {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    margin: 20px auto;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.number-grid {
    display: grid;
    grid-template-columns: repeat(10, 70px); /* 10 columns */
    grid-template-rows: repeat(9, 70px); /* 9 rows */
    gap: 8px;
    justify-content: center;
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.number {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.number:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.number.called {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: scale(1.15);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    position: relative;
}

.number.called::after {
    content: "✓";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 12px;
    color: white;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .number-grid {
        grid-template-columns: repeat(9, 45px); /* 9 columns on mobile */
        grid-template-rows: repeat(10, 45px); /* 10 rows on mobile */
        gap: 5px;
        padding: 10px;
    }
    
    .number {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Column coloring for better visibility */
.number:nth-child(10n+1), /* Numbers ending in 1: 1, 11, 21... */
.number:nth-child(10n+2) { /* Numbers ending in 2: 2, 12, 22... */
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
}

.number:nth-child(10n+3), /* Numbers ending in 3: 3, 13, 23... */
.number:nth-child(10n+4) { /* Numbers ending in 4: 4, 14, 24... */
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.number:nth-child(10n+5), /* Numbers ending in 5: 5, 15, 25... */
.number:nth-child(10n+6) { /* Numbers ending in 6: 6, 16, 26... */
    background: linear-gradient(135deg, #a1ffce 0%, #faffd1 100%);
}

.number:nth-child(10n+7), /* Numbers ending in 7: 7, 17, 27... */
.number:nth-child(10n+8) { /* Numbers ending in 8: 8, 18, 28... */
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.number:nth-child(10n+9), /* Numbers ending in 9: 9, 19, 29... */
.number:nth-child(10n) { /* Numbers ending in 0: 10, 20, 30... */
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}
.current-number {
    text-align: center;
    margin: 20px 0;
}

.current-number-display {
    display: inline-block;
    background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.recent-numbers {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 18px;
}

.called-history {
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

#recentNumbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

#recentNumbers span {
    background: #3498db;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

/* Grid header for better organization */
.number-grid h3 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Column headers */
.number-grid::before {
    content: "Column 1-10";
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
    color: #666;
    margin-bottom: -10px;
}