/*
 * NexusGames Neon Cyberpunk Theme CSS
 */

:root {
    --bg-primary: #07060b;
    --bg-secondary: #0d0c16;
    --bg-card: rgba(18, 15, 30, 0.65);
    --bg-card-hover: rgba(28, 23, 47, 0.85);
    --border-neon: rgba(0, 242, 254, 0.2);
    --border-neon-pink: rgba(255, 0, 127, 0.2);
    --border-glass: rgba(255, 255, 255, 0.05);

    --neon-cyan: #00f2fe;
    --neon-pink: #ff007f;
    --neon-purple: #7f00ff;
    --neon-green: #39ff14;
    --neon-orange: #ff5f00;

    --text-primary: #f0eff5;
    --text-secondary: #908d9e;
    --text-accent: #00f2fe;

    --font-header: 'Orbitron', 'Rajdhani', 'Segoe UI', sans-serif;
    --font-body: 'Outfit', 'Segoe UI', sans-serif;

    --glow-cyan: 0 0 10px rgba(0, 242, 254, 0.5), 0 0 20px rgba(0, 242, 254, 0.2);
    --glow-pink: 0 0 10px rgba(255, 0, 127, 0.5), 0 0 20px rgba(255, 0, 127, 0.2);
    --glow-purple: 0 0 10px rgba(127, 0, 255, 0.5), 0 0 20px rgba(127, 0, 255, 0.2);

    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(127, 0, 255, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 242, 254, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(255, 0, 127, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: #ffffff;
    text-shadow: var(--glow-cyan);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

/* Layout Containers */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navigation */
header {
    background: rgba(13, 12, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-shadow: var(--glow-cyan);
}
.logo-text span {
    color: var(--neon-pink);
    text-shadow: var(--glow-pink);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.nav-item {
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

.nav-item > a {
    color: var(--text-primary);
}

.nav-item > a:hover,
.nav-item.active > a {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    overflow: visible !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(13, 12, 22, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 200px;
    display: none;
    list-style: none;
    margin-top: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), var(--theme-glow);
    z-index: 10000;
}

/* Invisible bridge to prevent hover loss due to margin-top gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
    animation: dropdownEntrance 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 24px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: none;
    transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.15) 0%, transparent 100%);
    padding-left: 28px;
    text-shadow: var(--glow-cyan);
}

@keyframes dropdownEntrance {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Search Bar */
.search-form {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 8px 15px 8px 38px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    background: rgba(255, 255, 255, 0.06);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    position: relative;
    transition: var(--transition-medium);
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: #ffffff;
    position: relative;
}

.btn-primary:hover {
    box-shadow: var(--glow-pink);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.btn-danger {
    background: #e63946;
    color: #ffffff;
}
.btn-danger:hover {
    background: #ff4d5a;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

.btn-success {
    background: var(--neon-green);
    color: #07060b;
}
.btn-success:hover {
    box-shadow: 0 0 15px var(--neon-green);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-header);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 15px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--glow-cyan);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    padding-right: 40px;
    color: #ffffff;
}

select.form-control option {
    background-color: #0d0c16;
    color: #ffffff;
}

/* Alerts */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.alert-danger {
    background: rgba(230, 57, 70, 0.15);
    border-color: #e63946;
    color: #ff858d;
}

.alert-success {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--neon-green);
    color: #a4ff98;
}

.alert-warning {
    background: rgba(255, 95, 0, 0.15);
    border-color: var(--neon-orange);
    color: #ff9d66;
}

/* Dashboard Home Grid Layout */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

/* Featured Hero Game */
.featured-hero {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--glow-purple);
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
    transition: var(--transition-slow);
}

.featured-hero:hover .featured-img {
    transform: scale(1.03);
    filter: brightness(0.5) contrast(1.1);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(7, 6, 11, 0.95), transparent);
}

.featured-badge {
    background: var(--neon-pink);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 12px;
    text-shadow: var(--glow-pink);
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.featured-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-fast);
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.25);
    background: var(--bg-card-hover);
}

.game-thumb-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    width: 100%;
    overflow: hidden;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.game-card:hover .game-thumb {
    transform: scale(1.08);
}

.game-card-play-btn {
    position: absolute;
    inset: 0;
    background: rgba(13, 12, 22, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 2;
}

.game-card-play-btn svg, .play-btn-icon {
    width: 48px;
    height: 48px;
    color: var(--neon-cyan);
    filter: drop-shadow(var(--glow-cyan));
    transform: scale(0.8);
    transition: var(--transition-fast);
}

.game-card-play-btn .play-btn-stats {
    font-family: var(--font-header);
    font-size: 0.72rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.game-card:hover .game-card-play-btn {
    opacity: 1;
}

.game-card:hover .game-card-play-btn svg,
.game-card:hover .play-btn-icon {
    transform: scale(1);
}

.game-card-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(7, 6, 11, 0.75);
    border: 1px solid var(--border-neon);
    color: var(--neon-cyan);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    transition: var(--transition-fast);
}

.game-card:hover .game-card-category-badge {
    background: var(--neon-cyan);
    color: #07060b;
    box-shadow: var(--glow-cyan);
}

.game-card-new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: var(--neon-pink);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: var(--glow-pink);
    pointer-events: none;
}

.game-card-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: rgba(13, 12, 22, 0.4);
    border-top: 1px solid var(--border-glass);
}

.game-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: auto;
}

.game-card-plays {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.game-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--neon-green);
    font-weight: 600;
}

/* Sidebar List */
.sidebar-section {
    margin-bottom: 35px;
}

.sidebar-title {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--border-glass);
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--neon-pink);
    box-shadow: var(--glow-pink);
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-glass);
}

.sidebar-item-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.sidebar-item-info {
    flex-grow: 1;
    overflow: hidden;
}

.sidebar-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.6rem;
    text-transform: uppercase;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    border-radius: 2px;
}

/* Game Room Viewport Container */
.game-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .game-detail-layout {
        grid-template-columns: 1fr;
    }
}

.game-viewport-container {
    background: #000000;
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--glow-cyan);
    margin-bottom: 25px;
}

.game-viewport-aspect-ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000000;
}

/* Play Screen Cover (before game starts) */
.game-play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-size: cover;
    background-position: center;
}

.game-play-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 12, 22, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.game-play-cover-content {
    position: relative;
    z-index: 11;
    text-align: center;
    padding: 20px;
}

.game-play-cover-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: var(--glow-cyan);
}

.game-play-cover-btn {
    font-size: 1.2rem;
    padding: 16px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: var(--glow-cyan);
}
.game-play-cover-btn:hover {
    box-shadow: 0 0 25px var(--neon-cyan);
    transform: scale(1.05);
}

/* Fullscreen and Control Bar */
.game-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 12, 22, 0.7);
    padding: 15px 20px;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.game-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-rating-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-rate {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-rate:hover {
    background: rgba(255,255,255,0.08);
}

.btn-rate.like-btn:hover, .btn-rate.liked {
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.btn-rate.dislike-btn:hover, .btn-rate.disliked {
    color: var(--neon-pink);
    border-color: rgba(255, 0, 127, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.comment-form {
    margin-bottom: 30px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 15px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-family: var(--font-header);
}

.comment-username {
    font-weight: 700;
    color: var(--neon-cyan);
}

.comment-text {
    font-size: 0.95rem;
    word-break: break-word;
}

/* Pre-roll Ad Overlay Screen */
.pre-roll-overlay {
    position: absolute;
    inset: 0;
    background: #0d0c16;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.nexus-ad-overlay-content {
    max-width: 600px;
    width: 100%;
    background: rgba(18, 15, 30, 0.95);
    border: 2px solid var(--neon-purple);
    border-radius: 12px;
    box-shadow: var(--glow-purple);
    padding: 25px;
    text-align: center;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.ad-badge {
    background: #252233;
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-header);
    letter-spacing: 0.1em;
}

.ad-timer {
    font-size: 0.85rem;
    color: #ffffff;
}

.ad-mock-video {
    padding: 30px 20px;
    background: #050408;
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.05);
    margin-bottom: 15px;
}

.ad-glowing-logo {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    margin-bottom: 10px;
}

.ad-btn {
    display: inline-block;
    background: var(--neon-pink);
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 4px;
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 15px;
}

/* Ad Placeholders */
.ad-banner-placeholder-horizontal {
    background: rgba(18, 15, 30, 0.4);
    border: 1px dashed var(--border-glass);
    border-radius: 8px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    max-width: 728px;
}

.ad-banner-placeholder-box {
    background: rgba(18, 15, 30, 0.4);
    border: 1px dashed var(--border-glass);
    border-radius: 8px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-placeholder-medium {
    background: rgba(18, 15, 30, 0.4);
    border: 1px dashed var(--border-glass);
    border-radius: 8px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.ad-text {
    font-size: 0.75rem;
    font-family: var(--font-header);
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Old admin layout removed */

.admin-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-header);
    font-weight: 600;
    transition: var(--transition-fast);
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border-left: 3px solid var(--neon-cyan);
}

/* Admin login layout */
.admin-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.login-card {
    max-width: 450px;
    width: 100%;
    padding: 0;
}

.glow-border-wrapper {
    padding: 35px;
    position: relative;
}

.glow-border-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid var(--border-neon);
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.glitch-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: var(--glow-cyan);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Admin stats panels */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-value {
    font-size: 2.2rem;
    font-family: var(--font-header);
    color: #ffffff;
    text-shadow: var(--glow-cyan);
    font-weight: 800;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Admin Games Table */
.admin-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
}

.admin-table th {
    font-family: var(--font-header);
    color: #ffffff;
    background: rgba(255,255,255,0.02);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.01);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: slideUp 0.4s ease-out forwards;
}

/* Instructions drawer */
.controls-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.controls-panel h3 {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.controls-panel p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* Spinner */
.ad-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 242, 254, 0.1);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50px;
    margin: 20px auto 0 auto;
    animation: spin 1s linear infinite;
    box-shadow: var(--glow-cyan);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer layout */
footer {
    background: #050408;
    border-top: 1px solid var(--border-glass);
    padding: 40px 0 20px 0;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-links h5 {
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links ul a {
    color: var(--text-secondary);
}

.footer-links ul a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 20px;
}

/* Flex utilities */
.text-center { text-align: center; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.lead { font-size: 1.1rem; color: var(--text-primary); }
.text-neon-pink { color: var(--neon-pink); text-shadow: var(--glow-pink); }
.badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-active { background: rgba(57, 255, 20, 0.15); color: var(--neon-green); border: 1px solid rgba(57,255,20,0.3); }
.badge-draft { background: rgba(255, 95, 0, 0.15); color: var(--neon-orange); border: 1px solid rgba(255,95,0,0.3); }
.badge-source { background: rgba(0, 242, 254, 0.15); color: var(--neon-cyan); border: 1px solid rgba(0,242,254,0.3); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.page-link:hover,
.page-link.active {
    background: var(--neon-purple);
    color: #ffffff;
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

/* ══════════════════════════════════════════════════════════════
   PREMIUM PRO REDESIGN LAYOUTS & PORTAL STYLINGS
   ══════════════════════════════════════════════════════════════ */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 600px;
    background: rgba(18, 15, 30, 0.85);
    border: 1px solid var(--border-neon);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-consent-banner.show {
    bottom: 1.5rem;
}
.cookie-consent-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
}
.cookie-consent-text a {
    color: var(--neon-cyan);
    text-decoration: underline;
}
.cookie-consent-buttons {
    flex-shrink: 0;
}
.cookie-consent-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

/* Developer Credits Card */
.footer-credits {
    background-color: rgba(18, 15, 30, 0.45);
    border: 1px solid var(--border-neon);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.credits-header {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.developer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.avatar-container {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-glass);
    flex-shrink: 0;
    background-color: #120f1e;
}
.developer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
    background: linear-gradient(to bottom right, var(--neon-purple), var(--neon-cyan));
}
.developer-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
}
.developer-email {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}
.developer-email a {
    color: var(--text-secondary);
    text-decoration: none;
}
.developer-email a:hover {
    color: var(--neon-cyan);
    text-decoration: underline;
}
.developer-links {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}
.dev-link {
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 600;
}
.dev-link:hover {
    text-decoration: underline;
}

/* ── ADMIN PANEL — STUDIO PRO REDESIGN ── */
.admin-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: #050408;
    background-image:
      radial-gradient(ellipse 80% 50% at 10% 0%, rgba(127, 0, 255, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 90% 100%, rgba(0, 242, 254, 0.06) 0%, transparent 60%);
}
.admin-sidebar {
    width: 252px;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(127,0,255,0.04) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 100%);
    background-color: rgba(7, 6, 12, 0.98);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-shrink: 0;
    z-index: 20;
    box-shadow: 4px 0 40px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}
.admin-sidebar::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,.01) 2px,
      rgba(255,255,255,.01) 3px
    );
    pointer-events: none;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.75rem 1.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.045);
    position: relative; z-index: 1;
}
.logo-box-mini {
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(to top right, var(--neon-purple), var(--neon-cyan));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(127, 0, 255, 0.25);
    animation: float 4s ease-in-out infinite;
}
.sidebar-brand span {
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: -0.025em;
    color: #fff;
    line-height: 1.15;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 1.25rem 0.9rem;
    flex: 1;
    position: relative; z-index: 1;
}
.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.785rem;
    font-weight: 700;
    color: rgba(255,255,255,0.42);
    text-decoration: none;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1);
}
.sidebar-nav .nav-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(127, 0, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.sidebar-nav .nav-item:hover::after { opacity: 1; }
.sidebar-nav .nav-item::before {
    content: '';
    position: absolute;
    left: 0; top: 18%; height: 64%; width: 3px;
    background: var(--neon-cyan);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 0 12px var(--neon-cyan);
}
.sidebar-nav .nav-item:hover {
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
    transform: translateX(3px);
}
.sidebar-nav .nav-item.active {
    background: linear-gradient(125deg, rgba(127, 0, 255, 0.15) 0%, rgba(127, 0, 255, 0.04) 100%);
    border-color: rgba(127, 0, 255, 0.28);
    color: var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.sidebar-nav .nav-item.active::before { transform: scaleY(1); }
.sidebar-nav .nav-item svg { flex-shrink: 0; width: 16px; height: 16px; stroke: currentColor; }
.logout-link:hover {
    color: #f87171 !important;
    background: rgba(239,68,68,0.06) !important;
    border-color: rgba(239,68,68,0.15) !important;
}
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.045);
    background: rgba(5,4,8,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 10;
    flex-shrink: 0;
}
.admin-topbar h2 {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 1.1rem 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
}
.user-badge strong { color: rgba(255,255,255,0.85); }
.status-indicator {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-indicator.active {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2), 0 0 8px #10b981;
    animation: status-pulse 2.5s ease infinite;
}
@keyframes status-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.2), 0 0 8px #10b981; }
    50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0.08), 0 0 16px #10b981; }
}
.admin-content-box {
    flex: 1;
    padding: 2.25rem 2.5rem;
    overflow-y: auto;
}
.admin-workspace {
    flex: 1;
    min-width: 0;
}

/* Glassmorphic Data Table Overrides */
.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid var(--border-glass);
    background: rgba(18, 15, 30, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.admin-table th, .admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-table th {
    background: rgba(127, 0, 255, 0.08);
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
}
.admin-table tbody tr:hover td {
    background: rgba(127, 0, 255, 0.04);
}
.admin-table tr:last-child td {
    border-bottom: none;
}

/* Glowing action buttons */
.action-btn {
    font-size: 0.64rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.09em;
    padding: 0.5rem 1rem; border-radius: 0.65rem;
    text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.edit-btn {
    background: rgba(127, 0, 255, 0.07);
    border-color: rgba(127, 0, 255, 0.2);
    color: var(--neon-cyan);
}
.edit-btn:hover {
    background: var(--neon-purple); color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 0, 255, 0.4);
}
.delete-btn {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}
.delete-btn:hover {
    background: #ef4444; color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Stats box visual refresh */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.stat-box {
    text-align: center;
    border: 1px solid var(--border-glass);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--border-neon);
}
.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-header);
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Custom Particle Canvas setup */
#particle-canvas {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: -10; pointer-events: none;
}

/* Admin Overrides for Full-screen layout */
body.admin-page {
    padding-top: 0 !important;
    background: #050408 !important;
}
body.admin-page #particle-canvas {
    display: none !important;
}
body.admin-page .container {
    max-width: 100% !important;
    padding: 0 !important;
}
body.admin-page main {
    padding: 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   CENTRALIZED HOME LAYOUT (Full-Width)
   ══════════════════════════════════════════════════════════════ */
.home-layout-full {
    width: 100%;
}

.home-main {
    padding-top: 30px;
    padding-bottom: 60px;
}

.home-sections-wrapper {
    width: 100%;
}

.category-wrapper {
    width: 100%;
    padding-bottom: 20px;
}

.home-section {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .home-main {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .home-section {
        margin-bottom: 35px;
    }
}

@media (max-width: 480px) {
    .home-main {
        padding-top: 14px;
        padding-bottom: 30px;
    }
    .home-section {
        margin-bottom: 28px;
    }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE DESIGN — Breakpoints
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet & below (≤ 992px) ── */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .game-detail-layout {
        grid-template-columns: 1fr;
    }

    .featured-hero {
        height: 380px;
    }

    .featured-title {
        font-size: 2rem;
    }

    .featured-content {
        padding: 30px;
    }

    .footer-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
    /* Container spacing */
    .container {
        padding: 0 14px;
    }

    /* ─ Featured Hero ─ */
    .featured-hero {
        height: 300px;
        border-radius: 14px;
        margin-bottom: 30px;
    }

    .featured-content {
        padding: 20px 22px 22px;
    }

    .featured-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .featured-desc {
        font-size: 0.85rem;
        margin-bottom: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .featured-watermark {
        font-size: 4rem;
    }

    .featured-tags {
        gap: 6px;
        margin-bottom: 10px;
    }

    .featured-metrics {
        gap: 16px;
        margin: 12px 0 16px;
    }

    .metric-value {
        font-size: 0.95rem;
    }

    .featured-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .live-tag {
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    /* ─ Games Grid ─ */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .game-card-title {
        font-size: 0.9rem;
    }

    .game-card-info {
        padding: 12px;
    }

    /* ─ Section Headers ─ */
    .section-header {
        margin-bottom: 18px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    /* ─ Game Detail Page ─ */
    .game-detail-layout {
        gap: 20px;
    }

    .game-play-cover-title {
        font-size: 1.5rem;
    }

    /* ─ Footer ─ */
    footer {
        padding: 30px 0 16px;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-bottom {
        font-size: 0.78rem;
    }

    /* ─ Cookie Banner ─ */
    .cookie-consent-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
        border-radius: 0.85rem;
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-consent-btn {
        width: 100%;
    }

    /* ─ Stats ─ */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stat-value {
        font-size: 1.7rem;
    }

    /* ─ Buttons ─ */
    .btn {
        padding: 9px 18px;
        font-size: 0.82rem;
    }

    /* ─ Glass Cards ─ */
    .glass-card {
        padding: 18px;
        border-radius: 12px;
    }

    /* ─ Admin Login ─ */
    .admin-login-container {
        min-height: calc(100vh - 120px);
        padding: 20px;
    }

    .glow-border-wrapper {
        padding: 22px;
    }

    .glitch-title {
        font-size: 1.7rem;
    }
}

/* ── Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    /* ─ Hero adjustments ─ */
    .featured-hero {
        height: 260px;
        border-radius: 12px;
    }

    .featured-title {
        font-size: 1.25rem;
    }

    .featured-content {
        padding: 16px 16px 18px;
    }

    .featured-desc {
        display: none; /* Hide long description on very small screens */
    }

    .featured-watermark {
        font-size: 2.8rem;
    }

    .featured-metrics {
        gap: 12px;
    }

    /* ─ 2-Column game grid on small screens ─ */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-card-title {
        font-size: 0.8rem;
        font-weight: 700;
    }

    .game-card-meta {
        font-size: 0.68rem;
    }

    .game-card-info {
        padding: 10px;
    }

    .game-thumb-wrapper {
        aspect-ratio: 4/3;
    }

    /* ─ Play button on mobile cards ─ */
    .game-card-play-btn {
        opacity: 1; /* Always visible on touch screens */
        background: rgba(13, 12, 22, 0.45);
    }

    .game-card-play-btn svg {
        width: 32px;
        height: 32px;
        transform: scale(1);
    }

    /* ─ Section titles ─ */
    .section-title {
        font-size: 1.1rem;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* ─ Stats ─ */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-box {
        padding: 15px;
    }

    /* ─ Footer ─ */
    .footer-credits {
        max-width: 100%;
    }

    /* ─ Category page ─ */
    .glass-card {
        padding: 14px;
        border-radius: 10px;
    }

    /* ─ Comment forms ─ */
    .form-control {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    /* ─ Buttons ─ */
    .btn {
        padding: 9px 16px;
        font-size: 0.78rem;
    }

    /* ─ Glitch/404 page ─ */
    .page-404 .glitch-title {
        font-size: 3.5rem;
    }
}

/* ── Ultra-small (≤ 360px) ── */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .featured-hero {
        height: 230px;
    }

    .featured-title {
        font-size: 1.1rem;
    }

    .featured-metrics {
        display: none; /* Hide metrics to save vertical space */
    }

    .games-grid {
        gap: 8px;
    }

    .game-card-title {
        font-size: 0.75rem;
    }
}

/* ── Touch device hover state fix (prevents sticky hover states) ── */
@media (hover: none) {
    .game-card:hover {
        transform: none;
    }
    .game-card:hover .game-card-play-btn {
        opacity: 1;
    }
    .featured-hero:hover .featured-img {
        transform: none;
    }
    .btn-primary:hover {
        transform: none;
    }
    .btn-secondary:hover {
        transform: none;
    }
}

/* ── Safe area insets for notched phones ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
    #mobile-drawer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

/* ── Poki-Level Redesign New UI Components ── */
.genre-pill-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.genre-pill-bar::-webkit-scrollbar {
    display: none;
}

/* Desktop and Mobile responsive display classes */
.desktop-only {
    display: flex !important;
}
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
}

/* Category select dropdown styling */
.mobile-genre-select-container {
    width: 100%;
    margin-bottom: 30px;
}
.genre-select-dropdown {
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    height: 48px;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: var(--theme-shadow-sm);
}
.genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 8px 18px;
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: uppercase;
    transition: var(--transition-fast);
}
.genre-pill:hover, .genre-pill.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--neon-cyan);
    color: #ffffff;
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* Clickable category header styling */
.category-header-link {
    text-decoration: none !important;
    display: inline-block;
    transition: var(--transition-fast);
}
.category-header-link:hover .section-title {
    color: var(--neon-cyan) !important;
    text-shadow: var(--glow-cyan);
}

/* Horizontal scroller games row */
.games-scroll-row-container {
    position: relative;
    width: 100%;
    margin-bottom: 25px;
}
.games-scroll-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scrollbar-width: none; /* Hide default thick scrollbar */
    -ms-overflow-style: none;
}
.games-scroll-row::-webkit-scrollbar {
    display: none;
}
.games-scroll-row .game-card {
    flex: 0 0 200px;
}

@media (max-width: 768px) {
    .games-scroll-row {
        gap: 12px;
    }
    .games-scroll-row .game-card {
        flex: 0 0 150px;
    }
}

/* Search Box Inside Hero */
.hero-search-container {
    position: relative;
    max-width: 520px;
    width: 100%;
    margin-top: 20px;
    z-index: 10;
}
.hero-search-input {
    width: 100%;
    background: rgba(13, 12, 22, 0.85);
    border: 2px solid var(--border-neon);
    border-radius: 50px;
    padding: 14px 24px 14px 50px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
}
.hero-search-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan), 0 10px 30px rgba(0, 242, 254, 0.15);
}
.hero-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--neon-cyan);
    filter: drop-shadow(var(--glow-cyan));
    pointer-events: none;
}

/* Filter Tab Bar */
.tab-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}
.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 16px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    text-transform: uppercase;
}
.tab-btn:hover {
    color: var(--text-primary);
}
.tab-btn.active {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Category Sort Bar */
.category-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 15, 30, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    gap: 10px;
}
.sort-options {
    display: flex;
    align-items: center;
    gap: 15px;
}
.sort-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sort-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
    transition: var(--transition-fast);
}
.sort-link.active, .sort-link:hover {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

/* Comments Initials Avatar */
.comment-avatar-initials {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    text-transform: uppercase;
    flex-shrink: 0;
}

