* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 28px;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcf7f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    color: #ffd93d;
    font-size: 14px;
    font-weight: 700;
}

.edit-section {
    margin-bottom: 20px;
    text-align: center;
}

.edit-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
    transition: all 0.3s ease;
    font-weight: bold;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.6);
}

.table-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.table-header h2 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffd93d, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.table-header p {
    text-align: center;
    font-size: 14px;
    color: #ffd93d;
    font-weight: 700;
}

.results-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.15);
    padding: 15px 12px;
    border-radius: 15px;
    border-left: 4px solid #ffd93d;
    transition: all 0.3s ease;
}

.result-row:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(5px);
}

.game-name {
    font-weight: 700;
    font-size: 16px;
}

.game-time {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
}

.result-number {
    font-size: 20px;
    font-weight: 900;
    color: #ffd93d;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Edit Form Styles */
.edit-form {
    display: none;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid #ffd93d;
}

.edit-form h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd93d;
}

.edit-input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.edit-input-row .game-name {
    font-weight: 700;
}

.edit-input-row input {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    width: 80px;
    color: #1e3c72;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.save-btn {
    flex: 1;
    background: linear-gradient(45deg, #6bcf7f, #90f59f);
    color: #1e3c72;
    border: none;
    padding: 15px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.cancel-btn {
    flex: 1;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    opacity: 0.8;
}

footer a {
    color: #ffd93d;
    text-decoration: none;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .result-row {
        padding: 12px 10px;
    }
}