/* =============================================================================
   ODDFORGE EXPERIENCE - STYLE
   Version: 2.0
   Design: Creative Studio with Game Mode Integration
   ============================================================================= */

/* --- CSS VARIABLES --- */
:root {
    --odf-background: hsl(240, 15%, 6%);
    --odf-foreground: hsl(200, 20%, 95%);
    --odf-card: hsl(240, 15%, 10%);
    --odf-primary: hsl(280, 70%, 60%);
    --odf-secondary: hsl(190, 90%, 55%);
    --odf-accent: hsl(320, 80%, 60%);
    --odf-muted: hsl(240, 15%, 15%);
    --odf-muted-foreground: hsl(200, 15%, 60%);
    --odf-border: hsl(280, 40%, 25%);
    --odf-char-color: #ff6b35;
}

/* --- RESET & BASE --- */
#odf-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--odf-background);
    color: var(--odf-foreground);
    font-family: 'Rajdhani', sans-serif;
    z-index: -2;
    overflow: hidden;
    line-height: 1.6;
}

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

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rajdhani:wght@400;500;600;700&display=swap');

.font-pixel {
    font-family: 'Press Start 2P', cursive;
}

/* --- GATEWAY SCREEN --- */
#gateway-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--odf-background);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.logo-box {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-box img {
    max-width: 400px;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.logo-box .tagline {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--odf-secondary) 0%, var(--odf-primary) 50%, var(--odf-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gateway-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- BUTTONS --- */
.btn-choice {
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid var(--odf-border);
    background: transparent;
    color: var(--odf-foreground);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s;
}

.btn-choice:hover {
    background: var(--odf-foreground);
    color: var(--odf-background);
}

.btn-game {
    border-color: var(--odf-accent);
    color: var(--odf-accent);
}

.btn-game:hover {
    background: var(--odf-accent);
    color: white;
    box-shadow: 0 0 30px hsla(320, 80%, 60%, 0.5);
}

.btn-primary {
    background: var(--odf-primary);
    color: white;
    border: none;
    box-shadow: 0 0 20px hsla(280, 70%, 60%, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px hsla(280, 70%, 60%, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--odf-secondary);
    border: 2px solid var(--odf-secondary);
}

.btn-secondary:hover {
    background: hsla(190, 90%, 55%, 0.1);
    box-shadow: 0 0 20px hsla(190, 90%, 55%, 0.3);
}

.btn-accent {
    background: var(--odf-accent);
    color: white;
    border: none;
    box-shadow: 0 0 20px hsla(320, 80%, 60%, 0.4);
}

/* --- MODE SWITCHER --- */
#mode-switcher {
    position: fixed;
    top: 20px; left: 20px;
    z-index: 10001;
    background: rgba(0,0,0,0.8);
    border: 2px solid var(--odf-primary);
    padding: 12px 18px;
    cursor: pointer;
    display: none;
    font-size: 0.8rem;
    color: var(--odf-foreground);
    border-radius: 8px;
    transition: all 0.3s;
}

#mode-switcher:hover {
    background: var(--odf-primary);
    box-shadow: 0 0 20px var(--odf-primary);
}

.switch-icon {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--odf-foreground);
    margin-right: 8px;
}

.mode-game .switch-icon { background: var(--odf-accent); }

/* =============================================================================
   STANDARD SITE MODE
   ============================================================================= */

#standard-site {
    display: none;
    width: 100%; height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}

/* --- NAVIGATION --- */
#standard-site .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: hsla(240, 15%, 6%, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--odf-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--odf-foreground);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--odf-secondary);
    text-shadow: 0 0 10px var(--odf-secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--odf-foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- SECTIONS --- */
.section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        hsla(240, 15%, 6%, 0.7),
        hsla(240, 15%, 6%, 0.5),
        hsla(240, 15%, 6%, 0.8));
}

.section-content {
    position: relative;
    z-index: 10;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 6rem 2rem !important;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1rem;
    color: var(--odf-secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--odf-secondary), var(--odf-primary), var(--odf-accent));
    border-radius: 2px;
}

/* Text Glow Effects */
.text-glow-cyan {
    text-shadow: 0 0 10px hsla(190, 90%, 55%, 0.8), 0 0 20px hsla(190, 90%, 55%, 0.5);
}

.text-glow-purple {
    text-shadow: 0 0 10px hsla(280, 70%, 60%, 0.8), 0 0 20px hsla(280, 70%, 60%, 0.5);
}

.text-glow-magenta {
    text-shadow: 0 0 10px hsla(320, 80%, 60%, 0.8), 0 0 20px hsla(320, 80%, 60%, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, var(--odf-secondary) 0%, var(--odf-primary) 50%, var(--odf-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- HERO SECTION --- */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo {
    max-width: 400px;
    animation: float 3s ease-in-out infinite;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-description {
    max-width: 600px;
    font-size: 1.125rem;
    color: var(--odf-muted-foreground);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- CARDS GRID --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px)) !important;
    max-width: 100%;
    margin: 50px !important;
    gap: 2.5rem;
    justify-items: center;
    justify-content: center;
}

/* Max 4 columns on large screens */
@media (min-width: 1400px) {
    .cards-grid {
        grid-template-columns: repeat(3, 320px);
    }
}

/* Max 3 columns on medium screens */
@media (min-width: 1000px) and (max-width: 1399px) {
    .cards-grid {
        grid-template-columns: repeat(3, 320px) !important;
    }
}

/* Max 2 columns on smaller screens */
@media (min-width: 700px) and (max-width: 999px) {
    .cards-grid {
        grid-template-columns: repeat(2, 320px) !important;
    }
}

/* Game Cards */
.game-card {
    position: relative;
    overflow: hidden;
    padding: 1.75rem !important;
    border-radius: 0.75rem;
    border: 1px solid hsla(280, 40%, 25%, 0.5);
    background: hsla(240, 15%, 10%, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    max-width: 320px;
    animation: cardFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.2s);
}

.game-card:nth-child(1) { --card-index: 0; }
.game-card:nth-child(2) { --card-index: 1; }
.game-card:nth-child(3) { --card-index: 2; }
.game-card:nth-child(4) { --card-index: 3; }
.game-card:nth-child(5) { --card-index: 4; }
.game-card:nth-child(6) { --card-index: 5; }

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--odf-primary);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px hsla(280, 70%, 60%, 0.3),
        inset 0 1px 0 hsla(280, 70%, 80%, 0.1);
    animation-play-state: paused;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, hsla(280, 70%, 60%, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.game-card-content {
    padding: 1.5rem 1.75rem 1.75rem;
    display: grid;
    gap: 0.75rem;
}

.game-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.game-card-desc {
    color: var(--odf-muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.game-card-status {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.status-development { background: hsla(280, 70%, 60%, 0.2); color: var(--odf-primary); }
.status-alpha { background: hsla(190, 90%, 55%, 0.2); color: var(--odf-secondary); }
.status-prototype { background: hsla(320, 80%, 60%, 0.2); color: var(--odf-accent); }

/* Asset Cards */
.asset-card {
    padding: 2rem 2rem 2.5rem !important;
    border-radius: 0.75rem;
    border: 1px solid hsla(280, 40%, 25%, 0.5);
    background: hsla(240, 15%, 10%, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    animation: cardPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.15s);
}

.asset-card:nth-child(1) { --card-index: 0; }
.asset-card:nth-child(2) { --card-index: 1; }
.asset-card:nth-child(3) { --card-index: 2; }
.asset-card:nth-child(4) { --card-index: 3; }
.asset-card:nth-child(5) { --card-index: 4; }
.asset-card:nth-child(6) { --card-index: 5; }

.asset-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--odf-secondary);
    background: hsla(240, 15%, 12%, 0.9);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 25px hsla(190, 90%, 55%, 0.25);
    animation-play-state: paused;
}

.asset-card:hover .asset-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px hsla(190, 90%, 55%, 0.5));
}

.asset-icon {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.asset-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.asset-desc {
    color: var(--odf-muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Service Cards */
.service-card {
    padding: 2rem 2rem 2.5rem !important;
    border-radius: 0.75rem;
    border: 1px solid hsla(280, 40%, 25%, 0.5);
    background: hsla(240, 15%, 10%, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    position: relative;
    animation: cardFloat 5s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.25s);
}

.service-card:nth-child(1) { --card-index: 0; }
.service-card:nth-child(2) { --card-index: 1; }
.service-card:nth-child(3) { --card-index: 2; }
.service-card:nth-child(4) { --card-index: 3; }
.service-card:nth-child(5) { --card-index: 4; }
.service-card:nth-child(6) { --card-index: 5; }

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--odf-accent);
    box-shadow:
        0 18px 35px rgba(0, 0, 0, 0.35),
        0 0 30px hsla(320, 80%, 60%, 0.2);
    animation-play-state: paused;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--odf-accent), var(--odf-primary));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover .service-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px hsla(320, 80%, 60%, 0.6));
}

.service-icon {
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.service-desc {
    color: var(--odf-muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Marketplace Links */
.marketplace-section {
    margin-top: 3rem;
    text-align: center;
}

.marketplace-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--odf-muted-foreground);
}

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

.marketplace-link {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    background: hsla(240, 15%, 15%, 0.8);
    border: 1px solid var(--odf-border);
    color: var(--odf-foreground);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.marketplace-link:hover {
    border-color: var(--odf-secondary);
    box-shadow: 0 0 15px hsla(190, 90%, 55%, 0.3);
}

/* Services CTA */
.services-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* --- BLOG SECTION --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    max-width: 1200px;
    margin: 0 auto !important;
    gap: 2.5rem;
    justify-items: center;
    justify-content: center;
}

@media (min-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(3, 320px) !important;
    }
}

.blog-card {
    padding: 2rem 2rem 2.5rem !important;
    border-radius: 0.75rem;
    border: 1px solid hsla(280, 40%, 25%, 0.5);
    background: hsla(240, 15%, 10%, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    position: relative;
    overflow: hidden;
    animation: cardPulse 4s ease-in-out infinite;
    animation-delay: calc(var(--card-index, 0) * 0.3s);
}

.blog-card:nth-child(1) { --card-index: 0; }
.blog-card:nth-child(2) { --card-index: 1; }
.blog-card:nth-child(3) { --card-index: 2; }

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--odf-primary);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 20px hsla(280, 70%, 60%, 0.15);
    animation-play-state: paused;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, hsla(280, 70%, 60%, 0.05), transparent);
    transition: left 0.6s;
}

.blog-card:hover::before {
    left: 100%;
}

.blog-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--odf-muted-foreground);
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-platform span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--odf-muted);
    border-radius: 6px;
    font-size: 0.75rem;
}

.blog-content {
    color: var(--odf-foreground);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
}

.blog-date {
    color: var(--odf-muted-foreground);
    font-size: 0.8rem;
    margin-top: auto;
}

/* --- FOOTER --- */
#standard-site footer {
    background: hsla(240, 15%, 4%, 1);
    border-top: 1px solid var(--odf-border);
    padding: 4rem 2rem 2rem;
}

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

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--odf-secondary);
}

.footer-section p,
.footer-section a {
    color: var(--odf-muted-foreground);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--odf-foreground);
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--odf-border);
    text-align: center;
    color: var(--odf-muted-foreground);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--odf-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--odf-foreground);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--odf-primary);
    transform: scale(1.1);
}

/* =============================================================================
   GAME MODE - Angepasst ans Standard Site Design
   ============================================================================= */

#game-container {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

#game-ui {
    position: fixed;
    top: 80px; right: 20px;
    z-index: 100;
    font-size: 0.65rem;
    color: var(--odf-muted-foreground);
    font-family: 'Press Start 2P', monospace;
    background: hsla(240, 15%, 6%, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--odf-border);
}

/* Parallax Background Layers */
#game-bg-parallax {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.parallax-layer-1 { left: 0; width: 100vw; z-index: 1; }
.parallax-layer-2 { left: 100vw; width: 100vw; z-index: 1; }
.parallax-layer-3 { left: 200vw; width: 100vw; z-index: 1; }
.parallax-layer-4 { left: 300vw; width: 100vw; z-index: 1; }

/* Overlay für Parallax-Bilder */
.parallax-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        hsla(240, 15%, 6%, 0.5),
        hsla(240, 15%, 6%, 0.3),
        hsla(240, 15%, 6%, 0.6));
    pointer-events: none;
}

#bg-grid {
    position: absolute;
    top: 0; left: 0;
    width: 400%; height: 100%;
    z-index: 2;
    background-image:
        linear-gradient(rgba(155, 93, 229, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 93, 229, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

#world {
    position: relative;
    width: 100%; height: 100%;
    z-index: 10;
}

/* Game Overlay - Card Style */
#game-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: hsla(240, 15%, 6%, 0.8);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#game-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Close Button */
#overlay-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: 2px solid var(--odf-border);
    border-radius: 50%;
    background: hsla(240, 15%, 10%, 0.9);
    color: var(--odf-foreground);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
    padding-bottom: 4px;
}

#overlay-close:hover {
    background: var(--odf-accent);
    border-color: var(--odf-accent);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px hsla(320, 80%, 60%, 0.5);
}

/* Overlay Card */
#overlay-card {
    width: 90%;
    max-width: 400px;
    border-radius: 1rem;
    border: 1px solid hsla(280, 40%, 25%, 0.5);
    background: hsla(240, 15%, 10%, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px hsla(280, 70%, 60%, 0.15);
}

#game-overlay.active #overlay-card {
    transform: translateY(0) scale(1);
}

#overlay-card-header {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(280, 70%, 50%), hsl(320, 80%, 60%));
    position: relative;
}

#overlay-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, hsla(240, 15%, 10%, 0.5), transparent);
}

#overlay-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

#overlay-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

#overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--odf-foreground);
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
}

#overlay-desc {
    color: var(--odf-muted-foreground);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

#overlay-link {
    margin-top: 0.5rem;
    align-self: center;
    text-decoration: none;
}

/* ESC Hint */
#game-overlay::after {
    content: 'Press ESC or click X to close';
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--odf-muted-foreground);
    font-family: 'Press Start 2P', monospace;
    opacity: 0.6;
}

/* --- BLOCKS / PLATFORMS - Ans Site Design angepasst --- */
.block {
    position: absolute;
    background: hsla(240, 15%, 10%, 0.9);
    border: 2px solid var(--odf-border);
    border-radius: 6px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 hsla(280, 70%, 80%, 0.05);
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
}

.block:hover {
    border-color: var(--odf-secondary);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 20px hsla(190, 90%, 55%, 0.2);
    z-index: 500;
    transform: translateY(-2px);
}

.ground {
    background: linear-gradient(180deg,
        hsla(240, 15%, 14%, 0.95) 0%,
        hsla(240, 15%, 10%, 0.95) 100%);
    border-top: 3px solid var(--odf-primary);
}

/* Zone-spezifische Farben */
.zone-games { border-top-color: hsl(280, 70%, 60%); }
.zone-games:hover { box-shadow: 0 0 25px hsla(280, 70%, 60%, 0.3); }

.zone-assets { border-top-color: hsl(190, 90%, 55%); }
.zone-assets:hover { box-shadow: 0 0 25px hsla(190, 90%, 55%, 0.3); }

.zone-services { border-top-color: hsl(320, 80%, 60%); }
.zone-services:hover { box-shadow: 0 0 25px hsla(320, 80%, 60%, 0.3); }

.zone-blog { border-top-color: hsl(45, 90%, 55%); }
.zone-blog:hover { box-shadow: 0 0 25px hsla(45, 90%, 55%, 0.3); }

.zone-contact { border-top-color: hsl(140, 70%, 50%); }
.zone-contact:hover { box-shadow: 0 0 25px hsla(140, 70%, 50%, 0.3); }

.featured {
    background: linear-gradient(135deg,
        hsla(250, 60%, 20%, 0.9) 0%,
        hsla(280, 70%, 25%, 0.9) 100%);
    border: 2px solid hsl(280, 70%, 50%);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 30px hsla(280, 70%, 60%, 0.2);
}

.small {
    border-radius: 4px;
}

.bridge {
    background: hsla(240, 15%, 12%, 0.8);
    border-radius: 3px;
}

.moving {
    background: linear-gradient(180deg,
        hsla(320, 50%, 20%, 0.9) 0%,
        hsla(320, 40%, 15%, 0.9) 100%);
    border: 2px solid var(--odf-accent);
    border-radius: 4px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 15px hsla(320, 80%, 60%, 0.15);
}

.moving:hover {
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 25px hsla(320, 80%, 60%, 0.3);
}

/* Decorations (nicht-solid Hintergrund-Elemente) */
.decoration {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.decoration.pillar {
    background: linear-gradient(180deg,
        hsla(240, 15%, 15%, 0.3) 0%,
        hsla(240, 15%, 10%, 0.5) 100%);
    border-radius: 4px 4px 0 0;
}

.info-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: hsla(240, 15%, 6%, 0.95);
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    font-size: 0.6rem;
    color: var(--odf-secondary);
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Press Start 2P', monospace;
    border: 1px solid var(--odf-border);
    border-radius: 4px;
    margin-bottom: 5px;
}

.finish-label {
    color: hsl(140, 70%, 50%);
    font-size: 0.7rem;
    animation: finishGlow 2s ease-in-out infinite;
}

@keyframes finishGlow {
    0%, 100% {
        text-shadow: 0 0 10px hsla(140, 70%, 50%, 0.5);
    }
    50% {
        text-shadow: 0 0 20px hsla(140, 70%, 50%, 0.8), 0 0 30px hsla(140, 70%, 50%, 0.4);
    }
}

/* --- PLAYER CHARACTER --- */
#player {
    position: absolute;
    width: 32px; height: 48px;
    z-index: 100;
    pointer-events: none;
}

.skin {
    width: 100%; height: 100%;
    background: var(--odf-char-color);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 0 15px var(--odf-char-color);
    transition: transform 0.1s;
}

/* Visor */
.skin::after {
    content: '';
    position: absolute;
    top: 12px; left: 4px; right: 4px;
    height: 10px;
    background: #000;
    border-radius: 2px;
}

/* Eye */
.skin::before {
    content: '';
    position: absolute;
    top: 13px; left: 16px;
    width: 6px; height: 8px;
    background: var(--odf-secondary);
    z-index: 2;
    border-radius: 1px;
}

.facing-left .skin {
    transform: scaleX(-1);
}

.moving .skin {
    animation: waddle 0.2s infinite alternate;
}

/* --- ANIMATIONS --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes waddle {
    from { transform: rotate(-5deg); }
    to { transform: rotate(5deg); }
}

/* Card Idle Animations */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes cardPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }
}

@keyframes cardGlow {
    0%, 100% {
        border-color: hsla(280, 40%, 25%, 0.5);
    }
    50% {
        border-color: hsla(280, 40%, 35%, 0.7);
    }
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--odf-background);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--odf-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-logo, .logo-box img {
        max-width: 280px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 1.125rem;
    }

    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    .gateway-buttons {
        flex-direction: column;
    }

    .btn-choice {
        width: 100%;
        max-width: 300px;
    }
}

/* =============================================================================
   MOBILE TOUCH CONTROLS
   ============================================================================= */

/* Hide keyboard hints on mobile */
.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* Touch Controls Container */
#touch-controls {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px;
    pointer-events: none;
}

/* Show touch controls on mobile/tablet */
@media (max-width: 1024px) and (pointer: coarse) {
    #touch-controls {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
}

/* Also show on any touch device */
@media (hover: none) and (pointer: coarse) {
    #touch-controls {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.touch-left,
.touch-right {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

/* Touch Buttons */
.touch-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--odf-primary);
    background: hsla(240, 15%, 10%, 0.85);
    backdrop-filter: blur(10px);
    color: var(--odf-foreground);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 20px hsla(280, 70%, 60%, 0.15),
        inset 0 1px 0 hsla(280, 70%, 80%, 0.1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.touch-btn:active {
    transform: scale(0.92);
    background: hsla(280, 70%, 40%, 0.9);
    border-color: var(--odf-secondary);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px hsla(280, 70%, 60%, 0.4),
        inset 0 2px 10px hsla(280, 70%, 30%, 0.5);
}

/* Jump Button - Larger */
.touch-jump {
    width: 85px;
    height: 85px;
    font-size: 1.8rem;
    border-color: var(--odf-accent);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 25px hsla(320, 80%, 60%, 0.2);
}

.touch-jump:active {
    background: hsla(320, 80%, 40%, 0.9);
    border-color: var(--odf-secondary);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 35px hsla(320, 80%, 60%, 0.5);
}

/* Landscape adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    #touch-controls {
        padding: 10px 20px;
    }

    .touch-btn {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }

    .touch-jump {
        width: 65px;
        height: 65px;
        font-size: 1.4rem;
    }
}

/* Hide game-ui on very small screens */
@media (max-width: 480px) {
    #game-ui {
        font-size: 0.5rem;
        padding: 8px 12px;
        top: 10px;
        right: 10px;
    }
}
