/* Plocha janek-ras.men: stylizované UI z 90. let nad hvězdnou oblohou.
   Šedé zkosené rámy, titulky s přechodem podle druhu obsahu, uvnitř oken barevný obsah.
   Bez JS je to obyčejná stránka s odkazy; .js zapne plochu, okna a hlavní panel.
   Kostra stránky a okna: docs/plocha.md. */
:root {
  --space: #02030a; --chrome: #c3c3c3; --hi: #fff; --mid: #dfdfdf; --lo: #808080; --dk: #0a0a0a;
  --yellow: #ffcc33; --orange: #ff7a1a; --red: #e0401a; --cyan: #5ff2ff; --blue: #2f7bff; --green: #6dff9e; --pink: #ff5fd2; --violet: #b49aff;
  --ui: Tahoma, Verdana, "Segoe UI", sans-serif; --mono: "Courier New", ui-monospace, monospace; --wa: Impact, Anton, "Arial Black", sans-serif;
  color-scheme: dark;
}
/* Titulek a značka podle druhu obsahu: platí pro okno, ikonu i tlačítko na panelu */
[data-kind="kontakt"] { --ta: #7a0010; --tb: #e8a923; --k: var(--yellow) }
[data-kind="blog"] { --ta: #06217a; --tb: #2fc4ff; --k: var(--cyan) }
[data-kind="demos"] { --ta: #4a0a6a; --tb: #ff4fd8; --k: var(--pink) }
[data-kind="aplikace"] { --ta: #0a4a2a; --tb: #3fe08a; --k: var(--green) }
[data-kind="app"] { --ta: #2a1a6a; --tb: #9a7aff; --k: var(--violet) }
[data-kind="asistent"] { --ta: #5a1800; --tb: #ffa21a; --k: var(--orange) }

* { box-sizing: border-box }
html { overflow-x: clip; background: var(--space) }
body { margin: 0; overflow-x: clip; min-height: 100svh; color: #fff; font: 15px/1.55 var(--ui);
  background: radial-gradient(1px 1px at 12% 20%, #fff, transparent) 0 0 / 230px 230px, radial-gradient(1px 1px at 70% 60%, #cdf, transparent) 0 0 / 310px 310px, radial-gradient(1.5px 1.5px at 40% 80%, #ffe9c0, transparent) 0 0 / 420px 420px,
    radial-gradient(1px 1px at 85% 15%, #fff, transparent) 0 0 / 170px 170px, radial-gradient(ellipse 50% 40% at 85% 10%, rgba(255, 79, 216, .14), transparent 70%), radial-gradient(ellipse 50% 40% at 10% 95%, rgba(232, 169, 35, .14), transparent 70%), var(--space) }
.stars-on body { background: radial-gradient(ellipse 50% 40% at 85% 10%, rgba(255, 79, 216, .14), transparent 70%), radial-gradient(ellipse 50% 40% at 10% 95%, rgba(232, 169, 35, .14), transparent 70%), radial-gradient(ellipse 60% 50% at 50% 50%, rgba(47, 123, 255, .07), transparent 70%), var(--space) }
.stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none }
a { color: inherit }
img { display: block; max-width: 100%; height: auto }
:focus-visible { outline: 1px dotted currentColor; outline-offset: 2px }
button { font: inherit; color: inherit; cursor: pointer }
h1, h2, h3 { margin: 0; line-height: 1.15 }

/* Zkosení jako v 95 */
.raised { background: var(--chrome); color: #000; box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--mid), inset -2px -2px 0 var(--lo), inset 2px 2px 0 var(--hi) }
.sunk { box-shadow: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--hi), inset 2px 2px 0 var(--dk), inset -2px -2px 0 var(--mid) }
.btn95 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; padding: 6px 16px; border: 0; text-decoration: none; font: bold 13px/1 var(--ui); background: var(--chrome); color: #000;
  box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), inset -2px -2px 0 var(--lo), inset 2px 2px 0 var(--mid) }
.btn95:active, .btn95.on, .btn95[aria-expanded="true"] { box-shadow: inset 1px 1px 0 var(--dk), inset -1px -1px 0 var(--hi), inset 2px 2px 0 var(--lo), inset -2px -2px 0 var(--mid); background: #d4d4d4 }
.btn-hot { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; text-decoration: none; font: 22px/1 var(--wa); letter-spacing: .04em; text-transform: uppercase; color: #3a0000;
  background: linear-gradient(#fff6b0, var(--yellow) 40%, var(--orange) 75%, var(--red)); box-shadow: inset -2px -2px 0 #7a1a00, inset 2px 2px 0 #fff8d0, 4px 4px 0 rgba(0, 0, 0, .6) }
.btn-hot:hover { filter: brightness(1.08) }

/* Posuvníky jako v 95: šachovnicová dráha, zkosený jezdec a tlačítka se šipkami.
   Firefox umí jen barvy; Chrome od 121 by při scrollbar-color ignoroval ::-webkit-scrollbar, proto @supports. */
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--chrome) #e4e4e4 } }
::-webkit-scrollbar { width: 16px; height: 16px }
::-webkit-scrollbar-track { background: repeating-conic-gradient(var(--chrome) 0 25%, var(--hi) 0 50%) 0 0 / 2px 2px }
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-button:single-button, ::-webkit-scrollbar-corner { background-color: var(--chrome) }
::-webkit-scrollbar-thumb, ::-webkit-scrollbar-button:single-button { box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--mid), inset -2px -2px 0 var(--lo), inset 2px 2px 0 var(--hi) }
::-webkit-scrollbar-button:single-button { display: block; width: 16px; height: 16px; background-repeat: no-repeat; background-position: center }
::-webkit-scrollbar-button:single-button:active { box-shadow: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--lo); background-position: calc(50% + 1px) calc(50% + 1px) }
::-webkit-scrollbar-button:single-button:vertical:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h1v1h1v1h1v1h1v1H0V3h1V2h1V1h1z'/%3E%3C/svg%3E") }
::-webkit-scrollbar-button:single-button:vertical:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h7v1H6v1H5v1H4v1H3V3H2V2H1V1H0z'/%3E%3C/svg%3E") }
::-webkit-scrollbar-button:single-button:horizontal:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7' shape-rendering='crispEdges'%3E%3Cpath d='M0 3h1V2h1V1h1V0h1v7H3V6H2V5H1V4H0z'/%3E%3C/svg%3E") }
::-webkit-scrollbar-button:single-button:horizontal:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1h1v1h1v1h1v1H3v1H2v1H1v1H0z'/%3E%3C/svg%3E") }
.btn-hot:active { box-shadow: inset 2px 2px 0 #7a1a00, inset -2px -2px 0 #fff8d0; transform: translate(2px, 2px) }

/* WordArt nadpis */
.wordart { --wa-g: linear-gradient(180deg, #fff6b0 0%, var(--yellow) 38%, #e0401a 64%, #7a0010 100%);
  font: clamp(40px, 8cqi, 92px)/.95 var(--wa); letter-spacing: .02em; text-transform: uppercase; display: inline-block;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .9) 50%, transparent 58%) 160% 0 / 250% 100% no-repeat, var(--wa-g);
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s ease-in-out 1.2s infinite;
  transform: skewX(-9deg) rotate(-2deg); transform-origin: left center;
  filter: drop-shadow(1px 1px 0 #3a0000) drop-shadow(1px 1px 0 #3a0000) drop-shadow(1px 1px 0 #3a0000) drop-shadow(5px 6px 0 rgba(0, 0, 0, .6)) }
.wordart.cool { --wa-g: linear-gradient(180deg, #e8fbff 0%, var(--cyan) 40%, var(--blue) 70%, #06217a 100%); animation-delay: 1.6s; filter: drop-shadow(1px 1px 0 #001033) drop-shadow(1px 1px 0 #001033) drop-shadow(1px 1px 0 #001033) drop-shadow(5px 6px 0 rgba(0, 0, 0, .6)) }
.wordart.sm { font-size: clamp(26px, 5cqi, 44px) }
.wordart.sub { font-size: clamp(22px, 4.4cqi, 50px); margin-top: .18em }
@keyframes shine { 0% { background-position: 160% 0, 0 0 } 18%, 100% { background-position: -60% 0, 0 0 } }
.hud { font: bold 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 }

/* ===== Plocha ===== */
.icons { list-style: none; margin: 0; padding: 12px; display: flex; flex-wrap: wrap; gap: 4px }
.icon { display: grid; justify-items: center; gap: 4px; width: 86px; padding: 6px 2px; text-decoration: none; text-align: center; font: 12px/1.25 var(--ui); color: #fff; text-shadow: 1px 1px 0 #000 }
.icon > svg { width: 40px; height: 40px; image-rendering: pixelated }
button.icon { background: none; border: 0; cursor: pointer }
.icon span { padding: 1px 3px }
.icon > svg { transition: transform .18s cubic-bezier(.2, .7, .2, 1), filter .18s }
.icon:hover > svg, .icon:focus-visible > svg { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 8px var(--k)) }
.icon:hover span, .icon:focus-visible span { background: #000080; outline: 1px dotted #fff }
/* Pohyb ikon při najetí: každá má vlastní drobnost (části jsou třídy a-* v templates/desktop.html) */
.icon svg * { transform-box: fill-box; transform-origin: center }
.icon .a-lines { transform-origin: 0 50% }
.icon :is(.a-tilt, .a-pencil) { transition: transform .3s cubic-bezier(.2, .7, .2, 1) }
/* theShowoff: both suns set behind the dunes, the sky turns to dusk and stars come out */
.icon :is(.a-sky, .a-sky2, .a-dune, .a-dune2) { transition: fill .9s }
.icon .a-star { opacity: 0; transition: opacity .4s .5s }
.icon:is(:hover, :focus-visible) .a-tilt { transform: rotate(-6deg) }
.icon:is(:hover, :focus-visible) .a-lines { animation: ico-write .7s steps(8) }
.icon:is(:hover, :focus-visible) .a-tile { animation: ico-pop .35s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both }
.icon:is(:hover, :focus-visible) .a-play { animation: ico-pulse .5s ease-in-out infinite alternate }
.icon:is(:hover, :focus-visible) .a-shine { animation: ico-blink .55s steps(2) infinite }
.icon:is(:hover, :focus-visible) .a-pencil { animation: ico-scribble .5s ease-in-out infinite alternate }
.icon:is(:hover, :focus-visible) .a-set { animation: ico-set .9s cubic-bezier(.4, 0, .6, 1) forwards }
.icon.was-set:not(:hover, :focus-visible) .a-set { animation: ico-rise 1.1s cubic-bezier(.2, .7, .2, 1) }
.icon:is(:hover, :focus-visible) .a-sky { fill: #5a2a6a }
.icon:is(:hover, :focus-visible) .a-sky2 { fill: #2a1a4a }
.icon:is(:hover, :focus-visible) .a-dune { fill: #9a5a4a }
.icon:is(:hover, :focus-visible) .a-dune2 { fill: #5a3040 }
.icon:is(:hover, :focus-visible) .a-star { opacity: 1 }
.icon:is(:hover, :focus-visible) .a-eyes { animation: ico-wink 1.6s steps(1) infinite }
@keyframes ico-pulse { to { transform: scale(1.3) } }
@keyframes ico-write { from { transform: scaleX(0) } }
@keyframes ico-blink { 50% { opacity: .15 } }
@keyframes ico-pop { from { transform: scale(0) } }
@keyframes ico-scribble { to { transform: translate(-3px, 2px) } }
@keyframes ico-set { to { transform: translateY(10px) } }
@keyframes ico-rise { from { transform: translateY(-17px) } }
@keyframes ico-wink { 0%, 80% { transform: none } 85% { transform: scaleY(.15) } }

/* ===== Okno ===== */
.win { display: flex; flex-direction: column; padding: 3px; background: var(--chrome); color: #000;
  box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--mid), inset -2px -2px 0 var(--lo), inset 2px 2px 0 var(--hi), 8px 10px 0 rgba(0, 0, 0, .45) }
.win:focus { outline: none }
.bar { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 2px 3px 2px 6px; flex: none; user-select: none; touch-action: none; color: #fff; font: bold 13px/1 var(--ui);
  background: linear-gradient(90deg, var(--ta), var(--tb)) }
.js .win.on > .bar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%) -150% 0 / 50% 100% no-repeat; animation: glint .9s ease-out }
@keyframes glint { to { background-position: 250% 0 } }
.bar .t { margin: 0 auto 0 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; text-shadow: 1px 1px 0 rgba(0, 0, 0, .5) }
.bar .t::before { content: ""; width: 12px; height: 12px; flex: none; background: var(--k); box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .5), inset 1px 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px #000 }
.ctl { display: flex; gap: 2px }
.ctl > * { width: 18px; height: 16px; padding: 0; display: grid; place-items: center; font: bold 11px/1 var(--mono); text-decoration: none; color: #000; background: var(--chrome); border: 0;
  box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), inset -2px -2px 0 var(--lo), inset 2px 2px 0 var(--mid) }
.ctl [data-act="close"] { margin-left: 2px }
.menu { display: flex; flex-wrap: wrap; gap: 0 2px; padding: 2px 2px; flex: none; font: 13px/1 var(--ui) }
.menu span { padding: 4px 7px } .menu span::first-letter { text-decoration: underline }
/* Funkční nabídka (ui/menu.js) */
.menu-item { position: relative }
.menu-item > button { padding: 4px 7px; border: 0; background: none; font: 13px/1 var(--ui); color: #000 }
.menu-item > button::first-letter { text-decoration: underline }
.menu-item > button:hover { box-shadow: inset -1px -1px 0 var(--lo), inset 1px 1px 0 var(--hi) }
.menu-item > button[aria-expanded="true"] { color: #fff; background: #000080; box-shadow: none }
.menu-list { position: absolute; z-index: 20; left: 0; top: 100%; min-width: 210px; display: grid; padding: 3px; box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--mid), inset -2px -2px 0 var(--lo), inset 2px 2px 0 var(--hi), 3px 3px 0 rgba(0, 0, 0, .35) }
.menu-list[hidden] { display: none }
.menu-list [role="menuitem"] { display: block; padding: 5px 26px; border: 0; background: none; text-align: left; white-space: nowrap; text-decoration: none; font: 13px/1.2 var(--ui); color: #000 }
.menu-list [role="menuitem"]:hover, .menu-list [role="menuitem"]:focus-visible { color: #fff; background: #000080; outline: none }
.menu-list hr { border: 0; border-top: 1px solid var(--lo); border-bottom: 1px solid var(--hi); margin: 3px 2px }
.address { display: flex; gap: 8px; align-items: center; padding: 3px 4px 5px; flex: none; font: 12px/1 var(--ui) }
.address a { color: #000; text-decoration: none }
.address b { font-weight: normal }
.address span { flex: 1; padding: 5px 7px; background: #fff; color: #000; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.body { flex: 1; min-height: 0; overflow: auto; container-type: inline-size; overscroll-behavior: contain; margin-top: 2px }
.status { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px 0 0; flex: none; font: 12px/1 var(--ui) }
.status span { padding: 4px 8px; box-shadow: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--hi) }
.status span:first-child { flex: 1 }
.win iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: #000; margin-top: 2px }

/* Druhy plochy uvnitř okna */
.screen { color: #e6f1f8; background: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .5), transparent) 0 0 / 120px 120px, radial-gradient(ellipse at 100% 0%, rgba(47, 123, 255, .18), transparent 60%), #070b18 }
.paper { color: #111; background: #fff }
.panel { background: var(--chrome); color: #000 }

/* ===== Bez JS: obyčejná stránka ===== */
html:not(.js) .win { width: min(1000px, 100% - 24px); margin: 10px auto 40px }
html:not(.js) .ctl, html:not(.js) .taskbar, html:not(.js) .startmenu { display: none }

/* ===== S JS: plocha s okny a hlavním panelem ===== */
.js body { height: 100dvh; overflow: hidden }
.js .desk { position: fixed; inset: 0 0 40px 0; overflow: clip }
.js .icons { position: absolute; left: 0; top: 0; flex-direction: column; flex-wrap: wrap; max-height: 100% }
.js .win { position: absolute; width: min(var(--w, 720px), calc(100% - 24px)); max-height: calc(100% - 28px) }
.js .win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-height: none; box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--mid), inset -2px -2px 0 var(--lo), inset 2px 2px 0 var(--hi) }
.js .win.anim { transition: left .24s cubic-bezier(.2, .7, .2, 1), top .24s cubic-bezier(.2, .7, .2, 1), width .24s cubic-bezier(.2, .7, .2, 1), height .24s cubic-bezier(.2, .7, .2, 1) }
@media (min-width: 761px) and (pointer: fine) { .js .win:not(.max) { resize: both; overflow: hidden; min-width: 300px; min-height: 140px } }
/* Obrys, který při otevření a minimalizaci letí mezi ikonou, oknem a panelem */
.zoom { position: fixed; z-index: 99998; pointer-events: none; border: 2px solid rgba(255, 255, 255, .9); outline: 1px dashed rgba(0, 0, 0, .8); outline-offset: -5px; box-shadow: 0 0 22px rgba(95, 242, 255, .55), inset 0 0 22px rgba(95, 242, 255, .3) }
.js .win:not(.on) .bar { background: linear-gradient(90deg, #7b7b7b, #b8b8b8) }
.js .win:not(.on) .bar .t { color: #d8d8d8 }
.win[hidden] { display: none }
.dragging iframe { pointer-events: none }
.dragging { cursor: move }

.taskbar { position: fixed; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; gap: 4px; padding: 4px 3px 3px; z-index: 99999; background: var(--chrome); color: #000; box-shadow: inset 0 1px 0 var(--mid), inset 0 2px 0 var(--hi) }
.start { height: 100%; padding: 0 10px }
.start svg { width: 18px; height: 18px }
.tasks { flex: 1; min-width: 0; display: flex; gap: 3px; height: 100%; overflow-x: auto; scrollbar-width: none }
.task { flex: 0 1 180px; min-width: 90px; height: 100%; justify-content: flex-start; font-weight: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.task::before { content: ""; width: 11px; height: 11px; flex: none; background: linear-gradient(135deg, var(--tb), var(--ta)); box-shadow: 0 0 0 1px #000 }
.task.on { font-weight: bold }
.tray { height: 100%; display: flex; align-items: center; gap: 2px; padding: 0 2px 0 4px }
.tray-btn { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer }
.tray-btn svg { width: 16px; height: 16px }
.tray-btn:hover, .tray-btn:focus-visible { outline: 1px dotted #000; outline-offset: -2px }
.tray-btn .shrink, .tray-btn[aria-pressed="true"] .grow { display: none }
.tray-btn[aria-pressed="true"] .shrink { display: inline }
.clock { padding: 0 8px 0 4px; font: 12px/1 var(--ui) }

.startmenu { position: fixed; left: 2px; bottom: 38px; z-index: 99999; width: 250px; display: grid; grid-template-columns: 28px 1fr; padding: 3px }
.startmenu[hidden] { display: none }
.startmenu:not([hidden]) { animation: unroll .18s cubic-bezier(.2, .7, .2, 1) }
@keyframes unroll { from { clip-path: inset(100% 0 0 0); transform: translateY(8px) } to { clip-path: inset(0); transform: none } }
.startmenu .side { writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 0; font: 22px/28px var(--wa); letter-spacing: .08em; color: #fff; background: linear-gradient(#7a0010, #e0401a 45%, #e8a923) }
.startmenu ul { list-style: none; margin: 0; padding: 2px }
.startmenu li a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; text-decoration: none; font-size: 14px; color: #000 }
.startmenu li a::before { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(135deg, var(--tb, #fff), var(--ta, #808080)); box-shadow: 0 0 0 1px #000 }
.startmenu li a:hover, .startmenu li a:focus-visible { background: #000080; color: #fff }
.startmenu hr { border: 0; border-top: 1px solid var(--lo); border-bottom: 1px solid var(--hi); margin: 3px 2px }

/* ===== Obsah: kontakt (tmavá obrazovka, hodně barev) ===== */
.pane { padding: clamp(16px, 4cqi, 32px) }
.ticker { overflow: hidden; white-space: nowrap; font: bold 13px/1 var(--mono); color: var(--yellow); background: #000; padding: 6px 0; text-transform: uppercase; letter-spacing: .08em }
.ticker span { display: inline-block; padding-left: 100%; animation: tick 26s linear infinite }
@keyframes tick { to { transform: translateX(-100%) } }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 4cqi, 44px); align-items: start }
.hero h1 { margin: 10px 0 16px }
.hero .lead { font-size: clamp(16px, 2cqi, 19px); color: #d6e6f2; margin: 0 0 22px; max-width: 32em }
.hero .lead b { color: var(--yellow) }
.cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center }
.mailplain { font: bold 15px/1.3 var(--mono); color: var(--cyan); overflow-wrap: anywhere }
.photo { margin: 0; width: clamp(170px, 24cqi, 250px); justify-self: end; padding: 4px; background: var(--chrome); box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), 6px 6px 0 rgba(0, 0, 0, .5) }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; box-shadow: inset 0 0 0 1px #000 }
.photo figcaption { font: 11px/1.3 var(--ui); color: #000; padding: 4px 2px 1px }
.jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 0; font: bold 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9fb6c6 }
.jump a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; text-decoration: none; text-transform: none; letter-spacing: 0; font: bold 13px/1 var(--ui); color: #000; background: var(--chrome);
  box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), inset -2px -2px 0 var(--lo), inset 2px 2px 0 var(--mid); transition: transform .15s, box-shadow .15s }
.jump a svg { width: 22px; height: 22px }
.jump a:hover, .jump a:focus-visible { transform: translateY(-2px); box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), inset -2px -2px 0 var(--lo), inset 2px 2px 0 var(--mid), 0 6px 16px -4px var(--k) }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 18px 0 0 }
.chips li { padding: 4px 9px; font: bold 12px/1.2 var(--mono); color: #000; background: var(--c); box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .45), inset 1px 1px 0 rgba(255, 255, 255, .6) }
.blk { margin-top: clamp(30px, 6cqi, 56px) }
.blk > .hud { margin-bottom: 6px }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px }
.tile { transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s; color: #000; background: var(--chrome); padding: 3px; box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), 5px 5px 0 rgba(0, 0, 0, .5) }
.tile .head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #fff; font: bold 15px/1.2 var(--ui); background: linear-gradient(90deg, var(--a), var(--b)); text-shadow: 1px 1px 0 rgba(0, 0, 0, .5) }
.tile .head svg { width: 30px; height: 30px; flex: none }
.tile p { margin: 0; padding: 10px; font-size: 14px }
.tile:hover { transform: translate(-3px, -3px); box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), 8px 8px 0 rgba(0, 0, 0, .5), 0 0 30px -6px var(--b) }
.wizard { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px }
.wizard li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start }
.wizard li:not(:last-child)::after { content: "▸"; position: absolute; right: -22px; top: 12px; font-size: 18px; color: #5d7a8c }
.wizard .num { width: 46px; height: 46px; display: grid; place-items: center; font: 28px/1 var(--wa); color: #000;
  background: linear-gradient(#fff, var(--c) 45%, color-mix(in srgb, var(--c) 55%, #000)); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .35), inset 2px 2px 0 rgba(255, 255, 255, .7), 4px 4px 0 rgba(0, 0, 0, .5) }
.wizard b { display: block; font: bold 16px/1.25 var(--ui); color: var(--c) }
.wizard p { margin: 4px 0 0; font-size: 14px; color: #c9dcea }
.work { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; text-decoration: none; margin-top: 14px }
.work .shot { padding: 4px; background: var(--chrome); box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), 5px 5px 0 rgba(0, 0, 0, .5) }
.work img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; object-position: top }
.work h3 { font: 28px/1 var(--wa); text-transform: uppercase; letter-spacing: .02em; color: var(--yellow); margin: 6px 0 8px }
.work p { margin: 0 0 8px; color: #d6e6f2 }
.work .go { font: bold 13px/1 var(--mono); color: var(--cyan); text-decoration: underline }
.dialog { margin-top: 14px; max-width: 520px; padding: 3px; color: #000; background: var(--chrome); box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), 6px 6px 0 rgba(0, 0, 0, .5) }
.dialog .bar { --ta: #7a0010; --tb: #e8a923; --k: var(--yellow) }
.dialog .in { padding: 14px; display: grid; grid-template-columns: 54px 1fr; gap: 12px 14px; align-items: start }
.dialog .in svg { width: 48px; height: 48px }
.dialog .in p { margin: 0 0 10px }
.dialog .field { display: block; padding: 6px 8px; background: #fff; font: bold clamp(13px, 2.4cqi, 17px)/1.3 var(--mono); overflow-wrap: anywhere; box-shadow: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--hi), inset 2px 2px 0 var(--dk) }
.dialog .row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end }

/* ===== Obsah: blog a článek (bílý papír, modré odkazy) ===== */
.paper a { color: #0000ee } .paper a:visited { color: #551a8b }
.paper .masthead { padding: 18px 22px 12px; border-bottom: 3px double #000080; background: linear-gradient(#fff, #eef3ff) }
.paper .masthead p { margin: 6px 0 0; color: #444; font-size: 14px }
.posts { list-style: none; margin: 0; padding: 6px 22px 16px }
.posts li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dotted #999 }
.posts li::before { content: ""; width: 32px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect x='6' y='4' width='20' height='25' fill='%23fff' stroke='%23000'/%3E%3Cpath d='M9 11h14M9 15h14M9 19h14M9 23h10' stroke='%232f7bff'/%3E%3Cpath d='M11 6v23' stroke='%23e0401a'/%3E%3Crect x='6' y='2' width='20' height='4' fill='%232fc4ff' stroke='%23000'/%3E%3C/svg%3E") center / contain no-repeat }
.posts li:first-child h2 a::after { content: "NOVÉ"; display: inline-block; margin-left: 8px; padding: 1px 5px; font: bold 10px/1.4 var(--ui); color: #fff; background: var(--red); vertical-align: 3px }
.posts h2 { font: bold 19px/1.25 Georgia, "Times New Roman", serif }
.posts .meta { font: 12px/1.4 var(--ui); color: #666; margin: 2px 0 4px }
.posts p { margin: 0; font-size: 14px }
.paper .empty { margin: 0; padding: 24px 22px; color: #555 }
.article { max-width: 660px; margin: 0 auto; padding: clamp(16px, 4cqi, 34px) clamp(16px, 4cqi, 30px) 30px; font: 17px/1.7 Georgia, "Times New Roman", serif }
.article .meta { font: 12px/1.4 var(--ui); color: #666; padding-bottom: 10px; border-bottom: 1px solid #ccc }
.article h1 { font: bold clamp(28px, 6cqi, 44px)/1.1 Georgia, serif; color: #000080; margin: 14px 0 8px }
.article .lead { font-style: italic; color: #444; margin: 0 0 6px }
.article h2 { font: bold 22px/1.2 Georgia, serif; color: #7a0010; margin: 26px 0 6px }
.article li::marker { color: var(--red) }
.article pre { font: 14px/1.6 var(--mono); color: #6dff9e; background: #000; padding: 12px 14px; overflow-x: auto; box-shadow: inset 2px 2px 0 var(--lo), inset -2px -2px 0 var(--hi) }
.article code { font-family: var(--mono); font-size: .9em; background: #ffffcc; padding: 0 3px }
.article pre code { background: none; padding: 0 }
.comments { margin-top: 28px; font: 14px/1.5 var(--ui) }
.comment { padding: 10px 12px; margin-top: 8px; background: #ffffe1; border: 1px solid #000 }
.comment b { color: #000080 }
.comment p { margin: 3px 0 0 }

/* ===== Obsah: ukázky (tmavá galerie se živými esencemi) ===== */
.missions { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px }
.mission { --c: var(--cyan); position: relative; display: grid; grid-template-rows: auto auto 1fr auto; padding: 3px; color: #000; background: var(--chrome); box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), 5px 5px 0 rgba(0, 0, 0, .5) }
.mission[data-folder] { --c: var(--yellow) }
.mission .holo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 30%, #000), #05060c 75%); box-shadow: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--hi) }
.mission .holo canvas { display: block; width: 100%; height: 100% }
.mission .holo-tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; font: bold 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); background: rgba(0, 0, 0, .7) }
.mission .no { position: absolute; top: 9px; right: 9px; z-index: 1; padding: 2px 6px; font: bold 11px/1.2 var(--mono); color: #000; background: var(--c); box-shadow: inset -1px -1px 0 rgba(0, 0, 0, .45), inset 1px 1px 0 rgba(255, 255, 255, .6) }
.mission h3 { margin: 0; padding: 8px 8px 2px; font: bold 16px/1.2 var(--ui) }
.mission h3 a { color: #000; text-decoration: none }
.mission h3 a::after { content: ""; position: absolute; inset: 0 }
.mission p { margin: 0; padding: 0 8px 8px; font-size: 13px; color: #333 }
.mission .tags { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0 8px 8px }
.mission .tags li { padding: 1px 6px; font: 11px/1.4 var(--mono); background: #fff; box-shadow: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--hi) }
.mission { transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s }
.mission:hover, .mission:focus-within { outline: 2px solid var(--c); outline-offset: 2px; transform: translate(-3px, -3px); box-shadow: inset -1px -1px 0 var(--dk), inset 1px 1px 0 var(--hi), 8px 8px 0 rgba(0, 0, 0, .5), 0 0 34px -6px var(--c) }
.mission:hover h3 a, .mission:focus-within h3 a { background: #000080; color: #fff }
.mission-empty { display: grid; place-items: center; min-height: 200px; padding: 16px; text-align: center; font: 12px/1.5 var(--mono); color: #7d93a3; border: 1px dashed #3a4a5a }
.hint { margin: 0; padding: 0 16px 16px; font: 12px/1.5 var(--mono); color: #9fb6c6 }

/* ===== Obsah: aplikace (šedé ovládací panely) ===== */
.apps { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px }
.apps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 12px 8px; text-align: center }
.apps li:hover, .apps li:focus-within { background: #000080; color: #fff }
.apps svg { width: 48px; height: 48px }
.apps a, .apps b { font: bold 14px/1.2 var(--ui); text-decoration: none; color: inherit }
.apps a::after { content: ""; position: absolute; inset: 0 }
.apps .desc { font-size: 12px; line-height: 1.35 }
/* Ikona aplikace z katalogu: okénko s titulkem, barva se střídá */
.app-ico { --ta: #06217a; --tb: #2fc4ff; width: 48px; height: 40px; margin: 4px 0; background: linear-gradient(90deg, var(--ta), var(--tb)) 0 0 / 100% 9px no-repeat, linear-gradient(135deg, #fff 0 40%, #dfe8f0); box-shadow: 0 0 0 1px #000, 3px 3px 0 rgba(0, 0, 0, .35) }
.apps li:nth-child(5n+2) .app-ico { --ta: #0a4a2a; --tb: #3fe08a } .apps li:nth-child(5n+3) .app-ico { --ta: #4a0a6a; --tb: #ff4fd8 }
.apps li:nth-child(5n+4) .app-ico { --ta: #7a0010; --tb: #e8a923 } .apps li:nth-child(5n+5) .app-ico { --ta: #2a1a6a; --tb: #9a7aff }
.apps-status { margin: 0 14px 10px; font-size: 13px; color: #333 }
.apps-status:empty { display: none }
.apps-status p { display: inline; margin: 0 }
.apps-status button { margin-left: 8px }
.account { display: grid; grid-template-columns: 44px 1fr; gap: 10px 12px; align-items: center; margin: 0 14px 14px; padding: 10px 12px; background: #ffffe1; border: 1px solid #000; font-size: 13px }
.account .avatar { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; font: 22px/1 var(--wa); color: #3a0000; background: linear-gradient(#fff6b0, var(--yellow) 45%, var(--orange)); box-shadow: 0 0 0 1px #000, inset -2px -2px 0 rgba(0, 0, 0, .25) }
.account .avatar img { width: 100%; height: 100%; object-fit: cover }
.account b, .account small { display: block; overflow-wrap: anywhere }
.account small { color: #555 }
.account .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px }
.account [hidden] { display: none }

@container (max-width: 620px) {
  .hero, .work { grid-template-columns: 1fr }
  .photo { justify-self: start }
  .tiles { grid-template-columns: 1fr }
  .wizard { grid-template-columns: 1fr; gap: 16px } .wizard li::after { display: none }
}

/* ===== Telefon: jedno okno přes celou obrazovku ===== */
@media (max-width: 760px) {
  .js .win { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-height: none; box-shadow: none }
  .js .win:not(.on) { display: none }
  .ctl [data-act="max"] { display: none }
  .task { flex-basis: 120px }
  .clock { display: none }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }

/* Drobnosti obsahu */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.screen p > a:not([class]) { color: var(--cyan) }
.doubt { margin: 16px 0 0; color: #d6e6f2 }
.doubt a { color: var(--yellow); font-weight: bold }
.doubt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px }
.doubt-actions .btn-hot { padding: 10px 18px; font-size: 18px }
.screen .more { margin: 14px 0 0; color: #d6e6f2 }
.screen .about { max-width: 44em; color: #d6e6f2; margin: 8px 0 0 }
.article .back { margin-top: 30px; font: 14px/1.4 var(--ui) }

/* Miniatura v článku: tmavá obrazovka zapuštěná do papíru */
.article .mini { margin: 26px 0; }
.article .mini-screen { aspect-ratio: 16 / 10; padding: 4px; background: var(--chrome); box-shadow: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--hi), inset 2px 2px 0 var(--dk), 4px 4px 0 rgba(0, 0, 0, .25) }
.article .mini canvas { display: block; width: 100%; height: 100%; background: #070b18 }
.article .mini figcaption { margin-top: 8px; font: italic 14px/1.4 Georgia, serif; color: #444 }
.article .mini figcaption::before { content: "Obr. "; font-style: normal; font-weight: bold; color: #000080 }

/* ===== Asistent ===== */
.ast { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: start; padding: 12px }
.ast .orb { aspect-ratio: 1; padding: 3px; background: #000; box-shadow: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--hi) }
.ast .orb canvas { display: block; width: 100%; height: 100% }
.ast .bubble { position: relative; min-height: 88px; margin: 0; padding: 10px 12px; font: 14px/1.45 var(--ui); color: #000; background: #ffffe1; border: 1px solid #000; box-shadow: 3px 3px 0 rgba(0, 0, 0, .45) }
.ast .bubble::before { content: ""; position: absolute; left: -9px; top: 18px; border: 8px solid transparent; border-right: 0; border-left-color: #000; transform: scaleX(-1) translateX(1px) }
.ast .acts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 12px }
.ast .lines { display: flex; flex-wrap: wrap; gap: 6px }
@media (max-width: 760px) { .ast { grid-template-columns: 1fr; align-content: start } .ast .orb { width: min(72vw, 300px); justify-self: center } .ast .bubble::before { display: none } }

/* ===== Chybová stránka (ui/chyba.html) ===== */
[data-kind="chyba"] { --ta: #5a0010; --tb: #e0401a; --k: var(--yellow) }
.oops { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 22px 18px }
.oops svg { width: 40px; height: 40px }
.oops h1 { margin: 0 0 8px; font: bold 18px/1.25 var(--ui) }
.oops p { margin: 0 0 10px; font-size: 14px }
.oops .where { font-size: 12px; color: #333; overflow-wrap: anywhere }
.oops code { font-family: var(--mono); background: #fff; padding: 1px 4px; box-shadow: inset 1px 1px 0 var(--lo), inset -1px -1px 0 var(--hi) }
.oops .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px }
.oops .default { font-weight: bold; outline: 1px solid #000 }
