/* Arena Gór — companion web (portal) */

@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/Barlow-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/Barlow-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/Barlow-500-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/Barlow-500-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/Barlow-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/Barlow-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/BarlowCondensed-500-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/BarlowCondensed-500-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/BarlowCondensed-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/BarlowCondensed-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/BarlowCondensed-700-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/BarlowCondensed-700-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --bg: #e9eef0;
  --paper: #ffffff;
  --paper2: #f3f6f7;
  --ink: #162129;
  --muted: #5a6870;
  --line: #d3dbdf;
  --line2: #b9c4c9;
  --brand: #02D7AE;
  --on-brand: #061210;
  --brand-ink: #00876B;
  --danger: #c8322a;
  --ok: #2d7a4b;
  --warn: #a86a00;
  --wind: #4f8fbd;
  --stone: #8a6c4a;
  --forest: #2f7a3a;
  --light: #c39a14;
  --r-b: #8d979c;
  --r-r: #2f74c0;
  --r-e: #7a4fc7;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --surface: var(--paper);
  --surface-raised: var(--paper2);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-tertiary: var(--muted);
  --border: var(--line);
  --brand-on: var(--on-brand);
  --brand-strong: var(--brand-ink);
  --raised: var(--paper2);
  --text: var(--ink);
  --text2: var(--muted);
  --text3: var(--muted);
  --border2: var(--line2);
  --brand2: var(--brand-ink);
  --warn-bg: #fbf1dc;
  --warn-text: #6b4400;
  --r: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1316;
    --paper: #172126;
    --paper2: #1e2a30;
    --ink: #e6edf0;
    --muted: #94a4ab;
    --line: #2b383e;
    --line2: #3d4c53;
    --brand-ink: #02D7AE;
    --danger: #ec5446;
    --ok: #56b47c;
    --warn: #e0a63a;
    --wind: #7bb6e0;
    --stone: #c29e74;
    --forest: #5fb36b;
    --light: #e3bf45;
    --r-b: #a3adb2;
    --r-r: #5d9ce6;
    --r-e: #a585e6;
    --warn-bg: #211B10;
    --warn-text: #E9D4A0;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top .in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}

.logo svg { color: var(--brand-ink); }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--paper2);
  color: var(--ink);
}

.nav a[aria-current=page] {
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  font-weight: 600;
}

.nav a.cta {
  color: var(--on-brand);
  background: var(--brand);
  font-weight: 600;
}

.who {
  font-size: 12px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .top .in { flex-wrap: wrap; gap: 6px; padding: 10px 14px; }
  .nav { margin-left: 0; width: 100%; justify-content: flex-start; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .who { display: none; }
}

.foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  background: var(--paper);
}

.foot .in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 20px 4px;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.foot a { color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.ver {
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  opacity: .8;
  text-align: center;
  padding: 6px 0 10px;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
}

body.page-login {
  display: flex;
  flex-direction: column;
}

body.page-login main {
  display: block;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  flex: 1;
}

body.page-login .blk {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  min-width: 0;
}

body.page-login .loginbox {
  width: min(440px, 100%);
  margin: 20px auto 0;
  text-align: center;
  padding: 30px 26px;
}

body.page-login .mid {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

body.page-login .sec {
  color: var(--text2);
}

body.page-login .muted {
  color: var(--text3);
}

body.page-login .stack > * + * {
  margin-top: 12px;
}

body.page-login .row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

body.page-login .note {
  font-size: 13px;
  color: var(--text3);
  border-left: 2px solid var(--border2);
  padding: 2px 0 2px 12px;
  line-height: 1.55;
}

body.page-login .warn {
  background: var(--warn-bg);
  border: 1px solid #5A4A22;
  color: var(--warn-text);
  border-radius: 10px;
  padding: 11px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}

body.page-login .warn[hidden],
body.page-login .sso[hidden],
body.page-login form[hidden],
body.page-login #google-primary[hidden],
body.page-login #google-btn-host[hidden] {
  display: none;
}

body.page-login .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: var(--brand-on);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  text-decoration: none;
}

body.page-login .btn:hover {
  filter: brightness(1.06);
}

body.page-login .ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: none;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

body.page-login .ghost:hover {
  background: var(--raised);
}

body.page-login .sso {
  width: 100%;
  height: 46px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
}

body.page-login .sso.g {
  background: #131314;
  border: 1px solid #8E918F;
  color: #E3E3E3;
}

body.page-login .sso.a {
  background: #fff;
  border: 1px solid #fff;
  color: #000;
}

body.page-login .sso[disabled] {
  opacity: 0.5;
  cursor: progress;
}

body.page-login .steps {
  text-align: left;
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

body.page-login .steps li {
  counter-increment: s;
  display: flex;
  gap: 12px;
  padding: 7px 0;
  color: var(--text2);
}

body.page-login .steps li::before {
  content: counter(s);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-login .lead {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dashboard-tools {
  margin-top: 0;
}

.xp-panel {
  margin-bottom: 1rem;
}

.xp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.xp-panel-head strong {
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-primary);
  font-size: 1rem;
}

.xp-bar {
  height: 0.55rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: #b08968;
}

.xp-bar.tier-bronze .xp-bar-fill {
  background: #b08968;
}

.xp-bar.tier-silver .xp-bar-fill {
  background: #b9c2c8;
}

.xp-bar.tier-gold .xp-bar-fill {
  background: #e8c878;
}

.xp-bar.tier-master .xp-bar-fill {
  background: #e5d4ff;
}

.faction-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.faction-grid li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem 0.5rem;
  flex: 1 1 7.5rem;
  min-width: 7rem;
  white-space: nowrap;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.45rem 0.65rem;
}

.faction-mark {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-on);
  font-size: 0.95rem;
}

.faction-grid strong {
  font-size: 0.95rem;
}

.faction-grid .muted {
  font-size: 0.8rem;
}

.advancement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.advancement-list li {
  display: flex;
  gap: 0.5rem;
  margin: 0.35rem 0;
}

.dashboard-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.dashboard-tile {
  display: block;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
}

a.dashboard-tile {
  color: var(--brand);
  font-weight: 700;
}

.dashboard-tile-status {
  font-weight: 700;
}

.dashboard-tile strong {
  display: block;
  font-size: 1.05rem;
}

.dashboard-tile .muted {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.8rem;
}

.trip-status {
  display: inline-block;
  margin: 0 0.25rem 0.15rem 0;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.trip-status-active {
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--brand);
}

.trip-status-finished {
  background: var(--surface-raised);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.trip-status-entered {
  background: var(--brand);
  color: var(--brand-on);
}

.login-error {
  margin: 0 0 1rem;
  color: #f0a0a0;
}

#google-primary {
  position: relative;
}

#google-primary .sso {
  pointer-events: none;
}

#google-btn-host {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.01;
  transform: scaleY(1.15);
}

.admin-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.admin-table th[data-admin-sort] {
  user-select: none;
}

.admin-filters th {
  padding-top: 0.2rem;
  text-transform: none;
  letter-spacing: 0;
}

.admin-filters input,
.admin-filters select {
  width: 100%;
  min-width: 4rem;
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--bg);
  color: var(--text-primary);
  font: inherit;
}

.admin-charged {
  margin-left: 0.35rem;
  color: var(--brand);
  font-weight: 800;
}

.admin-track-entry {
  background: rgba(2, 215, 174, 0.12);
}

.admin-track-entry td {
  font-weight: 700;
}

.admin-battery {
  margin-bottom: 0;
}

.admin-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.admin-detail-header h1 {
  margin: 0;
}

.admin-detail-header a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

/* Mój rok — makieta web v2 (pRok) */
body.page-web {
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.page-web main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

body.page-web h1,
body.page-web h2,
body.page-web h3 {
  margin: 0;
  font-weight: 700;
}

body.page-web .num { font-variant-numeric: tabular-nums; }
body.page-web .muted { color: var(--text3); }
body.page-web .sec { color: var(--text2); }
body.page-web .ok { color: var(--ok); }
body.page-web .mid { font-size: 24px; font-weight: 700; line-height: 1.15; }
body.page-web .stack > * + * { margin-top: 12px; }
body.page-web .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body.page-web .between { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

body.page-web .blk {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  min-width: 0;
}

body.page-web .blk > h2 {
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text2);
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

body.page-web .blk > h2 .r {
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text3);
  font-size: 13px;
}

body.page-web .grid { display: grid; gap: 16px; }
body.page-web .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.page-web .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  body.page-web .g2,
  body.page-web .g3 { grid-template-columns: minmax(0, 1fr); }
}

body.page-web .note {
  font-size: 13px;
  color: var(--text3);
  border-left: 2px solid var(--border2);
  padding: 2px 0 2px 12px;
  line-height: 1.55;
}

body.page-web .bar { height: 8px; border-radius: 99px; background: var(--raised); overflow: hidden; }
body.page-web .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); border-radius: 99px; }

body.page-web .ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: none;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

body.page-web .ghost:hover { background: var(--raised); }

body.page-web .chips { display: flex; gap: 6px; flex-wrap: wrap; }

body.page-web .chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

body.page-web .chip[aria-pressed=true] { color: var(--paper); border-color: var(--ink); background: var(--ink); }

body.page-web .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
body.page-web .kv dt { color: var(--text3); }
body.page-web .kv dd { margin: 0; }

body.page-web .suit-WIND { color: var(--wind); }
body.page-web .suit-STONE { color: var(--stone); }
body.page-web .suit-FOREST { color: var(--forest); }
body.page-web .suit-LIGHT { color: var(--light); }

body.page-web .deckrow + .deckrow { margin-top: 22px; }
body.page-web .deckhead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
body.page-web .deckhead .s { font-size: 20px; line-height: 1; }
body.page-web .deckhead .n { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
body.page-web .deckhead .c { font-size: 13px; color: var(--text3); }
body.page-web .deck { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 8px; }

@media (max-width: 1080px) {
  body.page-web .deck { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body.page-web .deck { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
}

body.page-web .pc {
  position: relative;
  aspect-ratio: 63 / 88;
  border-radius: 7px;
  padding: 7px 7px 6px;
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 0;
  cursor: pointer;
  min-width: 0;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  font-weight: 400;
}

body.page-web .pc:hover { transform: translateY(-3px); text-decoration: none; }
body.page-web .pc.on { background: #f7f3ea; color: #1f3448; box-shadow: inset 0 0 0 2px var(--frame), 0 6px 16px rgba(0, 0, 0, .35); }
body.page-web .pc.off { background: var(--paper2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
body.page-web .pc.off .rk,
body.page-web .pc.off .su { opacity: .8; }
body.page-web .pc .rk { font-size: 15px; font-weight: 900; line-height: 1; }
body.page-web .pc .su { font-size: 13px; line-height: 1; }
body.page-web .pc .mid-s { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; opacity: .9; }
body.page-web .pc.off .mid-s { opacity: .25; }
body.page-web .pc .nm { font-size: 10.5px; font-weight: 700; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body.page-web .pc .ht { font-size: 9.5px; opacity: .75; }
body.page-web .pc .badge { position: absolute; top: 5px; right: 5px; font-size: 8.5px; font-weight: 900; letter-spacing: .04em; padding: 1px 4px; border-radius: 4px; background: rgba(44, 36, 22, .1); }
body.page-web .pc .times { position: absolute; bottom: 5px; right: 6px; font-size: 9.5px; font-weight: 900; }
body.page-web .pc .rar { position: absolute; top: 22px; right: 6px; font-size: 10px; }
body.page-web .pc.new::after { content: ""; position: absolute; left: 6px; bottom: -5px; right: 6px; height: 3px; border-radius: 2px; background: var(--brand); }
body.page-web .ink-WIND { --ink-s: #2B5C86; }
body.page-web .ink-STONE { --ink-s: #7A4A2A; }
body.page-web .ink-FOREST { --ink-s: #1E6A34; }
body.page-web .ink-LIGHT { --ink-s: #7D5C00; }
body.page-web .pc.on .rk,
body.page-web .pc.on .su,
body.page-web .pc.on .mid-s { color: var(--ink-s); }

@media (max-width: 620px) {
  body.page-web .pc { padding: 5px 5px 4px; border-radius: 6px; }
  body.page-web .pc .rk { font-size: 13px; }
  body.page-web .pc .nm { font-size: 9px; }
  body.page-web .pc .ht { font-size: 8px; }
  body.page-web .pc .mid-s { font-size: 18px; }
  body.page-web .pc .badge { font-size: 7px; top: 3px; right: 3px; }
  body.page-web .pc .rar { top: 16px; right: 4px; }
}

body.page-web .tl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
body.page-web .tl .m { min-width: 0; border-left: 1px solid var(--border); padding: 0 0 0 6px; min-height: 92px; }
body.page-web .tl .m h3 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); font-weight: 700; margin-bottom: 8px; }
body.page-web .tl .m.now h3 { color: var(--brand-ink); }

body.page-web .tc {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: 8px;
  padding: 6px 7px;
  cursor: pointer;
  margin-bottom: 6px;
  box-shadow: inset 3px 0 0 var(--fc);
  color: var(--text-primary);
  font-weight: 400;
  text-decoration: none;
}

body.page-web .tc:hover { border-color: var(--line2); text-decoration: none; }
body.page-web .tc .t1 { font-size: 12px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.page-web .tc .t2 { font-size: 11px; color: var(--text3); line-height: 1.3; }
body.page-web .tc.ab { background: none; box-shadow: none; border: 1px dashed var(--border2); }

@media (max-width: 900px) {
  body.page-web .tl { grid-template-columns: minmax(0, 1fr); }
  body.page-web .tl .m { min-height: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; border-left: 0; border-top: 1px solid var(--border); padding: 8px 0 2px; }
  body.page-web .tl .m.empty { display: none; }
  body.page-web .tl .m h3 { margin: 4px 0 0; }
}

body.page-web .lst { list-style: none; margin: 0; padding: 0; }
body.page-web .lst li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
body.page-web .lst li:last-child { border-bottom: 0; }
body.page-web .lst .grow { flex: 1; min-width: 0; }

body.page-web .medal { display: flex; gap: 16px; align-items: center; }
body.page-web .achg { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 4px; }
body.page-web .achg.one { grid-template-columns: 1fr; }
body.page-web .ach { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
body.page-web .ach.on { border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
body.page-web .ach .ai { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--raised); color: var(--text3); border: 1px solid var(--border); }
body.page-web .ach.on .ai { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 55%, transparent); }
body.page-web .ach b { display: block; font-size: 13px; line-height: 1.2; }
body.page-web .ach small { display: block; font-size: 11px; color: var(--text3); line-height: 1.25; }
body.page-web .ach .st { color: var(--text-primary); margin-top: 2px; }
body.page-web .ach > div { min-width: 0; }
body.page-web .allach > summary { list-style: none; cursor: pointer; margin-top: 12px; }
body.page-web .allach > summary::-webkit-details-marker { display: none; }
body.page-web .allach > summary.ghost { display: inline-block; padding: 8px 14px; border: 1px solid var(--border2); border-radius: 10px; font-size: 14px; font-weight: 700; }
body.page-web .allach .when-open { display: none; }
body.page-web .allach[open] .when-open { display: inline; }
body.page-web .allach[open] .when-closed { display: none; }

@media (prefers-reduced-motion: reduce) {
  body.page-web .pc { transition: none; }
}

@media (max-width: 620px) {
  body.page-web .blk { padding: 16px; }
}

/* Talia publiczna i zasady — makieta web v2 (pTalia, pZasady) */
body.page-web main a { color: var(--brand-ink); text-decoration: none; font-weight: 500; }
body.page-web main a:hover { text-decoration: underline; }
body.page-web main a.btn { color: var(--on-brand); font-weight: 600; }

body.page-web .pc.cat { background: #f7f3ea; color: #1f3448; box-shadow: inset 0 0 0 2px var(--frame); }
body.page-web .pc.cat .rk,
body.page-web .pc.cat .su,
body.page-web .pc.cat .mid-s { color: var(--ink-s); }

body.page-web .deckrow h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; display: flex; justify-content: space-between; }
body.page-web .deckrow h3 span { color: var(--text3); font-weight: 500; }
body.page-web .deckrow h3 span.face { font-weight: 600; }
body.page-web .dgrid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 8px; }
body.page-web .cell { position: relative; display: block; min-width: 0; text-align: center; font-size: 11px; line-height: 1.25; color: var(--text3); font-weight: 400; }
body.page-web .cell:hover { text-decoration: none; }
body.page-web .cell .card { position: relative; width: 100%; aspect-ratio: 5 / 7; max-width: 100%; border-radius: 7% / 5%; overflow: hidden; transition: transform .15s ease; }
body.page-web .cell:hover .card { transform: translateY(-3px); }
body.page-web .cell b { display: block; margin-top: 4px; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.page-web .cell small { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.page-web .ph-card { background: var(--fc); padding: 4%; display: flex; }
body.page-web .ph-card .in { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f7f3ea; border-radius: 5%; color: #1f3448; font-family: Georgia, serif; }
body.page-web .ph-card .rk { position: absolute; top: 4%; left: 7%; font-weight: 700; font-size: 14px; }
body.page-web .ph-card .sg { font-size: 26px; opacity: .25; }
body.page-web .dim { filter: grayscale(1); opacity: .4; }
body.page-web .dimf { filter: grayscale(1); }
body.page-web .card img { display: block; width: 100%; height: 100%; }
body.page-web .kartalay .card { position: relative; width: min(280px, 100%); aspect-ratio: 5 / 7; border-radius: 7% / 5%; overflow: hidden; }
body.page-web .zoomable { display: block; position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 7% / 5%; max-width: 100%; color: inherit; font: inherit; }
body.page-web .kartalay .zoomable { margin: 0; }
body.page-web .zoomable .zhint { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 72%, transparent); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; pointer-events: none; }
body.page-web .zoomable:hover .zhint, body.page-web .zoomable:focus-visible .zhint { opacity: 1; }
@media (hover: none) { body.page-web .zoomable .zhint { opacity: .85; } }
.cardzoom-bg { position: fixed; inset: 0; background: rgba(12,16,22,.86); z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.cardzoom { width: min(calc(100vw - 32px), calc((100vh - 32px) * 5 / 7)); aspect-ratio: 5 / 7; cursor: default; }
.cardzoom .card { position: relative; width: 100% !important; height: 100%; border-radius: 7% / 5%; overflow: hidden; }
.cardzoom .card.dimf { filter: grayscale(1); }
.cardzoom .card img { display: block; width: 100%; height: 100%; }
.cardzoom-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cardzoom-x:hover { background: rgba(255,255,255,.28); }
body.page-web .cell::after { content: attr(data-tip); display: none; position: absolute; z-index: 5; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; padding: 6px 10px; border: 1px solid var(--border2); border-radius: 8px; background: var(--raised); color: var(--text); font-size: 12px; white-space: nowrap; pointer-events: none; }
body.page-web .cell:hover::after,
body.page-web .cell:focus-visible::after { display: block; }

@media (max-width: 900px) {
  body.page-web .dgrid { display: flex; overflow-x: auto; padding-bottom: 4px; }
  body.page-web .dgrid .cell { flex: none; width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-web .cell .card { transition: none; }
}

body.page-web .hero { text-align: center; max-width: 760px; margin: 6px auto 30px; }
body.page-web .hero h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; letter-spacing: -.015em; line-height: 1.1; }
body.page-web .hero p { color: var(--text2); font-size: 17px; margin: 12px 0 0; }

body.page-web .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 960px; margin: 34px auto 22px; }
body.page-web .three > div { border-top: 2px solid var(--border2); padding-top: 10px; color: var(--text2); font-size: 14px; }
body.page-web .three b { display: block; color: var(--text); font-size: 15px; margin-bottom: 3px; }

@media (max-width: 700px) {
  body.page-web .three { grid-template-columns: minmax(0, 1fr); }
}

body.page-web .h2 {
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text2);
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

body.page-web .rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
body.page-web .rules .blk h3 { font-size: 17px; margin-bottom: 6px; }
body.page-web .rules .blk p { margin: 0; color: var(--text2); font-size: 14px; }
body.page-web .formula {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--paper2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

body.page-web ol.pr { margin: 0; padding-left: 22px; color: var(--text2); }
body.page-web ol.pr li { margin: 8px 0; }
body.page-web ol.pr b { color: var(--text); }

body.page-web .tw { overflow-x: auto; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
body.page-web table { border-collapse: collapse; width: 100%; font-size: 14px; }
body.page-web th {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
body.page-web td { padding: 9px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: top; }
body.page-web td.n,
body.page-web th.n { text-align: right; font-variant-numeric: tabular-nums; }
body.page-web tr.hl td { background: color-mix(in srgb, var(--brand) 12%, transparent); }
body.page-web tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--brand-ink); }

/* Rewers karty — makieta web v2 (pKarta) */
body.page-web .h2 .r { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text3); font-size: 13px; }
body.page-web .back { display: inline-flex; gap: 6px; color: var(--text2); font-weight: 500; margin-bottom: 14px; }
body.page-web .pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; border: 1px solid var(--line); }
body.page-web .p-w0 { border-color: var(--brand-ink); color: var(--brand-ink); }
body.page-web .p-role { background: var(--raised); color: var(--text); border: 1px solid var(--border2); }
body.page-web dialog.modal { background: var(--surface); color: var(--text); border: 1px solid var(--border2); border-radius: 16px; padding: 22px; max-width: 460px; width: calc(100% - 32px); }
body.page-web dialog.modal::backdrop { background: rgba(0, 0, 0, .6); }
body.page-web .p-none { background: var(--raised); color: var(--text2); border: 1px solid var(--border); }
body.page-web .ghost[disabled] { color: var(--text3); cursor: not-allowed; border-style: dashed; }
body.page-web .bigcard { width: min(280px, 100%); aspect-ratio: 63 / 88; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; background: #f7f3ea; color: #1f3448; box-shadow: inset 0 0 0 3px var(--frame), 0 18px 40px rgba(0, 0, 0, .45); position: relative; }
body.page-web .bigcard.off { background: var(--paper2); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }
body.page-web .bigcard .cn { display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 900; font-size: 26px; width: max-content; }
body.page-web .bigcard .cn span { font-size: 20px; }
body.page-web .bigcard .ill { flex: 1; display: flex; align-items: center; justify-content: center; }
body.page-web .bigcard .cname { font-size: 22px; font-weight: 900; text-align: center; line-height: 1.1; }
body.page-web .bigcard .ch { text-align: center; font-size: 14px; opacity: .75; }
body.page-web .bigcard .ctag { text-align: center; font-size: 11px; font-weight: 900; letter-spacing: .12em; margin-top: 8px; }
body.page-web .bigcard.on .cn,
body.page-web .bigcard.on .ill { color: var(--ink-s); }
body.page-web .kartalay { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) {
  body.page-web .kartalay { grid-template-columns: minmax(0, 1fr); }
  body.page-web .kartalay .bigcard,
  body.page-web .kartalay .card { margin: 0 auto; width: 220px; }
}
body.page-web .visits { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
body.page-web .visit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; }
body.page-web .visit.hl { border-color: var(--brand-ink); box-shadow: 0 0 0 1px var(--brand-ink); }
body.page-web .visit.miss { border-style: dashed; }
body.page-web .xpl { font-size: 13px; color: var(--text2); margin-top: 6px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
body.page-web .xpl span:nth-child(2n) { text-align: right; font-variant-numeric: tabular-nums; }
body.page-web .xpl .sum { border-top: 1px solid var(--border); padding-top: 4px; margin-top: 2px; color: var(--text); font-weight: 700; }
body.page-web .egz { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-width: 280px; }
body.page-web .egz .chip,
body.page-web .visit .chip { display: inline-flex; align-items: center; gap: 6px; color: var(--text); cursor: default; }
body.page-web .egz .chip { border-radius: 12px; padding: 6px 10px; }
body.page-web .chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); }
body.page-web .pill svg { vertical-align: -2px; margin-right: 4px; }
body.page-web .back svg { margin-left: -4px; }

/* Pulpit terenu — makieta web v2 (pTeren) */
body.page-web .q { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--text2); font-weight: 700; }
body.page-web .q svg { color: var(--text3); }
body.page-web .warn-t { color: var(--warn); }
body.page-web .warn > svg { color: var(--warn); }
body.page-web a.btn, body.page-web a.ghost { display: inline-block; text-decoration: none; }
body.page-web .big { font-size: 44px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
body.page-web .warn { background: var(--paper); border: 1px solid var(--warn); color: var(--ink); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
body.page-web .p-w1 { border-color: var(--wind); color: var(--wind); }
body.page-web .p-w2 { border-color: var(--warn); color: var(--warn); }
body.page-web .lead { font-weight: 700; color: var(--text); }
body.page-web tr.click { cursor: pointer; }
body.page-web tr.click:hover td { background: var(--raised); }
body.page-web tr.click a.rowlink { color: inherit; font-weight: inherit; display: block; }
body.page-web .lst a.rowbtn { display: flex; gap: 10px; align-items: center; width: 100%; color: inherit; font-weight: inherit; border-radius: 6px; }
body.page-web .lst a.rowbtn:hover .nm1 { text-decoration: underline; }
body.page-web .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); display: inline-block; flex-shrink: 0; }
body.page-web .meter { position: relative; height: 8px; border-radius: 99px; background: var(--raised); width: 110px; flex-shrink: 0; }
body.page-web .meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
body.page-web .meter b { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--text3); }
@media (max-width: 620px) {
  body.page-web .big { font-size: 36px; }
}

/* Szczyt w terenie — makieta web v2 (pSzczyt) */
body.page-web .tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; margin: 16px 0; }
body.page-web .tabs a { background: var(--surface); padding: 8px 14px; color: var(--text); font-weight: 500; display: inline-flex; gap: 7px; align-items: center; font-size: 14px; }
body.page-web .tabs a[aria-selected=true] { background: var(--text); color: var(--surface); }
body.page-web .sum3 { display: flex; gap: 28px; flex-wrap: wrap; }
body.page-web .sum3 > div .l { font-size: 12px; color: var(--text3); }
body.page-web .sum3 > div .v { font-size: 26px; font-weight: 700; }
body.page-web .layers { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 760px) {
  body.page-web .layers { grid-template-columns: minmax(0, 1fr); }
}
body.page-web .leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text2); }
body.page-web .leg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
body.page-web .calv { margin: 0; }
body.page-web .calv h3 { font-size: 14px; margin: 0 0 8px; }
body.page-web .calv svg text { fill: var(--text2); }
body.page-web .calv svg .ax { stroke: var(--text); }
body.page-web .calv .cp { cursor: default; }
body.page-web .calv .cp .cf { fill: var(--brand-ink); fill-opacity: .14; stroke: var(--brand-ink); stroke-opacity: .45; }
body.page-web .calv .cp .cd { fill: var(--brand-ink); stroke: var(--paper); stroke-width: 1.5; }
body.page-web .calv .cp:hover .cf, body.page-web .calv .cp.hl .cf { fill-opacity: .32; stroke-opacity: 1; stroke-width: 2; }
body.page-web .calv .cp:hover .cd, body.page-web .calv .cp.hl .cd { fill: var(--r-e); }
body.page-web tr[data-pt].hl td { background: var(--paper2); }
body.page-web .tip { position: fixed; z-index: 50; pointer-events: none; background: var(--paper); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; padding: 6px 10px; border-radius: 8px; max-width: 240px; }
body.page-web .tip[hidden] { display: none; }
