:root {
    --bg-dark: #0d0d1a;
    --bg-space: #1a1a2e;
    --card: #16162a;
    --card-border: #2a2a4a;
    --cyan: #00e5ff;
    --green: #00e676;
    --yellow: #ffd600;
    --orange: #ff9500;
    --magenta: #e91e8c;
    --teal: #17b8c6;
    --text: #ffffff;
    --text-dim: #9e9e9e;
}

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

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated canvas background (particles + bursts) */
#fx-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Content sits above canvas */
.nav, .hero, main, footer { position: relative; z-index: 1; }

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px;
}

/* Header / Nav */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    max-width: 860px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--cyan);
    text-decoration: none;
    transition: text-shadow 0.2s;
}

.nav-brand:hover { text-shadow: 0 0 18px var(--cyan); }
.nav-brand img { height: 38px; width: auto; }

.lang-switch { display: flex; gap: 6px; }

.lang-btn {
    background: rgba(22, 22, 42, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid var(--card-border);
    color: var(--text-dim);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

/* Hero */
.hero {
    text-align: center;
    padding: 34px 20px 26px;
}

.hero img.logo {
    width: 230px;
    max-width: 58vw;
    height: auto;
    animation: logoFloat 4.5s ease-in-out infinite, logoGlow 4.5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-14px) rotate(1.5deg); }
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 4px 18px rgba(0, 229, 255, 0.3)); }
    50% { filter: drop-shadow(0 10px 34px rgba(233, 30, 140, 0.45)); }
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-top: 18px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--orange), var(--cyan));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientSlide 7s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

.hero .tagline {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-top: 8px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section-title {
    color: var(--green);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 42px 0 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 14px rgba(0, 230, 118, 0.4);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Game Card */
.game-card {
    position: relative;
    background: rgba(22, 22, 42, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 26px;
    display: flex;
    gap: 22px;
    align-items: center;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: conic-gradient(from var(--shine-angle, 0deg), transparent 0%, var(--cyan) 12%, transparent 24%, transparent 55%, var(--magenta) 67%, transparent 79%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    animation: shineRotate 3.2s linear infinite;
    pointer-events: none;
}

@property --shine-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

@keyframes shineRotate {
    to { --shine-angle: 360deg; }
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 14px 44px rgba(0, 229, 255, 0.22), 0 0 0 1px rgba(0, 229, 255, 0.4);
}
.game-card:hover::before { opacity: 1; }

.game-icon {
    width: 116px;
    height: 116px;
    border-radius: 22px;
    flex-shrink: 0;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
    transition: transform 0.3s;
}
.game-card:hover .game-icon { transform: scale(1.06) rotate(-3deg); }

.game-info { flex: 1; min-width: 0; }

.game-info img.game-title {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.game-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 8px 0 14px;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.badge {
    background: var(--bg-space);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.75rem;
    color: var(--cyan);
    transition: all 0.2s;
}
.game-card:hover .badge { border-color: var(--cyan); }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--cyan), #0091ea);
    color: #00121a;
    font-weight: 700;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s;
    animation: btnPulse 2.6s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.5); }
    50% { box-shadow: 0 0 22px 4px rgba(0, 229, 255, 0.35); }
}

.store-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 28px rgba(0, 229, 255, 0.5);
}

/* Teaser / coming soon */
.teaser {
    position: relative;
    overflow: hidden;
}

.teaser .pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    margin-right: 8px;
    animation: dotPulse 1.6s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.6); }
    50% { box-shadow: 0 0 0 9px rgba(255, 214, 0, 0); }
}

/* Contact / Footer */
.card {
    background: rgba(22, 22, 42, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
}

.contact-line { margin: 6px 0; color: var(--text-dim); font-size: 0.95rem; }
.contact-line a { color: var(--cyan); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; text-shadow: 0 0 10px var(--cyan); }

footer {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

footer a { color: var(--cyan); text-decoration: none; margin-right: 16px; }
footer a:hover { text-decoration: underline; }

/* Hint for click fun */
.fx-hint {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.78rem;
    opacity: 0.7;
    margin-top: 10px;
    animation: fadeInUp 1s ease-out 1s both;
}

/* Subpages (privacy, impressum) */
.subpage h1 { color: var(--cyan); font-size: 1.8rem; margin: 24px 0 8px; }
.subpage h2 { color: var(--green); font-size: 1.15rem; margin: 28px 0 8px; }
.subpage h3 { color: var(--yellow); font-size: 1rem; margin: 18px 0 6px; }
.subpage p, .subpage li { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 8px; }
.subpage ul { padding-left: 22px; }
.subpage a { color: var(--cyan); }
.subpage a.back { display: inline-block; margin-top: 8px; font-weight: 600; }

.placeholder {
    background: rgba(255, 214, 0, 0.12);
    border: 1px dashed var(--yellow);
    border-radius: 6px;
    padding: 2px 8px;
    color: var(--yellow);
    font-weight: 600;
}

/* Language switching */
[lang-block] { display: none; }
body.lang-de [lang-block="de"] { display: block; }
body.lang-en [lang-block="en"] { display: block; }
body.lang-de [lang-inline="de"], body.lang-en [lang-inline="en"] { display: inline; }

@media (max-width: 560px) {
    .game-card { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
