:root {
  --text: #f5f5f5;
  --muted: #c9c9c9;
  --line: rgba(255, 255, 255, 0.08);
  --red: #b90f1d;
  --red-strong: #d21f2f;
  --red-soft: rgba(185, 15, 29, 0.16);
  --green: #6ee7a5;
  --green-soft: rgba(110, 231, 165, 0.14);
  --black: #050505;
  --topbar-h: 152px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, sans-serif;
  background: var(--black);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 22px 48px;
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.compact-nav .topbar {
  height: 132px;
  min-height: 132px;
  padding: 14px 48px;
}

.compact-nav .brand-wrap {
  min-height: 82px;
}

.compact-nav .logo-img {
  width: 82px;
  height: 82px;
}

.compact-nav .discord-link {
  width: 48px;
  height: 48px;
}

.compact-nav .rules-clean-page,
.compact-nav .project-page {
  min-height: calc(100vh - 132px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 98px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo-img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
}

.logo-text span {
  color: #d7d7d7;
}

.brand-badge {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(110, 231, 165, 0.28);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.menu a {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.44rem;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.menu a:visited {
  color: #ffffff;
}

.menu a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: background 0.25s ease, transform 0.25s ease;
  margin-left: auto;
}

.discord-link:hover {
  background: var(--red-soft);
  transform: translateY(-2px);
}

.discord-icon {
  width: 20px;
  height: 20px;
}

.youtube-link,
.tiktok-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: background 0.25s ease, transform 0.25s ease;
}

.youtube-link:hover,
.tiktok-link:hover {
  background: var(--red-soft);
  transform: translateY(-2px);
}

.youtube-icon,
.tiktok-icon {
  width: 20px;
  height: 20px;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: center;
  padding: 72px 44px 56px;
  background-image: url("images/image.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-ambient-one {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -80px;
  background: radial-gradient(circle, rgba(255, 60, 60, 0.65) 0%, rgba(255, 60, 60, 0) 70%);
  animation: driftOne 11s ease-in-out infinite alternate;
}

.hero-ambient-two {
  width: 340px;
  height: 340px;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(255, 180, 70, 0.38) 0%, rgba(255, 180, 70, 0) 70%);
  animation: driftTwo 14s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.mini-text {
  display: inline-block;
  margin-bottom: 16px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--red-soft);
  border: 1px solid rgba(185, 15, 29, 0.24);
  color: var(--red-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -1.5px;
}

h1 span {
  display: block;
  margin-top: 8px;
  color: var(--red);
}

.story-details {
  max-width: 620px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.46);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.story-details summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.98rem;
}

.story-details summary::-webkit-details-marker {
  display: none;
}

.story-details summary::after {
  content: "+";
  float: right;
  color: var(--red);
  font-size: 1.2rem;
}

.story-details[open] summary::after {
  content: "-";
}

.details-body {
  padding: 0 18px 18px;
}

.details-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

.details-body p:last-child {
  margin-bottom: 0;
}

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-red {
  background: linear-gradient(180deg, #d31726 0%, #a70f1a 100%);
  color: white;
  box-shadow: 0 10px 24px rgba(185, 15, 29, 0.24);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.btn-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-discord-icon {
  width: 18px;
  height: 18px;
}

.cards-section {
  background: #050505;
  padding: 54px 44px 80px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.image-card {
  position: relative;
  min-height: 300px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.image-card:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 15, 29, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
}

.card-one {
  background-image: url("images/obrazek1.png");
}

.card-two {
  background-image: url("images/obrazek2.png");
}

.card-three {
  background-image: url("images/obrazek3.png");
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.84) 100%);
}

.image-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  z-index: 1;
}

.image-card-content h3 {
  margin: 0 0 12px;
  font-size: 1.9rem;
  line-height: 1.05;
}

.image-card-content p {
  margin: 0;
  color: #e2e2e2;
  line-height: 1.7;
  font-size: 0.98rem;
}

.site-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 72px 44px 48px;
  text-align: center;
}

.footer-center-text {
  max-width: 880px;
}

.footer-statement {
  margin: 0 auto 18px;
  color: #d1d1d1;
  line-height: 1.95;
  font-size: 1.08rem;
  letter-spacing: 0.2px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-icon-link:hover {
  transform: translateY(-3px);
  background: var(--red-soft);
  border-color: rgba(185, 15, 29, 0.24);
  box-shadow: 0 12px 28px rgba(185, 15, 29, 0.12);
}

.footer-svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 44px 24px;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #bdbdbd;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
}

.rules-clean-page,
.project-page {
  min-height: calc(100vh - var(--topbar-h));
  padding: 0 44px 56px;
}

.project-page {
  background:
    radial-gradient(circle at top left, rgba(185, 15, 29, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.62) 0%, rgba(9, 9, 9, 0.9) 100%),
    url("images/obrazek2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.rules-clean-page {
  position: relative;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.58) 0%, rgba(5, 5, 5, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.78) 100%),
    url("images/obrazek.png6.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.pravidla-page {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.58) 0%, rgba(5, 5, 5, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.78) 100%),
    url("images/obrazek60.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.icmapa-page {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.58) 0%, rgba(5, 5, 5, 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.78) 100%),
    url("images/obrazek50.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.plain-black-page {
  min-height: calc(100vh - var(--topbar-h));
  padding: 72px 44px 56px;
  background: #000;
}

.plain-black-content {
  max-width: 900px;
  margin: 0 auto;
}

.plain-black-page p,
.plain-black-page ul,
.plain-black-page li,
.plain-black-page h1,
.plain-black-page .rules-clean-kicker {
  color: #e2e2e2;
}

.plain-black-page ul {
  padding-left: 22px;
}

.plain-black-page li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.rules-clean-hero,
.project-hero,
.lore-hero {
  max-width: 860px;
  margin: 0 auto 42px;
  margin-top: 0;
  padding-top: 0;
  text-align: center;
}

.rules-clean-kicker,
.project-kicker,
.lore-kicker {
  margin: 0 0 14px;
  color: var(--red-strong);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(210, 31, 47, 0.5);
}

.project-hero .project-kicker {
  margin-top: 16px;
}

.rules-clean-hero h1,
.project-hero h1,
.lore-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.98;
  color: #ffffff;
}

.rules-clean-intro,
.project-intro,
.lore-intro {
  max-width: 760px;
  margin: 0 auto;
  color: #d1d1d1;
  line-height: 1.9;
  font-size: 1.05rem;
}

.rules-stack,
.project-stack {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.rules-block,
.project-block {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 16, 18, 0.9) 0%, rgba(10, 10, 12, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rules-block:hover,
.project-block:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

.rules-block-kicker,
.project-block-kicker,
.lore-block-kicker {
  margin: 0 0 10px;
  color: var(--red-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.rules-block h2,
.project-block h2,
.lore-block h2 {
  margin: 0 0 18px;
  font-size: 1.9rem;
  line-height: 1.1;
  color: #ffffff;
}

.rules-block ul,
.project-block ul {
  margin: 0;
  padding-left: 22px;
}

.rules-block li,
.project-block li {
  margin-bottom: 12px;
  color: #e2e2e2;
  line-height: 1.8;
}

.rules-block li:last-child,
.project-block li:last-child {
  margin-bottom: 0;
}

.coming-soon-text {
  margin: 0;
  text-align: center;
  color: var(--red-strong);
  font-weight: 700;
  font-size: 1.35rem;
}

.faq-block {
  padding-bottom: 18px;
}

.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.faq-item:first-of-type {
  margin-top: 6px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--red-strong);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding-top: 12px;
}

.faq-answer p {
  margin: 0;
  color: #d8d8d8;
  line-height: 1.75;
}

.lore-page {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  padding: 72px 44px 56px;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.56) 0%, rgba(5, 5, 5, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.46) 45%, rgba(0, 0, 0, 0.78) 100%),
    url("images/obrazek.png5.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.lore-hero {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.lore-layout {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.lore-story {
  display: grid;
}

.lore-block {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.92) 0%, rgba(8, 8, 10, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.lore-block p {
  margin: 0 0 14px;
  color: #dddddd;
  line-height: 1.88;
}

.lore-block p:last-child {
  margin-bottom: 0;
}

.lore-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
}

.lore-map-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 16, 18, 0.94) 0%, rgba(10, 10, 12, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.lore-map-card h3 {
  margin: 0 0 16px;
  font-size: 1.7rem;
  color: #ffffff;
}

.lore-map-image {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.lore-facts {
  display: grid;
  gap: 12px;
}

.lore-fact {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lore-fact strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 0.95rem;
}

.lore-fact span {
  color: #d1d1d1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.22s;
}

.delay-3 {
  animation-delay: 0.34s;
}

.delay-4 {
  animation-delay: 0.46s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes driftOne {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(80px, 30px, 0) scale(1.08);
  }
}

@keyframes driftTwo {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-60px, -25px, 0) scale(1.05);
  }
}

@media (max-width: 760px) {
  .cards-grid,
  .lore-layout {
    grid-template-columns: 1fr;
  }

  .lore-sidebar {
    position: static;
  }

  .topbar {
    padding: 18px 20px;
    height: auto;
    min-height: auto;
  }

  .hero,
  .cards-section,
  .rules-clean-page,
  .project-page,
  .lore-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-main,
  .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  .menu {
    gap: 16px;
    flex-wrap: wrap;
  }

  .logo-img {
    width: 60px;
    height: 60px;
  }

  .brand-wrap {
    min-height: 60px;
  }

  .logo-text {
    font-size: 0.92rem;
  }

  .image-card {
    min-height: 260px;
  }

  .image-card-content h3 {
    font-size: 1.55rem;
  }

  .footer-statement {
    font-size: 1rem;
    line-height: 1.85;
  }

  .rules-clean-hero h1,
  .project-hero h1,
  .lore-hero h1 {
    font-size: 2.3rem;
  }

  .rules-block,
  .project-block,
  .lore-block,
  .lore-map-card {
    padding: 22px;
  }

  .rules-block h2,
  .project-block h2,
  .lore-block h2 {
    font-size: 1.5rem;
  }

  .rules-clean-page,
  .lore-page {
    background-attachment: scroll;
  }
}
