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

:root {
    --primary-color: #0F2027;
    --accent-color: #2C5364;
    --highlight-color: #FFFFFF;
    --glow-color: #00FFC6;
    --background-color: #081C24;
    --text-color: #E0F7FA;
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 32, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 198, 0.3);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--glow-color);
    text-shadow: 0 0 20px var(--glow-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--glow-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--glow-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Enhanced Hero Section with Pure CSS */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;

    background: 
        linear-gradient(to bottom right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9)), 
        url('/images/mainbg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    font-family: sans-serif;
    color: white;
}



/* Animated Grid Background */
.hero-grid-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 198, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 198, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 25% 25%, rgba(0, 255, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(44, 83, 100, 0.1) 0%, transparent 50%);
    background-size: 60px 60px, 60px 60px, 400px 400px, 400px 400px;
    animation: gridFlow 25s linear infinite, gridPulse 8s ease-in-out infinite alternate;
    opacity: 0.8;
}

@keyframes gridFlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-30px, -30px) rotate(0.5deg); }
    50% { transform: translate(-60px, -60px) rotate(0deg); }
    75% { transform: translate(-30px, -30px) rotate(-0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes gridPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Hero Content Layout */
.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--highlight-color) 0%, var(--glow-color) 50%, var(--highlight-color) 100%);
    background-clip: text;
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { 
        filter: drop-shadow(0 0 10px rgba(0, 255, 198, 0.5));
        transform: translateY(0px);
    }
    100% { 
        filter: drop-shadow(0 0 25px rgba(0, 255, 198, 0.8));
        transform: translateY(-2px);
    }
}

.glow-text {
    color: var(--glow-color);
    text-shadow: 0 0 30px var(--glow-color), 0 0 60px var(--glow-color);
    animation: textPulse 2.5s ease-in-out infinite alternate;
}

@keyframes textPulse {
    0% { 
        text-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
        opacity: 0.9;
    }
    100% { 
        text-shadow: 0 0 35px var(--glow-color), 0 0 70px var(--glow-color);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgb(219, 208, 208);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
    text-shadow: rgba(223, 228, 230, 0.2);
    animation: subtitleFade 2s ease-in-out 0.5s both;
}

@keyframes subtitleFade {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    opacity: 0.9;
    text-align: center;
    animation: descriptionSlide 2s ease-in-out 1s both;
}

@keyframes descriptionSlide {
    0% { 
        opacity: 0;
        transform: translateX(-30px);
    }
    100% { 
        opacity: 0.9;
        transform: translateX(0);
    }
}

.hero-cta {
    display: flex;
    justify-content:center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: ctaAppear 2s ease-in-out 1.5s both;
}

@keyframes ctaAppear {
    0% { 
        opacity: 0;
        transform: translateY(30px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--glow-color), var(--accent-color));
    color: var(--primary-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 20px rgba(0, 255, 198, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 255, 198, 0.4);
    background: linear-gradient(135deg, var(--highlight-color), var(--glow-color));
}

.cta-button.secondary {
    background: rgba(0, 255, 198, 0.1);
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: var(--glow-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 255, 198, 0.4);
}

/* Enhanced Crystal Grid Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.crystal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    animation: gridFloat 8s ease-in-out infinite;
    position: relative;
}

@keyframes gridFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% { 
        transform: translateY(-15px) rotate(1deg);
    }
    50% { 
        transform: translateY(-25px) rotate(0deg);
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg);
    }
}

.grid-node {
    width: 120px;
    height: 120px;
    background: rgba(0, 255, 198, 0.1);
    border: 2px solid var(--glow-color);
    border-radius: 16px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.grid-node:nth-child(1) {
    animation: nodeGlow1 4s ease-in-out infinite alternate;
}

.grid-node:nth-child(2) {
    animation: nodeGlow2 4s ease-in-out infinite alternate 0.5s;
}

.grid-node:nth-child(3) {
    animation: nodeGlow3 4s ease-in-out infinite alternate 1s;
}

.grid-node:nth-child(4) {
    animation: nodeGlow4 4s ease-in-out infinite alternate 1.5s;
}

.grid-node:nth-child(5) {
    animation: nodeGlow5 4s ease-in-out infinite alternate 2s;
}

.grid-node:nth-child(6) {
    animation: nodeGlow6 4s ease-in-out infinite alternate 2.5s;
}

@keyframes nodeGlow1 {
    0% { 
        box-shadow: 0 0 15px rgba(0, 255, 198, 0.4);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 40px rgba(0, 255, 198, 0.8);
        transform: scale(1.05);
    }
}

@keyframes nodeGlow2 {
    0% { 
        box-shadow: 0 0 15px rgba(44, 83, 100, 0.4);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 40px rgba(44, 83, 100, 0.8);
        transform: scale(1.05);
    }
}

@keyframes nodeGlow3 {
    0% { 
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
        transform: scale(1.05);
    }
}

@keyframes nodeGlow4 {
    0% { 
        box-shadow: 0 0 15px rgba(0, 255, 198, 0.6);
        transform: scale(1) rotate(0deg);
    }
    100% { 
        box-shadow: 0 0 40px rgba(0, 255, 198, 0.9);
        transform: scale(1.05) rotate(2deg);
    }
}

@keyframes nodeGlow5 {
    0% { 
        box-shadow: 0 0 15px rgba(44, 83, 100, 0.6);
        transform: scale(1) rotate(0deg);
    }
    100% { 
        box-shadow: 0 0 40px rgba(44, 83, 100, 0.9);
        transform: scale(1.05) rotate(-2deg);
    }
}

@keyframes nodeGlow6 {
    0% { 
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.7);
        transform: scale(1.05);
    }
}

/* Add inner glow effect to nodes */
.grid-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 255, 198, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: innerPulse 3s ease-in-out infinite alternate;
}

@keyframes innerPulse {
    0% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Add connecting lines between nodes */
.crystal-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 198, 0.2) 49%, rgba(0, 255, 198, 0.2) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 255, 198, 0.2) 49%, rgba(0, 255, 198, 0.2) 51%, transparent 52%);
    background-size: 100% 100%;
    pointer-events: none;
    animation: connectionPulse 6s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.5), rgba(44, 83, 100, 0.3));
}

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

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 198, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--glow-color);
    box-shadow: 0 20px 40px rgba(0, 255, 198, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: grayscale(0.5);
}

.about-card h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--glow-color);
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 198, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--glow-color);
    box-shadow: 0 25px 50px rgba(0, 255, 198, 0.3);
}
.game-preview {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px; /* Optional: adds spacing around the image */
}

.game-image {
   aspect-ratio: 1/1;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--glow-color));
}


.game-info {
    padding: 25px;
}

.game-info h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--highlight-color);
}

.game-info p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.play-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--glow-color), var(--accent-color));
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 198, 0.4);
}

/* Community Section */
.community-section {
    background: linear-gradient(135deg, rgba(44, 83, 100, 0.3), rgba(15, 32, 39, 0.5));
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.community-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 198, 0.2);
    border-radius: 16px;
    padding: 30px;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--glow-color);
    text-shadow: 0 0 20px var(--glow-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 10px;
}

.community-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 198, 0.2);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--glow-color);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-family: var(--heading-font);
    color: var(--glow-color);
    margin-bottom: 5px;
}

/* How It Works Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 198, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--glow-color);
    box-shadow: 0 20px 40px rgba(0, 255, 198, 0.2);
}

.step-number {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 900;
    color: var(--glow-color);
    text-shadow: 0 0 20px var(--glow-color);
    margin-bottom: 20px;
}

.step-card h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--highlight-color);
}

/* Disclaimer Section */
.disclaimer-section {
    background: rgba(15, 32, 39, 0.8);
    border-top: 1px solid rgba(0, 255, 198, 0.3);
}

.disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Footer Styles */
.main-footer {
    background: var(--primary-color);
    border-top: 1px solid rgba(0, 255, 198, 0.3);
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-family: var(--heading-font);
    color: var(--glow-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--glow-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 255, 198, 0.2);
}

/* Game Page Styles */
.game-page {
    padding-top: 100px;
    min-height: 100vh;
}

.game-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 198, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

.game-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--glow-color);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--glow-color);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 16px;
    background: #000;
}

.back-button {
    display: inline-block;
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-button:hover {
    background: var(--glow-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.game-info-section {
    margin-top: 40px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 198, 0.3);
    border-radius: 20px;
    padding: 30px;
}

.info-card h3 {
    font-family: var(--heading-font);
    color: var(--glow-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-card p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Static Pages Styles */
.static-page {
    padding-top: 120px;
    min-height: 100vh;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 198, 0.3);
    border-radius: 20px;
    padding: 50px;
}

.page-title {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    color: var(--glow-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 20px var(--glow-color);
}

.page-content h2 {
    font-family: var(--heading-font);
    color: var(--highlight-color);
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--glow-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 198, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--glow-color);
    box-shadow: 0 0 15px rgba(0, 255, 198, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(135deg, var(--glow-color), var(--accent-color));
    color: var(--primary-color);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 198, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 32, 39, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(0, 255, 198, 0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        max-width: 280px;
    }
    
    .community-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .community-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-card {
        flex: 1;
        min-width: 120px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .page-content {
        padding: 30px 20px;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .hero-visual {
        margin-top: 40px;
    }
    
    .crystal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .grid-node {
        width: 100px;
        height: 100px;
    }
    
    .about-grid,
    .games-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .step-number {
        font-size: 2.5rem;
    }
    
    .crystal-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .grid-node {
        width: 80px;
        height: 80px;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.loading {
    background: linear-gradient(90deg, transparent, rgba(0, 255, 198, 0.2), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--glow-color);
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #FFFFFF;
        --background-color: #000000;
        --glow-color: #00FFFF;
    }
}