/* ═══════════════════════════════════════════════════
   INFORMACJE O SERWERZE — Dark Fantasy Chronicle
   Ciemniejszy pergamin / kasetony bez shine i pulse
   ═══════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Crimson+Pro:ital,wght@0,400;0,600;0,700;1,400&display=swap");

@keyframes info-led {
  0%, 100% { opacity: 0.75; box-shadow: 0 0 4px currentColor; }
  50% { opacity: 1; box-shadow: 0 0 10px currentColor; }
}

.lbn-info {
  --bg-deep: #1a1614;
  --bg-panel: #241c16;
  --bg-tile: #2a2018;
  --parchment: #2c2218;
  --ink: #e8dcc0;
  --ink-soft: #cbb892;
  --muted: #8a7a5e;
  --gold: #d4af37;
  --gold-bright: #ffd700;
  --gold-dark: #8a6a1a;
  --copper: #b87333;
  --burgundy: #9b2d3c;
  --safe: #6fbf73;
  --danger: #c44;
  --radius: 2px;

  box-sizing: border-box;
  color: var(--ink);
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.45;
  padding: 2px 0 8px;
}

.lbn-info *,
.lbn-info *::before,
.lbn-info *::after {
  box-sizing: border-box;
}

.info-sheet {
  position: relative;
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.08), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(120, 40, 20, 0.18), transparent 50%),
    linear-gradient(165deg, #2a2018 0%, #1f1814 45%, #161210 100%);
  border: 1px solid #c9a24a;
  box-shadow:
    inset 0 0 0 3px #1a120c,
    inset 0 0 0 4px var(--copper),
    inset 0 0 0 7px #1a120c,
    inset 0 0 0 8px rgba(212, 175, 55, 0.7),
    0 8px 20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.info-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7'%3E%3Cpolygon points='3.5,0 7,3.5 3.5,7 0,3.5' fill='%23d4af37'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7'%3E%3Cpolygon points='3.5,0 7,3.5 3.5,7 0,3.5' fill='%23d4af37'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7'%3E%3Cpolygon points='3.5,0 7,3.5 3.5,7 0,3.5' fill='%23d4af37'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 7 7'%3E%3Cpolygon points='3.5,0 7,3.5 3.5,7 0,3.5' fill='%23d4af37'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 7px 7px;
  background-position:
    5px 5px,
    calc(100% - 5px) 5px,
    5px calc(100% - 5px),
    calc(100% - 5px) calc(100% - 5px);
}

.info-bento {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: start;
}

.info-cols {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.info-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  height: 100%;
}

.info-col > .info-tile:last-child {
  flex: 1;
}

.info-tile {
  position: relative;
  background:
    linear-gradient(180deg, rgba(60, 44, 28, 0.85), rgba(30, 22, 16, 0.95)),
    var(--bg-tile);
  border: 1px solid #3a3028;
  border-radius: var(--radius);
  padding: 12px 11px 11px;
  transition: transform 0.22s ease;
}

.info-tile:hover {
  transform: translateY(-2px);
  z-index: 5;
}

.info-tile--hero {
  grid-column: span 6;
  text-align: center;
  padding: 16px 12px 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.14), transparent 55%),
    linear-gradient(180deg, #32261a, #1c1510);
}

.info-tile--half {
  grid-column: auto;
  width: 100%;
  min-height: 0;
}

.info-tile--full {
  grid-column: span 6;
}

.info-tile--foot {
  grid-column: span 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #2a2018, #1a1410);
}

.info-tile--foot:hover {
  transform: none;
}

/* Hero */
.info-kicker {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

.info-title {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f0e2b8;
  text-shadow:
    0 0 12px rgba(212, 175, 55, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.65);
}

.info-lead {
  margin: 0 auto 12px;
  max-width: 440px;
  font-size: 13px;
  color: var(--ink-soft);
}

.info-status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--gold-dark);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.info-pill__led {
  width: 8px;
  height: 8px;
  border-radius: 0;
  animation: info-led 1.6s ease-in-out infinite;
}

.info-pill--on .info-pill__led {
  background: var(--safe);
  color: var(--safe);
}

.info-pill--off .info-pill__led {
  background: var(--danger);
  color: var(--danger);
}

.info-pill--on { border-color: rgba(111, 191, 115, 0.45); color: #b8e6b8; }
.info-pill--off { border-color: rgba(204, 68, 68, 0.45); color: #f0a0a0; }

.info-pill strong {
  color: var(--gold-bright);
  font-weight: 800;
}

/* Tile head */
.info-tile__head {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  padding-bottom: 6px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #e8d08a;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
  border-bottom: 1px solid rgba(138, 106, 26, 0.55);
}

/* Rows */
.info-rows {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(138, 106, 26, 0.28);
  background: rgba(0, 0, 0, 0.28);
}

.info-row__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.info-row__val {
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  color: #f2e6c0;
  text-align: right;
}

.info-row__val--gold { color: var(--gold-bright); }
.info-row__val--burgundy { color: #e07080; }
.info-row__val--safe { color: #8fd98f; }
.info-row__val--warn { color: #e0a060; }

.info-row__val--client {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.info-row__dl {
  display: inline-block;
  padding: 2px 8px;
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gold-dark);
}

.info-row__dl:hover {
  color: #fff4c4;
  border-color: var(--gold-bright);
  background: rgba(60, 40, 10, 0.55);
}

/* Rate chips */
.info-rates {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.info-rate {
  text-align: center;
  padding: 10px 6px;
  border: 1px solid rgba(138, 106, 26, 0.4);
  background:
    linear-gradient(180deg, rgba(80, 55, 20, 0.35), rgba(0, 0, 0, 0.35));
}

.info-rate__label {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.info-rate__val {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
  line-height: 1.1;
}

.info-rate__hint {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-soft);
}

.info-note {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--ink-soft);
  border: 1px dashed rgba(138, 106, 26, 0.45);
  background: rgba(0, 0, 0, 0.2);
}

.info-note b {
  color: var(--gold);
}

.info-note a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 168, 74, 0.45);
}

.info-note a:hover {
  color: #ffd080;
}

@keyframes info-weekend-pulse-on {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(80, 200, 100, 0.4),
      0 0 14px rgba(60, 180, 80, 0.4),
      0 0 28px rgba(30, 120, 50, 0.25),
      inset 0 0 24px rgba(40, 160, 70, 0.1);
    border-color: rgba(90, 210, 110, 0.7);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(140, 255, 160, 0.75),
      0 0 24px rgba(80, 220, 110, 0.7),
      0 0 42px rgba(40, 180, 70, 0.4),
      inset 0 0 32px rgba(60, 200, 90, 0.18);
    border-color: rgba(150, 255, 170, 0.95);
  }
}

@keyframes info-weekend-pulse-off {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(200, 50, 50, 0.4),
      0 0 14px rgba(180, 40, 40, 0.35),
      0 0 28px rgba(120, 20, 20, 0.22),
      inset 0 0 24px rgba(160, 30, 30, 0.1);
    border-color: rgba(210, 60, 60, 0.7);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 100, 100, 0.7),
      0 0 22px rgba(230, 60, 60, 0.6),
      0 0 40px rgba(180, 30, 30, 0.35),
      inset 0 0 30px rgba(200, 40, 40, 0.16);
    border-color: rgba(255, 110, 110, 0.95);
  }
}

@keyframes info-weekend-shine {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  15% { opacity: 0.65; }
  45% { opacity: 0.5; }
  70% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

@keyframes info-weekend-badge-on {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(80, 220, 100, 0.5), inset 0 0 0 1px rgba(180, 255, 190, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(120, 255, 140, 0.8), inset 0 0 0 1px rgba(210, 255, 220, 0.75);
  }
}

@keyframes info-weekend-badge-off {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(220, 50, 50, 0.45), inset 0 0 0 1px rgba(255, 150, 150, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(255, 80, 80, 0.7), inset 0 0 0 1px rgba(255, 180, 180, 0.65);
  }
}

@keyframes info-weekend-dot {
  0%, 100% { opacity: 0.65; box-shadow: 0 0 4px currentColor; }
  50% { opacity: 1; box-shadow: 0 0 12px currentColor; }
}

.info-weekend {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  padding: 12px 10px 10px;
  overflow: hidden;
  border: 2px solid #666;
  border-radius: 0;
  background: linear-gradient(165deg, #2a1c14 0%, #14100c 100%);
}

.info-weekend::before {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
}

.info-weekend::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  animation: info-weekend-shine 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* ── ON (Sobota / Niedziela) — zielony ── */
.info-weekend.is-on {
  border-color: rgba(90, 210, 110, 0.75);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(60, 200, 90, 0.28), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(20, 90, 40, 0.25), transparent 55%),
    linear-gradient(165deg, #14301a 0%, #0c1810 55%, #08120a 100%);
  animation: info-weekend-pulse-on 1.8s ease-in-out infinite;
}

.info-weekend.is-on::before {
  border: 1px solid rgba(120, 230, 140, 0.35);
}

.info-weekend.is-on::after {
  background: linear-gradient(90deg, transparent, rgba(160, 255, 180, 0.28), transparent);
}

.info-weekend.is-on .info-weekend__ribbon {
  color: #062010;
  background: linear-gradient(180deg, #b8f5c0, #2e9a48);
  border-color: #1a6a2a;
}

.info-weekend.is-on .info-weekend__badge {
  border-color: #6fef8a;
  background: radial-gradient(circle at 40% 30%, #9affb0, #1e8a3a 70%, #0a3a18);
  animation: info-weekend-badge-on 1.8s ease-in-out infinite;
}

.info-weekend.is-on .info-weekend__badge-x,
.info-weekend.is-on .info-weekend__badge-sub {
  color: #e8ffe8;
  text-shadow: 0 0 10px rgba(120, 255, 150, 0.75), 0 2px 0 #0a3014;
}

.info-weekend.is-on .info-weekend__head {
  color: #b8ffc4;
  text-shadow: 0 0 12px rgba(80, 220, 110, 0.55);
}

.info-weekend.is-on .info-weekend__tagline { color: #9ec8a8; }

.info-weekend.is-on .info-weekend__status {
  color: #b8f0b8;
  border-color: rgba(111, 191, 115, 0.6);
  background: rgba(10, 40, 18, 0.55);
}

.info-weekend.is-on .info-weekend__status-dot {
  background: #6fbf73;
  color: #6fbf73;
}

.info-weekend.is-on .info-weekend__rows .info-row {
  border-color: rgba(80, 180, 100, 0.28);
  background: rgba(0, 20, 8, 0.4);
}

.info-weekend.is-on .info-weekend__note {
  border-color: rgba(90, 200, 110, 0.45);
  background: rgba(10, 40, 18, 0.5);
  color: #c8e8d0;
}

.info-weekend.is-on .info-weekend__note b { color: #8fff9e; }

/* ── OFF (Pn–Pt) — czerwony ── */
.info-weekend.is-off {
  border-color: rgba(210, 60, 60, 0.75);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(200, 40, 40, 0.25), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(90, 15, 15, 0.28), transparent 55%),
    linear-gradient(165deg, #301414 0%, #180c0c 55%, #100808 100%);
  animation: info-weekend-pulse-off 2.4s ease-in-out infinite;
}

.info-weekend.is-off::before {
  border: 1px solid rgba(230, 80, 80, 0.3);
}

.info-weekend.is-off::after {
  background: linear-gradient(90deg, transparent, rgba(255, 120, 120, 0.2), transparent);
}

.info-weekend.is-off .info-weekend__ribbon {
  color: #2a0808;
  background: linear-gradient(180deg, #ffb0b0, #c03030);
  border-color: #7a1818;
}

.info-weekend.is-off .info-weekend__badge {
  border-color: #ef6f6f;
  background: radial-gradient(circle at 40% 30%, #ff9a9a, #8a1e1e 70%, #3a0a0a);
  animation: info-weekend-badge-off 2.2s ease-in-out infinite;
}

.info-weekend.is-off .info-weekend__badge-x,
.info-weekend.is-off .info-weekend__badge-sub {
  color: #ffe8e8;
  text-shadow: 0 0 10px rgba(255, 100, 100, 0.7), 0 2px 0 #3a0a0a;
}

.info-weekend.is-off .info-weekend__head {
  color: #ffb0b0;
  text-shadow: 0 0 12px rgba(220, 60, 60, 0.5);
}

.info-weekend.is-off .info-weekend__tagline { color: #c8a0a0; }

.info-weekend.is-off .info-weekend__status {
  color: #f0b0b0;
  border-color: rgba(220, 80, 80, 0.55);
  background: rgba(40, 10, 10, 0.55);
}

.info-weekend.is-off .info-weekend__status-dot {
  background: #e05050;
  color: #e05050;
}

.info-weekend.is-off .info-weekend__rows .info-row {
  border-color: rgba(180, 60, 60, 0.28);
  background: rgba(20, 0, 0, 0.4);
}

.info-weekend.is-off .info-weekend__note {
  border-color: rgba(200, 70, 70, 0.45);
  background: rgba(40, 10, 10, 0.5);
  color: #e8c8c8;
}

.info-weekend.is-off .info-weekend__note b { color: #ff9090; }

.info-weekend__ribbon {
  position: absolute;
  top: 8px;
  right: -22px;
  z-index: 3;
  width: 90px;
  padding: 3px 0;
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.info-weekend__top {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}

.info-weekend__badge {
  width: 64px;
  height: 64px;
  display: grid;
  place-content: center;
  border: 2px solid #888;
}

.info-weekend__badge-x {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.info-weekend__badge-sub {
  display: block;
  margin-top: 1px;
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
}

.info-weekend__intro {
  min-width: 0;
}

.info-weekend__head {
  margin: 0 0 3px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.info-weekend__tagline {
  margin: 0 0 6px;
  font-size: 12px;
}

.info-weekend__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid transparent;
  font-family: "Cinzel", serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-weekend__status-dot {
  width: 7px;
  height: 7px;
  animation: info-weekend-dot 1.4s ease-in-out infinite;
}

.info-weekend__rows {
  position: relative;
  z-index: 3;
}

.info-weekend__note {
  position: relative;
  z-index: 3;
  margin: 8px 0 0;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.45;
  border: 1px dashed transparent;
}

/* Frag tiles */
.info-frag {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.info-frag__cell {
  padding: 8px;
  text-align: center;
  border: 1px solid rgba(138, 106, 26, 0.35);
  background: rgba(0, 0, 0, 0.28);
}

.info-frag__cell--warn {
  border-color: rgba(155, 45, 60, 0.55);
  background: rgba(80, 20, 25, 0.35);
}

.info-frag__label {
  display: block;
  font-size: 10px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.info-frag__val {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 800;
  color: #f0e2b8;
}

.info-frag__cell--warn .info-frag__val {
  color: #f09090;
}

/* Systems mini */
.info-sys-mini {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.info-sys-link {
  display: block;
  padding: 8px 6px;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(138, 106, 26, 0.4);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.info-sys-link:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(60, 40, 10, 0.45);
}

.info-sys-link__name {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.info-sys-link__desc {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.info-foot-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f0e2b8;
  border: 1px solid var(--gold-dark);
  border-radius: 0;
  background: linear-gradient(180deg, #4a3818, #2a1e0c);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.info-foot-link:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .info-cols {
    grid-template-columns: 1fr;
  }

  .info-sys-mini {
    grid-template-columns: 1fr;
  }

  .info-title {
    font-size: 18px;
  }
}
