.nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #e5e7eb; margin-bottom: 20px; }
.back-btn { text-decoration: none; color: #6b7280; font-size: 0.9rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; transition: 0.2s; }
.back-btn:hover { background: #f3f4f6; color: #3b82f6; }
.logo { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 1.2rem; color: #000; }
.logo span { color: #3b82f6; }

.gold-status-area { text-align: center; margin-bottom: 15px; }
.gold-status-area .value { font-size: 3.5rem; font-weight: 800; color: #1a1a1a; line-height: 1; }

.hero-profile-section { background: #f8fafc; padding: 12px; border-bottom: 1px solid #e2e8f0; display: flex; gap: 15px; align-items: center; }
.hero-visual { position: relative; }
#hero-img { width: 60px; height: 60px; border-radius: 10px; border: 3px solid #3b82f6; background: #fff; padding: 2px; }
.level-tag { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: #3b82f6; color: white; padding: 2px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; white-space: nowrap; z-index: 10; }

.inventory-slots { display: flex; gap: 6px; }
.equip-slot { width: 40px; height: 40px; background: #e2e8f0; border: 2px solid #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.2s; }
.equip-slot:hover { border-color: #3b82f6; }

.xp-container { width: 100%; }
.xp-text { font-size: 0.7rem; font-weight: 700; color: #4b5563; margin-bottom: 4px; display: flex; justify-content: space-between; }
.xp-bar-bg { height: 10px; background: #e5e7eb; border-radius: 10px; overflow: hidden; }
#xp-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); transition: width 0.3s; }

.quest-display-area { height: 380px; background: #f0f9ff; position: relative; padding: 20px 15px; text-align: center; border-bottom: 1px solid #bae6fd; overflow: hidden; }
.corner-stats { position: absolute; top: 10px; right: 15px; text-align: right; opacity: 0.4; font-size: 0.7rem; font-weight: 700; color: #64748b; pointer-events: none; z-index: 10; }

.battle-arena { display: flex; justify-content: space-around; align-items: center; margin-top: 80px; position: relative; } 
.fighter { position: relative; display: flex; flex-direction: column; align-items: center; }
.enemy-label { margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: #1a1a1a; }

.damage-anchor { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 100px; height: 40px; pointer-events: none; z-index: 100; display: flex; justify-content: center; align-items: flex-end; }
.float-dmg { color: #ef4444; font-weight: 900; font-size: 1.5rem; text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff; animation: floatUpDmg 0.8s ease-out forwards; position: absolute; }
@keyframes floatUpDmg { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-50px); opacity: 0; } }

.battle-sprite { width: 95px; height: 95px; object-fit: contain; transition: transform 0.1s; }
.shake-hero { animation: shakeHero 0.2s ease-in-out; }
@keyframes shakeHero { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.shake-enemy { animation: shakeEnemy 0.2s ease-in-out; }
@keyframes shakeEnemy { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(3px); } }

.hp-bar-wrap { width: 95px; height: 8px; background: #e2e8f0; border-radius: 4px; margin-top: 10px; border: 1px solid #cbd5e1; overflow: hidden; }
.hp-fill { height: 100%; background: #ef4444; width: 100%; transition: width 0.2s; }
#battle-log { margin-top: 30px; font-size: 0.9rem; color: #475569; font-weight: 800; }

.quest-slots { display: flex; flex-direction: row; gap: 10px; justify-content: center; min-height: 160px; width: 100%; }
.quest-card, .shop-item-card { background: white; border: 1px solid #bae6fd; border-radius: 12px; padding: 15px; flex: 1; max-width: 32%; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.quest-card:hover { border-color: #3b82f6; transform: translateY(-3px); }
.q-timer, .shop-price-pill { background: #e0f2fe; color: #3b82f6; font-weight: 800; font-size: 0.8rem; padding: 6px 12px; border-radius: 20px; width: 95%; margin-top: 8px; }

.dungeon-card { border: 2px solid #ef4444 !important; background: #fff1f2 !important; }

#reward-popup { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.9); display: flex; justify-content: center; align-items: center; z-index: 150; }
.popup-content { background: white; padding: 25px; border-radius: 15px; text-align: center; width: 340px; border: 2px solid #bae6fd; }
.popup-content h2 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 900; }
.comparison-grid { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 8px; margin: 15px 0; border-top: 1px solid #f1f5f9; padding-top: 15px; }
.comp-slot { background: #f8fafc; padding: 10px; border-radius: 8px; font-size: 0.7rem; border: 1px solid #e2e8f0; }
.comp-actions { grid-column: span 3; display: flex; gap: 10px; margin-top: 15px; }

.popup-content button { background: #3b82f6; color: white; border: none; padding: 12px; border-radius: 8px; font-weight: 700; width: 100%; cursor: pointer; transition: 0.2s; }
.keep-btn { background: #fca5a5 !important; color: #991b1b !important; }
.equip-btn { background: #3b82f6 !important; }

.view-navigation { display: flex; gap: 10px; justify-content: center; width: 100%; }
.nav-view-btn { margin-top: 20px; background: #fff; border: 2px solid #3b82f6; color: #3b82f6; padding: 8px 16px; border-radius: 8px; font-weight: 800; cursor: pointer; flex: 1; max-width: 200px; }
.nav-view-btn.special { border-color: #ef4444; color: #ef4444; }
.nav-view-btn.special:hover { background: #ef4444; color: white; }
.nav-view-btn:hover:not(:disabled) { background: #3b82f6; color: white; }
.nav-view-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.shop-btn { background: #fff; border: 1px solid #e2e8f0; padding: 12px; border-radius: 10px; text-align: center; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.shop-btn:hover:not(:disabled) { border-color: #3b82f6; background: #f0f7ff; }
.shop-btn .btn-title { font-weight: 800; font-size: 0.8rem; color: #1e293b; }
.shop-btn .btn-price { color: #3b82f6; font-weight: 800; font-size: 0.85rem; }
.shop-btn .next-gain { color: #10b981; font-weight: 700; font-size: 0.75rem; margin-bottom: 2px; }
.upgrade-count { font-size: 0.65rem; color: #94a3b8; border-top: 1px dotted #e2e8f0; padding-top: 4px; width: 100%; }

.hidden { display: none !important; }

/* SEO CONTENT SECTION STYLING */
.content-section { 
    padding: 30px 20px; 
    background: #fff; 
    color: #4b5563; 
    line-height: 1.6; 
    text-align: left; /* Zarovnání textu doleva pro čitelnost */
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.content-section .category-title { 
    color: #1a1a1a; 
    margin: 25px 0 10px; 
    font-size: 1.25rem; 
    border-left: 4px solid #3b82f6; 
    padding-left: 15px; 
    font-weight: 800; 
    text-transform: none; /* SEO nadpisy nemusí být kapitálkami */
}

.instructions { 
    list-style: disc; 
    padding-left: 20px; 
    margin: 15px 0; 
}

.instructions li { 
    margin-bottom: 10px; 
}

.instructions strong { 
    color: #1a1a1a; 
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
    color: #9ca3af;
    font-size: 0.8rem;
}