/* ============================
   ☕ Kaffeekränzchen — Cozy Edition
   Warm, playful, handcrafted feel
   ============================ */

:root {
    --bg: #0e0705;
    --warm-surface: rgba(43, 26, 18, 0.4);
    --warm-surface-hover: rgba(56, 36, 26, 0.5);
    --gold: #d4a053;
    --gold-light: #e8c87e;
    --gold-dim: #b38539;
    --gold-glow: rgba(212, 160, 83, 0.15);
    --gold-glow-hot: rgba(212, 160, 83, 0.3);
    --cream: #f4e8d4;
    --cream-50: rgba(244, 232, 212, 0.5);
    --cream-30: rgba(244, 232, 212, 0.3);
    --cream-15: rgba(244, 232, 212, 0.15);
    --cream-08: rgba(244, 232, 212, 0.08);
    --discord: #5865F2;
    --green: #4ade80;
    --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', -apple-system, sans-serif;
    color: var(--cream);
    line-height: 1.65;
    overflow-x: clip; /* clip preserves smooth-scrolling! */
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    background-color: #0c0604;
    background-image: 
        radial-gradient(circle at 20% 0%, rgba(60, 35, 20, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(40, 20, 10, 0.6) 0%, transparent 60%);
    background-attachment: fixed;
    transition: background 1.5s ease, filter 1s ease;
}
body.video-focused::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(12, 6, 4, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9998;
    animation: fadeIn 0.4s ease forwards;
    pointer-events: none;
}

body.warm-mode {
    background-color: #1a0802;
    background-image: 
        radial-gradient(ellipse at top left, rgba(120, 40, 10, 0.4), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(180, 80, 20, 0.3), transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(220, 120, 30, 0.2), transparent 70%);
}


::selection { background: var(--gold); color: #1a0f08; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--warm-bg); }
::-webkit-scrollbar-thumb { background: var(--mc-dirt); border-radius: 3px; }

/* ---- BACKGROUND ---- */
/* Grain texture for a cozy analog feel */

/* Film grain for texture */
.grain {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 150px;
}

#particleCanvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1; pointer-events: none;
}

/* Coffee Bean Canvas */
#beanCanvas {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9; pointer-events: none;
}

/* ---- AMBIENT COZY ORBS & GRID ---- */
.ambient-orbs {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.ambient-orbs::after {
    content: '';
    position: absolute; inset: 0;
    /* Sehr weiches Raster */
    background-image: radial-gradient(rgba(240, 226, 204, 0.25) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    opacity: 0.08;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18; /* Bessere Lesbarkeit durch weicheres Licht */
    animation: orbFloat 30s ease-in-out infinite alternate;
}
.orb1 {
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, #784421, transparent 70%); /* Sanftes Kaffee-Braun */
    top: -15%; left: -15%;
    animation-duration: 25s;
}
.orb2 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, #a67c52, transparent 70%); /* Latte/Crema */
    top: 40%; right: -20%;
    animation-duration: 21s; animation-delay: -7s;
}
.orb3 {
    width: 65vw; height: 65vw;
    background: radial-gradient(circle, #592e15, transparent 70%); /* Tiefes Espresso */
    bottom: -20%; left: 20%;
    animation-duration: 28s; animation-delay: -12s;
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 15px) scale(0.9); }
    100% { transform: translate(15px, -30px) scale(1.05); }
}

/* ---- COZY COFFEE MACHINE ---- */
.coffee-machine-stats {
    text-align: center;
    font-size: 0.8rem;
    color: var(--cream-50);
    margin-top: -6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}
.coffee-machine {
    position: fixed;
    bottom: 0;
    right: 30px;
    z-index: 10;
    width: 140px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    user-select: none;
}
.coffee-machine:hover {
    transform: translateY(-5px);
    filter: brightness(1.08);
}

.coffee-machine-body {
    position: relative;
    width: 140px;
    background: linear-gradient(180deg, #4a3628 0%, #3a2a1e 40%, #2d1f15 100%);
    border-radius: 14px 14px 6px 6px;
    border: 2px solid #5a4030;
    box-shadow:
        0 8px 40px rgba(0,0,0,0.6),
        0 0 20px rgba(212,160,83,0.06),
        inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: visible; /* Changed to visible for the cat */
    padding-bottom: 46px;
}

/* Cozy Cat Easter Egg */
.cozy-cat {
    position: absolute;
    top: -14px;
    right: 15px;
    font-size: 1.1rem;
    z-index: 12;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
    user-select: none;
}
.cozy-cat:hover {
    transform: scale(1.1) rotate(-5deg);
}
.cozy-cat .cat-z {
    position: absolute;
    top: -12px;
    right: -8px;
    font-size: 0.6rem;
    color: var(--cream);
    opacity: 0;
    font-weight: bold;
    font-family: 'Nunito', sans-serif;
}
.cozy-cat.sleeping .cat-z {
    animation: catZzz 2s infinite linear;
}
@keyframes catZzz {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    30% { opacity: 1; }
    80% { opacity: 0; }
    100% { transform: translate(10px, -15px) scale(1.2); opacity: 0; }
}

/* Top Panel */
.cm-top-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: linear-gradient(180deg, #5a4030, #4a3628);
    border-bottom: 1px solid rgba(0,0,0,0.3);
}
.cm-light {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #555;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}
.cm-light.active {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74,222,128,0.7), inset 0 1px 2px rgba(255,255,255,0.2);
    animation: pulse 2s ease infinite;
}
.cm-light-red {
    background: #c0392b;
    box-shadow: 0 0 4px rgba(192,57,43,0.3), inset 0 1px 2px rgba(0,0,0,0.3);
}
.cm-display {
    font-size: 0.7rem;
    font-family: 'Outfit', monospace;
    color: #e8c87e;
    background: rgba(0,0,0,0.4);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212,160,83,0.15);
    text-shadow: 0 0 6px rgba(232,200,126,0.3);
    letter-spacing: 0.5px;
}

/* Hopper */
.cm-hopper {
    position: relative;
    width: 56px; height: 34px;
    margin: 8px auto 6px;
    background: rgba(90,56,37,0.25);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px 8px 3px 3px;
    overflow: hidden;
    clip-path: polygon(5% 0%, 95% 0%, 85% 100%, 15% 100%);
}
.cm-hopper-fill {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, #8a6040, #6b4430, #5a3825);
    transition: height 0.5s cubic-bezier(0.34,1.56,0.64,1);
    height: 0%;
}
.cm-hopper-shine {
    position: absolute;
    top: 0; left: 15%; width: 30%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
}

/* Front plate */
.cm-front {
    position: relative;
    padding: 4px 12px 8px;
}

/* Brew Button */
.cm-brew-btn {
    display: block;
    width: 100%;
    padding: 5px 0;
    margin-bottom: 6px;
    background: linear-gradient(180deg, #8b3a2a, #6b2a1a);
    border: 2px solid #5a2218;
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.cm-brew-btn:hover {
    background: linear-gradient(180deg, #a04432, #7b3222);
    transform: scale(1.03);
}
.cm-brew-btn.ready {
    background: linear-gradient(180deg, #2ecc71, #1ea854);
    border-color: #169a48;
    color: #fff;
    box-shadow: 0 2px 12px rgba(46,204,113,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    animation: readyPulse 1.5s ease infinite;
}
.cm-brew-btn.ready:hover {
    background: linear-gradient(180deg, #3ddc84, #27ba62);
    transform: scale(1.05);
}
.cm-brew-icon { font-size: 0.6rem; }

/* Spout */
.cm-spout {
    position: relative;
    width: 18px; height: 14px;
    margin: 0 auto;
    background: linear-gradient(180deg, #6a5040, #4a3628);
    border-radius: 0 0 6px 6px;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: none;
}
.cm-drip {
    position: absolute;
    bottom: -5px; left: 50%; transform: translateX(-50%);
    width: 3px; height: 0;
    background: linear-gradient(180deg, #5a3825, #3d2515);
    border-radius: 0 0 2px 2px;
    opacity: 0;
}
.cm-drip.dripping {
    opacity: 1;
    animation: drip 0.8s ease-in infinite;
}
@keyframes drip {
    0% { height: 0; opacity: 1; }
    70% { height: 18px; opacity: 1; }
    100% { height: 22px; opacity: 0; }
}

/* Drip tray + Cup */
.cm-tray {
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 80%; height: 42px;
    background: linear-gradient(180deg, #352518, #2a1c12);
    border-radius: 0 0 4px 4px;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
}
.cm-cup {
    position: relative;
    width: 36px; height: 26px;
    background: linear-gradient(180deg, #f8f2ea, #e8ddd0, #ddd2c4);
    border-radius: 3px 3px 8px 8px;
    border: 1px solid rgba(0,0,0,0.12);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.6);
}
.cm-cup-handle {
    position: absolute;
    right: -9px; top: 5px;
    width: 9px; height: 14px;
    border: 2px solid #e8ddd0;
    border-left: none;
    border-radius: 0 7px 7px 0;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.15);
}

/* Golden Cup Milestone */
.cm-cup.golden-cup-unlocked {
    background: linear-gradient(180deg, #ffd700, #f39c12, #d35400) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
    border-color: #f1c40f !important;
}
.cm-cup.golden-cup-unlocked .cm-cup-handle {
    border-color: #f39c12 !important;
    box-shadow: 2px 2px 8px rgba(243, 156, 18, 0.4) !important;
}

.cm-cup-fill {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(180deg, #6b4430, #5a3825, #3d2515);
    transition: height 0.6s ease;
    height: 0%;
}
.cm-cup-shine {
    position: absolute;
    top: 0; left: 3px; width: 6px; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
    border-radius: 2px;
    pointer-events: none;
}

/* Labels & UI */
.coffee-machine-label {
    text-align: center;
    padding: 6px 0 2px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cream-30);
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}
.coffee-machine:hover .coffee-machine-label { color: var(--cream-50); }

.coffee-machine-bean-counter {
    position: absolute;
    top: -30px; left: 50%; transform: translateX(-50%);
    background: rgba(40,28,20,0.92);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold-light);
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 8px rgba(212,160,83,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.coffee-machine:hover .coffee-machine-bean-counter,
.coffee-machine-bean-counter.show { opacity: 1; }

/* Steam */
.coffee-machine-steam {
    position: absolute;
    top: -22px; left: 50%; transform: translateX(-50%);
    pointer-events: none; opacity: 0;
    transition: opacity 0.5s ease;
}
.coffee-machine-steam.active { opacity: 1; }
.coffee-machine-steam span {
    display: block;
    width: 6px; height: 14px;
    border-radius: 50%;
    background: rgba(240, 226, 204, 0.12);
    position: absolute;
    animation: steamRise 2s ease-in-out infinite;
}
.coffee-machine-steam span:nth-child(1) { left: -8px; animation-delay: 0s; }
.coffee-machine-steam span:nth-child(2) { left: 3px; animation-delay: 0.4s; }
.coffee-machine-steam span:nth-child(3) { left: 14px; animation-delay: 0.8s; }

@keyframes readyPulse {
    0%,100% { box-shadow: 0 2px 12px rgba(46,204,113,0.3); }
    50% { box-shadow: 0 2px 20px rgba(46,204,113,0.6); }
}

/* Machine Animations */
.coffee-machine.shake-hint { animation: machineShake 0.5s ease; }
@keyframes machineShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px) rotate(-1deg); }
    40% { transform: translateX(3px) rotate(1deg); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}
.coffee-machine.bean-added { animation: beanBounce 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes beanBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}
.coffee-machine.brewing { animation: brewVibrate 0.1s linear infinite; }
@keyframes brewVibrate {
    0% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}
.cm-cup.cup-celebration { 
    animation: cupLevelUp 1.6s cubic-bezier(0.34,1.56,0.64,1); 
    z-index: 100;
}
@keyframes cupLevelUp {
    0% { transform: scale(1) translateY(0); }
    15% { transform: scale(2.5) translateY(-40px); filter: drop-shadow(0 0 20px var(--gold)); }
    30% { transform: scale(2.8) translateY(-45px) rotate(-8deg); filter: drop-shadow(0 0 40px var(--gold)); }
    45% { transform: scale(2.8) translateY(-45px) rotate(8deg); filter: drop-shadow(0 0 40px var(--gold)); }
    60% { transform: scale(2.8) translateY(-45px) rotate(-4deg); filter: drop-shadow(0 0 40px var(--gold)); }
    75% { transform: scale(2.8) translateY(-45px) rotate(4deg); filter: drop-shadow(0 0 40px var(--gold)); }
    85% { transform: scale(2.5) translateY(-40px) rotate(0); filter: drop-shadow(0 0 20px var(--gold)); }
    100% { transform: scale(1) translateY(0); }
}

@media (max-width: 768px) {
    .coffee-machine {
        right: 8px;
        transform: scale(0.75);
        transform-origin: bottom right;
    }
    .coffee-machine:hover {
        transform: scale(0.75) translateY(-4px);
    }
}


.coffee-toast-special {
    animation: coffeeCelebration 0.6s ease;
}
@keyframes coffeeCelebration {
    0% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-8px) scale(1.1); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .coffee-machine {
        right: 10px;
        transform: scale(0.8);
        transform-origin: bottom right;
    }
    .coffee-machine:hover {
        transform: scale(0.8) translateY(-4px);
    }
}

/* ---- LAYOUT ---- */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ---- NAV ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; z-index: 100;
    transition: all 0.35s ease;
}
.navbar.scrolled {
    backdrop-filter: blur(20px) saturate(1.2);
    background: rgba(24, 16, 12, 0.72);
    border-bottom: 1px solid var(--cream-08);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav-brand {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: inherit;
    flex: 1;
}
.nav-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.nav-title {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 1rem; letter-spacing: -0.01em;
}
.nav-links {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; gap: 2px;
}
.nav-link {
    text-decoration: none; color: var(--cream-50); font-size: 0.82rem;
    font-weight: 600; padding: 6px 12px; border-radius: 8px;
    transition: all 0.2s ease; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--cream); background: var(--cream-08); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 12px; height: 2px; background: var(--gold); border-radius: 1px;
}
.nav-discord {
    display: flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: var(--discord); color: white; text-decoration: none;
    border-radius: 8px; font-size: 0.82rem; font-weight: 700;
    transition: all 0.2s ease;
    margin-left: auto;
}
.nav-discord:hover { background: #4752C4; transform: translateY(-1px); box-shadow: 0 3px 12px rgba(88,101,242,0.3); }

/* ---- HERO ---- */
.hero {
    position: relative; z-index: 2; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 80px 20px 60px;
}
.hero-content { max-width: 550px; }

/* Logo with steam */
.hero-logo-wrap {
    position: relative; display: inline-block; margin-bottom: 24px;
    cursor: pointer; animation: popIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
.hero-logo {
    width: 160px; height: 160px; border-radius: 24px; object-fit: cover;
    position: relative; z-index: 1;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.hero-logo-wrap:hover .hero-logo { transform: scale(1.08) rotate(-3deg); }
.hero-logo-wrap.clicked .hero-logo {
    animation: coffeeShake 0.5s ease;
}
@keyframes coffeeShake {
    0%,100% { transform: rotate(0); }
    25% { transform: rotate(-8deg) scale(1.1); }
    50% { transform: rotate(5deg) scale(1.05); }
    75% { transform: rotate(-3deg); }
}

@keyframes heartbeat {
    0% { transform: scale(1); filter: contrast(1); }
    15% { transform: scale(1.15) rotate(3deg); filter: contrast(1.2) brightness(1.2); }
    30% { transform: scale(1); filter: contrast(1); }
    45% { transform: scale(1.15) rotate(-3deg); filter: contrast(1.2) brightness(1.2); }
    60% { transform: scale(1); filter: contrast(1); }
}

/* Steam */
.steam-wrap {
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 90px; z-index: 2; pointer-events: none;
}
.steam {
    position: absolute; bottom: 0; 
    width: 20px; height: 20px; border-radius: 50%;
    background: radial-gradient(circle, rgba(235, 215, 195, 0.45) 0%, transparent 60%);
    filter: blur(5px);
    animation: steamWarm 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.s1 { left: 10px; animation-duration: 3.2s; animation-delay: 0s; }
.s2 { left: 25px; width: 26px; height: 26px; animation-duration: 4.1s; animation-delay: 0.8s; }
.s3 { left: 45px; width: 16px; height: 16px; animation-duration: 3.5s; animation-delay: 1.5s; }
.s4 { left: 30px; width: 22px; height: 22px; animation-duration: 4.5s; animation-delay: 2.2s; }

@keyframes steamWarm {
    0% { opacity: 0; transform: translateY(10px) scale(0.6) translateX(0); }
    20% { opacity: 0.8; }
    50% { transform: translateY(-25px) scale(1.4) translateX(-8px); }
    80% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-50px) scale(2.2) translateX(12px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.8) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem; font-weight: 600; font-style: italic;
    color: var(--gold-light); margin-bottom: 16px;
    animation: popIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.15s both;
}
.hero-desc {
    font-size: 1rem; color: var(--cream-50); line-height: 1.8;
    margin-bottom: 32px; text-wrap: balance;
    animation: popIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.25s both;
}
.hero-actions {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
    animation: popIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.35s both;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px; font-size: 0.9rem;
    font-weight: 700; text-decoration: none; border: none;
    cursor: pointer; font-family: inherit; transition: all 0.2s ease;
}
.btn-warm {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #1a0f08; box-shadow: 0 3px 16px var(--gold-glow);
}
.btn-warm:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--gold-glow-hot); filter: brightness(1.08); }
.btn-ghost {
    background: var(--cream-08); color: var(--cream); border: 1px solid var(--cream-08);
}
.btn-ghost:hover { background: var(--cream-15); transform: translateY(-2px); }
.btn-green {
    background: linear-gradient(135deg, #22c55e, #16a34a); color: white;
    box-shadow: 0 3px 16px rgba(34,197,94,0.2);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(34,197,94,0.3); }
.btn-discord {
    background: var(--discord); color: white; padding: 14px 28px;
    box-shadow: 0 3px 16px rgba(88,101,242,0.25);
}
.btn-discord:hover { background: #4752C4; transform: translateY(-2px); }

/* ---- CREEPER EASTER EGG ---- */
.creeper-egg {
    position: absolute; bottom: 100px; right: 40px;
    width: 28px; height: 28px; opacity: 0.08;
    cursor: pointer; transition: all 0.3s ease; z-index: 3;
}
.creeper-egg:hover { opacity: 0.6; transform: scale(1.3); }
.creeper-face { position: relative; width: 100%; height: 100%; background: #3d8a3d; border-radius: 2px; }
.c-eye {
    position: absolute; width: 8px; height: 8px; background: #111; top: 4px;
}
.c-eye:first-child { left: 3px; }
.c-eye:nth-child(2) { right: 3px; }
.c-mouth {
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 8px; background: #111;
}
.c-mouth::before, .c-mouth::after {
    content: ''; position: absolute; width: 4px; height: 4px; background: #111; top: 0;
}
.c-mouth::before { left: -4px; }
.c-mouth::after { right: -4px; }

/* ---- SCROLL HINT ---- */
.scroll-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    font-size: 1.2rem; color: var(--cream-30);
    animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.7; }
}

/* ---- SECTIONS ---- */
.section { 
    position: relative; 
    z-index: 2; 
    padding: 100px 0; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
    transition: background-color 0.5s ease;
    scroll-margin-top: 80px; /* offset for navbar during anchor scroll */
}
.section:last-of-type { border-bottom: none; }
.section + .section { padding-top: 80px; }

/* ---- UPDATE BANNER ---- */
.update-banner {
    position: relative; z-index: 2; padding: 40px 0 60px;
    scroll-margin-top: 80px;
}
.update-card {
    max-width: 560px; margin: 0 auto;
    background: linear-gradient(135deg, rgba(212,160,83,0.08), rgba(40,28,20,0.7));
    border: 1px solid rgba(212,160,83,0.25);
    border-radius: 16px; padding: 24px; text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(212,160,83,0.06);
    transition: all 0.3s ease;
}
.update-card:hover {
    border-color: rgba(212,160,83,0.4);
    box-shadow: 0 0 40px rgba(212,160,83,0.12);
    transform: translateY(-2px);
}
.update-header {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 8px;
}
.update-badge {
    display: inline-block; padding: 3px 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #1a0f08; border-radius: 100px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(212,160,83,0.3); }
    50% { box-shadow: 0 0 0 6px rgba(212,160,83,0); }
}
.update-title {
    font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800;
    letter-spacing: -0.01em; color: var(--cream);
}
.update-desc {
    font-size: 0.85rem; color: var(--cream-50); margin-bottom: 16px;
}
.update-video {
    position: relative; padding-top: 56.25%; border-radius: 10px;
    overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.update-video iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* ---- KINO FEATURE ---- */
.kino-wrapper { position: relative; }
.kino-info { display: none; }

.kino-wrapper.playing {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw; max-width: 1400px;
    z-index: 9999; display: flex; gap: 24px; align-items: stretch;
    background: rgba(15, 8, 5, 0.85); padding: 24px; border-radius: 16px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 100px rgba(232, 200, 126, 0.15);
    border: 1px solid var(--cream-08); backdrop-filter: blur(20px);
    animation: kinoExpand 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes kinoExpand {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.kino-wrapper.playing .update-video {
    flex: 3; position: relative; padding-top: 0; aspect-ratio: 16 / 9;
    box-shadow: none; border: none; border-radius: 8px;
}
.kino-wrapper.playing .kino-info {
    flex: 1; display: flex; flex-direction: column; color: var(--cream);
    padding: 10px 10px 10px 0; text-align: left;
    animation: kinoFadeInfo 0.6s ease forwards;
}
@keyframes kinoFadeInfo {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.kino-info h3 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; color: var(--gold); margin-bottom: 20px; font-weight: 800; }
.kino-info ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.kino-info li { font-size: 0.9rem; color: var(--cream-50); line-height: 1.5; position: relative; padding-left: 20px; }
.kino-info li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.8rem; top: 2px; }
.kino-info li strong { color: var(--cream); display: block; margin-bottom: 2px; }

@media (max-width: 900px) {
    .kino-wrapper.playing { flex-direction: column; gap: 15px; padding: 15px; }
    .kino-wrapper.playing .kino-info { padding: 5px; flex: none; height: auto; max-height: 250px; overflow-y: auto;}
    .kino-info ul { gap: 10px; }
}

/* ---- KINO MODE LOGIC ENHANCED ---- */

/* 1. Free the entire banner so children escape stacking traps */
body.video-focused .update-banner { z-index: initial; }

/* 2. Active Card: Instantly lose physical shell and stacking trap so the video springs freely. */
body.video-focused .update-card:has(.kino-wrapper.playing) { 
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important; 
    backdrop-filter: none !important; 
    filter: none !important; 
    z-index: 10000; 
    position: fixed;
    top: 50%; left: 50%;
    width: 100%;
    transition: none !important; 
}

/* 3. Active Card Text: Fade out inner header and text slowly */
body.video-focused .update-card:has(.kino-wrapper.playing) > *:not(.kino-wrapper) {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 4. Inactive Cards: Fade out completely to clear the background perfectly */
body.video-focused .update-card:not(:has(.kino-wrapper.playing)) {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s ease !important;
}

/* ---- MINECRAFT HUB BACKGROUND VIDEO ---- */
.minecraft-hub-wrapper {
    position: relative; z-index: 1;
}
.minecraft-hub-wrapper .section {
    border-bottom: none; /* Macht den Minecraft-Hub komplett nahtlos */
}
.minecraft-bg-video {
    position: absolute; inset: 0;
    z-index: 0; pointer-events: none;
}
.minecraft-bg-video-inner {
    position: sticky; top: 0;
    width: 100%; height: 100vh; overflow: hidden;
}
.minecraft-bg-video iframe {
    position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw;
    min-height: 100vh; min-width: 177.77vh; transform: translate(-50%, -50%) scale(1.1);
    filter: blur(10px) brightness(0.25) saturate(1.2); opacity: 0.8; border: none;
}
.minecraft-bg-overlay {
    position: absolute; inset: 0;
    /* Sehr sanfter Übergang am oberen und unteren Rand (weicher als zuvor) */
    background: linear-gradient(180deg, #0c0604 0%, rgba(12, 6, 4, 0.45) 15%, rgba(12, 6, 4, 0.55) 85%, #0c0604 100%);
    z-index: 1; pointer-events: none;
}

.cozy-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700;
    text-align: center; margin-bottom: 10px; letter-spacing: -0.01em;
}
.cozy-sub {
    text-align: center; color: var(--cream-50); font-size: 0.95rem;
    margin-bottom: 40px; max-width: 460px; margin-left: auto; margin-right: auto;
    text-wrap: balance;
}

/* ---- IP BLOCK ---- */
.ip-block {
    max-width: 480px; margin: 0 auto 36px;
    background: var(--warm-surface); border: 1px solid var(--cream-08);
    border-radius: var(--radius); padding: 24px;
    backdrop-filter: blur(12px); cursor: pointer;
    transition: all 0.25s ease;
}
.ip-block:hover {
    border-color: var(--gold); background: var(--warm-surface-hover);
    box-shadow: 0 0 30px var(--gold-glow), 0 12px 36px rgba(0,0,0,0.25);
}
.ip-label {
    font-size: 0.75rem; color: var(--cream-50); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
}
.ip-row { display: flex; align-items: center; gap: 12px; }
.ip-addr {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 1.35rem; font-weight: 700; color: var(--gold-light); flex: 1;
    letter-spacing: 0.02em;
}
.ip-btn {
    padding: 8px 18px; background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #1a0f08; border: none; border-radius: 8px; font-family: inherit;
    font-size: 0.82rem; font-weight: 800; cursor: pointer;
    transition: all 0.2s ease; white-space: nowrap;
}
.ip-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ip-btn:active { transform: scale(0.96); }
.ip-tag {
    display: flex; align-items: center; gap: 6px; margin-top: 10px;
    font-size: 0.75rem; color: var(--cream-50);
}
.online-dot {
    width: 6px; height: 6px; background: var(--green); border-radius: 50%;
    box-shadow: 0 0 6px rgba(74,222,128,0.5);
    animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---- WHITELIST CARD ---- */
.whitelist-card {
    max-width: 560px; margin: 0 auto;
    background: var(--warm-surface); border: 1px solid var(--cream-08);
    border-radius: var(--radius); padding: 28px;
    backdrop-filter: blur(12px);
}
.whitelist-card h3 {
    font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 700;
    margin-bottom: 20px;
}
.wl-steps { display: flex; flex-direction: column; gap: 18px; }
.wl-step { display: flex; gap: 14px; }
.wl-num {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #1a0f08; border-radius: 50%; font-weight: 800; font-size: 0.85rem;
}
.wl-step strong {
    font-family: 'Outfit', sans-serif; font-size: 0.95rem; display: block;
    margin-bottom: 3px;
}
.wl-step p { font-size: 0.85rem; color: var(--cream-50); line-height: 1.5; margin: 0; }

/* Trust box */
.trust-box {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--cream-08);
    border-radius: 6px; padding: 6px 12px; cursor: pointer;
    transition: border-color 0.2s ease;
}
.trust-box:hover { border-color: var(--cream-30); }
.trust-box code {
    font-family: 'Cascadia Code', monospace; font-size: 0.85rem; color: var(--cream-70);
}
.trust-box em { color: var(--gold); font-style: normal; }
.trust-copy {
    background: none; border: none; cursor: pointer; font-size: 0.85rem;
    padding: 2px; transition: transform 0.2s;
}
.trust-copy:hover { transform: scale(1.2); }
.wl-small { font-size: 0.78rem !important; color: var(--cream-30) !important; margin-top: 6px !important; }

/* ==============================
   MINECRAFT BLOCK MAP FRAME
   ============================== */
.mc-block-frame {
    max-width: 820px;
    margin: 0 auto 32px;
    position: relative;
    border-radius: 12px;
    background: #111;
    border: 8px solid #2d1c10;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.6),
        inset 0 0 0 2px rgba(255,255,255,0.08),
        inset 0 0 0 8px rgba(0,0,0,0.4),
        0 0 0 4px #1a100a;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* Screen overlay glare */
.mc-block-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 40%);
    border-radius: 4px;
}

/* Top bar — Elegant dark wood */
.mc-block-top {
    background: linear-gradient(180deg, #3d2a18, #2d1c10);
    padding: 12px 16px;
    border-bottom: 2px solid #1a100a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.05);
}
.mc-block-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.88rem; font-weight: 700; color: var(--gold-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}
.mc-block-icon { font-size: 1.1rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }

/* Screen area */
.mc-block-screen {
    position: relative; padding-top: 56.25%; background: #000;
}
.mc-block-screen iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}
.mc-block-screen:hover iframe { opacity: 1; }

.map-loading {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px;
    background: #0a0a0a; color: var(--cream-50); font-size: 0.9rem; z-index: 2;
    transition: opacity 0.5s ease;
}
.map-loading.hidden { opacity: 0; pointer-events: none; }
.map-spinner {
    width: 28px; height: 28px; border: 3px solid rgba(255,255,255,0.05);
    border-top-color: var(--gold); border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Bottom bar — Hidden in new design */
.mc-block-bottom, .mc-block-pixels {
    display: none;
}

/* ---- FULLSCREEN MAP LINK ---- */
.map-fullscreen-link {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    max-width: 400px; margin: 0 auto;
    padding: 16px 32px; border-radius: var(--radius);
    background: var(--warm-surface); border: 2px dashed var(--cream-15);
    color: var(--cream); text-decoration: none;
    font-size: 1rem; font-weight: 700; font-family: 'Outfit', sans-serif;
    transition: all 0.25s ease;
}
.map-fullscreen-link:hover {
    border-color: var(--gold); border-style: solid;
    background: var(--warm-surface-hover);
    box-shadow: 0 0 24px var(--gold-glow);
    transform: translateY(-2px);
}
.map-link-arrow {
    transition: transform 0.25s ease; font-size: 1.2rem;
}
.map-fullscreen-link:hover .map-link-arrow {
    transform: translateX(6px);
}

/* ---- MODPACK ---- */
.modpack-box {
    display: flex; gap: 0; max-width: 600px; margin: 0 auto;
    background: var(--warm-surface); border: 1px solid var(--cream-08);
    border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.modpack-box:hover {
    transform: translateY(-3px);
    border-color: var(--cream-15); box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.modpack-icon-area {
    width: 140px; display: flex; align-items: center; justify-content: center;
    background: rgba(34,197,94,0.06); border-right: 1px solid var(--cream-08);
    flex-shrink: 0;
}
.modpack-chest { font-size: 3rem; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.modpack-details { padding: 24px; flex: 1; }
.modpack-details h3 {
    font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
}
.modpack-details > p {
    font-size: 0.85rem; color: var(--cream-50); line-height: 1.6; margin-bottom: 14px;
}
.modpack-badges { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.badge {
    padding: 3px 10px; background: var(--cream-08); border: 1px solid var(--cream-08);
    border-radius: 100px; font-size: 0.72rem; font-weight: 600; color: var(--cream-50);
}
.coming-soon {
    display: block; margin-top: 8px; font-size: 0.75rem;
    color: var(--cream-30); font-style: italic;
}

/* ---- COMMUNITY ---- */
.vibe-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    max-width: 720px; margin: 0 auto 48px;
}
.vibe-card {
    padding: 28px 20px; background: var(--warm-surface);
    border: 1px solid var(--cream-08); border-radius: var(--radius);
    backdrop-filter: blur(12px); text-align: center;
    transition: all 0.3s ease;
}
.vibe-card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    border-color: var(--cream-15); background: var(--warm-surface-hover);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.vibe-emoji { font-size: 2rem; display: block; margin-bottom: 12px; }
.vibe-card h3 {
    font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px;
}
.vibe-card p { font-size: 0.82rem; color: var(--cream-50); line-height: 1.55; }

/* Discord invite */
.discord-invite {
    max-width: 480px; margin: 0 auto;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(88,101,242,0.2);
}
.discord-invite-inner {
    padding: 36px; text-align: center;
    background: linear-gradient(135deg, rgba(88,101,242,0.08), rgba(88,101,242,0.02));
    backdrop-filter: blur(12px);
}
.discord-invite h3 {
    font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px;
}
.discord-invite p {
    color: var(--cream-50); font-size: 0.88rem; margin-bottom: 20px;
}

/* ---- FOOTER ---- */
.footer {
    position: relative; z-index: 2; padding: 24px 0;
    border-top: 1px solid var(--cream-08);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-left { display: flex; align-items: center; gap: 8px; }
.footer-logo { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.footer-left span { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.9rem; }
.footer-love {
    font-size: 0.78rem; color: var(--cream-30); cursor: default;
    transition: color 0.3s ease;
}
.footer-love:hover { color: var(--cream-50); }
.coffee-counter {
    text-align: center; padding-top: 10px; font-size: 0.75rem; color: var(--gold);
}

/* ---- TOAST ---- */
.toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(80px);
    padding: 10px 22px; background: var(--gold); color: #1a0f08;
    border-radius: 10px; font-size: 0.85rem; font-weight: 800;
    z-index: 10000; opacity: 0; pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 6px 24px var(--gold-glow-hot);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- SCROLL REVEAL ---- */
.cozy-heading, .cozy-sub,
.ip-block, .whitelist-card,
.mc-block-frame, .map-fullscreen-link,
.modpack-box, .vibe-card, .discord-invite,
.update-card {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.cozy-heading.visible, .cozy-sub.visible,
.ip-block.visible, .whitelist-card.visible,
.mc-block-frame.visible, .map-fullscreen-link.visible,
.modpack-box.visible, .vibe-card.visible, .discord-invite.visible,
.update-card.visible {
    opacity: 1; transform: translateY(0);
}
.vibe-card:nth-child(2) { transition-delay: 0.08s; }
.vibe-card:nth-child(3) { transition-delay: 0.16s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .vibe-grid { grid-template-columns: 1fr; max-width: 340px; }
    .modpack-box { flex-direction: column; }
    .modpack-icon-area { width: 100%; min-height: 80px; border-right: none; border-bottom: 1px solid var(--cream-08); }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-logo { width: 130px; height: 130px; }
    .ip-addr { font-size: 1rem; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
    .creeper-egg { display: none; }
}
