/* Styly světa Učilandu (site/svet/index.html). Odkaz nese razítko ?v=<otisk>: po změně spusť python3 agent/razitko.py (podnět 482). */
/* Layout: one dusk-sky world (deliberately one theme). Home = your floating island at the top, game islands zig-zag down the sky joined by bridges
   (so new games just extend the column), then the school-year journey, today's missions and the streak. Bottom bar: Ostrov / Výprava / Šatník / Účet. */
:root {
  color-scheme: dark;
  --sky: #2E2A6E; --sky-2: #3B3690; --sky-3: #4E47A8; --ink: #1B1840; --text: #FFFFFF; --muted: #C3BEF0;
  --grass: #6FD16B; --dirt: #9C6B3F; --dirt-2: #84592F; --dirt-3: #6E4826; --gold: #FFC93C; --gold-2: #C9921A;
  --paper: #FFFFFF; --paper-ink: #1B1840; --paper-muted: #5B5880; --line: #E4E1F5; --accent: #6B5FD0; --fire: #FFB066; --ok: #2F8A33; --bad: #E5484D;
  --f-display: "Paytone One", "Arial Black", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--sky); color: var(--text); font-family: var(--f-body); font-weight: 700; font-size: 16px; -webkit-tap-highlight-color: transparent;
  padding-left: max(0px, env(safe-area-inset-left, 0px)); padding-right: max(0px, env(safe-area-inset-right, 0px)); }
/* pojistka: na iPhonu nesmí jít aplikace posunout do strany, ani když něco přeteče (R12 to hlídá zvlášť) */
html, body { overflow-x: clip; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.app { max-width: 520px; margin: 0 auto; padding-bottom: 16px; }
.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.05; text-wrap: balance; }
.lab-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 10px 0 0; }

/* top bar */
.top { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.me-btn { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 0; background: var(--gold); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--sky-3); padding: 0; overflow: hidden; }
.who { flex: 1; min-width: 0; }
.who b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 18px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpbar { margin-top: 6px; height: 9px; border-radius: 5px; background: var(--sky-3); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--grass); width: 0; transition: width .6s; }
.who small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); font-weight: 700; }
.pill { background: var(--sky-3); border-radius: 999px; padding: 6px 10px; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.brick-i { width: 18px; height: 11px; vertical-align: -1px; background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 33% 0 / 2px 50% no-repeat, linear-gradient(var(--ink), var(--ink)) 70% 100% / 2px 50% no-repeat, var(--gold); border: 2px solid var(--ink); border-radius: 2px; display: inline-block; box-sizing: border-box; }
.pill .brick { width: 20px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) 33% 0 / 2px 50% no-repeat, linear-gradient(var(--ink), var(--ink)) 70% 100% / 2px 50% no-repeat, var(--gold); border: 2px solid var(--ink); border-radius: 2px; display: inline-block; box-sizing: border-box; }
.pill.fire { color: var(--fire); }

/* sky scene */
.sky { position: relative; margin-top: 8px; overflow: hidden; }
.cloud { position: absolute; height: 14px; background: var(--sky-3); opacity: .9; }
.cloud::before { content: ""; position: absolute; left: 25%; top: -10px; width: 45%; height: 10px; background: inherit; }
.star { position: absolute; width: 4px; height: 4px; background: #FFFFFF; opacity: .8; }
/* období a svátky: barva trávy a padající sníh, listí, okvětní lístky… (data-obdobi na <html>) */
html[data-obdobi="zima"] { --grass: #F2F7FF; --sky: #263070; }
html[data-obdobi="jaro"] { --grass: #7EE06A; }
html[data-obdobi="leto"] { --grass: #5DCB4E; --sky: #2C2E78; }
html[data-obdobi="podzim"] { --grass: #D8A23A; }
/* ---------- zima na Ostrově (Martin 29. 11.: od 1. adventní neděle do konce února, data-vanoce advent až Štěpán) ---------- */
html[data-obdobi="zima"] { --sky: #1F2A63; --sky-2: #2B3A7A; --sky-3: #3A4C92; }
html[data-obdobi="zima"] .home-main::before { content: ""; position: fixed; left: -10%; right: -10%; top: -40px; height: 260px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 50% at 30% 40%, rgba(80, 230, 190, .2), transparent 70%), radial-gradient(50% 45% at 70% 30%, rgba(120, 170, 255, .18), transparent 70%); filter: blur(6px); }
/* tráva souostroví a přiblíženého souostroví v zimě zasněžená (jinak zelená natvrdo), závěj a rampouchy pod okrajem */
html[data-obdobi="zima"] .arch .ag { background: #F4F8FF; height: 24px; top: 106px; border-radius: 14px 14px 10px 10px; box-shadow: inset 0 -5px 0 #D5E2F5; }
html[data-obdobi="zima"] .arch .ar { background: linear-gradient(180deg, #9A7B5C 0, #8B6B4A 30%, #7A5C3E 100%); }
html[data-obdobi="zima"] .area-land { background: #EAF1FB; }
html[data-obdobi="zima"] .area-land i { background: #D3E1F3; }
html[data-obdobi="zima"] .arch .ag::after, html[data-obdobi="zima"] .home-isle .ground::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 100%; height: 11px; margin-top: 2px; pointer-events: none;
  background: conic-gradient(from 155deg at 50% 0, #CFEFFF 50deg, transparent 0) 0 0 / 12px 11px repeat-x; }
html[data-obdobi="zima"] .home-isle .ground { position: relative; }
html[data-obdobi="zima"] .home-isle .ground::after { top: 30%; left: 18%; right: 18%; }
html[data-obdobi="zima"] .arch .ab { z-index: 1; }
html[data-obdobi="zima"] .arch .ab::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -10px; height: 16px; z-index: 2; pointer-events: none;
  background: radial-gradient(13px 9px at 50% 100%, #FFFFFF 96%, transparent 100%) 0 100% / 26px 16px repeat-x; }
html[data-obdobi="zima"] .arch-path path { stroke: rgba(235, 243, 255, .55); stroke-width: 7; stroke-dasharray: 3 11; }
/* sněhulák a stromeček u domova (stojí na trávě) */
.zdeco { position: absolute; bottom: calc(100% - 10px); z-index: 2; pointer-events: none; line-height: 0; }
.zdeco.zd-l { left: -30px; } .zdeco.zd-r { right: -26px; }
.zdeco .sv { animation: zsv 1.6s steps(2) infinite; } .zdeco .sv:nth-child(2n) { animation-delay: .8s; }
@keyframes zsv { 50% { opacity: .45; } }
/* advent a Vánoce: světýlka po okraji ostrovů, třpyt na sněhu */
html[data-vanoce] .arch .ag::before, html[data-vanoce] .area-land::before { content: ""; position: absolute; left: 8px; right: 8px; top: -7px; height: 10px; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at 6px 5px, #FF5A5A 0 3.5px, transparent 4px) 0 0 / 48px 10px repeat-x, radial-gradient(circle at 18px 5px, #FFD34D 0 3.5px, transparent 4px) 0 0 / 48px 10px repeat-x,
    radial-gradient(circle at 30px 5px, #5AD1FF 0 3.5px, transparent 4px) 0 0 / 48px 10px repeat-x, radial-gradient(circle at 42px 5px, #7CFF7A 0 3.5px, transparent 4px) 0 0 / 48px 10px repeat-x;
  filter: drop-shadow(0 0 4px rgba(255, 220, 120, .9)); animation: zsv 1.6s steps(2) infinite; }
html[data-vanoce] .area-land::before { top: 4px; left: 40px; right: 40px; }
.trpyt { position: absolute; width: 8px; height: 8px; pointer-events: none; z-index: 3; background: #FFFFFF; opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: ztrp 3s ease-in-out infinite; }
@keyframes ztrp { 0%, 70%, 100% { opacity: 0; transform: scale(.4); } 82% { opacity: 1; transform: scale(1.2); } }
/* padající sníh: vrstva přes sloupec mapy (snihVrstva v index.html); vzadu za ostrovy, vpředu pár velkých vloček, lišta a karty nad ním */
.snehv { position: fixed; top: 0; bottom: 0; left: 0; width: 100%; pointer-events: none; overflow: hidden; }
.snehv.zadni { z-index: -1; } .snehv.predni { z-index: 2; }
#home .top, #home .home-main > .pad, #home .home-side { position: relative; z-index: 3; }
#home:has(.sky.as-list) .snehv { display: none; }
.snehv i { position: absolute; top: -34px; border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0 42%, rgba(255, 255, 255, .7) 60%, rgba(255, 255, 255, 0) 72%);
  animation: zsnih var(--d) linear infinite; animation-delay: var(--dl); will-change: transform; }
.snehv i.kr { background: none; border-radius: 0; filter: drop-shadow(0 0 4px rgba(200, 230, 255, .8)); }
.snehv i.kr b { display: block; line-height: 0; animation: ztoc var(--rot) linear infinite; }
@keyframes zsnih { 0% { transform: translate(0, 0); } 25% { transform: translate(var(--sw), 25vh); } 50% { transform: translate(0, 50vh); } 75% { transform: translate(calc(var(--sw) * -1), 75vh); } 100% { transform: translate(0, calc(100vh + 70px)); } }
@keyframes ztoc { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .snehv, .trpyt { display: none; } .zdeco .sv, html[data-vanoce] .arch .ag::before, html[data-vanoce] .area-land::before { animation: none; } }
.fx { position: absolute; top: -40px; pointer-events: none; z-index: 0; line-height: 1; animation: fxfall var(--d, 14s) linear infinite; animation-delay: var(--dl, 0s); opacity: .9; }
/* sníh (Martin 10. 11.: „padající sníh nepřipomíná sníh“, byly to bílé otáčející se čtverečky): kulaté měkké vločky,
   menší padají pomaleji a jsou slabší (hloubka), cestou se pohupují do stran; každá čtvrtá je větší šesticípá vločka */
.fx.flake { border-radius: 50%; background: radial-gradient(circle, #FFFFFF 0 45%, rgba(255,255,255,.75) 60%, rgba(255,255,255,0) 72%);
  box-shadow: 0 0 6px rgba(255,255,255,.55); animation-name: fxsnow; animation-timing-function: ease-in-out; }
.fx.flake6 { animation-name: fxsnow6; animation-timing-function: ease-in-out; filter: drop-shadow(0 0 3px rgba(255,255,255,.6)); }
@keyframes fxsnow {
  0% { transform: translate(0, 0); }
  25% { transform: translate(var(--sw, 12px), calc(var(--fh, 900px) * .25)); }
  50% { transform: translate(calc(var(--dx, 0px) * .5), calc(var(--fh, 900px) * .5)); }
  75% { transform: translate(calc(var(--dx, 0px) * .75 - var(--sw, 12px)), calc(var(--fh, 900px) * .75)); }
  100% { transform: translate(var(--dx, 0px), var(--fh, 900px)); } }
@keyframes fxsnow6 {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(calc(var(--dx, 0px) * .5 + var(--sw, 12px)), calc(var(--fh, 900px) * .5)) rotate(90deg); }
  100% { transform: translate(var(--dx, 0px), var(--fh, 900px)) rotate(180deg); } }
@keyframes fxfall { from { transform: translate(0, 0) rotate(0); } to { transform: translate(var(--dx, 20px), var(--fh, 900px)) rotate(var(--r, 180deg)); } }
@media (prefers-reduced-motion: reduce) { .fx { animation: none; top: var(--y0, 10%); } }
.hdeco { position: absolute; font-size: 30px; line-height: 1; z-index: 2; pointer-events: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
.ideco { position: absolute; right: 6px; top: 48px; font-size: 22px; line-height: 1; z-index: 2; pointer-events: none; filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)); }
/* novinky: co agent nebo tatínek přidal (site/novinky/<datum>-<HHMMSS>-<název>.json) */
.news { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--sky-2); color: var(--text); border: 2px solid rgba(255,255,255,.18); border-radius: 18px; padding: 10px 12px; margin-top: 10px; position: relative; }
.news.fresh { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,201,60,.18); }
.news-tag { position: absolute; top: -9px; left: 12px; background: var(--gold); color: var(--ink); font: 900 10px/1 var(--f-body); letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; }
.news:not(.fresh) .news-tag { background: var(--sky-3); color: var(--text); }
.news-ic { font-size: 28px; line-height: 1; flex: none; }
.news-tx { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; font-weight: 800; }
.news-tx small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1px; }
.news-go { flex: none; background: rgba(255,255,255,.12); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 900; }
.nlist { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; max-height: 60vh; overflow: auto; }
.nday { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--paper-muted); margin-top: 6px; }
/* velká novinka (Martin 19. 11.: „v těch novinkách by to mělo být výraznější“): rámeček v barvě ostrova a větší nadpis */
.nitem.nbig { border: 2px solid var(--accent); background: #FFF8E1; }
.nitem.nbig .nh { display: block; font: 17px var(--f-display, "Paytone One", sans-serif); margin-bottom: 2px; }
.nitem.nbig a { background: var(--accent); color: #17204A; border-radius: 12px; padding: 8px 12px; text-decoration: none; }
.nitem { display: flex; align-items: center; gap: 10px; background: #F4F2FF; border-radius: 14px; padding: 10px; }
.nitem .ic { font-size: 26px; line-height: 1; flex: none; }
.nitem .nic { flex: none; width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 12px; background: #FFD12E; display: grid; place-items: center; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.nitem .nic.bld-ic { position: relative; }
.nitem .nic.bld-ic > span { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%) scale(.5); transform-origin: 50% 100%; display: flex; align-items: flex-end; }
.nlist { scrollbar-width: thin; scrollbar-color: #B8B4E0 transparent; }
.nitem .tx { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: var(--paper-ink); }
.nitem a { flex: none; background: var(--gold); color: var(--ink); text-decoration: none; font-weight: 900; font-size: 13px; border-radius: 999px; padding: 7px 12px; border-bottom: 3px solid var(--gold-2); }
.dtom { opacity: .9; }
.dshadow { background: #2E2A6E !important; border-radius: 12px; display: grid; place-items: center; font-size: 22px; filter: drop-shadow(0 0 6px rgba(255,201,60,.5)); }
.mosty { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.mosty path { fill: none; }
.mosty .m-ghost { stroke: rgba(201, 163, 107, .38); stroke-width: 10; stroke-dasharray: 5 5; }
.mosty .m-ghost.lock { stroke: rgba(195, 190, 240, .18); }
.mosty .m-rope { stroke: #6B4423; stroke-width: 2.5; transform: translateY(-7px); }
.mosty .m-ink { stroke: #1B1840; stroke-width: 15; }
.mosty .m-plank { stroke: #C08A52; stroke-width: 10; }
html[data-obdobi="zima"] .mosty .m-plank { stroke: #C9935C; }
@media (prefers-reduced-motion: no-preference) {
  .mosty .m-new { animation: mPlank .5s cubic-bezier(.2, 1.6, .4, 1) both; transform-box: fill-box; transform-origin: center; }
  @keyframes mPlank { from { opacity: 0; transform: translateY(-14px); } }
}
.isle { position: absolute; width: 150px; display: flex; flex-direction: column; align-items: center; border: 0; background: none; padding: 0; }
.isle .bld { min-height: 64px; display: flex; align-items: flex-end; justify-content: center; }
.layer { border: 3px solid var(--ink); border-top: 0; }
.isle .label { margin-top: 6px; font-size: 12px; line-height: 1.25; background: var(--ink); padding: 3px 8px; max-width: 160px; text-align: center; text-wrap: balance; }
.isle .label em { font-style: normal; color: var(--gold); }
.isle.ghost .bld, .isle.ghost .ground { opacity: .5; }
.isle.ghost .ground > div { background: transparent !important; border-color: var(--gold) !important; border-style: dashed !important; }
.isle.locked .bld, .isle.locked .ground { opacity: .35; filter: grayscale(.7); }
.isle .lockb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 30px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.4)); }
.isle .bld { position: relative; }
.grow.locked .gic { opacity: .45; filter: grayscale(.7); }
.guestcard .hb { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.guestcard .hb .cta { flex: 1 1 200px; }
.guestcard .gl { background: none; border: 0; color: var(--paper-muted); font: 800 14px/1.2 var(--f-body); padding: 10px 4px; cursor: pointer; text-decoration: underline; }
body.offline::after { content: "Jsi offline · hry jdou hrát, kola se uloží v telefonu a odešlou se později"; position: fixed; left: 0; right: 0; top: 0; z-index: 30; background: var(--gold); color: var(--ink); font: 400 12px/1.3 var(--f-display); text-align: center; padding: calc(4px + env(safe-area-inset-top, 0px)) 12px 4px; }
.isle .newb, .grow .newb { background: var(--gold); color: var(--ink); font: 400 10px/1 var(--f-display); letter-spacing: .04em; padding: 4px 7px; border-radius: 999px; }
.isle .newb { position: absolute; top: 2px; right: 4px; z-index: 3; transform: rotate(8deg); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.grow .newb { margin-left: 6px; vertical-align: middle; }
.isle .multi { margin-top: 4px; background: var(--gold); color: var(--ink); font: 400 11px/1 var(--f-display); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.mtag { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 12px; padding: 3px 9px; border-radius: 999px; margin-left: 6px; vertical-align: 3px; }
.chal { border: 0; border-radius: 10px; padding: 6px 9px; background: var(--gold); color: var(--ink); font: 400 13px var(--f-display); cursor: pointer; margin-left: 6px; }
.cont { position: relative; display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; margin-top: 12px; background: var(--gold); color: var(--ink); border-radius: 18px; padding: 10px 14px 10px 8px; text-decoration: none; border-bottom: 5px solid var(--gold-2); }
.cont:active { transform: translateY(2px); border-bottom-width: 3px; }
.cont-bld { width: 60px; height: 50px; display: grid; place-items: center; overflow: hidden; }
.cont-bld .bld { transform: scale(.6); display: flex; align-items: flex-end; }
.cont-t { display: flex; flex-direction: column; min-width: 0; }
.cont-t small { font: 400 11px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.cont-t b { font-size: 18px; line-height: 1.2; }
.cont-t span { font-size: 12px; font-weight: 700; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-go { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-size: 18px; }
.cont.most { background: var(--card, #fff); border-bottom-color: var(--gold-2); grid-template-columns: 60px 1fr auto auto; }
.cont.most .most-cihly { font-size: 13px; font-weight: 800; opacity: .8; }
.cont.most.hotovo { background: #DFF5E3; }
.most-say { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 20px; }
@keyframes mostKyv { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.cont.most:not(.hotovo) .cont-bld { animation: mostKyv 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cont.most .cont-bld { animation: none !important; } }
.hrajdal { position: relative; display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; margin: 4px 0 10px; }
.hrajdal .cont { margin-top: 0; min-height: 64px; }
.hrajdal .cont-t b { font-size: 17px; }
.hrajdal .most-say { display: grid; place-items: center; }
.dpet .most-say { display: grid; place-items: center; flex: none; }
.hrajdal .most-say .aic { stroke: #fff; }
.cont-alt { display: inline-block; margin: 8px 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
/* řádek nad mapou: přepínač třídy a mapa/seznam vždy nahoře, „kdo hraje“ případně na dalším řádku */
.mapbar .gtog { order: 0; } .mapbar .nowpill { order: 1; } .mapbar .mb-sp { order: 2; } .mapbar .vtog { order: 3; }
@media (max-width: 560px) { .mapbar .nowpill { order: 4; } }
.mapbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; position: relative; }
@media (max-width: 400px) { .gtog button { padding: 8px 9px; } }
.mapbar .mb-sp { flex: 1; }
.mapbar { min-width: 0; } .mapbar > * { min-width: 0; }
@media (max-width: 520px) { .srch .srt { display: none; } .srch { padding: 8px 11px; } }
.srch { flex: none; border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--text); font: 800 13px/1 var(--f-body); padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.sq { display: flex; gap: 8px; } .sq input { flex: 1; min-width: 0; font: 700 17px var(--f-body); padding: 12px 14px; border-radius: 14px; border: 2px solid var(--paper-line, #DDD6C8); background: #fff; color: var(--paper-ink); }
.sq button { flex: none; min-width: 48px; min-height: 48px; border: 0; border-radius: 14px; font: 800 18px var(--f-body); cursor: pointer; }
.sq .mic { background: #EEE8FF; } .sq .mic.on { background: #FF6B6B; color: #fff; animation: micp 1s ease-in-out infinite alternate; } .sq .go { background: var(--gold, #FFC93C); color: #1B1840; padding: 0 14px; }
@keyframes micp { to { transform: scale(1.08); } }
.sex { display: flex; flex-wrap: wrap; gap: 6px; } .sex button { border: 0; border-radius: 999px; background: #F1ECFF; color: #3A3390; font: 700 13px var(--f-body); padding: 7px 11px; cursor: pointer; }
.sres { display: flex; flex-direction: column; gap: 8px; } .sres .sh { font-weight: 800; color: var(--paper-ink); }
.sgame { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #EEE8DC; border-radius: 16px; padding: 10px 12px; text-decoration: none; color: var(--paper-ink); }
.sgame .sic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; font-size: 24px; overflow: hidden; position: relative; }
.sgame .sic .bld { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scale(.55); transform-origin: 50% 100%; } /* Martin 13. 11.: ikona přes text */
.sgame b { display: block; font: 800 16px var(--f-body); } .sgame small { display: block; font: 600 13px var(--f-body); color: var(--paper-muted); } .sgame .why { color: #2E7D4F; font-weight: 700; }
.sgame .sp { margin-left: auto; flex: none; background: var(--gold, #FFC93C); color: #1B1840; font: 800 14px var(--f-body); border-radius: 999px; padding: 8px 12px; }
.swish { background: #FFF6DC; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; } .swish p { color: var(--paper-ink) !important; }
.snote { font-size: 12px !important; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .sq .mic.on { animation: none; } }
.gtog { display: inline-flex; flex: none; background: var(--ink); border-radius: 14px; padding: 3px; gap: 3px; }
.gtog button { border: 0; background: transparent; color: #A9B6EE; font: 400 13px/1 var(--f-display); text-transform: uppercase; padding: 8px 10px; border-radius: 11px; min-height: 40px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gtog button small { font: 800 11px/1 var(--f-body); opacity: .8; }
.gtog button.on { background: var(--gold); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.fsel { flex: 0 1 auto; min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--gold); background: var(--gold); color: var(--ink); font: 900 13px/1 var(--f-body); padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.fsel small { opacity: .65; font-weight: 800; flex: none; }
/* dlouhý předmět („Prvouka a přírodověda“) se zkrátí, místo aby tlačil řádek mimo displej (5. 11.) */
.fsel .ft { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fmenu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; background: #FFFFFF; color: var(--paper-ink); border-radius: 16px; padding: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.fmenu button { border: 0; background: transparent; text-align: left; font: 800 14px/1.2 var(--f-body); color: inherit; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.fmenu button small { opacity: .55; margin-left: 4px; }
.fmenu button[aria-checked="true"] { background: #FFF3C4; }
.fmenu button:hover { background: #F4F2FF; }
.nowpill { flex: 0 30 auto; min-width: 0; display: inline-flex; align-items: center; gap: 7px; border: 2px solid rgba(255,255,255,.25); background: transparent; color: var(--text); font: 800 13px/1 var(--f-body); padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.nowpill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grass); flex: none; }
.vtog.ico button { font-size: 15px; padding: 6px 11px; }
.mapbar .vtog { flex: none; }
.nowpill .nt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mapbar .mb-sp { min-width: 0; }
.bell { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--sky-2); font-size: 20px; display: grid; place-items: center; cursor: pointer; }
.bell i { position: absolute; top: -3px; right: -3px; background: var(--bad); color: #FFF; font: 400 11px/1 var(--f-display); font-style: normal; border-radius: 999px; padding: 3px 6px; border: 2px solid var(--sky); }
@media (prefers-reduced-motion: no-preference) { .bell.ring { animation: ring 1.2s ease-in-out 2; } @keyframes ring { 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: none; } } }
.fchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 2px solid rgba(255,255,255,.25); background: transparent; color: var(--text); font: 400 13px/1 var(--f-display); padding: 8px 11px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.fchip small { opacity: .7; font-weight: 700; }
.fchip.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.vtog { display: flex; align-self: flex-start; border: 2px solid rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.vtog button { border: 0; background: transparent; color: var(--muted); font: 400 12px/1 var(--f-display); padding: 7px 12px; cursor: pointer; }
.vtog button.on { background: rgba(255,255,255,.16); color: var(--text); }
.sky.as-list { overflow: visible; padding: 4px max(16px, env(safe-area-inset-left, 0px)) 8px; }
.gsearch { width: 100%; box-sizing: border-box; min-height: 48px; margin: 0 0 10px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--line, #3A3585); background: var(--paper); color: var(--paper-ink); font-weight: 700; font-size: 16px; font-family: inherit; }
.glist { display: flex; flex-direction: column; gap: 8px; }
.grow { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; text-align: left; background: var(--sky-2); border: 2px solid rgba(255,255,255,.12); border-radius: 16px; padding: 8px 12px 8px 8px; color: var(--text); font: inherit; cursor: pointer; }
.grow.ghost { opacity: .8; border-style: dashed; }
.grow .gic { width: 64px; height: 52px; display: grid; place-items: center; overflow: hidden; }
.grow .gic .bld { transform: scale(.62); transform-origin: 50% 50%; display: flex; align-items: flex-end; }
.grow .gtx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.grow .gtx b { font-size: 15px; line-height: 1.2; }
.grow .gtx > span { font-size: 12px; color: var(--muted); font-weight: 700; }
.grow .gtx .m { color: var(--gold); }
.grow .gst { font-weight: 900; color: var(--gold); font-size: 18px; }
.grow .gst em { font-style: normal; font-size: 13px; }
.gempty { color: var(--muted); text-align: center; padding: 30px 0; margin: 0; }
.isle .sub { font-size: 11px; color: var(--muted); margin-top: 2px; text-align: center; max-width: 160px; }
.tr { display: inline-block; font: 400 11px/1 var(--f-display); color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px 7px; margin-right: 5px; white-space: nowrap; vertical-align: 1px; }
.tr.fit { background: #1F7A44; border-color: #1F7A44; }
.trline { margin: 6px 0 0; font-size: 14px; }
.trline .tr { font-size: 13px; padding: 4px 9px; color: var(--paper-ink); background: #EEECFA; border-color: #D6D2F0; }
.trline .tr.fit { color: #fff; background: #1F7A44; border-color: #1F7A44; }
@media (prefers-reduced-motion: no-preference) {
  .isle.float { animation: bob 4s ease-in-out infinite; }
  .isle.float:nth-child(odd) { animation-delay: -2s; }
  @keyframes bob { 50% { transform: translateY(-5px); } }
}

/* cards on paper */
.card { background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card h2 { font-size: 21px; }
.card p { margin: 0; color: var(--paper-muted); font-size: 14px; font-weight: 600; }
.segs { display: grid; gap: 6px; }
.segs i { height: 10px; border-radius: 5px; background: var(--line); }
.segs i.on { background: var(--grass); }
.cta { height: 54px; border-radius: 16px; border: 0; background: var(--gold); border-bottom: 5px solid var(--gold-2); color: var(--ink); font-family: var(--f-display); font-size: 18px; display: grid; place-items: center; text-decoration: none; width: 100%; }
.cta:active { transform: translateY(2px); border-bottom-width: 3px; }
.cta.ghost { background: var(--line); border-bottom-color: #C9C4EA; }
.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.mis { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mis:last-of-type { border-bottom: 0; }
.mis .box { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 3px solid var(--line); display: grid; place-items: center; }
.mis.done .box { background: var(--grass); border-color: var(--grass); }
.mis .t { flex: 1; min-width: 0; font-size: 15px; }
.mis .t small { display: block; color: var(--paper-muted); font-size: 12px; font-weight: 600; }
.mis.done .t { color: var(--paper-muted); text-decoration: line-through; }
.mis .n { font-size: 13px; color: var(--paper-muted); }
a.mis.go { color: inherit; text-decoration: none; cursor: pointer; border-radius: 10px; margin: 0 -6px; padding: 8px 6px; }
a.mis.go:hover, a.mis.go:focus-visible { background: rgba(78,71,168,.08); }
.mis .mgo { flex: none; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 13px; border-radius: 999px; padding: 6px 12px; border-bottom: 3px solid var(--gold-2); }
.chest { display: flex; align-items: center; gap: 12px; border: 3px dashed #E5CF9A; background: #FFF8E6; border-radius: 16px; padding: 10px 12px; }
.chest-ic { width: 46px; height: 38px; flex: none; background: #B8823A; border: 3px solid var(--ink); position: relative; }
.chest-ic::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; background: var(--ink); }
.chest-ic::after { content: ""; position: absolute; left: 16px; top: 7px; width: 8px; height: 11px; background: var(--gold); border: 2px solid var(--ink); }
.chest.ready { border-style: solid; border-color: var(--gold); background: #FFF1C4; }
.chest .t { flex: 1; font-size: 14px; }
.chest button { border: 0; border-radius: 12px; background: var(--gold); border-bottom: 4px solid var(--gold-2); padding: 10px 14px; font-weight: 900; color: var(--ink); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.week i { width: 100%; aspect-ratio: 1; border-radius: 8px; border: 2px dashed var(--sky-3); }
.week .on i { background: #F08A24; border: 2px solid #FFFFFF; }
.week .now span { color: var(--gold); }
.week .now i { box-shadow: 0 0 0 3px rgba(255, 201, 60, .5); }
.darkcard { background: var(--sky-2); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.darkcard .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.darkcard .row b { font-family: var(--f-display); font-weight: 400; color: var(--fire); font-size: 20px; }
.darkcard .row span { font-size: 12px; color: var(--muted); text-align: right; }

/* bottom nav */
/* iOS (hlavně aplikace z plochy) občas ukotvené prvky při posouvání vytáhne doprostřed obrazovky.
   Na telefonu je proto lišta „přilepená“ (sticky) na konci stránky: zůstává dole a s obsahem neujíždí. */
:root { padding-bottom: 0; }
/* bez „gumového“ přetažení na začátku a konci stránky: jinak iOS posune lištu a pod ní vykoukne proužek */
html, body { overscroll-behavior-y: none; }
@media (max-width: 999px) {
  body { display: flex; flex-direction: column; min-height: calc(100vh - env(safe-area-inset-top, 0px)); min-height: calc(100dvh - env(safe-area-inset-top, 0px)); min-height: calc(100svh - env(safe-area-inset-top, 0px)); }
  body > .app { flex: 1 0 auto; width: 100%; }
  body > .nav { flex: none; }
  /* šatník: postavička zůstává nahoře, když se posouvá seznam věcí */
  /* pozadí jako obloha (var(--sky)): v barvě --ink by zmizely tmavé nohy postavičky */
  #wardrobe > .stage { position: sticky; top: 0; z-index: 5; height: 200px; padding-bottom: 8px; background: var(--sky); }
  #wardrobe > .stage > div { transform: scale(.62); transform-origin: center bottom; }
}
.nav { position: sticky; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.nav-in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nav.n6 .nav-in { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* A/B „hledani-misto“: C velké pole na domovské obrazovce, D plovoucí tlačítko */
.hsearch { width: 100%; display: flex; align-items: center; gap: 10px; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: var(--text); border-radius: 16px; padding: 12px 14px; font: 700 16px var(--f-body); cursor: pointer; text-align: left; }
.hsearch span { flex: 1; opacity: .85; } .hsearch b { font-size: 20px; }
.fabs { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 21; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--gold); color: #1B1840; font-size: 26px; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-shadow: 0 8px 20px rgba(0,0,0,.35); cursor: pointer; }
.fabs small { font: 800 10px var(--f-body); }

/* together: playing now, leaderboard, live feed, celebrations */
.now { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 2px; }
.now::-webkit-scrollbar { display: none; }
.nowchip { flex: 0 1 auto; min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 8px; background: var(--sky-2); color: var(--text); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 13px; white-space: nowrap; }
/* dlouhý název hry se zkrátí třemi tečkami, řádek nikdy nepřeteče displej (5. 11.: žebříček na iPhonu ujížděl do strany) */
.nowchip .nt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nowchip .dot, .nowchip .vz { flex: none; }
.nowchip b { font-weight: 900; }
/* bílý text i na bílém okně „Kdo právě hraje“ (podnět 410: dřív zdědil tmavou barvu okna) */
button.nowchip { border: 0; font: inherit; color: var(--text); cursor: pointer; min-height: 44px; }
button.nowchip .vz { font-size: 12px; font-weight: 900; color: var(--muted); margin-left: 4px; }
button.nowchip:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }
.nowchip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grass); box-shadow: 0 0 0 0 rgba(111, 209, 107, .7); }
.mface { width: 30px; height: 30px; flex: none; border: 3px solid var(--ink); position: relative; overflow: hidden; }
.mface i { position: absolute; display: block; }
.btabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--sky-2); border-radius: 14px; padding: 4px; margin-top: 12px; }
.btabs button { border: 0; background: none; border-radius: 10px; padding: 9px 0; color: var(--muted); font-weight: 800; }
.btabs button[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); }
.bchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.bchips button { border: 2px solid var(--sky-2); background: none; border-radius: 999px; padding: 6px 12px; color: var(--muted); font-weight: 800; font-size: 13px; }
.bchips button[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.bfilt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.bsel { position: relative; display: flex; flex-direction: column; gap: 2px; background: var(--sky-2); border-radius: 14px; padding: 7px 30px 7px 12px; min-width: 0; cursor: pointer; }
.bsel:first-child { grid-column: 1 / -1; }
.bsel span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bsel select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: var(--text); font: 900 16px/1.2 var(--f-body); padding: 0; width: 100%; min-width: 0; text-overflow: ellipsis; cursor: pointer; }
.bsel select option { color: #1B1840; }
.bsel::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.fitnote { margin: 4px 0 8px; padding: 10px 12px; border-radius: 12px; background: #FFF1D6; color: #7A4B00; font-size: 14px; font-weight: 700; }
.fitnote.hard { background: #E6F6EC; color: #22543D; }
.pickg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.pickg a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 12px; border-radius: 16px; background: #F1EFFB; border: 2px solid #E2DEF7; color: var(--paper-ink); text-decoration: none; text-align: center; }
.pickg a:active { transform: translateY(1px); background: #FFF4CF; border-color: var(--gold); }
.pickg .pg-ic { width: 64px; height: 50px; display: grid; place-items: center; overflow: hidden; }
.pickg .pg-ic .bld { transform: scale(.62); display: flex; align-items: flex-end; }
.pickg b { font: 900 14px/1.2 var(--f-body); }
.pickg small { font-size: 12px; color: var(--paper-muted); font-weight: 700; }
.pickg-note { margin: 0 0 10px; }
.bnote { margin: 10px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.top1 { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 61; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 26px 16px; border-radius: 24px; background: rgba(27, 24, 64, .82); border: 3px solid var(--gold); color: #fff; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.45); cursor: pointer; transition: opacity .5s; width: min(300px, calc(100vw - 48px)); box-sizing: border-box; }
.top1 .tr { font-size: 56px; line-height: 1.1; background: none; border: 0; box-shadow: none; }
.top1 b { font-family: var(--f-display); font-size: 32px; white-space: nowrap; color: var(--gold); letter-spacing: .02em; }
.top1 span:not(.tr) { font-weight: 800; font-size: 16px; }
.top1 small { font-weight: 700; font-size: 13px; color: #C9C4F5; margin-top: 2px; }
.top1.off { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .top1 { animation: top1in .6s cubic-bezier(.2, 1.6, .4, 1) both; } .top1 .tr { animation: top1tr 1.2s ease-in-out .6s 3; } @keyframes top1in { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } } @keyframes top1tr { 50% { transform: scale(1.18) rotate(-6deg); } } }
.fw { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.rank { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank li { display: grid; grid-template-columns: 2em auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; background: var(--sky-2); border-radius: 14px; padding: 8px 10px 8px 12px; }
.rank li[data-who] { cursor: pointer; }
.rank li[data-who]:active { filter: brightness(1.15); }
.rank .go { color: var(--muted); font-size: 22px; line-height: 1; width: 12px; text-align: center; }
.rank li.fam { background: #3F3A9A; }
.rank li.me { background: var(--paper); color: var(--paper-ink); }
.rank .pos { font-family: var(--f-display); font-size: 18px; text-align: center; }
.rank .pos.r1 { color: var(--gold); } .rank .pos.r2 { color: #D8DDE8; } .rank .pos.r3 { color: #E3A06B; }
.rank li.me .pos { color: var(--accent); }
.rank .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.rank .nm small { display: block; font-weight: 700; font-size: 11px; color: var(--muted); }
.rank li.me .nm small { color: var(--paper-muted); }
.rank .sc { font-family: var(--f-display); font-size: 18px; text-align: right; white-space: nowrap; line-height: 1.05; }
.rank .sc small { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 800; color: var(--muted); text-transform: none; letter-spacing: 0; }
.rank li.me .sc small { color: var(--paper-muted); }
.feed { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.feed li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--sky-3); }
.feed li .tx { flex: 1; min-width: 0; }
.fpager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 4px; font-size: 14px; color: var(--muted); }
.fpager button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--sky-3); font: inherit; font-weight: 700; cursor: pointer; }
.rankfind { width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 12px 14px; min-height: 44px; border-radius: 14px; border: 2px solid var(--sky-3); font: inherit; font-size: 16px; font-weight: 700; background: #fff; color: #1B1840; -webkit-text-fill-color: #1B1840; caret-color: #1B1840; }
.rankfind::placeholder { color: #6B6890; -webkit-text-fill-color: #6B6890; opacity: 1; }
.fpager button:disabled { opacity: .4; cursor: default; }
.feed li time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.feed li .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.clap { min-height: 32px; min-width: 52px; border-radius: 999px; border: 2px solid var(--sky-3); background: transparent; color: inherit; font: 800 13px/1 var(--f-body, system-ui); padding: 4px 10px; white-space: nowrap; }
.clap[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.clap.ro { border-color: transparent; min-width: 0; padding: 4px 0; }
.cele .clap { border-color: var(--gold); }
.bragbtn { margin-top: 12px; width: 100%; min-height: 48px; border-radius: 14px; border: 2px dashed var(--gold); background: rgba(255, 201, 60, .1); color: var(--gold); font-family: var(--f-display); font-size: 16px; }
.bragopts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.bragopts button { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--line); background: #FFFFFF; color: var(--paper-ink); font-size: 15px; font-weight: 800; }
.bragopts button span:first-child { font-size: 26px; width: 34px; text-align: center; }
.bragopts button small { display: block; font-weight: 600; font-size: 12px; color: var(--paper-muted); }
.brag-av { display: flex; justify-content: center; padding: 70px 0 6px; }
.secttl { font-family: var(--f-display); font-size: 18px; margin: 18px 0 0; display: flex; justify-content: space-between; align-items: baseline; }
.secttl small { font-family: var(--f-body); font-size: 12px; color: var(--muted); }
.cele { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 70; width: min(92vw, 460px); transform: translate(-50%, -150%); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1);
  background: var(--paper); color: var(--paper-ink); border-radius: 20px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.4); border: 3px solid var(--gold); }
.cele.on { transform: translate(-50%, 0); }
.cele .cele-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #EEECFA; color: var(--paper-ink); font-size: 15px; font-weight: 900; display: grid; place-items: center; }
.cele .cele-mute { position: absolute; right: 12px; bottom: -14px; border: 2px solid var(--gold); background: var(--paper); color: var(--paper-muted); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 2px 8px; }
.daily { border: 3px solid var(--gold); }
.daily .dnew { font-size: 12px; font-weight: 900; color: var(--gold-2); }
.drow { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: var(--paper-ink); font: inherit; width: 100%; }
.drow .dic { font-size: 30px; text-align: center; line-height: 1; display: grid; place-items: center; min-height: 44px; }
.drow .dic.th { overflow: hidden; height: 48px; }
.drow .dic.dgr { position: relative; }
.drow .dic.dgr i { position: absolute; right: -4px; bottom: 0; min-width: 22px; height: 22px; padding: 0 3px; border-radius: 11px; background: var(--accent); color: #fff; font: 900 12px/22px var(--f-body); font-style: normal; }
.drow .dtx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drow .dtx b { font-size: 15px; line-height: 1.25; }
.drow .dtx small { font-size: 13px; color: var(--paper-muted); font-weight: 700; }
.drow .pbar { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.drow .pbar i { display: block; height: 100%; background: var(--grass); }
.dbtn { border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 900; font-size: 14px; padding: 0 14px; min-height: 44px; text-decoration: none; display: grid; place-items: center; }
.dbtn.gold { background: var(--gold); color: var(--ink); border-bottom: 3px solid var(--gold-2); }
/* Zítra si zahraju (podnět 465) */
/* Adventní okénka za kolo (podnět 626) jako skutečný kalendář (Martin 30. 11., plátno XjmiDodnbHhQ3szsUo4Kwm, varianta A):
   červená deska s girlandou, 24 dvířek 6×4; otevřená pootočená s věcí za nimi, odemčené svítí zlatě, bez zámečků */
.dadv { grid-template-columns: 1fr 44px; row-gap: 12px; }
.dadv .dtx { grid-column: 1; }
.dadv .most-say { grid-column: 2; display: grid; place-items: center; flex: none; }
.dadv .most-say .aic { stroke: #fff; }
.adv-deska { grid-column: 1 / -1; position: relative; margin-top: 12px; padding: 28px 10px 12px; background: #B8262F; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); }
.adv-girl { position: absolute; left: -3px; right: -3px; top: -14px; width: calc(100% + 6px); height: 26px; overflow: visible; }
.adv-girl path { fill: none; stroke: #1F6B3A; stroke-width: 9; stroke-linecap: round; }
.adv-girl circle { stroke: var(--ink); stroke-width: 2; }
.adv-nadpis { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.adv-nadpis span { white-space: nowrap; font: clamp(17px, 5.2vw, 22px)/1 var(--f-display, inherit); color: #FFF6DC; text-transform: uppercase; letter-spacing: .5px; text-shadow: 0 2px 0 var(--ink); text-align: center; }
.adv-hv { width: 18px; height: 18px; flex: none; fill: var(--gold); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.adv-mrizka { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.adv-dv { position: relative; height: 54px; box-sizing: border-box; padding: 0; border: 2.5px solid var(--ink); border-radius: 8px; background: #F3E3C3; box-shadow: inset 0 -4px 0 #DCC79C; display: grid; place-items: center; font: inherit; color: #7A2A20; overflow: visible; }
.adv-dv b { font: 19px/1 var(--f-display, inherit); margin-right: 5px; }
.adv-dv:not(.otev):not(.on)::after { content: ""; position: absolute; right: 3px; top: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: #B8862F; border: 1.5px solid var(--ink); }
.adv-dv.dnes { outline: 3px dashed var(--gold); outline-offset: 1px; color: var(--ink); }
button.adv-dv { cursor: pointer; }
.adv-dv.dnes small { position: absolute; left: 0; right: 0; bottom: 4px; font: 900 8.5px/1 var(--f-body); color: #7A2A20; text-align: center; }
.adv-dv.dnes:has(small) b { margin-top: -10px; }
.adv-dv.tuk { animation: advTuk .45s ease-in-out; }
@keyframes advTuk { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } }
.adv-hraj.blik { animation: advBlik .5s ease-in-out 2; }
@keyframes advBlik { 50% { transform: scale(1.05); box-shadow: 0 4px 0 var(--ink), 0 0 0 6px rgba(255, 209, 46, .8); } }
/* F (Martin 30. 11.): na Ostrově pruh, ťuk otevře celý kalendář; telefon pruh nahoře v #advHost, počítač v Dnešních novinkách */
#advHost .advcard { padding: 6px 12px; }
#advHost .dadv { border-top: 0; }
.daily#dailyCard .dadv { display: none; }
@media (min-width: 1000px) { #advHost { display: none !important; } .daily#dailyCard .dadv { display: grid; } }
.dadv:has(.adv-pruh) { grid-template-columns: 1fr; }
.adv-pruh { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; background: #B8262F; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); color: #FFF6DC; text-align: left; font: inherit; cursor: pointer; }
.adv-pruh.sviti { animation: advSviti 1.6s ease-in-out infinite; }
.adv-mini { flex: none; position: relative; width: 50px; height: 58px; box-sizing: border-box; border: 3px solid var(--ink); border-radius: 9px; background: #F3E3C3; outline: 3px solid var(--gold); display: grid; place-items: center; font: 28px/1 var(--f-display, inherit); color: #7A2A20; overflow: hidden; }
.adv-mini.on { background: var(--gold); color: var(--ink); }
.adv-mini.otev { background: #3A1F2E; outline: 0; }
.adv-mini.otev > * { transform: scale(.7); }
.adv-pt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.adv-pt b { font: 19px/1.1 var(--f-display, inherit); text-shadow: 0 2px 0 var(--ink); }
.adv-pt small { font: 800 14px/1.25 var(--f-body); }
.adv-sip { font: 28px/1 var(--f-display, inherit); color: var(--gold); }
/* celý kalendář (advCal) */
.full.advcal { justify-content: flex-start; overflow-y: auto; background: #1B2A6B; background-image: none; }
.advcal .adv-in { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.adv-hl { display: flex; align-items: center; gap: 12px; }
.adv-hl > span { flex: 1; font: 21px/1 var(--f-display, inherit); color: #fff; text-transform: uppercase; text-shadow: 0 2px 0 var(--ink); }
.adv-x { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #FFF6DC; border: 3px solid var(--ink); display: grid; place-items: center; padding: 0; }
.adv-x svg { pointer-events: none; }   /* zavírá se jen na ťuk přímo na [data-close]; ťuk na křížek uvnitř nezavřel (Martin 30. 11.) */
.adv-hl .most-say { flex: none; display: grid; place-items: center; }
.adv-hl .most-say .aic { stroke: #fff; }
.adv-top { display: flex; gap: 14px; align-items: stretch; background: #FFF6DC; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 var(--ink); padding: 14px; color: var(--ink); }
.adv-velka { flex: none; position: relative; width: 104px; height: 124px; box-sizing: border-box; padding: 0; border: 3px solid var(--ink); border-radius: 12px; background: #F3E3C3; box-shadow: inset 0 -6px 0 #DCC79C; outline: 3px dashed var(--gold); outline-offset: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; color: #7A2A20; }
.adv-velka b { font: 58px/1 var(--f-display, inherit); }
.adv-velka small { font: 900 13px/1 var(--f-body); }
.adv-velka.on { background: var(--gold); color: var(--ink); outline: 0; box-shadow: 0 5px 0 var(--ink); animation: advSviti 1.6s ease-in-out infinite; cursor: pointer; }
.adv-velka.otev { background: #3A1F2E; outline: 0; box-shadow: inset 0 0 18px rgba(255, 201, 74, .55); overflow: visible; }
.adv-velka.otev .adv-th { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; }
.adv-velka.otev .adv-th > * { transform: scale(1.3); }
.adv-velka.otev .adv-kr { width: 18px; }
.adv-velka.on.otvira { animation: advOtvira .55s ease-in forwards; transform-origin: left center; }
.adv-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; font: 800 16px/1.3 var(--f-body); }
.adv-tt b { font: 20px/1.15 var(--f-display, inherit); }
.adv-tt .adv-zl { color: #B8262F; }
.adv-hrat { display: grid; place-items: center; height: 56px; border: 3px solid var(--ink); border-radius: 14px; background: var(--go, #0A7F5B); color: #fff; text-decoration: none; font: 22px/1 var(--f-display, inherit); box-shadow: 0 4px 0 var(--ink); }
.adv-hrat.blik { animation: advBlik .5s ease-in-out 2; }
.advcal .adv-deska { margin-top: 10px; }
.adv-hint { margin: -4px 0 0 !important; max-width: none !important; padding: 10px 14px; border-radius: 14px; background: #FFD12E; color: var(--ink) !important; border: 3px solid var(--ink); font: 800 15px/1.3 var(--f-body); }
.adv-pocet { margin: 10px 0 0 !important; max-width: none !important; color: #FFF6DC !important; font: 800 14px/1.2 var(--f-body); text-align: center; }
.adv-jdi { align-self: flex-start; min-height: 44px; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; background: var(--gold); color: var(--ink); font: 900 15px/1.1 var(--f-body); box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.advc .later { color: #C9CFF5; font-weight: 800; }
#homeIsle.adv-ukaz { animation: advUkaz 1s ease-in-out 3; }
@keyframes advUkaz { 50% { transform: scale(1.06); filter: drop-shadow(0 0 14px rgba(255, 209, 46, .95)); } }
@media (prefers-reduced-motion: reduce) { #homeIsle.adv-ukaz { animation: none; outline: 4px solid var(--gold); } .adv-pruh.sviti, .adv-velka.on, .adv-velka.on.otvira, .adv-hrat.blik { animation: none; } }
.adv-dv.on { background: var(--gold); box-shadow: 0 3px 0 var(--ink); color: var(--ink); align-content: center; gap: 1px; cursor: pointer; animation: advSviti 1.6s ease-in-out infinite; }
.adv-dv.on b { font-size: 22px; margin-right: 0; }
.adv-dv.on small { font: 900 8.5px/1 var(--f-body); letter-spacing: 0; }
.adv-dv.on.otvira { animation: advOtvira .55s ease-in forwards; transform-origin: left center; }
@keyframes advSviti { 0%, 100% { box-shadow: 0 3px 0 var(--ink), 0 0 0 0 rgba(255, 201, 60, .7); } 50% { box-shadow: 0 3px 0 var(--ink), 0 0 0 8px rgba(255, 201, 60, 0); } }
@keyframes advOtvira { to { transform: perspective(120px) rotateY(-70deg); } }
.adv-dv.otev { background: #3A1F2E; box-shadow: inset 0 0 10px rgba(255, 201, 74, .45); cursor: pointer; }
.adv-dv.otev .adv-th { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; pointer-events: none; }
.adv-dv.otev .adv-th > * { transform: scale(.8); flex: none; }
.adv-dv.otev .adv-th .hth { height: auto; }
.adv-kr { position: absolute; left: -2px; top: -2px; bottom: -2px; width: 11px; background: #F3E3C3; border: 2.5px solid var(--ink); border-radius: 7px 3px 3px 7px; transform: perspective(60px) rotateY(55deg); transform-origin: left center; pointer-events: none; }
.adv-dv.otev i { position: absolute; right: 3px; bottom: 2px; font: 11px/1 var(--f-display, inherit); font-style: normal; color: var(--gold); text-shadow: 0 1px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .adv-dv.on, .adv-dv.on.otvira, .adv-dv.tuk, .adv-hraj.blik { animation: none; } }
.dadv .adv-okna { grid-column: 1 / -1; display: flex; gap: 10px; align-items: stretch; }
.adv-hraj { flex: 1; min-width: 0; min-height: 76px; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 3px solid var(--ink); border-radius: 14px; background: var(--accent); color: #fff; text-decoration: none; box-shadow: 0 4px 0 var(--ink); }
.adv-hraj .adv-img { flex: none; width: 60px; height: 60px; display: grid; place-items: center; overflow: hidden; background: #fff; border-radius: 10px; }
.adv-hraj .adv-img svg { width: 60px; height: 60px; }
.adv-hraj .adv-ht { display: flex; flex-direction: column; min-width: 0; }
.adv-hraj b { font-size: 22px; line-height: 1.1; }
.adv-hraj small { font-size: 13px; font-weight: 800; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* otevření: věc v okénku a dvířka s číslem se odklopí doleva (plátno, „Otevření okénka“) */
.advc .adv-okno { position: relative; width: 170px; height: 180px; margin-left: auto; margin-right: auto; background: #3A1F2E; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 0 0 14px #B8262F, 0 0 0 17px var(--ink), inset 0 0 30px rgba(255, 201, 74, .55); }
.advc .adv-vec { display: grid; place-items: center; animation: advVyskoc .9s ease-out both; }
.advc .adv-dvirka { position: absolute; inset: -4px; display: grid; place-items: center; background: #F3E3C3; border: 4px solid var(--ink); border-radius: 14px; box-shadow: inset 0 -8px 0 #DCC79C; transform-origin: left center; animation: advOdklop .8s ease-in-out .15s both; }
.advc .adv-dvirka b { font: 72px/1 var(--f-display, inherit); color: #7A2A20; }
@keyframes advOdklop { from { transform: perspective(500px) rotateY(0); } to { transform: perspective(500px) rotateY(-112deg); } }
@keyframes advVyskoc { 0%, 35% { transform: scale(.4); opacity: 0; } 75% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .advc .adv-vec, .advc .adv-dvirka { animation: none; } .advc .adv-dvirka { transform: perspective(500px) rotateY(-112deg); } }
.advc .pop { margin-top: 34px; }
.advc .pop.adv-okno { margin-top: 48px; margin-bottom: 18px; }
.advc .adv-pop { display: grid; place-items: center; min-height: 120px; }
.advc .adv-pop svg { transform: scale(2.4); }
.advc .adv-pop .aic { transform: none; }
.advc .most-say { display: grid; place-items: center; }
.advc .most-say .aic { stroke: #fff; }
/* Otázka na zítra (podnět 463) */
/* první mazlíček za první kolo (podnět 464) */
.drow.dpet .dic.th { height: 52px; padding-top: 4px; }
.drow.dpet .dpet-act { display: flex; gap: 6px; align-items: center; }
.fpet .fp-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 420px; }
.fpet .fp-opts button { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 132px; padding: 14px 4px 10px; border: 3px solid var(--ink); border-radius: 18px; background: #fff; color: var(--ink); font: 900 16px/1.15 var(--f-body); box-shadow: 0 4px 0 var(--ink); }
.fpet .fp-opts button .petsvg { width: 72px; height: 72px; }
.fpet .fp-opts button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.fpet .fp-say { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: inherit; font: 800 15px var(--f-body); }
@media (max-height: 700px) { .fpet .fp-opts button { min-height: 112px; } .fpet .fp-opts button .petsvg { width: 58px; height: 58px; } .fpet h1 { font-size: 24px; } }
.dok { width: 36px; height: 36px; border-radius: 50%; background: #DDF5DA; color: var(--ok); font-weight: 900; display: grid; place-items: center; }
.dgo { color: var(--accent); font-weight: 900; }
.ditem { cursor: pointer; }
.item em.sez { font-style: normal; display: inline-block; background: #B8611A; color: #FFFFFF; font-size: 10px; font-weight: 900; border-radius: 6px; padding: 1px 5px; margin-right: 4px; vertical-align: 1px; }
.hbld { isolation: isolate; }
.hbld .hb { position: absolute; transform: translateX(-50%) scale(var(--k, 1)); transform-origin: 50% 100%; pointer-events: none; }
/* dům a stavby nad skálou: přední stavby (plot, zahrádka…) stojí na trávě před domem a skála je nezakryje */
.isle .hbld { position: relative; z-index: 2; }
/* právě postavená stavba: vyskočí a zazáří, ať je jasné, co přibylo */
@keyframes hbNew { 0% { transform: translateX(-50%) scale(0); } 55% { transform: translateX(-50%) scale(calc(var(--k, 1) * 1.35)); } 75% { transform: translateX(-50%) scale(calc(var(--k, 1) * .92)); } 100% { transform: translateX(-50%) scale(var(--k, 1)); } }
@keyframes hbGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 209, 46, 0)); } 50% { filter: drop-shadow(0 0 8px #FFD12E) drop-shadow(0 0 3px #FFD12E); } }
.hbld .hb.hb-new { animation: hbNew .7s cubic-bezier(.3, 1.4, .5, 1) both, hbGlow 1.1s ease-in-out .7s 3; }
@media (prefers-reduced-motion: reduce) { .hbld .hb.hb-new { animation: hbGlow 1.1s ease-in-out 2; } }
.home-isle { cursor: pointer; color: inherit; font: inherit; }
.home-isle .hbadge { position: absolute; top: 6px; left: 50%; margin-left: 6px; z-index: 3; background: var(--gold); color: var(--ink); font: 400 11px/1 var(--f-display); padding: 5px 8px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.3); transform: rotate(6deg); }
.home-isle:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.bprev { flex: none; display: flex; justify-content: center; padding: 18px 0 8px; background: var(--sky); border-radius: 18px; overflow: hidden; }
.bprev .isle { position: relative; left: auto; top: auto; }
.bprev .isle .label { color: #FFFFFF; }
.item.hup { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 14px; text-align: left; flex-wrap: wrap; }
.item.hup span { font-size: 14px; flex: 1; }
.item.hup small { width: 100%; }
.item .hth { height: 64px; }
.item .hth.small { transform: scale(1.6); height: 46px; }
.item.hup .hth { height: 64px; flex: none; }
.petcare { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: 16px; padding: 12px; background: #F6F4FF; color: var(--paper-ink); }
.petcare p { margin: 0; font-size: 13px; }
.petcare .pc-pet { flex: none; width: 70px; display: flex; justify-content: center; padding-top: 18px; }
.petcare .pc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.petcare .pc-tx small { font-size: 12px; color: var(--paper-muted, #5B5694); font-weight: 700; }
.petcare .pbar { display: block; width: 100%; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.petcare .pbar i { display: block; height: 100%; background: var(--accent); }
.petcare .pc-feed { height: auto; min-height: 46px; padding: 8px 12px; font-size: 16px; line-height: 1.15; text-wrap: balance; }
/* Nauč mazlíčka (podnět 318): mazlíček se učí počítat, dítě mu ťukne správnou odpověď; 3 srdíčka = den péče */
.petcare .pc-teach { height: auto; min-height: 46px; padding: 8px 12px; font-size: 16px; line-height: 1.15; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pc-hearts, .tc-hearts { display: inline-flex; gap: 4px; font-size: 18px; line-height: 1; }
.tc-hearts { font-size: 34px; gap: 8px; }
.pc-hearts i, .tc-hearts i { font-style: normal; filter: grayscale(1); opacity: .35; transition: transform .3s; }
.pc-hearts i.on, .tc-hearts i.on { filter: none; opacity: 1; transform: scale(1.15); }
.teach .tc-pet { position: relative; width: 120px; height: 110px; display: flex; align-items: flex-end; justify-content: center; }
.teach .tc-pet .petsvg { width: 100px; height: 100px; }
.teach .tc-bub { background: #fff; color: var(--ink); border-radius: 22px; padding: 12px 22px; font-family: var(--f-display); font-size: 40px; font-weight: 900; display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.teach .tc-bub button { border: 0; background: var(--gold); border-radius: 50%; width: 48px; height: 48px; font-size: 22px; cursor: pointer; }
.teach .tc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 380px; }
.teach .tc-opts button { height: 84px; border: 0; border-radius: 18px; background: var(--paper, #fff); color: var(--ink); font-family: var(--f-display); font-size: 34px; font-weight: 900; border-bottom: 6px solid #C9C4EA; cursor: pointer; }
.teach .tc-opts button.ok { background: #BDF2C9; border-bottom-color: #3FA35B; }
.teach .tc-opts button.bad { background: #FFD3CF; border-bottom-color: #D5574B; }
.teach .tc-msg { min-height: 48px; font-size: 20px; font-weight: 800; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .pet-hop { animation: petHop 2.6s ease-in-out infinite; } @keyframes petHop { 0%, 70%, 100% { transform: translateY(0); } 78% { transform: translateY(-10px); } 86% { transform: translateY(0); } 92% { transform: translateY(-4px); } } }
.item em.dnes { font-style: normal; display: inline-block; background: var(--gold); color: var(--ink); font-size: 10px; font-weight: 900; border-radius: 6px; padding: 1px 5px; margin-right: 4px; vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) { #dGift { animation: wig 2.4s ease-in-out infinite; } @keyframes wig { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-6deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } } }
.notipref { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.notipref button { border: 2px solid rgba(255,255,255,.25); background: transparent; color: var(--text); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 800; }
.notipref button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cele .big-ic { font-size: 34px; line-height: 1; }
.cele .tx { flex: 1; min-width: 0; font-size: 15px; }
.cele .tx b { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 400; }
.spark { position: fixed; z-index: 69; width: 8px; height: 8px; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .nowchip .dot { animation: ping 1.6s infinite; }
  @keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(111, 209, 107, 0); } }
  .spark { animation: spark 1.1s ease-out forwards; }
  @keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .cele { transition: none; } }
.nav button, .nav a { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); padding: 4px 0; text-decoration: none; }
.nav [aria-current="page"] { color: var(--gold); }

/* journey */
.jhead { display: flex; align-items: center; gap: 12px; padding-top: 14px; }
.jhead h1 { font-size: 24px; }
/* 3D výprava je nová (Martin 10. 11.): v menu u Výpravy štítek NOVÉ 3D a zlatá barva, dokud dítě 3D výpravu neotevře */
.nav button[data-go="journey"] { position: relative; }
.nav button[data-go="journey"].has-new { color: #FFD12E; }
.newb { position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; font-style: normal; font-family: var(--f-display); font-weight: 400; font-size: 11px; line-height: 1; letter-spacing: .3px; background: #FF4D6D; color: #fff; border: 2px solid var(--ink, #0B0F1A); border-radius: 999px; padding: 3px 7px; pointer-events: none; }
.newb.on { animation: newb 1.4s ease-in-out infinite; }   /* štítek 3D je vidět pořád, pulzuje, dokud dítě 3D výpravu neotevře */
@keyframes newb { 50% { transform: translateX(-50%) rotate(-4deg) scale(1.15); } }
.j3d.is-new { animation: newb3d 1.4s ease-in-out infinite; }
@keyframes newb3d { 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(255,209,46,.35); } }
@media (prefers-reduced-motion: reduce) { .newb.on, .j3d.is-new { animation: none; } }
/* velká novinka: výprava ve 3D (Martin 10. 11.: výrazná novinka, ať ji děti otevřou) */
.v3p { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 44px 14px 12px; border: 4px solid var(--ink); border-radius: 22px; background: linear-gradient(135deg, #3FB6E0, #2F6FD6 60%, #3B3690); color: #fff; box-shadow: 0 6px 0 var(--ink); text-decoration: none; overflow: hidden; }
.v3p .art { flex: none; width: 96px; height: 80px; }
.v3p .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v3p .tag { align-self: flex-start; background: #FF4D6D; color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 9px; font-family: var(--f-display); font-size: 12px; letter-spacing: .4px; }
.v3p b { font-family: var(--f-display); font-weight: 400; font-size: 21px; line-height: 1.1; }
.v3p small { font-size: 13px; line-height: 1.3; opacity: .95; }
.v3p .go { align-self: flex-start; margin-top: 4px; background: #FFD12E; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 14px; font-family: var(--f-display); font-size: 16px; animation: v3pgo 1.3s ease-in-out infinite; }
@keyframes v3pgo { 50% { transform: scale(1.08); } }
#v3dPromo { position: relative; }
#contHost + #v3dPromo:not([hidden]) { margin-top: 14px; }   /* nováček: „Začni tady“ nad novinkou (úkol 101) */
#v3dPromo .x { position: absolute; top: 4px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; }
@media (prefers-reduced-motion: reduce) { .v3p .go { animation: none; } }
.j3d { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 4px; text-decoration: none; }
.j3d small { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; text-transform: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chips span, .chips button { background: var(--sky-3); border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.path { position: relative; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.path::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 6px; background: var(--sky-3); }
.mon { margin-left: 62px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mon.now { color: var(--gold); }
.st { display: flex; align-items: center; gap: 12px; position: relative; }
.st .dot { width: 60px; display: flex; justify-content: center; flex: none; }
.st .dot i { width: 28px; height: 28px; border-radius: 50%; background: var(--sky-3); border: 4px solid var(--sky); display: grid; place-items: center; font-style: normal; }
.st.done .dot i { background: var(--grass); }
.st.now .dot i { width: 46px; height: 46px; background: var(--gold); border: 4px solid #FFFFFF; box-shadow: 0 0 0 6px rgba(255, 201, 60, .3); color: var(--ink); font-family: var(--f-display); }
.st .body { flex: 1; min-width: 0; background: var(--sky-2); border-radius: 14px; padding: 9px 12px; font-size: 14px; }
.st .body small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 2px; }
.st.now .body { background: var(--paper); color: var(--paper-ink); }
.st.now .body small { color: var(--paper-muted); }
.st.locked { opacity: .55; }
.st.rew .body { display: flex; align-items: center; gap: 12px; }
.st.rew.next .body { border-style: solid; border-color: var(--gold); background: rgba(255,201,60,.08); }
.rw-th { width: 56px; height: 56px; flex: none; display: grid; place-items: center; overflow: hidden; background: #FFFDF6; border-radius: 12px; border: 2px solid var(--line); }
.rw-th > * { transform: scale(.8); }
.st.rew:not(.got) .rw-th { filter: none; }
.rw-tx { display: flex; flex-direction: column; gap: 2px; }
.rw-tx b { font-size: 16px; }
.rw-b { font-size: 12px; font-weight: 800; color: var(--gold); }
.qrew { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 8px 10px; border-radius: 14px; background: #FFF4CF; color: var(--paper-ink); font-size: 14px; }
.qrew .rw-th { width: 48px; height: 48px; }
.item.flash { animation: itflash 1.2s ease 2; }
@keyframes itflash { 50% { box-shadow: 0 0 0 4px var(--gold); transform: scale(1.04); } }
.st.rew .body { background: transparent; border: 2px dashed var(--accent); color: var(--muted); font-size: 13px; }
.st.rew .body b { color: var(--text); }
.st.rew.got .body { border-color: var(--grass); }
.playbtn { display: inline-block; margin-top: 8px; background: var(--gold); border: 0; border-radius: 10px; padding: 7px 14px; font-weight: 900; color: var(--ink); text-decoration: none; }

/* pohyby postavičky */
.mv { transform-origin: 50% 100%; }
.mv-arm { position: absolute; top: 4px; width: 14px; height: 36px; background: inherit; border: 3px solid #0B0F1A; transform-origin: 50% 6px; z-index: 1; }
/* pohyby, kde ruka jde k obličeji (nos, uši, pusa): ruka před hlavou, jinak ji schová hlava (Martin 7. 11.) */
.mv-nos .mv-arm, .mv-jazyk .mv-arm, .mv-zmrzlina .mv-arm, .mv-limonada .mv-arm { z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .mv-tanec { animation: mvTanec .8s ease-in-out infinite; }
  .mv-skok { animation: mvSkok .7s ease-in-out infinite; }
  .mv-otocka { animation: mvOtocka 2.4s ease-in-out infinite; }
  .mv-pozdrav { animation: mvPozdrav 2.4s ease-in-out infinite; }
  .mv-radost { animation: mvRadost .6s ease-in-out infinite; }
  .mv-moonwalk { animation: mvMoon 2.4s ease-in-out infinite; }
  .mv-robot { animation: mvRobot 1.2s steps(1) infinite; }
  .mv-vlna { animation: mvVlna 1.1s ease-in-out infinite; }
  .mv-salto { animation: mvSalto 2s ease-in-out infinite; }
  .mv-kolo { animation: mvKolo 2.6s ease-in-out infinite; }
  /* mlýnek radosti: poskakuje a pravou rukou točí dokola */
  .mv-mlynek { animation: mvHop .45s ease-in-out infinite; }
  .mv-mlynek .mv-arm.r { animation: mvSpin .6s linear infinite; }
  @keyframes mvHop { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
  /* šťourání v nose: ruka k nosu, prst se vrtí */
  .mv-nos { animation: mvNos 2.4s ease-in-out infinite; }
  .mv-nos .mv-arm.r { animation: mvNosRuka 2.4s ease-in-out infinite; }
  @keyframes mvNos { 0%,15%,85%,100% { transform: rotate(0); } 30%,70% { transform: rotate(-3deg); } }
  @keyframes mvNosRuka { 0%,12%,88%,100% { transform: rotate(0deg); } 28% { transform: rotate(129deg); } 34% { transform: rotate(124deg); } 40% { transform: rotate(131deg); } 46% { transform: rotate(124deg); } 52% { transform: rotate(131deg); } 58% { transform: rotate(124deg); } 72% { transform: rotate(129deg); } }
  /* krmení holubů: ruka hází drobky, holubi zobou */
  .mv-holubi .mv-arm.r { animation: mvHod 1.2s ease-in-out infinite; }
  .mv-holubi .drobek { animation: mvDrobek 1.2s ease-in infinite; }
  .mv-holubi .drobek.b { animation-delay: .15s; }
  .mv-holubi .holub .hl { animation: mvZob .6s ease-in-out infinite; }
  .mv-holubi .holub.b .hl { animation-delay: .3s; }
  @keyframes mvHod { 0%,100% { transform: rotate(0deg); } 40% { transform: rotate(-75deg); } 55% { transform: rotate(-60deg); } }
  @keyframes mvDrobek { 0%,40% { opacity: 0; transform: translate(0, 0); } 45% { opacity: 1; } 100% { opacity: 1; transform: translate(var(--dx), 64px); } }
  @keyframes mvZob { 0%,100% { transform: rotate(0); } 50% { transform: rotate(38deg) translateY(2px); } }
  /* prdění: podřep, nadskočí a zezadu vyletí obláčky */
  .mv-prd { animation: mvPrd 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
  .mv-prd .prd { animation: mvPrdMrak 2.6s ease-out infinite; }
  .mv-prd .prd.b { animation-delay: .1s; }
  .mv-prd .prd.c { animation-delay: .2s; }
  .mv-prd .prd.d { animation-delay: .3s; }
  /* předkloní se (hlava dopředu, zadek dozadu), chvilku vydrží, prdne (zatřese se) a narovná se */
  @keyframes mvPrd { 0%,12%,100% { transform: rotate(0) translateX(0); } 28%,40% { transform: rotate(16deg) translateX(6px); } 44% { transform: rotate(13deg) translateX(3px); } 47% { transform: rotate(18deg) translateX(8px); } 50% { transform: rotate(14deg) translateX(4px); } 62% { transform: rotate(16deg) translateX(6px); } 76% { transform: rotate(0) translateX(0); } }
  @keyframes mvPrdMrak { 0%,42% { opacity: 0; transform: translate(0, 0) scale(.3); } 48% { opacity: .95; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(2.4); } }
  /* six seven: dlaně nahoru, ruce se střídavě zvedají a klesají jako váhy, nad nimi 6 a 7 */
  .mv-sestsedm { animation: mvSS .9s ease-in-out infinite; }
  .mv-sestsedm .mv-arm.r { animation: mvSSr .9s ease-in-out infinite; }
  .mv-sestsedm .mv-arm.l { animation: mvSSl .9s ease-in-out infinite; }
  .mv-sestsedm .cislo.s6 { animation: mvCis .9s ease-in-out infinite; }
  .mv-sestsedm .cislo.s7 { animation: mvCis .9s ease-in-out infinite .45s; }
  @keyframes mvSS { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
  @keyframes mvSSr { 0%,100% { transform: rotate(-55deg); } 50% { transform: rotate(-100deg); } }
  @keyframes mvSSl { 0%,100% { transform: rotate(100deg); } 50% { transform: rotate(55deg); } }
  @keyframes mvCis { 0%,100% { opacity: 0; transform: translateY(6px) scale(.6); } 25%,45% { opacity: 1; transform: translateY(-6px) scale(1); } }
  /* gólová oslava: rozběh, výskok a oba ukazováčky k nebi */
  .mv-nebe { animation: mvNebe 2.8s ease-in-out infinite; }
  .mv-nebe .mv-arm.r { animation: mvNebeR 2.8s ease-in-out infinite; }
  .mv-nebe .mv-arm.l { animation: mvNebeL 2.8s ease-in-out infinite; }
  @keyframes mvNebe { 0%,100% { transform: translate(-10px, 0); } 18% { transform: translate(8px, 0) rotate(4deg); } 26% { transform: translate(10px, -16px); } 34%,80% { transform: translate(10px, 0); } 88% { transform: translate(0, 0); } }
  @keyframes mvNebeR { 0%,18%,92%,100% { transform: rotate(0deg); } 30%,80% { transform: rotate(-168deg); } 45% { transform: rotate(-162deg); } 60% { transform: rotate(-170deg); } }
  @keyframes mvNebeL { 0%,18%,92%,100% { transform: rotate(0deg); } 30%,80% { transform: rotate(168deg); } 45% { transform: rotate(162deg); } 60% { transform: rotate(170deg); } }
  /* jízda v tramvaji: drží se poutka a houpe se, za okny ubíhá město */
  .mv-tramvaj { animation: mvTram 1.6s ease-in-out infinite; }
  .mv-tramvaj .mv-arm.r { animation: mvTramR 1.6s ease-in-out infinite; }
  .mv-tramvaj .okno { animation: mvOkno 1.2s linear infinite; }
  @keyframes mvTram { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(1px); } }
  @keyframes mvTramR { 0%,100% { transform: rotate(-168deg); } 50% { transform: rotate(-176deg); } }
  @keyframes mvOkno { from { background-position: 0 0; } to { background-position: -40px 0; } }
  /* jízda na koni: cval nahoru a dolů, kůň hýbe nohama */
  .mv-kun { animation: mvKun .5s ease-in-out infinite; }
  .mv-kun .mv-arm.r { transform: rotate(-35deg); }
  .mv-kun .noha.n1, .mv-kun .noha.n3 { animation: mvNoha .5s ease-in-out infinite; }
  .mv-kun .noha.n2, .mv-kun .noha.n4 { animation: mvNoha .5s ease-in-out infinite reverse; }
  .mv-kun .ocas { animation: mvOcas .5s ease-in-out infinite; }
  @keyframes mvKun { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
  @keyframes mvNoha { 0%,100% { transform: rotate(-25deg); } 50% { transform: rotate(25deg); } }
  @keyframes mvOcas { 0%,100% { transform: rotate(20deg); } 50% { transform: rotate(45deg); } }
  /* chill: ruce za hlavou, brýle, pomalé pohupování a noty */
  .mv-chill { animation: mvChill 3.2s ease-in-out infinite; }
  .mv-chill .nota { animation: mvNota 3.2s ease-out infinite; }
  .mv-chill .nota.b { animation-delay: 1.6s; }
  @keyframes mvChill { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } }
  @keyframes mvNota { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(18px, -40px) rotate(15deg); } }
  /* vyplazený jazyk: ruce u uší, kroutí hlavou */
  .mv-jazyk { animation: mvJazyk .5s ease-in-out infinite; }
  .mv-jazyk .mv-arm.r { animation: mvUchoR .25s ease-in-out infinite alternate; }
  .mv-jazyk .mv-arm.l { animation: mvUchoL .25s ease-in-out infinite alternate; }
  .mv-jazyk .jazyk { animation: mvJaz .5s ease-in-out infinite; }
  .mv-jazyk .nene { animation: mvCis 1s ease-in-out infinite; }
  @keyframes mvJazyk { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
  @keyframes mvUchoR { from { transform: rotate(163deg); } to { transform: rotate(172deg); } }
  @keyframes mvUchoL { from { transform: rotate(-163deg); } to { transform: rotate(-172deg); } }
  @keyframes mvJaz { 0%,100% { transform: translateX(-50%) scaleY(1); } 50% { transform: translateX(-50%) scaleY(.75) rotate(8deg); } }
  /* fotbalový fanoušek: šála na krku, skáče a pumpuje pěstmi */
  .mv-fanousek { animation: mvSkok .7s ease-in-out infinite; }
  .mv-fanousek .mv-arm.r { animation: mvPestR .7s ease-in-out infinite; }
  .mv-fanousek .mv-arm.l { animation: mvPestL .7s ease-in-out infinite; }
  .mv-fanousek .ole { animation: mvCis 1.4s ease-in-out infinite; }
  .mv-fanousek .sala-k { animation: mvSala .7s ease-in-out infinite; }
  @keyframes mvPestR { 0%,100% { transform: rotate(-140deg); } 50% { transform: rotate(-176deg); } }
  @keyframes mvPestL { 0%,100% { transform: rotate(176deg); } 50% { transform: rotate(140deg); } }
  @keyframes mvSala { 0%,100% { transform: rotate(4deg); } 50% { transform: rotate(-10deg); } }
  /* líže zmrzlinu: kornout u pusy, jazyk líže */
  .mv-zmrzlina .mv-arm.r { animation: mvZmr 1.4s ease-in-out infinite; }
  .mv-zmrzlina .liz { animation: mvLiz 1.4s ease-in-out infinite; }
  @keyframes mvZmr { 0%,100% { transform: rotate(92deg); } 45%,60% { transform: rotate(104deg); } }
  @keyframes mvLiz { 0%,35%,75%,100% { transform: translateX(-50%) scale(1, 0); } 50%,60% { transform: translateX(-50%) rotate(35deg) scale(1, 1); } }
  /* pije limonádu: brčko u pusy, ubývá limonáda, bublinky */
  .mv-limonada { animation: mvLimo 3s ease-in-out infinite; }
  .mv-limonada .mv-arm.r { animation: mvLimoR 3s ease-in-out infinite; }
  .mv-limonada .limo { animation: mvHlad 3s ease-in-out infinite; }
  .mv-limonada .bublina { animation: mvBubl 1s ease-in infinite; }
  .mv-limonada .bublina.b { animation-delay: .5s; }
  @keyframes mvLimo { 0%,100% { transform: rotate(0); } 40%,80% { transform: rotate(-3deg); } }
  @keyframes mvLimoR { 0%,100% { transform: rotate(60deg); } 20%,85% { transform: rotate(96deg); } }
  @keyframes mvHlad { 0%,20% { height: 80%; } 85% { height: 12%; } 100% { height: 80%; } }
  @keyframes mvBubl { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-12px); opacity: 0; } }
  /* na záchodě: sedí v kabince, zamyšleně se napíná, čte noviny a mumlá */
  .mv-zachod { animation: mvZach 2.4s ease-in-out infinite; }
  .mv-zachod .mv-arm.r { animation: mvZachR 2.4s ease-in-out infinite; }
  .mv-zachod .hmm { animation: mvCis 2.4s ease-in-out infinite; }
  @keyframes mvZach { 0%,100% { transform: translateY(0); } 30%,38% { transform: translateY(2px) rotate(-2deg); } 34% { transform: translateY(2px) rotate(2deg); } 60% { transform: translateY(0); } }
  @keyframes mvZachR { 0%,100% { transform: rotate(100deg); } 50% { transform: rotate(108deg); } }
  /* brrr, zima: třese se zimou, ruce kolem těla, padají vločky */
  .mv-brr { animation: mvBrr .12s linear infinite; }
  .mv-brr .vlocka { animation: mvVlocka 2.4s linear infinite; }
  .mv-brr .vlocka.b { animation-delay: .8s; }
  .mv-brr .vlocka.c { animation-delay: 1.6s; }
  @keyframes mvBrr { 0%,100% { transform: translateX(-1.5px); } 50% { transform: translateX(1.5px); } }
  /* koulovačka: nabere sníh, napřáhne se a hodí kouli, ta doletí a plesk */
  .mv-koule { animation: mvKoule 1.8s ease-in-out infinite; }
  .mv-koule .mv-arm.r { animation: mvKouleR 1.8s ease-in-out infinite; }
  .mv-koule .mv-arm.r .koule-v { animation: mvKouleV 1.8s steps(1) infinite; }
  .mv-koule .koule-l { animation: mvKouleL 1.8s ease-out infinite; }
  .mv-koule .plesk { animation: mvPlesk 1.8s ease-out infinite; }
  @keyframes mvKoule { 0%,30%,100% { transform: rotate(0); } 45% { transform: rotate(-4deg); } 55% { transform: rotate(4deg); } }
  @keyframes mvKouleR { 0%,10% { transform: rotate(20deg); } 40% { transform: rotate(-165deg); } 55% { transform: rotate(-70deg); } 100% { transform: rotate(20deg); } }
  @keyframes mvKouleV { 0% { opacity: 1; } 52% { opacity: 0; } 95% { opacity: 1; } }
  @keyframes mvKouleL { 0%,52% { opacity: 0; transform: translate(0, 0) scale(.8); } 56% { opacity: 1; } 80% { opacity: 1; transform: translate(46px, -4px) scale(1); } 84%,100% { opacity: 0; transform: translate(50px, 2px) scale(1.4); } }
  @keyframes mvPlesk { 0%,80% { opacity: 0; transform: scale(.4); } 86% { opacity: 1; transform: scale(1.1); } 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
  /* žonglování s bombami (podnět 452): tři černé bomby s hořícím doutnákem obíhají nad hlavou z ruky do ruky */
  /* bubeník (Kaisa 26. 11.): ruce s paličkami střídavě bubnují do dvou bubínků, při úderu BUM! a TÁK! */
  .mv-bubny { animation: mvBubny .5s ease-in-out infinite; }
  .mv-bubny .mv-arm.r { animation: mvBubR 1s ease-in infinite; }
  .mv-bubny .mv-arm.l { animation: mvBubL 1s ease-in infinite .5s; }
  .mv-bubny .buben.r { animation: mvBuben 1s ease-out infinite; }
  .mv-bubny .buben.l { animation: mvBuben 1s ease-out infinite .5s; }
  .mv-bubny .bum { animation: mvBum 1s ease-out infinite; }
  .mv-bubny .bum.b { animation-delay: .5s; }
  @keyframes mvBubny { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  @keyframes mvBubR { 0%,100% { transform: rotate(-22deg); } 50% { transform: rotate(-80deg); } }
  @keyframes mvBubL { 0%,100% { transform: rotate(22deg); } 50% { transform: rotate(80deg); } }
  @keyframes mvBuben { 0%,8% { transform: scaleY(.8); } 25%,100% { transform: scaleY(1); } }
  @keyframes mvBum { 0% { opacity: 1; transform: translateY(0) scale(1.1); } 35% { opacity: 1; transform: translateY(-10px) scale(1); } 50%,100% { opacity: 0; transform: translateY(-14px) scale(.9); } }
  .mv-zongl .mv-arm.r { animation: mvZonglR .8s ease-in-out infinite; }
  .mv-zongl .mv-arm.l { animation: mvZonglL .8s ease-in-out infinite; }
  .mv-zongl .bomba.b1 { animation: mvBomba1 2.4s linear infinite; }
  .mv-zongl .bomba.b2 { animation: mvBomba2 2.4s linear infinite; }
  .mv-zongl .bomba.b3 { animation: mvBomba3 2.4s linear infinite; }
  .mv-zongl .plamen { animation: mvPlamen .3s ease-in-out infinite alternate; }
  @keyframes mvZonglR { 0%,100% { transform: rotate(-16deg); } 50% { transform: rotate(-36deg); } }
  @keyframes mvZonglL { 0%,100% { transform: rotate(36deg); } 50% { transform: rotate(16deg); } }
  @keyframes mvBomba1 { 0% { transform: translate(54px, 82px); } 8.3% { transform: translate(50px, 33px); } 16.7% { transform: translate(38px, -9px); } 25% { transform: translate(21px, -36px); } 33.3% { transform: translate(0px, -46px); } 41.7% { transform: translate(-21px, -36px); } 50% { transform: translate(-38px, -9px); } 58.3% { transform: translate(-50px, 33px); } 66.7% { transform: translate(-54px, 82px); } 75% { transform: translate(-26px, 90px); } 83.3% { transform: translate(0px, 94px); } 91.7% { transform: translate(26px, 90px); } 100% { transform: translate(54px, 82px); } }
  @keyframes mvBomba2 { 0% { transform: translate(0px, -46px); } 8.3% { transform: translate(-21px, -36px); } 16.7% { transform: translate(-38px, -9px); } 25% { transform: translate(-50px, 33px); } 33.3% { transform: translate(-54px, 82px); } 41.7% { transform: translate(-26px, 90px); } 50% { transform: translate(0px, 94px); } 58.3% { transform: translate(26px, 90px); } 66.7% { transform: translate(54px, 82px); } 75% { transform: translate(50px, 33px); } 83.3% { transform: translate(38px, -9px); } 91.7% { transform: translate(21px, -36px); } 100% { transform: translate(0px, -46px); } }
  @keyframes mvBomba3 { 0% { transform: translate(-54px, 82px); } 8.3% { transform: translate(-26px, 90px); } 16.7% { transform: translate(0px, 94px); } 25% { transform: translate(26px, 90px); } 33.3% { transform: translate(54px, 82px); } 41.7% { transform: translate(50px, 33px); } 50% { transform: translate(38px, -9px); } 58.3% { transform: translate(21px, -36px); } 66.7% { transform: translate(0px, -46px); } 75% { transform: translate(-21px, -36px); } 83.3% { transform: translate(-38px, -9px); } 91.7% { transform: translate(-50px, 33px); } 100% { transform: translate(-54px, 82px); } }
  @keyframes mvPlamen { from { transform: scale(.8) rotate(-12deg); } to { transform: scale(1.25) rotate(12deg); } }
  @keyframes mvVlocka { 0% { opacity: 0; transform: translateY(0) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(70px) rotate(120deg); } }
  /* plave kraula: ve vodě, ruce se točí střídavě, cáká */
  .mv-kraul { animation: mvKraul 1.2s ease-in-out infinite; }
  .mv-kraul .mv-arm.r { animation: mvSpin 1.2s linear infinite reverse; }
  .mv-kraul .mv-arm.l { animation: mvSpin 1.2s linear infinite -.6s; }
  .mv-kraul .voda { animation: mvVoda 1.4s linear infinite; }
  .mv-kraul .kapka { animation: mvKapka 1.2s ease-out infinite; }
  .mv-kraul .kapka.b { animation-delay: .6s; }
  @keyframes mvKraul { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(4px) rotate(4deg); } }
  @keyframes mvVoda { from { background-position: 0 0; } to { background-position: 28px 0; } }
  @keyframes mvKapka { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -26px); } }
  /* blesková póza: nadskočí, jedna ruka míří k nebi, druhá přes hruď, zablýskne se */
  .mv-blesk { animation: mvBlesk 2.6s ease-in-out infinite; }
  .mv-blesk .mv-arm.r { animation: mvBleskR 2.6s ease-in-out infinite; }
  .mv-blesk .mv-arm.l { animation: mvBleskL 2.6s ease-in-out infinite; }
  .mv-blesk .bz { animation: mvBz 2.6s ease-in-out infinite; }
  @keyframes mvBlesk { 0%,12%,92%,100% { transform: translate(0, 0) rotate(0); } 20% { transform: translate(0, -12px) rotate(0); } 28%,84% { transform: translate(4px, 0) rotate(7deg); } }
  @keyframes mvBleskR { 0%,14%,90%,100% { transform: rotate(0deg); } 28%,84% { transform: rotate(62deg); } }
  @keyframes mvBleskL { 0%,14%,90%,100% { transform: rotate(0deg); } 28%,84% { transform: rotate(128deg); } }
  @keyframes mvBz { 0%,28%,88%,100% { opacity: 0; } 32%,44%,56% { opacity: 1; } 38%,50% { opacity: .2; } 60%,84% { opacity: 1; } }
  /* Kuba: drží plank, třese se námahou, z čela kape pot */
  .mv-kuba { animation: mvKuba .18s linear infinite; }
  .mv-kuba .pot { animation: mvPot 1.4s ease-in infinite; }
  .mv-kuba .pot.b { animation-delay: .7s; }
  .mv-kuba .stopky { animation: mvCis 2s ease-in-out infinite; }
  @keyframes mvKuba { 0%,100% { transform: var(--plank) translateY(0); } 50% { transform: var(--plank) translateX(1.5px); } }
  @keyframes mvPot { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, 0); } }
  @keyframes mvSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .mv-robot .mv-arm.r, .mv-vlna .mv-arm.r { animation: mvMav .5s ease-in-out infinite alternate; }
  @keyframes mvMoon { 0%,100% { transform: translateX(14px) skewX(-4deg); } 50% { transform: translateX(-14px) skewX(-4deg); } }
  @keyframes mvRobot { 0% { transform: translateX(-6px) rotate(0); } 25% { transform: translateX(0) rotate(-8deg); } 50% { transform: translateX(6px) rotate(0); } 75% { transform: translateX(0) rotate(8deg); } }
  @keyframes mvVlna { 0%,100% { transform: scaleY(1) rotate(0); } 25% { transform: scaleY(1.08) rotate(-5deg); } 75% { transform: scaleY(.94) rotate(5deg); } }
  @keyframes mvSalto { 0%,50%,100% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-34px) rotate(-180deg); } 90% { transform: translateY(-10px) rotate(-340deg); } }
  @keyframes mvKolo { 0%,55%,100% { transform: translateX(0) rotate(0); } 80% { transform: translateX(18px) rotate(180deg); } 95% { transform: translateX(6px) rotate(350deg); } }
  .mv-mavani .mv-arm.r, .mv-radost .mv-arm { animation: mvMav .5s ease-in-out infinite alternate; }
  .mv-radost .mv-arm.l { animation-direction: alternate-reverse; }
  .mv-tanec .mv-arm.r { animation: mvMav .4s ease-in-out infinite alternate; }
  .mv-tanec .mv-arm.l { animation: mvMav .4s ease-in-out infinite alternate-reverse; }
  @keyframes mvTanec { 0%,100% { transform: translateX(-5px) rotate(-6deg); } 50% { transform: translateX(5px) rotate(6deg); } }
  @keyframes mvSkok { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-22px); } }
  @keyframes mvOtocka { 0%,60% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
  @keyframes mvPozdrav { 0%,55%,100% { transform: rotate(0); } 20%,35% { transform: rotate(14deg) translateY(4px); } }
  @keyframes mvRadost { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-12px) scale(1.04); } }
  @keyframes mvMav { from { transform: rotate(-150deg); } to { transform: rotate(-110deg); } }
}
.mv-arm { transform: rotate(0); }
.mv-arm .dlan { position: absolute; left: -5px; bottom: -10px; width: 18px; height: 9px; border: 2px solid #0B0F1A; }
.cislo { position: absolute; top: -44px; font: 400 24px/1 "Paytone One", var(--f-display, system-ui), sans-serif; color: #FFC93C; -webkit-text-stroke: 1px #0B0F1A; opacity: 0; }
.cislo.s6 { right: -34px; } .cislo.s7 { left: -34px; }
.mv-arm .prst { position: absolute; left: 1px; bottom: -9px; width: 7px; height: 9px; border: 2px solid #0B0F1A; border-top: 0; }
.holub { position: absolute; bottom: 0; width: 26px; height: 18px; transform: scale(-1.5, 1.5); transform-origin: 50% 100%; }
.holub .tl { position: absolute; left: 0; bottom: 3px; width: 20px; height: 12px; background: #9AA3B5; border: 2px solid #0B0F1A; }
.holub .hl { position: absolute; right: 0; bottom: 9px; width: 11px; height: 10px; background: #7C8CA8; border: 2px solid #0B0F1A; transform-origin: 30% 100%; }
.holub .hl i { position: absolute; right: -6px; top: 3px; width: 5px; height: 3px; background: #F5A524; }
.holub .hl b { position: absolute; left: 3px; top: 2px; width: 3px; height: 3px; background: #0B0F1A; }
.holub .nh { position: absolute; left: 7px; bottom: 0; width: 6px; height: 3px; background: #F08A24; }
.prd { position: absolute; left: -10px; top: 92px; width: 22px; height: 16px; border-radius: 50%; background: #A8D86E; border: 2px solid #5E8F2E; opacity: 0; }
.zach-n { position: absolute; left: -8px; right: -8px; top: 38px; height: 44px; background: #F4F1E8; border: 3px solid #0B0F1A; z-index: -1; }
.zach-n::after { content: ""; position: absolute; right: 6px; top: 6px; width: 10px; height: 6px; background: #9AA8BC; border: 2px solid #0B0F1A; }
.zach-m { position: absolute; left: -16px; right: -16px; top: 104px; height: 34px; background: #F4F1E8; border: 3px solid #0B0F1A; border-radius: 4px 4px 22px 22px; z-index: 2; }
.zach-m::before { content: ""; position: absolute; left: 6px; right: 6px; top: -6px; height: 8px; background: #8A5A2C; border: 2px solid #0B0F1A; border-radius: 4px; }
.noviny { position: absolute; left: -10px; top: -2px; width: 22px; height: 26px; background: #fff; border: 2px solid #0B0F1A; display: block; background-image: repeating-linear-gradient(0deg, #0B0F1A 0 2px, transparent 2px 6px); background-size: 14px 100%; background-repeat: no-repeat; background-position: 3px 3px; }
.hmm { position: absolute; top: -40px; left: 50%; margin-left: -36px; width: 72px; text-align: center; font: 400 15px/1 "Paytone One", var(--f-display, system-ui), sans-serif; color: #fff; -webkit-text-stroke: 1px #0B0F1A; opacity: 0; }
.drobek { position: absolute; width: 5px; height: 5px; background: #E3B04B; opacity: 0; }
.mv-static .mv-arm.r { transform: rotate(-130deg); }
/* doplňky nových pohybů (klidová poloha, když jsou animace vypnuté) */
.mv-tramvaj .mv-arm.r { transform: rotate(-172deg); }
.mv-chill .mv-arm { z-index: -1; } .mv-chill .mv-arm.r { transform: rotate(172deg); } .mv-chill .mv-arm.l { transform: rotate(-172deg); }
.mv-chill .mv-arm.r::after, .mv-chill .mv-arm.l::after { content: ""; position: absolute; bottom: -4px; left: -16px; width: 20px; height: 12px; background: inherit; border: 3px solid #0B0F1A; }
.mv-chill .mv-arm.l::after { left: 4px; }
.mv-jazyk .mv-arm.r { transform: rotate(168deg); } .mv-jazyk .mv-arm.l { transform: rotate(-168deg); }
.mv-fanousek .mv-arm.r { transform: rotate(-160deg); } .mv-fanousek .mv-arm.l { transform: rotate(160deg); }
.mv-zmrzlina .mv-arm.r { transform: rotate(100deg); } .mv-limonada .mv-arm.r { transform: rotate(96deg); }
.mv-brr .mv-arm.r { transform: rotate(105deg); } .mv-brr .mv-arm.l { transform: rotate(-105deg); }
.mv-koule .mv-arm.r { transform: rotate(-150deg); }
.mv-zongl .mv-arm.r { transform: rotate(-26deg); } .mv-zongl .mv-arm.l { transform: rotate(26deg); }
.mv-bubny .mv-arm.r { transform: rotate(-22deg); } .mv-bubny .mv-arm.l { transform: rotate(22deg); }
.palicka { position: absolute; left: 3px; bottom: -30px; width: 5px; height: 26px; background: #C9A26B; border: 1px solid #0B0F1A; border-radius: 2px; }
.palicka::after { content: ""; position: absolute; left: -3px; bottom: -6px; width: 9px; height: 9px; border-radius: 50%; background: #F4F8FF; border: 1px solid #0B0F1A; }
.buben { position: absolute; top: 98px; width: 30px; height: 22px; border-radius: 4px; background: #E5484D; border: 3px solid #0B0F1A; box-shadow: inset 0 6px 0 #F4F8FF; transform-origin: 50% 100%; }
.buben.r { right: -44px; } .buben.l { left: -44px; }
.bum { position: absolute; top: 4px; right: -92px; width: 56px; text-align: center; font: 400 15px/1 "Paytone One", var(--f-display, system-ui), sans-serif; color: #FFD12E; -webkit-text-stroke: 1px #0B0F1A; opacity: 0; }
.bum.b { right: auto; left: -92px; color: #BDE6FF; }
.bomba { position: absolute; left: 50%; top: 0; margin-left: -10px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 34% 32%, #5A6070 0 3px, #1A1D26 4px); border: 2px solid #0B0F1A; z-index: 4; }
.bomba::before { content: ""; position: absolute; right: -1px; top: -7px; width: 3px; height: 8px; background: #C9A26B; border: 1px solid #0B0F1A; transform: rotate(30deg); }
.plamen { position: absolute; right: -7px; top: -15px; width: 9px; height: 11px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #FFE066 0 2px, #F5A524 3px, #E5484D 5px); border: 1px solid #0B0F1A; }
.bomba.b1 { transform: translate(0px, -46px); } .bomba.b2 { transform: translate(44px, 14px); } .bomba.b3 { transform: translate(-44px, 14px); }
.koule-v { position: absolute; left: -4px; bottom: -20px; width: 15px; height: 15px; border-radius: 50%; background: #F4F8FF; border: 2px solid #0B0F1A; }
.koule-l { position: absolute; right: -40px; top: -6px; width: 16px; height: 16px; border-radius: 50%; background: #F4F8FF; border: 2px solid #0B0F1A; opacity: 0; }
.plesk { position: absolute; right: -88px; top: -22px; width: 68px; text-align: center; font: 400 16px/1 "Paytone One", var(--f-display, system-ui), sans-serif; color: #BDE6FF; -webkit-text-stroke: 1px #0B0F1A; opacity: 0; }
.mv-kraul .mv-arm.r { transform: rotate(-160deg); } .mv-kraul .mv-arm.l { transform: rotate(-20deg); }
.mv-kuba { --plank: translate(-50px, -32px) rotate(64deg); transform: var(--plank); }
.mv-kuba .mv-arm.r { transform: rotate(-64deg); height: 22px; }
.pot { position: absolute; top: 10px; right: -2px; width: 7px; height: 9px; background: #8FD0F2; border: 2px solid #0B0F1A; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; opacity: 0; }
.pot.b { top: 26px; }
.stopky { position: absolute; top: 4px; left: -40px; font-size: 22px; opacity: 0; transform: rotate(-64deg); }
.mv-zachod .mv-arm.r { transform: rotate(100deg); }
.mv-blesk .mv-arm.r { transform: rotate(62deg); } .mv-blesk .mv-arm.l { transform: rotate(128deg); }
.tram-z { position: absolute; left: -50px; right: -50px; top: -14px; height: 150px; background: #F4ECD6; border: 3px solid #0B0F1A; border-top: 10px solid #D6302C; z-index: -1; }
.tram-z .okno { position: absolute; top: 18px; left: 6px; width: 30px; height: 40px; border: 3px solid #0B0F1A; background: repeating-linear-gradient(90deg, #8FD0F2 0 10px, #6CA7D8 10px 14px, #8FD0F2 14px 20px, #A9C98A 20px 26px, #8FD0F2 26px 40px); }
.tram-z .okno.b { left: auto; right: 6px; }
.tram-z .tyc { position: absolute; top: 0; left: 14px; right: 14px; height: 4px; background: #9AA8BC; }
.poutko { position: absolute; left: -2px; bottom: -24px; width: 14px; height: 14px; border: 3px solid #0B0F1A; border-radius: 50%; }
.poutko::after { content: ""; position: absolute; left: 3px; top: 10px; width: 3px; height: 14px; background: #0B0F1A; }
.tram-p { position: absolute; left: -50px; right: -50px; top: 96px; height: 46px; background: #D6302C; border: 3px solid #0B0F1A; z-index: 2; }
.tram-p b { position: absolute; left: 8px; top: 6px; font: 400 14px/1 "Paytone One", var(--f-display, system-ui), sans-serif; color: #F4ECD6; }
.tram-p::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 6px; background: #F4ECD6; }
.tram-p .kolo { position: absolute; bottom: -12px; left: 18px; width: 18px; height: 18px; border-radius: 50%; background: #0B0F1A; }
.tram-p .kolo.b { left: auto; right: 18px; }
.kun { position: absolute; left: -44px; right: -48px; top: 82px; height: 74px; z-index: 2; pointer-events: none; }
.kun .trup { position: absolute; left: 12px; right: 18px; top: 20px; height: 30px; background: #9A6534; border: 3px solid #0B0F1A; }
.kun .sedlo { position: absolute; left: 50%; top: 16px; width: 44px; height: 14px; margin-left: -26px; background: #C0392B; border: 3px solid #0B0F1A; }
.kun .krk { position: absolute; right: 8px; top: 0; width: 16px; height: 34px; background: #9A6534; border: 3px solid #0B0F1A; transform: rotate(18deg); }
.kun .hlava { position: absolute; right: -14px; top: -4px; width: 28px; height: 16px; background: #9A6534; border: 3px solid #0B0F1A; }
.kun .hlava b { position: absolute; left: 6px; top: 2px; width: 4px; height: 4px; background: #0B0F1A; }
.kun .hriva { position: absolute; right: 18px; top: -2px; width: 8px; height: 26px; background: #3B2414; transform: rotate(18deg); }
.kun .ocas { position: absolute; left: 0; top: 22px; width: 10px; height: 30px; background: #3B2414; transform-origin: 50% 0; transform: rotate(30deg); }
.kun .noha { position: absolute; top: 48px; width: 9px; height: 24px; background: #8A5A2C; border: 2px solid #0B0F1A; transform-origin: 50% 0; }
.kun .n1 { left: 18px; } .kun .n2 { left: 32px; } .kun .n3 { right: 34px; } .kun .n4 { right: 22px; }
.brejle { position: absolute; left: 50%; top: 17px; width: 50px; height: 12px; margin-left: -25px; display: flex; justify-content: space-between; border-top: 3px solid #0B0F1A; }
.brejle i, .bryle i { width: 20px; height: 12px; background: #0B0F1A; border: 2px solid #0B0F1A; }
.vlocka { position: absolute; top: -34px; left: 50%; margin-left: -24px; font-size: 16px; color: #BDE6FF; -webkit-text-stroke: .5px #0B0F1A; opacity: 0; }
.vlocka.b { margin-left: 10px; font-size: 13px; } .vlocka.c { margin-left: -8px; top: -44px; font-size: 11px; }
.nota { position: absolute; top: -10px; right: -22px; font-size: 20px; color: #FFC93C; opacity: 0; }
.jazyk { position: absolute; left: 50%; top: 40px; width: 18px; height: 20px; background: #FF6F91; border: 2px solid #0B0F1A; border-top: 0; transform: translateX(-50%); transform-origin: 50% 0; z-index: 2; }
.jazyk.liz { left: 40%; top: 38px; height: 12px; transform: translateX(-50%) scale(1, 0); }
.nene { position: absolute; top: -40px; left: 50%; margin-left: -36px; width: 72px; text-align: center; font: 400 16px/1 "Paytone One", var(--f-display, system-ui), sans-serif; color: #FF6F91; -webkit-text-stroke: 1px #0B0F1A; opacity: 0; }
.vruce { position: absolute; left: 50%; bottom: -8px; width: 0; height: 0; transform: rotate(-100deg); }
.mv-limonada .vruce { transform: rotate(-96deg); }
.kornout { position: absolute; left: -7px; top: -14px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 20px solid #E0A458; }
.kopecek { position: absolute; left: -9px; top: -26px; width: 18px; height: 16px; border-radius: 50%; background: #FF9EC4; border: 2px solid #0B0F1A; }
.kopecek.b { top: -38px; left: -7px; width: 14px; height: 13px; background: #FFF3C4; }
.sklenice { position: absolute; left: -9px; top: -20px; width: 18px; height: 26px; border: 2px solid #0B0F1A; border-top: 0; background: rgba(255,255,255,.55); overflow: hidden; display: block; }
.limo { position: absolute; left: 0; right: 0; bottom: 0; height: 80%; background: #FFD84D; display: block; }
.bublina { position: absolute; left: 4px; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: #fff; display: block; }
.bublina.b { left: 10px; }
.slamka { position: absolute; left: 2px; top: -36px; width: 4px; height: 22px; background: #E64A4A; transform: rotate(-24deg); transform-origin: 50% 100%; }
.sala { position: absolute; left: 50%; top: 52px; width: 64px; height: 10px; margin-left: -32px; background: repeating-linear-gradient(90deg, #E2231A 0 8px, #FFFFFF 8px 16px); border: 2px solid #0B0F1A; z-index: 2; }
.sala-k { position: absolute; left: 14px; top: 58px; width: 12px; height: 34px; background: repeating-linear-gradient(0deg, #E2231A 0 7px, #FFFFFF 7px 14px); border: 2px solid #0B0F1A; z-index: 2; transform-origin: 50% 0; }
.ole { position: absolute; top: -40px; left: 50%; margin-left: -34px; width: 68px; text-align: center; font: 400 18px/1 "Paytone One", var(--f-display, system-ui), sans-serif; color: #FFC93C; -webkit-text-stroke: 1px #0B0F1A; opacity: 0; }
.voda { position: absolute; left: -54px; right: -54px; top: 84px; height: 62px; z-index: 3; background: radial-gradient(circle at 7px 0, transparent 7px, #3FA9F5 8px) 0 0 / 14px 100% repeat-x; opacity: .92; }
.kapka { position: absolute; top: 80px; right: -22px; width: 6px; height: 6px; border-radius: 50%; background: #8FD0F2; opacity: 0; --dx: 10px; z-index: 3; }
.kapka.b { right: auto; left: -22px; --dx: -10px; }
.bryle { position: absolute; left: 50%; top: 17px; width: 50px; height: 12px; margin-left: -25px; display: flex; justify-content: space-between; }
.bryle i { background: #3FA9F5; border-radius: 4px; }
.bz { position: absolute; left: -64px; top: -40px; width: 30px; height: 44px; background: #FFE14D; clip-path: polygon(55% 0, 10% 55%, 45% 55%, 25% 100%, 90% 38%, 52% 38%, 75% 0); opacity: 0; filter: drop-shadow(0 0 4px #FFE14D); }
/* wardrobe */
.stage { height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 18px; }
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; background: #EFEDFA; border-radius: 14px; padding: 4px; }
.tabs button { border: 0; background: none; border-radius: 10px; padding: 9px 0; font-size: 12px; font-weight: 800; color: var(--paper-muted); }
.tabs button[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); font-weight: 900; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.item { border: 2px solid var(--line); background: var(--paper); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--paper-ink); min-width: 0; }
.item .th { height: 46px; display: grid; place-items: center; }
.item .mvth { height: 60px; width: 100%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; padding-bottom: 2px; }
.mvth * { animation-delay: var(--t) !important; animation-play-state: paused !important; }
.item.on .mvth * { animation-play-state: running !important; }
.mvth .mv-salto, .mvth .mv-kolo { animation: none !important; transform-origin: 50% 50%; }
.mvth .mv-salto { transform: translateY(-20px) rotate(-140deg); } .mvth .mv-kolo { transform: translateY(-14px) rotate(90deg); }
.item span { font-size: 12px; }
.item small { font-size: 11px; color: var(--ok); font-weight: 800; }
.item.on { border: 3px solid var(--accent); background: #EFEDFA; }
.item.on small { color: var(--accent); }
.item.lock { border-style: dashed; color: #8D88C7; }
.item.lock small { color: #8D88C7; }
.item.buy small { color: var(--gold-2); }
.item .pbar { width: 80%; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.item .pbar i { display: block; height: 100%; background: var(--accent); }
.lookrow { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.lookrow b { font-size: 14px; }
.sw { display: flex; flex-wrap: wrap; gap: 8px; }
.sw button { width: 44px; height: 44px; border-radius: 12px; border: 3px solid var(--line); padding: 0; }
.sw button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold); }
.sw .styl { width: auto; padding: 0 12px; background: var(--paper); font-weight: 800; font-size: 13px; color: var(--paper-ink); }

/* sheets & overlays */
.veil { position: fixed; inset: 0; z-index: 40; background: rgba(15, 12, 40, .7); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; background: var(--paper); color: var(--paper-ink); border-radius: 26px 26px 0 0; padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; max-height: 92vh; overflow: auto; }
.sheet h2 { font-size: 24px; }
.sheet p { margin: 0; color: var(--paper-muted); font-weight: 600; }
.sheet .kv { display: flex; justify-content: space-between; font-size: 14px; }
.full { position: fixed; inset: 0; z-index: 50; background: var(--sky); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); background-image: repeating-conic-gradient(from 0deg at 50% 32%, rgba(255,201,60,.08) 0deg 10deg, transparent 10deg 20deg); }
.full .tag { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.full .big { font-family: var(--f-display); font-size: 120px; line-height: .9; color: var(--gold); text-shadow: 6px 6px 0 #B8603A; }
.full h1 { font-size: 30px; }
.full p { margin: 0; color: var(--muted); max-width: 30ch; }
.full .card { width: 100%; max-width: 420px; text-align: left; }
/* víc nových ostrovů najednou (Martin 10. 11.: dlouhý seznam se světlým textem nešel číst): mřížka ikon s názvem, posuvná */
.newisl { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: min(42vh, 360px); overflow-y: auto; }
.newisl li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border-radius: 14px; background: #F1EFFF; color: var(--ink); text-align: center; }
.newisl .ic { width: 56px; height: 50px; display: flex; align-items: flex-end; justify-content: center; }
.newisl .ic svg { width: 56px; height: 56px; }
.newisl b { font-size: 13px; line-height: 1.2; }
.newisl small { font-size: 11px; color: #4A4F6A; }
.full .card .more { color: var(--ink); font-size: 14px; max-width: none; margin-top: 8px; }
.full .cta { max-width: 420px; }
.full .later { background: none; border: 0; color: var(--muted); padding: 10px; }
/* Oblékni teď (podnět 558): dvě velká tlačítka pod sebou (palec na telefonu), ikona v hlavním, reproduktor pro nečtenáře */
.wearc .cta { display: flex; align-items: center; justify-content: center; gap: 10px; height: 62px; font-size: 21px; }
.wearc .cta.ghost { height: 54px; font-size: 18px; }
.wearc .most-say { display: grid; place-items: center; }
.wearc .most-say .aic { stroke: #fff; }
.wearc .pop { margin-top: 34px; }   /* koruna, klobouk nebo křídla nesmí zakrýt štítek nahoře */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--ink); border: 2px solid var(--gold); border-radius: 999px; padding: 9px 16px; font-size: 14px; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.grades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 420px; }
.grades button { height: 70px; border-radius: 16px; border: 0; background: var(--paper); color: var(--ink); font-family: var(--f-display); font-size: 20px; border-bottom: 5px solid #C9C4EA; }
.gate-box { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding-block: 30px; }
.gate-box p { color: var(--muted); margin: 0; max-width: 32ch; }
.profiles { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.profiles button { border: 0; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 12px 18px; font-size: 18px; font-weight: 900; border-bottom: 5px solid #C9C4EA; }
@media (prefers-reduced-motion: no-preference) {
  .full .big, .full .pop { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
  @keyframes pop { from { transform: scale(.4); opacity: 0; } }
  .veil .sheet { animation: up .25s ease-out; }
  @keyframes up { from { transform: translateY(40%); } }
}
/* postavička ve stylu Aréna (SVG s obrysem) */
.ava-h { width: 56px; height: 50px; position: relative; z-index: 2; }
.ava-h > svg { position: absolute; left: 0; top: 0; width: 56px; height: 50px; overflow: visible; }
.ava-b { width: 64px; height: 56px; position: relative; margin-top: -2px; }
.ava-t { position: absolute; inset: 0; border: 3px solid #0B0F1A; border-radius: 22px 22px 9px 9px; overflow: hidden; }
.ava-t > svg { position: absolute; left: -3px; top: -3px; width: 64px; height: 56px; }
.ava-front { position: absolute; left: 0; top: 0; width: 64px; height: 56px; overflow: visible; z-index: 1; }
.ava-back { position: absolute; left: -40px; top: -10px; width: 144px; height: 90px; overflow: visible; z-index: -1; }
.ava-side { z-index: 3; }
.ava-arm { position: absolute; top: 6px; width: 15px; height: 38px; background: var(--c); border: 3px solid #0B0F1A; border-radius: 9px; z-index: -1; }
.ava-arm::after { content: ""; position: absolute; left: -3px; bottom: -11px; width: 15px; height: 15px; border-radius: 50%; background: var(--s); border: 3px solid #0B0F1A; }
.ava-arm.l { left: -10px; transform: rotate(9deg); } .ava-arm.r { right: -10px; transform: rotate(-9deg); }
.ava-legs { display: flex; gap: 6px; margin-top: -3px; }
.ava-legs i { width: 21px; height: 24px; background: #2A2238; border: 3px solid #0B0F1A; border-top: 0; border-radius: 0 0 10px 10px; box-shadow: inset 0 -7px 0 #0B0F1A; }
.mv-arm { border-radius: 9px; background: var(--c) !important; border-color: #0B0F1A !important; }
.mv-arm .dlan { border-radius: 8px; border-color: #0B0F1A; } .mv-arm .prst { border-radius: 0 0 5px 5px; border-color: #0B0F1A; }
.mface { display: inline-grid; place-items: center; width: 28px; height: 28px; overflow: visible; background: none !important; border: 0 !important; }
.petsvg { display: block; overflow: visible; }
/* ---------- uvítání ---------- */
#welcome { padding-bottom: 10px; }
.wel-lang { position: absolute; top: 10px; right: 16px; z-index: 2; }
.wel-en { margin: 2px 0; max-width: 40ch; font-size: 15px; line-height: 1.4; font-weight: 800; color: #fff; background: rgba(0,0,0,.25); border: 2px solid var(--gold, #FFD12E); border-radius: 12px; padding: 10px 14px; }   /* jen v angličtině: hry a učivo jsou jen česky (Martin 10. 11.) */
.wel-hero { position: relative; text-align: center; padding-top: 18px; padding-bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wel-sky { position: relative; width: 100%; max-width: 520px; height: 290px; overflow: hidden; }
.wel-isl { position: absolute; transform: scale(.62); transform-origin: 0 0; }
.wel-home { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
@media (prefers-reduced-motion: no-preference) { .wel-isl { animation: bob 4s ease-in-out infinite; } .wel-home { animation: bobc 5s ease-in-out infinite; } @keyframes bobc { 50% { transform: translate(-50%, -6px); } } }
.wel-brand { margin: 30px 0 0; line-height: 0; } .wel-logo { width: min(300px, 80vw); height: auto; display: block; filter: drop-shadow(0 4px 0 rgba(0,0,0,.18)); }
.wel-hry { background: rgba(255,255,255,.07); border-radius: 18px; padding: 4px 16px; }
.wel-ucivo { display: flex; align-items: center; min-height: 52px; margin: 0 0 12px; padding: 10px 16px; background: #fff; color: #0B0F1A; border: 3px solid #0B0F1A;
  border-radius: 14px; box-shadow: 0 4px 0 #0B0F1A; font-weight: 900; font-size: 16px; text-decoration: none; }   /* učivo pro rodiče (podnět 525) */
.wel-ucivo:active { transform: translateY(4px); box-shadow: 0 1px 0 #0B0F1A; }
.wel-hry .wel-uc { font-size: 13px; } .wel-hry .wel-uc a { font-size: 13px; text-decoration: underline; }
.wel-hry summary { cursor: pointer; font-weight: 900; font-size: 17px; padding: 12px 0; min-height: 44px; }
.wel-hry ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.wel-hry li { background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wel-hry a { color: var(--gold); text-decoration: none; font-size: 16px; }
.wel-hry li span { font-size: 12px; font-weight: 800; color: var(--muted, rgba(255,255,255,.6)); }
.wel-hry small { font-size: 13px; line-height: 1.35; opacity: .85; }
.wel-sub { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted, rgba(255,255,255,.55)); }
.wel-sub .wel-say { border: 0; padding: 8px 6px; min-height: 44px; font-size: 15px; color: var(--text); opacity: .85; }
.wel-tag { background: var(--sky-3); color: var(--gold); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 900; }
.wel-h1 { font-size: clamp(30px, 8vw, 46px); color: var(--gold); text-shadow: 0 4px 0 var(--ink); }
.wel-motto { margin: -6px 0 0; font-family: var(--f-body); font-weight: 900; font-size: clamp(18px, 5vw, 22px); color: var(--teal, #7FD9CF); letter-spacing: .01em; }
.wel-lead { margin: 0; max-width: 36ch; font-size: 18px; line-height: 1.45; color: var(--text); font-weight: 700; }
.wel-ctas { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 360px; }
.wel-ctas .cta { width: 100%; font-size: 20px; }
.wel-reg { display: flex; flex-direction: column; align-items: center; width: 100%; box-sizing: border-box; border: 2px solid rgba(255,255,255,.35); border-radius: 16px; padding: 10px 14px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 16px; }
.wel-reg small { font-weight: 700; font-size: 12px; opacity: .75; }
.wel-reg:hover { border-color: var(--gold); }
.wel-say { border: 2px solid rgba(255,255,255,.3); background: transparent; color: var(--text); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 800; min-height: 44px; }
.wel-say.sm { padding: 2px 10px; min-height: 36px; font-size: 16px; vertical-align: middle; border-color: var(--line); color: var(--paper-ink); }
.wel-why { color: var(--gold); font-size: 15px; font-weight: 900; text-decoration: none; border: 2px solid rgba(255,201,60,.5); border-radius: 999px; padding: 8px 16px; }
.wel-why:hover { background: rgba(255,201,60,.12); }
.wel-login { color: var(--muted); font-size: 15px; font-weight: 800; padding: 8px; }
.wel-sec { margin-top: 26px; }
.wel-news { display: block; margin: 4px auto 0; max-width: 560px; text-decoration: none; color: #fff; background: #2E3F96; border: 3px solid #0B0F1A; border-radius: 18px; padding: 12px 16px; box-shadow: 0 5px 0 #0B0F1A; }
.wel-news-tag { display: inline-block; background: #FFD12E; color: #0B0F1A; border-radius: 999px; padding: 2px 10px; font: 400 13px var(--f-arena, "Paytone One", system-ui); text-transform: uppercase; }
.wel-news b { display: block; margin: 6px 0 4px; font-size: 17px; line-height: 1.3; } .wel-news-go { color: #FFD12E; font-weight: 900; }
/* ---------- úvod pro 1.–9. třídu: dvě karty (Martin 13. 11.), pohyb jen uvnitř karet ---------- */
#welcome { background: #0D1020; }
.hp { --hk: #0B0F1A; color: #fff; max-width: 1100px; margin: 0 auto; padding-top: 10px; }
.hp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0 6px; } .hp-logo { height: 34px; width: auto; }
.hp-tr { display: flex; align-items: center; gap: 8px; } .hp-btn { color: #fff; text-decoration: none; font-weight: 900; font-size: 14px; border: 2px solid #ffffff40; border-radius: 12px; padding: 7px 12px; }
.hp h1, .hp h2 { text-transform: none !important; -webkit-text-stroke: 0 !important; text-shadow: none !important; transform: none !important; letter-spacing: 0 !important; }
.hp-intro { text-align: center; padding: 4px 0 16px; } .hp-intro h1 { font: clamp(30px, 6vw, 50px)/1.05 var(--f-arena, "Paytone One", system-ui); margin: 0 0 6px; } .hp-intro p { margin: 0; color: #C9CEEA; }
.hp-split { display: grid; gap: 14px; } @media (min-width: 820px) { .hp-split { grid-template-columns: 1fr 1fr; } }
.hp-door { position: relative; overflow: hidden; border-radius: 28px; padding: 22px 20px 20px; min-height: 440px; display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 3px solid var(--hk); text-align: left; }
.hp-door small { font: 13px var(--f-arena, "Paytone One", system-ui); letter-spacing: .1em; text-transform: uppercase; }
.hp-door h2 { font: clamp(26px, 4.5vw, 36px)/1.05 var(--f-arena, "Paytone One", system-ui); margin: 6px 0 8px; color: #fff; } .hp-door p { margin: 0 0 12px; color: #EEF1FF; }
.hp-gos { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hp-go { font: 19px var(--f-arena, "Paytone One", system-ui); border-radius: 16px; padding: 13px 20px; border: 3px solid var(--hk); cursor: pointer; }
.hp-how { font-weight: 900; font-size: 15px; color: #fff; border-bottom: 2px solid #ffffff55; padding-bottom: 1px; text-decoration: none; cursor: pointer; }
.hp-say { border: 2px solid #ffffff50; background: #ffffff1a; border-radius: 12px; min-width: 44px; min-height: 44px; font-size: 18px; cursor: pointer; }
.hp-kid { background: linear-gradient(180deg, #4D6BFF, #2E3F96 70%); box-shadow: 0 8px 0 var(--hk); } .hp-kid small { color: #FFD12E; }
.hp-kid .hp-go { background: #0A8F5F; color: #fff; box-shadow: 0 5px 0 var(--hk); }
.hp-isles { position: relative; height: 190px; margin: 4px 0 12px; }
.hp-isl { position: absolute; width: 86px; z-index: 1; animation: hpBob 4s ease-in-out infinite; } .hp-isl .bld { width: 86px; } .hp-isl .bld svg { width: 86px; height: 78px; display: block; }
@keyframes hpBob { 50% { transform: translateY(-8px); } }
.hp-br { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hp-bp { fill: none; stroke: #B5793F; stroke-width: 2.4; stroke-dasharray: 60; stroke-dashoffset: 60; vector-effect: non-scaling-stroke; stroke-linecap: round; animation: hpBuild 7.5s infinite; } .hp-bp.b2 { animation-delay: 1.4s; } .hp-bp.b3 { animation-delay: 2.8s; }
@keyframes hpBuild { 0% { stroke-dashoffset: 60; } 15%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 60; } }
.hp-hero { position: absolute; width: 40px; height: 52px; z-index: 2; left: 8%; top: 18px; animation: hpHop 7.5s ease-in-out infinite; }
@keyframes hpHop { 0% { left: 8%; top: 18px; } 10% { top: -10px; } 20% { left: 36%; top: 0; } 33% { left: 36%; top: 0; } 43% { top: -20px; } 53% { left: 62%; top: 40px; } 66% { left: 62%; top: 40px; } 76% { top: 0; } 86% { left: 86%; top: 6px; } 100% { left: 8%; top: 18px; } }
.hp-st { position: absolute; line-height: 0; z-index: 3; opacity: 0; animation: hpStar 7.5s infinite; } .hp-st.s1 { left: 38%; top: -14px; animation-delay: 1.5s; } .hp-st.s2 { left: 64%; top: 26px; animation-delay: 3.9s; } .hp-st.s3 { left: 88%; top: -8px; animation-delay: 6.4s; }
@keyframes hpStar { 0% { opacity: 0; transform: scale(.2) rotate(-40deg); } 4% { opacity: 1; transform: scale(1.4); } 10% { opacity: 1; transform: translateY(-14px); } 16%, 100% { opacity: 0; transform: translateY(-34px); } }
.hp-cl { position: absolute; height: 18px; width: 54px; border-radius: 20px; background: #ffffff55; animation: hpCloud 18s linear infinite; } .hp-cl::before { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: inherit; left: 10px; top: -12px; }
.hp-cl.c1 { top: 4px; } .hp-cl.c2 { top: 130px; animation-duration: 26s; animation-delay: -10s; } @keyframes hpCloud { from { left: -20%; } to { left: 110%; } }
.hp-teen { background: radial-gradient(120% 80% at 80% 0%, #3A2D8A, #12152B 60%); box-shadow: 0 8px 0 #000; border-color: #2A3054; }
.hp-teen small { color: #8B7BFF; } .hp-teen .hp-go { background: #FFD12E; color: #0D1020; border-color: #0D1020; }
.hp-teen::before { content: ""; position: absolute; width: 240px; height: 240px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(#8B7BFF55, transparent 70%); animation: hpGlow 5s ease-in-out infinite; pointer-events: none; } @keyframes hpGlow { 50% { transform: translate(-30px, 30px) scale(1.2); } }
.hp-new { position: absolute; top: 18px; right: 18px; z-index: 2; background: #FFD12E; color: #0D1020; border-radius: 999px; padding: 4px 12px; font: 13px var(--f-arena, "Paytone One", system-ui); text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 3px 0 #0D1020; transform: rotate(4deg); }
.hp-cd { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; }
/* mozaika místo odpočtu do přijímaček (Martin 20. 11.: spouští se jen 2. stupeň, přijímačky později): stejný svět jako na stránce předmětu */
.hp-moz { width: 104px; height: 104px; flex: none; } .hp-moz path { stroke: #0D1020; stroke-width: 5; stroke-linejoin: round; } .hp-moz .hp-mz0 { fill: none; stroke: #3A4170; stroke-width: 4; stroke-dasharray: 9 7; }
.hp-moz .hp-rz { fill: #C9D3EA; animation: hpRz 4.5s ease-in-out infinite alternate; } @keyframes hpRz { 0%, 40% { fill: transparent; stroke: #3A4170; } 60%, 100% { fill: #C9D3EA; stroke: #0D1020; } }
.hp-mp { fill: none; stroke: #9DB8FF; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: hpMp 1.8s ease-out infinite; } @keyframes hpMp { from { transform: scale(.9); opacity: .85; } to { transform: scale(1.6); opacity: 0; } }
.hp-brzy { margin: 14px 0 0 !important; padding-top: 10px; border-top: 1px solid #ffffff1f; font: 800 13px Nunito, system-ui; color: #AEB4D8 !important; }
.hp-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 800; font-size: 15px; } .hp-feat li { animation: hpIn .5s both; } .hp-feat li::before { content: "▸ "; color: #3DDC97; }
.hp-feat li:nth-child(2) { animation-delay: .2s } .hp-feat li:nth-child(3) { animation-delay: .4s } .hp-feat li:nth-child(4) { animation-delay: .6s } @keyframes hpIn { from { opacity: 0; transform: translateX(16px); } }
.hp-mq { overflow: hidden; margin: 0 -20px 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hp-mqi { display: flex; gap: 6px; width: max-content; animation: hpMq 22s linear infinite; } .hp-mqi span { background: #ffffff14; border: 1px solid #ffffff2a; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 800; white-space: nowrap; } @keyframes hpMq { to { transform: translateX(-50%); } }
.hp-qz { background: #ffffff0f; border: 1px solid #ffffff22; border-radius: 16px; padding: 10px 12px; margin-bottom: 14px; } .hp-qz small { color: #8B7BFF; font-size: 11px; } .hp-qz b { display: block; font-size: 15px; margin: 2px 0 6px; }
.hp-qa { display: flex; align-items: center; gap: 4px; background: #0B0E1E; border: 2px solid #5B8DEF; border-radius: 10px; padding: 5px 10px; font: 20px var(--f-arena, "Paytone One", system-ui); min-height: 40px; }
.hp-ty { overflow: hidden; white-space: nowrap; width: 0; animation: hpType 4.5s steps(2) infinite; } .hp-car { width: 3px; height: 22px; background: #5B8DEF; animation: hpBlink .8s steps(1) infinite; }
.hp-qa em { margin-left: auto; font: 900 13px Nunito, system-ui; font-style: normal; color: #3DDC97; opacity: 0; animation: hpOk 4.5s infinite; }
@keyframes hpType { 0%, 20% { width: 0 } 45%, 92% { width: 2.2ch } 100% { width: 0 } } @keyframes hpBlink { 50% { opacity: 0 } } @keyframes hpOk { 0%, 50% { opacity: 0 } 58%, 92% { opacity: 1 } 100% { opacity: 0 } }
.hp-about { display: grid; gap: 12px; margin: 18px 0 0; } @media (min-width: 820px) { .hp-about { grid-template-columns: 1fr 1fr; } }
.hp-ab { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; background: #171B33; border: 1px solid #262C4D; border-radius: 20px; padding: 14px 16px; text-align: left; } .hp-ab:hover { border-color: #8B7BFF; }
.hp-abi { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #0D1020; } .hp-ab b { display: block; font: 18px var(--f-arena, "Paytone One", system-ui); } .hp-ab small { display: block; color: #C9CEEA; font-size: 14px; font-weight: 700; line-height: 1.35; }
.hp-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 22px 0 30px; color: #C9CEEA; font-weight: 800; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .hp * , .hp *::before { animation: none !important; } .hp-ty { width: auto; } .hp-qa em, .hp-st { opacity: 1; } .hp-bp { stroke-dashoffset: 0; } }
.wel-h2 { font-size: 22px; text-align: center; margin-bottom: 14px; }
.wel-sub { text-align: center; color: var(--muted); margin: -6px 0 12px; font-size: 14px; }
.wel-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wel-step { position: relative; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: var(--sky-2); border-radius: 18px; padding: 14px 14px 14px 12px; }
.wel-step .wel-ic { grid-row: span 2; font-size: 40px; text-align: center; line-height: 1; }
.wel-step b { font-family: var(--f-display); font-weight: 400; font-size: 18px; }
.wel-step span:last-child { color: var(--muted); font-size: 14px; line-height: 1.4; }
.wel-num { position: absolute; left: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 900; font-size: 14px; display: grid; place-items: center; }
.wel-mp-tag { text-decoration: none; background: rgba(255,201,60,.14); border: 2px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 900; }
.wel-mp { background: linear-gradient(135deg, #4E47A8, #2E2A6E); border: 3px solid var(--gold); border-radius: 24px; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.wel-mp-art { display: flex; justify-content: center; }
.wel-duo { display: flex; align-items: flex-end; gap: 14px; }
.wel-p { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wel-phone { background: var(--ink); border: 3px solid #fff; border-radius: 12px; padding: 6px 10px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.wel-phone b { color: var(--grass); }
.wel-vs { font-family: var(--f-display); font-size: 28px; color: var(--gold); text-shadow: 0 3px 0 var(--ink); margin-bottom: 46px; }
.wel-mp-tx h2 { font-size: 24px; margin: 4px 0 8px; }
.wel-mp-tx ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.wel-mp-tx li b { color: var(--text); }
.wel-mp-games { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wel-mp-g { text-decoration: none; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 900; }
.wel-chip { position: relative; }
.wel-chip-mp { position: absolute; top: 6px; right: 6px; background: var(--gold); color: var(--ink); border-radius: 999px; font-size: 11px; font-weight: 900; line-height: 1.2; padding: 2px 7px; }
.wel-flt { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 14px; }
.wel-flt button { min-width: 56px; min-height: 44px; border-radius: 999px; border: 2px solid #ffffff40; background: transparent; color: #fff; font: 900 15px var(--f-body); padding: 0 12px; cursor: pointer; }
.wel-flt button.mp { border-color: #FFD12E88; color: #FFD12E; }
.wel-flt button[aria-pressed="true"] { background: #FFD12E; border-color: #FFD12E; color: #0D1020; }
.wel-more-w { text-align: center; margin-top: 12px; }
.wel-more { min-height: 44px; border-radius: 14px; border: 2px solid #ffffff55; background: #ffffff12; color: #fff; font: 900 15px var(--f-body); padding: 0 18px; cursor: pointer; }
.wel-chip-s2 { justify-content: center; text-decoration: none; border-color: #8B7BFF; background: #1B1F3D; }
body.wel-on { background: #0D1020; }
@media (prefers-reduced-motion: no-preference) { .wel-vs { animation: vsPulse 1.6s ease-in-out infinite; } @keyframes vsPulse { 50% { transform: scale(1.15); } } }
@media (min-width: 1000px) { .wel-mp { flex-direction: row; align-items: center; gap: 36px; padding: 26px 32px; max-width: 900px; margin: 0 auto; } .wel-mp-art { flex: 0 0 340px; } }
.wel-isles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wel-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--sky-2); border: 2px solid transparent; border-radius: 16px; padding: 10px 8px; color: var(--text); text-align: center; min-height: 120px; }
.wel-chip .bld { transform: scale(.7); min-height: 56px; display: flex; align-items: flex-end; }
.wel-chip b { font-size: 14px; line-height: 1.2; }
.wel-chip small { font-size: 12px; color: var(--muted); }
.wel-chip.on { border-color: var(--gold); background: var(--sky-3); }
/* Úvod – přestavba sekcí pod ostrovy (Martin 19. 11.): čitelné nadpisy, cesta výpravy, souboj jako závod, karty pro rodiče. */
.wel-ey { display: inline-block; align-self: flex-start; background: #141133; color: #FFD12E; border: 2px solid #FFD12E55;
  border-radius: 999px; padding: 5px 12px; font: 900 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.wel-ey-v { background: #0E3A33; color: #6BE2B4; border-color: #3DDC9766; }
.wel-ey-k { background: #3A1A2C; color: #FFA8C5; border-color: #FF7BA966; }
.wel-ey-r { background: #EDE9FB; color: #4A3BA8; border-color: #C7BCF2; }
.wel-v3-tx h2, .wel-mp-tx h2, .wel-parents h2 { text-transform: none; letter-spacing: 0; font-size: clamp(23px, 4.4vw, 29px); line-height: 1.12; }
.wel-v3-tx h2, .wel-mp-tx h2 { text-shadow: 0 2px 6px rgba(0,0,0,.45); }
.wel-v3-tx p, .wel-mp-p { color: #F0EEFF; font-size: 16px; line-height: 1.5; }
.wel-v3, .wel-mp { background: linear-gradient(135deg, #363073, #1E1B4A); }
/* cesta měsíců */
.wel-cesta { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 14px 0 6px; padding-top: 6px; }
.wel-cara { position: absolute; left: 0; right: 0; top: 34px; height: 20px; width: 100%; }
.wel-dash { stroke: #FFD12E; stroke-width: 4; stroke-dasharray: 9 11; fill: none; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) { .wel-dash { animation: welPlout 6s linear infinite; } }
@keyframes welPlout { to { stroke-dashoffset: -200; } }
.wel-ost { position: relative; text-align: center; }
.wel-ost .bld { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 58px; transform: scale(.52); transform-origin: 50% 100%; }
.wel-flag { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; border-radius: 2px;
  background: conic-gradient(#fff 0 25%, #0D1020 0 50%, #fff 0 75%, #0D1020 0) 0 0 / 6px 6px; }
@media (prefers-reduced-motion: no-preference) { .wel-ost .bld { animation: welBob 4.4s ease-in-out infinite; }
  .wel-ost:nth-child(3) .bld { animation-delay: -1.4s; } .wel-ost:nth-child(4) .bld { animation-delay: -2.8s; } }
@keyframes welBob { 0%, 100% { transform: scale(.52) translateY(0); } 50% { transform: scale(.52) translateY(-14px); } }
.wel-ost b { display: block; font: 900 13px var(--f-body); margin-top: 4px; }
.wel-ost small { display: block; font: 900 11px var(--f-body); color: var(--muted); }
.wel-ost.ted b, .wel-ost.ted small { color: var(--gold); }
.wel-ost.hotovo .em { opacity: .75; }
.wel-v3 .wel-v3-cta { margin-top: 12px; white-space: nowrap; align-self: flex-start; width: auto; padding: 0 20px;
  background: var(--gold); color: var(--ink); border-color: var(--gold-2); text-transform: none; text-shadow: none; }
/* souboj jako závod */
.wel-arena { background: #241F58; border-radius: 18px; padding: 14px; width: 100%; max-width: 330px; }
.wel-arena-h { display: flex; justify-content: space-between; font: 900 12px var(--f-body); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.wel-arena-h .cil { color: var(--gold); }
.wel-hrac { display: flex; align-items: center; gap: 9px; margin: 9px 0; }
.wel-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font: 400 18px var(--f-display); color: #fff; }
.wel-av.a { background: #4A5BF0; } .wel-av.b { background: #E5484D; }
.wel-jm { font: 900 13px var(--f-body); width: 44px; flex: none; }
.wel-bar { position: relative; flex: 1; height: 16px; border-radius: 999px; background: #15123A; overflow: hidden; }
.wel-bar:after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; opacity: .5;
  background: repeating-linear-gradient(0deg, #fff 0 4px, #000 4px 8px); }
.wel-bar i { display: block; height: 100%; border-radius: 999px; width: 0; background: linear-gradient(90deg, #3DDC97, #2BB47C); transition: width .45s cubic-bezier(.3,1.4,.5,1); }
.wel-bar.b i { background: linear-gradient(90deg, #FF8A7A, #E5484D); }
.wel-sk { font: 900 15px var(--f-body); width: 24px; text-align: right; }
.wel-hrac.lead .wel-sk { color: #3DDC97; } .wel-hrac.lead .wel-av { box-shadow: 0 0 0 3px #3DDC97; }
.wel-otaz { background: #15123A; border-radius: 12px; padding: 10px 12px; text-align: center; font: 400 19px var(--f-display); margin-top: 6px; }
.wel-otaz u { text-decoration: none; color: var(--gold); } .wel-otaz u.ok { color: #3DDC97; } .wel-otaz u.no { color: #FF8A7A; }
.wel-vede { margin-top: 8px; text-align: center; font: 900 13px var(--f-body); color: #3DDC97; min-height: 1.2em; }
.wel-fakta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wel-fakta span { background: rgba(255,255,255,.1); border-radius: 999px; padding: 7px 13px; font: 900 13px var(--f-body); }
/* čísla */
.wel-cisla { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wel-cisla div { background: #161A33; border: 2px solid #2A3160; border-radius: 16px; padding: 12px 18px; text-align: center; min-width: 112px; }
.wel-cisla b { display: block; font: 400 26px var(--f-display); color: var(--gold); }
.wel-cisla small { color: var(--muted); font: 900 12px var(--f-body); }
/* pro rodiče */
.wel-pg { display: grid; gap: 10px; margin: 12px 0 4px; }
@media (min-width: 620px) { .wel-pg { grid-template-columns: 1fr 1fr; } }
.wel-pg > div { display: flex; gap: 12px; align-items: flex-start; background: #F4F2FB; border-radius: 16px; padding: 13px 14px; text-align: left; }
.wel-pg .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: #E4DEFA; }
.wel-pg b { display: block; font: 900 15px var(--f-body); color: var(--paper-ink); }
.wel-pg small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--paper-muted); }
.wel-graf { display: flex; align-items: flex-end; gap: 3px; height: 24px; margin-top: 6px; }
.wel-graf i { width: 7px; border-radius: 2px; background: #6B5BD6; height: 40%; }
@media (prefers-reduced-motion: no-preference) { .wel-graf i { animation: welRust 3.2s ease-in-out infinite; }
  .wel-graf i:nth-child(2) { animation-delay: .25s; } .wel-graf i:nth-child(3) { animation-delay: .5s; }
  .wel-graf i:nth-child(4) { animation-delay: .75s; } .wel-graf i:nth-child(5) { animation-delay: 1s; } }
@keyframes welRust { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (max-width: 759px) {
  .wel-v3 img { max-width: 190px; margin: 0 auto; }
  .wel-v3 .wel-v3-cta { display: flex; width: 100%; justify-content: center; }
  .wel-v3-go { display: block; width: fit-content; margin: 20px auto 4px; }
  .wel-ost .bld { transform: scale(.44); } .wel-ost b { font-size: 12px; } .wel-ost small { font-size: 10px; }
  .wel-cesta { gap: 2px; }
  .wel-cara { top: 30px; }
}
.wel-isle-info { text-align: center; color: var(--text); margin: 12px auto 0; max-width: 46ch; min-height: 1.4em; font-size: 15px; line-height: 1.45; }
/* podnět 210: popis se ukáže hned pod řádkem klepnutého ostrova, ne až pod všemi ostrovy */
.wel-isles .wel-isle-info { grid-column: 1 / -1; margin: 0; max-width: none; background: var(--sky-3); border: 2px solid var(--gold); border-radius: 16px; padding: 12px 14px; scroll-margin: 12px; }
.hub-why { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--sky-2); border: 2px solid rgba(255,201,60,.45); border-radius: 18px; padding: 12px 14px; color: var(--text); text-decoration: none; min-height: 56px; }
.hub-why b { display: block; font-size: 15px; }
.hub-foot { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 13px; padding: 4px 0 8px; }
.hub-foot a { color: var(--muted); display: inline-block; padding: 10px 2px; }
.hub-why small { display: block; color: var(--muted); font-size: 13px; }
.hub-why:hover { border-color: var(--gold); }
/* 3D výprava na úvodu pro návštěvníky (podnět 207) */
.wel-v3 { background: linear-gradient(135deg, #4E47A8, #2E2A6E); border: 3px solid var(--gold); border-radius: 24px; padding: 16px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.wel-v3 img { width: 120px; height: auto; display: block; border: 3px solid var(--ink); border-radius: 14px; }
.wel-v3-tx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wel-v3-tx h2 { font-size: 22px; margin: 0; }
.wel-v3-tx p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.wel-v3-tx p b { color: var(--text); }
.wel-v3-go { color: var(--gold); font-weight: 900; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; }
@media (min-width: 1000px) { .wel-v3 { max-width: 900px; margin: 0 auto; grid-template-columns: 180px 1fr; padding: 22px 28px; gap: 28px; } .wel-v3 img { width: 180px; } .wel-v3-tx h2 { font-size: 26px; } .wel-v3-tx p { font-size: 16px; } }
.wel-story { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 3px solid var(--gold); border-radius: 22px; padding: 16px; text-decoration: none; color: var(--paper-ink); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.wel-story:hover { border-color: var(--gold); }
.wel-story-ic { font-size: 28px; white-space: nowrap; }
.wel-story-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wel-story-tx small { color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.wel-story-tx b { font-family: var(--f-display); font-weight: 400; font-size: 18px; line-height: 1.2; }
.wel-story-tx span { color: var(--paper-muted); font-size: 14px; }
.wel-story-go { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 16px; }
@media (min-width: 1000px) { .wel-story { max-width: 760px; margin: 0 auto; } }
.wel-parents { background: var(--paper); color: var(--paper-ink); border-radius: 24px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.wel-parents h2 { font-size: 22px; }
.wel-parents ul { margin: 4px 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--paper-muted); font-weight: 600; line-height: 1.45; }
.wel-parents li b { color: var(--paper-ink); }
.wel-small { margin: 0; font-size: 13px; color: var(--paper-muted); text-align: center; }
@media (min-width: 1000px) {
  #welcome { max-width: 1100px; margin: 0 auto; }
  .wel-hero { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto auto; text-align: left; align-items: start; justify-items: start; column-gap: 40px; padding-top: 40px; overflow-x: clip; }
  .wel-sky { grid-column: 2; grid-row: 1 / span 5; height: 300px; transform: scale(1.3); transform-origin: 50% 0; margin-bottom: 90px; }
  .wel-hero > :not(.wel-sky) { grid-column: 1; }
  .wel-ctas { align-items: flex-start; }
  .wel-brand { margin-top: 0; } .wel-logo { width: 340px; } .wel-sub { justify-content: flex-start; }
  .wel-steps { grid-template-columns: repeat(4, 1fr); }
  .wel-step { grid-template-columns: 1fr; grid-template-rows: auto; text-align: center; row-gap: 6px; padding: 18px 14px; }
  .wel-step .wel-ic { grid-row: auto; }
  .wel-parents { max-width: 760px; margin: 0 auto; }
  .wel-isles { grid-template-columns: repeat(5, 1fr); }
}
/* ---------- počítač: navigace vlevo, mapa široká, mise a výprava v pravém sloupci ---------- */
@media (min-width: 1000px) {
  .app { max-width: 1320px; padding: 0 24px 32px 120px; }
  .nav { position: fixed; top: 0; bottom: 0; right: auto; width: 96px; padding: 20px 8px; }
  .nav-in, .nav.n6 .nav-in { max-width: none; grid-template-columns: 1fr; gap: 14px; }
  .nav button, .nav a { font-size: 13px; padding: 10px 0; border-radius: 14px; }
  .nav button:hover, .nav a:hover { background: rgba(255,255,255,.08); color: var(--text); }
  .nav [aria-current="page"] { background: rgba(255,201,60,.12); }
  #home:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 28px; align-items: start; }
  #home > .pad:not(.stack) { grid-column: 1 / -1; padding-left: 0; padding-right: 0; }
  #home .home-main .pad { padding-left: 0; padding-right: 0; }
  #home .home-side { padding: 12px 0 0; }   /* bez vlastního posouvání: pravý sloupec se posouvá spolu se stránkou */
  .top { padding-top: 16px; }
  .me-btn { width: 64px; height: 64px; }
  .who b { font-size: 22px; }
  .cont { padding: 14px 18px 14px 12px; }
  .cont-t b { font-size: 22px; }
  .glist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sky.as-list { padding-left: 0; padding-right: 0; }
  .isle.float:hover .bld, .grow:hover { filter: brightness(1.12); }
  .grow:hover { border-color: rgba(255,201,60,.6); }
  #journey, #board, #wardrobe { max-width: 980px; margin: 0 auto; }
  #wardrobe:not([hidden]) { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0 28px; align-items: start; }
  #wardrobe > .jhead { grid-column: 1 / -1; }
  #wardrobe > .stage { position: sticky; top: 16px; border-radius: 24px; }
  #wardrobe > .card { border-radius: 24px !important; }
  .veil { align-items: center; }
  .sheet { border-radius: 26px; max-width: 600px; padding: 28px; max-height: 86vh; }
}
@media (min-width: 1700px) { .app { max-width: 1680px; } #home:not([hidden]) { grid-template-columns: minmax(0, 1fr) 460px; } }   /* široké monitory: víc místa */

/* ================= Aréna: mapa, štítky a karta ostrova (agent/design.md, 7. 11.) ================= */
:root { --ink: #0B0F1A; --sky: #1E2266; --sky-2: #2A2F80; --sky-3: #3A3F98; --gold: #FFD12E; --gold-2: #E59A00; --go: #0A7F5B;
  --f-display: "Paytone One", "Arial Black", system-ui, sans-serif; }
body { background-color: var(--sky); background-image: repeating-linear-gradient(-45deg, transparent 0 26px, rgba(0, 0, 0, .1) 26px 52px); background-attachment: fixed; }
h1, h2 { text-transform: uppercase; letter-spacing: .3px; }
svg.aic { display: inline-block; flex: none; vertical-align: -3px; }
/* ostrovy */
.ground { display: block; margin-top: -4px; filter: drop-shadow(0 5px 0 rgba(11, 15, 26, .55)); }
.ground svg { display: block; overflow: visible; }
.isle.ghost .ground > div { background: none !important; }
.isle.ghost .bld, .isle.ghost .ground { opacity: .62; filter: saturate(.4); }
.isle.locked .bld, .isle.locked .ground { opacity: .35; filter: grayscale(.8); }
.isle .label { margin-top: 6px; font: 400 13px/1.1 var(--f-display); text-transform: uppercase; background: var(--ink); border-radius: 8px; padding: 5px 9px; max-width: 160px; }
.isle .label em { color: var(--gold); }
/* souostroví na hlavní mapě a přiblížené souostroví */
.sky.compact #homeIsle { transform: scale(.84); transform-origin: 50% 0; }
/* stavění na ostrově */
.sheet.build-sheet { background: #1E3F5A; color: #fff; background-image: repeating-linear-gradient(-45deg, transparent 0 26px, rgba(0, 0, 0, .09) 26px 52px); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent; }
.bs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bs-eye { font: 400 13px var(--f-display); color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.bs-head h2 { margin: 2px 0 0; font: 400 28px/1 var(--f-display); text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 var(--ink); }
.bs-coins { flex: none; display: flex; align-items: center; gap: 7px; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); padding: 7px 12px; font: 400 20px/1 var(--f-display); }
.bs-prev { margin: 12px 0 2px; border: 3px solid var(--ink); border-radius: 18px; background: linear-gradient(#7FD3F7, #BDEBFF); min-height: 190px; padding: 48px 0 4px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; box-shadow: 0 5px 0 var(--ink); }
.bs-prev .isle { margin-bottom: 6px; z-index: 0; isolation: isolate; }
.bs-prev .isle .label { display: none; }
.build-sheet .bs-sec { font: 400 15px var(--f-display); text-transform: uppercase; color: var(--gold); margin: 16px 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.build-sheet .bs-sec small { font: 800 12px var(--f-body); color: #C8D6E5; text-transform: none; }
.bs-track { display: flex; justify-content: space-between; position: relative; padding: 0 2px; }
.bs-track::before { content: ""; position: absolute; left: 26px; right: 26px; top: 21px; height: 6px; background: rgba(255, 255, 255, .2); border-radius: 3px; }
.bs-track span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 800 11px var(--f-body); color: #C8D6E5; width: 58px; text-align: center; }
.bs-track b { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #2E5574; display: grid; place-items: center; font: 400 14px var(--f-display); color: #fff; }
.bs-track b svg { stroke: #fff; }
.bs-track .on b { background: var(--go, #22A45D); } .bs-track .cur b { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 209, 46, .35); } .bs-track .cur { color: #fff; }
.bs-next { width: 100%; display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; text-align: left; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 12px; }
.bs-next .nth { width: 84px; height: 84px; border-radius: 14px; background: #BDEBFF; border: 3px solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.bs-next .ntx { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bs-next b { font: 400 20px var(--f-display); text-transform: uppercase; } .bs-next small { font: 800 13px var(--f-body); color: #4A5568; }
.bs-bar { display: block; height: 14px; border: 3px solid var(--ink); border-radius: 8px; background: #E4E9F2; overflow: hidden; } .bs-bar i { display: block; height: 100%; background: var(--gold); }
.bs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bs-it { position: relative; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-height: 140px; }
.bs-it .th, .bs-next .th { height: 62px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.bs-it .th svg { height: 54px !important; width: auto !important; max-width: 76px; }
.bs-next .th svg { height: 70px !important; width: auto !important; }
.bs-it b { font: 400 13px var(--f-display); text-transform: uppercase; }
.bs-it .go, .bs-next .go { margin-top: auto; width: 100%; background: var(--go, #22A45D); color: #fff; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); font: 400 13px var(--f-display); padding: 6px 4px; display: flex; align-items: center; justify-content: center; gap: 4px; text-transform: uppercase; }
.bs-next .go { font-size: 16px; padding: 9px; }
.bs-it.buy:active, .bs-next.buy:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.bs-it.lock { background: #E9EEF5; } .bs-it.lock .th { opacity: .55; filter: grayscale(.4); } .bs-it.lock small { font: 800 11px var(--f-body); color: #4A5568; margin-top: auto; } .bs-it.lock .bs-bar { width: 100%; height: 10px; border-width: 2px; }
.bs-it.own { background: #D9F5E3; } .bs-it.own small { margin-top: auto; font: 800 11px var(--f-body); color: #1B7A45; }
.bs-it.own .ok { position: absolute; top: -8px; right: -6px; background: var(--go, #22A45D); border: 3px solid var(--ink); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.bs-it.own .ok svg { stroke: #fff; }
.build-sheet .bs-msg { min-height: 1.3em; margin: 12px 0 0; font: 800 14px var(--f-body); color: var(--gold); }
.bs-tip { display: flex; gap: 10px; align-items: center; margin: 8px 0 12px; background: rgba(0, 0, 0, .25); border-radius: 14px; padding: 10px 12px; font: 800 13px/1.35 var(--f-body); color: #E3ECF5; }
.bs-tip .bs-brick { flex: none; }
.build-sheet .cta { display: block; text-align: center; text-decoration: none; }
.build-sheet .bs-play small { display: block; margin-top: 3px; font: 800 12px/1.2 var(--f-body); text-transform: none; text-shadow: none; opacity: .9; }
.bs-back { display: block; margin: 12px auto 0; background: none; border: 0; font: 400 14px var(--f-display); color: #fff; text-transform: uppercase; text-decoration: underline; min-height: 40px; }
.arch-path { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.arch-path path { fill: none; stroke: rgba(201, 163, 107, .45); stroke-width: 9; stroke-dasharray: 6 9; stroke-linecap: round; }
.arch { position: absolute; width: 250px; height: 228px; border: 0; background: none; padding: 0; color: #fff; cursor: pointer; z-index: 1; }
.arch .ab { position: absolute; left: 6px; right: 6px; top: 6px; height: 112px; display: flex; align-items: flex-end; justify-content: center; }
.arch .ab > span { flex: none; transform: scale(.74); transform-origin: 50% 100%; margin: 0 -13px; }
.arch .ar { position: absolute; left: 0; right: 0; top: 118px; height: 96px; background: #8B6B4A; border: 3px solid var(--ink); border-radius: 12px 12px 125px 125px / 12px 12px 74px 74px; box-shadow: 0 7px 0 var(--ink); }
.arch .ag { position: absolute; left: -6px; right: -6px; top: 110px; height: 20px; background: #5DBB46; border: 3px solid var(--ink); border-radius: 10px; }
/* název a počty uvnitř skály: zalomí se, nikdy nepřetečou (Martin 7. 11.: na souostrovích přetékal text) */
.arch .at { position: absolute; left: 26px; right: 26px; top: 138px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.arch .an.long { font-size: 13px; padding: 7px 10px; white-space: nowrap; }
.arch .an { max-width: 100%; background: var(--ink); border-radius: 10px; padding: 6px 12px; font: 400 16px/1.1 var(--f-display); text-transform: uppercase; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
@media (max-width: 345px) { .nav.n6 button, .nav.n6 a { font-size: 9.5px; letter-spacing: -.01em; } }
.arch .ac { max-width: 100%; text-align: center; font: 800 12px/1.25 var(--f-body); color: #E3E8FF; text-wrap: balance; }
.arch .ac b { color: var(--gold); font-weight: 900; }
.arch:active .ab, .arch:active .ar, .arch:active .ag { transform: translateY(3px); }
.arch:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 20px; }
.area-head { position: absolute; left: 12px; right: 12px; top: 0; display: flex; align-items: center; gap: 12px; z-index: 3; }
.area-head h2 { margin: 0; font: 400 28px/1 var(--f-display); text-transform: uppercase; color: #fff; text-shadow: 0 3px 0 var(--ink); }
.area-head span { font: 800 13px/1.3 var(--f-body); color: #C8D0FF; }
.area-back { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; color: var(--ink); }
.area-back svg { stroke: var(--ink); }
.area-back:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
/* celý ostrov uvnitř mapy (na širší obrazovce byl ořízlý okrajem mapy, Martin 7. 11.) */
.area-land { position: absolute; left: 6px; right: 6px; top: 76px; background: #5DBB46; border: 4px solid var(--ink); border-radius: 56px 56px 50% 50% / 56px 56px 130px 130px; box-shadow: 0 10px 0 var(--ink); overflow: hidden; }
.area-land::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: #8B6B4A; border-top: 4px solid var(--ink); }
.area-land i { position: absolute; width: 42px; height: 16px; border-radius: 50%; background: #4AA638; }
.sky.in-area .isle.float .ground, .sky.in-area .isle.float > svg.gnd { display: none; }
.sky.in-area .isle.float.ghost, .sky.in-area .isle.float.ghost .bld { opacity: 1; filter: none; }
.sky.in-area .isle .meta { background: rgba(11, 15, 26, .72); border-radius: 8px; padding: 4px 8px; color: #fff; }
.sky.in-area .isle .bld { filter: drop-shadow(0 6px 0 rgba(11, 15, 26, .3)); }
.sky.in-area .mosty { z-index: 1; }
.sky.in-area .fx { z-index: 1; }   /* listí padá nad zelenou plochou souostroví (Martin 7. 11.) */
.sky.in-area .mosty .m-ghost { stroke: #E8C98F; stroke-width: 16; stroke-dasharray: none; stroke-linecap: round; filter: drop-shadow(0 0 0 #0B0F1A) drop-shadow(0 3px 0 rgba(11, 15, 26, .45)); }
.sky.in-area .mosty .m-ghost.lock { stroke: #C9D8C0; }
.sky.in-area .isle { z-index: 2; }
.isle .meta { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 4px; font: 800 11px/1 var(--f-body); color: #A9B6EE; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.isle .meta .fit { color: var(--gold); }
.isle .meta .mp { display: inline-flex; color: #fff; }
.isle .meta .mp svg { stroke: currentColor; }
.isle .meta i { font-style: normal; opacity: .6; }
.isle .sub { display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; }
.isle .newb, .grow .newb { background: var(--stop, #FF4D6D); color: #fff; font: 400 10px/1 var(--f-display); text-transform: uppercase; border: 2px solid var(--ink); border-radius: 6px; padding: 2px 5px; box-shadow: 0 2px 0 var(--ink); }
.isle .multi { display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; background: #fff; color: var(--ink); font: 400 11px/1 var(--f-display); text-transform: uppercase; border: 2px solid var(--ink); border-radius: 6px; padding: 3px 6px 3px 4px; }
.tr { display: inline-flex; align-items: center; gap: 4px; font: 400 11px/1 var(--f-display); text-transform: uppercase; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 6px; padding: 3px 6px 3px 4px; }
.tr.fit { background: var(--ok-a, #7BE04B); border-color: var(--ink); color: var(--ink); }
.mosty .m-plank { stroke: #C98B4B; }
/* lišty a karty */
.pill { background: var(--ink); border-radius: 10px; font-family: var(--f-display); font-weight: 400; }
.me-btn { border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.xpbar { border: 2px solid var(--ink); }
.cont { border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); }
/* štítek období patří k ostrovu: vlevo vedle domova, ne pod přepínačem třídy (Martin 7. 11.) */
/* horní řádek na telefonu: úroveň jako odznak na avataru, menší štítky, období jen ikonou (Martin 7. 11.: období do řádku s cihlami a XP) */
.me-btn { position: relative; overflow: visible; }
.me-btn .lvb { position: absolute; right: -6px; bottom: -4px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--ink); color: var(--gold); border: 2px solid var(--gold); font: 400 12px/18px var(--f-display); text-align: center; display: none; }
@media (max-width: 480px) {
  .top { gap: 6px; }
  .me-btn .lvb { display: block; }
  .who small .lvt { display: none; }
  .top .pill { padding: 6px 8px; font-size: 13px; gap: 4px; }
}
.pill.season { border: 0; color: #fff; text-transform: uppercase; font-size: 12px; cursor: default; }
.pill.season:not([disabled]) { cursor: pointer; }
.pill.season svg { flex: none; }
/* svátek v horní liště: na telefonu jen ikona (text se nevešel, Martin 10. 11.: „Martin na bílém koni přetéká“), na širší obrazovce text zkrácený třemi tečkami */
.pill.season { min-width: 0; max-width: 260px; } .pill.season .st { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .pill.season .st { display: none; } .pill.season { padding: 6px 8px; flex: none; } }
.nav { border-top: 3px solid #000; }
.nav button, .nav a { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 11px; color: #8C96C7; }
.nav [aria-current="page"] { color: var(--gold); }
.cta { border: 3px solid var(--ink); border-bottom: 3px solid var(--ink); border-radius: 14px; background: var(--go); color: #fff; text-transform: uppercase; text-shadow: 0 2px 0 var(--ink); box-shadow: 0 5px 0 var(--ink); }
.cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); border-bottom-width: 3px; }
.cta.ghost { background: #fff; color: var(--ink); text-shadow: none; border-bottom-color: var(--ink); }
.sheet { border: 3px solid var(--ink); border-bottom: 0; }
/* karta ostrova */
.sheet.isheet { background: var(--w); color: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 0 rgba(11, 15, 26, .55); gap: 12px;
  background-image: repeating-linear-gradient(-45deg, transparent 0 26px, rgba(0, 0, 0, .09) 26px 52px); }
/* od 600 px (tablet, počítač) je okno uprostřed obrazovky: celý rám i dole (Martin 7. 11.: úvod do hry vypadal dole uříznutý) */
@media (min-width: 600px) { .veil { align-items: center; padding: 16px; } .sheet, .sheet.isheet { border-bottom: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); max-height: calc(100vh - 32px); overflow-y: auto; padding-bottom: 20px; } .isheet .grab { display: none; } }
.isheet .grab { width: 54px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); align-self: center; }
.isheet .is-top { display: flex; gap: 12px; align-items: center; }
.isheet .is-isl { flex: none; width: 76px; height: 76px; border: 3px solid var(--ink); border-radius: 16px; background: rgba(255, 255, 255, .14); box-shadow: 0 5px 0 var(--ink); display: grid; place-items: center; overflow: hidden; }
.isheet .is-bld { transform: scale(.8); display: block; }
.bsvg { display: block; overflow: visible; margin-bottom: -6px; }
.isheet .eyebrow { color: var(--gold); font: 400 14px var(--f-display); letter-spacing: 1.5px; }
.isheet h2 { font-size: 28px; line-height: .95; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); transform: skew(-6deg); transform-origin: left; margin-top: 2px; }
.isheet .is-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.isheet .tr { font-size: 13px; padding: 5px 9px 5px 6px; border: 0; border-radius: 8px; }
.isheet .tr.dark { background: var(--ink); color: #fff; }
.isheet .tr.dim { background: rgba(11, 15, 26, .45); color: #E6E2F5; text-transform: none; font: 800 13px var(--f-body); }
.isheet { position: relative; }
.isheet .is-x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); background: rgba(11, 15, 26, .55); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.isheet .is-x svg { pointer-events: none; }   /* klik musí dostat tlačítko s data-close, ne křížek uvnitř (8. 11.) */
.isheet .is-top { padding-right: 44px; }
.isheet .ft { display: inline-flex; align-items: center; gap: 4px; font: 800 13px var(--f-body); padding: 5px 10px; border-radius: 9px; border: 2px solid var(--ink); }
.isheet .ft.low { background: #FFE1C2; color: #8A4B00; }
.isheet .ft.hi { background: var(--gold); color: var(--ink); }
.isheet .ft.ok { background: #C8F2C1; color: #1E5E22; }
.isheet .is-most { display: flex; align-items: center; gap: 10px; font: 400 15px var(--f-display); text-transform: uppercase; }
.isheet .is-most b { font-weight: 400; color: var(--gold); }
.isheet .is-most .mp { display: flex; gap: 4px; font-style: normal; }
.isheet .is-most .mp i { width: 28px; height: 13px; border: 2px solid var(--ink); border-radius: 4px; background: rgba(255, 255, 255, .15); }
.isheet .is-most .mp i.on { background: #C98B4B; box-shadow: inset 0 -3px 0 #8A5A2B; }
.isheet .is-vyp { display: flex; gap: 6px; align-items: center; margin: -4px 0 0; font: 700 13.5px var(--f-body); color: #E6E2F5; }
.isheet .is-fold summary { cursor: pointer; list-style: none; font: 800 15px var(--f-body); color: #F2EAD0; text-decoration: underline; text-underline-offset: 3px; }
.isheet .is-fold summary::-webkit-details-marker { display: none; }
.isheet .is-fold summary::after { content: " ▸"; }
.isheet .is-fold[open] summary::after { content: " ▾"; }
.isheet .is-fold[open] summary { margin-bottom: 8px; }
.isheet .is-mp summary { text-decoration: none; border: 2px solid var(--ink); border-radius: 12px; background: rgba(11, 15, 26, .45); padding: 10px 12px; color: #fff; display: flex; justify-content: space-between; }
.isheet .is-mp summary::after { color: var(--gold); }
.isheet p.is-desc { color: #EEE9FA; font-size: 16px; line-height: 1.35; }
.isheet .is-bridge { border: 3px solid var(--ink); border-radius: 14px; background: rgba(11, 15, 26, .35); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.isheet .brow { display: flex; justify-content: space-between; align-items: baseline; font: 400 15px var(--f-display); text-transform: uppercase; }
.isheet .brow b { font-weight: 400; color: var(--gold); font-size: 18px; }
.isheet .planks { display: grid; gap: 5px; }
.isheet .planks i { height: 20px; border: 3px solid var(--ink); border-radius: 5px; background: rgba(255, 255, 255, .12); }
.isheet .planks i.on { background: #C98B4B; box-shadow: inset 0 -5px 0 #8A5A2B; }
.isheet .pts { display: flex; justify-content: space-between; gap: 10px; font: 800 14px var(--f-body); color: #E6E2F5; }
.isheet .pts b { font: 400 15px var(--f-display); color: #fff; text-align: right; }
.isheet .pts b.low { color: #FFB3C2; }
.isheet .fitnote { display: flex; gap: 8px; align-items: center; margin: 0; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 13.5px; }
.isheet .fitnote.hard { background: var(--gold); color: var(--ink); }
.isheet .cta { height: 62px; font-size: 22px; }
.is-learn { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }
.is-learn .is-sec { font: 400 13px var(--f-display); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.is-learn ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.is-learn li { font: 800 14px/1.2 var(--f-body); color: var(--ink); background: #FFF6D8; border: 2px solid var(--ink); border-radius: 10px; padding: 5px 10px 5px 26px; position: relative; box-shadow: 0 2px 0 var(--ink); }
.is-learn li::before { content: ""; position: absolute; left: 8px; top: 50%; width: 11px; height: 6px; margin-top: -5px; border: solid #2F8A33; border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.isheet .is-sec { font: 400 13px var(--f-display); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: -4px; }
.isheet .is-multi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.isheet .is-multi a { border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); min-height: 76px; box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 400 13px/1.05 var(--f-display); text-transform: uppercase; text-align: center; padding: 4px; text-decoration: none; }
.isheet .is-multi button { border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); min-height: 76px; box-shadow: 0 5px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 400 13px/1.05 var(--f-display); text-transform: uppercase; text-align: center; padding: 4px; text-decoration: none; }
.isheet .is-multi button { font: inherit; cursor: pointer; }
.isheet .is-mpbox { margin: 10px 0 0; }
.isheet .is-mph { display: block; font: 400 15px/1 var(--f-display); text-transform: uppercase; color: #fff; margin: 0 0 8px; }
.isheet .is-multi a:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.isheet .is-multi button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.isheet .is-back { align-self: center; border: 0; background: none; font: 400 15px var(--f-display); text-transform: uppercase; color: #E6E2F5; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
/* ================= Aréna: Výprava, Žebříček, karty domova (M1, agent/design.md) ================= */
/* karty domova: mise, výprava, dárek dne, série */
.card { border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); }
.card h2 { font-size: 22px; line-height: 1.05; }
.eyebrow { font-family: var(--f-display); font-weight: 400; font-size: 13px; letter-spacing: 1px; color: #4B3FB5; }
.darkcard { border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); }
.darkcard .row b { font-size: 21px; text-transform: uppercase; color: var(--gold); }
.daily { background: #FFF4CF; border-color: var(--ink); }
.daily .dnew { font: 400 12px var(--f-display); color: #7A4B00; text-transform: uppercase; }
.drow { border-top: 2px solid #E8D9A0; }
.drow .dic { font-size: 0; }
.drow .dtx b { font-size: 15px; }
.drow .dtx small { color: #4F4B78; }
.drow .pbar, .drow .pbar i { border-radius: 5px; }
.drow .pbar { height: 12px; border: 2px solid var(--ink); background: #fff; }
.drow .pbar i { background: #7BE04B; }
.dbtn { background: var(--go); color: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); font: 400 14px var(--f-display); text-transform: uppercase; text-shadow: 0 2px 0 var(--ink); padding: 0 12px; }
.dbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.dbtn.gold { background: var(--gold); color: var(--ink); text-shadow: none; border-bottom: 3px solid var(--ink); }
.dok { width: 40px; height: 40px; border-radius: 10px; border: 3px solid var(--ink); background: #7BE04B; color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.dgo { color: var(--ink); font-size: 18px; }
.ds2 { text-decoration: none; color: inherit; border: 2px solid var(--accent); background: #FFF8E1; }
.ds2 b, .ds2 small { text-decoration: none; } .ds2 b { color: #17204A; }
.dshadow { filter: none; }
.mis { border-bottom: 2px solid var(--line); }
.mis .box { border: 3px solid var(--ink); border-radius: 8px; background: #fff; }
.mis.done .box { background: #7BE04B; border-color: var(--ink); }
.mis .t { font-size: 15px; }
.mis .n { font: 400 15px var(--f-display); color: var(--ink); }
.mis .mgo { background: var(--go); color: #fff; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 3px 0 var(--ink); font: 400 13px var(--f-display); text-transform: uppercase; text-shadow: 0 2px 0 var(--ink); padding: 8px 10px; min-height: 40px; display: inline-flex; align-items: center; }
a.mis.go:hover, a.mis.go:focus-visible { background: rgba(255, 209, 46, .25); }
.segs { gap: 4px; }
.segs i { height: 16px; border: 3px solid var(--ink); border-radius: 5px; background: #E4E1F5; }
.segs i.on { background: #7BE04B; }
.qrew { border: 3px solid var(--ink); border-radius: 12px; background: #FFF1C4; }
.chest { border: 3px solid var(--ink); background: #F1EFFB; border-radius: 14px; }
.chest.ready { border-style: solid; border-color: var(--ink); background: var(--gold); }
.chest-ic { width: 44px; height: 44px; background: none; border: 0; display: grid; place-items: center; }
.chest-ic::before, .chest-ic::after { content: none; }
.chest .t { color: var(--ink); font-weight: 800; }
.chest button { background: var(--go); color: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); font: 400 14px var(--f-display); text-transform: uppercase; text-shadow: 0 2px 0 var(--ink); min-height: 44px; }
.chest button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.week div { font: 400 11px var(--f-display); text-transform: uppercase; }
.week i { border: 3px solid var(--ink); border-radius: 8px; background: rgba(11, 15, 26, .35); display: grid; place-items: center; }
.week .on i { background: #FFD12E; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.week .now i { box-shadow: 0 0 0 3px #fff; }
.week .on.now i { box-shadow: 0 3px 0 var(--ink), 0 0 0 3px #fff; }
/* Výprava */
.jhead h1 { font-size: 28px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); transform: skew(-6deg); transform-origin: left; }
.chips { gap: 8px; }
.chips span { background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 7px 10px; font: 400 13px var(--f-display); text-transform: uppercase; }
.chips button { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); padding: 0 12px; min-height: 44px; font: 400 13px var(--f-display); text-transform: uppercase; }
.chips button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.path { margin-top: 18px; gap: 12px; }
.path::before { left: 26px; width: 8px; background: var(--ink); border-radius: 4px; }
.mon { font: 400 14px var(--f-display); letter-spacing: 1px; color: #C3BEF0; }
.mon.now { color: var(--gold); }
.st .dot i { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sky-3); }
.st.done .dot i { background: #7BE04B; }
.st.now .dot i { width: 46px; height: 46px; background: var(--gold); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 22px; }
.st .body { border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); padding: 10px 12px; }
.st.now .body { background: #fff; }
.st .body small { color: #D6D2F7; }
.st.now .body small { color: #4F4B78; }
.playbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--go); color: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); font: 400 15px var(--f-display); text-transform: uppercase; text-shadow: 0 2px 0 var(--ink); }
.playbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.st.rew .body { background: rgba(11, 15, 26, .25); border: 3px dashed #8F95D9; box-shadow: none; color: #D6D2F7; }
.st.rew .body b { color: #fff; font: 400 16px var(--f-display); }
.st.rew.next .body { border-style: solid; border-color: var(--gold); background: rgba(255, 209, 46, .12); }
.st.rew.got .body { border-style: solid; border-color: #7BE04B; background: rgba(123, 224, 75, .15); }
.st.rew .dot { display: flex; justify-content: center; }
.st.rew .dot .chest-ic { width: 40px; height: 40px; }
.rw-th { border: 3px solid var(--ink); border-radius: 10px; background: #fff; }
.rw-b { color: var(--gold); }
/* Žebříček */
.bragbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border: 3px solid var(--ink); border-radius: 14px; background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--ink); font: 400 17px var(--f-display); text-transform: uppercase; }
.bragbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.secttl { font: 400 19px var(--f-display); margin: 22px 0 0; }
.secttl small { font: 800 12px var(--f-body); text-transform: none; letter-spacing: 0; }
.btabs { background: var(--ink); border: 3px solid var(--ink); border-radius: 12px; gap: 4px; padding: 3px; }
.btabs button { min-height: 44px; border-radius: 8px; font: 400 13px var(--f-display); text-transform: uppercase; color: #C3BEF0; }
.btabs button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.bsel { border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.bsel span { font: 400 11px var(--f-display); letter-spacing: .5px; }
.bsel::after { content: ""; width: 0; height: 0; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; right: 12px; }
/* Martin 11. 11.: týden po–ne, stupně vítězů, výzva třídy, s kým (chips), podle čeho (4 velká tlačítka), ligy */
.bweek { margin: 8px 2px 0; font: 800 13px var(--f-body); color: var(--gold); }
.podium { margin-top: 16px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); background: var(--sky-2); padding: 10px 10px 12px; }
.podium h3 { margin: 0 0 8px; font: 400 15px var(--f-display); text-transform: uppercase; text-align: center; }
.podium .pods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; }
.podium .pd { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.podium .pd b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .stp { width: 100%; border: 3px solid var(--ink); border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center; font: 400 20px var(--f-display); color: var(--ink); }
.podium .p1 .stp { height: 54px; background: var(--gold); } .podium .p2 .stp { height: 40px; background: #D8DDE8; } .podium .p3 .stp { height: 30px; background: #E3A06B; }
.podium .pd.me b { color: var(--gold); }
.podium p { margin: 8px 0 0; text-align: center; font-weight: 800; font-size: 13px; color: var(--gold); }
.tgoal { margin-top: 12px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); background: var(--sky-2); padding: 10px 12px; }
.tgoal .tg1 { display: flex; justify-content: space-between; gap: 8px; font: 400 14px var(--f-display); text-transform: uppercase; }
.tgoal .bar { margin-top: 8px; height: 14px; border: 3px solid var(--ink); border-radius: 8px; background: var(--ink); overflow: hidden; }
.tgoal .bar i { display: block; height: 100%; background: #7BE04B; }
.tgoal small { display: block; margin-top: 6px; color: var(--muted); font-weight: 700; font-size: 12px; }
.bwho { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bwho button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 3px solid var(--ink); border-radius: 22px; background: var(--sky-2); color: var(--text); box-shadow: 0 3px 0 var(--ink); padding: 0 14px 0 10px; font: 400 13px var(--f-display); text-transform: uppercase; }
.bwho button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.bmet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.bmet button { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 3px solid var(--ink); border-radius: 12px; background: var(--sky-2); color: var(--text); box-shadow: 0 4px 0 var(--ink); font: 400 11px var(--f-display); text-transform: uppercase; padding: 4px 2px; min-width: 0; }
.bmet button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.bmet .aic { stroke: currentColor; }
.bwho .aic { stroke: currentColor; }
.ligahead { margin: 12px 0 0; border: 3px solid var(--ink); border-radius: 12px; background: var(--ink); padding: 8px 12px; font-weight: 800; font-size: 13px; line-height: 1.35; }
.ligahead b { display: block; font: 400 16px var(--f-display); text-transform: uppercase; color: var(--gold); }
.rank .zone { font-weight: 900; }
.rank .zone.up { color: #7BE04B; } .rank .zone.down { color: #FF8A8A; }
.rank li.me .zone.up { color: #1F7A12; } .rank li.me .zone.down { color: #B3261E; }
.rank .gapi { color: var(--accent); }
.notipref { font-weight: 800; }
.zintro { position: fixed; inset: 0; z-index: 90; background: rgba(11,15,26,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.zintro .zbox { width: min(420px, 100%); background: var(--sky-2); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); padding: 18px 16px 16px; }
.zintro h2 { margin: 0 0 12px; text-align: center; font: 400 26px var(--f-display); text-transform: uppercase; color: var(--gold); }
.zintro .zrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.zintro .zrow span { flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: #fff; border: 3px solid var(--ink); border-radius: 14px; }
.zintro .zrow b { font: 400 17px var(--f-display); text-transform: uppercase; line-height: 1.15; }
.zintro .zrow small { display: block; margin-top: 3px; font: 700 13px var(--f-body); text-transform: none; color: var(--muted); }
.zintro .zgo { margin-top: 14px; width: 100%; min-height: 54px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); background: #3BB273; color: #fff; font: 400 20px var(--f-display); text-transform: uppercase; }
.notipref button { min-height: 44px; border: 3px solid var(--ink); border-radius: 10px; background: var(--sky-2); box-shadow: 0 3px 0 var(--ink); }
.notipref button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: var(--ink); }
.nowchip { border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); padding: 4px 10px 4px 5px; }
.nowchip .dot { border: 2px solid var(--ink); width: 11px; height: 11px; }
.mface { border-radius: 10px; }
.nowpill { border: 3px solid var(--ink); border-radius: 10px; background: var(--ink); font-family: var(--f-display); font-weight: 400; text-transform: uppercase; }
button.nowchip .vz { display: inline-flex; align-items: center; gap: 4px; font: 400 12px var(--f-display); text-transform: uppercase; color: var(--gold); }
.rank { gap: 8px; }
.rank li { border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.rank li[style] { border: 0; box-shadow: none; }
.rank li.fam { background: var(--sky-3); }
.rank li.me { background: #fff; }
.rank li.me .pos { color: #4B3FB5; }
.rank .pos { font-size: 19px; }
.rank .pos.r1 { color: var(--gold); text-shadow: 0 2px 0 var(--ink); }
.rank li.me .pos.r1 { color: #B87400; text-shadow: none; }
.rank .sc { color: inherit; }
.feed { gap: 8px; }
.feed li { background: var(--sky-2); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); padding: 8px 10px; }
.feed li .fic { flex: none; width: 28px; display: grid; place-items: center; }
.fpager button { border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--ink); font: 400 14px var(--f-display); text-transform: uppercase; }
.fpager button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.rankfind { border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.clap { min-height: 44px; min-width: 56px; border: 3px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ink); font: 400 13px var(--f-display); display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.clap[aria-pressed="true"] { background: var(--gold); border-color: var(--ink); }
.clap.ro { border-color: transparent; background: none; box-shadow: none; color: inherit; min-height: 32px; min-width: 0; }
.cele .clap { border-color: var(--ink); }
.bragopts button { border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.bragopts button.pre { background: #FFF1C4; }
.bragopts button .bi { width: 34px; display: grid; place-items: center; font-size: 0; }
.cele { border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); }
.cele .big-ic { display: grid; place-items: center; flex: none; font-size: 0; }
.cele .tx b { text-transform: uppercase; }
.cele .cele-x { width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 10px; background: #fff; }
.cele .cele-mute { border: 2px solid var(--ink); border-radius: 8px; }

/* M2/M3: panely šatníku, novinek, hledání a uvítání ve stylu Aréna */
.tabs { background: var(--ink); border-radius: 12px; padding: 4px; gap: 4px; }
.tabs button { color: #A9B6EE; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 11px; }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: none; font-weight: 400; }
#wTabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; }
#wTabs button:not([aria-pressed="true"]) { background: #24306B; color: #DDE3FF; }
#wTabs button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 6px 4px; font-size: 13px; white-space: nowrap; border: 2px solid transparent; }
#wTabs button svg { flex: none; }
#wTabs button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
@media (min-width: 700px) { #wTabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } #wTabs button { flex-direction: column; gap: 3px; min-height: 60px; } }
.item { border: 3px solid var(--ink) !important; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.item b, .item strong { font-family: var(--f-display); font-weight: 400; }
.sheet:not(.isheet) { border: 3px solid var(--ink); box-shadow: 0 -6px 0 rgba(11, 15, 26, .55); }
.sheet .eyebrow { font-family: var(--f-display); font-weight: 400; letter-spacing: 1.5px; }
.nitem, .sgame { border: 3px solid var(--ink) !important; border-radius: 12px; box-shadow: 0 3px 0 var(--ink); }
.wel-step, .wel-chip { border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.wel-ic svg, .nitem .ic svg { display: block; }

/* Martin 12. 11.: při skrolování šatníkem zmizely cihly a záložky (Vzhled, Hlava…). Na telefonu hlavička s cihlami
   zůstává nahoře, pod ní postavička (menší) a záložky; věci se posouvají pod nimi. */
@media (max-width: 999px) {
  #wardrobe > .jhead { position: sticky; top: 0; z-index: 7; background: var(--sky); padding-top: calc(env(safe-area-inset-top, 0px) + 10px); padding-bottom: 8px; }
  #wardrobe > .stage { top: var(--wjh, 62px); height: 160px; }
  #wardrobe > .stage > div { transform: scale(.5); }
  #wTabs { position: sticky; top: calc(var(--wjh, 62px) + 160px); z-index: 6; box-shadow: 0 -10px 0 var(--paper, #fff), 0 8px 0 var(--paper, #fff); }
  /* po posunu se záložky zúží na jeden řádek jen s ikonami (Martin 12. 11.: víc místa na věci); text zůstává pro čtečku */
  #wardrobe.wstuck #wTabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #wardrobe.wstuck #wTabs button { font-size: 0; gap: 0; min-height: 44px; }
}

/* šatník pro 2. stupeň (6.–9. třída, UX revize 14. 11.): barvy /stupen2/, bez menu ostrovů, bez bílých pruhů */
body.s2 { --sky: #0D1020; --paper: #171B33; background: #0D1020; }
body.s2 #nav, body.s2 .lab-acc-bar { display: none !important; }
body.s2 #wardrobe > .jhead { background: #0D1020; align-items: center; gap: 10px; }
body.s2 #wardrobe h1 { font-family: "Paytone One", "Arial Black", sans-serif; text-transform: none; letter-spacing: 0; -webkit-text-stroke: 0; text-shadow: none; color: #F2F4FF; }
body.s2 #wardrobe > .stage { background: radial-gradient(120% 120% at 100% 0, #3A4FB0 0, #1B2150 60%, #0D1020 100%); }
body.s2 #wardrobe > .card { background: #171B33; color: #F2F4FF; border: 1px solid #262C4D; box-shadow: none; }
body.s2 #wardrobe > .card p, body.s2 #wardrobe > .card h3, body.s2 #wardrobe > .card h4, body.s2 #wardrobe > .card label { color: #C9CEEA; }
body.s2 #wTabs { background: #0D1020; box-shadow: 0 -10px 0 #171B33, 0 8px 0 #171B33; border-color: #262C4D; }
body.s2 #wTabs button:not([aria-pressed="true"]) { background: #262C4D; color: #F2F4FF; }
body.s2 #wTabs button[aria-pressed="true"] { background: #FFD12E; color: #0D1020; border-color: #FFD12E; box-shadow: none; }
body.s2 .s2back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 12px; background: #171B33; border: 1px solid #262C4D; color: #F2F4FF; font: 800 15px Nunito, system-ui, sans-serif; text-decoration: none; flex: none; }
body.s2 #wItems button { color: #F2F4FF; }
body.s2 #wardrobe .cta.ghost { background: #262C4D; color: #F2F4FF; border-color: #262C4D; box-shadow: none; text-transform: none; text-shadow: none; }
body.s2 .s2back:hover, body.s2 .s2back:focus-visible { border-color: #FFD12E; }
/* Martin 17. 11.: „v šatníku texty na bílém pozadí nejdou přečíst“ → nasazená věc a péče o mazlíčka tmavě */
body.s2 #wardrobe .item.on { background: #262C4D; border-color: #FFD12E; }
body.s2 #wardrobe .item.on span, body.s2 #wardrobe .item span { color: #F2F4FF; }
body.s2 #wardrobe .item.on small { color: #FFD12E; }
body.s2 #wardrobe .petcare { background: #171B33; border-color: #262C4D; color: #F2F4FF; }
body.s2 #wardrobe .petcare small { color: #C9CEEA; } body.s2 #wardrobe .petcare .pbar { background: #262C4D; }


/* ---------- hledání s našeptávačem a třída u jména (Martin 23. 11., návrh https://claude.ai/artifact/9MZrzN2YAAFpbc2FcGdHPg) ---------- */
.top { position: relative; }
button.who { display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 4px; margin: -4px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.who:hover { background: rgba(255, 255, 255, .06); }
button.who:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.who-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
.who-r .xpbar { margin-top: 0; flex: 1; min-width: 0; }
.trc { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 5px 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); font: 800 11px/1 var(--f-body); white-space: nowrap; }
.who small { margin-top: -2px; }
.lupa { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 3px 0 var(--ink); cursor: pointer; padding: 0; }
.lupa:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tsearch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; position: relative; }
.tsearch[hidden] { display: none; }
.tsearch-f { position: relative; z-index: 46; flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 14px; border-radius: 16px; background: #fff; border: 3px solid var(--gold); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.tsearch-f input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 800 17px var(--f-body); -webkit-appearance: none; appearance: none; }
.tsearch-f input::placeholder { color: #5B5880; font-weight: 700; }
.tsearch-f input::-webkit-search-cancel-button { display: none; }
.tsearch-f .mic { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #EEE8FF; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.tsearch-f .mic.on { background: #FF6B6B; color: #fff; }
.tsearch-x { position: relative; z-index: 46; flex: none; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: #fff; font: 800 15px var(--f-body); cursor: pointer; }
@media (max-width: 999px) { .top.ts-on > :not(.tsearch) { display: none; } }
.tsearch-list { white-space: normal; position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 45; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink), 0 0 0 100vmax rgba(15, 12, 40, .6); padding: 6px; display: flex; flex-direction: column; max-height: calc(100vh - 200px); overflow-y: auto; overscroll-behavior: contain; }
.tsearch-list[hidden] { display: none; }
.hs-grp { padding: 10px 10px 2px; font: 800 11px var(--f-body); color: #5B5880; text-transform: uppercase; letter-spacing: .07em; }
.hs-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 10px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.hs-row:hover, .hs-row[aria-selected="true"] { background: #EFEDFB; }
.hs-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; position: relative; }
.hs-ic .bld { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scale(.5); transform-origin: 50% 100%; }
.hs-ai .hs-ic, .hs-recent .hs-ic { border: 2px dashed #C3BEF0; color: #6B5FD0; }
.hs-recent .hs-ic { border-style: solid; border-color: #E4E1F5; }
.hs-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-t { font: 800 16px/1.25 var(--f-body); overflow-wrap: anywhere; }
.hs-t mark { background: none; color: #6B5FD0; }
.hs-tx small { font: 700 12px/1.3 var(--f-body); color: #5B5880; overflow-wrap: anywhere; }
.hs-tag { flex: none; font: 800 11px var(--f-body); padding: 3px 8px; border-radius: 999px; background: #5B5880; color: #fff; white-space: nowrap; }
.hs-tag.fit { background: #2F7A33; }
.hs-ai { margin-top: 4px; border-top: 2px solid #E4E1F5; border-radius: 0 0 14px 14px; color: #5B5880; }
.hs-none { padding: 14px 12px; font: 700 14px var(--f-body); color: #5B5880; }
.hs-wish { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; font: 700 14px var(--f-body); color: #5B5880; }
.hs-wishb { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 3px solid var(--ink); background: var(--gold); color: var(--ink); font: 800 14px var(--f-body); cursor: pointer; }
@media (max-width: 420px) {
  /* 30. 11.: se zvonkem novinek a pětimístnými cihlami se jméno zúžilo na 34 px a štítek třídy z něj vyčuhoval (R12) */
  .top { gap: 5px; }
  .top .pill { padding: 6px 6px; gap: 3px; }
  .top .bell { width: 40px; height: 40px; }
  .who b { font-size: 16px; }
  .top .me-btn { width: 46px; height: 46px; }
  .top .pill.season { display: none; }   /* úzký telefon: lupa potřebuje místo, svátek je dál v novinkách */
  .who small { display: none; }
}
@media (min-width: 1000px) {
  .top.ts-on > .lupa, .top.ts-on > .pill.season { display: none; }
  .top.ts-on > .tsearch { order: 2; } .top.ts-on > .me-btn { order: 0; } .top.ts-on > .who { order: 1; flex: 0 1 240px; } .top.ts-on > .pill, .top.ts-on > .bell { order: 3; }
  .tsearch-list { right: 52px; }
}
/* list třídy a hráče */
.sheet.trs { gap: 12px; }
.trg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.trg.s2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trb { min-height: 60px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); font: 400 22px var(--f-display); box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.trb.s2 { min-height: 48px; font-size: 17px; border: 2px solid #C3BEF0; background: #F4F2FC; box-shadow: none; }
.trb.on { background: var(--gold); border-color: var(--ink); }
.sheet .trl { font: 800 12px var(--f-body); color: var(--paper-muted); margin-top: 2px; }
.sheet .trp { font-size: 14px; }
.trh { border-top: 2px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.trhs { display: flex; flex-wrap: wrap; gap: 8px; }
.trhb { flex: 1 1 140px; min-height: 52px; border-radius: 16px; border: 2px solid #C3BEF0; background: #fff; color: var(--ink); font: 800 15px var(--f-body); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.trhb.on { border: 3px solid var(--ink); background: #FFF4D1; }
.trhb small { color: var(--paper-muted); font-weight: 700; }
/* živé odměny z adventních okének (Martin 30. 11.: „něco zábavného, velkého, hýbajícího“): pohyb přímo v kresbách u domu a na postavičce */
.an-tanec, .an-ruka, .an-ptak, .an-kvet, .an-krok, .an-bambule, .an-klapka { transform-box: fill-box; }
.an-tanec { transform-origin: 50% 100%; animation: anTanec .9s ease-in-out infinite; }
@keyframes anTanec { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-5px) rotate(6deg); } }
.an-ruka { transform-origin: 0% 100%; animation: anRuka .55s ease-in-out infinite alternate; }
@keyframes anRuka { from { transform: rotate(-25deg); } to { transform: rotate(30deg); } }
.an-ptak { transform-origin: 50% 100%; animation: anPtak 1.3s ease-in-out infinite; }
.an-ptak2 { animation-delay: -.6s; }
@keyframes anPtak { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-4px); } 35% { transform: translateY(0) rotate(-14deg); } }
.an-kvet { transform-origin: 50% 50%; animation: anKvet 3s ease-out infinite; }
@keyframes anKvet { 0%, 8% { transform: scale(0); } 30%, 85% { transform: scale(1.15); } 100% { transform: scale(0); } }
.an-chuze { animation: anChuze 7s ease-in-out infinite alternate; }
@keyframes anChuze { from { transform: translateX(-45px); } to { transform: translateX(45px); } }
.advc .an-chuze, .adv-dv .an-chuze, .adv-mini .an-chuze, .adv-velka .an-chuze { animation: none; }   /* v okénku stojí, chodí jen u domu */
.an-krok { transform-origin: 50% 100%; animation: anKrok .5s ease-in-out infinite alternate; }
.an-krok2 { animation-delay: -.25s; }
@keyframes anKrok { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-2.5px) rotate(3deg); } }
.an-bambule { transform-origin: 50% 100%; animation: anBambule .7s ease-in-out infinite; }
@keyframes anBambule { 0%, 100% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-6px) scale(.95, 1.08); } 70% { transform: translateY(0) scale(1.1, .9); } }
.an-klapka { transform-origin: 50% 0%; animation: anKlapka .7s ease-in-out infinite alternate; }
.an-klapka2 { animation-direction: alternate-reverse; }
@keyframes anKlapka { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.advc .adv-pop svg[width="82"] { transform: scale(1.8); }
.an-jizda, .an-prasek, .an-vlocka, .an-toc, .an-plamen, .an-svetluska, .an-dech, .an-zzz, .an-tucnak, .an-vlak, .an-pujde, .an-kour, .an-skok, .an-zare, .an-lod, .an-ohnostroj, .an-svetlo, .an-hvezda, .an-koule, .an-duha, .an-reflex, .an-vlaj, .an-pulz, .an-lesk, .an-snezi { transform-box: fill-box; }
.an-jizda { transform-origin: 50% 100%; animation: anJizda 2.6s ease-in-out infinite alternate; }
@keyframes anJizda { from { transform: translateX(-14px) rotate(-4deg); } to { transform: translateX(14px) rotate(3deg); } }
.an-prasek { animation: anPrasek .6s ease-out infinite; }
@keyframes anPrasek { from { opacity: 1; transform: translate(0, 0); } to { opacity: 0; transform: translate(-6px, -4px); } }
.an-vlocka { animation: anVlocka 5s ease-in-out infinite alternate; }
@keyframes anVlocka { from { transform: translate(-10px, -4px); } to { transform: translate(10px, 6px); } }
.an-toc { transform-origin: 50% 50%; animation: anToc 6s linear infinite; }
@keyframes anToc { to { transform: rotate(360deg); } }
.an-plamen { transform-origin: 50% 100%; animation: anPlamen .45s ease-in-out infinite alternate; }
@keyframes anPlamen { from { transform: scale(.85, .8); opacity: .85; } to { transform: scale(1.1, 1.25); opacity: 1; } }
.an-svetluska { animation: anSvetluska 2.4s ease-in-out infinite; }
@keyframes anSvetluska { 0%, 100% { transform: translate(0, 0); opacity: .3; } 50% { transform: translate(5px, -6px); opacity: 1; } }
.an-dech { transform-origin: 50% 100%; animation: anDech 2.2s ease-in-out infinite; }
@keyframes anDech { 50% { transform: scale(1.04, 1.1); } }
.an-zzz { animation: anZzz 2.4s ease-out infinite; }
.an-zzz2 { animation-delay: -1.2s; }
@keyframes anZzz { from { transform: translate(0, 6px); opacity: 0; } 30% { opacity: 1; } to { transform: translate(4px, -6px); opacity: 0; } }
.an-tucnak { animation: anTucnak 3.2s ease-in-out infinite; }
@keyframes anTucnak { 0%, 20% { transform: translate(0, 6px); } 35%, 55% { transform: translate(0, 0); } 75%, 85% { transform: translate(14px, 1px) rotate(70deg); } 100% { transform: translate(0, 6px); } }
.an-vlak { animation: anVlak 8s linear infinite alternate; }
@keyframes anVlak { from { transform: translateX(-70px); } to { transform: translateX(70px); } }
.an-pujde { animation: anKrok .3s ease-in-out infinite alternate; }
.an-kour { animation: anKour 1s ease-out infinite; }
@keyframes anKour { from { transform: translate(0, 0) scale(.6); opacity: .9; } to { transform: translate(-6px, -8px) scale(1.6); opacity: 0; } }
.an-skok { transform-origin: 50% 100%; animation: anSkok 1.4s ease-in-out infinite; }
@keyframes anSkok { 0%, 60%, 100% { transform: translateY(0); } 20% { transform: translateY(-9px) rotate(-6deg); } 40% { transform: translateY(0) rotate(4deg); } }
.an-zare { animation: anZare 6s ease-in-out infinite alternate; }
.an-zare2 { animation-duration: 8s; animation-delay: -3s; }
@keyframes anZare { from { transform: translateX(-12px) skewX(-8deg); opacity: .7; } to { transform: translateX(12px) skewX(8deg); opacity: 1; } }
.an-lod { animation: anLod 3s ease-in-out infinite alternate; }
@keyframes anLod { from { transform: translate(-6px, 0) rotate(-4deg); } to { transform: translate(6px, -2px) rotate(4deg); } }
.an-ohnostroj { transform-origin: 50% 50%; animation: anOhnostroj 1.8s ease-out infinite; }
@keyframes anOhnostroj { 0% { transform: scale(.1); opacity: 0; } 20% { opacity: 1; } 70% { transform: scale(1.3); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.an-svetlo { animation: anSvetlo 1.2s steps(2) infinite; }
@keyframes anSvetlo { 50% { opacity: .25; } }
.an-hvezda { transform-origin: 50% 50%; animation: anHvezda 1.6s ease-in-out infinite; }
@keyframes anHvezda { 50% { transform: scale(1.3) rotate(18deg); filter: drop-shadow(0 0 3px #FFD12E); } }
.an-koule { animation: anKoule 1.6s ease-in infinite; }
@keyframes anKoule { 0%, 15% { transform: translate(0, 0); opacity: 1; } 75% { transform: translate(-40px, -30px); opacity: 1; } 76%, 100% { opacity: 0; } }
.an-duha path, .an-duha circle { animation: anDuha 2.4s linear infinite; }
@keyframes anDuha { 0% { stroke: #fff; fill: #fff; } 33% { stroke: #FFD12E; fill: #FFD12E; } 66% { stroke: #7BE04B; fill: #7BE04B; } 100% { stroke: #fff; fill: #fff; } }
.an-reflex { animation: anReflex 1.4s ease-in-out infinite; }
@keyframes anReflex { 50% { stroke: #FFFFFF; filter: drop-shadow(0 0 3px #E8FF5A); } }
.an-vlaj { transform-origin: 50% 0%; animation: anVlaj 1.1s ease-in-out infinite alternate; }
@keyframes anVlaj { from { transform: rotate(-10deg) skewX(-6deg); } to { transform: rotate(12deg) skewX(6deg); } }
.an-pulz { transform-origin: 50% 50%; animation: anPulz .5s ease-in-out infinite alternate; }
.an-pulz2 { animation-delay: -.25s; }
@keyframes anPulz { to { transform: scale(1.18); } }
.an-lesk { animation: anLesk 1.8s ease-in-out infinite; }
@keyframes anLesk { 0%, 70%, 100% { stroke: #9AA8BC; } 80% { stroke: #FFFFFF; filter: drop-shadow(0 0 3px #BFE6FF); } }
.an-snezi { animation: anSnezi 2.2s linear infinite; }
@keyframes anSnezi { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(40px); opacity: 0; } }
.advc .an-vlak, .adv-dv .an-vlak, .adv-mini .an-vlak, .adv-velka .an-vlak { animation: none; }
.advc .adv-pop svg[width="150"], .advc .adv-pop svg[width="120"], .advc .adv-pop svg[width="110"] { transform: scale(1.1); }
.advc .adv-pop svg[width="56"] { transform: scale(2.2); }
@media (prefers-reduced-motion: reduce) { [class^="an-"], [class*=" an-"] { animation: none !important; } }
/* scény z adventního kalendáře po celé mapě (Martin 30. 11., varianta 4) */
.mscena { position: absolute; transform: translate(-50%, -100%) scale(1.6); transform-origin: 50% 100%; pointer-events: none; z-index: 2; }
.mcesta { position: absolute; left: 0; top: 0; offset-rotate: 0deg; offset-anchor: 50% 100%; transform: scale(1.4); pointer-events: none; z-index: 3; animation: advCesta 46s linear infinite alternate; }
.mc-a_mikulas { animation-duration: 64s; animation-direction: alternate-reverse; }
@keyframes advCesta { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.mcesta .an-chuze, .mcesta .an-vlak { animation: none; }
.mnebe { position: absolute; transform: translateX(-50%) scale(var(--k, 1.5)); transform-origin: 50% 0; pointer-events: none; z-index: 0; }
.msobi { position: absolute; left: 0; pointer-events: none; z-index: 3; animation: advSobi 16s linear infinite; }
@keyframes advSobi { from { transform: translate(-150px, 0); } to { transform: translate(calc(var(--w, 400px) + 30px), -50px); } }
.mscena.adv-ukaz, .mcesta.adv-ukaz, .mnebe.adv-ukaz { animation-name: advUkazF; animation-duration: 1s; animation-iteration-count: 3; }
.mcesta.adv-ukaz { animation: advCesta 46s linear infinite alternate, advUkazF 1s ease-in-out 3; }
@keyframes advUkazF { 50% { filter: drop-shadow(0 0 12px rgba(255, 209, 46, .95)) brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .mcesta { animation: none; offset-distance: 30%; } .mc-a_mikulas { offset-distance: 70%; } .msobi { display: none; } }
