/* =============================================
   MURALOWA GRA — STAJNIA MIEJSKA W ŻYWCU
   styl.css | wersja czysta, bez duplikatów
   ============================================= */


/* =============================================
   RESET I BAZA
   ============================================= */

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    font-family:Arial,sans-serif;
    background-color:#f3f0e8;
    background-image:url('tlo1.jpg');
    background-repeat:repeat;
    background-size:400px;
    color:#222;
    line-height:1.6;
}

.container{
    max-width:1200px;
    margin:0 auto;
    padding:12px;
    border-left:1px solid rgba(0,0,0,.08);
    border-right:1px solid rgba(0,0,0,.08);
    background-image:url('tlo2.jpg');
    background-repeat:repeat;
    background-size:400px;
}

.hidden{
    display:none;
}

.disabled{
    opacity:.6;
    pointer-events:none;
}


/* =============================================
   NAGŁÓWEK I INTRO
   ============================================= */

h1{
    text-align:center;
    margin-bottom:24px;
    font-size:2.2rem;
}

.intro{
    text-align:center;
    max-width:700px;
    margin:0 auto 32px;
    font-size:1.1rem;
}

/* intro-text ma dwa różne font-size w oryginale (1.2 i 1.4rem)
   używam 1.4rem z drugiej definicji która jest kompletniejsza */
.intro-text{
    font-size:1.4rem;
    line-height:1.7;
}

.intro-layout{
    display:grid;
    grid-template-columns:520px 1fr;
    gap:50px;
    align-items:center;
    margin:30px 0 40px;
}

.intro-photo img{
    width:100%;
    border-radius:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
}

@media(max-width:900px){
    .intro-layout{
        grid-template-columns:1fr;
        gap:20px;
    }
}


/* =============================================
   BANER I WYBÓR POZIOMU
   ============================================= */

.game-banner{
    width:100%;
    margin-bottom:24px;
    text-align:center;
    cursor:pointer;
}

.game-banner img{
    width:100%;
    max-width:1366px;
    height:auto;
    display:block;
    margin:0 auto;
    border-radius:18px;
    box-shadow:0 6px 20px rgba(0,0,0,.15);
}

.difficulty-title{
    text-align:center;
    font-size:40px;
    margin:40px 0 30px;
	    color:#315542;
    font-weight:700;
}

@media(max-width:700px){

    .difficulty-title{
        font-size:32px;
        margin:30px 0 20px;
    }

}

.difficulty-select{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    max-width:1200px;
    margin:30px auto 40px;
    align-items:center;
	text-align:center;
}

.difficulty-select .difficulty-title{
    margin-bottom:30px;
}

.difficulty-card{
    cursor:pointer;
    transition:transform .15s ease, filter .15s ease, box-shadow .15s ease;
    user-select:none;
}

.difficulty-card img{
    display:block;
    width:100%;
    max-width:620px;
    height:auto;
    filter:drop-shadow(0 8px 20px rgba(0,0,0,.18));
}

.difficulty-card:hover{
    transform:translateY(-4px) scale(1.02);
    filter:brightness(1.05);
}

.difficulty-card:active{
    transform:translateY(2px) scale(.99);
}

.difficulty-card:hover img{
    filter:drop-shadow(0 12px 30px rgba(0,0,0,.25));
}

/* przycisk tekstowy (fallback jeśli brak obrazka) */
.difficulty-btn{
    border:none;
    border-radius:18px;
    padding:28px 20px;
    font-size:1.3rem;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
}

.difficulty-btn:hover{
    transform:scale(1.02);
}

.easy{
    background:#8fd694;
}

.hard{
    background:#8cc8ff;
}

@media(max-width:900px){
    .difficulty-select{
        grid-template-columns:1fr;
        gap:18px;
    }
}

@media(max-width:700px){
    .game-banner{
        margin-bottom:18px;
    }
    .game-banner img{
        border-radius:12px;
    }
}


/* =============================================
   TRYB GRY
   ============================================= */

.game-mode{
    display:none;
}

.fade-out{
    opacity:0;
    transform:translateY(-10px);
    transition:.25s ease;
}


/* =============================================
   PASEK POSTĘPU — sticky u góry
   ============================================= */

/* Scalona definicja — bierze border-radius i border z drugiej wersji,
   usuwa background:#f4f1e8 z pierwszej na rzecz #ece4d0 z drugiej */
.progress-wrapper{
    position:sticky;
    top:0;
    z-index:100;
    background:#ece4d0;
    border-radius:20px;
    border:2px solid #d7c7a5;
    padding:10px 14px;
    margin-bottom:0;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.progress-top-row{
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    margin-bottom:10px;
}

.progress-text{
    font-size:1.4rem;
    font-weight:700;
}

/* Scalona definicja .progress-bar — bierze background z drugiej wersji */
.progress-bar{
    height:16px;
    border-radius:999px;
    overflow:hidden;
    background:#d7ddd8;
}

.progress-fill{
    height:100%;
    width:0%;
    background:#8fd694;
    transition:.4s;
}

.mini-reset-btn{
    position:absolute;
    right:0;
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:#d9ddd8;
    cursor:pointer;
    font-size:1.1rem;
    font-weight:bold;
    transition:.2s;
}

.mini-reset-btn:hover{
    transform:rotate(-25deg);
    background:#c9ceca;
}


/* =============================================
   RZĄD LITER — sticky pod paskiem
   ============================================= */

/* Scalona definicja — bierze sticky + padding + background z drugiej wersji */
.letters-row{
    position:sticky;
    top:72px;
    z-index:99;
    background:#f4f1e8;
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    padding:14px 0 18px;
    margin-bottom:20px;
}

.letter-box{
    width:68px;
    height:68px;
    background:white;
    border:3px solid #333;
    border-radius:10px;
    font-size:2.8rem;
    font-weight:bold;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
}

.letter-box.filled{
    background:#8fd694;
    transform:scale(1.12);
}

.letter-box.rewarded{
    animation:letterBounce .5s ease;
}

@media(max-width:600px){
    .letter-box{
        width:46px;
        height:46px;
        font-size:1.6rem;
    }
}


/* =============================================
   KARTY ZADAŃ
   ============================================= */

.task-card{
    background-image:url('tlo3.jpg');
    border:2px solid #d9c89f;
    border-radius:24px;
    padding:20px;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.task-card h3{
    margin-bottom:18px;
}

.task-card p{
    margin-bottom:14px;
}

.task-header{
    position:relative;
    min-height:70px;
    align-items:center;
}

.task-header h3{
    text-align:center;
    margin:0;
    font-size:1.8rem;
}

.task-header .mission-badge{
    position:absolute;
    left:0;
    top:-15%;
    font-size:0.8rem;
}

.task-badge{
    display:inline-block;
    background:#507c3a;
    color:white;
    padding:8px 14px;
    border-radius:999px;
    font-weight:700;
    margin-bottom:14px;
}

.task-question{
    font-size:1.2rem;
    font-weight:bold;
    margin:18px 0;
}

.hint-text{
    color:#666;
    margin-bottom:18px;
}

.task-with-image{
    display:flex;
    gap:30px;
}

.task-content{
    flex:1;
}

.task-image{
    flex:0 0 40%;
    flex-shrink:0;
}

.task-image img{
	    width:100%;
    height:auto;
    display:block;
}

@media(max-width:900px){
    .task-with-image{
        flex-direction:column-reverse;
    }
    .task-image{
        width:100%;
        max-width:420px;
        margin:0 auto;
    }
}

.task-lizard{
    align-items:center;
}
/*
.task-lizard .task-content{
    max-width:600px;
}

.task-lizard .task-image{
    width:32%;
}*/

.mini-task-card{
    margin-top:35px;
    padding:25px;
    background-image:url('tlo2.jpg');
    border:2px solid #cfd8d3;
    border-radius:20px;
}

#hard-task-8 .task-with-image{
    align-items:flex-start;
}

#hard-task-8 .task-content{
    flex:1.4;
}

#hard-task-8 .task-image{
    flex:0 0 45%;
}

#hard-task-11 .answer-option{
    font-size:1.2rem;
}
#task-1 .task-image{
    flex:0 0 50%;
}
#hard-task-2 .task-image{
    flex:0 0 50%;
}
#hard-task-4 .task-image{
    flex:0 0 50%;
}
/* =============================================
   MISJA (box z tekstem fabularnym)
   ============================================= */

.mission-box{
    background-image:url('tlo1.jpg');
    border:2px solid #d9c89f;
    border-radius:24px;
    padding:20px;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
    margin-bottom:30px;
}

.mission-box h2{
    text-align:center;
    margin-bottom:30px;
}

.mission-box p{
    margin-bottom:16px;
}

.mission-layout{
    display:grid;
    grid-template-columns:1fr 500px;
    gap:20px;
    align-items:center;
}

.mission-image{
    text-align:center;
}

.mission-image img{
    width:100%;
    height:auto;
    animation:floatChicks 4s ease-in-out infinite;
}

@media(max-width:768px){
    .mission-layout{
        grid-template-columns:1fr;
    }
    .mission-image{
        order:2;
        margin-top:10px;
    }
    .mission-text{
        order:1;
    }
}
.mission-text{
		text-align: justify;
}
.director-letter{
    background:#f8f4e8;
    border:2px solid #d8cfb4;
	text-align: justify;
    border-radius:18px;
    padding:24px;
    margin:26px 0;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
}

.director-letter p{
    margin-bottom:14px;
    line-height:1.7;
}

.letter-sign{
    font-weight:bold;
    margin-bottom:18px;
	font-family:'Bree Serif', serif;
    color:#6a5d37;
}

.letter-footer{
    margin-top:18px;
    font-weight:bold;
    text-align:right;
    color:#5a5a5a;
}

@media(max-width:700px){
    .director-letter{
        margin:0;
    }
}


/* =============================================
   WIERSZ / CYTAT
   ============================================= */

/* Scalona — usuwa duplikat padding (zostaje 30px) */
.poem{
    background:#f8f5ee;
    border:2px solid #d8c79a;
    border-radius:18px;
    padding:30px;
    margin:25px 0;
    box-shadow:0 3px 10px rgba(0,0,0,.05);
    text-align:center;
}

.poem p{
    margin:0;
    font-size:1.3rem;
    line-height:1.7;
    font-style:italic;
    color:#4a4234;
}


/* =============================================
   INPUTY I PRZYCISKI
   ============================================= */

input{
    width:100%;
    padding:16px;
    border-radius:12px;
    border:2px solid #ccc;
    font-size:1rem;
    margin-bottom:18px;
}

.next-btn,
.continue-btn{
    width:100%;
    border:none;
    color:white;
    padding:18px;
    border-radius:14px;
    font-size:1rem;
    font-weight:bold;
    cursor:pointer;
    margin-top:18px;
}

.next-btn{
    background:#222;
    margin-top:0;
}

.continue-btn{
    background:#4d8f4f;
}

.reset-btn{
    margin-top:16px;
    border:none;
    background:#ddd;
    padding:12px 18px;
    border-radius:12px;
    cursor:pointer;
    font-weight:bold;
    transition:.2s;
}

.reset-btn:hover{
    background:#ccc;
}

.hint-toggle{
    margin-bottom:18px;
    border:1px solid rgba(0,0,0,.2);
    background:#ece7c9;
    padding:10px 14px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

.mini-hint{
    background:#fff8d9;
    padding:14px;
    border-radius:12px;
    margin-bottom:18px;
    animation:fadeReveal .3s ease;
}


/* =============================================
   ODPOWIEDZI — siatka przycisków
   ============================================= */

.answers-grid{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:20px;
    max-width:420px;
}

.answer-option{
    width:100%;
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    font-weight:700;
    background:#f6f1df;
    border:2px solid #cdbb88;
    border-radius:18px;
    cursor:pointer;
    box-shadow:0 4px 0 #b49d63, 0 8px 16px rgba(0,0,0,.08);
    transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.answer-option:hover{
    background:#fff7dc;
    transform:translateY(-2px);
    box-shadow:0 6px 0 #b49d63, 0 12px 20px rgba(0,0,0,.12);
}

.answer-option:active{
    transform:translateY(3px);
    box-shadow:0 1px 0 #b49d63, 0 3px 6px rgba(0,0,0,.12);
}

/* Scalona — bierze kolory z drugiej definicji (linia 911-918) */
.answer-option.correct{
    background:#8fd694;
    border-color:#4d8f4f;
}

.answer-option.wrong{
    background:#ffb0b0;
    border-color:#cc6666;
}

.lizard-option{
    font-size:1.1rem;
}
.oak-option{
    font-size:0.95rem;
}
.snake-question .answers-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    max-width:100%;
}

@media(max-width:768px){
    .snake-question .answers-grid{
        grid-template-columns:1fr;
    }
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.plant-facts{
    margin:0;
    padding-left:1.4em;
    line-height:1.8;
}

.plant-facts li{
    margin-bottom:10px;
}


/* =============================================
   PRAWDA / FAŁSZ
   ============================================= */

.true-false-list{
    margin:24px 0;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.tf-row, bird-row{
    background:#fcfaf4;
    border:1px solid rgba(201,180,125,.35);
    backdrop-filter:blur(2px);
    padding:16px;
    border-radius:14px;
}

.tf-buttons, bird-buttons{
    display:flex;
    gap:10px;
    margin-top:12px;
}

.tf-btn, .bird-btn{
    min-width:120px;
    background:#efe8d2;
    border:2px solid #cdbb91;
    box-shadow:0 3px 0 #b9a67f;
    height:44px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

.tf-btn:hover, .bird-btn:hover{
    transform:translateY(-2px);
}

.tf-btn:active{
    transform:translateY(2px);
    box-shadow:none;
}

.tf-btn.correct, .bird-btn.correct{
    background:#8fd694;
	    border-color:#4d6f63;
}

.tf-btn.wrong, .bird-btn.wrong{
    background:#ffb0b0;
	    border-color:#cc6666;
}


/* =============================================
   CHECKLISTA PTAKÓW
   ============================================= */

.bird-checklist{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin:24px 0;
    align-items:center;
}



.bird-name{
    font-weight:bold;
    margin-top: 12px;
    text-align: center;
}



.solution-space{
    width:24px;
}


/* =============================================
   GRA DEFINICJE
   ============================================= */

.definition-game{
    display:flex;
    flex-direction:column;
    gap:24px;
    margin:32px 0;
}

.definition-row{
    background-image:url('tlo2.jpg');
    border-radius:18px;
    padding:20px;
    border:2px solid #d7e1dc;
}

.definition-title{
    font-size:1.25rem;
    font-weight:bold;
    margin-bottom:18px;
    color:#3f5f54;
}

.definition-options{
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* Scalona — usuwa duplikat border (zostaje 2px solid) */
.definition-btn{
    background:#efe8d2;
    border:2px solid #cdbb91;
    padding:16px;
    border-radius:14px;
    text-align:left;
    cursor:pointer;
    transition:.2s;
    box-shadow:0 3px 0 #b9a67f;
    line-height:1.5;
    font-size:.98rem;
}

.definition-btn:hover{
    transform:translateY(-2px);
}

.definition-btn:active{
    transform:translateY(2px);
    box-shadow:none;
}

.definition-btn.correct{
    background:#9fd5b8;
    border-color:#4d6f63;
}

.definition-btn.wrong{
    background:#ffb0b0;
    border-color:#cc6666;
}


/* =============================================
   FEEDBACK I CIEKAWOSTKI
   ============================================= */

.feedback{
    margin-top:14px;
    font-weight:bold;
}

.fact-box{
    margin-top:24px;
    background-image:url('tlo3.jpg');
    padding:20px;
    border-radius:16px;
    animation:fadeUp .4s ease;
	text-align: justify;
}

.plant-facts{
    background:rgba(255,255,255,.35);
    border-radius:18px;
    padding:20px 40px;
	font-size: 1.25rem;
}

.biolog-divider{
    height:2px;
    background:rgba(0,0,0,.08);
    margin:30px 0;
}

#hard-final .fact-box{
    font-size:1.2rem;
}


/* =============================================
   ELEMENTY DODATKOWE
   ============================================= */

.math-box{
    background:#e5ece8;
    border-radius:14px;
    padding:20px;
    text-align:center;
    font-size:2rem;
    font-weight:bold;
    margin:20px 0;
}

.letter-sequence{
    background:#eef3f1;
    padding:14px;
    border-radius:12px;
    text-align:center;
    font-weight:bold;
    letter-spacing:2px;
    margin:14px 0 18px;
}

.bio-list{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin:24px 0;
    padding-left:20px;
}

.bio-illustration{
    background:#dfe8e3;
    border-radius:14px;
    padding:40px;
    margin:20px 0;
    text-align:center;
    color:#666;
}

.final-solution{
    font-size:2rem;
    font-weight:bold;
    text-align:center;
    margin:24px 0;
    letter-spacing:3px;
    color:#3f5f54;
}

.fade-part{
    animation:fadeReveal .5s ease;
}


/* =============================================
   TEMAT BIOLOG
   ============================================= */

.biolog-box{
    background:#eef3f1;
}

.biolog-progress{
    background:#cfd8d3;
}

.biolog-fill{
    background:#4d6f63;
}

.biolog-letter.filled{
    background:#4d6f63;
    color:white;
}

.biolog-btn{
    background:#3f5f54;
}

.biolog-option.correct{
    background:#9fd5b8;
    border-color:#4d6f63;
}


/* =============================================
   NAGRODA ZA LITERĘ
   ============================================= */

#letter-reward{
    position:fixed;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    z-index:9999;
    font-size:5rem;
    font-weight:900;
    color:#4f8b3a;
    text-shadow:0 0 10px rgba(255,255,255,.8), 0 0 20px rgba(79,139,58,.5);
    pointer-events:none;
}

.reward-active{
    animation:rewardPop 1s ease forwards;
}


/* =============================================
   NARZĘDZIA DOSTĘPNOŚCI
   ============================================= */

.accessibility-tools{
    position:fixed;
    top:14px;
    right:14px;
    z-index:9999;
    display:flex;
    gap:8px;
    background:rgba(255,255,255,.9);
    padding:8px;
    border-radius:14px;
    box-shadow:0 4px 14px rgba(0,0,0,.12);
    backdrop-filter:blur(8px);
}

.accessibility-tools button{
    width:42px;
    height:42px;
    border:none;
    border-radius:10px;
    background:#d9ddd8;
    cursor:pointer;
    font-weight:bold;
    font-size:1rem;
    transition:.2s;
}

.accessibility-tools button:hover{
    transform:translateY(-1px);
}

@media(max-width:700px){
    .accessibility-tools{
        top:auto;
        right: 80px;
        bottom: 45px;
        transform:translateX(50%);
        padding:6px;
        gap:6px;
        border-radius:16px;
        background:rgba(255,255,255,.96);
        box-shadow:0 6px 20px rgba(0,0,0,.18);
    }
    .accessibility-tools button{
        width:44px;
        height:44px;
        font-size:1rem;
    }
}


/* =============================================
   STOPKA
   ============================================= */

footer{
    padding:40px 0 0;
    background:#ece9df;
    border-top:1px solid rgba(0,0,0,.08);
    max-width:1200px;
    margin:0 auto;
}

/* Scalona — bierze max-width:1200px z drugiej definicji */
.footer-inner{
    max-width:1200px;
    margin:0 auto;
}

.footer-text{
    text-align:center;
    line-height:1.7;
    margin-bottom:34px;
}

.footer-credits{
    text-align:center;
    margin:0px 0 20px;
    font-size:1rem;
    font-weight:600;
}

.footer-credits a{
    color:#2e6b4c;
    text-decoration:none;
}

.footer-credits a:hover{
    text-decoration:underline;
}

.footer-logos{
    display:block;
    width:100%;
    height:auto;
    margin:0;
}


/* =============================================
   ATLAS GATUNKÓW — stopka
   ============================================= */

/* Scalona obie definicje .species-help — bierze układ z drugiej (nowszej)
   która ma kompletny design dla stopki */
.species-help,
.project-details{
    background:#eef2ef;
    border:1px solid rgba(0,0,0,.08);
    border-radius:24px;
    width:90%;
    margin:0 auto 24px;
    overflow:hidden;
}

.species-help summary,
.project-details summary{
    padding:18px 24px;
    cursor:pointer;
    list-style:none;
    font-size:1.35rem;
    font-weight:700;
    transition:.2s;
    background:#eef2ef;
}

.species-help summary::-webkit-details-marker,
.project-details summary::-webkit-details-marker{
    display:none;
}

/*.species-help summary:hover,*/
.project-details summary:hover{
    background:rgba(0,0,0,.03);
}

.species-content,
.project-content{
    padding:0 28px 28px;
	text-align:justify;
}

.species-intro{
    margin:0 0 24px;
    line-height:1.7;
    color:#555;
}

.project-content p{
    line-height:1.8;
    color:#555;
    margin-bottom:16px;
}

/* Scalona .species-hint-grid — bierze gap:40px z drugiej definicji */
.species-hint-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.species-hint-section{
    background:white;
    border:1px solid #e2ddd0;
    border-radius:18px;
    padding:22px;
}

.species-hint-section h4{
    margin-top:0;
    margin-bottom:18px;
    font-size:1.1rem;
}

.species-hint-list{
    margin:0;
    padding-left:20px;
}

.species-hint-list li{
    margin-bottom:12px;
    line-height:1.5;
}

.hint-location{
    color:#666;
}

@media(max-width:900px){
    .species-hint-grid{
        grid-template-columns:1fr;
        gap:20px;
    }
    .species-help summary,
    .project-details summary{
        font-size:1.1rem;
        padding:18px 20px;
    }
    .species-content,
    .project-content{
        padding:0 20px 20px;
    }
}


/* =============================================
   RESPONSYWNOŚĆ
   ============================================= */

@media(max-width:600px){
    h1{
        font-size:1.8rem;
    }
    .difficulty-btn{
        font-size:1.1rem;
        padding:24px 16px;
    }
}


/* =============================================
   HIGH CONTRAST / CIEMNY TRYB
   ============================================= */

body.high-contrast{
    background:#111;
    color:#ffd84d;
	background-image:none !important;
}

body.high-contrast .task-card,
body.high-contrast .mission-box,
body.high-contrast .fact-box,
body.high-contrast .director-letter,
body.high-contrast .species-help,
body.high-contrast .species-hint-section,
body.high-contrast .bird-row,
body.high-contrast .definition-row,
body.high-contrast .tf-row,
body.high-contrast .bio-illustration,
body.high-contrast .math-box,
body.high-contrast .letter-sequence,
body.high-contrast .species-intro,
body.high-contrast .species-content,
body.high-contrast .project-content,
body.high-contrast .poem{
    background:#1f1f1f;
    color:#ffd84d;
    border-color:#444;
	background-image:none !important;
}

body.high-contrast .difficulty-title,
body.high-contrast .hint-location
{
    color:#ffd84d;
}

body.high-contrast .progress-wrapper,
body.high-contrast .letters-row{
    background:#111;
}

body.high-contrast .progress-bar,
body.high-contrast .biolog-progress{
    background:#333;
}

body.high-contrast input{
    background:#181818;
    color:#fff;
    border:2px solid #666;
}



body.high-contrast .answer-option,
body.high-contrast .definition-btn,
body.high-contrast .bird-btn,
body.high-contrast .tf-btn,
body.high-contrast .difficulty-btn{
    background:#2a2a2a;
    color:#fff;
    border-color:#555;
}

body.high-contrast .answer-option:hover,
body.high-contrast .definition-btn:hover{
    background:#333;
}

body.high-contrast .correct{
    background:#245d34 !important;
    color:#fff;
}

body.high-contrast .wrong{
    background:#7a2d2d !important;
    color:#fff;
}

body.high-contrast footer{
    background:#161616;
    border-color:#333;
}

body.high-contrast .species-help summary,
body.high-contrast .project-details summary{
    background:#222;
    color:#fff;
}

body.high-contrast .species-help summary:hover,
body.high-contrast .project-details summary:hover{
    background:#2c2c2c;
}

body.high-contrast .mini-hint{
    background:#3a341f;
    color:#fff8c6;
}

body.high-contrast .letter-box{
    background:#181818;
    color:#fff;
    border-color:#666;
}

body.high-contrast .accessibility-tools{
    background:rgba(20,20,20,.95);
}

body.high-contrast .accessibility-tools button{
    background:#2b2b2b;
    color:#fff;
}

body.high-contrast .task-card,
body.high-contrast .mission-box,
body.high-contrast .fact-box,
body.high-contrast .director-letter,
body.high-contrast .species-help,
body.high-contrast .species-hint-section,
body.high-contrast .bird-row,
body.high-contrast .definition-row,
body.high-contrast .tf-row,
body.high-contrast .bio-illustration,
body.high-contrast .math-box,
body.high-contrast .letter-sequence,
body.high-contrast .poem,
body.high-contrast .progress-wrapper,
body.high-contrast #main-intro,
body.high-contrast .game-mode,
body.high-contrast .container,
body.high-contrast .mini-task-card{
    background-image:none !important;
}

body.high-contrast .hero-text,
body.high-contrast .intro-text,
body.high-contrast .choose-mission,
body.high-contrast .intro-panel,
body.high-contrast p,
body.high-contrast .intro-panel p,
body.high-contrast .intro-panel li{
    color:#ffd84d !important;
}


/* =============================================
   ANIMACJE
   ============================================= */

@keyframes floatChicks{
    0%,100%{ transform:translateY(0); }
    50%{ transform:translateY(-6px); }
}

@keyframes fadeUp{
    from{ opacity:0; transform:translateY(20px); }
    to{ opacity:1; transform:translateY(0); }
}

@keyframes fadeReveal{
    from{ opacity:0; transform:translateY(10px); }
    to{ opacity:1; transform:translateY(0); }
}

@keyframes rewardPop{
    0%{ opacity:0; transform:translate(-50%,-50%) scale(.3); }
    20%{ opacity:1; transform:translate(-50%,-50%) scale(1.3); }
    70%{ opacity:1; transform:translate(-50%,-55%) scale(1); }
    100%{ opacity:0; transform:translate(-50%,-90%) scale(.8); }
}

@keyframes letterBounce{
    0%{ transform:scale(1); }
    40%{ transform:scale(1.25); }
    70%{ transform:scale(.92); }
    100%{ transform:scale(1); }
}

.difficulty-title,
.task-header h3,
.mission-box h2,
.mission-box,
.task-card h2,
.mission-badge{
    font-family:'Bree Serif', serif;
}
.mission-badge{
    font-family:'Bree Serif', serif;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.atlas-button{
    display:block;
    width:100%;
    max-width:900px;
    margin:0 auto;
    height:auto;
}

.species-help summary{
    list-style:none;
    text-align:center;
    background:none;
    padding:0;
    border:none;
}

.species-help summary::-webkit-details-marker{
    display:none;
}

.species-help{
    background:transparent;
    border:none;
    box-shadow:none;
    padding:0;
}



.privacy-details{
    margin: 5px 10px 0px;;
    text-align:center;
    background:none;
    border:none;
    box-shadow:none;
}

.privacy-details summary{
    cursor:pointer;
    font-size:.85rem;
    color:#666;
    list-style:none;
}

.privacy-details summary::-webkit-details-marker{
    display:none;
}

.privacy-content{
    margin-top:12px;
    text-align:justify;
    font-size:.7rem;
    line-height:1.5;
}