/* Modern Game Collection Website Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('background.jpg') center center no-repeat fixed;
    background-size: 100% 100%;
    min-height: 100vh;
    color: #e0e6ed;
    position: relative;
}

html {
    min-height: 100vh;
    background: url('background.jpg') center center no-repeat fixed;
    background-size: 100% 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    color: #e0e6ed;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.logo-image {
    max-height: 120px;
    max-width: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 16px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #4a5568;
    color: #e0e6ed;
    border: 1px solid #718096;
}

.btn-secondary:hover {
    background: #2d3748;
    transform: translateY(-2px);
}

/* Auth Form Styles */
.auth-form {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 40px;
    max-width: 400px;
    margin: 50px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.auth-form h2 {
    text-align: center;
    color: #e0e6ed;
    margin-bottom: 30px;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e6ed;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 16px;
    background: #2d3748;
    color: #e0e6ed;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #a0a6b3;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #f0fff4;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-card p {
    color: #a0a6b3;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Games Section */
.games-section {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: #e0e6ed;
    font-size: 1.8rem;
    margin: 0;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #4a5568;
    background: #2d3748;
    color: #a0a6b3;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #4a5568;
}

.filter-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.game-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #667eea;
}

.game-card[data-owned="true"] {
    border-color: #48bb78;
    background: linear-gradient(135deg, #1a4d3a 0%, #2d5a47 100%);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.game-header h3 {
    color: #e0e6ed;
    font-size: 1.3rem;
    margin-bottom: 0;
    flex: 1;
    margin-right: 15px;
}

.game-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #4a5568;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    background: #2d3748;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #48bb78;
    border-color: #48bb78;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 14px;
    font-weight: 600;
    color: #a0a6b3;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark + .checkbox-label {
    color: #48bb78;
}

/* Delete Game Button */
.delete-game-btn {
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-game-btn:hover {
    background: #c53030;
    transform: scale(1.1);
}

/* Game Info */
.game-info {
    color: #a0a6b3;
}

.game-detail {
    margin-bottom: 8px;
    font-size: 14px;
}

.game-detail strong {
    color: #e0e6ed;
}

.game-description {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #a0a6b3;
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #2d3748;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid #4a5568;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal form {
    padding: 30px;
}

.modal form .form-group label {
    color: #e0e6ed;
}

.modal form .form-group input,
.modal form .form-group textarea {
    background: #1a202c;
    border-color: #4a5568;
    color: #e0e6ed;
}

.modal form .form-group input:focus,
.modal form .form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.modal-actions .btn {
    min-width: 100px;
}

/* Textarea styling */
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
    background: #2d3748;
    color: #e0e6ed;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        justify-content: center;
    }
    
    .auth-form {
        margin: 20px auto;
        padding: 30px 20px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .game-header h3 {
        margin-right: 0;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal form {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* Game List Styles */
.game-list-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(2px);
}

.game-list-header {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #e0e6ed;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.game-list-header .header-cell:first-child {
    text-align: left;
}

.game-list-header .header-cell:not(:first-child) {
    text-align: center;
}

.game-list-hint {
    text-align: center;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.game-list-hint p {
    margin: 0;
    color: #FFFFFF;
    font-size: 13px;
    font-style: italic;
}

.save-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-save {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-save:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-save:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.save-status {
    color: #e0e6ed;
    font-weight: 500;
    font-size: 14px;
}

.save-status.success {
    color: #4CAF50;
}

.save-status.error {
    color: #f44336;
}

.game-list {
    max-height: 70vh;
    overflow-y: auto;
}

.game-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 80px;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    transition: background-color 0.2s ease;
}

.game-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.game-row:last-child {
    border-bottom: none;
}

.game-name {
    color: #e0e6ed;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-info {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 50px);
    overflow: hidden;
}

.game-cover {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-cover:hover {
    border: 2px solid rgba(102, 126, 234, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* Screenshot Slider Styles */
.screenshot-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.slider-container {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: rgba(102, 126, 234, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: -60px;
}

.slider-next {
    right: -60px;
}

.slider-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-close:hover {
    background: rgba(244, 67, 54, 0.8);
    transform: scale(1.1);
}

.slider-info {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

.slider-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.game-cover:hover {
    border: 2px solid rgba(102, 126, 234, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.checkbox-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.game-checkbox:disabled {
    cursor: not-allowed;
}

/* Show disabled cursor for non-logged-in users */
.game-checkbox[onclick="return false;"] {
    cursor: not-allowed;
}



.admin-section {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.admin-section h2 {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 18px;
}

.admin-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transparency-control {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.transparency-control label {
    color: #e0e6ed;
    font-weight: 500;
    min-width: 180px;
}

.transparency-control input[type="range"] {
    flex: 1;
    min-width: 250px;
    height: 8px;
    background: #4a5568;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.transparency-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.transparency-control input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#transparencyValue {
    color: #667eea;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

/* Settings Message Popup */
.settings-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.settings-message.success .message-content {
    background: rgba(34, 197, 94, 0.9);
    border-left: 4px solid #22c55e;
    color: white;
}

.settings-message.error .message-content {
    background: rgba(239, 68, 68, 0.9);
    border-left: 4px solid #ef4444;
    color: white;
}

.message-text {
    flex: 1;
    font-weight: 500;
    margin-right: 10px;
}

.message-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.message-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4a5568;
    transition: 0.4s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #667eea;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.toggle-slider:hover {
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

/* Status indicators */
.status-enabled {
    color: #22c55e;
    font-weight: bold;
}

.status-disabled {
    color: #ef4444;
    font-weight: bold;
}

/* Delete Game Button */
.delete-game-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.delete-game-btn:hover {
    background: #dc2626;
    opacity: 1;
    transform: scale(1.1);
}

.game-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Fade out animation */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5a6578 0%, #3d4758 50%, #2a303c 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #3a4558 0%, #1d2738 50%, #0a1428 100%);
}

::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.4);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 rgba(0, 0, 0, 0.4);
}

/* Custom Tooltip - Browser Tooltip Style */
.game-description-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.game-description-content {
    background: #2b2a33;
    color: white;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.3;
    white-space: pre-line;
    max-width: 400px;
    width: max-content;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Custom scrollbar for modal */
.game-description-content::-webkit-scrollbar {
    width: 8px;
}

.game-description-content::-webkit-scrollbar-track {
    background: #3a3942;
    border-radius: 4px;
}

.game-description-content::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.game-description-content::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Close button */
.game-description-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-description-close:hover {
    color: #ccc;
}

/* Game Title */
.game-title {
    cursor: help;
}

/* Copyright Footer */
.copyright-footer {
    margin-top: 20px;
    text-align: center;
}

.copyright-footer .container {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.copyright-footer p {
    color: #a0a6b3;
    font-size: 12px;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}






