/* MistiqNow.xyz - Mystical Gaming Theme */
/* Unique mystical-magical design with ethereal colors and enchanted aesthetics */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Marcellus&display=swap');

/* CSS Custom Properties - Mystical Theme */
:root {
    /* Primary Mystical Colors */
    --mystical-purple: #6a4c93;
    --deep-violet: #4a2c5a;
    --ethereal-blue: #5d7faa;
    --enchanted-gold: #daa520;
    --mystic-silver: #c0c0c0;
    
    /* Secondary Mystical Colors */
    --twilight-indigo: #2e1e4b;
    --shadow-plum: #3c2a56;
    --moonlight-lavender: #9b7cb8;
    --starlight-white: #f8f6ff;
    --cosmic-black: #1a0d26;
    
    /* Background Colors */
    --bg-primary: linear-gradient(135deg, #1a0d26, #2e1e4b, #4a2c5a);
    --bg-secondary: linear-gradient(45deg, #2e1e4b, #3c2a56);
    --bg-card: rgba(106, 76, 147, 0.1);
    --bg-overlay: rgba(26, 13, 38, 0.9);
    
    /* Text Colors */
    --text-primary: #f8f6ff;
    --text-secondary: #c0c0c0;
    --text-accent: #daa520;
    --text-muted: #9b7cb8;
    
    /* Magical Effects */
    --glow-mystical: 0 0 15px var(--mystical-purple), 0 0 30px var(--mystical-purple), 0 0 45px var(--mystical-purple);
    --glow-golden: 0 0 15px var(--enchanted-gold), 0 0 30px var(--enchanted-gold), 0 0 45px var(--enchanted-gold);
    --glow-ethereal: 0 0 15px var(--ethereal-blue), 0 0 30px var(--ethereal-blue), 0 0 45px var(--ethereal-blue);
    
    /* Fonts */
    --font-primary: 'Crimson Text', serif;
    --font-accent: 'Cinzel', serif;
    --font-decorative: 'Marcellus', serif;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(106, 76, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(93, 127, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(218, 165, 32, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Header with Unique Layout */
.mystiq-header {
    background: var(--bg-overlay);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--mystical-purple);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(106, 76, 147, 0.3);
}

.mystiq-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1rem;
}

.mystiq-logo {
    font-family: var(--font-accent);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--enchanted-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: var(--glow-golden);
    transition: all 0.4s ease;
    position: relative;
}

.mystiq-logo::before {
    content: '✦';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mystical-purple);
    animation: sparkle 2s ease-in-out infinite;
}

.mystiq-logo::after {
    content: '✦';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mystical-purple);
    animation: sparkle 2s ease-in-out infinite reverse;
}

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

.mystiq-logo:hover {
    color: var(--moonlight-lavender);
    text-shadow: var(--glow-mystical);
    transform: scale(1.05);
}

.mystiq-nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.mystiq-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-decorative);
    padding: 0.8rem 2rem;
    border: 2px solid transparent;
    border-radius: 30px;
    transition: all 0.4s ease;
    position: relative;
    background: rgba(106, 76, 147, 0.05);
}

.mystiq-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--mystical-purple), var(--ethereal-blue));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.mystiq-nav-links a:hover::before {
    opacity: 1;
}

.mystiq-nav-links a:hover {
    color: var(--text-primary);
    border-color: var(--enchanted-gold);
    box-shadow: var(--glow-mystical);
    transform: translateY(-3px);
}

.mystiq-nav-links a i {
    margin-right: 0.6rem;
    color: var(--enchanted-gold);
}

/* Main Section */
.mystiq-section {
    padding: 5rem 0;
}

/* Hero Section with Unique Layout */
.mystiq-hero {
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--mystical-purple);
}

.mystiq-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(3px);
    z-index: -1;
}

.mystiq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(26, 13, 38, 0.8) 0%, rgba(46, 30, 75, 0.7) 50%, rgba(74, 44, 90, 0.8) 100%),
        radial-gradient(circle at 30% 40%, rgba(218, 165, 32, 0.2) 0%, transparent 70%),
        radial-gradient(circle at 70% 60%, rgba(106, 76, 147, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

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

.mystiq-hero h1 {
    font-family: var(--font-accent);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--enchanted-gold);
    text-shadow: var(--glow-golden);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: mystic-glow 3s ease-in-out infinite alternate;
}

@keyframes mystic-glow {
    from {
        text-shadow: var(--glow-golden);
    }
    to {
        text-shadow: 0 0 25px var(--enchanted-gold), 0 0 50px var(--enchanted-gold), 0 0 75px var(--enchanted-gold);
    }
}

.mystiq-hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    line-height: 1.8;
}

/* Mystical Buttons */
.mystiq-btn {
    display: inline-block;
    padding: 1.5rem 3.5rem;
    background: linear-gradient(135deg, var(--mystical-purple), var(--deep-violet));
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    font-family: var(--font-decorative);
    border: 2px solid var(--enchanted-gold);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: var(--glow-mystical);
}

.mystiq-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.3), transparent);
    transition: left 0.7s ease;
}

.mystiq-btn:hover::before {
    left: 100%;
}

.mystiq-btn:hover {
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 30px var(--mystical-purple), 0 0 60px var(--mystical-purple), 0 15px 35px rgba(106, 76, 147, 0.4);
    border-color: var(--moonlight-lavender);
}

/* Mystical Content Cards */
.mystiq-content {
    background: var(--bg-card);
    border: 2px solid var(--mystical-purple);
    border-radius: 25px;
    padding: 3.5rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(106, 76, 147, 0.2);
}

.mystiq-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--mystical-purple), var(--ethereal-blue), var(--enchanted-gold), var(--mystical-purple));
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: border-mystical 4s linear infinite;
}

@keyframes border-mystical {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mystiq-content:hover::before {
    opacity: 0.7;
}

.mystiq-content h2, .mystiq-content h3 {
    font-family: var(--font-accent);
    color: var(--enchanted-gold);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--enchanted-gold);
}

.mystiq-content h2 {
    font-size: 3rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mystiq-content h3 {
    font-size: 2rem;
    font-weight: 600;
}

.mystiq-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Mystical Game Cards */
.mystiq-game-card {
    background: var(--bg-card);
    border: 2px solid var(--ethereal-blue);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
}

.mystiq-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--mystical-purple), var(--ethereal-blue));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 25px;
    z-index: -1;
}

.mystiq-game-card:hover::before {
    opacity: 0.1;
}

.mystiq-game-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(106, 76, 147, 0.4);
    border-color: var(--enchanted-gold);
}

.mystiq-game-card i {
    font-size: 4.5rem;
    color: var(--mystical-purple);
    margin-bottom: 2rem;
    text-shadow: var(--glow-mystical);
}

.mystiq-game-card h4 {
    font-family: var(--font-accent);
    font-size: 2rem;
    color: var(--enchanted-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 15px var(--enchanted-gold);
}

.mystiq-game-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Mystical Features */
.mystiq-feature {
    background: var(--bg-card);
    border: 2px solid var(--moonlight-lavender);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.mystiq-feature:hover {
    transform: translateY(-8px);
    border-color: var(--enchanted-gold);
    box-shadow: 0 20px 40px rgba(155, 124, 184, 0.3);
}

.mystiq-feature i {
    font-size: 3.5rem;
    color: var(--moonlight-lavender);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--moonlight-lavender);
}

.mystiq-feature h4 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--enchanted-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.mystiq-feature p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Game Column Layout */
.mystiq-games-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

.mystiq-game-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 2px solid var(--mystical-purple);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mystiq-game-item:hover {
    border-color: var(--enchanted-gold);
    box-shadow: var(--glow-mystical);
    transform: translateY(-5px);
}

.mystiq-game-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--enchanted-gold);
    font-family: var(--font-decorative);
    text-shadow: var(--glow-golden);
    min-width: 80px;
    text-align: center;
    margin-top: 1rem;
}

.mystiq-game-details {
    flex: 1;
}

.mystiq-game-details h3,
.mystiq-game-details h4 {
    color: var(--enchanted-gold);
    font-family: var(--font-accent);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.mystiq-game-details p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Mobile-first game frame styling */
.mystiq-game-frame {
    width: 100%;
    height: 700px;
    border: 3px solid var(--mystical-purple);
    border-radius: 20px;
    background: var(--cosmic-black);
    box-shadow: var(--glow-mystical);
    transition: all 0.3s ease;
    max-width: 100%;
    /* Removed overflow: hidden to prevent content cutting */
    /* Mobile optimization */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.mystiq-game-frame:hover {
    box-shadow: var(--glow-ethereal);
    border-color: var(--ethereal-blue);
}

/* Game Frame - now handled in mobile-first section above */

/* Mystical Forms */
.mystiq-form {
    background: var(--bg-card);
    border: 2px solid var(--mystical-purple);
    border-radius: 25px;
    padding: 3.5rem;
    box-shadow: 0 15px 40px rgba(106, 76, 147, 0.3);
    backdrop-filter: blur(15px);
}

.mystiq-input {
    background: rgba(106, 76, 147, 0.1);
    border: 2px solid var(--ethereal-blue);
    border-radius: 15px;
    color: var(--text-primary);
    padding: 1.2rem;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    transition: all 0.4s ease;
}

.mystiq-input:focus {
    outline: none;
    border-color: var(--enchanted-gold);
    box-shadow: var(--glow-golden);
    background: rgba(218, 165, 32, 0.05);
}

.mystiq-input::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--enchanted-gold);
    font-weight: 600;
    font-size: 1.2rem;
    font-family: var(--font-decorative);
    margin-bottom: 0.8rem;
}

/* Alert */
.mystiq-alert {
    background: var(--bg-card);
    border: 2px solid var(--enchanted-gold);
    border-radius: 20px;
    padding: 2rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.3);
    backdrop-filter: blur(10px);
}

/* Footer */
.mystiq-footer {
    background: var(--bg-overlay);
    border-top: 3px solid var(--mystical-purple);
    padding: 5rem 0 3rem;
    margin-top: 5rem;
    backdrop-filter: blur(20px);
}

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

.mystiq-footer h5 {
    font-family: var(--font-accent);
    color: var(--enchanted-gold);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--enchanted-gold);
    font-weight: 600;
    text-transform: uppercase;
}

.mystiq-footer p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.mystiq-footer ul {
    list-style: none;
}

.mystiq-footer ul li {
    margin-bottom: 1rem;
}

.mystiq-footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
}

.mystiq-footer ul li a:hover {
    color: var(--enchanted-gold);
    text-shadow: 0 0 8px var(--enchanted-gold);
    padding-left: 8px;
}

.mystiq-footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 2px solid var(--mystical-purple);
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Modal Overrides */
.modal-content {
    background: var(--bg-overlay);
    border: 3px solid var(--mystical-purple);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
}

.modal-header {
    border-bottom: 2px solid var(--enchanted-gold);
}

.modal-footer {
    border-top: 2px solid var(--enchanted-gold);
}

.btn-close {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(45deg);
}

/* Legal Section */
.legal-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--mystical-purple);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h3 {
    font-family: var(--font-accent);
    color: var(--enchanted-gold);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 15px var(--enchanted-gold);
    font-weight: 600;
}

.legal-section ul {
    color: var(--text-secondary);
    padding-left: 2.5rem;
    margin: 1.5rem 0;
}

.legal-section li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Enhanced Game Column Layout - Additional Styles */
/* Game frame styling handled in main definition above */

/* Game frame hover handled in main definition above */

/* Hero and About Image Styles */
.mystiq-hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-image, .about-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--glow-mystical);
    transition: all 0.3s ease;
}

.hero-image:hover, .about-image:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-golden);
}

.mystiq-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.mystiq-feature-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--mystical-purple), var(--deep-violet));
    border-radius: 25px;
    color: var(--text-primary);
    font-family: var(--font-accent);
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mystiq-feature-mini:hover {
    border-color: var(--enchanted-gold);
    box-shadow: var(--glow-mystical);
    transform: translateY(-2px);
}

.mystiq-feature-mini i {
    color: var(--enchanted-gold);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mystiq-nav {
        padding: 1rem 0;
    }
    
    .mystiq-nav-links {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mystiq-nav-links a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .mystiq-hero {
        padding: 4rem 0;
    }
    
    .mystiq-hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }
    
    .mystiq-hero p {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    
    .mystiq-content {
        padding: 2rem;
    }
    
    .mystiq-games-column {
        gap: 2.5rem;
    }
    
    .mystiq-game-item {
        flex-direction: column;
        text-align: center;
        padding: 1.8rem;
        gap: 1.5rem;
    }
    
    .mystiq-game-number {
        font-size: 3rem;
        margin-bottom: 0.5rem;
        order: -1;
    }
    
    .mystiq-game-details h3,
    .mystiq-game-details h4 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .mystiq-game-details p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
    
    .mystiq-game-frame {
        height: 500px;
        width: 100%;
        margin-top: 1rem;
    }
    
    .mystiq-features-list {
        margin: 1.5rem 0;
        text-align: left;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mystiq-features-list li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }
}

@media (max-width: 480px) {
    .mystiq-container {
        padding: 0 10px;
    }
    
    .mystiq-header {
        padding: 1rem 0;
    }
    
    .mystiq-nav-links {
        gap: 0.5rem;
    }
    
    .mystiq-nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .mystiq-nav-links a i {
        display: none;
    }
    
    .mystiq-hero {
        padding: 3rem 0;
    }
    
    .mystiq-hero h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .mystiq-hero p {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .mystiq-content {
        padding: 1.5rem;
    }
    
    .mystiq-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .mystiq-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .mystiq-games-column {
        gap: 1.5rem;
    }
    
    .mystiq-game-item {
        padding: 1.2rem;
        gap: 1rem;
        margin: 0 5px;
    }
    
    .mystiq-game-number {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .mystiq-game-details h3,
    .mystiq-game-details h4 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .mystiq-game-details p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .mystiq-game-frame {
        height: 400px;
        width: calc(100% + 0.4rem);
        margin: 1rem -0.2rem 0 -0.2rem;
        border-radius: 12px;
    }
    
    .mystiq-features-list {
        margin: 1rem 0;
        max-width: 280px;
    }
    
    .mystiq-features-list li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
    
    .mystiq-alert {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .mystiq-section {
        padding: 2rem 0;
    }
    
    .mystiq-footer {
        padding: 2rem 0;
    }
    
    .mystiq-footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Ultra-small screens */
@media (max-width: 360px) {
    .mystiq-container {
        padding: 0 8px;
    }
    
    .mystiq-hero h1 {
        font-size: 1.9rem;
    }
    
    .mystiq-hero p {
        font-size: 1rem;
    }
    
    .mystiq-content {
        padding: 1rem;
    }
    
    .mystiq-game-item {
        padding: 1rem;
    }
    
    .mystiq-game-number {
        font-size: 2rem;
    }
    
    .mystiq-game-frame {
        height: 350px;
    }
    
    .mystiq-nav-links a {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    /* Mobile touch devices */
    .mystiq-game-item {
        border-width: 3px;
    }
    
    .mystiq-game-item:hover {
        transform: none;
    }
    
    .mystiq-game-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .mystiq-btn {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .mystiq-nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .mystiq-game-number:hover {
        animation: none;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .mystiq-hero {
        padding: 2rem 0;
    }
    
    .mystiq-hero h1 {
        font-size: 2.2rem;
    }
    
    .mystiq-game-frame {
        height: 450px;
    }
    
    .mystiq-section {
        padding: 1.5rem 0;
    }
}

/* Sparkle animation for game numbers */
@keyframes sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        text-shadow: var(--glow-golden);
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        text-shadow: 0 0 20px var(--enchanted-gold), 0 0 30px var(--enchanted-gold);
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --cosmic-black: #000000;
        --twilight-indigo: #000000;
    }
}