/* Nutkowe Schodki: ekran startowy i dziennik. Wspólny styl salonu zostaje w ../wspolne/styl.css. */
.ov-card.nz-karta { gap: 9px; padding: 16px 18px; }
.nz-logo { display: block; width: 100%; max-width: 270px; height: auto; margin: 0 auto; }
.nz-karta .ov-text { font-size: 14px; line-height: 1.38; }
.nz-karta .ov-extra { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Ekran startowy: treść ov-extra wchodzi wprost do kolumny karty, żeby tryby mogły stanąć pod przyciskiem startu. */
.ov-card.nz-start { position: relative; }
.ov-card.nz-start .ov-extra { display: contents; }
.nz-start .nz-tempo { order: 4; }
.nz-start .ov-btns { order: 5; }
.nz-start .nz-tryby { order: 6; }
.nz-start .ov-btns .main { min-height: 58px; font-size: 18px; }
.nz-start .ov-btns .key { min-height: 44px; align-self: center; padding: 0 12px; }
.nz-lewa { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nz-tempo .nz-rz { flex-direction: row; align-items: center; gap: 8px; }
.nz-tempo .nz-et { display: block; flex: none; }
.nz-tempo .nz-seg { flex: 1 1 auto; }
.nz-tempo .nz-seg button { font-size: 13px; }
.nz-tryby { display: flex; flex-direction: column; gap: 5px; padding-top: 8px; border-top: 1px dashed var(--line); }
.nz-zakl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.nz-zakl2 { display: flex; gap: 5px; }
.nz-zakl button, .nz-zakl2 button { min-height: 44px; min-width: 0; padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.1; }
.nz-zakl button { background: #ffffff08; }
.nz-zakl2 button { flex: 1 1 0; border-color: #ffffff12; }
.nz-zakl img { width: 20px; height: 20px; }
.nz-zakl button[aria-pressed="true"], .nz-zakl2 button[aria-pressed="true"] { border-color: var(--pk); color: var(--pk); }
.nz-zakl2 .nz-do-kamp { color: var(--cy); border-color: #22d3ee66; }
/* Nutka na ekranach wyniku: w rogu karty, poza przepływem, więc przyciski zostają na ekranie. */
.nz-boh { position: absolute; top: -8px; right: 6px; width: 112px; height: 112px; pointer-events: none; }
.nz-boh img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ov-card.nz-karta:has(.nz-boh) { position: relative; }
.ov-card.nz-karta:has(.nz-boh) h2 { padding-right: 96px; }
.ov-card.nz-karta:has(.nz-boh) .ov-text { padding-right: 74px; }
.nz-poz { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.nz-poz button { min-height: 44px; padding: 2px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border-radius: 9px; border: 1px solid var(--line); background: var(--key); line-height: 1.05; }
.nz-poz b { font-family: var(--mono); font-size: 15px; }
.nz-poz i { font-style: normal; font-size: 10px; color: var(--am); min-height: 11px; letter-spacing: -1px; }
.nz-poz button[aria-pressed="true"] { border-color: var(--pk); color: var(--pk); }
.nz-poz button:disabled { opacity: 0.42; cursor: not-allowed; }
.nz-opis { display: flex; flex-direction: column; gap: 1px; min-height: 66px; }
.nz-opis-ods { flex-direction: row; align-items: center; gap: 8px; }
.nz-opis-ods > div { flex: 1 1 auto; min-width: 0; }
.nz-opis p { margin: 0; font-size: 13px; line-height: 1.3; color: var(--muted); }
.nz-opis p b { color: var(--fg); }
.nz-opis .nz-skad { font-size: 12px; color: #8f98a8; }
.nz-ods { flex: none; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid #22d3ee66; background: transparent; color: var(--cy); font-size: 12px; font-weight: 700; }
.nz-schodki { position: relative; height: 96px; }
.nz-schodki img:first-child { display: block; width: 100%; height: 100%; }
.nz-sn { position: absolute; width: 88px; height: 88px; transform: translate(-41%, 15%); }
.nz-wybor { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nz-wybor button { min-height: 72px; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; border: 1px solid var(--cy); background: var(--key); }
.nz-wybor span { font-size: 12px; color: var(--am); }
.nz-wybor button:disabled { opacity: 0.45; border-color: var(--line); cursor: not-allowed; }
.nz-pusto { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.nz-wyk { display: block; width: 100%; height: auto; background: #010206; border: 1px solid var(--line); border-radius: 10px; }
.nz-kl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nz-kl li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 5px 8px; border-radius: 8px; background: #010206; font-size: 13px; color: var(--muted); }
.nz-kl b { font-family: var(--mono); color: var(--fg); font-size: 16px; }
.nz-kl em { font-style: normal; color: var(--am); margin-left: auto; font-family: var(--mono); }
.nz-uszy { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.nz-nagr { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.nz-nagr div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; padding: 5px 3px; border-radius: 10px; background: #010206; border: 1px solid var(--line); }
.nz-nagr img { width: 46px; height: 46px; }
.nz-nagr b { font-size: 12px; }
.nz-nagr span { font-size: 10px; line-height: 1.2; color: var(--muted); }
.nz-nagr .nie img { opacity: 0.25; filter: grayscale(1); }
.nz-nagr .nie b { color: var(--muted); }
.nz-nowa { margin: 0; color: var(--am); font-weight: 800; }
.nz-dlugi .ov-btns { position: sticky; bottom: -16px; background: var(--panel); padding: 8px 0 2px; }
/* Opcje */
.nz-op { display: flex; flex-direction: column; gap: 10px; }
.nz-rz { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nz-et { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nz-opk { margin: 0; font-size: 12px; line-height: 1.3; color: #8f98a8; }
.nz-seg { display: flex; gap: 4px; min-width: 0; }
.nz-seg button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 2px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--key); font-size: 13px; font-weight: 600; line-height: 1.15; }
.nz-seg button[aria-pressed="true"] { border-color: var(--pk); color: var(--pk); box-shadow: inset 0 0 0 1px var(--pk); }
.nz-seg button[aria-pressed="true"]::before { content: "✓ "; }
.nz-kaf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.nz-kaf-tlo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nz-kaf button { min-height: 44px; padding: 5px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 10px; border: 1px solid var(--line); background: #010206; min-width: 0; }
.nz-kaf button[aria-pressed="true"] { border-color: var(--pk); box-shadow: inset 0 0 0 1px var(--pk); }
.nz-kaf button[aria-pressed="true"] b::before { content: "✓ "; color: var(--pk); }
.nz-kaf button:disabled { cursor: not-allowed; }
.nz-kaf b { font-size: 12px; line-height: 1.15; }
.nz-kaf span { font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.nz-kaf span.nz-nut { position: relative; display: block; width: 64px; height: 64px; }
.nz-nut img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nz-nut.zam img { opacity: 0.3; filter: grayscale(1); }
.nz-kaf-tlo img { display: block; width: 100%; aspect-ratio: 2 / 1; border-radius: 6px; }
.nz-kaf-tlo img.zam { opacity: 0.3; filter: grayscale(1); }
.nz-op-wejscie { width: 100%; margin-top: 8px; }
/* Album naklejek: puste miejsce czeka z obrysem, a przyklejona naklejka jest lekko krzywo, jak prawdziwa. */
.nz-alb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nz-alb div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 6px 3px; border-radius: 10px; background: #010206; border: 1px solid var(--line); min-width: 0; }
.nz-alb i { display: block; width: 64px; height: 64px; }
.nz-alb img { display: block; width: 100%; height: 100%; }
.nz-alb .nie i { border: 2px dashed #ffffff30; border-radius: 50%; box-sizing: border-box; }
.nz-alb .nie img { opacity: 0.16; filter: grayscale(1); }
.nz-alb .ma:nth-child(3n+1) img { transform: rotate(-5deg); }
.nz-alb .ma:nth-child(3n+2) img { transform: rotate(4deg); }
.nz-alb .ma:nth-child(3n) img { transform: rotate(-2deg); }
.nz-alb b { font-size: 12px; line-height: 1.15; }
.nz-alb span { font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.nz-alb .nie b { color: var(--muted); }
/* Naklejka w wyniku: wąski pasek, żeby przyciski zostały na ekranie także poziomo. */
.nz-alb-nowe { grid-template-columns: minmax(0, 1fr); }
.nz-alb.nz-alb-nowe div { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; padding: 3px 8px; text-align: left; align-items: center; }
.nz-alb-nowe i { width: 46px; height: 46px; grid-row: 1 / 3; }
/* Układ leworęczny: Pauza pod lewym kciukiem. */
body.nz-lewo .topbar { flex-direction: row-reverse; }
@media (max-height: 760px) and (min-height: 501px) {
  .nz-schodki { height: 58px; }
  .nz-sn { width: 56px; height: 56px; }
  .nz-karta .ov-text { font-size: 13px; line-height: 1.3; }
  .nz-logo { max-width: 170px; }
  .nz-opis { min-height: 0; }
  .nz-opis .nz-skad { display: none; }
  .ov-card.nz-karta { gap: 7px; padding: 10px 14px; }
  .nz-start .ov-btns .main { min-height: 50px; font-size: 16px; }
  .nz-zakl img { display: none; }
  .nz-boh { width: 90px; height: 90px; }
}
@media (max-height: 500px) {
  .ov-card.nz-karta { max-width: 760px; padding: 10px 16px; gap: 6px; }
  /* Poziomo dwie kolumny: po lewej to, co wybierasz, po prawej tempo, start i reszta trybów. */
  .ov-card.nz-start:not(.nz-dlugi), .ov-card.nz-bas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 6px 16px; align-items: start; }
  .nz-start:not(.nz-dlugi) h2, .nz-bas h2 { grid-column: 1; grid-row: 1; }
  .nz-start:not(.nz-dlugi) .ov-text, .nz-bas .ov-text { grid-column: 2; grid-row: 1; align-self: center; }
  .nz-start:not(.nz-dlugi) .nz-lewa, .nz-bas .nz-lewa { grid-column: 1; grid-row: 2 / span 3; }
  .nz-start:not(.nz-dlugi) .nz-tempo, .nz-bas .nz-tempo { grid-column: 2; grid-row: 2; }
  .nz-start:not(.nz-dlugi) .ov-btns, .nz-bas .ov-btns { grid-column: 2; grid-row: 3; position: static; }
  .nz-start:not(.nz-dlugi) .nz-tryby, .nz-bas .nz-tryby { grid-column: 2; grid-row: 4; }
  .nz-start .ov-btns .main { min-height: 48px; font-size: 15px; }
  .nz-start .ov-btns { flex-wrap: nowrap; }
  .nz-start .ov-btns .main { flex: 1 1 auto; }
  .nz-tempo .nz-et { display: none; }
  .nz-zakl { gap: 4px; }
  .nz-zakl button, .nz-zakl2 button { font-size: 11px; min-height: 40px; }
  .nz-zakl img { display: none; }
  .nz-tryby { padding-top: 4px; gap: 3px; }
  .nz-boh { top: -4px; right: 8px; width: 92px; height: 92px; }
  .nz-alb { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nz-kaf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nz-kaf-tlo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nz-op { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .nz-rz:nth-last-child(-n+2) { grid-column: 1 / -1; }
  .nz-karta .stat { padding: 3px 8px; }
  .nz-karta .stat b { font-size: 20px; }
  .nz-karta .stars img { width: 26px; height: 26px; }
  .nz-nowa { font-size: 13px; }
  .nz-logo { max-width: 190px; }
  .nz-karta .ov-text { font-size: 13px; line-height: 1.25; }
  .nz-schodki { height: 54px; }
  .nz-sn { width: 62px; height: 62px; }
  .nz-karta:not(.nz-start) .nz-schodki { display: none; } /* w wyniku Nutka stoi już w rogu, a przyciski muszą zostać na ekranie */
  .nz-poz button { min-height: 40px; }
  .nz-opis { min-height: 0; }
  .nz-opis .nz-skad { display: none; }
  .nz-ods { min-height: 40px; }
  .nz-wyk { max-width: 430px; margin: 0 auto; }
  .ov-btns .main { min-height: 44px; }
}
@media (max-width: 380px) {
  .nz-tempo .nz-et { display: none; }
  .nz-tempo .nz-seg button[aria-pressed="true"]::before { content: ""; }
  .nz-logo { max-width: 220px; }
  .nz-karta .ov-text { font-size: 13px; }
  .nz-opis .nz-skad { display: none; }
}
