* { box-sizing:border-box; }
body { margin:0; background:#f8f5ec; color:#263f33; font:1.075rem/1.55 "Segoe UI",Arial,sans-serif; }
[hidden] { display:none !important; }
.question-card { max-width:49rem; margin:.4rem auto 0; background:#fffcf4; border:1px solid #d3cfbb; border-radius:1rem; padding:clamp(1rem,4vw,2.4rem); }
.question-header { display:grid; align-items:center; grid-template-columns:minmax(0,1fr) auto; gap:1rem; margin-bottom:1.2rem; }
.question-header img { width:clamp(3.7rem,10vw,7rem); height:auto; aspect-ratio:1/1; object-fit:contain; border-radius:12%; }
.question-header img.answer-art { border:2px solid #c9b58c; background:#fffdf7; padding:3px; box-shadow:0 3px 9px rgba(40,70,54,.14); }
#position { margin:0 0 .35rem; color:#775533; font-weight:650; }
#progress { appearance:none; display:block; width:min(14rem,100%); height:7px; margin:0 0 .7rem; border:0; border-radius:99px; background:#e6ebdd; color:#6e9064; overflow:hidden; }
#progress::-webkit-progress-bar { background:#e6ebdd; border-radius:99px; }
#progress::-webkit-progress-value { background:#6e9064; border-radius:99px; }
#progress::-moz-progress-bar { background:#6e9064; border-radius:99px; }
#question { margin:0; font:500 clamp(1.65rem,4vw,2.55rem)/1.18 Georgia,serif; }
.answers { display:grid; gap:.6rem; grid-template-columns:repeat(3,minmax(0,1fr)); }
.answers button, #next { min-height:3.25rem; padding:.6rem .9rem; border:1px solid #acb9a9; border-radius:.65rem; background:#f2f5e9; color:#284636; font:600 1.1rem/1.35 "Segoe UI",Arial,sans-serif; cursor:pointer; transition:background-color .14s, border-color .14s; }
.answers button:not(:disabled):hover { background:#e3ecda; border-color:#789275; }
#next:hover { background:#204431; }
.answers button:focus-visible, #next:focus-visible { outline:3px solid #377ba2; outline-offset:3px; }
.answers button.missed { background:#f3e7df; color:#704536; border-style:dashed; }
.answers button.correct, #next { background:#2f5842; color:white; }
/* Okraj nesie samo tlačidlo: skryté tlačidlo nenechá pod odpoveďami prázdne miesto. */
#next { margin-top:1rem; scroll-margin-bottom:12px; } /* po posunutí na obrazovku nie je nalepené na okraji */
#feedback:not(:empty) { margin-top:1.2rem; }
#more { display:inline-flex; align-items:center; min-height:44px; margin-top:.3rem; color:#315942; font-size:.95rem; text-underline-offset:3px; }
#more:focus-visible { outline:3px solid #377ba2; outline-offset:3px; border-radius:4px; }
.question-stats { max-width:49rem; margin:1rem auto; color:#50614f; }
@media(max-width:650px) { .answers { grid-template-columns:1fr; } }
@media(max-width:370px) { .question-header img { display:none; } .question-header { grid-template-columns:1fr; } }
/* 2.6.4 */
/* Nadpis otázky dostáva fokus len programovo (aby čítačka začala od otázky), rámik okolo celej vety netreba. */
#question:focus { outline:none; }
/* Chýbajúce slovo v príslovi: podčiarknuté prázdne miesto; po uhádnutí doplnené slovo zelené a podčiarknuté. */
#question .blank { display:inline-block; min-width:2.8em; border-bottom:3px solid #a08b63; line-height:1.05; }
#question .blank.filled { display:inline; min-width:0; border:0; color:#2f5842; text-decoration:underline; text-decoration-color:#8eb089; text-decoration-thickness:3px; text-underline-offset:.14em; }
/* Hviezda za celé kolo v samostatnom riadku pod vysvetlením. */
.feedback-explain { margin:0; }
.feedback-star { margin:.6rem 0 0; padding:.45rem .75rem; border-radius:.55rem; background:#f6efe0; border:1px solid #dccaa4; color:#6b4c1c; font-weight:650; }
/* Poznáš Slovensko? má dlhé odpovede: na tablete na výšku pod sebou, nie v troch úzkych stĺpcoch. */
@media(max-width:900px) { body[data-game="slovensko"] .answers { grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce) { .answers button, #next { transition:none; } }
/* Obrázok k odpovedi sa dá ťuknutím zväčšiť. */
.question-header img.answer-art { cursor:zoom-in; }
.question-header img.answer-art:focus-visible { outline:3px solid #377ba2; outline-offset:3px; }
.art-zoom img { display:block; width:min(72vw, 58vh, 26rem); height:auto; aspect-ratio:1/1; object-fit:contain; margin:.4rem auto 0; border-radius:12px; background:#fffdf7; }
