:root {
  --y: #f2b705; --y2: #ffd84d; --ink: #1d2433; --mut: #5d6678; --bg: #fff8e6; --card: #fff;
  --bp: #1f5592; --ok: #2fa84f; --bad: #e0453a; --line: #e8dcc0;
  /* okraje pod systémovými lištami: APK (Capacitor SystemBars) je posílá v --safe-area-inset-*, env() je ve WebView na Androidu často 0 */
  --sat: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* hidden musí vyhrát nad vlastním display (karta, toast, menu…) */
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans JP", "Noto Color Emoji", sans-serif; overscroll-behavior: none; }
/* emoji z přibaleného písma Noto (fonts/emoji.css) i v tlačítkách a polích */
button, input, select, textarea { font-family: inherit; }
body { user-select: none; -webkit-user-select: none; }
#app { height: 100%; max-width: 640px; margin: 0 auto; position: relative; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scr[hidden] { display: none; }
.scroll { flex: 1; overflow-y: auto; padding: 12px 16px 16px; -webkit-overflow-scrolling: touch; }

/* úvod */
#uvod { padding: 24px 16px; gap: 18px; justify-content: center;
  background: repeating-linear-gradient(-45deg, #fff8e6 0 22px, #fff3d1 22px 44px); }
.hero { text-align: center; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.heroImg { width: 100%; flex: 1; min-height: 0; max-height: 52vh; object-fit: cover; object-position: center 35%; display: block; border-radius: 26px; box-shadow: 0 6px 0 rgba(0,0,0,.1); order: 2; }
.heroTx { order: 1; }
h1 { font-size: 34px; margin: 0; line-height: 1.05; letter-spacing: -.5px; }
.sub { color: var(--ink); margin: 6px 0 0; font-size: 17px; font-weight: 600; }
#uvod { justify-content: flex-start; padding-top: max(16px, var(--sat)); padding-bottom: calc(16px + var(--sab)); }
.uvodSpod { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mut { color: var(--mut); font-weight: 500; }
.menu { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: 0 3px 0 var(--line); display: flex; flex-direction: column; gap: 10px; }
.card label { font-weight: 700; font-size: 18px; }
input { font: inherit; font-size: 20px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); width: 100%; }
input:focus { outline: none; border-color: var(--y); }
.stat { text-align: center; color: var(--mut); font-weight: 600; }
/* úkol od rodičů a cíl šetření na úvodu */
.cilBox { font: inherit; text-align: left; border: 0; border-radius: 16px; padding: 10px 14px; background: var(--card); color: var(--ink); box-shadow: 0 3px 0 var(--line);
  display: flex; flex-direction: column; gap: 3px; font-size: 16px; cursor: pointer; }
.cilBox small { color: var(--mut); font-weight: 600; font-size: 14px; }
.cilBar { display: block; height: 8px; border-radius: 4px; background: #eee3c4; overflow: hidden; margin-top: 4px; }
.cilBar i { display: block; height: 100%; background: var(--y); border-radius: 4px; }

/* tlačítka */
.btn { font: inherit; font-weight: 700; font-size: 18px; border: 0; border-radius: 16px; padding: 12px 16px; background: #fff; color: var(--ink);
  box-shadow: 0 4px 0 #d9ccb0; cursor: pointer; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9ccb0; }
.btn.big { font-size: 22px; padding: 16px; }
.btn.y { background: var(--y); box-shadow: 0 4px 0 #b88a00; }
.btn.y:active { box-shadow: 0 1px 0 #b88a00; }
.btn.small { font-size: 15px; padding: 8px 12px; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--mut); }
.btn.red { background: var(--bad); color: #fff; box-shadow: 0 4px 0 #9b2a22; }
.btn[disabled] { opacity: .45; }
.ib { font: inherit; font-size: 22px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.15);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; padding: 0; }
.ib:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.ib.small { width: 36px; height: 36px; font-size: 17px; }
.ib.on { background: var(--y); }

/* lišta */
.bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, var(--sat)); background: var(--y); }
.bar h2 { margin: 0; font-size: 21px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .stat { color: var(--ink); }
.foot { padding: 10px 16px; padding-bottom: max(12px, var(--sab)); display: flex; gap: 10px; }
.foot .btn { flex: 1; }

/* zakázky */
.list { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.scroll .list { padding: 12px 0; }
.zak { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 3px 0 var(--line); border: 0; font: inherit; text-align: left; width: 100%; cursor: pointer; color: var(--ink); }
.zak .em { font-size: 40px; width: 52px; text-align: center; flex: none; }
.zak .tx { flex: 1; min-width: 0; }
.zak b { font-size: 18px; display: block; }
.zak small { color: var(--mut); font-size: 14px; }
.zak .hv { font-size: 18px; letter-spacing: 1px; flex: none; }
.zak.zam { opacity: .55; }
/* Můj projekt: tlačítka na vlastním řádku pod názvem (na úzkém telefonu by název zakryla) */
#projList .zak { flex-wrap: wrap; row-gap: 8px; }
.projBtns { display: flex; gap: 8px; width: 100%; justify-content: flex-end; flex-wrap: wrap; }
.projBtns .ib { flex: none; width: 44px; height: 44px; font-size: 20px; background: #f1f3f8; box-shadow: none; }
.zak.zam .porImg { filter: grayscale(.8); }
.sekce { position: relative; margin: 14px 0 2px; border-radius: 18px; overflow: hidden; height: 120px; box-shadow: 0 3px 0 var(--line); }
.sekce:first-child { margin-top: 0; }
.sekce .banner { width: 100%; height: 100%; object-fit: cover; display: block; }
.sekce.zam .banner { filter: grayscale(.7) brightness(.85); }
.sekceTx { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 22px 12px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.62)); color: #fff; font-weight: 800; font-size: 21px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.sekceTx small { font-size: 14px; font-weight: 700; }
.por { position: relative; width: 58px; height: 58px; flex: none; }
.porImg { width: 58px; height: 58px; object-fit: contain; display: block; }
.porImg.emo, span.porImg { font-size: 42px; display: grid; place-items: center; }
.zamekIk { position: absolute; right: -4px; bottom: -4px; font-style: normal; font-size: 20px; }
.bytBtn { display: inline-block; margin-left: 6px; font-size: 22px; background: #fff4c7; border-radius: 10px; padding: 2px 6px; }
.bubble .who .porImg { width: 72px; height: 72px; }
.rozpocet { margin: -4px 2px 12px; font-size: 16px; color: var(--mut); }
.mi { width: 38px; height: 38px; object-fit: contain; display: block; }
.mat .mi { width: 40px; height: 40px; }
.obj .mi { width: 46px; height: 46px; }
.tim { width: 54px; height: 54px; object-fit: contain; flex: none; }
.inspImg { width: 84px; height: 84px; object-fit: contain; flex: none; }
.slavaIlu { width: 110px; height: 110px; object-fit: contain; display: block; margin: 0 auto; }
span.slavaIlu { font-size: 64px; display: block; }
.kamImg { width: 120px; height: auto; display: block; }
.ucet { background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 3px 0 var(--line); font-size: 16px; display: flex; flex-direction: column; gap: 4px; }
.ucet > div { display: flex; justify-content: space-between; gap: 8px; }
.ucet small { color: var(--mut); }
.ucet .cerv { color: var(--bad); }
.slavaUcet { text-align: left; margin: 0 0 12px; background: #fff8e6; box-shadow: none; font-size: 15px; }
.slavaUcet .zisk { border-top: 2px solid var(--line); padding-top: 4px; font-size: 17px; font-weight: 800; }
.obchod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zbozi { font: inherit; border: 0; background: #fff; border-radius: 16px; padding: 8px 4px; box-shadow: 0 3px 0 var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); cursor: pointer; }
.zbozi img { width: 64px; height: 64px; object-fit: contain; }
.zbozi b { font-size: 14px; } .zbozi small { color: var(--mut); font-weight: 700; }
.zbozi.drahe { opacity: .5; }
.zamek { position: fixed; inset: 0; z-index: 18; background: rgba(20,25,35,.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.zamek[hidden] { display: none; }
.zamekIn { background: #fff; border-radius: 26px; padding: 22px 18px; text-align: center; max-width: 380px; }
.zamekIlu { width: 140px; height: 140px; object-fit: contain; }
.rodPrehled { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.rodPrehled div { background: #fff; border-radius: 14px; padding: 8px 10px; box-shadow: 0 2px 0 var(--line); }
.rodPrehled b { display: block; font-size: 19px; } .rodPrehled small { color: var(--mut); }
.graf { display: flex; gap: 6px; align-items: flex-end; height: 100px; margin: 4px 0 10px; }
.graf .sl { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; font-size: 12px; }
.graf i { width: 100%; background: var(--y); border-radius: 6px 6px 0 0; }
.graf b { font-size: 12px; color: var(--mut); }
select { font: inherit; font-size: 16px; padding: 8px; border-radius: 10px; border: 2px solid var(--line); background: #fff; max-width: 55%; }
.set small { font-size: 13px; }
.zak.rozd { outline: 3px dashed var(--y); }

/* brief */
.bubble { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 3px 0 var(--line); margin-bottom: 14px; }
.bubble .who { font-size: 46px; line-height: 1; }
.bubble p { margin: 4px 0 6px; font-size: 17px; line-height: 1.35; }
.vk { background: var(--bp); border-radius: 14px; padding: 8px; color: #eaf3ff; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.tabs button { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 10px; border-radius: 10px; border: 1.5px solid rgba(234,243,255,.4); background: transparent; color: #eaf3ff; white-space: nowrap; cursor: pointer; }
.tabs button.on { background: #eaf3ff; color: var(--bp); }
.vkPlocha svg, .vkMini svg { width: 100%; height: auto; max-height: 52vh; display: block; }
/* přiblížení výkresu: přiblížený list se posouvá prstem uvnitř rámečku */
.vkZoom { position: relative; }
.vkPlocha { touch-action: pan-x pan-y; }
.vkPlocha.zoomed { overflow: auto; max-height: 60vh; overscroll-behavior: contain; }
.vkPlocha.zoomed svg { max-height: none; }
.vkZb { position: absolute; right: 6px; top: 6px; display: flex; flex-direction: column; gap: 6px; }
.vkZb button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(234,243,255,.92); color: var(--bp); font: inherit; font-size: 22px; font-weight: 800; box-shadow: 0 2px 0 rgba(0,0,0,.25); cursor: pointer; }
.objFirmaH { margin: 16px 0 8px; font-size: 17px; }
.objFirma { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.objFirma div { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; background: #fff; border-radius: 12px; padding: 6px 8px; box-shadow: 0 2px 0 var(--line); font-size: 14px; }
.objFirma div > :first-child { grid-row: span 2; font-size: 26px; }
.objFirma div > :first-child svg, .objFirma div > :first-child img { width: 30px; height: 30px; }
.objFirma small { grid-column: 2 / 4; color: var(--mut); }
.objFirmaP { font-size: 14px; margin-top: 8px; }
.vkMini { background: var(--bp); border-radius: 12px; padding: 6px; margin-bottom: 12px; }
.razitko { display: grid; grid-template-columns: auto 1fr; gap: 0; border: 1.5px solid rgba(234,243,255,.7); margin-top: 8px; font-size: 12px; }
.razitko span { padding: 4px 6px; border-bottom: 1px solid rgba(234,243,255,.35); }
.razitko span:nth-child(odd) { opacity: .75; border-right: 1px solid rgba(234,243,255,.35); }
.razitko span:nth-last-child(-n+2) { border-bottom: 0; }
.legenda { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 12px; font-size: 14px; color: var(--mut); }
.legenda div { display: flex; align-items: center; gap: 8px; }
.legenda svg { width: 26px; height: 26px; flex: none; border-radius: 4px; }
.hint { color: var(--mut); font-size: 16px; line-height: 1.4; margin: 0 0 12px; }

/* objednávka */
.obj { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 3px 0 var(--line); margin-bottom: 10px; }
.obj .em { font-size: 32px; }
.obj .tx { flex: 1; font-weight: 700; font-size: 17px; }
.obj .num { font-size: 28px; font-weight: 800; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }

/* stavba */
.full { background: #bfe3ff; }
#scena, #scenaMesto { position: absolute; inset: 0; }
#scena canvas, #scenaMesto canvas { display: block; }
.hud { position: absolute; z-index: 2; }
.hud.top { top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px; padding-top: max(10px, var(--sat)); pointer-events: none; }
.hud.top > * { pointer-events: auto; }
.ttl { flex: 1; background: rgba(255,255,255,.92); border-radius: 14px; padding: 5px 10px; min-width: 0; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.ttl b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttl span { font-size: 13px; color: var(--mut); font-weight: 600; }
.mini { position: absolute; z-index: 2; left: 10px; top: calc(max(10px, var(--sat)) + 58px); width: 112px; background: var(--bp); border-radius: 10px; padding: 3px; box-shadow: 0 3px 0 rgba(0,0,0,.2); cursor: pointer; }
.mini svg { width: 100%; height: auto; display: block; }
.mini[hidden] { display: none; }
.hud.side { right: 10px; top: 50%; transform: translateY(-60%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vr { background: rgba(255,255,255,.92); border-radius: 10px; padding: 4px 6px; font-size: 12px; font-weight: 700; text-align: center; max-width: 76px; line-height: 1.15; }
.hud.cam { left: 10px; top: 50%; transform: translateY(-20%); display: flex; flex-direction: column; gap: 6px; }
.hud.cam .ib { width: 40px; height: 40px; font-size: 19px; }
.hud.bottom { left: 0; right: 0; bottom: 0; padding: 8px 8px; padding-bottom: max(8px, var(--sab)); background: linear-gradient(transparent, rgba(0,0,0,.18)); }
.paleta { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.mat { flex: none; width: 64px; height: 70px; border-radius: 14px; border: 3px solid transparent; background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.18); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; padding: 0; color: var(--ink); position: relative; }
.mat .em { font-size: 26px; line-height: 1; }
.mat small { font-size: 11px; font-weight: 700; }
.mat .cnt { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; border-radius: 10px; font-size: 12px; font-weight: 800; padding: 1px 6px; }
.mat.on { border-color: var(--y); background: #fff4c7; transform: translateY(-3px); }
.mat.off { opacity: .35; }
.akce { display: flex; gap: 8px; }
.akce .btn { flex: 1; font-size: 17px; padding: 12px 8px; }
.pulse { animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.12); background: var(--y2); } }
.toast { position: fixed; z-index: 25; left: 50%; top: 22%; transform: translateX(-50%); width: min(88%, 420px); background: #fff; border-radius: 18px; padding: 12px 14px; font-size: 17px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: center; line-height: 1.3; }
.toast[hidden] { display: none; }
.toast .em { font-size: 34px; }
.kamion { position: absolute; z-index: 6; top: 40%; left: 0; font-size: 64px; animation: jede 2.4s linear forwards; transform: scaleX(-1); }
.kamion[hidden] { display: none; }
@keyframes jede { from { left: -30%; } to { left: 110%; } }

/* město */
.mestoList { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; overflow-x: auto; padding: 10px; padding-bottom: max(10px, var(--sab)); scrollbar-width: none; }
/* procházka: joystick vlevo dole, výtah vpravo */
.chuzeUI { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 0; }
.chuzeUI[hidden], #mesto.chodi .hud.cam, #mesto.chodi .mestoList { display: none; }
.joy { position: absolute; left: 22px; bottom: calc(max(16px, var(--sab)) + 10px); width: 132px; height: 132px; border-radius: 50%; background: rgba(255,255,255,.35); border: 3px solid rgba(255,255,255,.8); touch-action: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.joy i { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.2); pointer-events: none; }
.chuzeBtn { position: absolute; right: 14px; bottom: calc(max(16px, var(--sab)) + 215px); display: flex; flex-direction: column; gap: 10px; }
.chuzeBtn .ib { width: 64px; height: 56px; font-size: 20px; }
.mestoList .chip { flex: none; background: rgba(255,255,255,.94); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.15); border: 0; font-family: inherit; color: var(--ink); }

/* sheet */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(20,25,35,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheetIn { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; max-height: calc(100dvh - max(24px, var(--sat))); overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding: 16px; padding-bottom: max(16px, var(--sab)); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheetIn h3 { margin: 0 0 10px; font-size: 21px; }
.sheetIn p { font-size: 17px; line-height: 1.4; margin: 0 0 12px; }
.sheetIn .row { display: flex; gap: 10px; margin-top: 12px; }
.sheetIn .row .btn { flex: 1; }
.insp { display: flex; gap: 12px; align-items: flex-start; }
.insp .em { font-size: 52px; line-height: 1; }
.set { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }

/* oslava */
.slava { position: fixed; inset: 0; z-index: 30; background: rgba(20,25,35,.6); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: max(16px, var(--sat)) 16px calc(16px + var(--sab)); }
.slava[hidden] { display: none; }
.slavaIn { background: #fff; border-radius: 26px; padding: 22px 18px; text-align: center; width: min(100%, 400px); position: relative; animation: pop .35s cubic-bezier(.3,1.6,.6,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.slavaIn h2 { margin: 6px 0; font-size: 26px; }
.hvezdy { font-size: 46px; letter-spacing: 4px; margin: 6px 0; }
.hvezdy span { display: inline-block; animation: pop .4s backwards; }
.hvezdy .ne { filter: grayscale(1); opacity: .3; }
.duvody { text-align: left; font-size: 15px; color: var(--mut); margin: 8px 0 14px; line-height: 1.6; }
.stamp { position: absolute; top: 14px; right: -6px; transform: rotate(14deg); border: 4px solid var(--bad); color: var(--bad); font-weight: 900; font-size: 15px; padding: 4px 8px; border-radius: 8px; animation: stamp .5s .3s backwards; background: rgba(255,255,255,.85); }
@keyframes stamp { from { transform: rotate(14deg) scale(3); opacity: 0; } }
.konf { position: absolute; top: -20px; width: 10px; height: 16px; animation: pad linear forwards; }
@keyframes pad { to { transform: translateY(110vh) rotate(720deg); } }
.slavaIn .btn { width: 100%; margin-top: 8px; }

/* v4: počasí, stavební deník, tisk */
.predpoved { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 4px; }
.predpoved > div { background: #f3f6fa; border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.predpoved > div:first-child { background: #fff4c4; box-shadow: inset 0 0 0 2px var(--y, #f2b705); }
.predpoved .pik { font-size: 34px; line-height: 1.1; }
.predpoved small { color: var(--mut); font-weight: 600; }
.zapis { background: #fffaf0; border: 2px dashed #d9c79a; border-radius: 14px; padding: 10px 12px; line-height: 1.5; font-size: 15px; }
table.denik { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
table.denik th, table.denik td { border-bottom: 1px solid #e6e1d6; padding: 6px 4px; text-align: left; vertical-align: top; }
table.denik td.num, table.denik th:last-child { text-align: right; white-space: nowrap; }
table.denik tfoot td { font-weight: 800; border-bottom: 0; }
.tisk { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  body > *:not(#tisk) { display: none !important; }
  #tisk { display: block !important; color: #1b2a3a; font-family: system-ui, sans-serif; }
  #tisk h1 { font-size: 22pt; margin: 0 0 8mm; }
  .tiskListy { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
  .tiskListy figure { margin: 0; break-inside: avoid; border: 1px solid #9aa7b5; padding: 3mm; }
  .tiskListy svg { width: 100%; height: auto; display: block; }
  .tiskListy figcaption { font-weight: 700; margin-top: 2mm; }
  .tiskRazitko { position: relative; margin-top: 8mm; border: 2px solid #1b2a3a; display: grid; grid-template-columns: 1fr 1fr; break-inside: avoid; }
  .tiskRazitko > div { padding: 2mm 3mm; border: 1px solid #1b2a3a; }
  .tiskRazitko span { display: block; font-size: 8pt; color: #56626e; }
  .tiskRazitko .tiskStamp { position: absolute; right: 6mm; bottom: 3mm; border: 3px solid #c62828; color: #c62828; font-weight: 900; padding: 1mm 4mm; transform: rotate(-8deg); background: #fff; }
}
/* ---------- panel Pro rodiče: společný vzor appek (stejně jako Pokusníček, liší se jen barvou zvýraznění) ----------
   úvod: pilulka „podrž“ → PIN na klávesnici → bílý list s ✕, sekce jako pilulky, obsah v kartách, popisky nad poli */
.rodPill { align-self: center; position: relative; overflow: hidden; padding: 10px 18px; border-radius: 999px; border: 0; background: #fff; font: inherit; font-weight: 800; font-size: 15px; color: var(--ink);
  box-shadow: 0 2px 0 var(--line); cursor: pointer; touch-action: none; -webkit-touch-callout: none; }
.rodPill .fill { position: absolute; inset: 0; background: rgba(242,183,5,.45); transform: scaleX(0); transform-origin: left; }
.rodPill.holding .fill { transition: transform 1.5s linear; transform: scaleX(1); }
.rodPill .t { position: relative; }
.sheetIn.rod { background: #fff; max-width: 520px; display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
/* panel Pro rodiče: pevná výška (sekce se přepínají bez skákání), nahoře přilepená hlavička s ✕ */
.sheetIn.rod { height: 88vh; height: min(calc(100dvh - max(24px, var(--sat))), 820px); }
.rodTop { position: sticky; top: -16px; z-index: 3; background: #fff; margin: -16px -16px 0; padding: 16px 16px 10px; display: flex; flex-direction: column; gap: 10px; border-radius: 22px 22px 0 0; box-shadow: 0 6px 8px -8px rgba(0,0,0,.25); }
.sheetIn.rod p { margin: 0; font-size: 15px; }
.rodHead { display: flex; align-items: center; gap: 10px; }
.rodHead h2 { flex: 1; margin: 0; font-size: 24px; }
.rod .rodX { background: #f1f3f8; box-shadow: none; }
.psecs { display: flex; flex-wrap: wrap; gap: 6px; }
.psecs button { font: inherit; border: 0; cursor: pointer; white-space: nowrap; padding: 9px 12px; border-radius: 999px; background: #f1f3f8; font-weight: 800; font-size: 14px; color: var(--ink); }
.psecs button.on { background: var(--y); }
/* ikony panelu (2026-11-14): obrysové SVG v barvě textu, u h3 o odstín světlejší; jediná barevná by byla zlatá hvězda u Premium */
svg.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; margin-right: .4em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.star { fill: var(--y); stroke: #c99a1e; }
.kidbox h3 svg.ic { color: #5a6178; }
.ib svg.ic { margin: 0; }
.kidbox { border: 2px solid #e6eaf1; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sheetIn .kidbox h3 { margin: 0; font-size: 19px; }
.rowx { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mut); flex: 1; min-width: 130px; font-weight: 600; }
.field input, .field select, .rowx > input { font: inherit; font-size: 17px; color: var(--ink); padding: 10px 12px; border: 2px solid #dde3ec; border-radius: 12px; background: #fff; width: 100%; user-select: text; -webkit-user-select: text; }
.rowx > input { flex: 1; width: auto; min-width: 120px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #f1f3f8; font-weight: 800; font-size: 14px; }
.sheetIn p.pozn, .pozn { font-size: 13px; color: var(--mut); line-height: 1.4; }
.rodLbl { font-weight: 700; font-size: 15px; }
.rodChk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 700; cursor: pointer; }
.rodChk input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; padding: 0; accent-color: #c99600; }
.rodChk small { display: block; font-size: 13px; color: var(--mut); font-weight: 500; }
.rod .btn { font-size: 15px; padding: 9px 14px; border-radius: 14px; }
.rod .btn.white { background: #fff; border: 2px solid #e6eaf1; box-shadow: 0 3px 0 #dde3ec; }
.rod .btn.danger { background: #fde4e2; color: #a32b23; border: 0; box-shadow: none; font-size: 15px; }
.help { border-top: 1px solid rgba(0,0,0,.08); padding: 8px 0; }
.help summary { font-weight: 800; cursor: pointer; font-size: 16px; }
.help > div { font-size: 14px; line-height: 1.5; color: var(--mut); display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.sheetIn.rod .help p { font-size: 14px; }
.help a { color: var(--bp); font-weight: 700; }
.rodOtazka { text-align: center; font-size: 20px !important; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pinpad button { height: 54px; border-radius: 12px; border: 0; background: #f1f3f8; font: inherit; font-size: 24px; font-weight: 800; color: var(--ink); cursor: pointer; }
.pinpad button:active { background: var(--y); }
.pindots { display: flex; gap: 10px; justify-content: center; }
.pindots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); font-style: normal; }
.pindots i.f { background: var(--ink); }
.tw { overflow-x: auto; }
.st { width: 100%; border-collapse: collapse; font-size: 13px; }
.st th { text-align: left; font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .5px; padding: 4px 6px; border-bottom: 2px solid #e6eaf1; }
.st td { padding: 6px; border-bottom: 1px solid #eef1f6; vertical-align: top; }
.st td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fbtns { display: flex; gap: 6px; } .fbtns .ib { width: 40px; height: 40px; font-size: 18px; background: #f1f3f8; box-shadow: none; }
.fmade { background: #eaf8e4; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.fmade pre { white-space: pre-wrap; font: 14px/1.4 inherit; font-family: inherit; background: #fff; border-radius: 10px; padding: 8px; margin: 0; user-select: text; }
.fdel { background: #fdf0ef; border-radius: 12px; padding: 10px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.slavaIn { max-height: 100%; overflow-y: auto; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

.volby { display: grid; gap: 10px; margin-top: 8px; }
.volby .btn { width: 100%; }

.mestoList .chip.on { background: var(--y, #f2b705); }
.mestoList .chip.prosba { background: #fff4c7; border: 2px solid var(--y, #f2b705); }
.zak .hv .helma { font-style: normal; margin-left: 2px; }


/* zakázky: záložky hlavní zakázky / nové zakázky od obyvatel */
.zakTabs { display: flex; gap: 8px; padding: 10px 14px 0; }
.zakTabs button { flex: 1; font: inherit; font-weight: 800; font-size: 15px; border: 0; border-radius: 999px; padding: 10px 8px; background: #fff; box-shadow: 0 3px 0 var(--line); color: var(--ink); cursor: pointer; }
.zakTabs button.on { background: var(--y); }
.zakTabs b { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #e0453a; color: #fff; font-size: 13px; }
.zakTabs b:empty { display: none; }

/* procházka: mapička celého města vpravo dole (kde jsem a kam se dívám) */
.mapka { position: absolute; right: 14px; bottom: calc(max(16px, var(--sab)) + 10px); width: auto; height: auto; max-width: 140px; max-height: 190px; border-radius: 14px; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(0,0,0,.25); background: #7fbf5a; pointer-events: none; }

/* Stavby světa: název kultury nad jejími stavbami */
.kultura { margin: 10px 4px -2px; font-size: 15px; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; }

/* 🔊 v rohu okna: přečíst znovu nahlas */
.sheetIn { position: relative; }
.sheetCti { position: absolute; top: 10px; inset-inline-end: 12px; width: 40px; height: 40px; font-size: 18px; background: #f1f3f8; box-shadow: none; z-index: 2; }
.sheetIn > h3:first-of-type { padding-inline-end: 48px; }

/* zprava doleva (arabština): šipka zpět míří doprava, čísla a stavy se neotáčí */
:root[dir="rtl"] [data-go].ib, :root[dir="rtl"] #stZpet { transform: scaleX(-1); }
:root[dir="rtl"] #statZak, :root[dir="rtl"] #statUvod { unicode-bidi: isolate; }
.stamp { max-width: 75%; text-align: center; }
:root[dir="rtl"] .stamp { right: auto; left: -6px; transform: rotate(-14deg); }
/* japonština: nelámat slova uprostřed (texty mají mezery mezi slovy) */
:root[lang="ja"] body { line-break: strict; word-break: keep-all; overflow-wrap: anywhere; }
body { overflow-x: hidden; }

/* Kreslené ikony místo emoji (ikony.js) */
img.ike { height: 1.2em; width: auto; vertical-align: -0.24em; display: inline-block; pointer-events: none; }
button img.ike, .ib img.ike { height: 1.35em; }

/* Tři pohledy (pohledy.js) a Zkouška zátěže (zatez.js) */
.sekce .p3Banner { display: flex; align-items: flex-start; justify-content: center; gap: 6px; background: var(--bp); padding: 6px 8px 0; margin: 0; }
.sekce.zam .p3Banner { filter: grayscale(.7) brightness(.85); }
.zInsp h3 { padding-inline-end: 40px; }
.p3Banner figure { margin: 0; height: 84px; }
.p3Banner svg { height: 84px; width: auto; display: block; }
.p3Banner figcaption { display: none; }
.p3Uvod { margin: 2px 4px 0; color: var(--mut); font-size: 15px; }
.p3Grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.p3Lv { font: inherit; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--line); padding: 6px 2px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; color: var(--ink); min-height: 58px; }
.p3Lv b { font-size: 20px; line-height: 1.1; }
.p3Lv small { font-size: 11px; letter-spacing: -1px; min-height: 14px; }
.p3Lv.dalsi { background: var(--y); }
.p3Lv.zam { opacity: .5; }
.p3Listy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; direction: ltr; }
.p3Listy figure { margin: 0; background: var(--bp); border-radius: 12px; padding: 4px; display: flex; flex-direction: column; }
.p3Listy svg { width: 100%; height: auto; max-height: 190px; display: block; }
.p3Listy figcaption { color: #eaf3ff; font-size: 14px; font-weight: 700; text-align: center; padding: 2px 0 2px; }
.p3Listy:not(.p3Srov) figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
.p3Listy:not(.p3Srov) figure:last-child:nth-child(odd) svg { max-width: 60%; margin: 0 auto; }
.p3SrovH { margin: 12px 0 -4px; font-size: 16px; }
.p3Slava { grid-template-columns: repeat(3, 1fr); margin: 30px 0 4px; }
.p3Slava figcaption { font-size: 12px; }
.p3Listy.p3Slava:not(.p3Srov) figure:last-child:nth-child(odd) { grid-column: auto; }
.p3Listy.p3Slava:not(.p3Srov) figure:last-child:nth-child(odd) svg { max-width: none; margin: 0; }
#akce #aZatez { flex: none; }

/* Přání obyvatel a Stavba pro podnebí (app/prani.js, app/podnebi.js) */
.prList { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prList li { display: flex; gap: 10px; align-items: flex-start; background: #f6f8fc; border-radius: 14px; padding: 9px 12px; }
.prList li b { display: block; font-size: 17px; }
.prList li small { display: block; color: var(--mut); font-size: 14px; font-weight: 500; }
.prIk { font-size: 24px; line-height: 1.1; flex: none; width: 30px; text-align: center; }
.prList.vysl li.ok { background: #e7f6ea; }
.prList.vysl li.ne { background: #fdeceb; }
.prList.vysl li.ok .prIk { color: var(--ok); font-weight: 900; }
.prList.vysl li.ne .prIk { color: var(--bad); font-weight: 900; }
span.inspImg.emo { font-size: 58px; display: grid; place-items: center; }
div.slavaIlu.emo { font-size: 72px; line-height: 110px; }
.teplomery { display: flex; justify-content: center; gap: 28px; margin: 6px 0 10px; }
.teplomery .tm { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.teplomery .tm small { color: var(--mut); font-weight: 700; }
.teplomery .tmS { position: relative; width: 22px; height: 110px; border-radius: 11px; background: #eef1f6; border: 3px solid #cfd6e2; overflow: hidden; }
.teplomery .tmS i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 8px; transition: height .8s; }
.teplomery .tm b { font-size: 18px; }
.pdProc { background: #fff4c7; border-radius: 14px; padding: 10px 12px; margin: 8px 0; }
.pdProc h4 { margin: 0 0 4px; }
.pdProc p { margin: 0 0 8px; font-size: 15px; }
.pdProc .btn { width: 100%; }
#akce #aPostel { flex: none; }
#akce #aPostel.on { background: var(--y); }

/* Záložka Svět: kontinenty (svetkont.js) */
.zakTabs button[data-zt] { min-width: 0; }
h4.kultura small { display: block; font-weight: 600; font-size: 13px; opacity: .75; margin-top: 2px; }
h4.kultura.zamK { opacity: .8; }

/* Výkres z papíru (papir.js) */
#papirBtn { width: 100%; margin-top: 10px; }
.papLeg { display: grid; gap: 8px; margin: 4px 0 12px; }
.papLeg > div { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.papLeg svg { flex: none; border-radius: 6px; box-shadow: 0 1px 0 var(--line); }
.papFile { display: block; position: relative; overflow: hidden; text-align: center; margin-top: 10px; cursor: pointer; }
.papFile input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.papTabs { display: flex; gap: 8px; margin-bottom: 8px; }
.papTabs button { flex: 1; font: inherit; font-weight: 800; font-size: 15px; border: 0; border-radius: 999px; padding: 9px 8px; background: #fff; box-shadow: 0 3px 0 var(--line); color: var(--ink); cursor: pointer; }
.papTabs button.on { background: var(--y); }
.papPlocha { display: flex; justify-content: center; background: #2b3442; border-radius: 14px; padding: 6px; }
.papPlocha canvas { display: block; max-width: 100%; border-radius: 8px; touch-action: pan-y; }
.papPlocha canvas.rohy { touch-action: none; }
.sheetIn .papInfo { margin: 8px 0 6px; font-size: 15px; }
.papVol { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 700; flex-wrap: wrap; }
.papVol > span:first-child { min-width: 64px; }
.papVol b { min-width: 28px; text-align: center; font-size: 20px; }
.papChips { display: flex; gap: 6px; flex-wrap: wrap; }
.papChips button { font: inherit; font-size: 15px; font-weight: 700; border: 2px solid transparent; border-radius: 12px; padding: 7px 10px; background: #fff; box-shadow: 0 2px 0 var(--line); color: var(--ink); cursor: pointer; }
.papChips button.on { border-color: var(--y); background: #fff4c7; }
.sheetIn #papJm { width: 100%; margin-top: 6px; }

/* Písmo jako Pokusníček: nadpisy a tlačítka Baloo 2, text Nunito (fonts/pismo.css, OFL) */
h1, h2, h3, h4, .btn, .zakTabs button, .sekceTx span, .zak b, .stamp { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; }

/* Portréty investorů Staveb světa a kreslené ikony (svet_portrety.js, ikony.js): malý portrét v titulku stavby a v čipech města */
img.stPor { height: 1.6em; width: auto; vertical-align: -0.45em; margin-inline-end: 2px; }
span.stPor.emo { font-size: 1em; }
.mestoList .chip { display: inline-flex; align-items: center; gap: 4px; }
img.chipPor { height: 26px; width: auto; margin: -4px 0; }

/* Město po čtvrtích (mesto_plan.js): oddělovač čtvrti v seznamu štítků dole */
.mestoList .chipSep { flex: none; display: inline-flex; align-items: center; padding: 6px 10px; margin-inline-start: 6px; border-radius: 12px; background: rgba(31,95,168,.92); color: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.mestoList .chipSep:first-child { margin-inline-start: 0; }
