/* --- 1. Animace --- */
@keyframes spin {
    0% { transform: translateY(-5px); filter: blur(1px); opacity: 0.8; }
    25% { transform: translateY(5px); }
    50% { transform: translateY(-8px); filter: blur(2px); }
    75% { transform: translateY(8px); }
    100% { transform: translateY(0px); filter: blur(1px); opacity: 0.8; }
}

@keyframes land {
    0% { transform: translateY(-20px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- 2. Hlavni nastaveni a Pozadi --- */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('https://cdn.pixabay.com/photo/2016/06/09/20/38/minions-1446594_1280.jpg') center/cover fixed;
    margin: 0;
    color: #fff;
    min-height: 100vh;
}

/* --- 3. Navigacni menu --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(20, 20, 28, 0.95);
    backdrop-filter: blur(10px);
    display: flex; justify-content: center; gap: 15px; padding: 15px 0;
    z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-bottom: 2px solid #ffc107;
}

.nav-btn {
    background: transparent; color: #fff; border: 2px solid #444;
    padding: 10px 20px; border-radius: 8px;
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.nav-btn:hover { background: #ffc107; color: #000; border-color: #ffc107; transform: translateY(-2px); }
.nav-btn.active { background: #ffc107; color: #000; border-color: #ffc107; }

/* --- 4. Layout Stranek --- */
.page-layout {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; padding: 100px 20px 40px 20px; box-sizing: border-box;
}

/* --- 5. Spolecne panely --- */
.panel-container {
    background: linear-gradient(180deg, #2c2c38 0%, #1a1a24 100%);
    border-radius: 20px; border: 4px solid #444;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 2px 2px rgba(255,255,255,0.1);
    width: 100%; max-width: 450px; padding: 25px; box-sizing: border-box;
}

.header { text-align: center; margin-bottom: 25px; }
.header h1 {
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 2.2rem; margin: 0;
    background: linear-gradient(to bottom, #ffe259, #ffa751);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 15px rgba(255, 167, 81, 0.4); letter-spacing: 2px;
}
.subtitle { font-size: 0.8rem; color: #888; letter-spacing: 1px; margin-top: 5px; }

.status-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.status-box {
    background: #15151c; border: 2px solid #333; border-radius: 12px;
    padding: 10px; flex: 1; text-align: center; box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
.status-label { font-size: 0.7rem; color: #888; letter-spacing: 1px; }
.status-val { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.5rem; }
.val-good { color: #ffc107; }
.val-bad { color: #ff4b2b; }

/* --- 6. Automat --- */
.reels-window {
    background: #0a0a0d; border-radius: 15px; padding: 20px; border: 3px solid #111;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.8); margin-bottom: 20px;
}
.reels { display: flex; justify-content: space-between; }
.reel {
    width: 30%; aspect-ratio: 3/4; background: linear-gradient(180deg, #e6e6e6 0%, #ffffff 50%, #e6e6e6 100%);
    border-radius: 10px; display: flex; justify-content: center; align-items: center;
    font-size: 4rem; color: #000; box-shadow: inset 0 5px 10px rgba(0,0,0,0.3), 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid #999;
}
.reel.spinning { animation: spin 0.1s linear infinite; }
.reel.landed { animation: land 0.3s ease-out; }

.btn-primary {
    background: linear-gradient(180deg, #ff416c, #ff4b2b); color: white; border: none;
    border-radius: 12px; font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: 1.5rem; padding: 15px 0; cursor: pointer; width: 100%;
    box-shadow: 0 6px 0 #c2211f, 0 10px 20px rgba(255, 75, 43, 0.4); transition: all 0.1s; margin-bottom: 10px;
}
.btn-primary:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 0px 0 #c2211f; }
.btn-primary:disabled { background: #555; box-shadow: 0 6px 0 #333; cursor: not-allowed; color: #888; }

.message-box { background: #15151c; border: 1px solid #333; border-radius: 8px; padding: 12px; text-align: center; margin-bottom: 20px; }
#message { margin: 0; font-weight: 700; font-size: 1rem; color: #aaa; }
#message.win { color: #4CAF50; text-shadow: 0 0 10px rgba(76, 175, 80, 0.5); }
#message.lose { color: #ff4b2b; }

.rules { background: rgba(0,0,0,0.2); border-radius: 10px; padding: 15px; }
.rules h3 { margin: 0 0 10px 0; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; color: #888; text-align: center; letter-spacing: 2px; }
.payout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 0.85rem; }
.payout-item { display: flex; justify-content: space-between; background: #1a1a24; padding: 8px 12px; border-radius: 6px; border: 1px solid #2a2a35; }
.prize { color: #ffc107; font-weight: bold; }

/* --- 7. Banka CSS --- */
.chimp-image { font-size: 6rem; text-align: center; margin: -10px 0 10px 0; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5)); }
.bank-quote { text-align: center; font-style: italic; color: #aaa; margin-bottom: 20px; background: #111; padding: 15px; border-radius: 10px; border-left: 4px solid #ff4b2b; }
.btn-bank { background: linear-gradient(180deg, #11998e, #38ef7d); box-shadow: 0 6px 0 #0d7a71; margin-bottom: 15px; }
.btn-bank:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 0px 0 #0d7a71; }
.btn-pay { background: linear-gradient(180deg, #f7b733, #fc4a1a); box-shadow: 0 6px 0 #c23912; }
.btn-pay:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 0px 0 #c23912; }

/* --- 8. Pomoc CSS --- */
.help-content { text-align: center; line-height: 1.6; }
.help-icon { font-size: 4rem; margin-bottom: 15px; }
.warning-text { color: #ff4b2b; font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; }
.help-list { text-align: left; background: #15151c; padding: 20px 20px 20px 40px; border-radius: 10px; margin-bottom: 20px; }
.hotline { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; color: #4CAF50; background: #111; padding: 15px; border-radius: 10px; border: 2px dashed #4CAF50;}
.about-me { text-align: center; margin-top: 20px; font-size: 0.8rem; color: #666; font-style: italic; letter-spacing: 1px; }

/* --- 9. Toast Zpravy --- */
.chimp-toast {
    position: fixed; bottom: -150px; right: 20px; width: 300px;
    background: #1a1a24; border: 2px solid #ff4b2b; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; overflow: hidden;
}
.chimp-toast.show { bottom: 20px; }
.toast-header { background: #ff4b2b; color: #fff; padding: 8px 12px; font-weight: bold; font-size: 0.9rem; }
.toast-body { padding: 15px; color: #ddd; font-size: 0.95rem; font-style: italic; }

/* --- 10. Chat (Seznamka) --- */
.chat-app { background: #ffe6eb; color: #333; border-radius: 20px; padding: 20px; max-width: 400px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.8); text-align: center; border: 5px solid #ff4b8b; }
.chat-title { font-family: 'Comic Sans MS', cursive; color: #ff4b8b; font-size: 2.2rem; margin: 0 0 10px 0; font-weight: 900;}
.chat-profile-name { font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; }
.chat-img { width: 100%; border-radius: 15px; border: 3px solid #ff4b8b; margin-bottom: 15px; }
.chat-bubble { background: #fff; padding: 15px; border-radius: 15px; text-align: left; font-style: italic; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 20px; border-bottom-left-radius: 0; }
.btn-chat { background: #ff4b8b; color: white; border: none; padding: 15px; border-radius: 10px; font-size: 1.2rem; font-weight: bold; cursor: pointer; width: 100%; margin-bottom: 10px; box-shadow: 0 4px 0 #c21a5b; }
.btn-chat:active { transform: translateY(4px); box-shadow: 0 0px 0 #c21a5b; }
.btn-escape { background: #555; color: white; border: none; padding: 10px; border-radius: 10px; cursor: pointer; width: 100%; font-weight: bold;}

/* --- 11. Hack/Glitch --- */
@keyframes jitter-mild {
    0% { transform: translate(0, 0); } 25% { transform: translate(1px, -1px); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(-2px, 0px); } 100% { transform: translate(0, 0); }
}
@keyframes jitter-extreme {
    0% { transform: translate(0, 0) skew(0deg); filter: hue-rotate(0deg); } 20% { transform: translate(-5px, 5px) skew(5deg); filter: hue-rotate(90deg); }
    40% { transform: translate(5px, -5px) skew(-5deg); filter: contrast(200%); } 60% { transform: translate(-5px, -5px) skew(2deg); filter: invert(100%); }
    80% { transform: translate(5px, 5px) skew(-2deg); filter: blur(2px); } 100% { transform: translate(0, 0) skew(0deg); filter: hue-rotate(0deg); }
}
@keyframes flashAd { 0%, 100% { background: #ff00ff; color: #ffff00; } 50% { background: #00ffff; color: #ff0000; } }
.fake-ad { position: fixed; padding: 15px; border: 5px solid #fff; font-family: 'Comic Sans MS', 'Arial', sans-serif; font-weight: 900; font-size: 1.2rem; text-align: center; z-index: 9999; box-shadow: 0 0 20px rgba(0,0,0,0.8); animation: flashAd 0.15s infinite; pointer-events: none; }
.fake-ad button.chat-btn { margin-top: 10px; padding: 10px; font-size: 1rem; font-weight: bold; background: yellow; color: red; border: 2px solid red; cursor: crosshair; pointer-events: auto; }
.fake-ad button.close-btn { position: absolute; top: -10px; right: -10px; background: red; color: white; border: 2px solid white; border-radius: 50%; width: 30px; height: 30px; font-weight: bold; cursor: pointer; pointer-events: auto; box-shadow: 0 0 5px black; }
