/* ========================================================
   PureCasualGames.com - Obsidian Studio Design System
   Dual Experience: Desktop Hub & Mobile App UI
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Rubik:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #07090e;
    --bg-surface: #0e1322;
    --bg-card: rgba(18, 24, 43, 0.75);
    --bg-card-hover: rgba(26, 35, 62, 0.9);
    --bg-glass: rgba(15, 22, 38, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.3);

    /* Accents */
    --cyan-glow: #00f2fe;
    --purple-glow: #9d4edd;
    --magenta-glow: #ff007f;
    --amber-gold: #ffb703;
    --green-accent: #00f59b;
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #9d4edd 100%);
    --gradient-accent: linear-gradient(135deg, #ff007f 0%, #7928ca 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Typography */
    --font-heading: 'Outfit', 'Rubik', sans-serif;
    --font-body: 'Outfit', 'Rubik', sans-serif;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Shadows & Glows */
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
    --shadow-glow-purple: 0 0 25px rgba(157, 78, 221, 0.4);
    --shadow-glow-button: 0 4px 20px rgba(0, 242, 254, 0.4), 0 0 40px rgba(157, 78, 221, 0.2);

    /* Transitions & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    color-scheme: dark;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(255, 0, 127, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Top Navigation Bar */
.portal-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 1.5rem;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.logo-badge {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: var(--shadow-glow-cyan);
    position: relative;
    overflow: hidden;
}

.logo-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    animation: shine 4s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    background: linear-gradient(90deg, #fff 40%, var(--cyan-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.35rem;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Nav Links (Desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--cyan-glow);
    font-weight: 600;
}

/* Search Box */
.nav-search {
    position: relative;
    max-width: 280px;
    flex: 1;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem 0.5rem 2.4rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--cyan-glow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    color: #fff;
    border-color: var(--cyan-glow);
    background: rgba(0, 242, 254, 0.1);
}

/* Layout Grid: Main Content + Sidebar */
.main-wrapper {
    max-width: 1440px;
    margin: 1.5rem auto 5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

/* Hero Showcase Section */
.hero-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(20, 28, 50, 0.9) 0%, rgba(10, 14, 25, 0.95) 100%);
    border: 1px solid var(--border-glass);
    padding: 2.2rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-subtle);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-showcase::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--cyan-glow), transparent 60%, var(--purple-glow));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-showcase-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 40%, rgba(157, 78, 221, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-featured {
    background: rgba(255, 0, 127, 0.2);
    border: 1px solid var(--magenta-glow);
    color: #ff3399;
}

.badge-rating {
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid var(--amber-gold);
    color: var(--amber-gold);
}

.badge-plays {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid var(--cyan-glow);
    color: var(--cyan-glow);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 30%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-play-hero {
    background: var(--gradient-primary);
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-glow-button);
    transition: var(--transition-bounce);
    text-decoration: none;
}

.btn-play-hero:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 30px rgba(0, 242, 254, 0.6), 0 0 50px rgba(157, 78, 221, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid var(--border-glass);
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-preview {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.preview-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #151a2e;
    border: 2px solid var(--border-glass);
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.preview-card:hover {
    border-color: var(--cyan-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.preview-card:hover img {
    transform: scale(1.05);
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 14, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
}

.play-bubble {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow-cyan);
    transition: var(--transition-bounce);
}

.preview-card:hover .play-bubble {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Category Filters Bar */
.category-bar-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.category-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0.25rem 0.75rem;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-pill {
    white-space: nowrap;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.category-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.category-pill.active {
    background: var(--gradient-primary);
    color: #000;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 2px 15px rgba(0, 242, 254, 0.35);
}

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

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--cyan-glow);
}

.section-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.section-link:hover {
    color: var(--cyan-glow);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

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

.card-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    background: #111626;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cyan-glow);
}

.card-badge.new {
    color: var(--green-accent);
    border-color: var(--green-accent);
}

.card-badge.hot {
    color: var(--magenta-glow);
    border-color: var(--magenta-glow);
}

.card-info {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--amber-gold);
    font-weight: 600;
}

.card-plays {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-subtle);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.6rem;
}

.widget-title i {
    color: var(--purple-glow);
}

/* Leaderboard List */
.leaderboard-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.leaderboard-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.leaderboard-rank.rank-1 { background: #ffd700; color: #000; }
.leaderboard-rank.rank-2 { background: #c0c0c0; color: #000; }
.leaderboard-rank.rank-3 { background: #cd7f32; color: #000; }

.leaderboard-user {
    flex: 1;
    margin: 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.leaderboard-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan-glow);
}

/* Ad Placement Containers */
.ad-slot-container {
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    text-align: center;
    overflow: hidden;
}

.ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* Game Player Modal / Launcher */
.game-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 7, 12, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.game-modal.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.game-modal-content {
    background: #0d1220;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
    position: relative;
}

.game-modal-header {
    background: rgba(14, 20, 35, 0.9);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}

.game-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.game-header-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.device-switcher-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.device-switcher-btn:hover, .device-switcher-btn.active {
    color: #fff;
    border-color: var(--cyan-glow);
    background: rgba(0, 242, 254, 0.15);
}

.game-frame-container {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: var(--transition-smooth);
}

.game-iframe.mobile-mode {
    max-width: 480px;
    height: 100%;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
}

/* Footer */
.portal-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.8rem;
    line-height: 1.6;
    max-width: 360px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--cyan-glow);
    padding-inline-start: 4px;
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Mobile Bottom Navigation Dock */
.mobile-bottom-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 14, 25, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    padding: 0.5rem 1rem max(0.5rem, env(safe-area-inset-bottom));
}

.dock-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.dock-item i {
    font-size: 1.15rem;
}

.dock-item.active, .dock-item:hover {
    color: var(--cyan-glow);
}

.dock-item.active i {
    filter: drop-shadow(0 0 6px var(--cyan-glow));
}

/* ========================================================
   RESPONSIVE DESIGN: MOBILE VIEW (< 768px)
   ======================================================== */
@media (max-width: 768px) {
    /* Hide Desktop Elements */
    .nav-links, .nav-search, .sidebar {
        display: none !important;
    }

    /* Show Mobile Dock */
    .mobile-bottom-dock {
        display: block;
    }

    body {
        padding-bottom: 75px; /* space for dock */
    }

    .portal-navbar {
        padding: 0.6rem 1rem;
    }

    .main-wrapper {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin-top: 1rem;
        gap: 1.5rem;
    }

    /* Hero Showcase Mobile Optimization */
    .hero-showcase {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
        margin-bottom: 1.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-play-hero {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .preview-card {
        max-width: 260px;
        margin: 0 auto;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    /* Games Grid (Mobile 2 Columns) */
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .card-info {
        padding: 0.65rem;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .card-meta {
        font-size: 0.7rem;
    }

    /* Fullscreen Game Modal on Mobile */
    .game-modal {
        padding: 0;
    }

    .game-modal-content {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        border: none;
    }

    .device-switcher-btn {
        display: none; /* Auto-configured on mobile */
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

/* ========================================================
   COMING SOON CARDS & MODAL STYLES
   ======================================================== */
.card-badge.coming-soon {
    background: rgba(255, 183, 3, 0.18);
    border: 1px solid var(--amber-gold);
    color: var(--amber-gold);
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.25);
}

.coming-soon-card {
    opacity: 0.9;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.12);
}

.coming-soon-card:hover {
    opacity: 1;
    border-style: solid;
    border-color: var(--amber-gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 183, 3, 0.2);
}

.card-status {
    color: var(--amber-gold);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Coming Soon Dialog Modal */
.coming-soon-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.coming-soon-modal.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.coming-soon-card-modal {
    background: linear-gradient(135deg, #111728 0%, #0d1220 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 2.2rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 183, 3, 0.2);
    position: relative;
    overflow: hidden;
}

.coming-soon-card-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-glow), var(--amber-gold), var(--purple-glow));
}

.coming-soon-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid var(--amber-gold);
    color: var(--amber-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.4rem;
    box-shadow: 0 0 25px rgba(255, 183, 3, 0.3);
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.coming-soon-card-modal h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.8rem;
}

.coming-soon-card-modal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.coming-soon-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

