:root {
    --bg-dark: #090B10;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #6d5dfc;
    --secondary: #e44dff;
    --accent: #00f2ff;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

#hub-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.premium-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('../images/bg-cyber-cosmic.jpg') center top / cover no-repeat;
    filter: brightness(0.72) contrast(1.12);
    z-index: -4;
    animation: driftBg 35s ease-in-out infinite alternate;
}
@keyframes driftBg {
    from { transform: scale(1.0) translateY(0); }
    to { transform: scale(1.06) translateY(-15px); }
}

.glass-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 25%, rgba(9, 11, 16, 0.32) 0%, rgba(9, 11, 16, 0.82) 100%);
    z-index: -3;
    pointer-events: none;
}

.ambient-glow {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 20% 30%, rgba(109, 93, 252, 0.25) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(228, 77, 255, 0.2) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

.container {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* ==========================================================================
   Storefront Top Bar (Clean & Minimal)
   ========================================================================== */
.store-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 16px;
    border-radius: 99px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand-dot {
    font-size: 1.05rem;
}

.brand-name {
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.verified-badge {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.top-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    padding: 0;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notif-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 176, 32, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 176, 32, 0.25);
}

.notif-btn:active {
    transform: translateY(0);
}

.notif-bell-icon {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform 0.25s ease;
}

.notif-btn:hover .notif-bell-icon {
    transform: rotate(15deg) scale(1.1);
}

.notif-badge-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 9px;
    height: 9px;
    background: #ff5e3a;
    border: 2px solid #0d1117;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff5e3a;
    animation: notifDotPulse 1.8s infinite;
}

.notif-badge-dot.read {
    display: none;
}

@keyframes notifDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.75; }
}

.top-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #10b981;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 99px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    animation: statusPulse 1.6s infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================================================
   Hero Spotlight Carousel (Auto-rotating with Touch & Indicators)
   ========================================================================== */
.hero-banner {
    position: relative;
    border-radius: 22px;
    padding: 28px 26px;
    background: linear-gradient(135deg, rgba(109, 93, 252, 0.22) 0%, rgba(13, 20, 38, 0.92) 100%), #0c142b;
    border: 1px solid rgba(109, 93, 252, 0.35);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(109, 93, 252, 0.15);
    margin-bottom: 26px;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.hero-banner.is-dragging {
    cursor: grabbing;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content-wrapper.slide-next {
    opacity: 0;
    transform: translateX(-16px);
}

.hero-content-wrapper.slide-prev {
    opacity: 0;
    transform: translateX(16px);
}

.hero-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
    gap: 12px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-badge-pill {
    background: linear-gradient(135deg, #ff4d4d, #f97316);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3.5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-badge-pill.badge-orange { background: linear-gradient(135deg, #f97316 0%, #eab308 100%); }
.hero-badge-pill.badge-hot { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); }
.hero-badge-pill.badge-purple { background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%); }

.hero-tag-text {
    font-size: 0.74rem;
    color: #f97316;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hero-indicators {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
    width: 22px;
    border-radius: 99px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 12px rgba(109, 93, 252, 0.7);
}

.hero-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 18px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 18px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    flex: 1;
    min-width: 155px;
    transition: all 0.22s ease;
}

.hero-btn.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(109, 93, 252, 0.4);
}

.hero-btn.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 12px 28px rgba(109, 93, 252, 0.55);
}

.hero-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-2px);
}
/* ==========================================================================
   Section Header
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.section-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: 99px;
}

/* ==========================================================================
   Games Grid & Store Cards
   ========================================================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.game-card {
    background: rgba(13, 20, 38, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.game-card:hover {
    transform: translateY(-4px);
    background: rgba(22, 33, 62, 0.85);
    border-color: rgba(109, 93, 252, 0.4);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(109, 93, 252, 0.2);
}

.card-poster {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 5px;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 6px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease;
}

.game-card:hover .card-poster {
    transform: scale(1.06);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.poster-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    padding: 2.5px 7px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
    z-index: 5;
    pointer-events: none;
    line-height: 1.15;
}

.badge-hot { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); }
.badge-orange { background: linear-gradient(135deg, #f97316 0%, #eab308 100%); }
.badge-purple { background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%); }
.badge-cyan { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.badge-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.card-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.25;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.card-status {
    font-size: 0.66rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    margin-top: 2px;
}

.store-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
    min-height: 40px;
}

.store-btn .btn-text-block {
    align-items: center;
    text-align: center;
    gap: 2px;
}

.store-btn .btn-arrow {
    display: none;
}

.store-btn-s1 {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(109, 93, 252, 0.9) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(109, 93, 252, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.store-btn-s1:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 18px rgba(109, 93, 252, 0.55);
}

.store-btn-s2 {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

.store-btn-s2:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
    transform: translateY(-2px);
}

.btn-top-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    line-height: 1.1;
}

.btn-sub-label {
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    color: #94a3b8;
}

.store-btn-s1 .btn-sub-label {
    color: rgba(255, 255, 255, 0.88);
}

.store-btn-s2 .btn-sub-label {
    color: #38bdf8;
}

.btn-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
}

.btn-top-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    line-height: 1.1;
}

.btn-sub-label {
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    color: #94a3b8;
}

.sub-green {
    color: #10b981;
}

.btn-arrow {
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
}

.store-btn:hover .btn-arrow,
.hero-btn:hover .btn-arrow {
    transform: translateX(3px);
    color: #ffffff;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
}

@media (max-width: 600px) {
    .container {
        padding: 16px 12px 30px;
    }
    .hero-banner {
        padding: 22px 18px;
        border-radius: 18px;
    }
    .hero-title {
        font-size: 1.35rem;
    }
    .hero-desc {
        font-size: 0.78rem;
        margin-bottom: 14px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 8px;
    }
    .hero-btn {
        min-width: 100%;
    }
    .card-poster {
        width: 58px;
        height: 58px;
    }
    .card-name {
        font-size: 0.75rem;
    }
    .store-btn {
        padding: 6px 3px;
        min-height: 38px;
    }
    .btn-top-title {
        font-size: 0.66rem;
    }
    .btn-sub-label {
        font-size: 0.54rem;
    }
    .brand-pill {
        padding: 6px 12px;
        gap: 6px;
    }
    .brand-name {
        font-size: 0.88rem;
    }
    .top-status-pill {
        padding: 5px 10px;
        font-size: 0.72rem;
    }
    .notif-btn {
        width: 32px;
        height: 32px;
    }
    .notif-bell-icon {
        width: 16px;
        height: 16px;
    }
    .top-actions {
        gap: 6px;
    }
}
.hub-notif {
    position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%);
    z-index: 1000; width: 80%; max-width: 300px;
    pointer-events: none;
}
@keyframes hubSlideUp {
    0% { opacity: 0; transform: translate(-50%, 30px) scale(0.92); }
    100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes hubSlideDown {
    0% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, 25px) scale(0.92); }
}
.hub-notif-inner {
    background: rgba(8, 10, 16, 0.95);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 8px 14px; border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    border-top: 2px solid var(--primary);
    text-align: center;
}
.hub-notif-badge {
    background: var(--primary); color: #fff;
    font-size: 0.55rem; font-weight: 800;
    padding: 2px 6px; border-radius: 8px;
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
}
.hub-notif-content { font-size: 0.78rem; margin-top: 4px; }
.hub-notif-game { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; margin-top: 1px; }

footer {
    padding: 20px 0 40px;
}
footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Mobile Tweaks */
@media (max-width: 400px) {
    .apps-grid { gap: 12px; }
    .page-title { font-size: 1.4rem; }
}
/* Custom Locker CSS */
.og-locker-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.og-locker-modal {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    animation: lockerPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes lockerPopIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.og-locker-header {
    background: linear-gradient(135deg, #1f2937, #111827);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.og-locker-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.og-locker-header p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.4;
}

.og-offers-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 50vh;
    overflow-y: auto;
}

.og-offer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.og-offer-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.og-offer-icon img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.og-offer-details {
    flex: 1;
}

.og-offer-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.og-offer-details p {
    font-size: 0.75rem;
    color: #9ca3af;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.og-offer-action span {
    background: #10b981;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
}

.og-locker-footer {
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.og-locker-footer p {
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.og-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: ogPulse 1.5s infinite;
}

@keyframes ogPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.og-loader {
    text-align: center;
    color: #9ca3af;
    padding: 30px 0;
    font-size: 0.9rem;
}

.og-error {
    text-align: center;
    color: #ef4444;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Preloader (Clean Cyber Rewards Theme) & Page Reveal Unveiling
   ========================================================================== */
body:not(.loaded) {
    overflow: hidden !important;
}

body:not(.loaded) main.container,
body:not(.loaded) footer,
body:not(.loaded) #hub-canvas,
body:not(.loaded) .premium-bg,
body:not(.loaded) .ambient-glow,
body:not(.loaded) .glass-overlay,
body:not(.loaded) #hub-live-notif {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

main.container {
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

body:not(.loaded) main.container {
    transform: translateY(28px) scale(0.975);
    filter: blur(8px);
}

body.loaded main.container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

footer,
.premium-bg,
.ambient-glow,
.glass-overlay,
#hub-canvas {
    transition: opacity 0.8s ease;
}

body.loaded footer,
body.loaded .premium-bg,
body.loaded .ambient-glow,
body.loaded .glass-overlay,
body.loaded #hub-canvas {
    opacity: 1;
    visibility: visible;
}

#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #090B10;
    background: radial-gradient(circle at 50% 50%, rgba(109, 93, 252, 0.16) 0%, #090B10 75%);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.jump-loader {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    height: 52px;
}

.jump-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.jump-gem {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    transform: rotate(45deg);
    animation: jumpGem 0.75s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.jump-shadow {
    width: 14px;
    height: 4.5px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
    animation: jumpShadow 0.75s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
}

.gem-1 .jump-gem {
    background: var(--primary);
    box-shadow: 0 0 16px rgba(109, 93, 252, 0.9), 0 0 30px rgba(109, 93, 252, 0.35);
    animation-delay: 0s;
}
.gem-1 .jump-shadow {
    animation-delay: 0s;
}

.gem-2 .jump-gem {
    background: var(--secondary);
    box-shadow: 0 0 16px rgba(228, 77, 255, 0.9), 0 0 30px rgba(228, 77, 255, 0.35);
    animation-delay: 0.16s;
}
.gem-2 .jump-shadow {
    animation-delay: 0.16s;
}

.gem-3 .jump-gem {
    background: var(--accent);
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.9), 0 0 30px rgba(0, 242, 255, 0.35);
    animation-delay: 0.32s;
}
.gem-3 .jump-shadow {
    animation-delay: 0.32s;
}

@keyframes jumpGem {
    0% {
        transform: translateY(0) rotate(45deg) scale(1.15, 0.85);
    }
    20% {
        transform: translateY(-6px) rotate(45deg) scale(0.95, 1.1);
    }
    100% {
        transform: translateY(-26px) rotate(45deg) scale(1, 1);
    }
}

@keyframes jumpShadow {
    0% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.3);
        opacity: 0.15;
    }
}

.preloader-text-wrap {
    margin-top: 18px;
    text-align: center;
}

.preloader-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 3.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    animation: preloaderPulse 1.8s ease-in-out infinite;
}

.preloader-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.preloader-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: preloaderDotPulse 1.4s ease-in-out infinite alternate;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

@keyframes preloaderDotPulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   Cyber Notification Modal (System Announcements)
   ========================================================================== */
.notif-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(5, 8, 15, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.notif-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.notif-modal-card {
    background: linear-gradient(150deg, rgba(20, 24, 38, 0.98), rgba(10, 13, 22, 0.98));
    border: 1px solid rgba(109, 93, 252, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(109, 93, 252, 0.18);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-modal-overlay.active .notif-modal-card {
    transform: scale(1) translateY(0);
}

.notif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.notif-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-modal-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 176, 32, 0.2), rgba(255, 94, 58, 0.18));
    border: 1px solid rgba(255, 176, 32, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-modal-icon-badge svg {
    width: 20px;
    height: 20px;
}

.notif-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.notif-modal-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 3px;
}

.notif-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.notif-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: rotate(90deg);
}

.notif-modal-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.notif-item-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-item-text {
    flex: 1;
}

.notif-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.notif-item-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.notif-highlight {
    color: #00f2ff;
    font-weight: 700;
}

.notif-modal-footer {
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
}

.notif-ack-btn {
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6d5dfc, #00f2ff);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(109, 93, 252, 0.35);
    transition: all 0.2s ease;
}

.notif-ack-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(109, 93, 252, 0.55);
}
/* ========================================================
   MOBILE APP-FEEL TOUCH & PERFORMANCE ENHANCEMENTS (v21)
   ======================================================== */
* {
    -webkit-tap-highlight-color: transparent;
}

button, a, .game-card, .store-btn, .hero-btn {
    touch-action: manipulation;
}

@media (max-width: 480px) {
    body {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .store-top-bar {
        padding-top: max(8px, env(safe-area-inset-top));
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .game-card {
        padding: 10px 8px !important;
        border-radius: 12px !important;
    }
    .store-btn {
        min-height: 42px !important;
    }
}
