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

/* CSS Variables - Apple-inspired Color Palette */
:root {
    --primary-blue: #007AFF;
    --primary-blue-hover: #0056CC;
    --background-white: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #666666; /* Improved contrast from #86868B */
    --text-tertiary: #757575; /* Improved contrast from #8E8E93 */
    --border-color: #E5E5E7;
    --card-background: #F2F2F7;
    --success-green: #34C759;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-small: 8px;
    --transition: all 0.3s ease;
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background-color: var(--background-white);
    box-shadow: 0 1px 3px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navigation Styles */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
}

.nav-menu a:hover {
    color: var(--primary-blue);
    background-color: var(--card-background);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 0.25rem 0.5rem;
        font-size: 14px;
    }
}

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

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Language Switcher - Header */
.language-dropdown {
    position: relative;
    display: inline-block;
}

/* Legacy fallback */
.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher__label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.language-switcher__options {
    position: relative;
    display: inline-block;
}

.language-switcher__option {
    display: none;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.875rem;
}

.language-switcher__option.is-active {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: default;
}

.language-switcher__options:hover .language-switcher__option {
    display: block;
}

.language-switcher__options:hover {
    position: absolute;
    right: 0;
    top: 0;
    background: var(--background-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    min-width: 150px;
}

.language-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.language-dropdown__trigger:hover,
.language-dropdown__trigger:focus-visible {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    outline: none;
}

.language-dropdown__arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.language-dropdown__trigger[aria-expanded="true"] .language-dropdown__arrow {
    transform: rotate(180deg);
}

.language-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    width: max-content;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 15px 35px rgba(31, 41, 55, 0.15);
    padding: 0.25rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 150;
    max-height: none;
    overflow: visible;
}

.language-dropdown__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.language-dropdown__option:hover,
.language-dropdown__option:focus-visible {
    background: var(--card-background);
    outline: none;
}

.language-dropdown__option.is-active {
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary-blue);
    font-weight: 600;
}

.language-dropdown__option.is-active::after {
    content: "\2713";
    margin-left: auto;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .language-dropdown__trigger {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    .language-dropdown__menu {
        position: relative;
        top: 0.5rem;
        right: auto;
        left: 0;
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .navigation {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .language-dropdown {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

.language-switcher__options:hover .language-switcher__option:hover {
    background-color: var(--card-background);
    color: var(--primary-blue);
}

/* Main Content */
.main {
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-white) 0%, var(--card-background) 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    margin-top: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 140px;
}

.btn--primary {
    background-color: var(--primary-blue);
    color: var(--background-white);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn--primary:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.btn--primary:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Game Section - Now Hero */
.game-section {
    padding: 2rem 0 4rem;
    background-color: var(--background-white);
}

.hero-game {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-game .container {
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.game-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-medium);
}

.fullscreen-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-small);
    color: var(--background-white);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    will-change: transform, opacity;
}

.fullscreen-btn::after {
    content: attr(title);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--background-white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-small);
    font-size: 0.75rem;
    white-space: nowrap;
    margin-right: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fullscreen-btn:hover::after {
    opacity: 1;
}

@keyframes slideIn {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(0) scale(1.05);
        opacity: 0.6;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 0;
    }
}

.fullscreen-btn:hover {
    background-color: var(--primary-blue);
    color: var(--background-white);
    border-color: var(--primary-blue);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
    opacity: 1;
}

.fullscreen-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
    opacity: 1;
    border-color: var(--primary-blue);
}

.fullscreen-btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
    border-color: rgba(255, 255, 255, 0.2);
}

.fullscreen-btn:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
    opacity: 1;
    border-color: var(--primary-blue);
}

.fullscreen-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.fullscreen-icon {
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20px;
    height: 20px;
    will-change: transform;
}

.fullscreen-icon path {
    transition: d 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-frame {
    width: 100%;
    height: 600px;
    position: relative;
    background-color: var(--background-white);
}

.game-frame iframe {
    border-radius: var(--border-radius);
}

/* Fullscreen styles */
.game-frame.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: var(--text-primary);
    border-radius: 0;
}

.game-frame.fullscreen iframe {
    border-radius: 0;
}

.game-frame.fullscreen .fullscreen-btn {
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--card-background);
}

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

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

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: var(--background-white);
}

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

.feature-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How to Play Section */
.how-to-play {
    padding: 4rem 0;
    background-color: var(--card-background);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.step__number {
    background-color: var(--primary-blue);
    color: var(--background-white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step__content {
    flex: 1;
}

.step__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: var(--background-white);
    padding: 3rem 0 1rem;
}

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

.footer__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.footer__subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__description {
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
}

.footer__copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Footer Language Switcher */
.footer-languages {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-languages__title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    text-align: center;
}

.footer-languages__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.footer-languages__list li {
    flex: 0 0 auto;
}

.footer-languages__link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-languages__link:hover,
.footer-languages__link:focus-visible {
    color: #fff;
    outline: none;
}

.footer-languages__link.is-active {
    color: var(--background-white);
    font-weight: 600;
}

@media (min-width: 992px) {
    .footer-languages__list {
        justify-content: center;
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-blue);
    color: var(--background-white);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.about__subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Content Page Styles */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.content-page h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content-page h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-page h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-page p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.content-page ul, .content-page ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

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

.last-updated {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.article-content {
    line-height: 1.7;
}

/* Contact Form Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2, .contact-form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-blue);
}

.contact-method h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.submit-btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-1px);
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
}

.faq-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.response-time {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--success-green);
    color: white;
    border-radius: var(--border-radius);
}

.response-time h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.response-time p {
    color: white;
    margin-bottom: 0;
}

/* Game Feature Highlight */
.game-feature {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-light);
}

.game-feature h4 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.game-feature ul {
    margin-top: 1rem;
}

.game-feature li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
    color: white;
    padding: 3rem 2rem;
    margin: 3rem 0;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 8px 16px var(--shadow-medium);
}

.cta-section h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.cta-section a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
    transition: var(--transition);
}

.cta-section a:hover {
    color: #ffff99;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Enhanced Typography for SEO Content */
.content-page h1 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-page h2:before {
    content: "🎯";
    margin-right: 0.5rem;
}

.content-page h3:before {
    content: "📚";
    margin-right: 0.5rem;
}

/* Mobile Responsiveness for Content Pages */
@media (max-width: 768px) {
    .content-page {
        padding: 1rem 0;
    }
    
    .content-page h1 {
        font-size: 2rem;
    }
    
    .content-page h2 {
        font-size: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-methods {
        gap: 1.5rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .game-feature {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero__title,
    .game-title {
        font-size: 2rem;
    }
    
    .hero__subtitle,
    .game-subtitle {
        font-size: 1.125rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .hero-game {
        min-height: 90vh;
    }
    
    .fullscreen-btn {
        width: 36px;
        height: 36px;
        top: 0.75rem;
        right: 0.75rem;
        background-color: rgba(0, 0, 0, 0.8);
        border-color: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(4px);
    }
    
    .fullscreen-btn::after {
        display: none;
    }
    
    .fullscreen-icon {
        width: 18px;
        height: 18px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step__number {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero,
    .hero-game {
        padding: 1rem 0;
        min-height: 85vh;
    }
    
    .hero__title,
    .game-title {
        font-size: 1.75rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .game-frame {
        height: 350px;
    }
    
    .fullscreen-btn {
        width: 32px;
        height: 32px;
        top: 0.5rem;
        right: 0.5rem;
        background-color: rgba(0, 0, 0, 0.8);
        border-color: rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(4px);
    }
    
    .fullscreen-btn::after {
        display: none;
    }
    
    .fullscreen-icon {
        width: 16px;
        height: 16px;
    }
    
    .feature-card,
    .step {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fullscreen-btn {
        animation: none !important;
        opacity: 0.8 !important;
    }
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
iframe:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.4);
        --border-color: #000000;
    }
    
    .fullscreen-btn {
        background-color: rgba(0, 0, 0, 0.9);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        opacity: 1;
    }
} 
