@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;800;900&display=swap');

:root {
    --green: #58cc02; --green-dark: #58a700;
    --cyan: #1cb0f6; --cyan-dark: #1899d6;
    --pink: #ff4b4b; --pink-dark: #ea2b2b;
    --gold: #ffc800; --gold-dark: #e5b400;
    --bg-light: #f7f9fc; --white: #ffffff;
    --text-main: #3c3c3c; --text-muted: #777;
    --gray: #e5e5e5; --gray-dark: #afafaf;
}

* { box-sizing: border-box; font-family: 'Nunito', sans-serif; }
body { margin: 0; background: var(--bg-light); color: var(--text-main); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

h1, h2, h3 { color: var(--text-main); margin: 0; }
.text-cyan { color: var(--cyan); }
.text-center { text-align: center; }

/* 3D Duolingo Style Buttons */
.btn { display: inline-block; padding: 16px 32px; font-size: 18px; font-weight: 900; text-transform: uppercase; border-radius: 20px; border: none; cursor: pointer; transition: 0.2s; text-decoration: none; text-align: center; color: white; }
.btn-green { background: var(--green); border-bottom: 5px solid var(--green-dark); }
.btn-green:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-cyan { background: var(--cyan); border-bottom: 5px solid var(--cyan-dark); }
.btn-cyan:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(5px); border-bottom-width: 0; }

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 32px; font-weight: 900; color: var(--cyan); display: flex; align-items: center; gap: 10px; }

/* Stats Container */
.stat-box { display: flex; gap: 20px; font-weight: 900; font-size: 20px; }
.stat-item { display: flex; align-items: center; gap: 8px; }

/* Beautiful Cards */
.glass-panel { background: var(--white); border-radius: 30px; box-shadow: 0 15px 35px rgba(0,0,0,0.05); padding: 40px; border: 2px solid var(--gray); }

/* Dashboard Cards - EXAKT 3 SPALTEN (Dreierreihen) */
.states-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 40px; 
}
@media (max-width: 900px) { .states-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .states-grid { grid-template-columns: 1fr; } }

.state-card { background: var(--white); border: 2px solid var(--gray); border-bottom: 8px solid var(--gray); border-radius: 25px; padding: 40px 20px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; }
.state-card:hover { transform: translateY(-10px); border-color: var(--cyan); border-bottom-color: var(--cyan-dark); box-shadow: 0 20px 40px rgba(28, 176, 246, 0.15); }
.dialekt-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--cyan); color: white; padding: 6px 20px; border-radius: 15px; font-size: 14px; font-weight: 900; border-bottom: 3px solid var(--cyan-dark); }

/* Daily Reward */
.daily-reward { background: linear-gradient(135deg, #fff2b2, #ffe14d); border: 2px solid var(--gold-dark); border-radius: 25px; padding: 25px 40px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; box-shadow: 0 15px 30px rgba(255, 200, 0, 0.2); }

/* Form Inputs */
.form-input { width: 100%; padding: 18px; background: #f7f9fc; border: 2px solid var(--gray); border-radius: 18px; font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 20px; transition: 0.3s; }
.form-input:focus { outline: none; border-color: var(--cyan); background: var(--white); box-shadow: 0 0 0 4px rgba(28,176,246,0.2); }

/* --- GAME ENGINE CLASSES --- */
.lesson-container { 
    max-width: 900px; 
    margin: 0 auto; 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    padding: 20px; 
    width: 100%;
}

#game-area {
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
}

/* Die krassen 3D-Teach-Flashcards */
.teach-card {
    background: white;
    border: 3px solid var(--gray);
    border-bottom: 10px solid var(--cyan);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 600px; }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
.bubu-svg { animation: float 4s ease-in-out infinite; }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }