@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

/* --- PLYNULÉ PŘECHODY STRÁNEK (FADE IN/OUT) --- */
body { animation: fadeInPage 0.4s ease-out forwards; opacity: 0; }
@keyframes fadeInPage { from { opacity: 0; } to { opacity: 1; } }
body.fade-out { animation: fadeOutPage 0.3s ease-in forwards; }
@keyframes fadeOutPage { from { opacity: 1; } to { opacity: 0; } }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
h2[id], h3[id] { scroll-margin-top: 100px; }

:root {
    --primary-green: #2d6a4f; --neon-green: #52b788;
    --text-green: #1b4332; --font-green: #95d5b2;
}

body {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.9)), url('temnyles.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    color: var(--font-green); font-family: 'Inter', sans-serif;
    min-height: 100vh; display: flex; flex-direction: column;
}

/* --- NAVIGACE --- */
nav { 
    display: flex; justify-content: space-between; align-items: center; 
    height: 80px; padding: 0 3%; background: rgba(0, 0, 0, 0.95); 
    border-bottom: 2px solid var(--primary-green); flex-shrink: 0;
    position: sticky; top: 0; z-index: 1000;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { font-weight: 900; font-size: 1.4rem; color: #fff; letter-spacing: 1px; }
.logo span { color: var(--neon-green); }
.nav-logo { height: 35px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--neon-green)); }
.hamburger { display: none !important; }

.nav-menu { display: flex; align-items: center; gap: 10px; }
.nav-menu > a, .dropbtn {
    color: var(--font-green); text-decoration: none; font-weight: 700; text-transform: uppercase; 
    font-size: 0.75rem; cursor: pointer; padding: 8px 12px; border: 1px solid var(--primary-green); 
    border-radius: 8px; background: rgba(0, 0, 0, 0.4); transition: 0.3s; font-family: 'Inter', sans-serif;
}
.nav-menu > a:hover, .dropdown:hover .dropbtn { color: #fff; border-color: var(--neon-green); background: rgba(45, 106, 79, 0.3); }

/* --- ZVÝRAZNĚNÍ AKTIVNÍ STRÁNKY V MENU --- */
.nav-menu > a.active-page, .dropdown .dropbtn.active-page {
    color: #fff !important; 
    border-color: var(--neon-green) !important; 
    background: rgba(45, 106, 79, 0.3) !important;
}
.dropdown-content a.active-page {
    background: rgba(45, 106, 79, 0.4) !important; 
    color: #fff !important;
}

.dropdown { position: relative; }
.dropdown::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; }
.dropdown-content { 
    display: none; position: absolute; top: calc(100% + 5px); left: 0; 
    background: rgba(0, 0, 0, 0.98); min-width: 180px; 
    border: 1px solid var(--primary-green); border-radius: 8px; z-index: 1100;
    pointer-events: auto;
}
.dropdown-content a { color: var(--font-green); text-decoration: none; display: block; padding: 12px; font-size: 0.85rem; border-bottom: 1px solid rgba(82, 183, 136, 0.1); position: relative; z-index: 1101;}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: rgba(45, 106, 79, 0.4); color: #fff; }
@media (min-width: 901px) { .dropdown:hover .dropdown-content { display: block !important; } }

.user-nav-area { display: flex; align-items: center; gap: 10px; border-left: 1px solid rgba(82, 183, 136, 0.3); padding-left: 15px; }
.user-chip { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.5); padding: 4px 10px; border-radius: 50px; border: 1px solid var(--primary-green); }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--neon-green); }
.user-chip-info { display: flex; flex-direction: column; }
.user-chip-name { font-size: 0.7rem; font-weight: 900; color: #fff; }
.user-chip-email { font-size: 0.6rem; color: var(--neon-green); }

.btn-primary { background: var(--primary-green); color: #fff; border: none; padding: 14px; font-weight: 900; border-radius: 10px; cursor: pointer; transition: 0.3s; margin-top: 15px; width: 100%; display: block;}
.btn-primary:hover { background: var(--neon-green); color: #000; box-shadow: 0 0 20px var(--neon-green); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid #aaa; padding: 14px; font-weight: bold; border-radius: 10px; cursor: pointer; transition: 0.3s; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-logout { background: rgba(255, 77, 77, 0.15); color: #ff4d4d; border: 1px solid #ff4d4d; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.75rem; font-weight: bold; transition: 0.3s; text-transform: uppercase; }
.btn-logout:hover { background: #ff4d4d; color: #fff; box-shadow: 0 0 10px rgba(255, 77, 77, 0.4); border-color: #ff4d4d; }

.container { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; padding: 40px 20px; }

.content-page {
    background: rgba(0, 0, 0, 0.85) !important; border: 1px solid var(--primary-green) !important; 
    backdrop-filter: blur(10px) !important; padding: 40px !important; border-radius: 30px !important; 
    width: 100% !important; max-width: 800px !important; margin: 0 auto !important; 
    text-align: left !important; box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}
.content-page h1 { text-align: center; margin-bottom: 30px; color: #fff; font-size: 2.5rem; }
.content-page h1 span { color: var(--neon-green); }
.text-block p { margin-bottom: 20px; font-size: 1.1rem; line-height: 1.8; color: #e0e0e0; }

.layout-with-sidebar { display: grid !important; grid-template-columns: 1fr 280px; gap: 40px; max-width: 1100px !important; align-items: start; }
.main-content-area { width: 100%; }
.main-content-area h2 { color: var(--neon-green); margin-top: 40px; margin-bottom: 15px; border-bottom: 1px solid rgba(82, 183, 136, 0.3); padding-bottom: 5px; }
.main-content-area p { font-size: 1.05rem; line-height: 1.8; color: #ddd; margin-bottom: 15px; }
.main-content-area ul, .main-content-area ol { color: #ddd; font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; padding-left: 25px; }
.main-content-area li { margin-bottom: 8px; }
.main-content-area strong { color: #fff; }

.sticky-sidebar { 
    position: sticky; 
    top: 100px; 
    background: rgba(0,0,0,0.6); 
    border: 1px solid var(--primary-green); 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    max-height: calc(100vh - 120px); 
    overflow-y: auto; 
}
/* Vlastní hezký posuvník pro boční panel */
.sticky-sidebar::-webkit-scrollbar { width: 6px; }
.sticky-sidebar::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 8px; }
.sticky-sidebar::-webkit-scrollbar-thumb { background: var(--primary-green); border-radius: 8px; }
.sticky-sidebar::-webkit-scrollbar-thumb:hover { background: var(--neon-green); }

.sticky-sidebar h3 { color: var(--neon-green); font-size: 1rem; margin-bottom: 15px; text-align: center; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(82, 183, 136, 0.3); padding-bottom: 10px; }
.sticky-nav-links { display: flex; flex-direction: column; gap: 8px; }
.sticky-nav-links a { color: #ddd; text-decoration: none; padding: 10px 15px; border: 1px solid rgba(82, 183, 136, 0.2); border-radius: 8px; transition: 0.3s; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.sticky-nav-links a:hover { background: rgba(45, 106, 79, 0.4); border-color: var(--neon-green); color: #fff; transform: translateX(5px); }

.welcome-wrapper { display: flex; flex-direction: column; gap: 40px; width: 100%; align-items: center; max-width: 1400px; }
.welcome-container { display: flex; align-items: stretch; justify-content: center; gap: 30px; width: 100%; }

.login-box { flex: 0 0 350px; background: rgba(0,0,0,0.85); padding: 40px; border-radius: 25px; border: 1px solid var(--primary-green); text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.story-box { flex: 1; background: rgba(0,0,0,0.6); padding: 40px; border-radius: 25px; border: 1px solid rgba(82, 183, 136, 0.2); backdrop-filter: blur(10px); display: flex; gap: 30px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.story-text { flex: 1; text-align: left; }
.story-text h2 { color: var(--neon-green); margin-bottom: 15px; text-transform: uppercase; font-size: 2rem; letter-spacing: 2px;}
.story-text h3 { color: #fff; font-size: 1.2rem; font-style: italic; margin-bottom: 20px; border-bottom: 1px solid rgba(82, 183, 136, 0.3); padding-bottom: 10px; }
.story-text p { font-size: 1.1rem; line-height: 1.8; color: #e0e0e0; }
.story-img-container { flex: 0 0 350px; display: flex; justify-content: center; align-items: center; }
.story-img { width: 100%; max-width: 350px; border-radius: 15px; border: 2px solid var(--primary-green); transform: rotate(2deg); object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.story-link-wrapper { display: flex; flex: 1; align-items: center; gap: 30px; text-decoration: none; color: inherit; transition: transform 0.3s; cursor: pointer; }
.story-link-wrapper:hover { transform: scale(1.02); }

.story-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: var(--neon-green); border: 1px solid var(--primary-green); border-radius: 50%; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.3s; z-index: 10; padding-bottom: 2px; }
.story-arrow:hover { background: var(--neon-green); color: #000; box-shadow: 0 0 15px var(--neon-green); }
.story-arrow-left { left: 10px; } .story-arrow-right { right: 10px; }

.larp-info-section { display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.85); padding: 40px; border-radius: 25px; border: 1px solid var(--primary-green); width: 100%; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.larp-info-content { max-width: 900px; text-align: center;}
.larp-info-content h2 { font-size: 2.2rem; color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px;}
.larp-info-content h2 span { color: var(--neon-green); }
.larp-info-content p { font-size: 1.1rem; color: #e0e0e0; line-height: 1.8; }

#countdown span#days, #countdown span#hours, #countdown span#minutes { font-size: 2.4rem !important; font-weight: 900 !important; color: #fff !important; margin: 0 3px; text-shadow: none !important;}

.dashboard-container { width: 100%; display: flex; justify-content: center; align-items: center; min-height: 70vh; }
.profile-card { background: rgba(0, 0, 0, 0.85); border: 1px solid var(--primary-green); backdrop-filter: blur(10px); padding: 40px; border-radius: 30px; width: 100%; max-width: 650px; text-align: center; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }

.dash-card { background: rgba(45, 106, 79, 0.2); border: 1px solid var(--primary-green); border-radius: 15px; padding: 25px 15px; cursor: pointer; transition: 0.3s; text-decoration: none; display: flex; flex-direction: column; align-items: center; color: var(--font-green); text-align: center;}
.dash-card h3 { color: #fff; margin-bottom: 5px; }
.dash-card p { color: var(--font-green); }
.dash-card:hover { border-color: var(--neon-green); transform: translateY(-3px); background: rgba(45, 106, 79, 0.4); }

.admin-card { border-color: #ffb703; grid-column: 1 / -1; background: rgba(255, 183, 3, 0.1); }
.active-char-card { background: rgba(0, 0, 0, 0.6); border: 2px solid var(--neon-green); border-radius: 15px; padding: 25px; margin-top: 30px; }
.admin-badge { position: absolute; top: -8px; right: -8px; background: #ff4d4d; color: white; font-size: 0.85rem; font-weight: 900; padding: 4px 10px; border-radius: 50%; box-shadow: 0 0 12px rgba(255, 77, 77, 0.8); z-index: 10; }

.larp-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.larp-form label { font-weight: bold; color: var(--font-green); font-size: 0.9rem; margin-top: 10px; }
.larp-form input:not([type="checkbox"]), .larp-form textarea, .larp-form select { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--primary-green); background: rgba(0,0,0,0.6); color: #fff; font-family: 'Inter', sans-serif; }
.larp-form select option { background: #1b4332; color: #fff; }
.warning-box { background: rgba(255, 77, 77, 0.15); border: 1px solid #ff4d4d; padding: 15px; border-radius: 10px; margin-bottom: 25px; text-align: left; }
.warning-box h4 { color: #ff4d4d; margin-bottom: 8px; }

.larp-form input[type="checkbox"] { width: auto !important; padding: 0; margin: 0 15px 0 0 !important; transform: scale(1.4); cursor: pointer; }
.larp-form .checkbox-label { display: flex; align-items: flex-start; font-weight: normal; color: #ccc; font-size: 0.9rem; margin-top: 15px; cursor: pointer; line-height: 1.5; }

.faction-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .faction-grid { grid-template-columns: 1fr 1fr; } }
.faction-card { 
    background: rgba(0, 0, 0, 0.6); border: 1px solid var(--primary-green); border-radius: 15px; 
    text-align: center; transition: 0.3s; display: flex; flex-direction: column; overflow: hidden;
    cursor: pointer;
}
.faction-card:hover { border-color: var(--neon-green); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.6); }

.faction-card-img { 
    width: 100%; height: 250px; object-fit: contain; 
    background: #000; object-position: center; border-bottom: 2px solid var(--primary-green); 
}

.faction-card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; gap: 15px; }
.faction-card h4 { color: var(--neon-green); font-size: 1.3rem; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px;}
.faction-card p { font-size: 0.9rem; color: #ccc; line-height: 1.5; margin-bottom: 15px;}
.btn-faction { background: transparent; color: var(--neon-green); border: 1px solid var(--neon-green); padding: 12px; border-radius: 8px; cursor: pointer; transition: 0.3s; font-weight: bold; width: 100%; }
.btn-faction:hover:not(:disabled) { background: var(--neon-green); color: #000; box-shadow: 0 0 15px var(--neon-green);}

.char-list-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-top: 20px; }
@media (min-width: 600px) { .char-list-grid { grid-template-columns: 1fr 1fr; } }
.char-card {
    background: rgba(0,0,0,0.5); border: 1px solid rgba(82, 183, 136, 0.3); padding: 20px; border-radius: 12px;
    display: flex; flex-direction: column; justify-content: space-between; text-align: left;
}
.char-card h4 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; border-bottom: 1px solid rgba(82, 183, 136, 0.3); padding-bottom: 5px;}
.char-card p { font-size: 0.9rem; color: #ccc; margin-bottom: 15px; line-height: 1.5; }

.rpg-stats-box { background: rgba(0,0,0,0.4); border: 1px dashed var(--primary-green); padding: 25px; border-radius: 10px; margin-bottom: 25px;}
.rpg-stats-box strong { color: var(--neon-green); }

.footer-label { text-align: right; padding: 20px 5%; font-weight: 900; color: var(--neon-green); }
.chart-legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }

.btn-dash-small {
    background: rgba(82, 183, 136, 0.2); border: 1px solid var(--neon-green); color: var(--neon-green); 
    padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; font-weight: bold; transition: 0.3s;
}
.btn-dash-small:hover { background: var(--neon-green); color: #000; box-shadow: 0 0 10px var(--neon-green); }

.btn-dash-cancel {
    background: rgba(255, 77, 77, 0.15); border: 1px solid #ff4d4d; color: #ff4d4d; 
    padding: 8px 15px; border-radius: 8px; cursor: pointer; font-size: 0.8rem; font-weight: bold; transition: 0.3s;
}
.btn-dash-cancel:hover { background: #ff4d4d; color: #fff; box-shadow: 0 0 10px rgba(255, 77, 77, 0.4); border-color: #ff4d4d; }

.chat-container { display: flex; flex-direction: column; gap: 10px; max-height: 400px; height: 50vh; overflow-y: auto; padding: 15px; background: rgba(0,0,0,0.4); border: 1px inset var(--primary-green); border-radius: 12px; margin-bottom: 15px; }
.chat-msg { padding: 10px 15px; border-radius: 12px; max-width: 85%; font-size: 0.95rem; line-height: 1.4; word-wrap: break-word; }
.chat-msg.player { background: rgba(82, 183, 136, 0.15); border: 1px solid var(--neon-green); color: #fff; align-self: flex-end; border-bottom-right-radius: 0; }
.chat-msg.admin { background: rgba(255, 183, 3, 0.15); border: 1px solid #ffb703; color: #fff; align-self: flex-start; border-bottom-left-radius: 0; }
.chat-time { font-size: 0.7rem; color: #aaa; margin-top: 5px; text-align: right; }

.active-char-card { position: relative; overflow: hidden; z-index: 1; }
.active-char-card > * { position: relative; z-index: 2; } 

.theme-kralovska { border-color: #ffd700 !important; background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0, 51, 102, 0.6)) !important; box-shadow: 0 0 20px rgba(255, 215, 0, 0.2) !important;}
.theme-kralovska::before { content: '🛡️'; position: absolute; top: -10px; right: -10px; font-size: 6rem; opacity: 0.15; z-index: 0; pointer-events: none;}
.theme-kralovska::after { content: '⚔️'; position: absolute; bottom: -10px; left: -10px; font-size: 5rem; opacity: 0.15; z-index: 0; pointer-events: none;}

.theme-nocni { border-color: #8a2be2 !important; background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(48, 0, 80, 0.7)) !important; box-shadow: 0 0 20px rgba(138, 43, 226, 0.2) !important;}
.theme-nocni::before { content: '🌑'; position: absolute; top: -10px; right: -10px; font-size: 6rem; opacity: 0.15; z-index: 0; pointer-events: none;}
.theme-nocni::after { content: '🗡️'; position: absolute; bottom: -10px; left: -10px; font-size: 5rem; opacity: 0.15; z-index: 0; pointer-events: none;}

.theme-babin { border-color: #cd853f !important; background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(139, 69, 19, 0.6)) !important; box-shadow: 0 0 20px rgba(205, 133, 63, 0.2) !important;}
.theme-babin::before { content: '💰'; position: absolute; top: -10px; right: -10px; font-size: 6rem; opacity: 0.15; z-index: 0; pointer-events: none;}
.theme-babin::after { content: '🌲'; position: absolute; bottom: -10px; left: -10px; font-size: 5rem; opacity: 0.15; z-index: 0; pointer-events: none;}

.theme-inkvizice { border-color: #ff4500 !important; background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(150, 0, 0, 0.6)) !important; box-shadow: 0 0 20px rgba(255, 69, 0, 0.2) !important;}
.theme-inkvizice::before { content: '🔥'; position: absolute; top: -10px; right: -10px; font-size: 6rem; opacity: 0.15; z-index: 0; pointer-events: none;}
.theme-inkvizice::after { content: '✝️'; position: absolute; bottom: -10px; left: -10px; font-size: 5rem; opacity: 0.15; z-index: 0; pointer-events: none;}

.theme-vranovsti { border-color: #8b0000 !important; background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(60, 0, 0, 0.8)) !important; box-shadow: 0 0 20px rgba(139, 0, 0, 0.2) !important;}
.theme-vranovsti::before { content: '🐦‍⬛'; position: absolute; top: -10px; right: -10px; font-size: 6rem; opacity: 0.15; z-index: 0; pointer-events: none;}
.theme-vranovsti::after { content: '🩸'; position: absolute; bottom: -10px; left: -10px; font-size: 5rem; opacity: 0.15; z-index: 0; pointer-events: none;}

.theme-hospoda { border-color: #f4a261 !important; background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(180, 100, 30, 0.5)) !important; box-shadow: 0 0 20px rgba(244, 162, 97, 0.2) !important;}
.theme-hospoda::before { content: '🍺'; position: absolute; top: -10px; right: -10px; font-size: 6rem; opacity: 0.2; z-index: 0; pointer-events: none;}
.theme-hospoda::after { content: '🍻'; position: absolute; bottom: -10px; left: -10px; font-size: 5rem; opacity: 0.2; z-index: 0; pointer-events: none;}

.theme-les { border-color: #2e8b57 !important; background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0, 80, 0, 0.6)) !important; box-shadow: 0 0 20px rgba(46, 139, 87, 0.2) !important;}
.theme-les::before { content: '🌿'; position: absolute; top: -10px; right: -10px; font-size: 6rem; opacity: 0.2; z-index: 0; pointer-events: none;}
.theme-les::after { content: '🍃'; position: absolute; bottom: -10px; left: -10px; font-size: 5rem; opacity: 0.2; z-index: 0; pointer-events: none;}

.theme-vlastni { border-color: #ffb703 !important; background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(255, 183, 3, 0.3)) !important; box-shadow: 0 0 20px rgba(255, 183, 3, 0.2) !important;}
.theme-vlastni::before { content: '📜'; position: absolute; top: -10px; right: -10px; font-size: 6rem; opacity: 0.15; z-index: 0; pointer-events: none;}
.theme-vlastni::after { content: '✨'; position: absolute; bottom: -10px; left: -10px; font-size: 5rem; opacity: 0.15; z-index: 0; pointer-events: none;}

/* --- GLOBÁLNÍ STYLY PRO MODÁLNÍ (VYSKAKOVACÍ) OKNA A TLAČÍTKA ADMINA --- */
.btn-admin { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid #aaa; padding: 8px 12px; font-size: 0.75rem; font-weight: bold; border-radius: 8px; cursor: pointer; transition: 0.3s; text-transform: uppercase; text-align: center; }
.btn-admin:hover { background: rgba(255,255,255,0.2); border-color: #fff; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 3000; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background: rgba(10, 10, 10, 0.95); border: 1px solid var(--neon-green); padding: 30px; border-radius: 15px; width: 100%; max-width: 700px; max-height: 90vh; overflow-y: auto; }
.modal-content h2 { color: #ffb703; margin-bottom: 20px; text-align: center; }
.modal-section-title { color: var(--neon-green); font-size: 1.1rem; border-bottom: 1px solid rgba(82, 183, 136, 0.3); margin-top: 25px; margin-bottom: 15px; padding-bottom: 5px; text-transform: uppercase; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 10px #ffb703; }
    100% { transform: scale(1); }
}

/* --- TISK (PDF) --- */
#printArea { display: none; }
@media print {
    body { background: white !important; color: black !important; padding: 0 !important; margin: 0 !important; }
    nav, main, .footer-label, .modal-overlay, #adminChatModal, #editModal { display: none !important; }
    #printArea { display: block !important; padding: 15px; font-family: 'Inter', Arial, sans-serif; color: black; }
    .print-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.75rem; }
    .print-table th, .print-table td { border: 1px solid #000; padding: 4px 8px; text-align: left; line-height: 1.3; }
    .print-table th { background-color: #f0f0f0 !important; width: 35%; -webkit-print-color-adjust: exact; }
    .print-header { text-align: center; border-bottom: 2px solid black; padding-bottom: 5px; margin-bottom: 20px; }
    .print-h2 { font-size: 0.95rem; margin-bottom: 8px; margin-top: 15px; text-transform: uppercase; color: #333; }
    .print-legal-block { page-break-inside: avoid; }
}

/* MOBIL */
@media (max-width: 900px) {
    nav { height: auto; padding: 15px 20px; flex-direction: column; gap: 0; position: relative; z-index: 2000; }
    .logo-area { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .hamburger { display: block !important; position: static; background: rgba(0,0,0,0.5); border: 1px solid var(--primary-green); color: var(--neon-green); padding: 5px 15px; border-radius: 8px; font-size: 1.6rem; cursor: pointer; z-index: 2100; }
    .nav-menu { display: none; flex-direction: column; width: 100%; margin-top: 15px; gap: 8px; padding-bottom: 10px; }
    .nav-menu.active { display: flex; }
    .nav-menu > a, .dropdown { width: 100%; }
    .nav-menu > a, .dropbtn { display: block; width: 100%; text-align: center; padding: 12px; font-size: 0.85rem; box-sizing: border-box; }
    .dropdown-content { display: none; position: static; min-width: 100%; background: rgba(45, 106, 79, 0.15); box-shadow: none; border: 1px solid var(--primary-green); border-top: none; border-radius: 0 0 8px 8px; margin-top: -5px; padding: 5px 0; box-sizing: border-box; }
    .dropdown-content.show { display: block !important; }
    .dropdown-content a { border-bottom: 1px solid rgba(82, 183, 136, 0.2); padding: 12px; font-size: 0.8rem; text-align: center; }
    .dropdown-content a:last-child { border-bottom: none; }
    .user-nav-area { border: none; padding: 0; width: 100%; justify-content: center; margin-top: 10px; }
    .welcome-container { flex-direction: column; align-items: center; }
    .login-box { width: 100%; max-width: 500px; flex: none; order: 1; }
    .story-box { width: 100%; max-width: 800px; flex-direction: column; text-align: center; order: 2; padding: 30px; }
    .story-link-wrapper { flex-direction: column; text-align: center; }
    .story-text { text-align: center; }
    .story-img-container { width: 100%; }
    .story-img { transform: none; max-width: 100%; }
    .larp-info-section { flex-direction: column; padding: 30px; }
    .content-page { padding: 30px 20px !important; margin: 20px auto !important; border-radius: 20px !important;}
    .chart-legend-grid { grid-template-columns: 1fr !important; }
    
    .layout-with-sidebar { display: flex !important; flex-direction: column; gap: 20px; }
    .main-content-area { order: 2; }
    
    .sticky-sidebar { 
        order: 1; position: sticky !important; top: 10px !important; z-index: 1500; margin-bottom: 10px; 
        background: rgba(10, 10, 10, 0.95) !important; border: 1px solid var(--neon-green) !important; 
        padding: 0 !important; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.8); width: 100%;
    }
    .sticky-sidebar h3 { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px !important; margin: 0 !important; background: transparent !important; border: none !important; }
    .sticky-sidebar h3::after { content: '▼'; font-size: 0.9rem; transition: transform 0.3s; }
    .sticky-sidebar.active h3 { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
    .sticky-sidebar.active h3::after { transform: rotate(180deg); }
    
    .sticky-nav-links { 
        display: none; flex-direction: column; gap: 5px; position: absolute; top: 100%; left: -1px; 
        width: calc(100% + 2px); background: rgba(10, 10, 10, 0.98); border: 1px solid var(--neon-green); 
        border-top: none; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; padding: 15px; 
        max-height: 60vh; overflow-y: auto;
    }
    .sticky-sidebar.active .sticky-nav-links { display: flex; animation: fadeInPage 0.3s ease-in-out;}
    .sticky-nav-links a { background: rgba(0,0,0,0.6); border: 1px solid rgba(82, 183, 136, 0.3); }
    
    /* Vlastní posuvník i pro mobily */
    .sticky-nav-links::-webkit-scrollbar { width: 6px; }
    .sticky-nav-links::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 8px; }
    .sticky-nav-links::-webkit-scrollbar-thumb { background: var(--primary-green); border-radius: 8px; }

    #factionStoryBox { padding: 30px 40px !important; }
    .story-arrow-left { left: 0px; } .story-arrow-right { right: 0px; }
}