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

:root {
    --primary: #ff4757;
    --secondary: #2ed573;
    --dark: #2f3542;
    --light: #f1f2f6;
    --accent: #ffa502;
    --text: #3742fa;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary), var(--text));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.btn-primary:hover {
    background: #ff3838;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 71, 87, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-primary.large {
    padding: 15px 30px;
    font-size: 1.3rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: white;
}

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

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo .number {
    color: var(--primary);
    font-size: 1.8rem;
    margin-right: 5px;
}

.logo .puzzle {
    color: var(--dark);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ff4757" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.puzzle-preview {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: rotate(5deg);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.puzzle-preview:hover {
    transform: rotate(0deg) scale(1.05);
}

@keyframes float {
    0% { transform: rotate(5deg) translateY(0px); }
    50% { transform: rotate(5deg) translateY(-20px); }
    100% { transform: rotate(5deg) translateY(0px); }
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-template-rows: repeat(4, 80px);
    gap: 10px;
}

.puzzle-tile {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Press Start 2P', cursive;
}

.puzzle-tile:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.puzzle-tile.empty {
    background: transparent;
    box-shadow: none;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

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

.feature-card {
    background: var(--light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Game Difficulty Section */
.difficulty-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.difficulty-section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #2d3748;
}

.difficulty-section p {
    text-align: center;
    margin-bottom: 40px;
    color: #4a5568;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.difficulty-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.difficulty-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.difficulty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.difficulty-card.easy {
    border-top: 4px solid #10b981;
}

.difficulty-card.medium {
    border-top: 4px solid #3b82f6;
}

.difficulty-card.hard {
    border-top: 4px solid #ef4444;
}

.difficulty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.difficulty-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.stars {
    font-size: 1.2rem;
}

.difficulty-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.preview-grid {
    display: grid;
    gap: 2px;
    background-color: #e2e8f0;
    border-radius: 8px;
    padding: 5px;
}

.preview-grid.easy-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 180px;
    height: 180px;
}

.preview-grid.medium-grid {
    grid-template-columns: repeat(4, 1fr);
    width: 200px;
    height: 200px;
}

.preview-grid.hard-grid {
    grid-template-columns: repeat(5, 1fr);
    width: 220px;
    height: 220px;
}

.preview-tile {
    background-color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(0.8rem, 2vw, 1rem);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-tile.empty {
    background-color: transparent;
    box-shadow: none;
}

.difficulty-desc {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0;
}

/* How to Play Section */
.how-to-play {
    background-color: #ffffff;
    padding: 60px 0;
}

.how-to-play h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2d3748;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.step-number {
    background-color: #3b82f6;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.step h3 {
    margin-bottom: 15px;
    color: #2d3748;
}

.step p {
    color: #4a5568;
    line-height: 1.6;
}

/* Game Statistics Section */
.statistics-section {
    background-color: #2d3748;
    color: #ffffff;
    padding: 60px 0;
}

.statistics-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 10px;
    font-family: 'Press Start 2P', cursive;
}

.stat-label {
    font-size: 1rem;
    color: #cbd5e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: #f8f9fa;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
}

/* FAQ Section */
.faq-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2d3748;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background-color: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3748;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #3b82f6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    background-color: #ffffff;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-text h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.newsletter-text p {
    margin-bottom: 30px;
    color: #e0e7ff;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 280px;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-form .btn-primary {
    background-color: #ffffff;
    color: #3b82f6;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.newsletter-form .btn-primary:hover {
    background-color: #e0e7ff;
    transform: translateY(-2px);
}

/* Call to Action */
.cta {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
}

.cta h2::after {
    background: white;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta .btn-primary {
    background: white;
    color: #3b82f6;
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta .btn-primary:hover {
    background: #e0e7ff;
    color: #3b82f6;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.footer-logo .number {
    color: var(--primary);
    font-size: 1.8rem;
    margin-right: 5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Game Page Styles */
.game-page {
    padding: 100px 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.difficulty-selector {
    margin: 1rem 0;
}

.difficulty-selector label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin-right: 0.5rem;
}

.difficulty-selector select {
    padding: 0.5rem 1rem;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.difficulty-selector select:hover {
    border-color: #45a049;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.difficulty-selector select:focus {
    outline: none;
    border-color: #45a049;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.game-info {
    display: flex;
    gap: 30px;
}

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

.info-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Press Start 2P', cursive;
}

.info-label {
    font-size: 0.9rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-controls {
    display: flex;
    gap: 15px;
}

.game-board {
    background: #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.game-grid {
    display: grid;
    gap: 0; /* 移除间隙，让方块紧密排列 */
    background-color: #333;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden; /* 确保内容不会溢出 */
}

.game-tile {
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 5vw, 1.8rem);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    /* 确保方块占满整个网格单元 */
    width: 100%;
    height: 100%;
    position: relative;
    /* 添加边框线效果替代间隙 */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.game-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.game-tile.empty {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.game-tile.empty:hover {
    transform: none;
}

/* Game Over Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.modal-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

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

.modal-stat .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Press Start 2P', cursive;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* About Page Styles */
.about-page {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-highlights {
    margin-top: 50px;
}

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

.highlight-item {
    background: var(--light);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.highlight-item h3 {
    color: var(--text);
    margin-bottom: 15px;
}

/* Contact Page Styles */
.contact-page {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-info h2 {
    text-align: left;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.contact-info h2::after {
    left: 0;
    transform: none;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Privacy Policy & Terms of Service Pages */
.legal-page {
    padding: 100px 0;
    background: white;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: none;
    color: var(--dark);
    -webkit-background-clip: unset;
    background-clip: unset;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    text-align: left;
}

.legal-content h2::after {
    left: 0;
    transform: none;
    width: 50px;
}

.legal-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    color: var(--text);
}

.legal-content p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
    }
    
    .game-info {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info h2 {
        text-align: center;
    }
    
    .contact-info h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .puzzle-grid {
        grid-template-columns: repeat(4, 60px);
        grid-template-rows: repeat(4, 60px);
    }
    
    .puzzle-tile {
        font-size: 1.2rem;
    }
    
    .game-container {
        padding: 20px;
    }
    
    .game-controls {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .game-grid {
        max-width: 320px;
        gap: 6px;
        padding: 10px;
    }
    
    .game-tile {
        font-size: clamp(0.9rem, 6vw, 1.5rem);
    }
    
    .difficulty-selector {
        margin: 1rem 0;
    }
    
    .difficulty-selector label {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .difficulty-selector select {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .steps-container,
    .highlights-list {
        grid-template-columns: 1fr;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .puzzle-grid {
        grid-template-columns: repeat(4, 50px);
        grid-template-rows: repeat(4, 50px);
    }
    
    .puzzle-tile {
        font-size: 1rem;
    }
    
    .game-board {
        padding: 10px;
    }
    
    .game-grid {
        max-width: 280px;
        gap: 5px;
        padding: 8px;
    }
    
    .game-tile {
        font-size: clamp(0.8rem, 7vw, 1.3rem);
    }
}