/* TotemWake — strona gry. Kolory jak w HUD gry: granat nocy, złoto, kryształowy błękit totemów. */

@font-face {
  font-family: "Bree Serif";
  src: url("../fonts/BreeSerif-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0b1220;
  --bg-alt: #111a2c;
  --panel: #18233a;
  --panel-edge: #2a3854;
  --gold: #e8b85a;
  --gold-light: #f7d98f;
  --gold-dark: #9c6b22;
  --crystal: #63d4ff;
  --ember: #ff7a3d;
  --text: #efe7d6;
  --muted: #a9b3c4;
  --radius: 14px;
  --heading: "Bree Serif", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; color: var(--gold-light); }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.6em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #2a1a05;
  font-family: var(--heading);
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 0 0 1px #00000040, 0 6px 20px #e8b85a33;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #00000040, 0 8px 28px #e8b85a66; }
.btn-ghost { background: transparent; color: var(--gold-light); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-ghost:hover { background: #e8b85a1a; box-shadow: inset 0 0 0 2px var(--gold-light); }
.btn-small { padding: .45em 1.1em; font-size: 1rem; }
.btn:focus-visible, .nav a:focus-visible, .gallery a:focus-visible { outline: 3px solid var(--crystal); outline-offset: 3px; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10;
  background: linear-gradient(180deg, #0b1220ee, #0b1220aa);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ffffff10;
}
.nav { display: flex; align-items: center; justify-content: space-between; width: min(1140px, 100% - 32px); margin-inline: auto; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--heading); font-size: 1.4rem; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; opacity: .85; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--gold-light); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: transform .2s, opacity .2s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--bg-alt); border-bottom: 1px solid var(--panel-edge);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; padding: 10px 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 64px; }
.hero-art img { width: 100%; max-height: 92vh; object-fit: cover; object-position: left top; }
.hero-art::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  width: min(1140px, 100% - 32px); margin: -150px auto 0;
  text-align: center;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); text-shadow: 0 4px 24px #000c; }
.lead { max-width: 640px; margin-inline: auto; font-size: 1.15rem; color: #d9d2c3; }
.badge {
  display: inline-block; padding: .3em .9em; margin-bottom: 1em;
  border: 1px solid var(--crystal); border-radius: 999px;
  color: var(--crystal); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  background: #0b1220d9; box-shadow: 0 0 18px #63d4ff33;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 1.5em; }

@media (max-width: 760px) {
  .hero-content { margin-top: -40px; }
  .hero-art::after { height: 30%; }
}

/* ---------- Sekcje ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-alt { background: radial-gradient(ellipse at top, #18233a 0%, var(--bg-alt) 60%); }
.eyebrow { color: var(--crystal); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; margin-bottom: .6em; }
.section h2 { max-width: 760px; }

/* Przebieg rundy */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 24px 22px; background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; border: 2px solid var(--gold);
  font-family: var(--heading); font-size: 1.3rem; color: var(--gold-light);
  box-shadow: 0 0 16px #e8b85a44;
}
.step p { color: var(--muted); margin: 0; }

/* Cechy */
.features { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
.feature { padding: 26px 24px; background: #0b1220aa; border: 1px solid var(--panel-edge); border-radius: var(--radius); }
.feature p { color: var(--muted); margin: 0; }
.feature-wide { grid-column: 1 / -1; text-align: center; background: radial-gradient(circle at 50% 30%, #63d4ff1f, #0b1220aa 70%); }
.forceballs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px; }
.forceballs img { filter: drop-shadow(0 0 10px #63d4ff66); animation: float 4s ease-in-out infinite; }
.forceballs img:nth-child(2n) { animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Bohaterowie */
.heroes { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.hero-card { flex: 0 1 calc((100% - 72px) / 5); margin: 0;background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.hero-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 12px 30px #e8b85a2a; }
.hero-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero-card figcaption { padding: 14px 16px 16px; }
.hero-card h3 { margin-bottom: .2em; }
.hero-card p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 960px) { .hero-card { flex-basis: calc((100% - 36px) / 3); } }
@media (max-width: 560px) { .hero-card { flex-basis: calc((100% - 18px) / 2); } }

/* Galeria */
.muted { color: var(--muted); }
.gallery { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--panel-edge); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: #000000d9; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: fixed; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Alpha */
.alpha { background: radial-gradient(ellipse at center, #2a1d0c 0%, var(--bg) 70%); }
.alpha-box { display: flex; align-items: center; gap: 40px; padding: 40px; border: 1px solid var(--gold-dark); border-radius: 20px; background: #0b1220cc; box-shadow: 0 0 60px #e8b85a1a; }
.alpha-box .cta-row { justify-content: flex-start; }
.alpha-icon { border-radius: 24px; flex: none; box-shadow: 0 0 30px #63d4ff40; }
.soon { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .alpha-box { flex-direction: column; text-align: center; padding: 28px 20px; } .alpha-box .cta-row { justify-content: center; } }

/* Stopka */
.site-footer { padding: 40px 0; border-top: 1px solid #ffffff12; color: var(--muted); text-align: center; }
.footer-brand { font-family: var(--heading); font-size: 1.5rem; color: var(--gold-light); margin-bottom: .3em; }
.small { font-size: .82rem; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
