* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --accent-red: #ff0000; --accent-blue: #007eff; --bg-dark: #1a1a1a; }

body {
    background: linear-gradient(135deg, #0e68d7, #068501, #044a01);
    color: #f5f5f5;
    font-family: -apple-system, sans-serif;
    overflow-x: hidden;
}
body.modal-open {
  overflow: hidden;
}
nav {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px 0;
  backdrop-filter: blur(6px);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}
nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: 0.3s;
}
nav a:hover {
  color: #ff8fd8;
}
nav a.active {
  border-bottom: 2px solid #ff8fd8;
  color: #ff8fd8;
}

/* PRZYCISKI */
.btn-red {
    background: #ff0000; color: white; border: none;
    padding: 10px 22px; border-radius: 20px;
    font-size: 14px; cursor: pointer; font-weight: 500;
    text-decoration: none; display: inline-block;
}
.btn-neutral {
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
    border: 0.5px solid rgba(255,255,255,0.2);
    padding: 10px 22px; border-radius: 20px;
    font-size: 14px; cursor: pointer; transition: background 0.2s;
}
.btn-neutral:hover { background: rgba(255,255,255,0.18); }

/* TAGI */
.tag {
    display: inline-block;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 500;
}

/* TICKER */
.scroll-text {
    display: inline-block; white-space: nowrap;
    color: #ffd700; font-size: 12px; letter-spacing: 1px;
    padding-left: 100%; animation: scroll 24s linear infinite;
}

/* POSTACIE */
.char-section {
    max-width: 650px;
    margin: 0 auto;
    padding: 60px 16px;
    display: flex;
    flex-direction: column;
    gap: 200px; /* odstęp między rzędami */
}

/* Każdy rząd */
.char-pair-row {
    display: flex;
    justify-content: center; /* równe odstępy */
    align-items: center;
    gap: 300px; /* równe odstępy między kółkami */
    position: relative;
}

/* Przesunięcie rzędów nieparzystych */
.char-pair-row:nth-child(odd) {
    transform: translateX(130px);
}

/* Opcjonalnie: delikatne cofnięcie parzystych */
.char-pair-row:nth-child(even) {
    transform: translateX(-130px);
}


.char-pair-row::before {
    content: "";
    position: absolute; top: 50%; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.char-circle {
    position: relative; width: 150px; height: 150px;
    border-radius: 50%; cursor: help;
    border: 8px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #222 linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.3));
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
}
.char-circle:hover { transform: scale(1.9); z-index: 10; }

.border-resovia { border-color: #ff0000; }
.char-circle.border-resovia:hover { box-shadow: 0 0 25px rgba(255,0,0,0.5); }
.border-stal { border-color: #007eff; }
.char-circle.border-stal:hover   { box-shadow: 0 0 25px rgba(0,126,255,0.5); }
.border-sanok { border-color: #f0ec13; }
.char-circle.border-sanok:hover { box-shadow: 0 0 25px rgba(240, 236, 19,0.5); }
.border-karpaty { border-color: #26146e; }
.char-circle.border-karpaty:hover { box-shadow: 0 0 25px rgba(38, 20, 110,0.5); }

/* NOWE */
.char-tooltip {
    visibility: hidden; width: 160px;
    background: rgba(10,10,10,0.98); color: #fff;
    text-align: center; border-radius: 12px; padding: 10px;
    position: absolute; bottom: -10px; left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0; transition: all 0.3s ease;
    font-size: 8px; border: 1px solid rgba(255,255,255,0.15);
    pointer-events: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    padding-top: 18px;
    margin: 0px;
    z-index: 9999;
}
.char-circle:hover .char-tooltip,
.char-tooltip:hover { visibility: visible; opacity: 1; bottom: -5px; }

/* SCREEN: widoczność */
.screen { display: none; }

.recipes {
  padding: 30px;
  color: #fff;
  max-width: 800px;
  margin: auto;
}

.tile-title{
  font-size: 28px;
  text-align: center;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  opacity: 0.8;
  margin-bottom: 30px;
}

.recipe-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.recipe-card h2 {
  margin-top: 0;
  color: #ff8fd8;
    text-align: center;
}

.story {
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 20px;
}

.block {
  margin-top: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.block h3 {
  margin-top: 0;
  color: #ffffff;
}

.block p {
  margin-bottom: 1em;
}

ul {
  padding-left: 20px;
}

/* GRID Z KAFELKAMI */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* KAFELKI */
.tile {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.25s;
  backdrop-filter: blur(10px);
}

.tile:hover {
  transform: scale(1.05);
}

/* OBRAZEK KWADRATOWY I NIEUCIĘTY */
.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #000;
}

/* USUNIĘCIE TYTUŁU */
.tile-title {
  display: none;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
    overflow-y: auto;
}

/* OKNO MODALA */
.modal-content {
  position: relative;
  background: #111;
  color: #fff;
  margin: 10% auto;
  padding: 30px;
  width: 85%;
  max-width: 600px;
  border-radius: 16px;
}

/* ❗ NAPRAWA X */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* KARTY GŁÓWNYCH BOHATERÓW */
.hero-card {
  background: rgba(20,35,86,1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.hero-card:hover {
  transform: scale(1.25);
  box-shadow: 0 0 25px rgba(255,255,255,0.5);
}
.hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
  border: 3px solid transparent;
}
.hero-name {
  font-weight: 500;
  font-size: 25px;
  margin: 0 0 6px;
}
.hero-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 500;
  margin-bottom: 8px;
}
.hero-desc {
  font-size: 20px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
