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

:root {
    /* Somnia Colors from the logo */
    --somnia-cyan: #00D4FF;
    --somnia-blue: #0080FF;
    --somnia-purple: #6B00E5;
    --somnia-dark-purple: #4A0099;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--somnia-blue) 0%, var(--somnia-purple) 60%, var(--somnia-dark-purple) 100%);
    --gradient-hover: linear-gradient(135deg, var(--somnia-purple) 0%, var(--somnia-blue) 50%, var(--somnia-cyan) 100%);
    
    /* Neutrals */
    --bg-primary: #0A0A0F;
    --bg-secondary: #141419;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, 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: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 0, 229, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-main);
    border-radius: 6px 6px 4px 4px;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(107, 0, 229, 0.3);
}

/* Arcade screen */
.logo-icon::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 14px;
    background: linear-gradient(180deg, #00D4FF 0%, #6B00E5 100%);
    border-radius: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Control panel */
.logo-icon::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px 2px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
}

.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);
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.somi-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.875rem;
}

.somi-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.somi-amount {
    color: var(--somnia-cyan);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.btn-connect {
    background: var(--gradient-main);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-connect.connected {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at top right, rgba(107, 0, 229, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(74, 0, 153, 0.1) 0%, transparent 50%);
}

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(107, 0, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 128, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(107, 0, 229, 0.05) 50%, transparent 100%);
    animation: gradientRotate 15s linear infinite;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
    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-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.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,
        var(--somnia-cyan) 0%,
        var(--somnia-blue) 25%,
        var(--somnia-purple) 50%,
        var(--somnia-blue) 75%,
        var(--somnia-cyan) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 8s ease 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-somi-notice {
    margin-bottom: var(--spacing-md);
}

.somi-notice-text {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    display: inline-block;
}

.somi-notice-text strong {
    color: var(--somnia-cyan);
}

.somi-link {
    color: var(--somnia-cyan);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.somi-link:hover {
    color: var(--somnia-blue);
}

.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: var(--gradient-main);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.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);
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-main);
    opacity: 0.25;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite, pulse 6s ease-in-out infinite;
}

.card-1 {
    width: 500px;
    height: 500px;
    top: 5%;
    right: 5%;
    background: radial-gradient(circle, rgba(107, 0, 229, 0.4) 0%, rgba(0, 128, 255, 0.2) 100%);
    animation: floatDiagonal 12s ease-in-out infinite, pulse 8s ease-in-out infinite;
}

.card-2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 0%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(107, 0, 229, 0.2) 100%);
    animation: floatDiagonal 15s ease-in-out infinite reverse, pulse 7s ease-in-out infinite;
}

.card-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    right: 25%;
    background: radial-gradient(circle, rgba(74, 0, 153, 0.35) 0%, rgba(0, 128, 255, 0.15) 100%);
    animation: floatCircle 10s ease-in-out infinite, pulse 9s ease-in-out infinite;
}

/* Floating orbs for fluid effect */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.4;
}

.orb-1 {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 10%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.6) 0%, transparent 70%);
    animation: floatSlow 18s ease-in-out infinite, pulse 5s ease-in-out infinite;
}

.orb-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
    background: radial-gradient(circle, rgba(107, 0, 229, 0.7) 0%, transparent 70%);
    animation: floatMedium 14s ease-in-out infinite, pulse 6s ease-in-out infinite;
}

.orb-3 {
    width: 120px;
    height: 120px;
    bottom: 25%;
    left: 20%;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.5) 0%, transparent 70%);
    animation: floatFast 10s ease-in-out infinite, pulse 4s ease-in-out infinite;
}

.orb-4 {
    width: 80px;
    height: 80px;
    top: 35%;
    left: 50%;
    background: radial-gradient(circle, rgba(74, 0, 153, 0.6) 0%, transparent 70%);
    animation: floatCircle 16s ease-in-out infinite, pulse 7s ease-in-out infinite;
}

.orb-5 {
    width: 90px;
    height: 90px;
    bottom: 40%;
    right: 8%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.5) 0%, transparent 70%);
    animation: floatSlow 20s ease-in-out infinite reverse, pulse 5.5s ease-in-out infinite;
}

/* Add purple accent gradient in background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top right, rgba(107, 0, 229, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(74, 0, 153, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse at bottom left, rgba(0, 128, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 10s ease-in-out infinite reverse;
}

/* ===== 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: 32px;
    background: rgba(12, 18, 34, 0.72);
    backdrop-filter: blur(12px);
}

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

.wave-wrapper.wave-2 {
    background: rgba(8, 14, 28, 0.68);
}

.wave-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.85), rgba(107, 0, 229, 0.85));
    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(0, 212, 255, 0.18), rgba(12, 18, 34, 0));
    filter: blur(45px);
    z-index: -1;
}

.wave-tab {
    position: absolute;
    top: 50%;
    left: -86px;
    transform: translateY(-50%);
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.95), rgba(107, 0, 229, 0.95));
    border-radius: 18px 0 0 18px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #02060f;
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.35);
}

.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: linear-gradient(135deg, rgba(255, 72, 208, 0.95), rgba(65, 246, 255, 0.95));
    box-shadow: 0 12px 36px rgba(255, 72, 208, 0.35);
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.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(65, 246, 255, 0.35);
}

.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(65, 246, 255, 0.85);
    padding: 1.4rem 1rem;
    background: radial-gradient(circle at 50% 50%, rgba(65, 246, 255, 0.25), rgba(65, 246, 255, 0));
}

.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(4, 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: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: rgba(107, 0, 229, 0.4);
    box-shadow: 0 20px 60px rgba(107, 0, 229, 0.3);
}

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

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

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

.bushido-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.spacepilot-bg {
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.4) 0%, transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 45%),
        linear-gradient(135deg, #020024 0%, #090979 35%, #00d4ff 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(4, 10, 26, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.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 25px rgba(109, 255, 140, 0.6));
    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);
}

.placeholder-bg-1 {
    background: linear-gradient(135deg, var(--somnia-purple) 0%, var(--somnia-dark-purple) 100%);
}

.placeholder-bg-2 {
    background: linear-gradient(135deg, var(--somnia-blue) 0%, var(--somnia-purple) 100%);
}

.snake-bg {
    background:
        radial-gradient(circle at 25% 30%, rgba(0, 255, 234, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 45%, rgba(255, 255, 255, 0.2) 0%, transparent 55%),
        linear-gradient(135deg, #071227 0%, #08223d 50%, #091e3a 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.snake-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 255, 234, 0.6);
    box-shadow: 0 0 12px rgba(0, 255, 234, 0.8);
    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(0, 255, 234, 0.7));
    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.85) 0%, rgba(0, 255, 234, 0.55) 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, #ffffff 0%, rgba(0, 255, 234, 0.7) 100%);
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.8);
}

.game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-main);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.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-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.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: 1rem;
    background: var(--gradient-main);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 0, 229, 0.6);
    color: white;
}

.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: linear-gradient(180deg, transparent 0%, rgba(107, 0, 229, 0.03) 50%, transparent 100%);
    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(107, 0, 229, 0.4);
    box-shadow: 0 15px 40px rgba(107, 0, 229, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.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(107, 0, 229, 0.4);
    box-shadow: 0 20px 60px rgba(107, 0, 229, 0.3);
}

.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;
}

.gallery-view-btn {
    padding: 0.75rem 2rem;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    color: var(--somnia-cyan);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

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

.comparison-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.comparison-card.featured {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(107, 0, 229, 0.05) 100%);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

.comparison-header.without h3 {
    color: var(--text-secondary);
}

.comparison-header.with h3 {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-premium {
    background: var(--gradient-main);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.comparison-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-features li {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-features li:last-child {
    border-bottom: none;
}

.comparison-features li.limited {
    color: var(--text-secondary);
}

.comparison-features li.premium {
    color: var(--somnia-cyan);
    font-weight: 500;
}

.somi-actions {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.somi-balance-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
}

.balance-header h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.balance-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Courier New', monospace;
}

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

.buy-somi-section {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
}

.buy-somi-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.buy-somi-section > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-buy-somi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.btn-buy-somi:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.4);
}

.btn-buy-somi.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-icon {
    font-size: 1.5rem;
}

.btn-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--somnia-cyan);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.buy-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

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

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.about-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.about-stat h4 {
    font-size: 2rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-stat p {
    font-size: 0.875rem;
    margin: 0;
}

.network-visualization {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-node {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-main);
    opacity: 0.6;
    filter: blur(30px);
}

.node-1 {
    top: 10%;
    left: 10%;
    animation: pulse 3s ease-in-out infinite;
}

.node-2 {
    top: 10%;
    right: 10%;
    animation: pulse 3s ease-in-out infinite 0.5s;
}

.node-3 {
    bottom: 10%;
    left: 10%;
    animation: pulse 3s ease-in-out infinite 1s;
}

.node-4 {
    bottom: 10%;
    right: 10%;
    animation: pulse 3s ease-in-out infinite 1.5s;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Footer logo arcade machine styling */
.footer .logo-icon {
    width: 32px;
    height: 32px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--somnia-cyan);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--somnia-cyan);
    transform: translateX(4px);
}

.social-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

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

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== 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:not(.btn-connect):not(.somi-link) {
        display: none;
    }
    
    .wallet-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .somi-balance {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .btn-connect {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .somi-notice-text {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .games-grid,
    .features-grid,
    .somi-comparison,
    .collection-gallery {
        grid-template-columns: 1fr;
    }
    
    .somi-actions {
        max-width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .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: var(--somnia-cyan);
    color: var(--bg-primary);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-hover);
}

.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;
}

