/* Apple Design System - Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --accent-color: #FF3B30;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --text-primary: #000000;
    --text-secondary: #3C3C43;
    --text-tertiary: #8E8E93;
    --background-primary: #FFFFFF;
    --background-secondary: #F2F2F7;
    --background-tertiary: #E5E5EA;
    --surface-color: rgba(255, 255, 255, 0.8);
    --blur-bg: rgba(255, 255, 255, 0.72);
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.12);
    --border-color: rgba(0, 0, 0, 0.06);
    --system-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--system-font);
    line-height: 1.47058823529;
    color: var(--text-primary);
    background: linear-gradient(180deg, #F5F5F7 0%, #E8E8ED 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Apple Style Header */
header {
    background: var(--blur-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-height: 44px;
}

.logo {
    font-size: 1.28571rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

nav a:hover,
nav a.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

nav a.active {
    background: var(--primary-color);
}

/* Apple Style Hero Section */
.hero {
    background: linear-gradient(180deg, #F5F5F7 0%, #E8E8ED 100%);
    padding: 80px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.022em;
    line-height: 1.08349;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-weight: 400;
}

.page-hero {
    background: linear-gradient(180deg, #F5F5F7 0%, #E8E8ED 100%);
    padding: 60px 0;
    text-align: center;
}

.page-hero h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.022em;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 22px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 16px var(--shadow-medium);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.cta-button:hover {
    background: #0056CC;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-strong);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.play-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--system-font);
}

.play-button:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #0056CC;
}

/* Apple Style Sections */
.game-section,
.games-grid-section,
.blog-section {
    background: var(--background-primary);
    padding: 80px 0;
}

.game-section h2,
.games-grid-section h2,
.blog-section h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.022em;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

/* Ensure no gaps or margins around images */
.game-card * {
    margin: 0;
    padding: 0;
}

.game-card .game-info {
    margin: 0;
    padding: 20px;
}

.game-card {
    background: var(--background-primary);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.game-card.featured {
    grid-column: span 2;
    flex-direction: row;
    min-height: 280px;
}

@media (max-width: 768px) {
    .game-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }
}

.game-preview {
    position: relative;
    background: var(--background-secondary);
    min-height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.game-card.featured .game-preview {
    flex: 1;
    min-height: 280px;
}

.game-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

.game-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Fallback for missing images */
.game-preview img:not([src*=".jpg"]):not([src*=".png"]):not([src*=".webp"]) {
    background-color: var(--background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
}

.game-card:hover .game-preview img {
    transform: scale(1.02);
}

/* Play Now button overlay for images */
.game-preview .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.game-preview:hover .play-overlay {
    opacity: 1;
}

.play-overlay-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--system-font);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.play-overlay-button:hover {
    background: #0056CC;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
}

.play-overlay-button:active {
    transform: translateY(0) scale(1);
}

.game-placeholder {
    text-align: center;
    color: var(--text-tertiary);
}

.game-placeholder span {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.game-placeholder p {
    font-size: 1rem;
    font-weight: 500;
}

.game-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background-primary);
}

.game-card.featured .game-info {
    flex: 1;
    justify-content: center;
    padding: 32px 24px;
}

.game-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.022em;
}

.game-category {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 12px;
}

.game-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.rating {
    color: var(--warning-color);
    font-size: 0.875rem;
}

.plays {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.game-left-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    height: 100%;
}

.game-container {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 20px;
    background: var(--background-primary);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid var(--border-color);
}

/* Modern Apple-style Game Info Card */
.game-info-card-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.game-info-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.game-info-header-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.game-info-icon-modern {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.game-info-title-modern {
    color: #1d1d1f;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    letter-spacing: -0.02em;
}

.game-info-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    position: relative;
    z-index: 2;
}

@media (max-width: 480px) {
    .game-info-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.info-stat-block {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-stat-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.5s ease;
}

.info-stat-block:hover::before {
    left: 100%;
}

.info-stat-block:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.info-stat-block .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.info-stat-block .stat-value {
    color: #1d1d1f;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.info-stat-block .stat-label {
    color: #6e6e73;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Game section with sidebar layout */
.game-section {
    background: var(--background-primary);
    padding: 40px 0 20px;
}

.game-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .game-with-sidebar {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .game-left-column {
        gap: 20px;
    }
    
    .game-info-card {
        min-height: 100px;
    }
}

.game-container iframe {
    width: 100% !important;
    height: 600px !important;
    min-height: 450px !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow-light);
    transition: all 0.3s ease;
}

.game-container iframe:hover {
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.game-info {
    max-width: 1000px;
    margin: 0 auto;
}

.game-description {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

.game-details {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    text-align: left;
}

.game-details h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.game-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.controls-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.controls-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.control-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.control-group h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.control-group ul {
    list-style: none;
    padding: 0;
}

.control-group li {
    margin-bottom: 0.5rem;
    color: #555;
}

.control-group strong {
    color: #667eea;
    font-weight: bold;
}

.settings-note {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 5px;
    font-style: italic;
    color: #1565c0;
    text-align: center;
}

.update-info {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.update-info p {
    color: #777;
    font-size: 0.9rem;
}

/* Apple Style Content Sections */
.about-section {
    background: var(--background-secondary);
    padding: 80px 0;
}

.about-section h2 {
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.about-content p {
    font-size: 1.0625rem;
    margin-bottom: 24px;
    line-height: 1.52941;
    color: var(--text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Apple Style Features Section */
.features-section {
    background: var(--background-primary);
    padding: 80px 0;
}

.features-section h2 {
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

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

.feature-card {
    background: var(--background-primary);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px var(--shadow-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.feature-card p {
    line-height: 1.47058823529;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Apple Style Tips Section */
.tips-section {
    background: var(--background-secondary);
    padding: 80px 0;
}

.tips-section h2 {
    font-size: 2.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.tips-content > p {
    font-size: 1.0625rem;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-secondary);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.52941;
}

.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tip-item {
    background: var(--background-primary);
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.tip-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.tip-item p {
    color: var(--text-secondary);
    line-height: 1.47058823529;
    font-size: 0.9375rem;
}

/* Apple Style Final CTA Section */
.final-cta {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.final-cta h2 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.022em;
}

.final-cta p {
    font-size: 1.0625rem;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    line-height: 1.52941;
}

.final-cta .cta-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.final-cta .cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Apple Style Footer */
footer {
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 32px;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.blog-post {
    background: var(--background-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.blog-post.featured {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .blog-post.featured {
        grid-column: span 1;
    }
}

.post-image {
    height: 200px;
    background: var(--background-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-image {
    text-align: center;
    color: var(--text-tertiary);
}

.placeholder-image span {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
}

.post-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.category {
    color: var(--primary-color);
}

.date {
    color: var(--text-tertiary);
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.022em;
    line-height: 1.3;
}

.post-content p {
    color: var(--text-secondary);
    line-height: 1.47058823529;
    margin-bottom: 16px;
    flex-grow: 1;
    font-size: 0.9375rem;
}

/* SEO Content Sections */
.seo-content {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.022em;
}

.content-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
    letter-spacing: -0.022em;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
}

/* Apple Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    nav ul {
        gap: 8px;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
    
    header .container {
        padding: 8px 20px;
    }
    
    .game-container {
        padding: 24px;
        margin: 32px 0;
    }
    
    .game-container iframe {
        width: 100%;
        height: 400px;
    }
    
    .features-grid,
    .tips-list,
    .games-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 24px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .seo-content,
    .game-section,
    .features-section,
    .tips-section,
    .about-section,
    .games-grid-section,
    .blog-section {
        padding: 60px 0;
    }
    
    .final-cta {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .page-hero {
        padding: 40px 0;
    }
    
    .page-hero h2 {
        font-size: 1.75rem;
    }
    
    .game-container {
        padding: 16px;
        margin: 24px 0;
    }
    
    .game-container iframe {
        height: 280px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .game-info,
    .post-content,
    .feature-card,
    .tip-item {
        padding: 16px;
    }
    
    .game-card.featured .game-info {
        padding: 20px 16px;
    }
    
    .seo-content,
    .game-section,
    .features-section,
    .tips-section,
    .about-section,
    .games-grid-section,
    .blog-section {
        padding: 40px 0;
    }
    
    .final-cta {
        padding: 40px 0;
    }
}

/* Apple-style animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

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

/* Selection styling */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Game Page Specific Styles */
.breadcrumb-section {
    background: var(--background-secondary);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0056CC;
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

.game-hero {
    background: linear-gradient(180deg, #F5F5F7 0%, #E8E8ED 100%);
    padding: 40px 0;
}

.game-hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .game-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
}

.game-cover {
    width: 300px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-medium);
}

@media (max-width: 768px) {
    .game-cover {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-details h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.022em;
}

@media (max-width: 768px) {
    .game-details h1 {
        font-size: 2rem;
    }
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.game-type {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-stats {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
}

.game-summary {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.primary-play-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--system-font);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.primary-play-button:hover {
    background: #0056CC;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-strong);
}

.game-info-section {
    background: var(--background-primary);
    padding: 40px 0;
}

.game-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .game-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.game-description-card,
.game-features-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow-light);
}

.game-description-card h2,
.game-features-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.022em;
}

.game-description-card h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 16px;
}

.game-description-card p,
.game-description-card li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.game-description-card ul {
    padding-left: 20px;
    margin-bottom: 24px;
}

.game-description-card li {
    margin-bottom: 8px;
}

.feature-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.022em;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Sidebar for related games */
.games-sidebar {
    background: var(--background-primary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px var(--shadow-light);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.games-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.022em;
}

.sidebar-games-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-game-card {
    background: var(--background-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: block;
}

.sidebar-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    text-decoration: none;
}

.sidebar-game-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.sidebar-game-info {
    padding: 12px;
}

.sidebar-game-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.022em;
    line-height: 1.3;
}

.sidebar-game-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-play-btn {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
}

.sidebar-play-btn:hover {
    background: #0056CC;
}

/* Legacy related games section (now hidden on game pages) */
.related-games-section {
    background: var(--background-secondary);
    padding: 80px 0;
}

.related-games-section h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.022em;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.related-game-card {
    background: var(--background-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-medium);
}

.related-game-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-game-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 16px 8px;
    letter-spacing: -0.022em;
}

.related-game-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0 16px 16px;
}

.play-related-btn {
    display: block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 12px 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.play-related-btn:hover {
    background: #0056CC;
}

/* Fix play button styling for game page navigation */
.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}

.play-overlay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}

/* Tailwind-like utility classes for game iframes */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.aspect-\[8\/3\] {
    aspect-ratio: 8 / 3;
}

.min-h-\[450px\] {
    min-height: 450px;
}

/* Enhanced iframe styling for game pages */
.game-container iframe {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow-light);
    transition: all 0.3s ease;
    background: var(--background-secondary);
}

.game-container iframe:hover {
    box-shadow: 0 8px 24px var(--shadow-medium);
    transform: translateY(-2px);
}


/* Utility classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}