/* ============================================================
   KINGSCAR GAMING ZONE - ULTIMATE STYLESHEET
   Crafted for Faiez (KINGSCAR) - Powered by Modern Cyber Aesthetics
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Press+Start+2P&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(16, 21, 38, 0.75);
    --bg-card-border: rgba(0, 243, 255, 0.25);
    --neon-cyan: #00f3ff;
    --neon-gold: #ffd700;
    --neon-purple: #b026ff;
    --neon-pink: #ff007f;
    --neon-green: #00ff66;
    --text-main: #f0f4fc;
    --text-muted: #8b9bb4;
    --font-heading: 'Orbitron', sans-serif;
    --font-arcade: 'Press Start 2P', monospace;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Cyber Grid background effect */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--neon-gold));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 60%, var(--neon-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
}

.nav-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.audio-btn {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    touch-action: manipulation;
}

.audio-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.audio-btn .state-on {
    color: var(--neon-green);
}
.audio-btn .state-off {
    color: var(--neon-pink);
}

/* Hamburger Button (Mobile) */
.nav-hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 42px;
    height: 40px;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 8px 9px;
    cursor: pointer;
    transition: all 0.25s ease;
    touch-action: manipulation;
}

.nav-hamburger-btn:hover,
.nav-hamburger-btn:active {
    background: rgba(0, 243, 255, 0.25);
    box-shadow: 0 0 12px var(--neon-cyan);
}

.nav-hamburger-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 7, 14, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 198;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Nav Drawer Panel */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: #090e1c;
    border-left: 2px solid var(--neon-cyan);
    box-shadow: -10px 0 40px rgba(0, 243, 255, 0.25);
    z-index: 199;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    margin-bottom: 1.5rem;
}

.mobile-drawer-close {
    background: rgba(255, 0, 85, 0.15);
    border: 1px solid #ff0055;
    color: #ff0055;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover,
.mobile-drawer-close:active {
    background: #ff0055;
    color: #fff;
    box-shadow: 0 0 15px #ff0055;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sub);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(0, 243, 255, 0.12);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateX(6px);
}

.mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.mobile-drawer-status {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid var(--neon-gold);
    color: var(--neon-gold);
    padding: 0.35rem 0.9rem;
    border-radius: 30px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title .neon-gold {
    color: var(--neon-gold);
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.hero-title .neon-blue {
    color: var(--neon-cyan);
    text-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-family: var(--font-sub);
    font-weight: 600;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cyber-btn.primary {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, #0088ff 100%);
    color: #050811;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.cyber-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
}

.cyber-btn.secondary {
    background: rgba(255, 215, 0, 0.1);
    color: var(--neon-gold);
    border: 1px solid var(--neon-gold);
}

.cyber-btn.secondary:hover {
    background: var(--neon-gold);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--neon-gold);
}

/* Gamer ID Card (Hero Right) */
.hero-card-wrapper {
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 3D Hologram Stage */
.hologram-stage {
    background: radial-gradient(circle at center, rgba(16, 25, 55, 0.7) 0%, rgba(8, 11, 20, 0.95) 100%);
    border: 2px solid rgba(0, 243, 255, 0.4);
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 243, 255, 0.25);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hologram-hud-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-bottom: 0.5rem;
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
    padding-bottom: 0.5rem;
}

.hud-badge {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

.hologram-canvas-wrap {
    width: 100%;
    height: 340px;
    position: relative;
    cursor: grab;
    touch-action: none; /* Allows smooth 3D touch orbit and pinch zoom without scrolling */
    user-select: none;
    -webkit-user-select: none;
}

.hologram-canvas-wrap:active {
    cursor: grabbing;
}

#three-canvas-container {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

#three-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    touch-action: none;
}

.model-selector-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.8rem;
    width: 100%;
}

.model-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.25);
    color: var(--text-muted);
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    touch-action: manipulation;
}

.model-btn:hover {
    border-color: var(--neon-cyan);
    color: #fff;
    transform: translateY(-2px);
}

.model-btn.active {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.hologram-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    font-family: var(--font-sub);
    text-align: center;
}

.gamer-card {
    background: linear-gradient(145deg, rgba(20, 26, 48, 0.85) 0%, rgba(10, 14, 28, 0.95) 100%);
    border: 2px solid rgba(0, 243, 255, 0.35);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 243, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
    pointer-events: none;
    transform: rotate(30deg);
}

.gamer-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.gamer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 2px solid var(--neon-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.gamer-id-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 1px;
}

.gamer-tag {
    color: var(--neon-cyan);
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.1rem;
}

.gamer-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge.vip {
    background: rgba(255, 215, 0, 0.18);
    color: var(--neon-gold);
    border-color: var(--neon-gold);
}

.gamer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.2rem;
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.stat-lbl {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.gamer-quote {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-left: 3px solid var(--neon-cyan);
    padding-left: 0.8rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: #fff;
    letter-spacing: 1px;
}

/* ============================================================
   FAVOURITE GAMES SHOWCASE (Minecraft, Roblox, FIFA)
   ============================================================ */
.games-showcase {
    padding: 5rem 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--bg-card-border);
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-header-art {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Game Card Themes */
.game-card.minecraft {
    border-color: rgba(72, 175, 87, 0.4);
}
.game-card.minecraft .card-header-art {
    background: linear-gradient(135deg, #1b3a1d 0%, #2e5932 50%, #48af57 100%);
}
.game-card.minecraft:hover {
    border-color: #48af57;
    box-shadow: 0 0 30px rgba(72, 175, 87, 0.35);
}

.game-card.roblox {
    border-color: rgba(255, 68, 68, 0.4);
}
.game-card.roblox .card-header-art {
    background: linear-gradient(135deg, #440a0a 0%, #881515 50%, #e62222 100%);
}
.game-card.roblox:hover {
    border-color: #ff4444;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.35);
}

.game-card.fifa {
    border-color: rgba(255, 215, 0, 0.4);
}
.game-card.fifa .card-header-art {
    background: linear-gradient(135deg, #3d2f02 0%, #755a06 50%, #ffd700 100%);
}
.game-card.fifa:hover {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.35);
}

/* Popular Games Themes */
.game-card.freefire {
    border-color: rgba(255, 102, 0, 0.4);
}
.game-card.freefire .card-header-art {
    background: linear-gradient(135deg, #421600 0%, #872800 50%, #ff6600 100%);
}
.game-card.freefire:hover {
    border-color: #ff6600;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.35);
}

.game-card.brawlstars {
    border-color: rgba(255, 204, 0, 0.4);
}
.game-card.brawlstars .card-header-art {
    background: linear-gradient(135deg, #2b1f00 0%, #704f00 50%, #ffcc00 100%);
}
.game-card.brawlstars:hover {
    border-color: #ffcc00;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.35);
}

.game-card.cod {
    border-color: rgba(74, 144, 226, 0.4);
}
.game-card.cod .card-header-art {
    background: linear-gradient(135deg, #101c26 0%, #1f3747 50%, #3a6b8c 100%);
}
.game-card.cod:hover {
    border-color: #4a90e2;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.35);
}

.game-card.subway {
    border-color: rgba(0, 200, 255, 0.4);
}
.game-card.subway .card-header-art {
    background: linear-gradient(135deg, #003366 0%, #0066cc 50%, #00ccff 100%);
}
.game-card.subway:hover {
    border-color: #00ccff;
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.35);
}

.game-card.templerun {
    border-color: rgba(205, 133, 63, 0.4);
}
.game-card.templerun .card-header-art {
    background: linear-gradient(135deg, #3d2314 0%, #6e4023 50%, #cd853f 100%);
}
.game-card.templerun:hover {
    border-color: #cd853f;
    box-shadow: 0 0 30px rgba(205, 133, 63, 0.35);
}

.game-card.coc {
    border-color: rgba(176, 38, 255, 0.4);
}
.game-card.coc .card-header-art {
    background: linear-gradient(135deg, #36074a 0%, #68158c 50%, #b026ff 100%);
}
.game-card.coc:hover {
    border-color: #b026ff;
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.35);
}

.freefire .game-role-badge { background: rgba(255, 102, 0, 0.2); color: #ff8833; border: 1px solid #ff6600; }
.brawlstars .game-role-badge { background: rgba(255, 204, 0, 0.2); color: #ffd633; border: 1px solid #ffcc00; }
.cod .game-role-badge { background: rgba(74, 144, 226, 0.2); color: #6ba4e8; border: 1px solid #4a90e2; }
.subway .game-role-badge { background: rgba(0, 204, 255, 0.2); color: #33d6ff; border: 1px solid #00ccff; }
.templerun .game-role-badge { background: rgba(205, 133, 63, 0.2); color: #dfa063; border: 1px solid #cd853f; }
.coc .game-role-badge { background: rgba(176, 38, 255, 0.2); color: #c45eff; border: 1px solid #b026ff; }

.game-card-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.game-card-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.game-role-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    width: fit-content;
}

.minecraft .game-role-badge { background: rgba(72, 175, 87, 0.2); color: #48af57; border: 1px solid #48af57; }
.roblox .game-role-badge { background: rgba(255, 68, 68, 0.2); color: #ff6666; border: 1px solid #ff4444; }
.fifa .game-role-badge { background: rgba(255, 215, 0, 0.2); color: #ffd700; border: 1px solid #ffd700; }

.game-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.game-card-specs {
    list-style: none;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card-specs li {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.game-card-specs li:last-child {
    border-bottom: none;
}
.game-card-specs .spec-label {
    color: var(--text-muted);
}
.game-card-specs .spec-val {
    font-weight: 600;
    color: #fff;
}

/* ============================================================
   KINGSCAR ARCADE (3 PLAYABLE MINI-GAMES)
   ============================================================ */
.arcade-section {
    padding: 5rem 0;
    background: rgba(10, 14, 25, 0.5);
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.arcade-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.game-tab-btn {
    background: rgba(20, 26, 45, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--text-muted);
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.game-tab-btn:hover {
    color: #fff;
    border-color: var(--neon-cyan);
}

.game-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2) 0%, rgba(176, 38, 255, 0.2) 100%);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.game-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.game-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Arcade Console Box */
.arcade-console {
    background: #0d111d;
    border: 2px solid rgba(0, 243, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    max-width: 820px;
    margin: 0 auto;
}

/* Runner Game UI */
.runner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.runner-scoreboard {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-bottom: 1rem;
    font-family: var(--font-arcade);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    flex-wrap: wrap;
    gap: 0.6rem;
}

.runner-stage {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 600 / 260;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.25);
    touch-action: manipulation;
}

#runner-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #0b0f19;
    touch-action: manipulation;
}

/* Snake Game UI */
.snake-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.snake-scoreboard {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
    font-family: var(--font-arcade);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.score-box .num {
    color: var(--neon-cyan);
}
.high-box .num {
    color: var(--neon-gold);
}

.snake-stage {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(0, 243, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.25);
    touch-action: none; /* Prevents scroll while swiping to control snake */
}

#snake-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #080b14;
    touch-action: none;
}

.snake-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 15, 0.88);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
    padding: 1.5rem;
    transition: opacity 0.3s ease;
}

.snake-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.snake-overlay h3 {
    font-family: var(--font-arcade);
    font-size: 1.2rem;
    color: #ff0055;
    line-height: 1.5;
}

/* D-Pad for Snake */
.dpad-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.dpad-row {
    display: flex;
    gap: 0.4rem;
}

.dpad-btn {
    width: 55px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #fff;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dpad-btn:active {
    background: var(--neon-cyan);
    color: #000;
    transform: scale(0.92);
}

/* Clicker Tycoon UI */
.clicker-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.clicker-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.coins-counter-box {
    margin-bottom: 1.5rem;
}

.coins-label {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.coins-val {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--neon-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.coins-rates {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 1rem;
    color: var(--neon-cyan);
}

.clicker-target-wrap {
    position: relative;
    margin: 1.5rem 0;
}

.clicker-crown {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe600 0%, #b8860b 80%);
    border: 4px solid var(--neon-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.6);
    transition: transform 0.1s ease;
}

.clicker-crown:hover {
    transform: scale(1.05);
}

.clicker-crown.punch {
    transform: scale(0.88);
}

.click-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-sub);
}

.click-floating-text {
    position: absolute;
    pointer-events: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--neon-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: floatUp 0.8s ease-out forwards;
    z-index: 10;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-70px) scale(1.3); opacity: 0; }
}

.clicker-shop h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--neon-cyan);
}

.upgrades-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.upgrade-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.upgrade-btn.affordable {
    border-color: rgba(0, 243, 255, 0.4);
    background: rgba(0, 243, 255, 0.08);
}

.upgrade-btn.affordable:hover {
    border-color: var(--neon-cyan);
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.25);
}

.upgrade-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.up-icon {
    font-size: 2rem;
}

.up-info {
    flex-grow: 1;
}

.up-title {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.05rem;
}

.up-count {
    color: var(--neon-cyan);
    font-size: 0.85rem;
}

.up-perks {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.up-price {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--neon-gold);
}

/* Reflex Reaction Tester UI */
.reaction-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.reaction-stats-bar {
    margin-bottom: 1.5rem;
    font-family: var(--font-sub);
    font-size: 1.2rem;
    font-weight: 700;
}

.reaction-card {
    width: 100%;
    min-height: 280px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
    padding: 2rem;
    border: 2px dashed rgba(0, 243, 255, 0.4);
    background: rgba(20, 26, 45, 0.5);
}

.reaction-card:hover {
    transform: scale(1.01);
}

.reaction-card.waiting {
    background: #7a1515;
    border: 2px solid #ff3333;
    box-shadow: 0 0 35px rgba(255, 51, 51, 0.5);
}

.reaction-card.ready {
    background: #0b7a2d;
    border: 2px solid #00ff66;
    box-shadow: 0 0 45px rgba(0, 255, 102, 0.8);
    animation: flashGreen 0.2s infinite alternate;
}

@keyframes flashGreen {
    from { box-shadow: 0 0 30px #00ff66; }
    to { box-shadow: 0 0 55px #00ff66; }
}

.reaction-card.early {
    background: #4a1212;
    border: 2px solid #ff4444;
}

.reaction-card.win {
    background: rgba(0, 243, 255, 0.15);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.4);
}

.reaction-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.reaction-status {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.reaction-sub {
    font-family: var(--font-sub);
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ============================================================
   ACHIEVEMENTS / TROPHY WALL
   ============================================================ */
.achievements-section {
    padding: 5rem 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
}

.achievement-card.unlocked {
    border-color: var(--neon-gold);
    background: rgba(255, 215, 0, 0.06);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.ach-icon {
    font-size: 2.2rem;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ach-info h4 {
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.ach-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ach-status {
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--font-sub);
    font-weight: 700;
    color: var(--neon-cyan);
    margin-top: 0.3rem;
}

.achievement-card.unlocked .ach-status {
    color: var(--neon-gold);
}

/* Toast Notification for Achievements */
.achievement-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f1526;
    border: 2px solid var(--neon-gold);
    border-radius: 16px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.5);
    z-index: 999;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 2.4rem;
}

.toast-tag {
    font-size: 0.7rem;
    font-family: var(--font-heading);
    color: var(--neon-gold);
    letter-spacing: 1px;
}

.toast-body h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
}

.toast-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   CHALLENGE FAIEZ / CONTACT SECTION
   ============================================================ */
.challenge-section {
    padding: 5rem 0 7rem;
}

.challenge-card {
    background: linear-gradient(135deg, rgba(16, 21, 38, 0.9) 0%, rgba(10, 14, 25, 0.95) 100%);
    border: 2px solid rgba(0, 243, 255, 0.25);
    border-radius: 24px;
    padding: 3rem;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px; /* 16px prevents iOS Safari auto-zoom on input focus */
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

select.form-control {
    cursor: pointer;
}

select.form-control option {
    background: #0e1220;
    color: #fff;
}

.challenge-msg {
    margin-top: 1.5rem;
    padding: 1rem 1.4rem;
    border-radius: 12px;
    display: none;
    font-family: var(--font-sub);
    font-size: 1.1rem;
}

.challenge-msg.show {
    display: block;
}

.challenge-msg.success {
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--neon-green);
    color: #fff;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #05070c;
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Play Game Button inside Popular Cards */
.play-game-btn {
    width: 100%;
    margin-top: 1.2rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15) 0%, rgba(255, 215, 0, 0.15) 100%);
    border: 1px solid var(--neon-cyan);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.play-game-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: translateY(-2px);
}

/* Game Launcher Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 16, 0.94);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-modal.open {
    display: flex;
    opacity: 1;
}

.game-modal-content {
    background: #0d1222;
    border: 2px solid var(--neon-cyan);
    border-radius: 20px;
    width: 100%;
    max-width: 950px;
    height: 90vh;
    max-height: 750px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.4);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-header-left h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
}

.modal-close-btn {
    background: rgba(255, 0, 85, 0.25);
    border: 2px solid #ff0055;
    color: #fff;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
}

.modal-close-btn:hover {
    background: #ff0055;
    color: #fff;
    box-shadow: 0 0 25px #ff0055;
    transform: scale(1.04);
}

.game-modal-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #000;
}

#modal-game-frame {
    width: 100%;
    height: 100%;
    border: none;
    flex-grow: 1;
}

.game-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(10, 14, 25, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.game-modal-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 65%;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* Secret God Mode Effect */
body.god-mode-rainbow {
    animation: rainbowBg 4s infinite linear;
}

@keyframes rainbowBg {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ============================================================
   RESPONSIVE DESIGN & MOBILE VIEW PERFECTION
   Supports All Phones (iOS/Android), Tablets, Safe Areas & Touch
   ============================================================ */

@media (max-width: 960px) {
    .nav-links {
        display: none; /* Replaced by Cyber Mobile Drawer */
    }

    .nav-hamburger-btn {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: clamp(2.2rem, 5.5vw, 3rem);
        line-height: 1.18;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
        max-width: 620px;
    }

    .hero-ctas {
        justify-content: center;
        gap: 1rem;
    }

    .hero-card-wrapper {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .clicker-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .arcade-console {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .brand-logo .logo-text {
        font-size: 1.25rem;
        letter-spacing: 1.5px;
    }

    .brand-logo .logo-icon {
        font-size: 1.5rem;
    }

    .audio-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-ctas .cyber-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.4rem;
        font-size: 0.95rem;
    }

    .hologram-stage {
        padding: 1rem;
        border-radius: 18px;
    }

    .hologram-canvas-wrap {
        height: 310px;
    }

    .model-selector-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .model-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Arcade Tabs 2x2 Grid on Mobile */
    .arcade-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin-bottom: 1.8rem;
    }

    .game-tab-btn {
        padding: 0.75rem 0.8rem;
        font-size: 0.82rem;
        justify-content: center;
        text-align: center;
        border-radius: 10px;
    }

    /* Arcade Games Stage Adjustments */
    .arcade-console {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .runner-scoreboard {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        justify-content: space-around;
    }

    #runner-jump-btn {
        width: 100%;
        justify-content: center;
        padding: 0.95rem;
        font-size: 1.05rem;
    }

    .snake-scoreboard {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .snake-stage {
        max-width: 340px;
    }

    .dpad-container {
        margin-top: 1.2rem;
    }

    .dpad-btn {
        width: 60px;
        height: 52px;
        font-size: 1.3rem;
    }

    .clicker-crown {
        width: 120px;
        height: 120px;
        font-size: 3.5rem;
    }

    .coins-val {
        font-size: 2.2rem;
    }

    .upgrades-list {
        max-height: 340px;
    }

    .challenge-card {
        padding: 2rem 1.4rem;
        border-radius: 18px;
    }

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

    /* Game Launcher Modal on Mobile */
    .game-modal {
        padding: 0.5rem;
    }

    .game-modal-content {
        width: 98vw;
        height: 94vh;
        max-height: none;
        border-radius: 14px;
    }

    .game-modal-header {
        padding: 0.7rem 1rem;
    }

    .modal-header-left h3 {
        font-size: 1.05rem;
    }

    .modal-close-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
    }

    .game-modal-footer {
        padding: 0.6rem 1rem;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .game-modal-footer p {
        max-width: 100%;
        font-size: 0.8rem;
    }

    .game-modal-footer .cyber-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.85rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .hologram-canvas-wrap {
        height: 280px;
    }

    .hologram-stage {
        padding: 0.85rem;
    }

    .model-btn {
        padding: 0.5rem 0.4rem;
        font-size: 0.78rem;
    }

    .hologram-hint {
        font-size: 0.72rem;
    }

    .gamer-card {
        padding: 1rem;
    }

    .gamer-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }

    .stat-item .stat-val {
        font-size: 1rem;
    }

    .stat-item .stat-lbl {
        font-size: 0.68rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .game-card {
        border-radius: 16px;
    }

    .card-header-art {
        height: 125px;
    }

    .game-card-body {
        padding: 1.2rem;
    }

    .arcade-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .game-tab-btn {
        padding: 0.65rem 0.5rem;
        font-size: 0.75rem;
    }

    .arcade-console {
        padding: 1rem 0.75rem;
    }

    .runner-scoreboard {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
    }

    .snake-stage {
        max-width: 100%;
    }

    .reaction-card {
        padding: 2rem 1rem;
        min-height: 190px;
    }

    .reaction-status {
        font-size: 1.3rem;
    }

    .reaction-sub {
        font-size: 0.85rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .challenge-card {
        padding: 1.5rem 1rem;
    }

    .footer-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .brand-logo .logo-text {
        font-size: 1.1rem;
    }

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

    .model-selector-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
    }

    .model-btn {
        font-size: 0.72rem;
        padding: 0.45rem 0.2rem;
    }

    .arcade-tabs {
        grid-template-columns: 1fr;
    }

    .runner-scoreboard {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
}
