/* ============================================
   FEATURES.CSS — Fun-Features Stylesheet
   Voozalis Spielekeller
   ============================================ */

/* ====== SHARED: Toast Notifications ====== */
.keller-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
    padding: 14px 22px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 360px;
}

.keller-toast.toast-show {
    opacity: 1;
    transform: translateY(0);
}

.keller-toast.toast-success {
    border-left: 4px solid #34d399;
}

.keller-toast.toast-error {
    border-left: 4px solid #f87171;
}

.keller-toast.toast-info {
    border-left: 4px solid #60a5fa;
}

/* ====== DAILY STREAK ====== */
.streak-orb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(249, 115, 22, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.streak-orb:hover {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.4);
}

.streak-flame {
    font-size: 22px;
    animation: flame-pulse 2s infinite;
}

@keyframes flame-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.8)); }
}

.streak-day-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.streak-day-num {
    font-size: 18px;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace;
}

.streak-day-label {
    font-size: 9px;
    color: rgba(251, 191, 36, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.streak-mult-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.streak-orb.streak-claimed {
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.15), rgba(71, 85, 105, 0.15));
    border-color: rgba(148, 163, 184, 0.3);
}

.streak-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.streak-modal-content {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 28px;
    max-width: 480px;
    width: 90%;
    color: #f8fafc;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.streak-modal-content h3 {
    margin: 0 0 18px;
    color: #fbbf24;
    text-align: center;
    font-size: 22px;
}

.streak-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.streak-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: all 0.2s ease;
}

.streak-cell-done {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

.streak-cell-today {
    background: rgba(251, 191, 36, 0.3);
    border-color: #fbbf24;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
    animation: today-pulse 1.8s infinite;
}

@keyframes today-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.streak-cell-future {
    opacity: 0.4;
}

.streak-cell-day {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.streak-cell-mult {
    font-size: 9px;
    color: rgba(251, 191, 36, 0.9);
    font-family: 'JetBrains Mono', monospace;
}

.streak-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    margin-bottom: 14px;
}

.btn-claim-streak, .btn-close-streak {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-claim-streak {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #1e293b;
}

.btn-claim-streak:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.4);
}

.btn-claim-streak:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-close-streak {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.btn-close-streak:hover {
    background: rgba(148, 163, 184, 0.25);
}

/* ====== MYSTERY BOX ====== */
.mystery-box-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.12));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.mystery-box-icon {
    font-size: 32px;
    animation: box-idle 3s infinite;
}

@keyframes box-idle {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

.mystery-box-info {
    flex: 1;
}

.mystery-box-info h4 {
    margin: 0 0 4px;
    color: #f8fafc;
    font-size: 14px;
}

.mystery-box-status {
    font-size: 12px;
    color: rgba(168, 85, 247, 0.85);
}

.btn-open-box {
    padding: 10px 18px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-open-box:disabled {
    background: rgba(100, 116, 139, 0.4);
    cursor: not-allowed;
}

.btn-open-box.btn-ready {
    animation: ready-glow 1.5s infinite;
}

@keyframes ready-glow {
    0%, 100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 24px rgba(168, 85, 247, 0.7); }
}

.mystery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.mystery-modal-content {
    text-align: center;
    color: #f8fafc;
    padding: 30px;
    max-width: 360px;
}

.mystery-box-stage {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mystery-box-3d {
    font-size: 120px;
    transition: transform 0.4s ease;
    user-select: none;
}

.box-shaking {
    animation: shake 0.4s infinite;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-4px, -2px); }
    50% { transform: translate(4px, 2px); }
    75% { transform: translate(-2px, 4px); }
}

.box-spinning {
    animation: spin-3d 0.6s linear infinite;
}

@keyframes spin-3d {
    from { transform: rotateY(0deg) scale(1); }
    to { transform: rotateY(360deg) scale(1.1); }
}

.box-burst {
    animation: burst 0.6s ease-out;
}

@keyframes burst {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.5; filter: brightness(2); }
    100% { transform: scale(0); opacity: 0; }
}

.mystery-reveal {
    margin: 20px 0;
}

.reveal-pop {
    animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.mystery-reward-amount {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 30px currentColor;
    font-family: 'JetBrains Mono', monospace;
}

.mystery-reward-label {
    font-size: 18px;
    color: #cbd5e1;
    margin-top: 6px;
}

.btn-close-mystery {
    padding: 12px 28px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.confetti-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    animation: confetti-fall 1.5s ease-out forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(150px) translateX(var(--tx, 50px)) rotate(720deg);
        opacity: 0;
    }
}

/* ====== MYSTERY EVENT ====== */
.event-tower {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.event-notification {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(236, 72, 153, 0.95));
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.event-notification.notif-show {
    opacity: 1;
    transform: translateY(0);
}

.event-notif-icon {
    font-size: 22px;
    animation: lightning-flash 0.8s infinite;
}

@keyframes lightning-flash {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); filter: brightness(1.5); }
}

.coin-rain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}

.rain-coin {
    position: absolute;
    top: -50px;
    font-size: 32px;
    animation: coin-fall linear forwards;
}

@keyframes coin-fall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

.active-events-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 999px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9996;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.active-events-label {
    font-size: 11px;
    color: #fbbf24;
    font-weight: 700;
    text-transform: uppercase;
}

.active-events-list {
    display: flex;
    gap: 8px;
}

.active-event-chip {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    color: #f8fafc;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.4);
    animation: chip-pulse 2s infinite;
}

@keyframes chip-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ====== BIG-WIN-WALL ====== */
.big-win-wall {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(168, 85, 247, 0.06));
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 14px;
    padding: 16px;
    backdrop-filter: blur(8px);
}

.big-win-wall-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.big-win-wall-header h3 {
    margin: 0;
    color: #fbbf24;
    font-size: 16px;
}

.big-win-wall-subtitle {
    font-size: 10px;
    color: rgba(148, 163, 184, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.big-win-wall-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 380px;
    overflow-y: auto;
}

.big-win-item {
    display: grid;
    grid-template-columns: 28px 32px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-left: 3px solid rgba(148, 163, 184, 0.2);
    transition: all 0.2s ease;
}

.big-win-item:hover {
    background: rgba(15, 23, 42, 0.7);
    transform: translateX(2px);
}

.big-win-rank-1 {
    border-left-color: #fbbf24;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), rgba(15, 23, 42, 0.5));
}

.big-win-rank-2 {
    border-left-color: #cbd5e1;
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.08), rgba(15, 23, 42, 0.5));
}

.big-win-rank-3 {
    border-left-color: #f97316;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.08), rgba(15, 23, 42, 0.5));
}

.big-win-rank {
    font-size: 12px;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.7);
    font-family: 'JetBrains Mono', monospace;
}

.big-win-game-icon {
    font-size: 18px;
}

.big-win-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.big-win-username {
    font-size: 13px;
    color: #f8fafc;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.big-win-game-name {
    font-size: 10px;
    color: rgba(148, 163, 184, 0.6);
}

.big-win-amount {
    font-size: 14px;
    font-weight: 800;
    color: #34d399;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.big-win-rank-1 .big-win-amount {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.big-win-new-entry {
    animation: slide-in-pulse 1.5s ease-out;
}

@keyframes slide-in-pulse {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translateX(4px) scale(1.02);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.big-win-loading, .big-win-empty {
    text-align: center;
    padding: 20px;
    color: rgba(148, 163, 184, 0.6);
    font-size: 13px;
    font-style: italic;
}

/* ====== LOBBY FEATURE SLOTS ====== */
#feature-streak-slot,
#feature-mystery-slot {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 12px;
    vertical-align: top;
}

#feature-event-slot {
    /* Mystery-Event ist invisible bis Trigger */
    display: contents;
}

#feature-wall-slot {
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .streak-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .mystery-box-card {
        padding: 12px 14px;
    }
    .event-notification {
        font-size: 13px;
        padding: 10px 16px;
    }
    .big-win-item {
        grid-template-columns: 22px 26px 1fr auto;
        gap: 6px;
        padding: 6px 8px;
    }
}
/* === Emote-Chat: Burst-Animation === */
.emote-picker-bar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-soft, rgba(255,255,255,0.08));
    border-radius: 8px;
    margin: 4px 0 6px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.emote-pick-btn {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}
.emote-pick-btn:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.15);
}
.emote-pick-btn:active {
    transform: scale(0.95);
}

.emote-burst {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 99999;
    pointer-events: none;
    text-align: center;
    animation: emoteBurstIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.emote-burst-emoji {
    font-size: 120px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
}
.emote-burst-label {
    font-size: 28px;
    font-weight: 800;
    margin-top: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}
.emote-burst-out {
    animation: emoteBurstOut 0.6s ease-in forwards;
}

@keyframes emoteBurstIn {
    0%   { transform: translate(-50%, -50%) scale(0.3) rotate(-20deg); opacity: 0; }
    60%  { transform: translate(-50%, -50%) scale(1.25) rotate(8deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.0) rotate(0deg); opacity: 1; }
}
@keyframes emoteBurstOut {
    0%   { transform: translate(-50%, -50%) scale(1.0); opacity: 1; }
    100% { transform: translate(-50%, -150%) scale(1.6); opacity: 0; }
}

/* === Achievement-System === */
.achievements-panel {
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,41,59,0.95));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
}
.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.achievements-header h3 { margin: 0; color: var(--text-primary, #f8fafc); }
.achievements-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
}
.achievements-progress-track {
    width: 120px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.achievements-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #cd7f32, #c0c0c0, #ffd700);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0;
}
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.achievement-card {
    border: 2px solid;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    background: rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.achievement-card:hover { transform: translateY(-2px); }
.achievement-card.locked { opacity: 0.45; filter: grayscale(0.7); }
.achievement-card.unlocked { box-shadow: 0 0 20px rgba(255,255,255,0.06); }
.achievement-card.ach-tier-bronze { border-color: #cd7f32; }
.achievement-card.ach-tier-silver { border-color: #c0c0c0; }
.achievement-card.ach-tier-gold   { border-color: #ffd700; }
.achievement-icon { font-size: 32px; line-height: 1; margin-bottom: 6px; }
.achievement-name { font-weight: 700; color: #f8fafc; font-size: 0.9rem; margin-bottom: 4px; }
.achievement-desc { font-size: 0.75rem; color: #94a3b8; line-height: 1.3; min-height: 30px; }
.achievement-tier {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-top: 6px;
}
.achievement-card.ach-tier-bronze .achievement-tier { color: #cd7f32; }
.achievement-card.ach-tier-silver .achievement-tier { color: #c0c0c0; }
.achievement-card.ach-tier-gold   .achievement-tier { color: #ffd700; }
.achievement-date { font-size: 0.65rem; color: #64748b; margin-top: 4px; }

.achievement-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    animation: achToastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.achievement-toast-icon { font-size: 40px; line-height: 1; }
.achievement-toast-tier { font-size: 0.7rem; font-weight: 800; letter-spacing: 1.5px; }
.achievement-toast-name { font-weight: 700; color: #f8fafc; font-size: 0.95rem; margin: 2px 0; }
.achievement-toast-desc { font-size: 0.75rem; color: #94a3b8; }
.achievement-toast-out { animation: achToastOut 0.5s ease-in forwards; }

@keyframes achToastIn {
    0%   { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes achToastOut {
    0%   { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

/* === Daily-Quests === */
.quests-panel {
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,41,59,0.95));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
}
.quests-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    color: #94a3b8;
}
.quests-header h3 { margin: 0; color: #f8fafc; }
.quests-list { display: flex; flex-direction: column; gap: 10px; }
.quest-card {
    display: grid;
    grid-template-columns: 40px 1fr 80px;
    gap: 12px;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 10px 14px;
}
.quest-card.quest-active { border-color: rgba(251,191,36,0.3); }
.quest-card.quest-ready  { border-color: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.2); }
.quest-card.quest-claimed { opacity: 0.5; }
.quest-icon { font-size: 28px; line-height: 1; text-align: center; }
.quest-name { font-weight: 700; color: #f8fafc; font-size: 0.95rem; }
.quest-desc { font-size: 0.8rem; color: #94a3b8; margin: 2px 0 4px 0; }
.quest-progress-track {
    position: relative;
    height: 18px;
    background: rgba(0,0,0,0.4);
    border-radius: 9px;
    overflow: hidden;
}
.quest-progress-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fbbf24, #f97316);
    border-radius: 9px;
    transition: width 0.4s ease;
}
.quest-progress-label {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.quest-reward { font-weight: 800; color: #fbbf24; text-align: center; font-size: 0.9rem; }
.quest-claim-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.85rem;
    transition: transform 0.12s, box-shadow 0.12s;
    box-shadow: 0 2px 8px rgba(34,197,94,0.4);
}
.quest-claim-btn:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(34,197,94,0.6); }

.quest-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 99999;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #f8fafc;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    animation: questToastIn 0.3s ease-out forwards;
}
.quest-toast-out { animation: questToastOut 0.4s ease-in forwards; }
@keyframes questToastIn  {
    0%   { transform: translateX(120%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes questToastOut {
    0%   { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; }
}

/* === Tournament-Lobby === */
.tournament-panel {
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,41,59,0.95));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
}
.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    color: #f8fafc;
}
.tournament-header h3 { margin: 0; }
.tournament-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
}
.tournament-status.kind-info    { color: #94a3b8; }
.tournament-status.kind-success { color: #22c55e; background: rgba(34,197,94,0.15); }
.tournament-status.kind-error   { color: #ef4444; background: rgba(239,68,68,0.15); }
.tournament-lobby .t-lobby-header h3 { margin: 0 0 4px 0; color: #f8fafc; }
.t-lobby-sub { color: #94a3b8; font-size: 0.85rem; }
.t-modes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 14px 0;
}
.t-mode-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: transform 0.15s, border-color 0.15s;
}
.t-mode-card:hover { transform: translateY(-2px); border-color: #fbbf24; }
.t-mode-icon { font-size: 36px; line-height: 1; }
.t-mode-name { font-weight: 700; color: #f8fafc; margin: 8px 0 4px 0; }
.t-mode-desc { font-size: 0.8rem; color: #94a3b8; line-height: 1.3; min-height: 32px; }
.t-mode-btn {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #0f172a;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.12s;
}
.t-mode-btn:hover { transform: scale(1.05); }
.t-info { color: #64748b; font-size: 0.8rem; margin-top: 6px; }

.tournament-active {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tournament-active-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fbbf24;
}
.tournament-active-header h3 { margin: 0; }
.tournament-id { color: #94a3b8; font-family: monospace; font-size: 0.85rem; }
.tournament-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.t-slot {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.t-slot.empty { opacity: 0.5; border-style: dashed; }
.t-slot.me { border-color: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.3); }
.t-slot-icon { font-size: 24px; }
.t-slot-name { flex: 1; color: #f8fafc; font-size: 0.9rem; font-weight: 600; }
.t-slot-score { color: #fbbf24; font-weight: 700; }
.tournament-info {
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 10px 14px;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.6;
}
.tournament-controls { display: flex; gap: 8px; }
.tournament-join-btn,
.tournament-leave-btn,
.tournament-claim-btn {
    flex: 1;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.12s;
}
.tournament-join-btn { background: linear-gradient(135deg, #22c55e, #16a34a); color: #f8fafc; }
.tournament-leave-btn { background: rgba(239,68,68,0.2); color: #ef4444; border: 1px solid #ef4444; }
.tournament-claim-btn { background: linear-gradient(135deg, #fbbf24, #f97316); color: #0f172a; }
.tournament-join-btn:hover,
.tournament-leave-btn:hover,
.tournament-claim-btn:hover { transform: scale(1.03); }

.tournament-results {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: #f8fafc;
}
.tournament-results h4 { margin: 0 0 8px 0; color: #fbbf24; }
.tournament-results ol { margin: 0; padding-left: 20px; }
.tournament-results li { padding: 4px 0; }

/* === Progressiver Jackpot === */
.jackpot-panel {
    background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.10), rgba(15,23,42,0.95));
    border: 1px solid rgba(251,191,36,0.4);
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}
.jackpot-panel::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(251,191,36,0.15) 0%, transparent 70%);
    animation: jackpotShimmer 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes jackpotShimmer {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.5; }
    50%      { transform: rotate(180deg) scale(1.1); opacity: 0.8; }
}
.jackpot-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    color: #f8fafc;
    position: relative;
    z-index: 1;
}
.jackpot-header h3 { margin: 0; color: #fbbf24; }
.jackpot-my-contrib { color: #94a3b8; font-size: 0.85rem; }
.jackpot-pool-display {
    text-align: center;
    padding: 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    position: relative;
    z-index: 1;
}
.jackpot-pool-label { color: #94a3b8; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; }
.jackpot-pool-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251,191,36,0.5), 0 0 40px rgba(251,191,36,0.3);
    margin: 6px 0;
    font-variant-numeric: tabular-nums;
}
.jackpot-tick { animation: jackpotTick 0.4s ease-out; }
@keyframes jackpotTick {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
.jackpot-info {
    text-align: center;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}
.jackpot-last-winner {
    color: #22c55e;
    font-size: 0.9rem;
    margin-bottom: 6px;
    min-height: 20px;
}
.jackpot-hint { color: #64748b; font-size: 0.75rem; }

.jackpot-win-burst {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 99999;
    text-align: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    color: #0f172a;
    padding: 30px 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(251,191,36,0.6), 0 0 0 8px rgba(251,191,36,0.2);
    animation: jackpotBurstIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.jackpot-win-emoji { font-size: 64px; line-height: 1; }
.jackpot-win-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 4px;
    margin: 8px 0;
}
.jackpot-win-amount { font-size: 56px; font-weight: 900; margin: 8px 0; }
.jackpot-win-winner { font-size: 18px; font-weight: 700; }
.jackpot-win-burst-out { animation: jackpotBurstOut 0.6s ease-in forwards; }

@keyframes jackpotBurstIn {
    0%   { transform: translate(-50%, -50%) scale(0.3) rotate(-15deg); opacity: 0; }
    60%  { transform: translate(-50%, -50%) scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.0) rotate(0deg); opacity: 1; }
}
@keyframes jackpotBurstOut {
    0%   { transform: translate(-50%, -50%) scale(1.0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5) rotate(15deg); opacity: 0; }
}
