/* Motyw "Dokument": teczka sztabowa. Papier, maszynopis, paragrafy, pieczątki, kreskowane wykresy.
   Działa tylko gdy <html data-skin="document">. Wszystkie fonty mają polskie znaki (latin-ext). */
@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Special+Elite&family=Oswald:wght@500;600;700&family=Saira+Stencil+One&display=swap");

html[data-skin="document"] {
  --bg: #cfc5a8;            /* biurko / tektura teczki */
  --panel: #f6f0de;         /* papier */
  --panel2: #ece3c9;
  --line: #a89a77;
  --fg: #1e1b15;            /* tusz */
  --muted: #645b48;
  --accent: #a51f19;        /* czerwony tusz pieczątki */
  --accent-soft: rgba(165, 31, 25, .08);
  --gold: #8a6a12;
  --good: #2c6526;
  --warn: #8f6200;
  --bad: #a51f19;
  --blue: #1d3768;          /* niebieski długopis */
  --display: "Special Elite", "Courier New", monospace;
  --body: "Courier Prime", "Courier New", monospace;
  --mono: "Courier Prime", "Courier New", monospace;
  --label: "Oswald", "Arial Narrow", sans-serif;
  --stamp: "Saira Stencil One", "Arial Black", sans-serif;
  color-scheme: light;
}

html[data-skin="document"] body {
  font-family: var(--body); font-size: 15px; color: var(--fg);
  background:
    repeating-linear-gradient(0deg, rgba(90, 70, 30, .035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 20% 0%, #d9d0b4, var(--bg) 70%);
  background-attachment: fixed;
}
html[data-skin="document"] ::selection { background: rgba(165, 31, 25, .25); }

/* --- nagłówek: pasek klauzuli + papier firmowy --- */
html[data-skin="document"] .top { background: var(--panel); border-bottom: 3px double var(--fg); backdrop-filter: none; }
html[data-skin="document"] .top::before {
  content: "ZASTRZEŻONE · TYLKO DO UŻYTKU KLANU POLSKA MOC · EGZ. NR 1";
  display: block; text-align: center; background: var(--accent); color: #fbf3e4;
  font: 600 11px/1 var(--label); letter-spacing: .3em; padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-skin="document"] .top .wrap { row-gap: 0; padding-top: 8px; }
html[data-skin="document"] .brand { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .06em; gap: 12px; }
html[data-skin="document"] .brand::after {
  content: "DOWÓDZTWO SERWERÓW · WARDOGS"; font: 500 11px/1 var(--label); letter-spacing: .2em; color: var(--muted); align-self: flex-end; margin-bottom: 6px;
}
html[data-skin="document"] .flag { border-radius: 0; width: 26px; height: 17px; background: linear-gradient(#fbf7ee 50%, #c8102e 50%); outline: 1px solid var(--fg); }
html[data-skin="document"] .conn { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
html[data-skin="document"] .conn::before { content: "ŁĄCZNOŚĆ:"; font: 600 11px var(--label); letter-spacing: .12em; }
html[data-skin="document"] .dot { border-radius: 50%; width: 9px; height: 9px; border: 1px solid var(--fg); }
html[data-skin="document"] .dot.ok { background: var(--good); box-shadow: none; }

/* zakładki jak przekładki w segregatorze, numerowane jak załączniki */
html[data-skin="document"] .tabs { order: 10; flex: 1 0 100%; counter-reset: zal; gap: 4px; margin: 10px 0 -3px; overflow-x: auto; overflow-y: hidden; align-items: flex-end; }
html[data-skin="document"] .tabs a {
  counter-increment: zal; border-radius: 6px 6px 0 0; padding: 7px 14px 6px; color: var(--muted);
  background: var(--panel2); border: 1px solid var(--line); border-bottom: 3px double var(--fg);
  font: 600 13px/1.2 var(--label); text-transform: uppercase; letter-spacing: .08em;
}
html[data-skin="document"] .tabs a::before { content: "ZAŁ. " counter(zal, upper-roman) " · "; font-weight: 500; color: var(--line); }
html[data-skin="document"] .tabs a:hover { color: var(--fg); background: #e4d9bc; }
html[data-skin="document"] .tabs a.on { background: var(--panel); color: var(--fg); border-color: var(--fg); border-bottom: 3px solid var(--panel); padding-bottom: 9px; }
html[data-skin="document"] .tabs a.on::before { color: var(--accent); }

/* --- strona dokumentu --- */
html[data-skin="document"] main.wrap {
  background: var(--panel); margin-block: 26px 40px; padding: 40px 48px 56px; border: 1px solid var(--line);
  box-shadow: 4px 4px 0 #e8dfc4, 5px 5px 0 var(--line), 0 18px 40px rgba(40, 30, 10, .25);
  position: relative;
}
html[data-skin="document"] main.wrap::after {
  content: "ZASTRZEŻONE"; display: block; text-align: center; margin-top: 48px; padding-top: 10px; border-top: 1px solid var(--line);
  font: 600 11px/1 var(--label); letter-spacing: .4em; color: var(--accent);
}
@media (max-width: 760px) { html[data-skin="document"] main.wrap { margin-block: 12px 24px; padding: 24px 16px 32px; box-shadow: 0 8px 20px rgba(40,30,10,.2); } }

/* --- nagłówki: tytuł pisma i paragrafy --- */
html[data-skin="document"] h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 44px); letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 3px double var(--fg); padding-bottom: 10px; margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
}
html[data-skin="document"] .view { counter-reset: par; }
html[data-skin="document"] h2 {
  counter-increment: par; font: 700 15px/1.3 var(--body); letter-spacing: .06em; color: var(--fg);
  margin: 34px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--fg); gap: 10px;
}
html[data-skin="document"] h2::before { content: "§ " counter(par) "."; font-family: var(--display); font-weight: 400; color: var(--accent); }


/* --- okna jak arkusze formularza --- */
html[data-skin="document"] .panel,
html[data-skin="document"] .tbl-wrap {
  border-radius: 0; background: #fbf7ea; border: 1px solid var(--fg); box-shadow: 3px 3px 0 rgba(30, 27, 21, .12);
}
html[data-skin="document"] .panel { border-top: 4px double var(--fg); }
html[data-skin="document"] .srv-head h3 { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .04em; }

/* --- pieczątki zamiast znaczników --- */
html[data-skin="document"] .tag {
  border-radius: 3px; border: 2px solid currentColor; background: transparent; color: var(--muted);
  font: 400 11px/1 var(--stamp); letter-spacing: .1em; padding: 4px 8px 3px; transform: rotate(-2deg);
  opacity: .88; mix-blend-mode: multiply;
  -webkit-mask: radial-gradient(circle at 20% 30%, #000 55%, rgba(0,0,0,.6) 56%) 0 0 / 7px 7px, linear-gradient(#000, #000);
          mask: radial-gradient(circle at 20% 30%, #000 55%, rgba(0,0,0,.6) 56%) 0 0 / 7px 7px, linear-gradient(#000, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
html[data-skin="document"] .tag.ok { color: var(--good); }
html[data-skin="document"] .tag.warn { color: var(--warn); transform: rotate(1.5deg); }
html[data-skin="document"] .tag.bad { color: var(--bad); }
html[data-skin="document"] .tag.red { color: #fbf3e4; background: var(--accent); border-color: var(--accent); }

html[data-skin="document"] .alert {
  border-radius: 0; background: #fff8e3; border: 1px dashed var(--accent); font-family: var(--body); font-size: 14px;
}
html[data-skin="document"] .alert::before { content: "PILNE: "; font: 700 12px var(--label); letter-spacing: .14em; color: var(--accent); }
html[data-skin="document"] .alert.info { border-color: var(--fg); }
html[data-skin="document"] .empty { font-style: italic; color: var(--muted); }

/* --- rubryki formularza --- */
html[data-skin="document"] .stats,
html[data-skin="document"] .me-grid,
html[data-skin="document"] .dlg-grid { border-radius: 0; border: 1px solid var(--fg); background: var(--fg); gap: 1px; }
html[data-skin="document"] .stat,
html[data-skin="document"] .me-grid div,
html[data-skin="document"] .dlg-grid div { background: #fbf7ea; }
html[data-skin="document"] .stat .v,
html[data-skin="document"] .big,
html[data-skin="document"] .me-grid b,
html[data-skin="document"] .dlg-grid b { font-family: var(--body); font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
html[data-skin="document"] .stat .v { font-size: 34px; }
html[data-skin="document"] .big { font-size: 46px; }
html[data-skin="document"] .lbl,
html[data-skin="document"] .stat .lbl { font: 500 11px/1.3 var(--label); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
html[data-skin="document"] .kvs { font-family: var(--body); font-size: 13px; }
html[data-skin="document"] .kvs b { color: var(--fg); text-decoration: underline dotted var(--line); text-underline-offset: 3px; }

/* paski: ręczne kreskowanie ołówkiem */
html[data-skin="document"] .bar,
html[data-skin="document"] .share { border-radius: 0; height: 12px; background: transparent; border: 1px solid var(--fg); }
html[data-skin="document"] .bar i,
html[data-skin="document"] .share i { border-radius: 0; background: repeating-linear-gradient(-45deg, var(--fg) 0 1.5px, transparent 1.5px 4px); }
html[data-skin="document"] .fac .bar i { background: repeating-linear-gradient(-45deg, var(--c) 0 2px, transparent 2px 4px); }
html[data-skin="document"] .fac { font: 600 13px var(--label); text-transform: uppercase; letter-spacing: .08em; }
html[data-skin="document"] .fdot { border-radius: 0; border: 1px solid var(--fg); }

/* --- tabele jak rejestr --- */
html[data-skin="document"] table { font-family: var(--body); font-size: 13.5px; }
html[data-skin="document"] th {
  background: #efe7cf; color: var(--fg); font: 600 11.5px/1.2 var(--label); letter-spacing: .12em; border-bottom: 2px solid var(--fg);
}
html[data-skin="document"] td { border-bottom: 1px dotted var(--line); }
html[data-skin="document"] td.pc, html[data-skin="document"] th.pc { background: #fbf7ea; box-shadow: 1px 0 0 var(--line); }
html[data-skin="document"] th.pc { background: #efe7cf; }
html[data-skin="document"] tr:hover td, html[data-skin="document"] tr:hover td.pc { background: #f1e8cc; }
html[data-skin="document"] tr.now td { background: rgba(165, 31, 25, .08); }
html[data-skin="document"] .pname { color: var(--blue); font-weight: 700; }
html[data-skin="document"] .mono { font-family: var(--body); }

/* --- sterowanie: pola formularza i przyciski z maszyny --- */
html[data-skin="document"] .btn,
html[data-skin="document"] .seg button,
html[data-skin="document"] .steam-btn,
html[data-skin="document"] .skin-sel { border-radius: 0; font: 600 12px/1 var(--label); text-transform: uppercase; letter-spacing: .1em; }
html[data-skin="document"] .btn { background: #fbf7ea; border: 1px solid var(--fg); box-shadow: 2px 2px 0 var(--fg); padding: 8px 13px; }
html[data-skin="document"] .btn:hover:not(:disabled) { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--fg); }
html[data-skin="document"] .seg { border-radius: 0; background: #fbf7ea; border: 1px solid var(--fg); padding: 0; }
html[data-skin="document"] .seg button { padding: 9px 14px; color: var(--muted); }
html[data-skin="document"] .seg button[aria-pressed="true"] { background: var(--fg); color: var(--panel); }
html[data-skin="document"] .field { border-radius: 0; background: transparent; border: 0; border-bottom: 1px solid var(--fg); font-family: var(--body); padding-inline: 2px; }
html[data-skin="document"] .field:focus { outline: none; border-bottom: 2px solid var(--blue); }
html[data-skin="document"] .steam-btn { background: #1b2838; border-color: #1b2838; padding: 8px 12px; }

/* --- karty liderów, rekordy, możliwości --- */
html[data-skin="document"] .lead h3,
html[data-skin="document"] .lead p,
html[data-skin="document"] .lead ol { font-family: var(--body); }
html[data-skin="document"] .lead li:hover { background: #f1e8cc; }
html[data-skin="document"] .medal { border-radius: 50%; border: 1px solid var(--fg); background: transparent; color: var(--fg); font-family: var(--body); }
html[data-skin="document"] .m1 { background: #e8c766; } html[data-skin="document"] .m2 { background: #d4d0c6; } html[data-skin="document"] .m3 { background: #d6a27a; }

/* --- kill feed jak dziennik meldunków --- */
html[data-skin="document"] .kf-row { font-family: var(--body); border-bottom: 1px dotted var(--line); }
html[data-skin="document"] .kf-k { color: var(--fg); font-weight: 700; }
html[data-skin="document"] .kf-v { color: var(--muted); }
html[data-skin="document"] .hs { color: var(--accent); border: 1.5px solid var(--accent); padding: 0 4px; font: 400 10px/1.4 var(--stamp); transform: rotate(-3deg); display: inline-block; }
html[data-skin="document"] .earn-row { font-family: var(--body); border-bottom: 1px dotted var(--line); }
html[data-skin="document"] .earn-row:hover { background: #f1e8cc; }
html[data-skin="document"] .up { color: var(--good); } html[data-skin="document"] .down { color: var(--bad); }

/* --- wykresy --- */
html[data-skin="document"] .lc-title { font: 600 11.5px var(--label); color: var(--fg); letter-spacing: .14em; }
html[data-skin="document"] .lc-legend { font-family: var(--body); }
html[data-skin="document"] .lc-tip { border-radius: 0; background: #fffaf0; border: 1px solid var(--fg); box-shadow: 3px 3px 0 rgba(30,27,21,.15); font-family: var(--body); }
html[data-skin="document"] .chart svg text,
html[data-skin="document"] .lc svg text { font-family: "Courier Prime", monospace; }

/* --- profil i okno gracza --- */
html[data-skin="document"] .me-head img,
html[data-skin="document"] #who img { border-radius: 0; filter: grayscale(.6) sepia(.3); outline: 1px solid var(--fg); outline-offset: 2px; }
html[data-skin="document"] dialog { border-radius: 0; background: var(--panel); border: 1px solid var(--fg); border-top: 5px double var(--fg); box-shadow: 6px 6px 0 rgba(30,27,21,.2); }
html[data-skin="document"] .dlg-cols h4 { font: 600 11.5px var(--label); color: var(--accent); letter-spacing: .14em; }
html[data-skin="document"] .cta ul { color: var(--fg); }

/* maszynopis jest szeroki: więcej miejsca na rekordy, mniejszy font w listach */
html[data-skin="document"] .kf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
html[data-skin="document"] .lead ol { font-size: 13px; }
html[data-skin="document"] .lead li .num { font-size: 12px; }
html[data-skin="document"] .lead { padding: 14px; }

/* telefon: zwarty nagłówek */
@media (max-width: 600px) {
  html[data-skin="document"] .brand { font-size: 21px; }
  html[data-skin="document"] .brand::after, html[data-skin="document"] .conn::before, html[data-skin="document"] #cText { display: none; }
  html[data-skin="document"] .top::before { letter-spacing: .14em; font-size: 10px; }
  html[data-skin="document"] .top .wrap { gap: 10px; }
  html[data-skin="document"] .tabs a { padding: 6px 10px 5px; font-size: 12px; }
  html[data-skin="document"] .steam-btn, html[data-skin="document"] .skin-sel { padding: 6px 8px; font-size: 10.5px; }
}

/* --- kurs sztabki: jak notowanie w biuletynie --- */
html[data-skin="document"] .gold-strip { border-radius: 0; background: #fffaf0; border: 1px solid var(--fg); border-left: 6px double var(--fg); box-shadow: 3px 3px 0 rgba(30, 27, 21, .12); }
html[data-skin="document"] .gold-name { font: 400 13px/1 var(--stamp); color: var(--gold); border: 2px solid currentColor; padding: 4px 8px 3px; transform: rotate(-2deg); letter-spacing: .12em; }
html[data-skin="document"] .gold-name small { font-family: var(--label); color: var(--gold); }
html[data-skin="document"] .gold-name::before { content: "KURS · "; }
html[data-skin="document"] .gold-price { font-family: var(--body); font-weight: 700; font-size: 28px; }
html[data-skin="document"] .gold-chg { font-family: var(--body); }
html[data-skin="document"] .gold-meta, html[data-skin="document"] .gold-mine { font-family: var(--body); }
html[data-skin="document"] .gold-link { font: 600 12px var(--label); text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
html[data-skin="document"] .gold-spark polyline { stroke: var(--fg); }

/* --- okienka "Dołącz do gry": karty przydziału --- */
html[data-skin="document"] .jcard-head h3 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; }
html[data-skin="document"] .jcard-live { font-family: var(--body); }
html[data-skin="document"] .jcard-meta { background: var(--fg); border-color: var(--fg); }
html[data-skin="document"] .jcard-meta div { background: #fbf7ea; }
html[data-skin="document"] .jcard-meta span { font: 500 10.5px var(--label); letter-spacing: .14em; }
html[data-skin="document"] .jcard-meta b { font-family: var(--body); }
html[data-skin="document"] .jcard-id code { background: transparent; border: 0; border-bottom: 1px solid var(--fg); font-family: var(--body); font-weight: 700; padding-inline: 2px; }
html[data-skin="document"] .btn-join {
  background: var(--accent); color: #fbf3e4; font: 400 17px/1 var(--stamp); letter-spacing: .14em;
  border: 2px solid var(--accent); box-shadow: 3px 3px 0 var(--fg);
}
html[data-skin="document"] .btn-join:hover:not(:disabled) { filter: none; transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--fg); }
html[data-skin="document"] .jcard-form label { font: 500 10.5px var(--label); letter-spacing: .14em; }
html[data-skin="document"] .jcard-add { border-radius: 0; border-color: var(--fg); font-family: var(--label); color: var(--fg); }
html[data-skin="document"] .join-help { background: #fffaf0; }
html[data-skin="document"] .join-help code { background: transparent; border: 0; border-bottom: 1px solid var(--fg); font-weight: 700; }

/* --- zakładki serwerów: przekładki teczki --- */
html[data-skin="document"] .srv-tabs { gap: 4px; margin-bottom: -1px; }
html[data-skin="document"] .srv-tabs button {
  border-radius: 6px 6px 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--panel2);
  font: 600 13px/1.2 var(--label); text-transform: uppercase; letter-spacing: .08em; padding: 8px 14px;
}
html[data-skin="document"] .srv-tabs button[aria-selected="true"] { background: #fbf7ea; color: var(--fg); border-color: var(--fg); position: relative; top: 1px; }
html[data-skin="document"] .srv-tabs .cnt { font-family: var(--body); }
html[data-skin="document"] .srv-tabs .dot { border: 1px solid var(--fg); }
html[data-skin="document"] .rcon-box { border-color: var(--fg); }
html[data-skin="document"] .rcon-box legend { font: 600 11px var(--label); letter-spacing: .14em; }
html[data-skin="document"] .rcon-state { font-family: var(--body); }
