/* KULOMBA — risograph print look: cool paper, three overprinted inks.
   Layout: one-screen portrait app. Header / view / tab bar; controls live in the thumb zone. */

@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/dela-gothic-one-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/dela-gothic-one-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #E6ECE9; --paper-2: #D8E0DC; --ink: #17203B; --muted: #55607A;
  --blue: #2450C6; --pink: #E0337F; --yellow: #FFC72A; --line: rgba(23, 32, 59, .16);
  --ok: #1E7A4C; --blend: multiply; --card: #F4F7F5; --shadow: rgba(23, 32, 59, .45);
  --f-display: "Dela Gothic One", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --f-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --tabs-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
/* dark: as the phone is set, unless the game is set to always light (data-theme, web/theme.js) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #13161E; --paper-2: #1E2230; --ink: #ECEFF6; --muted: #9AA3BA;
    --blue: #6F96FF; --pink: #FF5EA3; --yellow: #FFD145; --line: rgba(236, 239, 246, .16);
    --ok: #4CC38A; --blend: source-over; color-scheme: dark; --card: #1B1F2B; --shadow: rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --paper: #13161E; --paper-2: #1E2230; --ink: #ECEFF6; --muted: #9AA3BA;
  --blue: #6F96FF; --pink: #FF5EA3; --yellow: #FFD145; --line: rgba(236, 239, 246, .16);
  --ok: #4CC38A; --blend: source-over; color-scheme: dark; --card: #1B1F2B; --shadow: rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
/* full screen: what shows around the page while the browser switches is the paper colour, not a black frame */
html, html:fullscreen, html::backdrop, ::backdrop { background: var(--paper); }
body {
  background: var(--paper); color: var(--ink); font: 15px/1.45 var(--f-body);
  overflow: hidden; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

#app {
  height: 100%; max-width: 560px; margin: 0 auto; position: relative;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding-top: var(--safe-t);
}
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 6px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; min-width: 0; }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 21px; letter-spacing: .02em; }
.brand span { font-family: var(--f-mono); font-size: 13px; color: var(--pink); }
.tools { display: flex; gap: 8px; align-items: center; }
.chip { font-family: var(--f-mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip.on { border-color: var(--yellow); color: var(--ink); background: color-mix(in srgb, var(--yellow) 30%, transparent); }

.view { min-height: 0; position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.view.scroll { display: block; overflow-y: auto; padding: 4px 16px 24px; -webkit-user-select: text; user-select: text; }
.boot { padding: 40px 16px; color: var(--muted); text-align: center; }

/* tabs */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--line);
  padding-bottom: var(--safe-b); background: var(--paper); position: relative; z-index: 6; }
.tabs a { height: var(--tabs-h); display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none;
  font-size: 12px; font-weight: 600; color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] .ti { background: var(--pink); }
.ti { width: 22px; height: 22px; display: block; background: var(--muted); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ti-today { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6' r='4'/%3E%3Crect x='3' y='13' width='18' height='3' rx='1'/%3E%3Crect x='5' y='18' width='4' height='4'/%3E%3Crect x='10' y='18' width='4' height='4'/%3E%3Crect x='15' y='18' width='4' height='4'/%3E%3C/svg%3E"); }
.ti-leagues { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='12' width='6' height='10' rx='1'/%3E%3Crect x='9' y='4' width='6' height='18' rx='1'/%3E%3Crect x='16' y='9' width='6' height='13' rx='1'/%3E%3C/svg%3E"); }
.ti-create { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='17' width='18' height='3' rx='1'/%3E%3Crect x='5' y='9' width='6' height='7'/%3E%3Crect x='13' y='3' width='3' height='13'/%3E%3Crect x='18' y='5' width='3' height='3'/%3E%3C/svg%3E"); }
.ti-play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L12 16.8 6.1 20l1.3-6.5L2.5 8.9l6.6-.8z'/%3E%3C/svg%3E"); }
.ti-me { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M3 22c0-5 4-8 9-8s9 3 9 8z'/%3E%3C/svg%3E"); }

/* stage */
.stage { position: relative; min-height: 0; display: grid; place-items: center; touch-action: none; padding: 2px 6px 0; }
.frame { position: relative; }
.stage canvas { display: block; border-radius: 10px; box-shadow: 0 0 0 1.5px var(--line); touch-action: none; }
.stage canvas.aim { cursor: ew-resize; }
.tag { position: absolute; top: 4px; left: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 3px 7px; border-radius: 6px; pointer-events: none; opacity: .92; }
.tag.blue { background: var(--blue); color: #fff; }
.stage > .tag.under { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { font-family: var(--f-display); font-size: 36px; line-height: 58px; text-align: center; color: var(--pink); pointer-events: none;
  font-variant-numeric: tabular-nums; text-shadow: 2px 2px 0 color-mix(in srgb, var(--yellow) 70%, transparent); }
.aimrow.run { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }

.dock { padding: 8px 10px 10px; display: grid; gap: 8px; align-content: end; }
.dock:empty { display: none; }
/* screens that keep focus: the dock has the height of the aim controls even while a sheet covers it,
   so the board does not move or resize when you start playing */
.dock.keep, .dock.keep:empty { display: grid; min-height: calc(58px + 18px + var(--safe-b)); }
.aimrow { display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px; gap: 8px; align-items: stretch; }
.aimrow.single { grid-template-columns: minmax(0, 1fr); }
.btn.drop { height: 58px; flex-direction: column; gap: 3px; }
.btn.drop .sub { font: 500 11px/1 var(--f-mono); opacity: .75; letter-spacing: 0; }
.aimhint { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.05); } }
.chips { position: absolute; right: 6px; top: 4px; display: flex; gap: 6px; }
.chip-btn { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; font: 700 12px/1 var(--f-body);
  padding: 5px 10px; cursor: pointer; touch-action: manipulation; opacity: .95; }
.chip-btn.on { background: var(--ink); color: var(--paper); }
.chip-btn.restart { font-size: 16px; min-width: 34px; padding-left: 0; padding-right: 0; }
/* a narrow phone with three buttons under the board: the short label ("1-1 · 11%") instead of one squeezed letter */
.tag .t-short { display: none; }
.chip-btn .c-short { display: none; }
/* (when the label is under the board instead, the bar has room for the buttons in full) */
@media (max-width: 400px) {
  .stagebar:has(.chips > :nth-child(3)) .tag .t-long { display: none; }
  .stagebar:has(.chips > :nth-child(3)) .tag .t-short { display: inline; }
  .stagebar:has(.chips > :nth-child(3)) .tag { flex-shrink: 0; }
  .stagebar:has(> .tag):has(.chips > :nth-child(3)) .chip-btn .c-long { display: none; }
  .stagebar:has(> .tag):has(.chips > :nth-child(3)) .chip-btn .c-short { display: inline; }
  .stagebar:has(> .tag):has(.chips > :nth-child(3)) .chip-btn { min-width: 34px; padding-left: 9px; padding-right: 9px; }
}
/* focus: while aiming and watching, the board takes the screen */
body.focus header.top, body.focus .tabs { display: none; }
body.focus #app { grid-template-rows: minmax(0, 1fr); }
body.focus .sheet { bottom: 0; padding-bottom: calc(16px + var(--safe-b)); }
body.focus .toast { bottom: calc(96px + var(--safe-b)); }
body.focus .dock { padding-bottom: calc(10px + var(--safe-b)); }
.nudge { height: 58px; border-radius: 14px; border: 2px solid var(--ink); background: transparent; font: 800 22px/1 var(--f-body); cursor: pointer; touch-action: manipulation; }
.readout { text-align: center; min-width: 0; }
.readout .x { font-family: var(--f-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.readout .hint { font-size: 13px; color: var(--muted); }

.btn { height: 54px; border-radius: 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 800 16px/1.1 var(--f-body); letter-spacing: .01em; text-align: center; cursor: pointer; padding: 0 14px; width: 100%; min-width: 0; touch-action: manipulation;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); font-weight: 700; }
.btn.hot { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.small { height: 42px; font-size: 14px; border-radius: 12px; }
.btn:disabled { opacity: .35; cursor: default; }
.btn:focus-visible, .nudge:focus-visible, .tabs a:focus-visible, .linkish:focus-visible, .tool:focus-visible, input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.linkish { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px; justify-self: center; }
.btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.btns.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* sheet */
.sheet { position: absolute; left: 0; right: 0; bottom: calc(var(--tabs-h) + var(--safe-b)); z-index: 5; max-height: 66%; overflow-y: auto;
  background: var(--paper); border-top: 1.5px solid var(--line); border-radius: 22px 22px 0 0; box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, .35);
  padding: 18px 16px 16px; display: grid; gap: 12px; -webkit-user-select: text; user-select: text;
  animation: up .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h1, .sheet h2, .view h1, .view h2 { margin: 0; font-family: var(--f-display); font-weight: 400; text-wrap: balance; }
.sheet h1, .view h1 { font-size: 25px; line-height: 1.1; }
.sheet h2, .view h2 { font-size: 21px; line-height: 1.15; }
.sheet p { margin: 0; max-width: 60ch; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.res-top { display: flex; align-items: center; gap: 16px; }
.res-top > div:last-child { min-width: 0; display: grid; gap: 4px; }
.big { font-family: var(--f-display); font-size: 62px; line-height: .9; color: var(--pink); font-variant-numeric: tabular-nums;
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--yellow) 75%, transparent); }
.bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.bar i { height: 12px; border-radius: 3px; background: var(--paper-2); }
.bar i.f { background: var(--pink); }
.bar i.h { background: var(--yellow); }
.panel { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.row b { font-weight: 500; color: var(--blue); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .c-blue::before { background: var(--blue); }
.legend .c-yellow::before { background: var(--yellow); }
.legend .c-pink::before { background: var(--pink); }
.note { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--yellow) 22%, transparent); }
.err { font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--pink); }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { height: 50px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper-2); padding: 0 14px; font-size: 17px;
  -webkit-user-select: text; user-select: text; min-width: 0; width: 100%; }
.field input:focus { border-color: var(--ink); outline: none; }
.code { font-family: var(--f-mono); font-size: 13px; padding: 10px; border-radius: 10px; background: var(--paper-2); word-break: break-all; -webkit-user-select: all; user-select: all; }

/* lists & tables */
.section { display: grid; gap: 12px; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.section:last-child { border-bottom: 0; }
.league { display: grid; gap: 10px; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; }
.league header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.league header h2 { min-width: 0; overflow-wrap: anywhere; }
table.rank { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.rank th { text-align: left; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 6px; }
table.rank td { padding: 7px 6px; border-top: 1px solid var(--line); }
table.rank td.n { font-family: var(--f-mono); text-align: right; white-space: nowrap; }
table.rank th.n { text-align: right; }
table.rank tr.me td { font-weight: 700; }
table.rank td.pos { width: 1.5em; color: var(--muted); font-family: var(--f-mono); }
.pill { display: inline-block; font: 500 11px var(--f-mono); padding: 2px 7px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.pill.done { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }
.list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; }
.list li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.spark { display: flex; align-items: end; gap: 3px; height: 54px; }
.spark i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; min-height: 2px; opacity: .85; }
.spark i.none { background: var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 2px; height: 70px; margin: 8px 0 2px; }
.hours i { background: var(--pink); border-radius: 2px 2px 0 0; min-height: 2px; }
.hours-axis { display: flex; justify-content: space-between; font: 500 10px var(--f-mono); color: var(--muted); }
.stat { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.stat b { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; font-weight: 700; color: var(--ink); }
.stat small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }

/* editor */
.palette { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.palette::-webkit-scrollbar { display: none; }
.tool { flex: 0 0 auto; height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line); background: transparent;
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; touch-action: manipulation; }
.tool[aria-pressed="true"] { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 14%, transparent); }
.tool .sw { width: 14px; height: 14px; border-radius: 3px; }
.sw.k-shelf, .sw.k-ramp, .sw.k-peg { background: var(--blue); }
.sw.k-ramp { transform: rotate(-20deg); height: 6px; }
.sw.k-box { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--blue); }
.sw.k-dom { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--blue); width: 6px; }
.sw.k-bomb, .sw.k-bump { border-radius: 50%; background: var(--pink); }
.sw.k-peg { border-radius: 50%; width: 8px; height: 8px; }
.sw.k-spring { background: var(--pink); height: 6px; box-shadow: 0 3px 0 -1px var(--blue); }
.sw.k-glass { background: color-mix(in srgb, var(--blue) 35%, transparent); box-shadow: inset 0 0 0 1.5px var(--blue); height: 7px; }
.sw.k-stone { background: var(--muted); }
.selbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.selbar button { height: 46px; border-radius: 12px; border: 2px solid var(--ink); background: transparent; font-weight: 800; font-size: 13px; letter-spacing: -.01em; min-width: 0; cursor: pointer; touch-action: manipulation; padding: 0; }
.selbar button.warn { border-color: var(--pink); color: var(--pink); }
.selbar button:disabled { opacity: .3; }

.toast { position: absolute; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 14px); transform: translateX(-50%); z-index: 20;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  max-width: calc(100% - 32px); text-align: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }

@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
@media (prefers-reduced-motion: reduce) { .aimhint { animation: none; } }

/* ------------------------------------------------------------ help */
.help-link { text-decoration: none; color: var(--ink); font-weight: 700; min-width: 30px; text-align: center; }
.help-list { gap: 10px; }
details.help { border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); scroll-margin-top: 12px; }
details.help > summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 14px; position: relative;
  font: 800 17px/1.2 var(--f-body); }
details.help > summary::-webkit-details-marker { display: none; }
details.help > summary::after { content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font: 500 22px/1 var(--f-mono); color: var(--pink); }
details.help[open] > summary::after { content: '−'; }
.help-body { display: grid; gap: 10px; padding: 0 14px 16px; }
.help-body h3 { margin: 8px 0 0; font-size: 15px; }
.help-body p { margin: 0; }
.help-body .steps, .help-body .bullets { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.help-body .steps li::marker { font-family: var(--f-mono); color: var(--pink); }
/* editor: the dock keeps one height whatever it shows, so the board never resizes under a finger */
.dock.editdock { height: 168px; grid-template-rows: auto; align-content: end; }
.dock.editdock .readout > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input:disabled { opacity: .6; }
.streak-btn { background: transparent; cursor: pointer; touch-action: manipulation; }

/* ------------------------------------------------------------ hierarchy: cards, big choices */
.card { background: var(--card, var(--paper)); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 14px 12px;
  display: grid; gap: 10px; box-shadow: 0 1px 0 var(--line), 0 10px 24px -16px var(--shadow); }
.card h3 { margin: 0; font-size: 16px; }
.card .btns { margin: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.tall { height: auto; min-height: 72px; flex-direction: column; gap: 4px; padding: 10px 8px; }
.btn.tall small { font: 500 12px/1.2 var(--f-body); opacity: .8; letter-spacing: 0; }
/* tutorial coach bubble, over the top of the board */
.coach { position: absolute; left: 12px; right: 12px; top: 15%; opacity: .96; z-index: 3; display: grid; gap: 3px; padding: 10px 12px;
  background: var(--ink); color: var(--paper); border-radius: 14px; font-size: 14px; line-height: 1.35;
  box-shadow: 0 10px 24px -12px var(--shadow); pointer-events: none; }
.coach b { font-size: 15px; color: var(--yellow); }
.coach[hidden] { display: none; }
/* segmented switch (Ligi znajomych / Ranking wszystkich, Dziś / Tydzień) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.seg button { height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 14px var(--f-body); cursor: pointer; touch-action: manipulation; }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px var(--shadow); }
.seg.small button { height: 34px; font-size: 13px; }
.card.hi { border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); }
.card.league { margin: 0 0 12px; }
.view > .card { margin-bottom: 12px; }
table.rank tr.gap td { text-align: center; color: var(--muted); border-top: 0; padding: 2px; }
table.rank tr.me td { background: color-mix(in srgb, var(--yellow) 22%, transparent); }
/* "Ja": navigation rows to sub-pages, back link, switches */
.navlist { display: grid; gap: 8px; margin: 12px 0; }
.navrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; text-decoration: none;
  background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 8px 20px -18px var(--shadow); }
.navrow span { display: grid; gap: 2px; min-width: 0; }
.navrow b { font-size: 16px; }
.navrow small { color: var(--muted); font-size: 13px; }
.navrow i { font-style: normal; font-size: 26px; color: var(--muted); line-height: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; margin: 8px 0 4px; border-radius: 999px;
  border: 1.5px solid var(--ink); color: var(--ink); font: 700 15px var(--f-body); text-decoration: none; background: var(--card); }
.back span { font-size: 18px; line-height: 1; }
.view.scroll > h1 { margin: 4px 0 12px; }
.center { text-align: center; }
.switch { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 0; border: 0; background: none;
  color: var(--ink); font: 700 16px var(--f-body); cursor: pointer; touch-action: manipulation; }
.switch i { width: 46px; height: 28px; border-radius: 99px; background: var(--paper-2); border: 1.5px solid var(--line); position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px var(--shadow); transition: transform .15s; }
.switch[aria-checked="true"] i { background: var(--pink); border-color: var(--pink); }
.switch[aria-checked="true"] i::after { transform: translateX(18px); }
.btn.danger { border-color: var(--pink); color: var(--pink); }
details.tech summary { font-size: 13px; color: var(--muted); cursor: pointer; }
.view .subhead { font: 700 15px var(--f-body); color: var(--muted); margin: 20px 0 8px; }
.help-list { display: grid; gap: 10px; margin-bottom: 14px; }
table.rank td.w, table.rank th.w { width: 1%; text-align: right; padding-left: 4px; padding-right: 0; }
a.watch, button.watch { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 9px 0 7px; border-radius: 999px;
  border: 1.5px solid var(--pink); color: var(--pink); background: color-mix(in srgb, var(--pink) 8%, transparent);
  font: 700 12px var(--f-body); text-decoration: none; white-space: nowrap; }
.dropicon { flex: 0 0 auto; overflow: visible; }
.dropicon .di-line { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 2 2.2; }
.dropicon .di-shadow { fill: var(--yellow); }
.dropicon .di-ball { fill: var(--ink); }
.dropicon .di-shine { fill: var(--paper); opacity: .6; }
.btn.withicon { gap: 8px; }

.tabs { box-shadow: 0 -10px 18px -16px var(--shadow); }
.loading { display: grid; place-items: center; align-content: center; gap: 12px; min-height: 40vh; color: var(--muted); font-size: 14px;
  opacity: 0; animation: fadein .2s .25s forwards; }
.loading i { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadein { to { opacity: 1; } }
/* editor: goals and legend */
.readout .goals { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.readout .goals .ok { color: var(--ok); font-weight: 700; }
.readout .goals .linkish { font-size: 13px; padding: 2px; }
.legendlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legendlist li { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; }
.legendlist li > span:last-child { padding-left: 4px; }
.legendlist .sw { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 3px; margin-top: 3px; }
.card .steps, .card .bullets, #sheet .steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* "where everybody dropped" chart in the result card */
.legend .star { color: var(--ink); }
.legend .star::before { display: none; }
.legend .star em { font-style: normal; color: var(--yellow); text-shadow: 0 0 1px var(--ink); }
/* help: real screenshots, swiped sideways */
.steps-pics { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -14px; padding: 2px 14px 6px; scrollbar-width: none; }
.steps-pics::-webkit-scrollbar { display: none; }
.steps-pics .step { margin: 0; scroll-snap-align: center; display: grid; gap: 6px; align-content: start; }
.steps-pics img { width: 100%; height: auto; aspect-ratio: 390 / 440; object-fit: cover; object-position: center; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); display: block; }
.steps-pics figcaption { display: grid; gap: 2px; font-size: 13px; line-height: 1.35; }
.steps-pics figcaption b { font-size: 15px; }
/* "there is more below" pill pinned to the bottom of a long sheet */
.more-hint { position: sticky; bottom: -8px; justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: -4px;
  padding: 9px 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 13px var(--f-body);
  box-shadow: 0 -14px 22px 8px var(--paper), 0 6px 16px -8px var(--shadow); cursor: pointer; z-index: 2; touch-action: manipulation; }
.more-hint i { font-style: normal; font-size: 16px; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .more-hint i { animation: none; } }

/* ---- three balls: dots for the balls left, in the corner of the board */
.pips { position: absolute; right: 8px; top: 34px; display: flex; gap: 5px; padding: 5px 7px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 82%, transparent); pointer-events: none; }
.pips i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.pips i.used { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.pips i.flying { background: var(--pink); }
.balls-line { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.balls-line b { font-variant-numeric: tabular-nums; }
.balls-line .arrow { color: var(--muted); }

/* stars */
.stars { display: inline-flex; gap: 1px; letter-spacing: 0; line-height: 1; }
.stars i { font-style: normal; color: var(--line); font-size: 16px; text-shadow: none; }
.stars i.on { color: var(--yellow); text-shadow: 0 0 1px var(--ink); }
.stars.big i { font-size: 30px; }
.stars.mini i { font-size: 12px; }
.goals { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 13px var(--f-mono); color: var(--muted); }
.goals span { display: inline-flex; align-items: center; gap: 2px; }

/* everybody's score on one line */
.stripwrap { display: grid; gap: 4px; }
.strip { position: relative; height: 54px; border-radius: 10px; background: var(--paper-2);
  background-image: linear-gradient(to right, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)); }
.strip i { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--blue); opacity: .55; }
.strip i.best { background: var(--yellow); opacity: 1; box-shadow: 0 0 0 1.5px var(--ink); width: 14px; height: 14px; margin: -7px 0 0 -7px; z-index: 1; }
.strip i.mine { background: var(--pink); opacity: 1; width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: 0 0 0 2px var(--paper); z-index: 2; }
.stripwrap .axis { display: flex; justify-content: space-between; font: 500 10px var(--f-mono); color: var(--muted); }

/* Graj */
.card.mode { display: grid; gap: 8px; text-decoration: none; color: inherit; margin: 0 0 10px; }
.card.mode .btn { justify-self: stretch; }
.mode-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mode-head h2 { margin: 0; font-size: 20px; }
.meter { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--yellow); }
.card.world { margin: 0 0 12px; display: grid; gap: 8px; }
.card.world.locked { opacity: .7; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tiles.wide { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.tile { display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card, var(--paper));
  text-decoration: none; color: var(--ink); text-align: center; min-height: 64px; }
.tile b { font: 500 13px var(--f-mono); }
.tile small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.tile.done { border-color: color-mix(in srgb, var(--yellow) 70%, var(--line)); }
.tile.locked { opacity: .45; }
.ico-play { display: inline-block; width: 0; height: 0; margin-right: 8px; border-left: 9px solid var(--pink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; vertical-align: -1px; }
.replays { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.replays .btn { flex: 1 1 0; min-width: 140px; }
.world-open { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--pink); color: #fff; }
.world-open .eyebrow { color: #fff; opacity: .85; margin: 0; }
.world-open h2 { margin: 2px 0 4px; }
.world-open .small { margin: 0; }
.tile.last { border-color: var(--pink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pink) 35%, transparent); position: relative; }
.tile-last { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font: 600 9px var(--f-mono); background: var(--pink); color: #fff; padding: 1px 5px; border-radius: 6px; white-space: nowrap; }
.tile .lock { font-size: 10px; color: var(--muted); }
.tile .stars i { font-size: 13px; }

/* achievements */
.ach { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ach li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; opacity: .62; }
.ach li.got { opacity: 1; }
.ach .medal { font-size: 22px; line-height: 1.1; color: var(--muted); text-align: center; }
.ach li.got .medal { color: var(--yellow); text-shadow: 0 0 1px var(--ink); }
.ach div { display: grid; gap: 2px; }
.ach small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.ach .when { font: 500 11px var(--f-mono); }
.ach .meter { height: 5px; margin-top: 3px; }

/* the bar under the board: label, balls left, buttons (never over the drop zone) */
.stagebar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; min-width: 0; }
.stagebar .grow { flex: 1 1 auto; }
.stagebar .tag { position: static; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stagebar .pips { position: static; flex: 0 0 auto; padding: 0; background: none; }
.stagebar .chips { position: static; flex: 0 0 auto; }
/* very narrow phones: short buttons even when the label is under the board */
@media (max-width: 345px) {
  .stagebar:has(.chips > :nth-child(3)) .chip-btn .c-long { display: none; }
  .stagebar:has(.chips > :nth-child(3)) .chip-btn .c-short { display: inline; }
}
/* phones with room (most): a taller bar and bigger buttons, easy to hit with a thumb */
@media (min-height: 700px) {
  .stagebar { height: 42px; }
  .stagebar .chip-btn { font-size: 14px; padding: 9px 14px; }
  .stagebar .chip-btn.restart { font-size: 19px; min-width: 42px; padding: 0; height: 36px; }
  .stagebar .chip-btn .c-short { font-size: 15px; }
}
/* short phones: a slimmer bar and controls, so the board keeps its width */
@media (max-height: 620px) {
  .stagebar { height: 24px; }
  .stagebar .tag { padding: 2px 6px; }
  .stagebar .chip-btn { padding: 3px 9px; }
  .dock { padding-top: 4px; }
  .nudge, .btn.drop { height: 50px; }
  .live { line-height: 50px; }
  .dock.keep, .dock.keep:empty { min-height: calc(50px + 14px + var(--safe-b)); }
}
/* ?perf=1: live frame numbers over the stage */
.perfbox { position: absolute; left: 8px; bottom: 4px; z-index: 3; pointer-events: none; font: 500 10px/1.3 var(--f-mono);
  background: var(--ink); color: var(--paper); padding: 3px 6px; border-radius: 6px; opacity: .85; max-width: calc(100% - 16px); }
/* Ja → Historia: calendar of daily results, histogram */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.cal > b { font: 600 10.5px var(--f-mono); color: var(--muted); text-align: center; text-transform: uppercase; }
.cal .day { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; align-content: center; text-decoration: none; color: var(--ink);
  border: 1.5px solid transparent; min-width: 0; line-height: 1; gap: 1px; }
.cal .day small { font: 500 9px var(--f-mono); opacity: .7; }
.cal .day em { font: 400 13px var(--f-display); font-style: normal; font-variant-numeric: tabular-nums; }
.day.none { background: color-mix(in srgb, var(--line) 35%, transparent); color: var(--muted); }
.day.s0 { background: color-mix(in srgb, var(--blue) 14%, var(--paper)); }
.day.s1 { background: color-mix(in srgb, var(--yellow) 35%, var(--paper)); }
.day.s2 { background: color-mix(in srgb, var(--yellow) 75%, var(--paper)); }
.day.s3 { background: color-mix(in srgb, var(--pink) 45%, var(--paper)); }
.day.s4 { background: var(--pink); color: #fff; }
.day.frozen { background: color-mix(in srgb, var(--blue) 30%, var(--paper)); color: var(--blue); }
.day.today { border-color: var(--ink); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.cal-legend .day { font: 600 11px var(--f-mono); padding: 4px 8px; border-radius: 8px; }
.histo { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 90px; align-items: end; margin-top: 6px; }
.histo > div { height: 100%; display: grid; grid-template-rows: 1fr auto; align-items: end; gap: 3px; }
.histo i { display: block; background: var(--blue); border-radius: 3px 3px 0 0; opacity: .85; }
.histo small { font: 500 9.5px var(--f-mono); color: var(--muted); text-align: center; }
.note.freeze { background: color-mix(in srgb, var(--blue) 16%, transparent); }
/* "Napisz do autora" */
#sheet textarea { width: 100%; border-radius: 12px; border: 2px solid var(--line); background: var(--paper-2); padding: 10px 12px; font-size: 16px;
  line-height: 1.4; resize: vertical; min-height: 110px; -webkit-user-select: text; user-select: text; }
#sheet textarea:focus { border-color: var(--ink); outline: none; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-choice { border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.chip-choice[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
pre.code { white-space: pre-wrap; word-break: break-all; font: 500 11px/1.35 var(--f-mono); max-height: 180px; overflow: auto; -webkit-user-select: text; user-select: text; }
/* calendar reminder */
.remind { display: grid; gap: 8px; }
.remind .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.remind select { height: 40px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper-2); padding: 0 10px; font: inherit; font-weight: 700; }
button.navrow { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
/* ---- together: reactions, shared series, rival, master mode, labels */
.theme-line { margin: 2px 0 0; font-weight: 700; color: var(--pink); }
.goal { margin: 2px 0; }
.goal.ok { color: var(--ink); font-weight: 700; }
.note.welcome { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.react-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.react-btn { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px;
  border: 1.5px solid var(--line); background: transparent; cursor: pointer; touch-action: manipulation; }
.react-btn .e { font-size: 26px; line-height: 1; position: relative; }
.react-btn .l { font-size: 12px; font-weight: 700; color: var(--muted); position: relative; }
.react-btn .n { font: 700 13px var(--f-mono); position: relative; }
.react-btn i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--pink); opacity: .7; }
.react-btn.on { border-color: var(--ink); background: color-mix(in srgb, var(--yellow) 25%, transparent); }
.together p { margin: 4px 0; }
.duo-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.duo-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.duo-list li small { color: var(--muted); }
.duo-n { font: 400 18px var(--f-display); }
ul.pick { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.rv-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0 4px; }
.rv { border-radius: 10px; border: 1.5px solid var(--line); display: grid; justify-items: center; padding: 4px 0; gap: 1px; min-width: 0; }
.rv small { font: 600 10px var(--f-mono); color: var(--muted); text-transform: uppercase; }
.rv b { font: 400 14px var(--f-display); }
.rv span { font: 500 12px var(--f-mono); color: var(--muted); }
.rv.w { background: color-mix(in srgb, var(--yellow) 35%, transparent); border-color: var(--yellow); }
.rv.l { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.rv.future { opacity: .45; }
.card.master h3::after { content: ' 🎯'; }
.medals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.medals span { border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; }
.medals span.ok { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 30%, transparent); }
.sub-status { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; border: 1.5px solid var(--line); white-space: nowrap; }
.sub-status.ready, .sub-status.approved { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 30%, transparent); }
.sub-status.rejected { border-color: var(--pink); color: var(--pink); }
.tile .tag-mini { font-size: 11px; line-height: 1; }
.poster { width: 100%; border-radius: 12px; margin-top: 8px; box-shadow: 0 0 0 1.5px var(--line); }

/* consent to play statistics: a card at the top of calm screens, inside the page (never over anything) */
.consent { background: var(--card, var(--paper)); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 16px;
  padding: 14px 14px 12px; margin: 0 0 14px; }
.consent h2 { margin: 0 0 6px; font-size: 18px; }
.consent p { margin: 0 0 8px; }
.consent .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 0; }
/* privacy policy and terms */
.legal h2 { font-size: 18px; margin: 0 0 8px; }
.legal h3 { font-size: 15px; margin: 14px 0 4px; }
.legal p, .legal li { font-size: 14px; line-height: 1.5; }

.nick-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nick-sug .chip-btn { font-size: 13px; padding: 7px 12px; }

/* "← Lista poziomów" at the end of a result: a button like the other choices, a quiet one */
.backbtn { justify-self: center; gap: 6px; margin-top: 4px; }
