@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0e0d0b;
  --paper: #1a1813;
  --paper2: #221f19;
  --border: rgba(180,160,100,0.15);
  --border2: rgba(180,160,100,0.28);
  --kick: #c8a84b;        /* wyblakłe złoto zamiast zieleni */
  --angry: #b03a2e;       /* stara czerwień */
  --angry-dim: rgba(176,58,46,0.13);
  --angel: #4a7fb5;       /* wyblakły błękit */
  --angel-dim: rgba(74,127,181,0.15);
  --credit-pos: #5a8a5e;  /* wyblakła zieleń */
  --credit-neg: #b03a2e;
  --text: #c9bfa8;        /* wyblakły pergamin */
  --text-dim: #8a7d68;
  --muted: #5a5246;
  --red-stamp: #8b1a1a;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding: 0 0 64px;
  padding-top: 0;
  /* delikatna tekstura ziarna */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── PASEK DOKUMENTU (na każdej stronie) ── */
.doc-bar { display: none; }

/* ── HEADER + NAV BANNER ── */
.site-top {
  position: relative;
  margin-bottom: 28px;
  overflow: hidden;
  border-bottom: 2px solid rgba(180,140,60,0.2);
}
.site-top::before {
  content: '';
  position: absolute;
  inset: 0;
  filter: brightness(0.45) saturate(0.4) sepia(0.5);
  z-index: 0;
}
.site-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14,13,11,0.6) 0%, transparent 40%, rgba(14,13,11,0.6) 100%),
    linear-gradient(to right, rgba(14,13,11,0.55) 0%, transparent 35%, transparent 65%, rgba(14,13,11,0.55) 100%);
  z-index: 1;
}
.site-top header,
.site-top nav {
  position: relative;
  z-index: 2;
}

/* ── HEADER ── */
header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-family: 'Special Elite', monospace;
  font-size: 1.2rem;
  color: var(--kick);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0,0,0,0.95), 0 0 40px rgba(200,168,75,0.2);
}
.logo span { color: var(--muted); }
.logo .by {
  display: block;
  margin-top: 5px;
  font-family: 'Space Mono', monospace;
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180,155,100,0.55);
  text-shadow: none;
}
.logo .by em { color: rgba(200,168,75,0.75); font-style: normal; }

.wielki-brat-portrait {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.35;
  filter: brightness(0.6) saturate(0.5) sepia(0.4);
  z-index: 0;
  pointer-events: none;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--border2);
  border-radius: 3px;
  padding: 5px 12px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transition: background 0.3s; }
.dot.live { background: #5a8a3a; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── NAV ── */
.nav-wrap { display: contents; }
nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 8px 20px 48px;
}
.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(180,155,100,0.55);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(180,140,60,0.1);
  border-color: rgba(180,140,60,0.25);
}
.nav-link.active {
  color: var(--kick);
  background: rgba(200,168,75,0.1);
  border-color: rgba(200,168,75,0.35);
}

/* ── SHARED COMPONENTS ── */
.credit-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 2px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.credit-badge.pos { color: var(--credit-pos); background: rgba(90,138,94,0.12); border: 1px solid rgba(90,138,94,0.3); }
.credit-badge.neg { color: var(--credit-neg); background: rgba(176,58,46,0.1); border: 1px solid rgba(176,58,46,0.28); }
.credit-badge.zero { color: var(--muted); background: rgba(255,255,255,0.03); border: 1px solid var(--border); }

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 48px 0;
  font-family: 'Special Elite', monospace;
  letter-spacing: 0.05em;
}

/* ── STEMPEL ── */
.stamp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  opacity: 0.13;
  transition: opacity 0.3s;
  pointer-events: none;
  filter: sepia(0.8) saturate(0.4);
}
.stamp img { width: 80px; height: auto; display: block; }

/* padding bo nie ma go już w body-top */
.page-body-pad { padding: 0 20px; }
