/* Layout: a dumpster interior you stand inside; every menu entry is a piece of junk; close-ups open over it. */
:root {
  color-scheme: dark;
  --steel: #20463a; --steel-d: #0e211b; --lamp: #ffbf69; --mint: #3ddc97; --paper: #f2e6c9; --card: #b98a56; --ink: #1c1a17; --rust: #b4532f; --pale: #eaf4ee;
  --display: "Unbounded", "Arial Black", sans-serif; --body: "Onest", system-ui, sans-serif; --hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--steel-d); color: var(--pale); font: 400 16px/1.5 var(--body); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
h2, h3, p, ul, dl { margin: 0; }
h2 { font: 800 clamp(1.25rem, 3vw, 1.9rem)/1.15 var(--display); text-wrap: balance; }
h3 { font: 800 1rem/1.25 var(--display); }
.hand { font: 600 1.35rem/1.15 var(--hand); }

/* shell */
#top { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 12px); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 10px; pointer-events: none; }
#top > * { pointer-events: auto; }
#top img { width: 30px; height: 30px; }
#top b { font: 800 .95rem var(--display); white-space: nowrap; }
#top .pill { padding: 2px 9px; border-radius: 99px; background: var(--lamp); color: var(--ink); font: 800 .62rem var(--display); letter-spacing: .06em; }
#top .ab { margin-left: auto; padding: 8px 14px; border-radius: 99px; background: #0b1512d9; color: var(--pale); font-weight: 600; font-size: .84rem; text-decoration: none; white-space: nowrap; }
#nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 2px; padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); background: #0b1512f2; }
#nav a { flex: 0 1 auto; padding: 12px 14px; border-radius: 10px; color: #b9cbc1; font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; }
#nav a:hover { color: #fff; } #nav a[aria-current] { color: var(--ink); background: var(--mint); }
#bubble { position: fixed; z-index: 45; left: 50%; max-width: min(340px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: var(--paper); color: var(--ink); font: 600 1.35rem/1.15 var(--hand); opacity: 0; transform: translate(-50%, 8px) scale(.95); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
#bubble.on { opacity: 1; transform: translate(-50%, 0); }
body.in #bubble { top: auto !important; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); }
.stickcv { display: block; width: 100%; height: 100%; cursor: grab; } .stickcv:active { cursor: grabbing; }

/* close-up */
#view { position: fixed; z-index: 20; inset: 0; padding: calc(env(safe-area-inset-top, 0px) + 62px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 84px) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; background: #0a1511e0; animation: vin .5s var(--ease) backwards; }
@keyframes vin { from { opacity: 0; transform: scale(.92); } }
.vbody { max-width: 1020px; margin: 0 auto; display: grid; gap: 16px; }
.close { position: fixed; z-index: 32; top: calc(env(safe-area-inset-top, 0px) + 58px); right: max(16px, env(safe-area-inset-right, 0px)); min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--paper); color: var(--ink); font-weight: 600; }
.sub { color: #bcd0c5; } .center { text-align: center; }
.btn { min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 600; } .btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px #1c1a1755; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* notebook */
.book { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); margin-top: 34px; color: var(--ink); filter: drop-shadow(0 22px 30px #0009); }
.page { padding: clamp(18px, 3vw, 34px); background: repeating-linear-gradient(#0000 0 31px, #2d6f9b33 31px 32px), var(--paper); }
.idx { border-radius: 14px 0 0 14px; box-shadow: inset -22px 0 30px -22px #0007; } .step { border-radius: 0 14px 14px 0; display: grid; gap: 10px; justify-items: start; }
.toc { display: grid; gap: 6px; margin-top: 18px; } .tocb { padding: 8px 12px; min-height: 46px; border: 0; background: none; text-align: left; font: 700 1.55rem/1 var(--hand); color: var(--ink); border-radius: 6px; }
.tocb[aria-selected=true] { background: #3ddc97aa; }
.step .slot { width: 100%; height: clamp(240px, 42vh, 400px); border-radius: 12px; background: radial-gradient(circle at 50% 45%, #2f5d4c, #122a22); }
.step .txt { min-height: 4.6em; font-size: 1.08rem; max-width: 46ch; } .cnt { font-weight: 600; font-size: .85rem; color: #6a4a20; }

/* cables */
.bench { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 12vw, 150px); padding: 20px; border-radius: 16px; background: linear-gradient(#0000, #0004), var(--card); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; } .wires path { fill: none; stroke-width: 7; stroke-linecap: round; opacity: .75; } .wires .live { opacity: 1; filter: drop-shadow(0 4px 3px #0007); }
.plugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.plug { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 0; border-radius: 10px 26px 26px 10px; background: #1d2421; color: #f3f7f4; font-weight: 600; font-size: .9rem; text-align: left; box-shadow: inset 8px 0 0 var(--c, #555), 0 4px 0 #0005; touch-action: none; }
.plug svg { flex: none; width: 24px; margin-left: 6px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .plug.drag { z-index: 9; cursor: grabbing; }
.plug[aria-pressed=true] { background: var(--c); color: #10150f; box-shadow: 0 4px 0 #0005; } .plug[aria-pressed=true] svg { stroke: #10150f; }
.plug.taped { touch-action: auto; opacity: .85; overflow: hidden; } .plug.taped i { position: absolute; right: -6px; top: 14px; padding: 2px 16px; background: #d9c48bee; color: var(--ink); font: 700 1.1rem/1.1 var(--hand); transform: rotate(-9deg); }
.dock { display: grid; gap: 8px; justify-items: center; border-radius: 14px; transition: box-shadow .2s; } .dock .slot { width: 100%; height: clamp(220px, 42vh, 380px); border-radius: 14px; background: radial-gradient(circle at 50% 45%, #2f5d4c, #122a22); } .dock.near { box-shadow: 0 0 0 4px var(--mint); } .lit { color: var(--ink); font-weight: 600; }
.info { min-height: 96px; display: grid; gap: 6px; } .info ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; } .info li { padding: 6px 12px; border-radius: 99px; background: #ffffff17; }

/* mirror */
.podium { display: grid; grid-template-columns: auto minmax(0, 340px) auto; justify-content: center; align-items: center; gap: clamp(8px, 3vw, 36px); }
.mirrorbig { aspect-ratio: 4/5; max-width: 100%; max-height: 46vh; margin: auto; overflow: hidden; border: 14px solid #b8893c; border-radius: 50%; box-shadow: inset 0 0 0 4px #5e431a, 0 18px 40px #000a, 0 0 0 4px #5e431a; background: #223; } .mirrorbig video { width: 100%; height: 100%; object-fit: cover; }
.sil { height: 100%; display: grid; place-items: center; background: radial-gradient(#3b5a4e, #10201a); font: 800 6rem var(--display); color: #0007; }
.arr { width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.8rem; line-height: 1; }
.cinfo { justify-self: center; width: min(460px, 100%); display: grid; gap: 8px; text-align: center; justify-items: center; } .cinfo h3 { font-size: 1.6rem; } .cinfo dl { width: 100%; display: grid; gap: 6px; } .cinfo dl div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; text-align: left; } .cinfo dd { margin: 0; height: 12px; border-radius: 6px; background: #ffffff1c; overflow: hidden; } .cinfo dd i { display: block; height: 100%; background: var(--lamp); animation: grow .7s var(--ease); } @keyframes grow { from { width: 0; } }
.tag { padding: 3px 12px; border-radius: 99px; background: #ffffff22; font-weight: 600; font-size: .82rem; } .tag.ok { background: var(--mint); color: var(--ink); }
.dots { display: flex; justify-content: center; gap: 10px; } .thumb { width: 60px; height: 60px; padding: 0; border: 3px solid #0000; border-radius: 14px; overflow: hidden; background: #1a332a; } .thumb video { width: 100%; height: 100%; object-fit: cover; } .thumb[aria-current=true] { border-color: var(--mint); }

/* cork board */
.cork { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 26px 22px; padding: clamp(18px, 3vw, 34px); border: 14px solid #6b4423; border-radius: 8px; background: radial-gradient(#8d5f33 1px, #0000 2px) 0 0/9px 9px, radial-gradient(#d9a86d 1px, #0000 1.6px) 4px 5px/11px 11px, #bf8d55; }
.note { position: relative; display: grid; gap: 6px; align-content: start; padding: 26px 18px 18px; color: var(--ink); background: #fdf1a8; transform: rotate(var(--r)); box-shadow: 0 8px 12px #0005; } .note.c1 { background: #bff3d9; } .note.c2 { background: var(--paper); } .note::before { content: ""; position: absolute; top: 8px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9c86, #b3281b); box-shadow: 2px 4px 3px #0006; } .note time { font-size: .8rem; font-weight: 600; opacity: .75; } .note .hand { color: #a13413; }

/* phone */
.sms { display: flex; flex-direction: column; gap: 8px; width: min(440px, 100%); height: clamp(220px, 38vh, 380px); margin: 0 auto; padding: 18px; overflow-y: auto; border: 10px solid #14100f; border-radius: 30px; background: #f6efe0; } .sms p { max-width: 84%; padding: 9px 14px; border-radius: 18px; color: var(--ink); } .sms .in { align-self: flex-start; background: #d8d0bd; border-bottom-left-radius: 4px; } .sms .out { align-self: flex-end; background: var(--mint); border-bottom-right-radius: 4px; }
.asks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .ask { min-height: 46px; padding: 8px 18px; border: 0; border-radius: 99px; background: #ffffff1f; } .ask:hover { background: #ffffff33; } .ask:disabled { opacity: .4; }

/* pizza */
.pizza { position: relative; justify-self: center; width: min(380px, 100%); aspect-ratio: 1; padding: 0; border: 0; background: none; perspective: 900px; } .pizza .find { position: absolute; inset: 0; display: grid; align-content: center; gap: 12px; padding: 34px; background: #cfa873; box-shadow: inset 0 0 0 14px #b98a56; color: var(--ink); } .find b { font: 800 1.3rem var(--display); } .find em { font: 600 1.5rem/1.15 var(--hand); } .pizza .lid { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 70% 25%, #8d643688 0 9%, #0000 10%), #c99a62; color: #b3281b; font: 800 1.6rem var(--display); transform-origin: top; transition: transform .8s var(--ease); backface-visibility: hidden; } .lid b { padding: 10px 18px; border: 5px solid; transform: rotate(-11deg); } .pizza.open .lid { transform: rotateX(112deg); }

@media (max-width: 760px) {
  #nav { justify-content: flex-start; overflow-x: auto; } #nav a { flex: none; padding: 12px; font-size: .84rem; }
  .book { grid-template-columns: 1fr; margin-top: 40px; } .idx { border-radius: 14px 14px 0 0; box-shadow: none; padding-bottom: 10px; } .step { border-radius: 0 0 14px 14px; } .toc { display: flex; flex-wrap: wrap; margin-top: 8px; gap: 2px; } .tocb { font-size: 1.35rem; padding: 6px 9px; min-height: 44px; } .step .slot { height: 34vh; }
  .bench { grid-template-columns: 1fr; gap: 40px; padding: 14px; } .plugs { grid-template-columns: 1fr 1fr; } .dock .slot { height: 230px; } .arr { width: 44px; height: 44px; } .mirrorbig { max-height: 36vh; }
  .vbody > h2 { padding-right: 140px; }
  body.in #bubble { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 56px) !important; left: 12px; transform: none; max-width: calc(100vw - 170px); font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 761px) { body.in #bubble { left: 20px; transform: none; } body.in #bubble:not(.on) { transform: translateY(8px); } }

/* integration bench: plugs on both sides of the device */
.bench, .v-integracje .bench { grid-template-columns: minmax(0, 1fr) clamp(112px, 26%, 250px) minmax(0, 1fr); gap: 10px clamp(18px, 6%, 70px); padding: 16px; }
.plugs { display: contents; }
.plug:nth-child(odd) { grid-column: 1; border-radius: 10px 26px 26px 10px; } .plug:nth-child(even) { grid-column: 3; border-radius: 26px 10px 10px 26px; box-shadow: inset -8px 0 0 var(--c, #555), 0 4px 0 #0005; }
.plug:nth-child(-n+2) { grid-row: 1; } .plug:nth-child(n+3):nth-child(-n+4) { grid-row: 2; } .plug:nth-child(n+5):nth-child(-n+6) { grid-row: 3; } .plug:nth-child(n+7):nth-child(-n+8) { grid-row: 4; } .plug:nth-child(n+9):nth-child(-n+10) { grid-row: 5; } .plug:nth-child(n+11) { grid-row: 6; }
.plug { min-width: 0; line-height: 1.2; } .plug[aria-pressed=true]:nth-child(even) { box-shadow: 0 4px 0 #0005; }
.dock { grid-column: 2; grid-row: 1 / span 6; align-content: stretch; grid-template-rows: 1fr auto; } .dock .slot, .v-integracje .dock .slot { height: 100%; min-height: 330px; } .lit { font-size: .86rem; text-align: center; }
.wires path { stroke-width: 7; opacity: 1; filter: none; } .wires .sh { stroke: #0007; stroke-width: 11; } .wires .hi { stroke: #fff; stroke-width: 1.8; opacity: .55; transform: translateY(-1.6px); } .wires .run { stroke: #fff; stroke-width: 4; stroke-dasharray: 3 46; opacity: 0; } .wires .live .run { opacity: .9; animation: run 1.1s linear infinite; } @keyframes run { to { stroke-dashoffset: -49; } } .wires rect { fill: #14181a; stroke: #0009; }
.plug.taped i { top: auto; bottom: 4px; right: 6px; padding: 1px 12px; font-size: 1rem; } .plug.taped span { padding-bottom: 14px; }
@media (max-width: 760px) {
  .bench, .v-integracje .bench { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); gap: 8px 22px; padding: 10px; }
  .plug:nth-child(odd), .plug:nth-child(even) { flex-direction: column; justify-content: center; gap: 3px; padding: 8px 4px; min-height: 64px; border-radius: 14px; font-size: .76rem; text-align: center; box-shadow: inset 0 -5px 0 var(--c, #555); } .plug svg { margin: 0; } .plug.taped i { font-size: .86rem; padding: 0 8px; right: 2px; bottom: 2px; }
  .dock .slot, .v-integracje .dock .slot { min-height: 300px; }
}
/* something new: glowing dot */
.has { position: relative; } .has::after { content: attr(data-n); position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3d6e; color: #fff; font: 600 .68rem/18px var(--body); text-align: center; animation: ping 1.5s ease-out infinite; } .lab.has { position: fixed; } .lab.has::after, .obj span.has::after { top: -14px; right: -16px; } .obj span.has { position: absolute; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #ff3d6ecc; } 80%, 100% { box-shadow: 0 0 0 11px #ff3d6e00; } }
.nw { position: absolute; top: -12px; right: -8px; padding: 4px 12px; border-radius: 99px; background: #ff3d6e; color: #fff; font: 800 .68rem var(--display); rotate: 6deg; box-shadow: 0 0 16px #ff3d6eaa; }
#nav a.has { padding-right: 44px; } #nav a.has::after { top: 13px; right: 6px; }

/* report form (pomoc.js) */
.ask.report { background: #3ddc97; color: #0f2a1f; font-weight: 700; justify-self: center; margin: 4px auto 0; } .ask.report:hover { background: #5be6ad; }
.repbox { width: min(520px, 100%); margin: 6px auto 0; text-align: left; --rep-line: #ffffff4d; --rep-field: #0b1512; --rep-ink: #eef3f1; --rep-tip: #ffffff14; --rep-err: #ffb199; }
.ask.plainp { display: grid; place-items: center; color: inherit; text-decoration: none; justify-self: center; margin: 0 auto; width: fit-content; }
