/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern B&W palette */
    --soneium-black: #000000;
    --soneium-white: #FFFFFF;
    --soneium-silver: #888888;
    --gray-100: #0a0a0a;
    --gray-200: #141414;
    --gray-300: #1f1f1f;
    --gray-400: #2a2a2a;
    --gray-500: #666666;
    --gray-600: #999999;
    --gray-700: #cccccc;

    /* B&W gradients */
    --gradient-main: linear-gradient(135deg, #0a0a0a 0%, #1f1f1f 100%);
    --gradient-arcade: linear-gradient(180deg, #000000 0%, #141414 100%);

    /* Neutrals */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.55);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigation ===== */
.navbar {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0 0;
    z-index: 100;
}

.navbar .nav-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-content {
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
    color: #fff;
}

.logo-mark {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #fff;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ===== Hero Section - Arcade Screen ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: relative;
    background: #0a0a0a;
}

.hero-screen {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16/10;
    min-height: 420px;
    max-height: 85vh;
    border: 4px solid #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 2px #000,
        inset 0 0 80px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 255, 255, 0.08),
        0 20px 80px rgba(0, 0, 0, 0.6);
}

.hero-game-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.hero-screen-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-scanlines {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: var(--spacing-md);
    line-height: 0.95;
    text-transform: uppercase;
}

.hero-powered {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.gradient-text {
    background: linear-gradient(90deg, #fff 0%, #888 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s linear infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #FFF;
    color: #000;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid #FFF;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary.btn-coming-soon {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.btn-secondary.btn-coming-soon:hover {
    opacity: 0.6;
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}


/* Add purple accent gradient in background */
/* body::before removed to fix red line artifact */

/* body::after removed to fix red line artifact */

/* ===== Games Section ===== */
.games-section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.wave-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 2.5rem;
    border-radius: 24px;
    background: var(--gray-200);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.wave-wrapper+.wave-wrapper {
    margin-top: 4rem;
}

.wave-wrapper.wave-2 {
    background: var(--gray-100);
    border-color: rgba(255, 255, 255, 0.06);
}

.wave-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.wave-wrapper::after {
    content: '';
    position: absolute;
    inset: -25px;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04), transparent 70%);
    filter: blur(45px);
    z-index: -1;
}

.wave-tab {
    position: absolute;
    top: 50%;
    left: -86px;
    transform: translateY(-50%);
    padding: 0.8rem 1.6rem;
    background: #fff;
    color: #000;
    border-radius: 18px 0 0 18px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 700;
}

.wave-tab.top {
    top: -2.6rem;
    left: 2.5rem;
    transform: none;
    border-radius: 14px 14px 0 0;
    padding: 0.65rem 1.6rem;
}

.wave-wrapper.wave-2 .wave-tab {
    background: var(--gray-400);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.wave-wrapper .games-grid {
    position: relative;
    z-index: 2;
}

.wave-wrapper.wave-2 .games-grid.coming .game-card {
    opacity: 0.75;
}

.game-card.classified .game-info {
    text-align: center;
}

.classified-bg {
    background: linear-gradient(200deg, rgba(10, 18, 36, 0.95), rgba(3, 7, 16, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.classified-bg::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.classified-holo {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    padding: 1.4rem 1rem;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent);
}

.classified-holo .classified-title {
    display: block;
    font-size: 1.2rem;
}

.classified-holo .classified-sub {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

@media (max-width: 1280px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.game-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #FFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFF, transparent);
    opacity: 0;
    transition: 0.3s;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card.featured {
    grid-column: span 1;
}

.game-card.classified {
    grid-column: span 1;
}

.game-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.spacepilot-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 55%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.spacepilot-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.35;
    transform: translate3d(0, 0, 0);
    animation: starDrift 30s linear infinite;
}

.spacepilot-bg::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    bottom: -20px;
    right: -40px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0%, rgba(0, 128, 255, 0.15) 60%, transparent 100%);
    filter: blur(6px);
    opacity: 0.6;
}

.spacepilot-hud {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 320px;
    padding: 1.5rem 1.25rem;
    backdrop-filter: blur(12px);
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
}

.spacepilot-hud .hud-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
}

.spacepilot-hud .hud-subtitle {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.spacepilot-ship {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.15));
    animation: shipFloat 6s ease-in-out infinite;
}

.spacepilot-ship svg {
    width: 100%;
    height: auto;
}

.game-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-cover-image {
    transform: scale(1.1);
}

/* Quake card – blood outline & trailer */
.game-card.quake-card {
    border: 2px solid #8b0000;
    box-shadow: 0 0 0 1px rgba(139, 0, 0, 0.4), 0 0 20px rgba(139, 0, 0, 0.2), inset 0 0 30px rgba(139, 0, 0, 0.05);
}

.game-card.quake-card:hover {
    border-color: #b22222;
    box-shadow: 0 0 0 2px rgba(178, 34, 34, 0.5), 0 20px 60px rgba(139, 0, 0, 0.35), inset 0 0 40px rgba(139, 0, 0, 0.08);
}

/* Quake highlight – full width, top, wider layout */
.game-card.quake-highlight {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    max-width: 100%;
}

.game-card.quake-highlight .game-image.quake-bg {
    height: 320px;
    min-height: 280px;
}

.game-card.quake-highlight .game-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .game-card.quake-highlight {
        grid-template-columns: 1fr;
    }

    .game-card.quake-highlight .game-image.quake-bg {
        height: 250px;
    }
}

.quake-bg {
    background: linear-gradient(180deg, #1a0a0a 0%, #2d1515 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.quake-trailer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0d0505;
}

.quake-logo-wrap {
    margin-bottom: 0.5rem;
}

.quake-logo {
    height: 32px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(139, 0, 0, 0.5));
}

.placeholder-bg-1 {
    background: linear-gradient(135deg, #222 0%, #000 100%);
}

.placeholder-bg-2 {
    background: linear-gradient(135deg, #222 0%, #0a0a0a 100%);
}

.arcade-bot-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.arcade-bot-label {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-top: 5px;
    font-size: 20px;
    letter-spacing: 2px;
    z-index: 2;
}

.snake-bg {
    background:
        radial-gradient(circle at 25% 30%, rgba(255,255,255,0.06) 0%, transparent 60%),
        linear-gradient(135deg, #0a0a0a 0%, #151515 50%, #0d0d0d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.snake-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    animation: gridPulse 6s ease-in-out infinite;
}

.snake-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    box-shadow: 0 0 12px rgba(255,255,255,0.3);
    animation: nodeFlicker 3s ease-in-out infinite alternate;
}

.snake-node-1 {
    top: 28%;
    left: 22%;
    animation-delay: 0s;
}

.snake-node-2 {
    top: 45%;
    right: 18%;
    animation-delay: 0.8s;
}

.snake-node-3 {
    bottom: 26%;
    left: 35%;
    animation-delay: 1.5s;
}

.snake-node-4 {
    bottom: 18%;
    right: 30%;
    animation-delay: 2.2s;
}

.snake-node-5 {
    top: 15%;
    right: 40%;
    animation-delay: 2.8s;
}

.snake-avatar {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.25));
    animation: snakeSway 4s ease-in-out infinite;
}

.snake-segment {
    display: block;
    width: 14px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
    position: relative;
}

.snake-segment::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.35);
}

.snake-segment.glow {
    height: 70px;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FFF;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.coming-soon-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.game-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.game-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-play {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: #FFF;
    border: none;
    border-radius: 2px;
    color: #000;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    letter-spacing: 0.1em;
}

.btn-play:hover {
    background: var(--gray-600);
    color: #000;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.btn-play.disabled {
    pointer-events: none;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.game-card.coming-soon {
    opacity: 0.6;
}

/* ===== Features Section ===== */
.features-section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 2px solid #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.icon-speed::after {
    content: '⚡';
}

.icon-secure::after {
    content: '🛡️';
}

.icon-rewards::after {
    content: '🎁';
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
}

/* ===== Collection Gallery Section ===== */
.collection-section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.collection-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gallery-view-btn {
    padding: 0.75rem 2rem;
    background: #FFF;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.gallery-view-btn:hover {
    background: var(--gray-600);
}

/* ===== About Section ===== */
.about-section {
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 1;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.75;
    max-width: 90%;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.about-stat {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.about-stat:hover {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.about-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-stat-icon svg {
    width: 100%;
    height: 100%;
}

.about-stat h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: #fff;
    letter-spacing: 0.02em;
}

.about-stat p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.network-visualization {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.network-dot {
    animation: networkPulse 2.5s ease-in-out infinite;
}

.network-dot-2 { animation-delay: 0.3s; }
.network-dot-3 { animation-delay: 0.6s; }
.network-dot-4 { animation-delay: 0.9s; }

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

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-visual {
        min-height: 220px;
    }

    .network-visualization {
        max-width: 260px;
    }
}

/* ===== Footer: single bar, no dead space ===== */
.footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem var(--spacing-md) 0.75rem;
    position: relative;
    z-index: 1;
}

.footer-bar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    row-gap: 0.6rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.footer-logo:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.footer-logo-mark {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.footer-games {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 0.6rem;
    margin-left: auto;
}

.footer-games a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    transition: color 0.2s ease;
}

.footer-games a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.footer-games a:not(:last-child)::after {
    content: "·";
    margin-left: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes gradientShift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes floatDiagonal {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(60px, 0) scale(1);
    }

    75% {
        transform: translate(30px, 30px) scale(0.9);
    }
}

@keyframes floatCircle {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(40px, -20px) rotate(90deg) scale(1.05);
    }

    50% {
        transform: translate(0, -40px) rotate(180deg) scale(1.1);
    }

    75% {
        transform: translate(-40px, -20px) rotate(270deg) scale(1.05);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-20px, 40px) scale(1.1);
    }

    66% {
        transform: translate(20px, -30px) scale(0.95);
    }
}

@keyframes floatMedium {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 30px) scale(1.15);
    }
}

@keyframes floatFast {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(25px, -25px) scale(1.05);
    }

    50% {
        transform: translate(-15px, -35px) scale(1.1);
    }

    75% {
        transform: translate(-25px, 15px) scale(0.95);
    }
}

@keyframes starDrift {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-40px, 40px, 0);
    }
}

@keyframes shipFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

@keyframes nodeFlicker {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes snakeSway {

    0%,
    100% {
        transform: rotate(-6deg) translateY(0);
    }

    50% {
        transform: rotate(5deg) translateY(-6px);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-links {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .games-grid,
    .features-grid,
    .collection-gallery {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text p {
        max-width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-inner {
        padding: 2rem;
    }

    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-games {
        margin-left: 0;
    }

    .comparison-card {
        padding: 2rem;
    }

    .balance-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 820px) {
    .hud {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .hud-stats {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wave-tab {
        top: -2.4rem;
        left: 50%;
        transform: translate(-50%, 0);
        border-radius: 18px 18px 0 0;
        padding: 0.6rem 1.4rem;
    }

    .wave-tab.top {
        left: 50%;
    }
}

@media (max-width: 520px) {
    .hud-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wave-wrapper {
        padding: 2rem 1.5rem;
    }

    .wave-tab {
        font-size: 0.7rem;
    }

    .controls li {
        font-size: 0.82rem;
    }
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Selection ===== */
::selection {
    background: #FFF;
    color: #000;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.hall-of-fame .game-info {
    text-align: center;
}

.halloffame-bg {
    background: rgba(10, 14, 30, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.halloffame-bg .game-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    opacity: 0.85;
}

.halloffame-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 18, 0.4), rgba(4, 8, 18, 0.85));
}

.hall-of-fame .btn-play.disabled {
    margin-top: 1rem;
}