/* Oczami innych – wygląd */
:root {
  --bg: #0a0e16;
  --bg2: #0e1420;
  --panel: #121826;
  --panel2: #172033;
  --line: #233049;
  --line2: #2d3c5a;
  --text: #e6ebf5;
  --muted: #93a0b8;
  --dim: #64718a;
  --accent: #2dd4bf;
  --accent-d: #14b8a6;
  --accent-bg: rgba(45, 212, 191, .12);
  --amber: #fbbf24;
  --rose: #fb7185;
  --red: #f87171;
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head: 'Outfit', 'Inter', system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; background: var(--panel2); font: 600 12px var(--font); text-align: center; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #243049; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- układ ---------- */
.app {
  display: grid; height: 100vh; height: 100dvh;
  grid-template-rows: 58px minmax(0, 1fr);
  grid-template-columns: 272px minmax(0, 1fr) 392px;
  grid-template-areas: "top top top" "side stage info";
}
.topbar { grid-area: top; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #0d1320, #0a0e16); }
.sidebar { grid-area: side; border-right: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; min-height: 0; }
.stage { grid-area: stage; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 12px 12px 10px; gap: 10px; }
.info { grid-area: info; border-left: 1px solid var(--line); background: var(--bg2); overflow-y: auto; padding: 18px 18px 28px; min-height: 0; }

/* ---------- górny pasek ---------- */
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-eye { width: 40px; height: 26px; color: var(--text); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font: 700 19px var(--head); letter-spacing: .2px; }
.brand-text small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modes { display: flex; gap: 4px; margin-left: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.modes button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; }
.modes button:hover { color: var(--text); }
.modes button.on { background: var(--accent-bg); color: var(--accent); }
.top-actions { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 16px; display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); border-color: var(--line2); }
#btn-list { display: none; }

/* ---------- lista zaburzeń ---------- */
.search-wrap { padding: 14px 14px 8px; }
#search { width: 100%; padding: 9px 12px 9px 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2393a0b8' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center; outline: none; }
#search:focus { border-color: var(--accent-d); }
.switch { display: flex; align-items: center; gap: 10px; padding: 4px 16px 10px; color: var(--muted); font-size: 13px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 34px; height: 20px; border-radius: 999px; background: var(--line2); position: relative; transition: background .2s; flex: none; }
.switch-ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #cbd5e1; transition: transform .2s; }
.switch input:checked + .switch-ui { background: var(--accent-d); }
.switch input:checked + .switch-ui::after { transform: translateX(14px); background: #fff; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.cond-list { overflow-y: auto; padding: 0 8px 12px; flex: 1; min-height: 0; }
.cat-title { font: 600 11px var(--font); text-transform: uppercase; letter-spacing: 1px; color: var(--dim); padding: 14px 10px 6px; }
.cond { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid transparent; background: none; padding: 7px 10px; border-radius: 10px; color: var(--text); position: relative; }
.cond:hover { background: var(--panel); }
.cond.sel { background: var(--panel2); border-color: var(--line2); }
.cond.active .cond-ico { box-shadow: 0 0 0 2px var(--accent); }
.cond-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--panel); display: grid; place-items: center; font-size: 16px; flex: none; transition: box-shadow .2s; }
.cond.sel .cond-ico { background: #1d2940; }
.cond-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cond-name b { font-weight: 600; font-size: 13.5px; }
.cond-name small { color: var(--dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cond-check { margin-left: auto; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line2); flex: none; display: none; place-items: center; font-size: 12px; color: var(--bg); }
.combine .cond-check { display: grid; }
.cond.active .cond-check { background: var(--accent); border-color: var(--accent); }
.side-foot { margin: 0; padding: 10px 16px 14px; color: var(--dim); font-size: 11.5px; border-top: 1px solid var(--line); }
.empty { color: var(--dim); padding: 14px; font-size: 13px; }

/* ---------- scena ---------- */
.viewer { position: relative; flex: 1; min-height: 0; border-radius: var(--radius); overflow: hidden; background: #05070b; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .04); cursor: crosshair; touch-action: none; user-select: none; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; left: 12px; top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(8, 12, 20, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .07); font-size: 12.5px; min-width: 232px; pointer-events: none; transition: opacity .3s; }
.hud-row { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.hud-row + .hud-row { margin-top: 2px; }
.hud-k { color: var(--muted); width: 98px; flex: none; font-size: 11.5px; }
.hud-row b { font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.hud-dim { color: var(--dim); font-size: 11.5px; }
.hud-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hud-bar i { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hud-bar em { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--amber) 70%, var(--red)); background-size: 300px 100%; transition: width .15s; }
.chips { position: absolute; right: 12px; top: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 46%; pointer-events: none; }
.chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: rgba(8, 12, 20, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; font-weight: 600; }
.chip.corr { border-color: rgba(45, 212, 191, .5); }
.chip button { border: 0; background: rgba(255, 255, 255, .08); width: 20px; height: 20px; border-radius: 50%; color: var(--muted); font-size: 13px; line-height: 1; padding: 0; }
.chip button:hover { color: var(--text); background: rgba(255, 255, 255, .16); }
.chip-only { padding-right: 10px; }

.split { position: absolute; inset: 0; pointer-events: none; }
.split-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 12px rgba(0, 0, 0, .6); }
.split-knob { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 2px solid #fff; background: rgba(10, 14, 22, .85); color: #fff; font-size: 16px; pointer-events: auto; cursor: ew-resize; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); touch-action: none; }
.split-tag { position: absolute; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(8, 12, 20, .75); font-size: 12px; font-weight: 600; white-space: nowrap; }
.split-l { right: calc(50% + 12px); }
.split-r { left: calc(50% + 12px); color: var(--accent); }
.gaze { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .35); pointer-events: none; opacity: 0; transition: opacity .3s, left .12s ease-out, top .12s ease-out; }
.gaze::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
.gaze.on { opacity: .85; }
.viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(5, 7, 11, .85); color: var(--muted); font-size: 15px; }
.viewer-msg b { color: var(--text); display: block; font: 600 18px var(--head); margin-bottom: 6px; }
.toast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(560px, 90%); padding: 10px 16px; border-radius: 12px; background: rgba(8, 12, 20, .9); border: 1px solid var(--line2); font-size: 13px; text-align: center; box-shadow: var(--shadow); pointer-events: none; animation: toastIn .25s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.drop { position: absolute; inset: 10px; border: 2px dashed var(--accent); border-radius: 12px; display: grid; place-items: center; background: rgba(10, 14, 22, .7); font: 600 18px var(--head); color: var(--accent); pointer-events: none; }

/* ---------- pasek narzędzi ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scenes { display: flex; gap: 6px; flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.scenes::-webkit-scrollbar { display: none; }
.scene-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.scene-btn:hover { color: var(--text); border-color: var(--line2); }
.scene-btn.on { color: var(--text); background: var(--panel2); border-color: var(--accent-d); box-shadow: inset 0 -2px 0 var(--accent-d); }
.scene-btn .ico { font-size: 15px; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tool em { font-style: normal; }
.tool:hover:not(:disabled) { color: var(--text); border-color: var(--line2); }
.tool.on { color: var(--accent); border-color: rgba(45, 212, 191, .55); background: var(--accent-bg); }
.tool:disabled { opacity: .4; cursor: not-allowed; }
.tool.small { padding: 5px 10px; font-size: 12px; }
.source-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.source-bar input[type=range] { flex: 1; }
.source-bar output { color: var(--text); font-weight: 600; min-width: 60px; }

/* ---------- panel opisu ---------- */
.info-head { display: flex; gap: 14px; align-items: center; }
.info-ico { width: 52px; height: 52px; border-radius: 15px; background: linear-gradient(145deg, #1d2a42, #141c2c); border: 1px solid var(--line2); display: grid; place-items: center; font-size: 26px; flex: none; }
.info-head h2 { margin: 0; font: 700 23px/1.15 var(--head); }
.info-head .alt { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tagline { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: #cfd8e8; }
.warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; font-size: 13px; font-weight: 500; }
.controls { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.ctrl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.ctrl-top label { color: var(--muted); }
.ctrl-top output { font-weight: 600; color: var(--text); text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 2px 0 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--accent-d) var(--p, 50%), var(--line2) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 5px; background: var(--line2); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 5px; background: var(--accent-d); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--accent-d); margin-top: -6px; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent-d); }
input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.seg button { flex: 1 1 auto; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent-bg); color: var(--accent); border-color: rgba(45, 212, 191, .55); font-weight: 600; }
.correct-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--bg2); text-align: left; font-weight: 600; }
.correct-btn .tg { margin-left: auto; width: 34px; height: 20px; border-radius: 999px; background: var(--line2); position: relative; flex: none; }
.correct-btn .tg::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #cbd5e1; transition: transform .2s; }
.correct-btn.on { border-color: rgba(45, 212, 191, .55); background: var(--accent-bg); color: var(--accent); }
.correct-btn.on .tg { background: var(--accent-d); }
.correct-btn.on .tg::after { transform: translateX(14px); background: #fff; }
.no-ctrl { color: var(--dim); font-size: 13px; margin: 0; }
.diagram { margin-top: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); padding: 10px 10px 8px; }
.diagram canvas { display: block; width: 100%; height: 230px; }
.diagram-cap { display: flex; justify-content: space-between; color: var(--dim); font-size: 11.5px; padding: 4px 4px 0; }
.sec { margin-top: 18px; }
.sec h3 { margin: 0 0 6px; font: 600 15px var(--head); display: flex; align-items: center; gap: 8px; color: #f1f5fb; }
.sec h3 i { font-style: normal; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; background: var(--panel2); }
.sec p { margin: 0; color: #c3cde0; line-height: 1.62; }
.sec.fact { padding: 12px 14px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(251, 191, 36, .1), rgba(251, 191, 36, .03)); border: 1px solid rgba(251, 191, 36, .25); }
.sec.fact h3 { color: var(--amber); }
.sec.simnote { padding: 12px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.sec.simnote p { color: var(--muted); font-size: 13px; }
.try { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.try li { position: relative; padding-left: 22px; color: #c3cde0; }
.try li::before { content: '→'; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.scene-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.scene-sug button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font-size: 12.5px; font-weight: 500; }
.scene-sug button:hover { border-color: var(--accent-d); }
.scene-sug button.on { border-color: var(--accent-d); color: var(--accent); }
.plates { margin-top: 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.plate { padding: 8px 10px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.plate b { color: var(--text); }
.plate .ans { filter: blur(5px); transition: filter .2s; cursor: pointer; color: var(--amber); font-weight: 700; }
.plate .ans.show { filter: none; }

/* ---------- quiz ---------- */
.quiz { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(600px, calc(100% - 28px)); padding: 14px 16px 16px; border-radius: 16px; background: rgba(8, 12, 20, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line2); box-shadow: var(--shadow); cursor: default; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12.5px; }
.quiz-top b { color: var(--text); }
.quiz h3 { margin: 6px 0 10px; font: 700 19px var(--head); }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-opts button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel); text-align: left; font-weight: 600; font-size: 13.5px; }
.quiz-opts button:hover:not(:disabled) { border-color: var(--accent-d); }
.quiz-opts button.ok { border-color: #34d399; background: rgba(52, 211, 153, .15); color: #a7f3d0; }
.quiz-opts button.bad { border-color: var(--red); background: rgba(248, 113, 113, .12); color: #fecaca; }
.quiz-opts button:disabled { cursor: default; }
.quiz-res { margin-top: 10px; font-size: 13.5px; color: #c3cde0; }
.quiz-res b { color: var(--text); }
.quiz-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.btn { padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel2); font-weight: 600; }
.btn:hover { border-color: var(--accent-d); }
.btn.primary { background: var(--accent-d); border-color: var(--accent-d); color: #04221e; }
.btn.primary:hover { background: var(--accent); }
.quiz-score { font: 800 46px var(--head); color: var(--accent); margin: 4px 0; }
.quiz-mode .sidebar { opacity: .35; pointer-events: none; }
.quiz-mode .chips, .quiz-mode #h-target-hide { visibility: hidden; }

/* ---------- okna ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(3, 5, 9, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, #141c2c, #0f1522); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal-x { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 20px; color: var(--muted); }
.intro-card { text-align: center; }
.intro-eye svg { width: 92px; height: 58px; color: var(--text); animation: blinkLogo 5s infinite; }
@keyframes blinkLogo { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.intro-card h2 { font: 800 28px var(--head); margin: 10px 0 8px; }
.intro-card > p { color: var(--muted); margin: 0 auto; max-width: 440px; }
.intro-steps { list-style: none; padding: 0; margin: 20px 0 22px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.intro-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: #c3cde0; }
.intro-steps li b { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; flex: none; font-family: var(--head); }
.intro-steps strong { color: var(--text); }
.intro-card .btn { font-size: 15px; padding: 11px 26px; }
.intro-note { color: var(--dim); font-size: 12px; margin: 14px 0 0; }
.about-card { width: min(900px, 100%); }
.about-card h2 { font: 800 26px var(--head); margin: 0 0 14px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.about-grid section { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.about-grid h3 { margin: 0 0 6px; font: 600 15px var(--head); color: var(--accent); }
.about-grid p { margin: 0; color: #c3cde0; font-size: 13.5px; line-height: 1.6; }
.kbd-title { font: 600 15px var(--head); margin: 18px 0 8px; }
.kbd-list { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.about-foot { color: var(--dim); font-size: 12.5px; margin: 16px 0 0; }

/* ---------- mniejsze ekrany ---------- */
@media (max-width: 1320px) {
  .app { grid-template-columns: 244px minmax(0, 1fr) 350px; }
  .brand-text small { display: none; }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "top top" "stage info"; }
  #btn-list { display: grid; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 58px; bottom: 0; width: 290px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 20px 0 40px rgba(0, 0, 0, .5); }
  .sidebar.open { transform: none; }
}
@media (max-width: 820px) {
  html, body { height: auto; }
  .app { height: auto; min-height: 100vh; grid-template-columns: 100%; grid-template-rows: 56px auto auto; grid-template-areas: "top" "stage" "info"; }
  .topbar { position: sticky; top: 0; z-index: 30; gap: 10px; padding: 0 12px; }
  .brand-text b { font-size: 17px; }
  .modes { margin-left: auto; }
  .modes button { padding: 6px 10px; font-size: 12.5px; }
  .modes button[data-mode=about] { display: none; }
  .sidebar { top: 56px; }
  .stage { padding: 10px; }
  .viewer { flex: none; aspect-ratio: 16 / 10; }
  .info { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .hud { transform: scale(.82); transform-origin: top left; min-width: 0; }
  .hud-row:nth-child(2), .hud-row:nth-child(3) { display: none; }
  .chips { display: none; }
  .quiz-opts { grid-template-columns: 1fr; }
  .stage > .quiz { position: static; transform: none; width: auto; }
}
@media (max-width: 480px) {
  .brand-text { display: none; }
  .scene-btn .lbl { display: none; }
  .scene-btn { padding: 7px 10px; }
}
