/* Strona gry Prop Hunt: Party Time (decyzja 110). Kolory jak w interfejsie gry: ciemny fiolet okien, żółte tytuły, pomarańcz
   pachołka, zieleń przycisków. Bez skryptów: nawigacja i pytania (details) działają samym HTML. */
@font-face {
  font-family: "Titan One";
  src: url("../fonts/titan-one.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #1a1036;
  --bg-alt: #221547;
  --card: #2a1d5e;
  --card-line: rgba(255, 255, 255, 0.1);
  --text: #f4f0ff;
  --muted: #c9bfe8;
  --yellow: #ffe082;
  --orange: #ff7a1a;
  --green: #43a047;
  --blue: #1e88e5;
  --radius: 18px;
  --gutter: 16px;
  --head: "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  text-wrap: pretty;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0 0 12px; }
p { margin: 0 0 14px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- nagłówek ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(26, 16, 54, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--card-line); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.top__logo-img { width: 92px; height: auto; }
.top__nav { display: flex; gap: 18px; margin-left: auto; font-weight: 600; }
.top__nav a { color: var(--text); text-decoration: none; }
.top__nav a:hover { color: var(--yellow); }
.lang { border: 1px solid var(--card-line); border-radius: 999px; padding: 4px 12px; font-weight: 700; text-decoration: none; color: var(--text); }
@media (max-width: 560px) {
  .top__nav { gap: 12px; font-size: 15px; }
  .top__logo-img { width: 72px; }
}

/* ---------- baner ---------- */
/* baner zawsze cały (logo gry jest przy prawej krawędzi obrazu), tekst wchodzi pod jego dolną część */
.hero { position: relative; }
.hero__media { position: relative; }
.hero__art { width: 100%; height: auto; }
.hero__media::after { content: ""; position: absolute; inset: 55% 0 -2px 0; background: linear-gradient(180deg, rgba(26, 16, 54, 0), var(--bg)); }
.hero__in { position: relative; margin-top: clamp(-120px, -8vw, -24px); padding-bottom: 40px; }
.hero__lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 680px; font-weight: 600; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.pill { display: inline-block; background: var(--orange); color: #fff; font-family: var(--head); padding: 8px 18px; border-radius: 999px; font-size: 18px; box-shadow: 0 6px 0 #b54d00; }

/* ---------- sekcje ---------- */
.band { padding: 64px 0; }
.band--alt { background: var(--bg-alt); }
.h2 { font-size: clamp(30px, 4.4vw, 44px); color: var(--yellow); }
.section-lead { color: var(--muted); max-width: 720px; font-size: 18px; margin-bottom: 28px; }

.roles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.role { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.role::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; }
.role--prop::before { background: var(--orange); }
.role--hunter::before { background: var(--blue); }
.role h3 { font-size: 26px; }
.role__tag { display: inline-block; font-family: var(--head); font-size: 15px; border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.role--prop .role__tag { background: rgba(255, 122, 26, 0.18); color: #ffb27a; }
.role--hunter .role__tag { background: rgba(30, 136, 229, 0.2); color: #8cc8ff; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 6px; }
.card h3 { font-size: 24px; color: var(--yellow); }
.card p { color: var(--muted); }

.features { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.features li { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 20px 22px 8px; }
.features h3 { font-size: 21px; color: var(--yellow); }
.features p { color: var(--muted); }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-line); aspect-ratio: 16 / 9; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.faq__item { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; margin-bottom: 12px; }
.faq__item summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--head); font-size: 24px; color: var(--yellow); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding: 0 20px 6px; color: var(--muted); }

.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-family: var(--head); padding: 12px 22px; border-radius: 14px; box-shadow: 0 5px 0 #2a6b2d; }
.btn:hover { color: #fff; filter: brightness(1.08); }

/* ---------- strony prawne ---------- */
.legal-hero { background: var(--bg-alt); border-bottom: 1px solid var(--card-line); padding: 40px 0 28px; }
.legal-hero h1 { font-size: clamp(32px, 5vw, 48px); color: var(--yellow); }
.legal-hero__game { margin: 0 0 6px; font-weight: 700; }
.legal-hero__game a { color: var(--muted); text-decoration: none; }
.legal-hero__date { color: var(--muted); margin: 0; white-space: nowrap; }
.legal { max-width: 820px; padding-top: 32px; padding-bottom: 56px; overflow-wrap: anywhere; }
.legal h2 { font-size: 26px; color: var(--yellow); margin-top: 36px; }
.legal h3 { font-family: var(--body); font-weight: 700; font-size: 19px; margin-top: 22px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal__lead { font-size: 19px; }
.toc { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 14px 20px; margin: 18px 0 8px; }
.toc ol { margin: 0; }

/* ---------- 404 ---------- */
.notfound { padding: 80px var(--gutter); text-align: center; }
.notfound h1 { color: var(--yellow); font-size: 40px; }

/* ---------- stopka ---------- */
.foot { background: #120b28; border-top: 1px solid var(--card-line); padding: 40px 0 24px; font-size: 15px; }
.foot__in { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.foot__logo { width: 120px; margin-bottom: 10px; }
.foot__brand p { color: var(--muted); max-width: 420px; }
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__h { font-size: 18px; color: var(--yellow); margin-bottom: 4px; }
.foot__col a { color: var(--text); text-decoration: none; }
.foot__col a:hover { color: var(--yellow); }
.foot__base { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--card-line); color: var(--muted); font-size: 13px; }
.foot__base p { margin-bottom: 6px; }
@media (max-width: 760px) {
  .foot__in { grid-template-columns: 1fr; }
}

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
