@font-face {
  font-family: "Not Jam UI 12";
  src: url("font/Not%20Jam%20UI%2012.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0b1020;
  --fg: #e7eaf3;
  --muted: #9aa3b2;
  --accent: #4f46e5;
  --media-bg: #080c18;
  --tint-rgb: 8, 12, 24;
  --section-bg: rgba(8, 12, 24, 1);
  --section-alt: #040812;
  --section-border: transparent;
  --footer-bg: #0a0f1f;
  --footer-border: rgba(255, 255, 255, 0.14);
  --footer-safe: 40px;
  --team-tint: 0.9;
  --player-audio-height: 40px;
  --player-padding-y: 12px;
  --player-bottom: 22px;
  --player-bar-height: calc(var(--player-audio-height) + 2 * var(--player-padding-y));
  --meta-width: 200px;
  --progress-grow: 1.5;
  caret-color: var(--accent);
}

html,
body {
  height: 100%;
  margin: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--media-bg);
  color: var(--fg);
  min-height: 100vh;
  padding-bottom: var(--footer-safe);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

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

img,
video {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
}

* {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::-moz-selection {
  background: rgba(164, 255, 0, 0.35);
  color: #0b1020;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- TOPBAR ---------- */

header.topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  z-index: 30;
}

.topbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(16px, 3.2vw, 40px);
}

.logo-icon {
  height: 34px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
}

.actions {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
}

.actions-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 0.6rem;
  border-radius: 1px;
}

.lang-switch {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.lang-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.6px;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.lang-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.36);
}

.lang-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
}

.mode-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.08s ease, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.mode-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.mode-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mode-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.lang-btn[disabled],
.mode-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

.lang-btn[disabled]:hover,
.mode-btn[disabled]:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ---------- HERO ---------- */

.hero {
  display: flex;
  flex-direction: column;
}

.media,
.side {
  position: relative;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
}

.media {
  overflow: hidden;
  isolation: isolate;
  min-height: 80vh;
  background: var(--media-bg);
}

.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0.85) 78%, rgba(0, 0, 0, 0.5) 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 0.85) 78%, rgba(0, 0, 0, 0.5) 88%, rgba(0, 0, 0, 0) 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(var(--tint-rgb), 0.55), rgba(var(--tint-rgb), 0.55)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  background: linear-gradient(to bottom, rgba(8, 12, 24, 0) 0%, rgba(8, 12, 24, 0.55) 60%, rgba(8, 12, 24, 0.85) 80%, var(--media-bg) 100%);
  z-index: 1;
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.hero-copy {
  max-width: min(92vw, 1100px);
  margin: 0 auto;
}

.kicker {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  opacity: 0.95;
  margin: 0 0 clamp(1.1rem, 2.6vw, 2rem) 0;
}

.game-title {
  margin: 0;
  font-family: "Not Jam UI 12", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.45);
}

/* ---------- SEKCJE GŁÓWNE ---------- */

.section-block {
  background: var(--section-bg);
  border-top: 1px solid var(--section-border);
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  min-height: clamp(520px, 80vh, 900px);
}

.section-block.alt {
  background: var(--section-alt);
}

.section-inner {
  max-width: min(92vw, 1100px);
  text-align: left;
  width: 100%;
}

.section-inner.no-max {
  max-width: none;
  width: 100%;
}

.section-title {
  margin: 0 0 0.8rem 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
}

/* --- BLOKI SIDE (TAKE CONTROL / INTERACT / ELIMINATE) --- */

.side {
  min-height: 20vh;
  padding: 4rem 100px;
  margin: 0;
}

.side-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
  width: 100%;
}

.side-copy {
  width: 50%;
  text-align: left;
  font-family: "Manrope", system-ui, sans-serif;
}

.side-kicker {
  margin: 0 0 0.6rem 0;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  color: var(--muted);
  font-family: "Manrope", system-ui, sans-serif;
}

.side-headline {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
}

.side-sub {
  display: inline-block;
  font-weight: 600;
  color: var(--muted);
}

.gallery {
  width: 50%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* --- THUMBS --- */

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin: 0;
}

.thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.thumb video {
  width: 100%;
  height: 100%;
  transform: scale(1.25);
  object-fit: cover;
  object-position: center;
}

/* --- TŁO SECTION 2 --- */

#section-1,
#section-2,
#section-3,
#section-4 {
  border-top-color: transparent;
}

#section-2 {
  position: relative;
  --edge-fade: clamp(80px, 10vw, 140px);
  background: var(--section-bg);
  box-shadow: 0 -1px 0 var(--section-bg) inset, 0 1px 0 var(--section-bg) inset;
}

#section-2 .section-inner {
  position: relative;
  z-index: 1;
}

#section-2::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--section-bg) 0%, transparent 100%) top/100% var(--edge-fade) no-repeat,
    linear-gradient(to top, var(--section-bg) 0%, transparent 100%) bottom/100% var(--edge-fade) no-repeat,
    linear-gradient(rgba(8, 12, 24, 0.55), rgba(8, 12, 24, 0.75)),
    url("image/webp/img4.webp");
  background-position: top, bottom, center, center 55%;
  background-size: 100% var(--edge-fade), 100% var(--edge-fade), 100% 100%, cover;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ---------- SEKCJA SCREENÓW (SECTION 4) ---------- */

.frames-wrap {
  padding: 4rem 100px;
}

#section-4 .frames-wrap {
  padding-top: 0;
}

/* desktop: 3 kolumny (3x2), laptopy później przechodzą na 2 */
.frame-grid {
  list-style: none;
  margin: clamp(12px, 2.2vw, 20px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.frame-grid .thumb {
  aspect-ratio: 16 / 10;
}

#section-4 .frame-grid .thumb {
  overflow: hidden;
}

#section-4 .frame-grid .thumb img {
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.4s ease;
  will-change: transform;
}

#section-4 .frame-grid .thumb:hover {
  transform: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

#section-4 .frame-grid .thumb:hover img {
  transform: scale(1.12);
}

.thumb:has(video) {
  transition: none;
}

.thumb:has(video):hover {
  transform: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* ---------- LIGHTBOX ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 2vw, 16px);
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

.lb-inner {
  position: relative;
  width: 100%;
  max-width: min(98vw, 1920px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lb-figure {
  margin: 0;
  max-width: 100%;
}

.lb-image {
  display: block;
  max-width: 100%;
  max-height: 96vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.lb-caption {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font: 600 0.9rem/1.2 "Manrope", system-ui, sans-serif;
}

.lb-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: none !important;
}

.lb-btn:hover,
.lb-btn:active {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.lb-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.lb-prev {
  position: absolute;
  left: 8px;
  top: 50%;
  margin-top: -24px;
}

.lb-next {
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -24px;
}

body.no-scroll {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* ---------- FOOTER ---------- */

.site-footer {
  background: var(--footer-bg);
  position: relative;
  z-index: 21;
  border-top: none;
  color: rgba(231, 234, 243, 0.72);
}

.site-footer .footer-wrap {
  width: 100%;
  max-width: none;
  height: calc(var(--player-bar-height) + 2 * var(--player-bottom));
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer .legal {
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: left;
}

.site-footer .collab {
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: right;
}

.site-footer .legal,
.site-footer .collab {
  color: rgba(231, 234, 243, 0.7);
}

.site-footer a {
  color: inherit;
  opacity: 0.95;
}

.site-footer a:hover {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .contact {
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
  cursor: pointer;
}

.site-footer .contact:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- PLAYER BAR ---------- */

.player-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--player-bottom);
  width: min(76vw, 720px);
  padding: var(--player-padding-y) 20px;
  border-radius: 9999px;
  background: rgba(28, 30, 34, 0.86);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
  z-index: 25;
  overflow: hidden;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.track-meta-fixed {
  width: var(--meta-width);
  min-width: var(--meta-width);
  max-width: var(--meta-width);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.track-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Manrope", system-ui, sans-serif;
}

.author {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
  font-size: 0.8rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Manrope", system-ui, sans-serif;
}

.progress-wrap {
  flex: var(--progress-grow) 1 auto;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
}

.progress-track {
  position: relative;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #e7eaf3;
  border-radius: 9999px;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(50%, -50%);
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e7eaf3;
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.timecodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 0.75rem/1 "Manrope", system-ui, sans-serif;
  color: var(--muted);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.25rem;
}

.icon-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.icon-btn svg {
  display: block;
}

#volBtn {
  width: 44px;
}

audio {
  display: none;
}

.player-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--pill-rgb, 164, 255, 0), 0.06) 0%, rgba(var(--pill-rgb, 164, 255, 0), 0.1) 45%, rgba(var(--pill-rgb, 164, 255, 0), 0.06) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.player-bar.is-playing::after {
  opacity: 0.22;
}

.player-bar::before {
  content: "";
  position: absolute;
  inset: -20% -8%;
  pointer-events: none;
  background:
    radial-gradient(170px 170px at 18% 42%, rgba(var(--pill-rgb, 164, 255, 0), 0.16), rgba(0, 0, 0, 0) 62%),
    radial-gradient(130px 130px at 46% 72%, rgba(var(--pill-rgb, 164, 255, 0), 0.14), rgba(0, 0, 0, 0) 60%),
    radial-gradient(160px 160px at 74% 34%, rgba(var(--pill-rgb, 164, 255, 0), 0.15), rgba(0, 0, 0, 0) 62%),
    radial-gradient(120px 120px at 92% 66%, rgba(var(--pill-rgb, 164, 255, 0), 0.12), rgba(0, 0, 0, 0) 58%);
  opacity: 0;
  transform: translateX(-6%) translateY(0);
  transition: opacity 0.28s ease;
  will-change: transform, opacity;
}

.player-bar.is-playing::before {
  opacity: 0.22;
  animation: pillBokeh 16s ease-in-out infinite;
}

@keyframes pillBokeh {
  0% {
    transform: translateX(-6%) translateY(0);
  }
  50% {
    transform: translateX(6%) translateY(-2%);
  }
  100% {
    transform: translateX(-6%) translateY(0);
  }
}

.player-bar.is-playing {
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
}

.player-bar .progress-fill {
  background: rgba(var(--pill-rgb, 164, 255, 0), 0.9);
}

.player-bar .progress-thumb {
  border-color: rgba(var(--pill-rgb, 164, 255, 0), 0.35);
}

/* ---------- TEAM (SECTION 5) ---------- */

#section-5.section-block {
  position: relative;
  background: transparent;
  overflow: hidden;
  height: 90vh;
  padding: 0;
}

@supports (height: 100svh) {
  #section-5.section-block {
    height: 90svh;
  }
}

#section-5 .team-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#section-5 .team-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.15);
}

#section-5::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 12, 24, var(--team-tint));
}

#section-5::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, var(--section-alt) 0%, rgba(4, 8, 18, 0) 18%);
}

#section-5 .section-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: clamp(24px, 4vw, 48px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-inner {
  max-width: min(96vw, 1300px);
}

.team-title {
  margin: 0 0 clamp(24px, 5vw, 48px);
  text-align: center;
  text-transform: uppercase;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.95;
}

.section-overline {
  margin: 0 0 clamp(10px, 1.8vw, 14px);
  font: 700 0.9rem/1 "Manrope", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.95;
}

.team-group + .team-group {
  margin-top: clamp(40px, 8vw, 120px);
}

.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 4vw, 48px);
}

.person-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: clamp(8px, 1vw, 12px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.person-link,
.person-link * {
  transition: color 0.2s ease, opacity 0.2s ease !important;
}

.person-link:hover .person-name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.person-name {
  margin: 0 0 0.35rem 0;
  font-family: "Jersey 10", "Manrope", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: clamp(2.2rem, 6.8vw, 4rem);
  line-height: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.person-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(231, 234, 243, 0.9);
}

.support .person-name {
  font-size: clamp(1.8rem, 5.2vw, 2.8rem);
}

#section-5 .person-link:hover,
#section-5 .person-link:focus-visible {
  border-color: rgba(164, 255, 0, 0.55);
}

#section-5 .person-link:hover .person-name,
#section-5 .person-link:focus-visible .person-name {
  color: #a4ff00;
  text-decoration: none;
}

#section-5 .person-link:hover .person-roles li,
#section-5 .person-link:focus-visible .person-roles li {
  color: rgba(164, 255, 0, 0.95);
}

/* ---------- INNE ELEMENTY ---------- */

.compare3 {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.compare3.is-active {
  opacity: 1;
}

.compare3 .shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.compare3.stage-0 .shot-0 {
  opacity: 1;
}

.compare3.stage-1 .shot-1 {
  opacity: 1;
}

.compare3.stage-2 .shot-2 {
  opacity: 1;
}

.stamp {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  background: rgba(28, 30, 34, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.stamp span {
  font: 700 0.8rem/1 "Manrope", system-ui, sans-serif;
  letter-spacing: 0.06em;
  color: #e7eaf3;
}

.scene-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.scene-stack .compare3 {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.scene-stack .compare3.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.scene-stack .compare3.is-inactive {
  opacity: 0;
  z-index: 1;
}

.timeline3 {
  width: 100%;
  max-width: 100%;
  margin: clamp(12px, 2vw, 18px) 0 0 0;
}

.timeline3 .ticks {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.5rem 0;
  font: 600 0.85rem/1.2 "Manrope", system-ui, sans-serif;
  color: var(--muted);
  user-select: none;
}

.timeline3 .track {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  pointer-events: none;
  margin: 0;
}

.timeline3 .track::before,
.timeline3 .track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0.65;
}

.timeline3 .track::before {
  left: 33.333%;
}

.timeline3 .track::after {
  left: 66.666%;
}

.timeline3 .bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #e7eaf3;
  border-radius: 9999px;
}

.timeline3 .bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(50%, -50%);
  border-radius: 50%;
  background: #e7eaf3;
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.global-fade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(30vh, 260px);
  pointer-events: none;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(8, 12, 24, 0) 0%, rgba(8, 12, 24, 0.35) 40%, rgba(8, 12, 24, 0.65) 70%, rgba(8, 12, 24, 0.92) 90%, rgba(8, 12, 24, 1) 100%);
}

.global-fade-top {
  display: none !important;
}

.s1-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 0.9;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  letter-spacing: -0.01em;
}

.side-wrap.rev {
  flex-direction: row-reverse;
}

.side-copy.align-right {
  text-align: right;
}

.people-list .person-link {
  min-width: 0;
}

/* ---------- KOLORY SŁÓW ---------- */

.word-multiple {
  color: #a4ff00;
}

.word-interact {
  color: #ff9900;
}

.word-virus {
  color: #bd6cff;
}

/* ---------- BREAKPOINT: STACK UKŁAD TEKST ↑ / VIDEO ↓ ---------- */
/* tu ustawiamy kiedy sekcje zaczynają przechodzić na kolumnę – 
   1280px ≈ moment, kiedy na laptopach zaczyna się robić ciasno.
   Jak chcesz, możesz zmienić 1280 na 1200 / 1100. */

@media screen and (max-width: 1400px) {
  .side-wrap,
  .side-wrap.rev {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .side {
    padding-inline: 72px;
  }

  .side-copy,
  .gallery {
    width: 100%;
  }

  .gallery {
    margin-left: 0;
  }

  .gallery .thumb {
    width: 100%;
    max-width: 100%;
  }

  .side-copy.align-right {
    text-align: left;
  }

  /* grid screenów – na laptopie (wężej) 2 kolumny, żeby nie były „mikro” */
  .frame-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- BREAKPOINT: max-height 1080 ---------- */

@media screen and (max-height: 1080px) {
  :root {
    --footer-safe: 32px;
    --player-bottom: 18px;
  }

  .section-block {
    min-height: 74vh;
    padding: clamp(20px, 3.2vw, 40px);
  }

  .side {
    padding: 3.2rem 80px;
  }

  .frames-wrap {
    padding: 3.2rem 80px;
  }

  .s1-title,
  .side-headline {
    font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  }

  .lb-image {
    max-height: 90vh;
  }

  #section-5.section-block {
    height: auto;
    min-height: 85vh;
    padding: clamp(24px, 3.5vw, 44px);
  }

  #section-5 .section-inner {
    padding: clamp(20px, 3vw, 40px);
    overflow: visible;
    justify-content: center;
  }

  .team-title {
    margin-bottom: clamp(20px, 3vw, 32px);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  }

  .team-group + .team-group {
    margin-top: clamp(28px, 4vw, 48px);
  }

  .person-name {
    font-size: clamp(2rem, 3.6vw, 3rem);
  }

  .support .person-name {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  }

  .people-list {
    gap: clamp(18px, 3.2vw, 30px);
  }

  .player-bar {
    width: min(78vw, 700px);
  }

  .track-meta-fixed {
    max-width: 190px;
    min-width: 190px;
  }
}

/* ---------- BREAKPOINT: max-aspect-ratio 4/3 (np. 4:3, 3:2) ---------- */

@media screen and (max-aspect-ratio: 4/3) and (min-width: 900px) {
  .media {
    min-height: 70vh;
  }

  .section-block {
    min-height: 70vh;
    padding-block: 32px;
  }

  .side {
    padding-inline: 72px;
  }

  .frames-wrap {
    padding-inline: 72px;
  }

  #section-5.section-block {
    min-height: 90vh;
  }
}

/* ---------- BREAKPOINT: max-width 900 (tablety / małe laptopy) ---------- */

@media screen and (max-width: 900px) {
  :root {
    --footer-safe: 36px;
    --player-bottom: 16px;
    --player-padding-y: 10px;
    --player-bar-height: calc(var(--player-audio-height) + 2 * var(--player-padding-y));
    --meta-width: 200px;
    --progress-grow: 1.4;
  }

  header.topbar {
    top: 28px;
  }

  .logo-icon {
    height: 32px;
  }

  .topbar-inner {
    padding-inline: clamp(14px, 5vw, 28px);
  }

  .lang-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }

  .mode-btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }

  .actions-sep {
    height: 22px;
    margin: 0 0.5rem;
  }

  .media {
    min-height: 60vh;
  }

  .media::before {
    height: 18vh;
  }

  .section-block {
    min-height: auto;
    padding: clamp(24px, 5vw, 40px) 16px;
  }

  .side {
    padding: 2.6rem 16px;
  }

  .frames-wrap {
    padding: 2.6rem 16px;
  }

  .s1-title,
  .side-headline {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .game-title {
    font-size: clamp(2.4rem, 11vw, 4.2rem);
  }

  /* większy odstęp: ELIMINATE → SCREENY; mniejszy: SCREENY → TEAM */
  #section-3 {
    padding-bottom: 36px;
  }

  #section-4 {
    padding-top: 36px;
    padding-bottom: 16px;
  }

  #section-5.section-block {
    padding-top: 16px;
    min-height: 90vh;
  }

  /* people -> 1 kolumna */
  .people-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-title {
    margin-bottom: clamp(18px, 3vw, 28px);
  }

  .site-footer .footer-wrap {
    padding-inline: 16px;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .player-bar {
    width: min(88vw, 520px);
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 9999px;
  }

  .footer-content {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .track-meta-fixed {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
  }
}

/* ---------- BREAKPOINT: max-width 820 ---------- */

@media (max-width: 820px) {
  .people-list {
    grid-template-columns: 1fr;
    gap: clamp(14px, 4vw, 22px);
  }
}

/* ---------- BREAKPOINT: max-width 640 (telefony) ---------- */

@media screen and (max-width: 640px) {
  header.topbar {
    top: 18px;
  }

  .topbar-inner {
    padding-inline: 12px;
  }

  .logo-icon {
    height: 26px;
  }

  .lang-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
  }

  .section-block {
    padding-block: 24px;
    padding-inline: 12px;
  }

  .side {
    padding: 2.2rem 12px;
  }

  .frames-wrap {
    padding: 2.2rem 12px;
  }

  /* screeny – jedna kolumna na bardzo małych szerokościach */
  .frame-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #section-5.section-block {
    min-height: 95vh;
    padding-inline: 12px;
  }

  #section-5 .section-inner {
    padding-inline: 4px;
  }

  .person-name {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .person-roles {
    font-size: clamp(0.8rem, 3.2vw, 0.95rem);
  }

  .global-fade {
    display: none;
  }

  .player-bar {
    width: calc(100vw - 24px);
    bottom: 14px;
    padding-inline: 14px;
    border-radius: 9999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  }

  .footer-content {
    gap: 0.6rem;
  }

  .track-title {
    font-size: 0.9rem;
  }

  .author {
    font-size: 0.75rem;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  #volBtn {
    width: 36px;
  }

  .player-bar .progress-wrap {
    display: none !important;
  }

  .game-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .site-footer .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    row-gap: 4px;
  }

  .site-footer .legal,
  .site-footer .contact {
    text-align: left;
  }
}

/* ---------- BREAKPOINT: max-width 360 ---------- */

@media (max-width: 360px) {
  .author {
    display: none;
  }
}

/* ---------- BREAKPOINT: min-width 901 ---------- */

@media (min-width: 901px) {
  .media .overlay {
    left: 0;
    right: 0;
    top: 45svh;
    bottom: auto;
    height: auto;
    transform: translateY(-50%);
    display: block;
    text-align: center;
    padding: clamp(1rem, 3vw, 2rem);
  }

  .player-bar {
    width: min(76vw, 720px);
  }
}
