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

body {
    font-family: 
        'Comic Sans MS',           /* Windows */
        'Chalkboard SE',           /* macOS/iOS */
        'Chalkboard',              /* older macOS/iOS */
        'Marker Felt',             /* iOS fallback */
        'Bradley Hand ITC',        /* macOS */
        'Trebuchet MS',            /* Cross-platform readable */
        'Helvetica Neue',          /* iOS/macOS clean fallback */
        'Arial',                   /* Universal fallback */
        sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Animated star background */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(200px); }
}

/* Header */
.main-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.header-content {
    margin-bottom: 20px;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.header-nav .nav-link:hover,
.header-nav .nav-link:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Focus styles for accessibility */
.header-nav .nav-link:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.logo {
    font-size: 3.5em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
    cursor: pointer;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 215, 0, 0.3); }
}

.tagline {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
}

/* Main content */
.portal-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.hero-content h2 {
    font-size: 2.5em;
    color: #4ecdc4;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
}

/* Universe Preview Section */
.universe-preview {
    margin: 30px 0 40px;
}

.universe-teaser {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.universe-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.universe-teaser > * {
    position: relative;
    z-index: 2;
}

.universe-teaser h3 {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: universeGlow 3s ease-in-out infinite alternate;
}

@keyframes universeGlow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4); }
}

.universe-teaser p {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
}

.universe-btn {
    display: inline-block;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.universe-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.games-section {
    margin: 60px 0;
}

.games-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.game-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-card.featured {
    border: 3px solid #ff6b6b;
    background: linear-gradient(135deg, #fff 0%, #fff9f5 100%);
}

.game-card.coming-soon {
    opacity: 0.8;
}

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

.game-icon {
    font-size: 3em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.game-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.game-badge.live {
    background: #4ecdc4;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(78, 205, 196, 0); }
    100% { box-shadow: 0 0 0 0 rgba(78, 205, 196, 0); }
}

.game-badge.soon {
    background: #ffa500;
    color: white;
}

.game-card h3 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
}

.game-card p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.feature {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    color: #333;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.play-btn {
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    font-family: inherit;
    border: none;
    cursor: pointer;
}

.play-btn.primary {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.play-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.play-btn.secondary {
    background: #ddd;
    color: #555;
    cursor: not-allowed;
}

.game-info {
    text-align: center;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 0.9em;
}

/* Features Section */
.features-section {
    margin: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 60px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #4ecdc4;
    margin-bottom: 50px;
}

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

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-3px);
}

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

.feature-card h3 {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #333;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 80px 0;
    padding: 60px 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    border-radius: 25px;
    color: white;
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.3);
}

.cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 20px 40px;
    background: white;
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.cta-info {
    margin-top: 30px;
}

.cta-info p {
    font-size: 1em;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    margin-top: 60px;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: #4ecdc4;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #4ecdc4;
}

.footer-bottom {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.9);
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5em;
    }
    
    .hero-content h2 {
        font-size: 2em;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .universe-teaser h3 {
        font-size: 1.8em;
    }
    
    .universe-teaser p {
        font-size: 1.1em;
    }
    
    .universe-btn {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .portal-main {
        padding: 0 15px;
    }
    
    .hero-section, .features-section {
        padding: 40px 20px;
    }
    
    .game-card {
        padding: 20px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .header-nav .nav-link {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

/* Legal Content Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.legal-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.legal-container h1 {
    color: #4ecdc4;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #333;
    font-style: italic;
    margin-bottom: 40px;
    font-size: 0.9em;
}

.coppa-notice, .educational-notice, .accessibility-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.coppa-notice h2, .educational-notice h2, .accessibility-notice h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.coppa-notice p, .educational-notice p, .accessibility-notice p {
    margin: 0;
    font-size: 1.1em;
}

.privacy-section, .terms-section, .accessibility-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.privacy-section:last-of-type, .terms-section:last-of-type, .accessibility-section:last-of-type {
    border-bottom: none;
}

.privacy-section h2, .terms-section h2, .accessibility-section h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.privacy-section h3, .terms-section h3, .accessibility-section h3 {
    color: #764ba2;
    font-size: 1.3em;
    margin: 25px 0 15px;
}

.privacy-section ul, .terms-section ul, .accessibility-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.privacy-section li, .terms-section li, .accessibility-section li {
    margin-bottom: 8px;
    color: #444;
}

.privacy-section p, .terms-section p, .accessibility-section p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info strong {
    color: #667eea;
}

.coppa-certification, .educational-commitment, .accessibility-commitment {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.coppa-certification h2, .educational-commitment h2, .accessibility-commitment h2 {
    margin-bottom: 15px;
    font-size: 1.6em;
}

.legal-footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #4ecdc4;
}

.legal-footer p {
    margin: 0;
    opacity: 0.8;
}

/* Links in legal content */
.legal-container a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-container a:hover,
.legal-container a:focus {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Mobile adjustments for legal content */
@media (max-width: 768px) {
    .legal-container {
        padding: 25px;
        margin: 20px 0;
    }
    
    .legal-container h1 {
        font-size: 2em;
    }
    
    .privacy-section h2, .terms-section h2, .accessibility-section h2 {
        font-size: 1.5em;
    }
    
    .footer-nav {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
}

/* =================================
   🚀 ANDRES GAMES LINK SECTION
   ================================= */

.brother-adventures {
    background: linear-gradient(135deg, #ff6b00, #ff8c42);
    border: 2px solid #ff6b00;
    border-radius: 15px;
    margin: 30px auto 20px auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.brother-adventures::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: rotate-bg 8s linear infinite;
    z-index: 1;
}

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

.andres-link-container {
    position: relative;
    z-index: 2;
    padding: 25px;
    text-align: center;
}

.andres-link-container h4 {
    color: #ffffff;
    font-size: 1.4em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.andres-link-container p {
    color: #fff5e6;
    margin-bottom: 15px;
    font-size: 1em;
}

.andres-games-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #1a1a3a, #2d2d5a);
    color: #00f5ff;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid #00f5ff;
    margin: 10px 0;
    text-shadow: 0 0 10px #00f5ff;
    box-shadow: 
        0 4px 15px rgba(0,245,255,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.andres-games-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0,245,255,0.5),
        inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: 0 0 20px #00f5ff;
    border-color: #ffff00;
    color: #ffff00;
}

.rocket-icon {
    font-size: 1.3em;
    animation: rocket-bounce 2s ease-in-out infinite;
}

@keyframes rocket-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

.link-text {
    font-family: 'Orbitron', 'Courier New', monospace;
    letter-spacing: 0.1em;
}

.coming-soon-badge {
    background: #ff3333;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { 
        box-shadow: 0 0 5px #ff3333;
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 15px #ff3333;
        transform: scale(1.05);
    }
}

.andres-description {
    font-size: 0.9em;
    color: #fff5e6;
    font-style: italic;
    margin-top: 10px;
}

/* Responsive Design for Andres Link */
@media (max-width: 768px) {
    .brother-adventures {
        margin: 20px 10px;
    }
    
    .andres-link-container {
        padding: 20px 15px;
    }
    
    .andres-link-container h4 {
        font-size: 1.2em;
    }
    
    .andres-games-link {
        padding: 12px 20px;
        font-size: 1em;
        flex-wrap: wrap;
        justify-content: center;
    }
}