/* ============================================================================
   STYLE.CSS - COLORFUL CARTOON ENGINE - PART 1 VON 4 (MAX 50 ZEILEN)
   ============================================================================ */
@import url('https://googleapis.com');

body {
    /* Farbenfroher, fröhlicher Cartoon-Verlauf von Himmelblau zu Mintgrün */
    background: linear-gradient(135deg, #38bdf8 0%, #4ade80 100%);
    background-image: radial-gradient(rgba(0, 0, 0, 0.06) 15%, transparent 16%),
                      linear-gradient(135deg, #38bdf8 0%, #4ade80 100%);
    background-size: 24px 24px, 100% 100%;
    font-family: 'Fredoka One', sans-serif;
    margin: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
}

/* Das flexible, überlappungssichere GUI-Gehäuse */
.cartoon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 890px;
    background: #f97316; /* Knalliges, fröhliches Comic-Orange als Hauptrahmen */
    border: 6px solid #000000; /* Fetter, schwarzer Comic-Rahmen */
    border-radius: 28px;
    padding: 20px;
    box-shadow: 16px 18px 0px #000000; /* Massiver, tiefer 3D-Comic-Schatten */
    box-sizing: border-box;
}
/* ============================================================================
   STYLE.CSS - COLORFUL CARTOON ENGINE - PART 2 VON 4 (MAX 50 ZEILEN)
   ============================================================================ */
.cartoon-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px; /* Erzeugt unblockierbaren Platz über dem Canvas */
    box-sizing: border-box;
}

.hud-box {
    border: 4px solid #000000;
    padding: 10px 22px;
    border-radius: 14px;
    box-shadow: 4px 4px 0px #000000;
    font-size: 20px;
    font-weight: bold;
    -webkit-text-stroke: 1px #000000;
    text-shadow: 2px 2px 0px #000000;
}

/* Knalliges Neongrün für den Score-Kasten */
.score-box { 
    background: #22c55e; 
    color: #ffffff; 
}

/* Goldgelber Riesen-Timer im Fokus */
.timer-gold-box {
    background: #facc15;
    color: #000000;
    font-family: 'Bangers', cursive;
    font-size: 38px;
    letter-spacing: 2px;
    padding: 4px 35px;
    box-shadow: 5px 5px 0px #000000;
    border-radius: 16px;
    -webkit-text-stroke: 1.5px #000000;
    text-shadow: none;
}

/* Schreiendes Comic-Pink für die Level-Welt-Box */
.level-box {
    background: #ff007f; 
    color: #ffffff;
}
/* ============================================================================
   STYLE.CSS - COLORFUL CARTOON ENGINE - PART 3 VON 4 (MAX 50 ZEILEN)
   ============================================================================ */
.cartoon-canvas {
    background: #030712;
    border: 5px solid #000000; /* Fette innere Abgrenzung */
    border-radius: 16px;
    display: block;
    width: 850px;
    height: 480px; /* Perfekt eingepasst, um Überlappungen zu killen */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

/* Die untere Statusleiste als leuchtend gelbe Comic-Trennwand */
.cartoon-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 15px; /* Erzeugt unblockierbaren Platz unter dem Canvas */
    background: #eab308; /* Knalliges Comic-Sonnengelb */
    border: 4px solid #000000;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 4px 4px 0px #000000;
    box-sizing: border-box;
}

.effects-group { 
    display: flex; 
    gap: 10px; 
}
/* ============================================================================
   STYLE.CSS - COLORFUL CARTOON ENGINE - PART 4 VON 4 (MAX 50 ZEILEN)
   ============================================================================ */
.status-badge { font-family: 'Bangers', cursive; font-size: 18px; padding: 4px 14px; border: 3px solid #000000; border-radius: 8px; box-shadow: 3px 3px 0px #000000; -webkit-text-stroke: 0.5px #000; letter-spacing: 1px; }
.star-badge { background: #facc15; color: #000; }
.slow-badge { background: #a78bfa; color: #000; }
.laser-badge { background: #ef4444; color: #fff; }

.lives-display { background: #ef4444; border: 3px solid #000000; padding: 6px 16px; border-radius: 10px; box-shadow: 3px 3px 0px #000000; color: #fff; font-size: 16px; font-weight: bold; -webkit-text-stroke: 1px #000; }

/* Comic Buttons im Hauptmenü (index.html) */
.menu-container { background: #ffffff; color: #000; border: 6px solid #000000; border-radius: 24px; padding: 45px; width: 100%; max-width: 500px; box-shadow: 16px 16px 0px #000000; text-align: center; transform: rotate(-1deg); }
.menu-btn { font-family: 'Bangers', cursive; font-size: 34px; letter-spacing: 2px; width: 100%; padding: 14px; margin: 18px 0; border: 5px solid #000000; border-radius: 14px; cursor: pointer; box-shadow: 0px 7px 0px #000000; transition: transform 0.05s; -webkit-text-stroke: 1.5px #000000; }
.btn-start { background-color: #4ade80; color: #fff; text-shadow: 3px 3px 0 #000; }
.btn-start:hover { background-color: #22c55e; transform: translateY(-3px); box-shadow: 0px 10px 0px #000000; }
.btn-start:active { transform: translateY(5px); box-shadow: 0px 2px 0px #000000; }
.scoreboard-panel { background: #f8fafc; border: 3px solid #000; border-radius: 12px; padding: 15px; margin-top: 20px; box-shadow: 4px 4px 0px #000; }
.scoreboard-title { font-family: 'Bangers', cursive; font-size: 32px; color: #ef4444; margin: 0 0 10px 0; -webkit-text-stroke: 1px #000; }
.score-row { display: flex; justify-content: space-between; padding: 8px 12px; margin: 5px 0; background: #fff; border: 2.5px solid #000; border-radius: 8px; font-size: 15px; color: #000; box-shadow: 2px 2px 0px #000; }
.entries-header { background: #38bdf8; } .rank-1 { background: #facc15; }

/* POW Pop-Up Overlays (In-Game) */
.overlay-screen { display: none; position: absolute; inset: 15px; background: rgba(255, 255, 255, 0.96); border-radius: 20px; border: 6px solid #000000; flex-direction: column; justify-content: center; align-items: center; z-index: 20; text-align: center; box-shadow: 12px 12px 0px #000000; }
.overlay-title { font-family: 'Bangers', cursive; font-size: 64px; letter-spacing: 2px; margin: 0 0 15px 0; -webkit-text-stroke: 2.5px #000000; text-shadow: 4px 4px 0px #000; }
.title-red { color: #ef4444; } .title-green { color: #22c55e; }
.overlay-p { color: #000000; font-size: 16px; margin: 0 0 20px 0; font-weight: bold; }
.cartoon-input { background: #ffffff; color: #000; border: 3.5px solid #000000; padding: 10px 16px; border-radius: 10px; text-align: center; font-size: 18px; margin-bottom: 20px; box-shadow: 4px 4px 0px #000000; outline: none; font-weight: bold; }
.cartoon-btn { font-family: 'Bangers', cursive; font-size: 28px; border: 4px solid #000000; padding: 10px 30px; border-radius: 12px; cursor: pointer; box-shadow: 4px 4px 0px #000000; }
.btn-restart { background: #4ade80; color: #fff; text-shadow: 2px 2px 0 #000; } .btn-menu { background: #38bdf8; color: #fff; text-shadow: 2px 2px 0 #000; }
.footer-text { font-size: 14px; color: #78716c; margin-top: 30px; text-transform: uppercase; font-weight: bold; }
/* Kleine HUD-Buttons Styling */
.hud-small-btn {
    font-size: 18px;
    border: 3px solid #000;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.05s;
}
.hud-small-btn:hover { transform: scale(1.1); box-shadow: 3px 3px 0px #000; }
.hud-small-btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #000; }
/* Das neue, knallrote Comic-Snapshot-Abzeichen */
.snapshot-badge {
    background: #ef4444;
    color: #ffffff;
    font-family: 'Bangers', cursive;
    font-size: 20px;
    letter-spacing: 1px;
    padding: 6px 20px;
    border: 3.5px solid #000000;
    border-radius: 10px;
    box-shadow: 3px 3px 0px #000000;
    display: inline-block;
    margin-bottom: 25px;
    transform: rotate(1deg);
    -webkit-text-stroke: 0.5px #000000;
}

/* Die 3 umschaltbaren Comic-Buttons (Tabs) */
.tab-button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.tab-btn {
    flex: 1;
    font-family: 'Bangers', cursive;
    font-size: 22px;
    padding: 6px;
    border: 3px solid #000000;
    border-radius: 10px;
    background: #f1f5f9;
    color: #000000;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000000;
    transition: all 0.05s ease-in-out;
}
.tab-btn.active {
    background: #facc15; /* Knallgelb für das aktuell ausgewählte Tab */
    transform: translateY(2px);
    box-shadow: 0px 0px 0px #000000;
}
.tab-btn:hover:not(.active) {
    background: #cbd5e1;
}
