/* RYBY 3.2 — Responsive Command Layer
   Jeden spójny układ dla telefonu, tabletu i urządzeń dotykowych. */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a,
select,
label {
  touch-action: manipulation;
}

.mobile-dock {
  display: none;
}

@media (max-width: 980px) {
  body:not(.admin-body):not(.detail-body) {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .mobile-dock {
    position: fixed;
    z-index: 120;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(calc(100% - 24px), 540px);
    min-height: 70px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 7px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(49, 61, 43, .94), rgba(8, 20, 15, .97));
    border: 1px solid rgba(224, 199, 127, .3);
    border-radius: 22px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .035);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
    transition: opacity .25s ease, transform .25s ease;
  }

  .mobile-dock a {
    position: relative;
    min-width: 0;
    min-height: 56px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: rgba(242, 238, 229, .56);
    border-radius: 15px;
  }

  .mobile-dock a span {
    color: rgba(224, 199, 127, .68);
    font-family: var(--display);
    font-size: 18px;
    line-height: 1;
  }

  .mobile-dock a small {
    max-width: 100%;
    overflow: hidden;
    font-size: 8px !important;
    font-weight: 850;
    letter-spacing: .035em !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-dock a[aria-current="page"] {
    color: #f2ecd9;
    background: radial-gradient(circle at 50% 0, rgba(224, 199, 127, .2), transparent 75%), rgba(224, 199, 127, .08);
    box-shadow: inset 0 0 0 1px rgba(224, 199, 127, .16);
  }

  .mobile-dock a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 29%;
    right: 29%;
    bottom: 2px;
    height: 2px;
    background: var(--gold2);
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(234, 213, 155, .5);
  }

  body:has(.gallery-lightbox:not([hidden])) .mobile-dock,
  body:has(.expedition-modal:not([hidden])) .mobile-dock {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
  }

  .back-to-top {
    bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .topbar {
    padding-inline: clamp(18px, 4vw, 34px);
  }

  .hero-copy {
    width: min(720px, calc(100% - 48px));
  }

  .section-heading,
  .conditions-heading,
  .gallery-heading,
  .intelligence-heading {
    min-width: 0;
  }

  .section-heading > p,
  .gallery-heading > p,
  .intelligence-heading > p,
  .hero-lead {
    font-size: 14px;
    line-height: 1.75;
  }

  main small,
  footer small,
  .gallery-lightbox small,
  .expedition-modal small {
    font-size: 9px !important;
    letter-spacing: min(.12em, 1.2px) !important;
    line-height: 1.4 !important;
  }

  .metrics small,
  .catch-meta,
  .catch-card-body small,
  .gallery-tile-copy small,
  .conditions-disclaimer,
  .conditions-attribution,
  .conditions-warning,
  .explorer-methodology,
  .intelligence-disclaimer,
  .session-truth > footer,
  .gallery-source {
    font-size: 10px !important;
    line-height: 1.55;
  }

  .metrics article {
    padding: 14px;
  }

  .catch-card,
  .gallery-tile,
  .moment,
  .fishery-ranking > article,
  .conditions-layout > article,
  .condition-vital,
  .intelligence-panel,
  .session-truth {
    min-width: 0;
  }

  .catch-card-body,
  .catch-meta,
  .fishery-name,
  .fishery-score,
  .gallery-tile-copy,
  .explorer-command-copy,
  .session-fisheries > article > div {
    overflow-wrap: anywhere;
  }

  .catch-card-body > span,
  .catch-card-body strong,
  .catch-meta > span {
    min-width: 0;
  }

  .catch-meta > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .filters button,
  .gallery-more,
  .gallery-lightbox-catch,
  .gallery-lightbox-strip button,
  .gallery-lightbox-close,
  .gallery-lightbox-arrow,
  .expedition-modal-close,
  .expedition-modal-arrow,
  .explorer-controls > button {
    min-height: 44px;
  }

  .filters button {
    padding-inline: 18px;
    font-size: 10px;
  }

  .gallery-controls label,
  .explorer-controls label {
    min-height: 56px;
  }

  .gallery-controls label > span,
  .explorer-controls label > span {
    font-size: 8px;
  }

  .gallery-controls select,
  .explorer-controls select {
    min-height: 28px;
    font-size: 16px;
  }

  .gallery-tile-open {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 14px;
    font-size: 17px;
    background: rgba(5, 14, 10, .62);
  }

  .gallery-tile-copy {
    right: 70px;
  }

  .gallery-lightbox-strip button {
    width: 70px;
    height: 70px;
  }

  .gallery-lightbox-facts strong {
    overflow: visible;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
  }

  .pressure-labels text {
    font-size: 9px;
  }

  footer {
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 680px) {
  .topbar {
    padding-inline: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand small {
    font-size: 8px !important;
    letter-spacing: .14em !important;
  }

  .hero {
    min-height: max(760px, 100svh);
  }

  .hero-copy {
    width: calc(100% - 36px);
    margin-left: 18px;
    padding-top: 150px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(54px, 15.5vw, 74px);
    line-height: .84;
    overflow-wrap: normal;
  }

  .hero-lead {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .gold-button {
    min-width: min(100%, 245px);
    min-height: 54px;
    justify-content: space-between;
    font-size: 10px;
  }

  .instruments {
    left: 18px;
    width: calc(100% - 36px);
    align-items: start;
    gap: 10px;
  }

  .instruments article {
    min-width: 0;
    gap: 7px;
  }

  .instruments small {
    font-size: 8px !important;
  }

  .instruments strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    letter-spacing: .035em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .metrics article {
    min-width: 0;
    min-height: 108px;
    justify-content: flex-start;
    padding: 16px 14px;
  }

  .metrics strong {
    font-size: clamp(21px, 7vw, 27px);
  }

  .section-heading h2,
  .conditions-heading h2,
  .intelligence-heading h2,
  .gallery-heading h2 {
    font-size: clamp(45px, 13.5vw, 58px);
    line-height: .9;
    overflow-wrap: anywhere;
  }

  .section-heading > p,
  .gallery-heading > p,
  .intelligence-heading > p {
    font-size: 13px !important;
  }

  .catch-card-body {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 19px 17px;
  }

  .catch-card-body strong {
    font-size: 33px;
  }

  .catch-card-body > em {
    font-size: 25px;
  }

  .catch-meta {
    min-height: 58px;
    padding-inline: 18px;
  }

  .catch-meta > b {
    flex: 0 0 auto;
  }

  .conditions-status strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .pressure-chart {
    margin-inline: -2px;
    padding-bottom: 7px;
    scrollbar-color: rgba(224, 199, 127, .45) rgba(255, 255, 255, .04);
    scrollbar-width: thin;
  }

  .pressure-chart svg {
    min-width: 540px;
  }

  .pressure-forecast > footer {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pressure-forecast > footer span,
  .pressure-forecast > footer span:first-child {
    min-height: 52px;
    justify-content: center;
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(238, 232, 217, .08);
  }

  .pressure-forecast > footer span:last-child {
    border-bottom: 0;
  }

  .gallery-tile-copy {
    left: 16px;
    right: 65px;
  }

  .gallery-tile-copy small {
    white-space: normal;
  }

  .gallery-lightbox-stage {
    min-height: 330px;
  }

  .gallery-lightbox-copy > h2 {
    font-size: clamp(48px, 16vw, 62px);
    overflow-wrap: anywhere;
  }

  .gallery-lightbox-copy {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
  }

  .gallery-lightbox-facts > span {
    min-height: 76px;
  }

  .explorer-command-copy > small,
  .explorer-kpis p,
  .session-truth-kpis p,
  .gallery-live-count p {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .explorer-kpis > article,
  .session-truth-kpis > article {
    padding-inline: 18px;
  }

  .fishery-score {
    grid-column: 1 / -1;
    width: 100%;
  }

  .fishery-score > span:first-child {
    border-left: 0;
  }

  .manifesto {
    min-height: 440px;
    padding-inline: 19px;
  }

  .manifesto p {
    font-size: clamp(34px, 10.5vw, 44px);
    line-height: 1.05;
  }

  .mobile-dock {
    bottom: max(6px, env(safe-area-inset-bottom));
    width: calc(100% - 14px);
    min-height: 66px;
    padding: 5px;
    border-radius: 20px;
  }

  .mobile-dock a {
    min-height: 56px;
  }

  .mobile-dock a span {
    font-size: 17px;
  }

  .mobile-dock a small {
    font-size: 7px !important;
  }

  .back-to-top {
    right: 10px;
    bottom: calc(87px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .brand > span {
    max-width: 142px;
  }

  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: clamp(50px, 14.8vw, 62px);
  }

  .instruments {
    grid-template-columns: 1.15fr 1fr;
  }

  .instruments article:last-child {
    grid-column: 1 / -1;
  }

  .gallery-controls,
  .explorer-controls {
    grid-template-columns: 1fr;
  }

  .mobile-dock a small {
    font-size: 6.5px !important;
  }
}

@media (max-width: 340px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics article,
  .metrics article:nth-child(2) {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics article:last-child {
    border-bottom: 0;
  }
}

/* Panel właściciela: tablet i telefon korzystają z czytelnego dolnego docka. */
@media (max-width: 1024px) {
  .admin-body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .admin-shell {
    display: block;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .sidebar {
    position: fixed;
    z-index: 500;
    inset: auto 0 0;
    width: 100%;
    height: calc(76px + env(safe-area-inset-bottom));
    display: block;
    padding: 0 0 env(safe-area-inset-bottom);
    background: linear-gradient(180deg, rgba(29, 43, 33, .98), rgba(7, 17, 13, .99));
    border: 0;
    border-top: 1px solid rgba(224, 199, 127, .24);
    box-shadow: 0 -20px 55px rgba(0, 0, 0, .38);
  }

  .admin-brand,
  .profile {
    display: none;
  }

  .sidebar nav {
    width: 100%;
    height: 76px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    gap: 0;
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar nav button {
    min-width: 0;
    min-height: 76px;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 5px 7px;
    border-radius: 0;
    scroll-snap-align: center;
  }

  .sidebar nav button i {
    width: auto;
    font-size: 19px;
    line-height: 1;
  }

  .sidebar nav button span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 8px;
    letter-spacing: .025em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar nav button.active::before {
    inset: -1px 22% auto;
    width: 56%;
    height: 2px;
  }

  .admin-top {
    height: 70px;
    padding-inline: 24px;
  }

  .admin-top small,
  .admin-top > a {
    font-size: 9px;
  }

  .admin-view {
    padding: 46px clamp(20px, 4vw, 42px) 112px;
  }

  .catch-form,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .form-card,
  .form-card.full {
    grid-column: auto;
  }

  .field input,
  .field select,
  .field textarea,
  .form-options select,
  .login-card input,
  .quality-list-head select {
    min-height: 50px;
    font-size: 16px;
  }

  .field textarea {
    padding-block: 13px;
  }

  .field > span,
  .form-options > label > span:first-child,
  .field-hint,
  .form-title small,
  .admin-stats small,
  .quality-overview small,
  .quality-coverage small,
  .quality-coverage em,
  .quality-record-copy > small,
  .quality-record-copy > i,
  .quality-record-scores p small,
  .session-overview small,
  .session-card-metrics small,
  .admin-intelligence-signals small {
    font-size: 9px;
    letter-spacing: .08em;
    line-height: 1.45;
  }

  .admin-primary,
  .admin-secondary,
  .weather-auto,
  .entry-card footer button,
  .entry-filters button,
  .form-actions > button:first-child,
  .backup-list > article > a,
  .live-session-actions button {
    min-height: 48px;
    font-size: 10px;
  }

  .upload-zone {
    min-height: 200px;
    padding: 24px 16px;
    text-align: center;
  }

  .upload-zone span {
    font-size: 10px;
    line-height: 1.55;
  }

  .photo-preview button {
    width: 44px;
    height: 44px;
  }

  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .live-session-modal {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .quality-method,
  .session-method,
  .admin-intelligence-panel > footer,
  .live-session-copy p,
  .backup-overview p,
  .gps-actions p,
  .fishery-gps-actions > p,
  .weather-method p {
    font-size: 10px;
    line-height: 1.65;
  }
}

@media (max-width: 760px) {
  .admin-body,
  .admin-shell {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .sidebar nav {
    grid-template-columns: none;
    grid-auto-columns: 76px;
  }

  .sidebar nav button {
    padding-inline: 4px;
  }

  .sidebar nav button i {
    font-size: 18px;
  }

  .sidebar nav button span {
    display: block;
    font-size: 7px;
    letter-spacing: 0;
  }

  .admin-top {
    padding-inline: 15px;
  }

  .admin-top > div {
    min-width: 0;
  }

  .admin-top small,
  .admin-top strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-view {
    padding: 36px 15px 108px;
  }

  .title-row {
    gap: 20px;
    margin-bottom: 28px;
  }

  .title-row h1 {
    max-width: 100%;
    font-size: clamp(41px, 13vw, 51px);
    overflow-wrap: anywhere;
  }

  .title-row > span,
  .title-row p {
    font-size: 9px;
    line-height: 1.4;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats article {
    min-width: 0;
    padding: 16px 12px;
  }

  .admin-stats strong {
    font-size: 25px;
  }

  .form-card {
    padding: 23px 16px;
  }

  .form-title {
    align-items: flex-start;
  }

  .form-title.with-action {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .form-title.with-action .weather-auto {
    grid-column: 1 / -1;
    width: 100%;
  }

  .form-options > label:last-child {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .form-options select {
    width: 100%;
  }

  .quality-overview > article {
    padding: 19px 16px;
  }

  .quality-record-photo > span,
  .quality-missing > span,
  .quality-record-scores > span > small {
    font-size: 8px;
  }

  .quality-record-scores {
    gap: 9px;
  }

  .quality-record-scores p strong {
    font-size: 16px;
  }

  .login-screen {
    align-items: center;
    padding: 14px;
  }

  .login-card {
    max-height: calc(100svh - 28px);
    overflow-y: auto;
    padding: 32px 22px;
  }

  .login-card > img {
    width: 58px;
    height: 58px;
  }

  .login-card > p,
  .login-card label span,
  .login-card > a {
    font-size: 10px;
  }

  .login-card h1 {
    margin-bottom: 25px;
    font-size: clamp(42px, 13vw, 52px);
  }
}

@media (max-width: 520px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-stats article {
    min-height: 86px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full,
  .fishery-gps-actions.full,
  .session-duration.full {
    grid-column: auto;
  }

  .photo-previews {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-record {
    grid-template-columns: 82px 1fr;
  }

  .quality-record-copy h3 {
    font-size: 22px;
  }

  .quality-record-scores {
    grid-template-columns: 58px 1fr;
  }

  .quality-record-scores > p:last-child {
    grid-column: 2;
  }

  .live-session-dialog > footer {
    grid-template-columns: 1fr;
  }
}

/* Pojedyncza karta połowu. */
@media (max-width: 980px) {
  .detail-body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .detail-photo-stage > button,
  .detail-thumbnails button,
  .detail-actions button,
  .detail-actions a,
  .detail-signature > a,
  .lightbox > button {
    min-height: 48px;
  }

  .detail-heading h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .detail-place,
  .detail-data-grid small,
  .weather-provenance,
  .detail-story small,
  .detail-signature small,
  .detail-signature p {
    font-size: 9px;
    line-height: 1.5;
  }

  .detail-data-grid strong {
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 680px) {
  .detail-hero {
    min-width: 0;
  }

  .detail-photo-stage {
    min-height: max(430px, 58svh);
  }

  .detail-photo-stage > button {
    width: 52px;
    height: 52px;
  }

  .detail-thumbnails {
    scrollbar-width: thin;
  }

  .detail-thumbnails button {
    min-width: 56px;
    width: 56px;
    height: 56px;
  }

  .detail-heading {
    padding-inline: 18px;
  }

  .detail-heading h1 {
    font-size: clamp(59px, 19vw, 79px);
    line-height: .78;
  }

  .detail-place {
    font-size: 11px;
    line-height: 1.55;
  }

  .detail-actions {
    width: 100%;
    gap: 14px;
  }

  .detail-actions button,
  .detail-actions a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 20px;
    font-size: 10px;
  }

  .detail-data-grid article {
    min-width: 0;
    padding: 17px;
  }

  .detail-story > p {
    font-size: clamp(23px, 7.2vw, 31px);
  }

  .detail-signature {
    gap: 15px;
  }

  .detail-signature > div {
    min-width: 0;
  }

  .detail-signature strong {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

  .detail-signature > a {
    justify-content: space-between;
    font-size: 10px;
  }

  .lightbox > button {
    width: 48px;
    height: 48px;
  }

  .detail-toast {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    text-align: center;
  }
}

@media (hover: none), (pointer: coarse) {
  button,
  [role="button"],
  input,
  select,
  textarea {
    min-height: 44px;
  }

  button:hover,
  a:hover {
    transform: none;
  }
}

/* RYBY 3.3 — Field App: instalacja, połączenie i uczciwy tryb offline. */
.field-app-status {
  position: fixed;
  z-index: 1600;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100% - 28px), 620px);
  min-height: 68px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 38px;
  align-items: center;
  gap: 13px;
  padding: 10px 11px 10px 17px;
  color: #eee8d7;
  background: radial-gradient(circle at 0 0, rgba(126, 145, 82, .18), transparent 48%), linear-gradient(145deg, rgba(35, 50, 38, .97), rgba(7, 18, 13, .98));
  border: 1px solid rgba(224, 199, 127, .3);
  border-radius: 18px;
  box-shadow: 0 24px 75px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .035);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px);
  transition: opacity .25s ease, transform .32s cubic-bezier(.2, .75, .2, 1);
  backdrop-filter: blur(18px);
}

.field-app-status.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.field-app-status > i {
  width: 9px;
  height: 9px;
  background: #b5cd76;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(181, 205, 118, .08), 0 0 18px rgba(181, 205, 118, .42);
}

.field-app-status[data-tone="offline"] > i {
  background: #d2976f;
  box-shadow: 0 0 0 6px rgba(210, 151, 111, .08), 0 0 18px rgba(210, 151, 111, .38);
}

.field-app-status[data-tone="install"] > i,
.field-app-status[data-tone="update"] > i {
  background: #e0c77f;
  box-shadow: 0 0 0 6px rgba(224, 199, 127, .08), 0 0 18px rgba(224, 199, 127, .42);
}

.field-app-status > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.field-app-status strong {
  color: #e6d99f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .15em;
}

.field-app-status small {
  overflow: hidden;
  color: rgba(242, 238, 229, .58);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-app-action {
  min-height: 42px;
  padding: 0 16px;
  color: #101a12;
  background: linear-gradient(135deg, #ead59b, #c5a45f);
  border: 0;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field-app-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(242, 238, 229, .48);
  background: transparent;
  border: 1px solid rgba(242, 238, 229, .1);
  border-radius: 50%;
  font-size: 19px;
}

.offline-body {
  min-height: 100svh;
  background: #07100e;
}

.offline-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 34px;
  background: linear-gradient(105deg, rgba(4, 12, 9, .95), rgba(4, 12, 9, .72)), url("/images/jezioro-hero.webp") center / cover;
}

.offline-card {
  position: relative;
  width: min(650px, 100%);
  padding: clamp(34px, 6vw, 66px);
  overflow: hidden;
  background: radial-gradient(circle at 100% 0, rgba(127, 143, 81, .2), transparent 38%), rgba(8, 23, 17, .96);
  border: 1px solid rgba(224, 199, 127, .32);
  box-shadow: 0 42px 130px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
}

.offline-card::after {
  content: "⌁";
  position: absolute;
  right: -40px;
  bottom: -105px;
  color: rgba(224, 199, 127, .035);
  font-family: var(--display);
  font-size: 290px;
}

.offline-card > img {
  width: 68px;
  height: 68px;
  margin-bottom: 31px;
}

.offline-card .eyebrow {
  margin-bottom: 19px;
}

.offline-pulse {
  position: absolute;
  top: clamp(34px, 6vw, 66px);
  right: clamp(34px, 6vw, 66px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: #d7b18f;
  background: rgba(130, 82, 58, .12);
  border: 1px solid rgba(210, 151, 111, .22);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
}

.offline-pulse i {
  width: 7px;
  height: 7px;
  background: #d2976f;
  border-radius: 50%;
}

.offline-card h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(63px, 10vw, 102px);
  font-weight: 500;
  line-height: .75;
  letter-spacing: -.045em;
}

.offline-card h1 em {
  color: var(--gold2);
  font-weight: 400;
}

.offline-card > p:not(.eyebrow) {
  max-width: 510px;
  margin: 34px 0 0;
  color: rgba(242, 238, 229, .58);
  font-size: 13px;
  line-height: 1.8;
}

.offline-card > div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.offline-retry {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 21px;
  color: #101a12;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.offline-card > div > a:last-child {
  padding-bottom: 5px;
  color: rgba(242, 238, 229, .52);
  border-bottom: 1px solid rgba(242, 238, 229, .2);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.offline-card > small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 32px;
  padding-top: 18px;
  color: rgba(242, 238, 229, .3);
  border-top: 1px solid rgba(242, 238, 229, .08);
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .field-app-status {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 16px);
    min-height: 70px;
    grid-template-columns: 10px minmax(0, 1fr) 38px;
    gap: 10px;
    padding: 9px 9px 9px 14px;
    border-radius: 17px;
  }

  .field-app-status small {
    font-size: 9px;
    white-space: normal;
  }

  .field-app-action {
    grid-column: 2 / 3;
    min-height: 38px;
    justify-self: start;
    padding-inline: 13px;
  }

  .field-app-close {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .offline-screen {
    align-items: end;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .offline-card {
    padding: 32px 22px;
  }

  .offline-card > img {
    width: 57px;
    height: 57px;
    margin-bottom: 25px;
  }

  .offline-pulse {
    top: 28px;
    right: 20px;
    font-size: 7px;
  }

  .offline-card h1 {
    font-size: clamp(59px, 20vw, 78px);
  }

  .offline-card > p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.7;
  }

  .offline-card > div {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .offline-retry,
  .offline-card > div > a:last-child {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-dock,
  .mobile-dock *,
  .back-to-top,
  .back-to-top *,
  .field-app-status,
  .field-app-status * {
    transition: none !important;
  }
}
