@charset "UTF-8";
/* ==========================================================================
   FYZIKUS — doplnky verzie 1.1
   Doodle pozadia · prihlásenie · dashboard · poháre · rebríček ·
   administrácia · pojmová mapa · doplňovačka · tajnička · testy
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Doodle pozadie — kreslené fyzikálne čmáranice
   -------------------------------------------------------------------------- */
.doodles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 0; opacity: .5;
}
.doodle {
  position: absolute; width: 74px; height: 74px;
  fill: none; stroke: var(--acc); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .17;
  transform: rotate(var(--r, 0deg)) scale(var(--s, 1));
  animation: doodlePlavanie 11s var(--ease-io) infinite alternate;
  animation-delay: var(--d, 0s);
}
@keyframes doodlePlavanie {
  from { transform: rotate(var(--r,0deg)) scale(var(--s,1)) translateY(0); }
  to   { transform: rotate(calc(var(--r,0deg) + 8deg)) scale(var(--s,1)) translateY(-14px); }
}
[data-theme="dark"] .doodle { opacity: .13; }
.doodles--head .doodle { width: 62px; height: 62px; }
.doodles--learn { border-radius: var(--r-lg); opacity: .38; }

.phead, .hero, .learn, .ucitel-sekcia, .auth-page { position: relative; }
.phead > .wrap, .learn__head, .learn .panel { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) { .doodle { animation: none; } }

/* --------------------------------------------------------------------------
   2. Menšie šípky na predchádzajúcu / nasledujúcu tému
   -------------------------------------------------------------------------- */
.pager--sm { margin-top: 2rem; gap: .7rem; }
.pager--sm a {
  flex-direction: column; gap: .1rem;
  padding: .6rem .9rem; border-radius: var(--r-sm);
  font-size: .9rem;
}
.pager--sm small {
  font-size: .68rem; letter-spacing: .06em; display: flex;
  align-items: center; gap: .3rem;
}
.pager--sm .next small { justify-content: flex-end; }
.pager--sm small svg { width: 12px; height: 12px; flex: 0 0 12px; }
.pager--sm b { font-size: .88rem; font-weight: 600; line-height: 1.3; }

/* --------------------------------------------------------------------------
   3. Navigácia — účet
   -------------------------------------------------------------------------- */
.nav__me { white-space: nowrap; }
@media (max-width: 720px) { .nav__me span { display: none; } .nav__me { padding: .5rem .6rem; } }
.btn--wide { width: 100%; justify-content: center; }
.btn--bad { color: var(--bad); border-color: var(--bad-soft); }
.btn--bad:hover { border-color: var(--bad); color: var(--bad); }
.tab__n {
  padding: .08rem .42rem; border-radius: var(--r-full);
  background: var(--bg-3); font-size: .7rem; font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Režim editácie
   -------------------------------------------------------------------------- */
/* Plávajúca lišta režimu editácie — dve tlačidlá a stav. */
.edit-overlay {
  position: fixed; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  z-index: 240; max-width: min(94vw, 760px);
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .7rem 1.1rem; border-radius: var(--r-full);
  background: var(--surface-solid); border: 2px solid var(--warn);
  box-shadow: var(--sh-3); font-size: .88rem;
}
.edit-overlay__dot {
  flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn);
  box-shadow: 0 0 0 4px var(--warn-soft); animation: editPulz 1.8s infinite;
}
@keyframes editPulz { 50% { box-shadow: 0 0 0 8px transparent; } }
.edit-overlay__t { flex: 1; min-width: 180px; line-height: 1.35; }
.edit-overlay__t b { display: block; font-family: var(--font-display); font-size: .92rem; }
.edit-overlay__t small { color: var(--ink-3); font-size: .78rem; }
.edit-overlay .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 720px) {
  .edit-overlay {
    left: .6rem; right: .6rem; transform: none; max-width: none;
    border-radius: var(--r); bottom: .6rem;
  }
  .edit-overlay .btn { flex: 1; justify-content: center; }
  .edit-overlay__t { min-width: 100%; }
}
/* nech lišta neprekrýva pätičku ani tlačidlo hore */
.je-edit .footer { padding-bottom: 6rem; }
.je-edit .top-btn { bottom: 6.5rem; }
.je-edit .suhlas-prepnut { display: none; }

/* Ceruzka pri odkazoch a tlačidlách — tie musia zostať klikateľné. */
.fyz-ceruzka {
  position: absolute; z-index: 250;
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--warn); color: #fff; border: 2px solid var(--bg-2);
  box-shadow: var(--sh-2);
}
.fyz-ceruzka[hidden] { display: none !important; }
.fyz-ceruzka svg { width: 14px; height: 14px; }
.fyz-ceruzka:hover { filter: brightness(1.1); transform: scale(1.08); }

.fyz-edit {
  border-bottom: 2px dashed var(--warn); cursor: text;
  border-radius: 3px; transition: background .15s;
}
.fyz-edit:hover { background: var(--warn-soft); }
.fyz-edit.je-aktivny {
  outline: 2px solid var(--acc); outline-offset: 3px;
  background: var(--bg-2); border-bottom-color: transparent;
}
/* Automaticky rozpoznané texty — nenápadné, kým na ne neprejdeš myšou. */
.fyz-edit--auto { border-bottom: 0; box-shadow: inset 0 -1px 0 rgba(217, 119, 6, .35); }
.fyz-edit--auto:hover {
  background: var(--warn-soft);
  box-shadow: inset 0 -2px 0 var(--warn);
  cursor: text;
}
.fyz-edit--auto.je-aktivny { box-shadow: none; }
.je-edit [data-tupravene] { box-shadow: inset 0 -1px 0 rgba(5, 150, 105, .5); }

.fyz-edit.je-uklada { opacity: .55; }
.fyz-edit.je-ulozene { background: var(--ok-soft); border-bottom-color: var(--ok); }
.fyz-edit.je-chyba { background: var(--bad-soft); border-bottom-color: var(--bad); }

/* --------------------------------------------------------------------------
   5. Prihlásenie
   -------------------------------------------------------------------------- */
.auth-page { padding-top: 3rem; }
.auth-card {
  position: relative; z-index: 1;
  max-width: 460px; margin: 0 auto; text-align: center;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: var(--surface-solid); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
}
.auth-card__ico {
  width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc);
}
.auth-card__ico svg { width: 34px; height: 34px; }
.auth-card h1 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .5rem; }
.auth-card__lead { color: var(--ink-2); font-size: .93rem; margin-bottom: 1.5rem; }
.auth-form { display: grid; gap: .9rem; text-align: left; }
.auth-form label { display: grid; gap: .35rem; }
.auth-form span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.auth-form input {
  width: 100%; padding: .75rem .95rem; font: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--ink);
}
.auth-form input:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; }
.auth-note { margin-top: 1.25rem; font-size: .84rem; color: var(--ink-3); line-height: 1.6; }

/* --------------------------------------------------------------------------
   6. Dashboard žiaka
   -------------------------------------------------------------------------- */
.phead--dash { padding-bottom: 1.5rem; }
.dash-cards {
  display: grid; gap: var(--gap); margin-bottom: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.dash-card {
  padding: 1.1rem 1.2rem; border-radius: var(--r);
  background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--sh-1); text-align: center;
}
.dash-card__ico {
  width: 40px; height: 40px; margin: 0 auto .6rem; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--acc-soft); color: var(--acc);
}
.dash-card__ico svg { width: 21px; height: 21px; }
.dash-card__n {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 700; line-height: 1.1;
}
.dash-card__l { font-size: .8rem; color: var(--ink-3); }

.level-card {
  display: flex; gap: 1rem; align-items: center; margin-bottom: var(--gap);
  padding: 1.1rem 1.3rem; border-radius: var(--r);
  background: linear-gradient(120deg, var(--acc-soft), transparent);
  border: 1px solid var(--acc-soft);
}
.level-card__ico { font-size: 2.2rem; line-height: 1; }
.level-card__body { flex: 1; min-width: 0; }
.level-card__body b { display: block; font-size: 1.02rem; }
.level-card__body small { color: var(--ink-2); font-size: .85rem; }
.level-bar {
  margin-top: .6rem; height: 9px; border-radius: var(--r-full);
  background: var(--bg-3); overflow: hidden;
}
.level-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  transition: width .8s var(--ease);
}

/* poháre */
.pohare {
  display: grid; gap: .8rem; padding: 1.25rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.pohar {
  padding: .9rem .7rem; text-align: center; border-radius: var(--r);
  background: var(--bg-3); border: 1px solid var(--line);
}
.pohar__ico { display: block; font-size: 2rem; line-height: 1.2; }
.pohar b { display: block; font-size: .84rem; margin-top: .25rem; }
.pohar small { color: var(--ink-3); font-size: .78rem; font-weight: 700; }

/* chyby */
.chyba {
  padding: .8rem 1rem; border-radius: var(--r-sm);
  background: var(--bg-3); border-left: 3px solid var(--warn);
}
.chyba > b { display: block; font-size: .92rem; margin-bottom: .4rem; }
.chyba__r { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.chyba__zla, .chyba__dobra { display: inline-flex; align-items: center; gap: .3rem; }
.chyba__zla { color: var(--bad); text-decoration: line-through; }
.chyba__dobra { color: var(--ok); font-weight: 600; }
.chyba__r svg { width: 14px; height: 14px; }

/* známky */
.znamka {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: #fff; flex: 0 0 auto;
}
.znamka--sm { width: 26px; height: 26px; font-size: .92rem; border-radius: 8px; }
.znamka--velka { width: 96px; height: 96px; font-size: 3rem; border-radius: 24px; margin: 0 auto 1rem; }
.znamka--1 { background: #059669; }
.znamka--2 { background: #65a30d; }
.znamka--3 { background: #d97706; }
.znamka--4 { background: #ea580c; }
.znamka--5 { background: #dc2626; }

/* --------------------------------------------------------------------------
   7. Rebríček
   -------------------------------------------------------------------------- */
.tabs--rocniky { margin-bottom: var(--gap); }
.lb { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.lb__row {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1.1rem; border-radius: var(--r);
  background: var(--surface-solid); border: 1px solid var(--line);
}
.lb__row--top { box-shadow: var(--sh-2); }
.lb__row.is-me { border-color: var(--acc); background: var(--acc-soft); }
.lb__pos {
  width: 42px; flex: 0 0 42px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink-3);
}
.lb__pos--1, .lb__pos--2, .lb__pos--3 { font-size: 1.6rem; }
.lb__meno { flex: 1; min-width: 0; }
.lb__meno b { display: block; font-size: .98rem; }
.lb__meno b em { color: var(--acc); font-style: normal; font-weight: 600; }
.lb__meno small { color: var(--ink-3); font-size: .8rem; }
.lb__body { text-align: right; flex: 0 0 auto; }
.lb__body b {
  display: block; font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; color: var(--acc);
}
.lb__body small { color: var(--ink-3); font-size: .72rem; }

.body-legenda {
  list-style: none; padding: 0; margin: .5rem 0 0;
  display: grid; gap: .4rem; font-size: .88rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.body-legenda li { color: var(--ink-2); }
.body-legenda b { color: var(--acc); font-family: var(--font-display); }

/* --------------------------------------------------------------------------
   8. „+N bodov“ odmena
   -------------------------------------------------------------------------- */
.body-pop {
  position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 200;
  display: grid; place-items: center; gap: 0;
  padding: .8rem 1.2rem; border-radius: var(--r);
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: #fff; box-shadow: var(--sh-3); text-align: center;
  opacity: 0; transform: translateY(18px) scale(.9);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.body-pop.is-on { opacity: 1; transform: translateY(0) scale(1); }
.body-pop b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.body-pop small { font-size: .72rem; opacity: .9; text-transform: uppercase; letter-spacing: .1em; }
.body-pop__celkom { font-size: .74rem; opacity: .85; margin-top: .25rem; }

/* --------------------------------------------------------------------------
   9. Administrácia
   -------------------------------------------------------------------------- */
.phead--admin { padding-bottom: 1.25rem; }
.tabs--admin { flex-wrap: wrap; margin-bottom: var(--gap); }
/* minmax(0, 1fr) je dôležité: bez neho by široká tabuľka v jednej karte
   roztiahla celý stĺpec a všetky ostatné karty by pretiekli mimo obrazovku. */
.apanel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
/* display:grid by inak prebilo atribút hidden a všetky karty by boli naraz. */
.apanel[hidden], .lb-panel[hidden] { display: none !important; }
.admin-card { min-width: 0; }
.admin-card {
  padding: clamp(1.1rem, 3vw, 1.6rem); border-radius: var(--r);
  background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.admin-card h2 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .8rem; }
.admin-card h3 { font-family: var(--font-display); font-size: 1rem; margin: 1.4rem 0 .6rem; }
.admin-hint { color: var(--ink-3); font-size: .87rem; line-height: 1.6; margin-bottom: .8rem; }
.admin-hint code, .tbl code {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--bg-3); padding: .1rem .35rem; border-radius: 5px;
}

.admin-grid { display: grid; gap: .9rem; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .admin-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .admin-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .admin-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) { .admin-grid--5 { grid-template-columns: repeat(5, 1fr); } }
.admin-grid label { display: grid; gap: .3rem; }
.admin-grid label > span { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.admin-grid input, .admin-grid select, .admin-grid textarea {
  width: 100%; padding: .6rem .8rem; font: inherit; font-size: .92rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--ink);
}
.admin-grid textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.admin-grid input:focus, .admin-grid select:focus, .admin-grid textarea:focus {
  outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent;
}
.admin-grid .chk { flex-direction: row; align-items: center; gap: .45rem; }
.chk { display: flex; align-items: center; gap: .45rem; font-size: .88rem; }
.chk input { width: auto; }

.admin-filter {
  width: 100%; max-width: 320px; margin-bottom: .9rem;
  padding: .55rem .85rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-full);
  background: var(--bg-2); color: var(--ink);
}

/* prepínače */
.prepinac {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .9rem 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.prepinac:last-of-type { border-bottom: 0; }
.prepinac input { position: absolute; opacity: 0; width: 0; height: 0; }
.prepinac__vyp {
  position: relative; flex: 0 0 46px; width: 46px; height: 26px; margin-top: .15rem;
  border-radius: var(--r-full); background: var(--bg-3);
  border: 1px solid var(--line-strong); transition: background .2s, border-color .2s;
}
.prepinac__vyp::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: var(--sh-1); transition: transform .22s var(--ease);
}
.prepinac input:checked + .prepinac__vyp { background: var(--acc); border-color: var(--acc); }
.prepinac input:checked + .prepinac__vyp::after { transform: translateX(20px); }
.prepinac input:focus-visible + .prepinac__vyp { outline: 2px solid var(--acc); outline-offset: 3px; }
.prepinac__t b { display: block; font-size: .96rem; }
.prepinac__t small { display: block; color: var(--ink-3); font-size: .84rem; line-height: 1.55; margin-top: .2rem; }

/* tabuľky */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.tbl th, .tbl td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); border-bottom: 2px solid var(--line-strong);
}
.tbl tbody tr:hover { background: var(--bg-3); }
.tbl__akcie { display: flex; gap: .35rem; flex-wrap: wrap; }
.uprav-riadok > td { background: var(--bg-3); }
.riadok-nebezpecny { display: inline-block; margin: .6rem .4rem 0 0; }

.stav {
  display: inline-block; padding: .12rem .5rem; border-radius: var(--r-full);
  font-size: .74rem; font-weight: 700;
}
.stav--ok { background: var(--ok-soft); color: var(--ok); }
.stav--off { background: var(--bad-soft); color: var(--bad); }

.export-riadok { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.udaje {
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.7;
  background: var(--bg-3); padding: .8rem 1rem; border-radius: var(--r-sm);
  overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin-top: .5rem;
}
.foto-nahlad { display: grid; gap: .5rem; }
.foto-nahlad img {
  width: 110px; height: 110px; object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--line);
}
.admin-card--detail { border-color: var(--acc); }

/* --------------------------------------------------------------------------
   10. Pojmová mapa
   -------------------------------------------------------------------------- */
.mapa { display: grid; gap: 1rem; }
.mapa__info {
  font-size: .89rem; color: var(--ink-2); line-height: 1.6;
  padding: .75rem 1rem; border-radius: var(--r-sm);
  background: var(--acc-soft);
}
.mapa__plocha {
  position: relative; min-height: 420px;
  display: grid; place-items: center;
  padding: 1rem;
}
.mapa__stred {
  position: relative; z-index: 2; max-width: 220px; text-align: center;
  padding: 1rem 1.2rem; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: .98rem; line-height: 1.3; box-shadow: var(--sh-3);
}
.mapa__uzly { position: absolute; inset: 0; }
.mapa__uzol {
  position: absolute; left: 50%; top: 50%;
  --uhol: calc(var(--i) * (360deg / var(--n)));
  --polomer: min(38vw, 220px);
  transform:
    rotate(var(--uhol)) translate(var(--polomer)) rotate(calc(-1 * var(--uhol)))
    translate(-50%, -50%);
  max-width: 168px;
  padding: .5rem .8rem; border-radius: var(--r-full);
  background: var(--surface-solid); border: 1.5px solid var(--line-strong);
  color: var(--ink); font: inherit; font-size: .84rem; font-weight: 600;
  cursor: pointer; text-align: center; line-height: 1.25;
  box-shadow: var(--sh-1);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.mapa__uzol::before {
  /* spojnica do stredu */
  content: ""; position: absolute; right: 100%; top: 50%;
  width: 0; height: 0;
}
.mapa__uzol:hover, .mapa__uzol:focus-visible {
  border-color: var(--acc); background: var(--acc-soft);
  box-shadow: var(--sh-2); outline: none; z-index: 5;
}
.mapa__uzol.is-videne { border-color: var(--ok); }
.mapa__uzol.is-videne::after {
  content: "✓"; position: absolute; top: -6px; right: -4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: .66rem;
  display: grid; place-items: center;
}
.mapa__bublina {
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(5px);
  width: max-content; max-width: 260px;
  padding: .6rem .8rem; border-radius: var(--r-sm);
  background: var(--ink); color: var(--ink-inv);
  font-size: .78rem; font-weight: 400; line-height: 1.5; text-align: left;
  opacity: 0; pointer-events: none; z-index: 20;
  transition: opacity .18s, transform .18s var(--ease);
  box-shadow: var(--sh-3);
}
.mapa__uzol:hover .mapa__bublina,
.mapa__uzol:focus-visible .mapa__bublina { opacity: 1; transform: translateX(-50%) translateY(0); }
.mapa__detail {
  padding: 1rem 1.2rem; border-radius: var(--r);
  background: var(--bg-3); border: 1px solid var(--line); min-height: 92px;
}
.mapa__detail b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .3rem; }
.mapa__detail p { color: var(--ink-2); font-size: .92rem; line-height: 1.65; }
.mapa__detail small { display: block; margin-top: .4rem; color: var(--ink-3); font-size: .78rem; }
.mapa__detail-prazdny { color: var(--ink-3); font-style: italic; }
.mapa__stav { font-size: .86rem; color: var(--ink-3); text-align: center; }

.mapa__info--uzke { display: none; }
@media (max-width: 640px) {
  .mapa__info--siroke { display: none; }
  .mapa__info--uzke { display: inline; }
}

/* Ovládanie listovania — na širokom displeji netreba, mapa je kruhová. */
.mapa__ovladanie { display: none; }
.mapa--karty .mapa__ovladanie {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: .2rem;
}
.mapa__pocitadlo {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--ink-2); min-width: 74px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.mapa--karty .mapa__ovladanie .icon-btn {
  width: 46px; height: 46px; border: 1.5px solid var(--line-strong);
  background: var(--surface-solid);
}
.mapa--karty .mapa__ovladanie .icon-btn:hover { border-color: var(--acc); color: var(--acc); }

/* Na mobile sa pojmy listujú po jednom — kruhová mapa by zabrala pol obrazovky. */
@media (max-width: 640px) {
  .mapa__plocha {
    min-height: 0; display: block; padding: 0;
    touch-action: pan-y;              /* vodorovné ťahanie si berieme my */
  }
  .mapa__stred {
    max-width: none; margin-bottom: .7rem;
    font-size: .88rem; padding: .6rem 1rem; border-radius: var(--r-sm);
  }
  .mapa__uzly {
    position: static; inset: auto; width: 100%;
    display: block;
  }
  .mapa__uzol {
    position: static; inset: auto; transform: none;
    max-width: none; width: 100%;
    display: none;                    /* vidno vždy len aktívnu kartu */
    text-align: left; font-size: 1.02rem; font-weight: 700;
    padding: .9rem 1.1rem;
    border-radius: var(--r) var(--r) 0 0;
    border-color: var(--acc); background: var(--acc-soft);
    cursor: default;
  }
  .mapa__uzol.je-aktivny { display: block; }
  .mapa__uzol.is-videne::after { top: 12px; right: 10px; }
  .mapa__bublina { display: none; }

  .mapa__detail--pri-pojme {
    margin-top: -1px; border-radius: 0 0 var(--r) var(--r);
    border-color: var(--acc); background: var(--bg-2);
    min-height: 0;
  }

  /* jemné prešmyknutie pri listovaní */
  .mapa__uzol.sa-posuva-vpravo { animation: kartaZprava .22s var(--ease); }
  .mapa__uzol.sa-posuva-vlavo  { animation: kartaZlava .22s var(--ease); }
  @keyframes kartaZprava { from { opacity: 0; transform: translateX(22px); } }
  @keyframes kartaZlava  { from { opacity: 0; transform: translateX(-22px); } }

  .mapa__info { font-size: .85rem; padding: .6rem .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mapa__uzol.sa-posuva-vpravo, .mapa__uzol.sa-posuva-vlavo { animation: none; }
}

/* --------------------------------------------------------------------------
   11. Kvíz — čas a pochvaly
   -------------------------------------------------------------------------- */
.qcas { display: inline-flex; align-items: center; gap: .3rem; font-variant-numeric: tabular-nums; }
.qcas svg { width: 14px; height: 14px; }
.qbreak .cas b { color: var(--acc); }
.qpriemer {
  margin-top: .8rem; font-size: .86rem; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: .35rem;
}
.qpriemer svg { width: 15px; height: 15px; }
.chvaly { display: grid; gap: .5rem; margin: 1.2rem auto 0; max-width: 460px; text-align: left; }
.chvala {
  padding: .6rem .9rem; border-radius: var(--r-sm); font-size: .88rem;
  background: var(--bg-3); border-left: 3px solid var(--acc); line-height: 1.5;
}
.chvala--zlata { border-left-color: #d97706; background: var(--warn-soft); }
.chvala--rychla, .chvala--blesk { border-left-color: var(--ok); background: var(--ok-soft); }
.chvala--pohar { border-left-color: #d97706; }
.chvala--body { border-left-color: var(--acc-2); }
.chvala svg { width: 15px; height: 15px; vertical-align: -2px; }

/* --------------------------------------------------------------------------
   12. Skladačka — odhalená poučka
   -------------------------------------------------------------------------- */
.chip--select { border-radius: var(--r-full); padding: .45rem .95rem; }
.dnd__stav { margin-top: .8rem; font-size: .85rem; color: var(--ink-3); }
.poucka-odhalena {
  margin-top: .7rem; padding: .8rem 1rem;
  border-radius: var(--r-sm); background: var(--ok-soft);
  border: 1px dashed var(--ok);
  animation: odhalenie .5s var(--ease);
}
@keyframes odhalenie { from { opacity: 0; transform: scale(.97); } }
.poucka-odhalena__l {
  display: block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ok); font-weight: 700; margin-bottom: .3rem;
}
.poucka-odhalena p { font-size: 1rem; line-height: 1.6; font-weight: 500; }
.poucka-tip { margin-top: .5rem; font-size: .84rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   13. Doplňovačka
   -------------------------------------------------------------------------- */
.dopln { display: grid; gap: 1.1rem; }
.dopln__hlava { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dopln__pocet { font-size: .82rem; color: var(--ink-3); }
.dopln__veta {
  font-size: clamp(1.02rem, 2.4vw, 1.22rem); line-height: 1.9;
  padding: 1.1rem 1.3rem; border-radius: var(--r);
  background: var(--bg-3); border: 1px solid var(--line);
}
.dopln__medzera {
  display: inline-block; min-width: 110px; padding: .05rem .5rem; margin: 0 .15rem;
  text-align: center; font-weight: 700; color: var(--acc);
  border-bottom: 2.5px solid var(--acc); border-radius: 4px 4px 0 0;
  background: var(--acc-soft);
}
.dopln__medzera.is-ok { color: var(--ok); border-bottom-color: var(--ok); background: var(--ok-soft); }
.dopln__medzera.is-bad { color: var(--ok); border-bottom-color: var(--ok); background: var(--ok-soft); }
.dopln__moznosti { display: flex; gap: .55rem; flex-wrap: wrap; }
.dopln__moznost {
  padding: .6rem 1.1rem; font: inherit; font-size: .95rem; font-weight: 600;
  border-radius: var(--r-full); cursor: pointer;
  background: var(--surface-solid); border: 1.5px solid var(--line-strong);
  color: var(--ink); transition: all .18s var(--ease);
}
.dopln__moznost:hover:not(:disabled) { border-color: var(--acc); color: var(--acc); transform: translateY(-2px); }
.dopln__moznost:disabled { cursor: default; }
.dopln__moznost.is-correct { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.dopln__moznost.is-wrong { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.dopln__moznost.is-muted { opacity: .4; }

/* --------------------------------------------------------------------------
   14. Tajnička
   -------------------------------------------------------------------------- */
.tajnicka { display: grid; gap: 1rem; }
.tajnicka__hlava { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.tajnicka__hlava h3 { font-family: var(--font-display); font-size: 1.15rem; margin: .4rem 0 .2rem; }
.tajnicka__hlava p { color: var(--ink-2); font-size: .9rem; max-width: 56ch; line-height: 1.6; }
.tajnicka__tip { font-size: .84rem; color: var(--ink-3); }
.tajnicka__riadky { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; overflow-x: auto; }
.tajnicka__riadok { display: flex; align-items: center; gap: .7rem; }
.tajnicka__mriezka {
  display: flex; gap: 3px; flex: 0 0 auto;
  margin-left: calc(var(--posun, 0) * 30px);
}
.tajnicka__pole {
  width: 27px; height: 32px; padding: 0; text-align: center;
  font: inherit; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  text-transform: uppercase;
  border: 1.5px solid var(--line-strong); border-radius: 5px;
  background: var(--bg-2); color: var(--ink);
}
.tajnicka__pole:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; }
.tajnicka__pole.is-kluc { background: var(--acc-soft); border-color: var(--acc); border-width: 2px; }
.tajnicka__pole.is-ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.tajnicka__pole.is-bad { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.tajnicka__otazka { font-size: .87rem; color: var(--ink-2); line-height: 1.4; }
.tajnicka__vysledok {
  margin-top: .7rem; padding: .8rem 1rem; border-radius: var(--r-sm);
  background: var(--surface-solid); text-align: center;
}
.tajnicka__vysledok span {
  display: block; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-3);
}
.tajnicka__vysledok b {
  font-family: var(--font-display); font-size: 1.8rem;
  letter-spacing: .25em; color: var(--acc);
}
@media (max-width: 720px) {
  .tajnicka__riadok { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .tajnicka__mriezka { margin-left: 0; order: 2; }
  .tajnicka__otazka { order: 1; }
  .tajnicka__pole { width: 24px; height: 29px; font-size: .85rem; }
}

/* --------------------------------------------------------------------------
   15. Testy
   -------------------------------------------------------------------------- */
.test-hlava {
  display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
  position: sticky; top: var(--nav-h); z-index: 20;
  padding: .75rem 1.1rem; margin-bottom: 1rem; border-radius: var(--r-sm);
  background: var(--surface-solid); border: 1px solid var(--acc);
  box-shadow: var(--sh-2); font-size: .88rem;
}
.test-hlava b { font-family: var(--font-display); }
.test-otazka {
  padding: 1.1rem 1.3rem; margin-bottom: .8rem; border-radius: var(--r);
  background: var(--surface-solid); border: 1px solid var(--line);
}
.test-otazka.je-chyba { border-color: var(--bad); background: var(--bad-soft); }
.test-otazka h3 { font-size: 1rem; margin-bottom: .8rem; line-height: 1.5; display: flex; gap: .5rem; }
.test-otazka h3 span { color: var(--acc); font-family: var(--font-display); flex: 0 0 auto; }
.test-moznosti { display: grid; gap: .45rem; }
.test-moznost {
  display: flex; gap: .6rem; align-items: flex-start; cursor: pointer;
  padding: .6rem .85rem; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--bg-2);
  font-size: .93rem; line-height: 1.5; transition: border-color .16s, background .16s;
}
.test-moznost:hover { border-color: var(--acc); }
.test-moznost.is-vybrana { border-color: var(--acc); background: var(--acc-soft); font-weight: 600; }
.test-moznost input { margin-top: .25rem; accent-color: var(--acc); }
.test-pata {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: 1.2rem;
}
#testVarovanie { color: var(--bad); font-size: .9rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   16. Úvodná stránka — učiteľ
   -------------------------------------------------------------------------- */
.ucitel-karta {
  position: relative; z-index: 1;
  display: grid; gap: clamp(1.2rem, 4vw, 2.2rem); align-items: center;
  grid-template-columns: 1fr;
  padding: clamp(1.3rem, 4vw, 2.2rem); border-radius: var(--r-lg);
  background: var(--surface-solid); border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}
@media (min-width: 780px) { .ucitel-karta { grid-template-columns: 220px 1fr; } }
.ucitel-karta__foto { display: grid; place-items: center; }
.ucitel-karta__foto img {
  width: 200px; height: 200px; object-fit: cover; border-radius: var(--r-lg);
  border: 3px solid var(--acc-soft); box-shadow: var(--sh-2);
}
.ucitel-karta__ikona {
  width: 160px; height: 160px; border-radius: var(--r-lg);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--acc-soft), transparent);
  color: var(--acc);
}
.ucitel-karta__ikona svg { width: 80px; height: 80px; }
.ucitel-karta h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: .3rem 0 .2rem; }
.ucitel-karta__rola { color: var(--acc); font-weight: 600; font-size: .95rem; margin-bottom: .8rem; }
.ucitel-karta__bio { color: var(--ink-2); line-height: 1.75; font-size: .96rem; }
.ucitel-karta__cisla { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1.1rem; }
.ucitel-karta__pozdrav {
  margin-top: 1.1rem; font-family: var(--font-display); font-size: 1.05rem;
  color: var(--acc); font-weight: 600;
}

/* --------------------------------------------------------------------------
   17. Pätička — kontakt
   -------------------------------------------------------------------------- */
.footer__kontakt {
  display: flex; gap: 1.2rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: 2rem; padding: 1.2rem 1.4rem;
  border-radius: var(--r); background: var(--brand-soft);
  border: 1px solid var(--line);
}
.footer__kontakt-t b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.footer__kontakt-t p { color: var(--ink-2); font-size: .88rem; margin-top: .2rem; max-width: 58ch; }
/* Odhalený e-mail musí byť čitateľný v oboch režimoch. */
.mail-odhaleny {
  display: inline-block; padding: .55rem 1rem; border-radius: var(--r-full);
  background: var(--brand); color: #ffffff !important; font-weight: 700; font-size: .95rem;
  text-decoration: none; word-break: break-all;
  border: 1px solid transparent;
}
.mail-odhaleny:hover { filter: brightness(1.08); color: #ffffff !important; }
[data-theme="dark"] .mail-odhaleny {
  background: #ffffff; color: #0f172a !important; border-color: rgba(255, 255, 255, .8);
}
[data-theme="dark"] .mail-odhaleny:hover { background: #e8e8f2; color: #0f172a !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mail-odhaleny {
    background: #ffffff; color: #0f172a !important;
  }
}

.footer__hosting a {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--ink-3); text-decoration: none; font-size: .84rem;
}
.footer__hosting a:hover { color: var(--acc); }
.footer__hosting svg { width: 14px; height: 14px; flex: 0 0 14px; }

/* --------------------------------------------------------------------------
   18. Ťahák
   -------------------------------------------------------------------------- */
.tahak-box {
  display: flex; gap: 1.2rem; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-top: 2rem; padding: 1.3rem 1.5rem;
  border-radius: var(--r); background: var(--acc-soft);
  border: 1px dashed var(--acc);
}
.tahak-box b { display: block; font-family: var(--font-display); font-size: 1.08rem; }
.tahak-box p { color: var(--ink-2); font-size: .89rem; margin-top: .25rem; max-width: 60ch; }
.tahak-box__btn { display: flex; gap: .5rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   18a. Ročníky žiaka, zvuky, ťahák a etické upozornenie
   -------------------------------------------------------------------------- */
/* Žiak vidí predvolene len svoj ročník; prepínačom si zobrazí všetky. */
.len-moj-rocnik .nie-moj-rocnik { display: none !important; }

.drawer__rocniky {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: .7rem .9rem; margin-top: .25rem;
  background: var(--acc-soft); border: 1px dashed var(--acc);
  border-radius: var(--r-sm); color: var(--acc);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-align: left;
}
.drawer__rocniky:hover { background: color-mix(in srgb, var(--acc) 18%, transparent); }
#rocnikyBtn.je-aktivny { background: var(--acc-soft); color: var(--acc); }

/* Prepínač zvukov v hlavičke */
#zvukBtn .i-zvuk-off { display: none; }
#zvukBtn.je-vypnuty .i-zvuk-on { display: none; }
#zvukBtn.je-vypnuty .i-zvuk-off { display: block; }
#zvukBtn.je-vypnuty { color: var(--ink-3); opacity: .7; }

/* Ťahák — výber rozsahu */
.tahak-box__t { flex: 1; min-width: 240px; }
.tahak-box__form { display: grid; gap: .75rem; min-width: 260px; }
.tahak-vyber { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.tahak-vyber legend {
  font-size: .78rem; font-weight: 700; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .06em; padding: 0 0 .2rem;
}
.tahak-moznost {
  display: flex; gap: .6rem; align-items: flex-start; cursor: pointer;
  padding: .55rem .8rem; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1.5px solid var(--line);
  transition: border-color .15s, background .15s;
}
.tahak-moznost:hover { border-color: var(--acc); }
.tahak-moznost:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.tahak-moznost input { margin-top: .25rem; accent-color: var(--acc); }
.tahak-moznost b { display: block; font-size: .92rem; }
.tahak-moznost small { color: var(--ink-3); font-size: .8rem; }
.tahak-rocnik { display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.tahak-rocnik span { font-weight: 600; color: var(--ink-2); }
.tahak-rocnik select {
  flex: 1; padding: .5rem .7rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--ink);
}

/* Upozornenie pre učiteľa nad výsledkami žiakov */
.admin-card--etika { border-color: var(--warn); background: var(--warn-soft); }
.etika { display: flex; gap: 1.1rem; align-items: flex-start; }
.etika__ico { flex: 0 0 76px; width: 76px; }
.etika__t b { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .4rem; }
.etika__t p { color: var(--ink-2); font-size: .92rem; line-height: 1.65; }
.etika__t ul { margin: .6rem 0 .6rem 1.1rem; display: grid; gap: .3rem; }
.etika__t li { color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.etika__gdpr { font-size: .85rem !important; color: var(--ink-3) !important; }
@media (max-width: 560px) {
  .etika { flex-direction: column; }
  .etika__ico { flex-basis: 60px; width: 60px; }
}

/* Doodles v pätičke */
.footer { position: relative; }
.footer .wrap { position: relative; z-index: 1; }
.doodles--pata { opacity: .32; }

/* --------------------------------------------------------------------------
   18b. Konfety, oslavy a maskot
   -------------------------------------------------------------------------- */
.konfety {
  position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden;
}
.konfeta {
  position: absolute; top: -18px; width: 9px; height: 14px; border-radius: 2px;
  animation: konfetaPad linear forwards;
}
.konfeta--kruh { width: 9px; height: 9px; border-radius: 50%; }
.konfeta--pas { width: 5px; height: 18px; border-radius: 3px; }
@keyframes konfetaPad {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate3d(var(--posun, 0), 105vh, 0) rotate(var(--otoc, 360deg)); opacity: 0; }
}

.oslava {
  position: fixed; left: 50%; top: 38%; z-index: 310;
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  display: grid; justify-items: center; gap: .3rem;
  padding: 1.1rem 1.8rem; border-radius: var(--r-lg);
  background: var(--surface-solid); border: 2px solid var(--acc);
  box-shadow: var(--sh-3); pointer-events: none; text-align: center;
}
.oslava.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity .25s, transform .45s var(--ease);
}
.oslava__e { font-size: 2.6rem; line-height: 1; animation: oslavaSkok .6s var(--ease) 2; }
.oslava b { font-family: var(--font-display); font-size: 1.1rem; color: var(--acc); }
@keyframes oslavaSkok { 50% { transform: translateY(-9px) rotate(-8deg); } }

/* Maskot — kamarát Kvark */
.maskot { display: block; width: 100%; height: auto; overflow: visible; }
.maskot__telo { fill: var(--acc-soft); stroke: var(--acc); stroke-width: 2.4; }
.maskot__ciara { fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; }
.maskot__oko { fill: var(--ink); }
.maskot__lice { fill: var(--acc); opacity: .28; }
.maskot-box {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1.2rem; border-radius: var(--r);
  background: var(--acc-soft); border: 1px dashed var(--acc);
}
.maskot-box__ico { flex: 0 0 74px; width: 74px; }
.maskot-box__t b { display: block; font-family: var(--font-display); font-size: 1rem; }
.maskot-box__t p { color: var(--ink-2); font-size: .89rem; line-height: 1.6; margin-top: .15rem; }
.maskot--kyv { animation: maskotKyv 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes maskotKyv { 50% { transform: rotate(3.5deg) translateY(-3px); } }

.empty .maskot-box { border-style: solid; }

.auth-card__maskot { width: 108px; margin: 0 auto 1rem; }

.maskot-uvod {
  display: flex; gap: 1.1rem; align-items: center; margin-bottom: var(--gap);
  padding: 1.1rem 1.3rem; border-radius: var(--r);
  background: linear-gradient(120deg, var(--acc-soft), transparent);
  border: 1px solid var(--acc-soft);
}
.maskot-uvod__ico { flex: 0 0 84px; width: 84px; }
.maskot-uvod__t b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.maskot-uvod__t p { color: var(--ink-2); font-size: .93rem; line-height: 1.65; margin-top: .2rem; }
@media (max-width: 560px) {
  .maskot-uvod, .maskot-box { flex-direction: column; text-align: center; gap: .7rem; }
  .maskot-uvod__ico { flex-basis: 70px; width: 70px; }
  .maskot-box__ico { flex-basis: 64px; width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .konfety { display: none; }
  .maskot--kyv, .oslava__e { animation: none; }
}

/* --------------------------------------------------------------------------
   18c. Lišta o súkromí
   -------------------------------------------------------------------------- */
.suhlas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 260;
  padding: var(--pad);
  background: var(--surface-solid);
  border-top: 2px solid var(--acc);
  box-shadow: 0 -18px 40px -20px rgba(15, 23, 42, .35);
  animation: suhlasPrichod .45s var(--ease);
}
@keyframes suhlasPrichod { from { transform: translateY(100%); } }
.suhlas[hidden] { display: none !important; }
.suhlas__obal {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap;
}
.suhlas__maskot { flex: 0 0 62px; width: 62px; }
.suhlas__text { flex: 1; min-width: 260px; }
.suhlas__text b { display: block; font-family: var(--font-display); font-size: 1rem; }
.suhlas__text p { color: var(--ink-2); font-size: .88rem; line-height: 1.6; margin-top: .25rem; }
.suhlas__odkaz { font-size: .84rem !important; }
.suhlas__tlacidla { display: flex; gap: .5rem; flex-wrap: wrap; flex: 0 0 auto; }

.suhlas-prepnut {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 120;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .8rem; border-radius: var(--r-full);
  background: var(--surface-solid); border: 1px solid var(--line);
  color: var(--ink-3); font: inherit; font-size: .78rem; cursor: pointer;
  box-shadow: var(--sh-1); opacity: .75; transition: opacity .2s, color .2s;
}
.suhlas-prepnut:hover { opacity: 1; color: var(--acc); border-color: var(--acc); }
.suhlas-prepnut[hidden] { display: none !important; }
.suhlas-prepnut svg { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .suhlas__maskot { display: none; }
  .suhlas__tlacidla { width: 100%; }
  .suhlas__tlacidla .btn { flex: 1; justify-content: center; }
  .suhlas-prepnut span { display: none; }
  .suhlas-prepnut { padding: .5rem; }
}
@media print { .suhlas, .suhlas-prepnut { display: none !important; } }

/* --------------------------------------------------------------------------
   19. Responzivita — malé displeje
   -------------------------------------------------------------------------- */

/* Záložky sa na mobile zalomia do mriežky. Predtým sa vodorovne rolovali
   a z piatich modulov boli vidieť len dva. */
@media (max-width: 760px) {
  .tabs, .tabs--admin, .tabs--rocniky {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem; overflow: visible; padding-bottom: 0;
  }
  .tab {
    justify-content: center; text-align: center;
    padding: .6rem .5rem; font-size: .84rem;
    border-radius: var(--r-sm); border-bottom: 0;
    background: var(--bg-3); white-space: normal; line-height: 1.25;
    min-height: 44px;
  }
  .tab[aria-selected="true"] {
    background: var(--acc); color: var(--acc-ink); border-bottom: 0;
  }
  .tab[aria-selected="true"] .tab__n { background: rgba(255, 255, 255, .25); color: inherit; }
  .tab svg { flex: 0 0 15px; width: 15px; height: 15px; }
  .tabs--rocniky { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .tab { font-size: .78rem; padding: .55rem .35rem; }
  .tab svg { display: none; }
}

/* Tabuľky: jasne naznač, že sa dajú posunúť do strany. */
.tbl-wrap, .table-wrap {
  position: relative;
  background-image:
    linear-gradient(to right, var(--surface-solid) 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to left, var(--surface-solid) 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(15, 23, 42, .16), rgba(15, 23, 42, 0)),
    linear-gradient(to left, rgba(15, 23, 42, .16), rgba(15, 23, 42, 0));
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 36px 100%, 36px 100%, 14px 100%, 14px 100%;
  background-attachment: local, local, scroll, scroll;
}
@media (max-width: 760px) {
  .tbl-wrap::after, .table-wrap::after {
    content: "◂ posuň do strany ▸";
    display: block; text-align: center; padding: .35rem 0 .5rem;
    font-size: .72rem; color: var(--ink-3); letter-spacing: .04em;
    position: sticky; left: 0;
  }
}

/* Drobnosti, ktoré sa na úzkych displejoch tlačili. */
@media (max-width: 560px) {
  .dnd__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .dnd__actions .chip--select { grid-column: 1 / -1; width: 100%; }
  .dnd__actions .btn { width: 100%; justify-content: center; }
  .dopln__moznosti { display: grid; grid-template-columns: 1fr; }
  .dopln__moznost { width: 100%; }
  .dopln__medzera { min-width: 82px; }
  .qbreak { grid-template-columns: repeat(2, 1fr) !important; }
  .footer__kontakt, .tahak-box { flex-direction: column; align-items: flex-start; }
  .tahak-box__btn { width: 100%; }
  .tahak-box__btn .btn { width: 100%; justify-content: center; }
  .export-riadok .btn { width: 100%; justify-content: center; }
  .lb__row { gap: .55rem; padding: .7rem .8rem; }
  .lb__pos { width: 30px; flex-basis: 30px; font-size: 1rem; }
  .lb__pos--1, .lb__pos--2, .lb__pos--3 { font-size: 1.3rem; }
  .lb__meno b { font-size: .9rem; }
  .lb__meno small { font-size: .74rem; }
  .test-hlava { flex-direction: column; gap: .3rem; font-size: .82rem; }
  .test-pata { flex-direction: column; align-items: stretch; }
  .test-pata .btn { width: 100%; justify-content: center; }
  .body-pop { right: .75rem; left: .75rem; bottom: 4.5rem; }
  .znamka--velka { width: 76px; height: 76px; font-size: 2.4rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .admin-card { padding: 1rem .9rem; }
  .prepinac__t small { font-size: .8rem; }
}

/* Dlhé slová a odkazy nesmú roztiahnuť stránku. */
.prose, .lesson__t, .mapa__uzol, .dopln__veta, .lb__meno,
.chyba, .admin-hint, .tbl td, .udaje { overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   20. Tlač
   -------------------------------------------------------------------------- */
@media print {
  .doodles, .edit-overlay, .fyz-ceruzka, .body-pop, .tahak-box, .footer__kontakt,
  .dash-cards, .level-card, .tabs--admin, .tabs--rocniky { display: none !important; }
  .admin-card, .lb__row { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .tbl { min-width: 0; font-size: 9pt; }
}
