* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header Navigation */
.navbar {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 12, 41, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.5));
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.nav-links a:hover,
.nav-links a:focus {
    color: #00ffff;
    outline: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(15, 12, 41, 0.98);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
}

.mobile-menu-backdrop.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
}

.mobile-menu-title {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-section {
    margin-bottom: 30px;
}

.mobile-menu-section h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.mobile-menu-section a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-section a:hover {
    color: #00ffff;
    padding-left: 10px;
}

.mobile-menu-logout {
    color: #ff6b6b !important;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: clamp(3rem, 10vw, 6rem) 5% clamp(2rem, 8vw, 4rem);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.2), transparent);
    pointer-events: none;
}

h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    background-size: 200% auto;
    line-height: 1.2;
    word-wrap: break-word;
}

@keyframes glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.browse-games-title {
    text-align: center;
    margin: 2rem 0;
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #bbb;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

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

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

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    outline: none;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: 2rem 5%;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #888;
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin-top: 0.5rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: rgba(15, 12, 41, 0.5);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.search-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(255, 255, 255, 0.1);
}

.search-form input::placeholder {
    color: #999;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.sort-options select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-options select:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 0;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.4);
    border-color: #00ffff;
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.placeholder-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(0, 255, 255, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.game-info h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-info h3 a:hover {
    color: #00ffff;
}

.game-description {
    color: #aaa;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.game-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
}

.category-badge {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: #fff !important;
    font-weight: 500;
}

.game-creator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.game-creator a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-creator a:hover {
    color: #00ffff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.pagination a:hover,
.pagination a.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Particles */
.particle {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.5), transparent);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .navbar {
        padding: 0.75rem 3%;
    }

    .hero {
        padding: 2rem 3% 1.5rem;
    }

    .container {
        padding: 15px 3%;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        max-width: 100%;
    }

    .stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu {
        width: 100%;
        right: -100%;
    }
}

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

/* Print Styles */
@media print {
    .navbar,
    .filters,
    .mobile-menu,
    .mobile-menu-backdrop,
    .particle {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .game-card {
        break-inside: avoid;
    }
}

/* Footer */
footer {
    background: rgba(15, 12, 41, 0.95);
    margin-top: 4rem;
    border-top: 2px solid rgba(138, 43, 226, 0.3);
    padding: 3rem 5% 1rem;
}

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

.footer-section h3 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #00ffff;
}

.footer-section p {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.footer-bottom p {
    color: #888;
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    transition: all 0.3s ease;
    padding: 0.5rem;
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus {
    color: #00ffff;
    transform: scale(1.2);
    outline: none;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
}
/* CSS FIXES FOR GAME DISPLAY ISSUES */

/* Fix iframe and canvas display issues */
iframe, canvas {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px !important;
}

/* Game container fixes */
#gameContent, #gameContainer, .game-frame {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Improved CTA button responsive design */
.cta-button {
    padding: 12px 24px !important;
    font-size: 16px !important;
    min-height: 44px !important; /* Better touch targets */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Enhanced mobile responsive design */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 15px 3% !important;
    }
    
    /* Button fixes */
    .cta-button {
        padding: 10px 20px !important;
        font-size: 14px !important;
        margin: 8px 4px !important;
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;
    }
    
    /* Game grid improvements */
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
        gap: 1rem !important;
        padding: 0 !important;
    }
    
    /* Game card fixes */
    .game-card {
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }
    
    .game-info {
        padding: 1rem !important;
    }
    
    .game-meta {
        font-size: 0.8rem !important;
        gap: 0.5rem !important;
    }
    
    /* Iframe specific fixes */
    iframe {
        width: 100% !important;
        height: 50vh !important;
        min-height: 250px !important;
        max-height: 400px !important;
        border: 2px solid rgba(138, 43, 226, 0.5) !important;
        border-radius: 10px !important;
    }
    
    /* Canvas fixes */
    canvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 50vh !important;
    }
}

@media (max-width: 480px) {
    /* Very small screen fixes */
    .cta-button {
        padding: 8px 16px !important;
        font-size: 12px !important;
        margin: 6px 2px !important;
    }
    
    /* Single column layout */
    .games-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    /* Tighter spacing */
    .container {
        padding: 10px 2% !important;
    }
    
    .game-info {
        padding: 0.8rem !important;
    }
    
    /* Smaller iframe on phones */
    iframe {
        height: 40vh !important;
        min-height: 200px !important;
        max-height: 300px !important;
        border-radius: 8px !important;
    }
    
    /* Text size adjustments */
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    .game-info h3 {
        font-size: 1.1rem !important;
    }
    
    .game-description {
        font-size: 0.85rem !important;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    iframe {
        height: 70vh !important;
        max-height: 500px !important;
    }
    
    canvas {
        max-height: 70vh !important;
    }
}

/* Fix for very wide screens */
@media (min-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .cta-button {
        min-height: 48px !important; /* Better touch targets */
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    .game-card:hover {
        transform: none !important; /* Disable hover effects on touch */
    }
    
    .game-card {
        transition: none !important;
    }
}

/* High DPI display fixes */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    canvas {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
}

/* Print-friendly styles */
@media print {
    iframe, canvas, .cta-button {
        display: none !important;
    }
    
    .game-card {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .game-card {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(138, 43, 226, 0.3) !important;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .cta-button, .game-card {
        transition: none !important;
        animation: none !important;
    }
    
    .cta-button:hover, .cta-button:focus {
        transform: none !important;
    }
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    iframe {
        -webkit-overflow-scrolling: touch !important;
    }
    
    .cta-button {
        -webkit-appearance: none !important;
        -webkit-border-radius: 50px !important;
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .cta-button {
        -moz-appearance: none !important;
    }
}

/* Contact Form Styles */
.contact-container {
    max-width: 800px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
    backdrop-filter: blur(10px);
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ffff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.6;
}

.user-info {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    color: #4caf50;
}

.user-info .icon {
    margin-right: 0.5rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: #ff6b6b;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Fix for select dropdown options */
.form-group select option {
    background: #2a2a2a;
    color: #fff;
    padding: 8px;
}

/* Additional select styling for better visibility */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: #666;
    cursor: not-allowed;
}

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

.country-warning {
    background: rgba(255, 243, 205, 0.1);
    border: 1px solid #ffeaa7;
    color: #ffeaa7;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: none;
}

.country-warning.show {
    display: block;
}

.country-info {
    background: rgba(209, 236, 241, 0.1);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.submit-btn {
    grid-column: 1 / -1;
    background: linear-gradient(45deg, #8a2be2, #00ffff);
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
    background: linear-gradient(45deg, #00ffff, #8a2be2);
}

.submit-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background: rgba(248, 215, 218, 0.1);
    border: 1px solid #f5c6cb;
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.success-message {
    background: rgba(212, 237, 218, 0.1);
    border: 1px solid #c3e6cb;
    color: #4caf50;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.loading {
    display: none;
    text-align: center;
    margin: 1.5rem 0;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #aaa;
    margin-top: 1rem;
}

/* Contact Form Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-container {
        margin: 1rem;
        padding: 2rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 1.5rem;
    }

    .contact-header h1 {
        font-size: 1.8rem;
    }
}

/* Previous Inputs Dropdown */
.previous-inputs-dropdown {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #00ffff !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000 !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    font-family: inherit !important;
}

.previous-inputs-dropdown div {
    transition: all 0.2s ease !important;
}

.previous-inputs-dropdown div:hover {
    background: rgba(0, 255, 255, 0.2) !important;
}

/* Scrollbar styling for dropdown */
.previous-inputs-dropdown::-webkit-scrollbar {
    width: 6px;
}

.previous-inputs-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.previous-inputs-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 3px;
}

.previous-inputs-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.7);
}

/* Story TTS Button Styles - Added for games with story text */
.story-tts-btn {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
}

.story-tts-btn:hover {
    background: rgba(41, 128, 185, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.story-tts-btn:active {
    transform: translateY(0);
}

.story-tts-btn.speaking {
    background: rgba(46, 204, 113, 0.95);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Mobile styles for story TTS button */
@media (max-width: 768px) {
    .story-tts-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .story-tts-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Description TTS Button Styles - During gameplay */
.desc-tts-container {
    margin-top: 10px;
    text-align: center;
}

.desc-tts-btn {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
}

.desc-tts-btn:hover {
    background: rgba(41, 128, 185, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.desc-tts-btn:active {
    transform: translateY(0);
}

.desc-tts-btn.speaking {
    background: rgba(46, 204, 113, 0.95);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Mobile styles for description TTS button */
@media (max-width: 768px) {
    .desc-tts-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .desc-tts-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Game Story Text TTS Button */
.story-tts-btn, .game-text-tts {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.story-tts-btn:hover, .game-text-tts:hover {
    background: rgba(41, 128, 185, 0.95);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .story-tts-btn, .game-text-tts {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Story TTS Container Styles */
.story-tts-container, .desc-tts-container {
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.story-tts-btn, .desc-tts-btn {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
}

.story-tts-btn:hover, .desc-tts-btn:hover {
    background: rgba(41, 128, 185, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.story-tts-btn:active, .desc-tts-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .story-tts-btn, .desc-tts-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .story-tts-btn, .desc-tts-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}
/* Add to style.css for better game canvas visibility */

/* Game Canvas Improvements */
#canvas, canvas {
    border: 2px solid #667eea !important;
    background: #111 !important;
    display: block !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Make start button more prominent */
button[onclick*="startGame"], 
button[onclick*="Start"] {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%) !important;
    animation: pulse 2s infinite;
    font-size: 20px !important;
    padding: 15px 35px !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Auto-start hint */
#gameContainer:before {
    content: "👆 Click START button to begin playing!";
    display: block;
    color: #00ff00;
    font-size: 18px;
    margin-bottom: 10px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile improvements */
@media (max-width: 768px) {
    canvas {
        width: 100% !important;
        max-height: 50vh !important;
    }
}