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

/* ─── ZMIENNE ─── */
:root {
  --primary_color:   #471200;
  --secondary_color: #4F1402;
  --text:            #FFE6EC;
  --btn-color:       #0a0805;
  --btn-bcg-color:   #e0bc5e;
}

/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
 }

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--primary_color);
  color: var(--text);
  line-height: 1.7;
  overflow-x: clip;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ─── TYPOGRAFIA WSPÓLNA ─── */
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--text), transparent);
  margin: 20px 0 40px;
}
.gold-divider.center { margin: 20px auto 40px; }

/* ─── PRZYCISKI WSPÓLNE ─── */
.hero-cta,
.btn-outline,
.btn-gamefound {
  display: inline-block;
  background: var(--text);
  color: var(--btn-color);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 42px;
  border-radius: 10px;
  transition: background 0.3s, transform 0.2s;
}
.hero-cta:hover,
.btn-outline:hover,
.btn-gamefound:hover {
  background: var(--btn-bcg-color);
  transform: translateY(-2px);
}

/* ─── SCROLL REVEAL ─── */
.reveal       { opacity: 0; transform: translateY(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: translate(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(24px, calc((100vw - 1200px) / 2));
  background: transparent;
  --nav-progress: 0;
}

nav::before,
nav::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
}
nav::before {
  background: linear-gradient(to bottom, rgba(20,10,5,0.97), transparent);
  opacity: calc(1 - var(--nav-progress));
}
nav::after {
  background: rgba(20, 10, 5, 0.97);
  backdrop-filter: blur(8px);
  opacity: var(--nav-progress);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); letter-spacing: 2px; text-decoration: none;
}

/* ─── NAV LOGO (obrazek) ─── */
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--text); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 1.5px;
  text-transform: uppercase; font-weight: 600;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--btn-bcg-color);
}

/* ─── CHANGE LANGUAGE ─── */
.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: right;
  flex-shrink: 0;
}

/* ─── HAMBURGER ─── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  z-index: 200; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 10px;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,8,5,1);
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: all; }

.mobile-menu a {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 20px 40px; width: 100%; text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  transition: color 0.3s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); }

/* ─── HERO LOGO ─── */
.hero-logo {
  width: clamp(200px, 75vw, 800px);
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 30px rgba(201,168,76,0.1)); /* ─── Poświata pod logo ─── */
}

/* ─── HERO ARROW ─── */
.hero-arrow {
  position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
  color: var(--text);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
  animation: arrowBounce 2s ease-in-out infinite;
}
.hero-arrow:hover { opacity: 1; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 40px 80px;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.12) 0%, transparent 60%); /* ─── Poświata sekcji ─── */
  position: relative; overflow: hidden;
}

.hero-badge {
  display: inline-block;
  color: var(--text); font-family: 'Cinzel', serif;
  font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase;
  padding: 7px 20px; margin-bottom: 30px; border-radius: 10px;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900;
  line-height: 1.1; color: #fff;
  text-shadow: 0 0 80px rgba(201,168,76,0.3); margin-bottom: 10px;
}
.hero h1 span { color: var(--text); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text); font-weight: 300;
  margin-bottom: 50px; max-width: 520px;
}

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ─── FEATURED ─── */
.featured { padding: 100px 60px; background: var(--primary_color); }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.game-stats {
  background: var(--secondary_color);
  border-radius: 10px;
  padding: 32px 36px;
}

.game-card-image {
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.game-tagline {
  font-family: 'Cinzel', serif;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.game-desc {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.highlight-item::before { content: '▸'; color: var(--text); flex-shrink: 0; margin-top: 2px; }
.highlight-item strong,
.highlight-item span { color: var(--text); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

/* ─── ABOUT ─── */
.about { padding: 100px 60px; background: var(--primary_color); }

.about-inner { max-width: 1200px; margin: 0 auto; }

.about-text p { color: var(--text); font-size: 1rem; line-height: 1.9; margin-bottom: 20px; }
.about-text .highlight { color: var(--text); }

.about-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-paragraphs { flex: 1; }

.about-logo {
  width: clamp(200px, 40vw, 520px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.1));
  border-radius: 14px;
}

.about-decoration-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
}

#about-deco-default {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#about-deco-default.hide {
  opacity: 0;
  pointer-events: none;
}

.about-deco-people {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.about-deco-people.show {
  opacity: 1;
  pointer-events: all;
}

.about-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease;
}

.about-extra.open { max-height: 1000px; }

.btn-read-more {
  display: inline-block;
  background: var(--text);
  color: var(--btn-color);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 42px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.3s, transform 0.2s;
}
.btn-read-more:hover {
  background: var(--btn-bcg-color);
  transform: translateY(-2px);
}

/* ─── ABOUT - PERSON ─── */
.person-card {
  position: relative;
  width: clamp(200px, 420px, 420px);
  perspective: 1000px;
}

.person-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.person-card:hover .person-card-inner:not(.flipped) { transform: rotateY(-8deg); }
.person-card-inner.flipped                          { transform: rotateY(180deg); }
.person-card:hover .person-card-inner.flipped       { transform: rotateY(172deg); }

.person-card-front,
.person-card-back {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.person-card-front { position: relative; }

.person-card-back {
  position: absolute; inset: 0;
  background: #e0bc5e;
  transform: rotateY(180deg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  flex-direction: column;
  text-align: center;

  color: var(--text); font-size: 1rem; line-height: 1.7;
  p { color: var(--btn-color); font-size: 2rem; line-height: 1.9; margin-bottom: 20px; opacity: 0.8; }
}

.person-card-back .role {
  font-size: 1.2rem;
  opacity: 0.8;
}

.person-card-front img {
  width: 100%; height: auto; display: block;
}

.card-flip-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-flip-btn:hover { background: rgba(0,0,0,0.8); }

/* przycisk przedniej strony — widoczny gdy karta NIE jest obrócona */
.card-flip-front {
  transform: translateZ(1px);
}

/* przycisk tylnej strony — widoczny gdy karta JEST obrócona */
.card-flip-back {
  transform: rotateY(180deg) translateZ(1px);
}


/* ─── COMMUNITY ─── */
.community { padding: 100px 60px; background: var(--primary_color); text-align: center; }
.community-inner { max-width: 700px; margin: 0 auto; }

.gamefound-card {
  background: var(--secondary_color);
  border-radius: 10px; padding: 60px 50px; margin-top: 50px;
}

.gamefound-card h3 { font-family: 'Cinzel', serif; font-size: 1.5rem; color: #fff; margin-bottom: 14px; }
.gamefound-card p { color: var(--text); margin-bottom: 30px; font-size: 0.95rem; }

.community-list { list-style: none; text-align: left; margin-bottom: 36px; }
.community-list li {
  padding: 10px 0; border-bottom: 1px solid rgba(201,168,76,0.08);
  color: var(--text); font-size: 0.9rem;
  display: flex; align-items: center; gap: 12px;
}
.community-list li::before { content: '✦'; color: var(--text); font-size: 0.6rem; }

/* ─── CTA ─── */
.cta-section {
  padding: 120px 60px;
  background: linear-gradient(to bottom, var(--primary_color), #14100a);
  text-align: center; position: relative;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
}
.cta-section h2 {
  font-family: 'Cinzel', serif; font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff; margin-bottom: 20px; position: relative;
}
.cta-section p { color: var(--text); max-width: 500px; margin: 0 auto 40px; position: relative; }

/* ─── FOOTER ─── */
footer {
  padding: 40px 60px;
  background: #14100a;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
footer::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, #14100a, #080605);
  pointer-events: none;
}
footer > * { position: relative; z-index: 2; }

.footer-logo { font-family: 'Cinzel', serif; font-size: 0.9rem; color: var(--text); letter-spacing: 2px; }
.footer-copy { color: var(--text); font-size: 0.75rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
 }
.footer-links a {
  color: var(--text);
  font-size: 0.75rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--btn-bcg-color); }


/* ─── RESPONSIVE ─── */
@media (max-width: 950px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .lang-toggle { padding-bottom: 30px;}
  .featured,
  .about,
  .community,
  .cta-section { padding: 70px 24px; }

  .featured-grid,
  .about-inner { grid-template-columns: 1fr; gap: 36px; }


  .featured { padding: 60px 15px; }
  .featured-grid { grid-template-columns: 1fr; gap: 30px; }
  .game-card-image { height: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-decoration-wrapper { display: none; }
  .gamefound-card { padding: 40px 24px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 1100px) {
.featured { padding: 60px 15px; }
.featured-grid { grid-template-columns: 1fr; gap: 30px; }
.game-card-image { height: 100%; }
