@font-face { font-family: "Source Sans 3"; font-weight: 400; src: url(lib/@fontsource/source-sans-3/files/source-sans-3-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Source Sans 3"; font-weight: 400; src: url(lib/@fontsource/source-sans-3/files/source-sans-3-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; src: url(lib/@fontsource/source-sans-3/files/source-sans-3-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Source Sans 3"; font-weight: 600; src: url(lib/@fontsource/source-sans-3/files/source-sans-3-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; src: url(lib/@fontsource/source-sans-3/files/source-sans-3-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Source Sans 3"; font-weight: 700; src: url(lib/@fontsource/source-sans-3/files/source-sans-3-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --ciemny: #00263e; --jasny: #cee5ef; --jasny2: #e7f2f7; --tlo: #f2f2f2; --turkus: #95d3e6;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { display: flex; font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif; color: var(--ciemny); background: var(--tlo); overflow: hidden; }

#panel { width: 340px; flex: none; height: 100%; overflow-y: auto; background: var(--jasny); padding: 18px 18px 30px; border-bottom-right-radius: 0; }
body.panel-zwiniety #panel { display: none; }
header { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
header .logo { width: 110px; }
h1 { font-size: 17px; margin: 0; font-weight: 700; }
header p { margin: 2px 0 0; font-size: 12.5px; opacity: 0.75; }
section { margin-top: 16px; }
h2 { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin: 0 0 7px; }

.przyciski { display: flex; flex-wrap: wrap; gap: 5px; }
.przyciski.pion { flex-direction: column; }
button { font: inherit; font-size: 13.5px; border: 0; cursor: pointer; color: var(--ciemny); background: #fff; padding: 6px 11px; border-radius: 0 12px 0 12px; text-align: left; }
button:hover { background: var(--jasny2); }
button.aktywny { background: var(--ciemny); color: #fff; }
button.glowny { background: var(--ciemny); color: #fff; padding: 9px 16px; font-weight: 600; }

.przelacznik { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; cursor: pointer; font-size: 13.5px; }
.przelacznik input { margin-top: 3px; accent-color: var(--ciemny); }
.przelacznik small { display: block; font-size: 12px; opacity: 0.72; margin-top: 1px; }
.uwaga { font-size: 12px; opacity: 0.8; margin: 4px 0 6px; line-height: 1.35; }

table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border-radius: 0 14px 0 14px; overflow: hidden; }
th { text-align: left; font-weight: 600; font-size: 11px; padding: 6px 6px; background: var(--ciemny); color: #fff; }
td { padding: 6px; border-top: 1px solid var(--jasny); vertical-align: top; }
td small { display: block; opacity: 0.65; font-size: 11px; }
td.liczba, th:nth-child(n+3) { text-align: right; white-space: nowrap; }

#scena { position: relative; flex: 1; height: 100%; min-width: 0; }
#scena canvas { display: block; }
.warstwa-etykiet { position: absolute; inset: 0; pointer-events: none; }
.etykieta { background: var(--ciemny); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 0 9px 0 9px; white-space: nowrap; }
#status { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; }
#zwin { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px; background: rgba(255,255,255,0.85); }

@media (max-width: 760px) {
  body { flex-direction: column-reverse; }
  #panel { width: 100%; height: 45%; }
  #scena { height: 55%; flex: none; }
}

.zegar { float: right; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; font-size: 13px; }
#suwak { width: 100%; margin: 10px 0 6px; accent-color: var(--ciemny); }
#graj { margin-top: 2px; }
