:root {
    --color-bg: #0f172a;
    --color-dark-blue: #1e293b;
    --color-dark-red: #e11d48;
    --color-light: #f8fafc;
    --color-green-check: #10b981;
    --color-primary: #3b82f6;
    --color-border: rgba(255, 255, 255, 0.1);

    /* Modern Glassmorphism & Solid 3D Shadows - NO NEON */
    --shadow-volumetric: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 12px 48px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);

    /* Glassmorphic Panel Backgrounds */
    --gradient-base: rgba(30, 41, 59, 0.7);
    --gradient-red: #e11d48;
    --gradient-red-hover: #be123c;
}

body.theme-cyberpunk {
    --color-bg: #0d0221;
    --color-dark-blue: #261447;
    --color-dark-red: #ff007f;
    --color-border: rgba(255, 255, 255, 0.1);
    --gradient-base: rgba(38, 20, 71, 0.7);
    --gradient-red: #ff007f;
    --gradient-red-hover: #b30059;
    --shadow-volumetric: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 12px 48px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

body.theme-matrix {
    --color-bg: #001100;
    --color-dark-blue: #002200;
    --color-dark-red: #00ff00;
    --color-border: rgba(255, 255, 255, 0.1);
    --gradient-base: rgba(0, 34, 0, 0.7);
    --gradient-red: #009900;
    --gradient-red-hover: #00cc00;
    --shadow-volumetric: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 12px 48px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

body.theme-space {
    --color-bg: #05051a;
    --color-dark-blue: #0f103b;
    --color-dark-red: #4a00e0;
    --color-light: #e0e0ff;
    --color-border: rgba(255, 255, 255, 0.1);
    --gradient-base: rgba(15, 16, 59, 0.7);
    --gradient-red: #8e2de2;
    --gradient-red-hover: #a044ff;
    --shadow-volumetric: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 12px 48px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

body.theme-dark {
    --color-bg: #121212;
    --color-dark-blue: #1e1e1e;
    --color-dark-red: #b0bec5;
    --color-light: #e0e0e0;
    --color-green-check: #81c784;
    --color-primary: #90caf9;
    --color-border: rgba(255, 255, 255, 0.05);
    --gradient-base: rgba(30, 30, 30, 0.8);
    --gradient-red: #455a64;
    --gradient-red-hover: #546e7a;
    --shadow-volumetric: 0 8px 32px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.02);
    --shadow-hover: 0 12px 48px 0 rgba(0, 0, 0, 0.8), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

body.theme-black {
    --color-bg: #000000;
    --color-dark-blue: #0a0a0a;
    --color-dark-red: #ffffff;
    --color-light: #cccccc;
    --color-green-check: #ffffff;
    --color-primary: #ffffff;
    --color-border: rgba(255, 255, 255, 0.15);
    --gradient-base: rgba(10, 10, 10, 0.9);
    --gradient-red: #333333;
    --gradient-red-hover: #555555;
    --shadow-volumetric: 0 4px 16px 0 rgba(255, 255, 255, 0.1), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    --shadow-hover: 0 8px 32px 0 rgba(255, 255, 255, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

body.theme-magic {
    --color-bg: #1a0b2e;
    --color-dark-blue: #2c1654;
    --color-dark-red: #d500f9;
    --color-light: #f3e5f5;
    --color-green-check: #00e5ff;
    --color-primary: #b388ff;
    --color-border: rgba(213, 0, 249, 0.3);
    --gradient-base: rgba(44, 22, 84, 0.8);
    --gradient-red: #aa00ff;
    --gradient-red-hover: #d500f9;
    --shadow-volumetric: 0 8px 32px 0 rgba(170, 0, 255, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 12px 48px 0 rgba(213, 0, 249, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

body.theme-abyss {
    --color-bg: #001f3f;
    --color-dark-blue: #003366;
    --color-dark-red: #00e5ff;
    --color-light: #e0f7fa;
    --color-green-check: #1de9b6;
    --color-primary: #00b0ff;
    --color-border: rgba(0, 229, 255, 0.2);
    --gradient-base: rgba(0, 51, 102, 0.8);
    --gradient-red: #0091ea;
    --gradient-red-hover: #00b0ff;
    --shadow-volumetric: 0 8px 32px 0 rgba(0, 145, 234, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 12px 48px 0 rgba(0, 229, 255, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

body.theme-solar {
    --color-bg: #3e1f00;
    --color-dark-blue: #5c2e00;
    --color-dark-red: #ff3d00;
    --color-light: #fff3e0;
    --color-green-check: #ff9100;
    --color-primary: #ffc400;
    --color-border: rgba(255, 61, 0, 0.3);
    --gradient-base: rgba(92, 46, 0, 0.8);
    --gradient-red: #dd2c00;
    --gradient-red-hover: #ff3d00;
    --shadow-volumetric: 0 8px 32px 0 rgba(221, 44, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --shadow-hover: 0 12px 48px 0 rgba(255, 61, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

body.theme-neon {
    --color-bg: #0d1117;
    --color-dark-blue: #161b22;
    --color-dark-red: #39ff14;
    --color-light: #c9d1d9;
    --color-green-check: #00ff00;
    --color-primary: #0ff0fc;
    --color-border: rgba(57, 255, 20, 0.3);
    --gradient-base: rgba(22, 27, 34, 0.9);
    --gradient-red: #00cc00;
    --gradient-red-hover: #39ff14;
    --shadow-volumetric: 0 8px 32px 0 rgba(57, 255, 20, 0.2), inset 0 1px 0 0 rgba(57, 255, 20, 0.1);
    --shadow-hover: 0 12px 48px 0 rgba(57, 255, 20, 0.5), inset 0 1px 0 0 rgba(57, 255, 20, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
input,
button,
select,
textarea {
    font-family: 'Century Gothic', sans-serif;
}

body {
    background-color: var(--color-bg);
    color: var(--color-light);
    overflow-x: hidden;
    padding-top: 70px;
    /* offset for fixed header */
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(11, 22, 44, 0.85);
    /* Glassmorphism */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    z-index: 1000;
    border-bottom: 2px solid rgba(138, 3, 3, 0.7);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.animated-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px var(--color-dark-red));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animated-logo:hover {
    transform: rotate(360deg) scale(1.15);
}

.user-profile-badge:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.user-profile-badge:hover .user-avatar {
    box-shadow: 0 0 10px var(--color-dark-red);
}

/* Unique Stylish Title */
.site-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--color-light);
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-left: 10px;
}

.main-nav .nav-btn {
    color: var(--color-light);
    text-decoration: none;
    padding: 8px 18px;
    margin: 0 4px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    border: 1px solid transparent;
}

.main-nav .nav-btn:hover,
.main-nav .nav-btn.active {
    background: rgba(138, 3, 3, 0.2);
    border-color: rgba(138, 3, 3, 0.6);
    box-shadow: 0 0 15px rgba(138, 3, 3, 0.4), var(--shadow-volumetric);
    color: #fff;
}

.main-nav .btn-add-game {
    border-color: rgba(16, 185, 129, 0.5);
    /* green check color */
    color: var(--color-green-check);
    background: rgba(16, 185, 129, 0.1);
}

.main-nav .btn-add-game:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4), var(--shadow-volumetric);
    color: #fff;
}

/* Common volumetric styles */
.volumetric {
    background: var(--gradient-base);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-light);
    box-shadow: var(--shadow-volumetric);
    padding: 10px 15px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

select.volumetric {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23f5f5f5%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
    padding-right: 40px;
    cursor: pointer;
}

select.volumetric option {
    background: var(--color-dark-blue);
    color: var(--color-light);
    padding: 10px;
}

/* Dictionary Tabs */
.dict-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 12px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.dict-tab-btn {
    background: var(--gradient-base);
    color: #ccc;
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-volumetric);
    text-shadow: 1px 1px 2px #000;
}

.dict-tab-btn:hover {
    color: #fff;
    background: rgba(138, 3, 3, 0.4);
    border-color: rgba(138, 3, 3, 0.5);
}

.dict-tab-btn.active {
    background: var(--gradient-red);
    color: #fff;
    border-color: #ff4d4d;
    box-shadow: 0 0 10px rgba(138, 3, 3, 0.5), inset 1px 1px 3px rgba(255, 255, 255, 0.2);
}

.volumetric:focus {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-dark-red);
}

.volumetric-btn {
    background: var(--gradient-red);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.volumetric-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: var(--gradient-red-hover);
}

.volumetric-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.volumetric-panel {
    background: var(--gradient-base);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: var(--shadow-volumetric);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.advanced-filters-section h3 {
    margin-bottom: 5px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content */
.content-wrapper {
    width: 100%;
    margin: 25px 0;
    padding: 0 30px;
}

/* Search Section */
.top-search-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.top-search-section .search-box {
    flex: 2;
    padding: 0;
}

.top-search-section .search-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
}

.top-search-section .filter-box {
    flex: 1;
    padding: 0;
}

.top-search-section .filter-box select {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.top-search-section .filter-box select option {
    background: var(--color-dark-blue);
    color: white;
}

/* Filters Panel */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    margin-top: 5px;
}

.filter-group label {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    appearance: none;
    padding: 6px 10px;
}

.filter-group select option {
    background: var(--color-dark-blue);
    color: white;
}

/* Custom Genres Checkboxes */
.genres-group {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
}

.genres-group>label {
    font-size: 13px;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.genres-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 4px 8px 4px 28px;
    background: var(--gradient-base);
    border-radius: 4px;
    box-shadow: var(--shadow-volumetric);
    transition: all 0.3s;
    user-select: none;
}

.genre-checkbox-label:hover {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    transform: translateY(-1px);
}

.genre-checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.genre-checkmark {
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    height: 14px;
    width: 14px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 3px;
    /* Square checkboxes */
    transition: all 0.3s;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.genre-checkbox-label:hover input~.genre-checkmark {
    border-color: var(--color-green-check);
}

.genre-checkbox-label input:checked~.genre-checkmark {
    background-color: var(--color-green-check);
    border-color: var(--color-green-check);
    box-shadow: 0 0 10px var(--color-green-check), inset 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.genre-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 3px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.genre-checkbox-label input:checked~.genre-checkmark:after {
    display: block;
}

.genre-checkbox-label.checked {
    color: var(--color-green-check);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

/* View Controls */
.view-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
}

.view-controls span {
    font-weight: bold;
}

.view-btn {
    background: var(--gradient-base);
    color: #888;
    border: 1px solid var(--color-border);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: bold;
}

.view-btn:hover,
.view-btn.active {
    color: white;
    background: var(--gradient-red);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.games-section {
    display: none;
    /* by default controlled by app.js tabs */
}

.games-section.active {
    display: block;
    animation: fadeInTab 0.5s ease-out forwards;
}

/* Tabs content */
.tab-content {
    display: none;
    min-height: 50vh;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.5s ease-out forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-inner {
    background: rgba(11, 22, 44, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-volumetric);
    margin-bottom: 35px;
}

.tab-content-inner h2 {
    color: var(--color-light);
    margin-bottom: 20px;
    font-size: 28px;
    border-bottom: 2px solid var(--color-dark-red);
    padding-bottom: 15px;
    display: inline-block;
}

.tab-content-inner p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
}

/* Games Containers */
.games-container {
    transition: all 0.5s ease;
    opacity: 1;
}

.games-container.fade-out {
    opacity: 0;
}

/* Grid View */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--gradient-base);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-volumetric);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-dark-red);
}

.game-card .img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #000;
    overflow: hidden;
    position: relative;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-card .info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card h4 {
    font-size: 16px;
    color: var(--color-light);
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px #000;
}

.game-card .meta {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.game-card .meta span {
    color: var(--color-dark-red);
    font-weight: bold;
}

.game-card .desc {
    margin-top: 10px;
    font-size: 12px;
    color: #ddd;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* List View */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-view .game-card {
    flex-direction: row;
    height: 140px;
}

.list-view .game-card .img-wrapper {
    width: 200px;
    height: 100%;
}

.list-view .game-card .desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Table View */
.table-view {
    display: table;
    width: 100%;
    background: var(--gradient-base);
    border-radius: 8px;
    box-shadow: var(--shadow-volumetric);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-size: 13px;
}

.table-view .game-card {
    display: table-row;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.table-view .game-card:hover {
    transform: none;
    background: rgba(138, 3, 3, 0.2);
}

.table-view .game-card>div {
    display: table-cell;
    padding: 10px 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
}

.table-view .img-wrapper {
    width: 60px;
    height: 40px;
    padding: 5px;
}

.table-view .info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.table-view h4,
.table-view .meta,
.table-view .desc {
    margin: 0;
    padding: 0 10px;
}

.table-view .desc {
    display: none;
    /* Hide desc in table mode to save space */
}

.table-view-header {
    display: none;
}

.table-view .table-view-header {
    display: table-row;
    background: var(--color-dark-blue);
    font-weight: bold;
    color: var(--color-dark-red);
    text-transform: uppercase;
}

.table-view .table-view-header>div {
    display: table-cell;
    padding: 10px 15px;
    border-bottom: 2px solid var(--color-dark-red);
}

/* Loader */
.loader {
    text-align: center;
    padding: 40px;
    font-size: 20px;
    color: var(--color-dark-red);
    font-weight: bold;
    letter-spacing: 3px;
    animation: pulse 1.5s infinite;
    display: none;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.98);
        text-shadow: 0 0 10px rgba(138, 3, 3, 0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 20px rgba(138, 3, 3, 0.8);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.98);
        text-shadow: 0 0 10px rgba(138, 3, 3, 0);
    }
}

/* Advanced Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes neonGlow {
    0% {
        box-shadow: 0 0 5px var(--color-primary), inset 0 0 3px var(--color-primary);
        border-color: rgba(255, 77, 77, 0.5);
    }

    50% {
        box-shadow: 0 0 20px var(--color-primary), inset 0 0 8px var(--color-primary);
        border-color: var(--color-primary);
    }

    100% {
        box-shadow: 0 0 5px var(--color-primary), inset 0 0 3px var(--color-primary);
        border-color: rgba(255, 77, 77, 0.5);
    }
}

@keyframes rgbBorder {
    0% {
        border-color: #ff0000;
    }

    25% {
        border-color: #00ff00;
    }

    50% {
        border-color: #0000ff;
    }

    75% {
        border-color: #ff00ff;
    }

    100% {
        border-color: #ff0000;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-item {
    animation: slideUp 0.15s ease-out forwards;
    opacity: 0;
}

/* Custom Modal */
.storm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.storm-modal.active {
    opacity: 1;
    pointer-events: all;
}

#stormModal {
    z-index: 9999 !important;
}

.storm-modal-content {
    position: relative;
    background: rgba(11, 22, 44, 0.95);
    min-width: 320px;
    max-width: 500px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 25px;
}

.storm-modal.active .storm-modal-content {
    transform: translateY(0);
}

.storm-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.animated-card {
    transition: all 0.2s ease-out;
}

.animated-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.1);
    z-index: 10;
}



body.theme-neon .game-card:hover {
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.8), inset 0 0 10px rgba(57, 255, 20, 0.5);
    border-color: rgba(57, 255, 20, 0.8);
}

#resetFiltersBtn {
    background: #cc0000 !important;
    background-color: #cc0000 !important;
    background-image: none !important;
    color: white !important;
    border-color: #aa0000 !important;
}

#resetFiltersBtn:hover {
    background: #ff0033 !important;
    background-color: #ff0033 !important;
    background-image: none !important;
}

#gameCancelBtn,
#gameCancelTopBtn,
#newsModalCancelBtn {
    background: #cc0000 !important;
    border-color: #aa0000 !important;
    color: white !important;
}

#gameCancelBtn:hover,
#gameCancelTopBtn:hover,
#newsModalCancelBtn:hover {
    background: #ff0033 !important;
}

body.theme-magic .game-card:hover {
    box-shadow: 0 10px 40px rgba(213, 0, 249, 0.8), inset 0 0 15px rgba(213, 0, 249, 0.6);
    border-color: rgba(213, 0, 249, 0.8);
}

body.theme-solar .game-card:hover {
    box-shadow: 0 10px 40px rgba(255, 61, 0, 0.8), inset 0 0 15px rgba(255, 61, 0, 0.6);
    border-color: rgba(255, 61, 0, 0.8);
}

body.theme-abyss .game-card:hover {
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.8), inset 0 0 15px rgba(0, 229, 255, 0.6);
    border-color: rgba(0, 229, 255, 0.8);
}

/* File Input Button Styles */
input[type="file"]::file-selector-button {
    background: var(--gradient-base);
    color: var(--color-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-small);
}

input[type="file"]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

#coverDropZone {
    aspect-ratio: 3 / 4;
    max-height: calc(100vh - 250px);
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
}