body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

h1 { color: #2c3e50; margin-bottom: 5px; }
.subtitle { color: #7f8c8d; margin-top: 0; margin-bottom: 20px; font-size: 14px; }

#game-container {
    background: white; max-width: 500px; margin: 0 auto; padding: 20px;
    border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); position: relative;
}

/* Auth UI */
#auth-container {
    display: flex; justify-content: space-between; align-items: center;
    background: #e8f4f8; padding: 10px 15px; border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}
#authBtn {
    background-color: #fff; color: #333; border: 1px solid #ccc; font-size: 14px;
    padding: 6px 12px; cursor: pointer; border-radius: 4px;
}
#authBtn:hover { background-color: #f9f9f9; }
#userInfo { font-weight: bold; color: #2980b9; }

/* Game Elements */
canvas {
    background: #fff; border: 2px dashed #bdc3c7; border-radius: 8px;
    margin-bottom: 15px; width: 100%; max-width: 400px; height: auto;
}
.controls { display: flex; justify-content: center; gap: 10px; margin: 15px 0; }
input[type="number"] { padding: 10px; font-size: 16px; width: 120px; border: 1px solid #ccc; border-radius: 6px; }
button {
    padding: 10px 20px; font-size: 16px; border: none; border-radius: 6px;
    cursor: pointer; background-color: #3498db; color: white; transition: background 0.3s;
}
button:hover { background-color: #2980b9; }
button:disabled { background-color: #95a5a6; cursor: not-allowed; }
.icon-btn { background-color: #7f8c8d; padding: 10px 15px; }
#showStatsBtnEnd { background-color: #27ae60; display: none; width: 100%; margin-top: 15px; }
#showStatsBtnEnd:hover { background-color: #2ecc71; }

/* Guesses List */
.guesses { list-style: none; padding: 0; margin: 20px 0 0 0; text-align: left; }
.guess-item { padding: 10px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; font-size: 16px; }
.status { font-weight: bold; padding: 4px 8px; border-radius: 4px; }
.heiss { background: #ffcccc; color: #c0392b; }
.warm { background: #ffeaa7; color: #d35400; }
.kalt { background: #b2bec3; color: #2d3436; }
.eisig { background: #c8d6e5; color: #2980b9; }
.exakt { background: #c8e6c9; color: #27ae60; }

/* Modal & Live Stats */
#statsModal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); align-items: center; justify-content: center; z-index: 1000;
}
.modal-content { background: white; padding: 30px; border-radius: 12px; max-width: 400px; width: 90%; text-align: center; }
.stats-grid { display: flex; justify-content: space-around; margin-bottom: 20px; }
.stat-box { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: 24px; font-weight: bold; }
.stat-label { font-size: 12px; color: #7f8c8d; }
.distribution { text-align: left; margin-top: 20px; }
.dist-row { display: flex; align-items: center; margin-bottom: 5px; position: relative; }
.dist-label { width: 20px; font-weight: bold; }
.dist-bar-container { flex-grow: 1; background: #eee; height: 20px; margin: 0 10px; border-radius: 3px; position: relative; }

.dist-bar {
    background: #3498db; height: 100%; border-radius: 3px; display: flex;
    align-items: center; justify-content: flex-end; padding-right: 5px; color: white;
    font-size: 12px; font-weight: bold; min-width: 15px;
    transition: width 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.dist-bar.fail { background: #e74c3c; }
.close-btn { margin-top: 20px; background-color: #7f8c8d; }

/* CSS-Animation für das +1 "Aufploppen" */
.plus-one-anim {
    position: absolute; right: -25px; top: 0;
    color: #27ae60; font-weight: bold; font-size: 14px;
    animation: floatUpFade 1.5s ease-out forwards;
    pointer-events: none;
}
@keyframes floatUpFade {
    0% { opacity: 0; transform: translateY(5px); }
    20% { opacity: 1; transform: translateY(0px); }
    100% { opacity: 0; transform: translateY(-20px); }
}
