/* ==========================================================================
   TheMondii — one-pager
   Mobile-first. Kolory i fonty w zmiennych poniżej.
   ========================================================================== */

:root {
  --bg: #0E0E10;
  --bg-2: #141419;
  --surface: rgba(22, 22, 30, 0.78);
  --surface-2: rgba(32, 32, 44, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #EFEFF1;
  --muted: #A6A6B8;
  --dim: #6E6E80;

  --accent: #9146FF;
  --accent-rgb: 145, 70, 255;
  --accent-2: #00F0FF;
  --accent-2-rgb: 0, 240, 255;
  --live: #EB0400;
  --todo: #FFC94D;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --nav-h: 64px;
}

/* Tryb party (Konami Code) — podmiana palety */
html.party {
  --accent: #FF2BD6;
  --accent-rgb: 255, 43, 214;
  --accent-2: #FFE600;
  --accent-2-rgb: 255, 230, 0;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

.container { width: min(100% - 32px, 1180px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Oznaczenie danych do uzupełnienia — usuń klasę .todo po wpisaniu treści */
.todo {
  color: var(--todo);
  background: rgba(255, 201, 77, 0.08);
  outline: 1px dashed rgba(255, 201, 77, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
  padding: 0 .2em;
  -webkit-text-fill-color: var(--todo);
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 10001;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Warstwy tła ---------- */
.bg-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  transition: opacity .4s linear;
}
body::before { /* winieta */
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(14, 14, 16, .85) 100%),
    linear-gradient(to bottom, transparent 70%, rgba(14, 14, 16, .6));
}
body::after { /* subtelne scanlines */
  content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}
main, .footer { position: relative; z-index: 2; overflow-x: clip; } /* clip tu, nie na body — na telefonach body nie blokuje poszerzania strony */

/* ---------- Pasek postępu ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(var(--accent-2-rgb), .7);
  will-change: transform;
}

/* ---------- Kursor ---------- */
.cursor-dot, .cursor-ring, .trail-canvas { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor iframe { cursor: auto !important; }
.has-cursor .trail-canvas { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9997; pointer-events: none; }
.has-cursor .cursor-dot,
.has-cursor .cursor-ring {
  display: block; position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; opacity: 0; transition: opacity .25s, width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), background-color .25s, border-color .25s;
  will-change: transform;
}
.has-cursor .cursor-dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2), 0 0 22px rgba(var(--accent-2-rgb), .6);
}
.has-cursor .cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(var(--accent-rgb), .8);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .35), inset 0 0 10px rgba(var(--accent-rgb), .25);
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-hover .cursor-ring {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  background: rgba(var(--accent-rgb), .12); border-color: var(--accent-2);
}
.cursor-hover .cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.cursor-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* ---------- Intro ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path .85s var(--ease-io);
}
.js.no-intro .intro { display: none; }
.intro.is-out { clip-path: inset(0 0 100% 0); }
.intro__inner { text-align: center; padding: 16px; }
.intro__meta { color: var(--dim); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 18px; }
.intro__word {
  font: 700 clamp(2.8rem, 13vw, 7.5rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  min-height: 1em;
  text-shadow: 0 0 30px rgba(var(--accent-rgb), .55);
}
.intro__word .g { color: var(--accent-2); text-shadow: 0 0 18px var(--accent-2); }
.intro__caret {
  display: inline-block; width: .07em; height: .85em; margin-left: .05em; vertical-align: -.06em;
  background: var(--accent-2); box-shadow: 0 0 14px var(--accent-2);
  animation: blink .8s steps(1) infinite;
}
.intro.is-glitch .intro__word { animation: intro-glitch .5s steps(2) both; }
.intro__bar { width: min(260px, 60vw); height: 2px; margin: 28px auto 0; background: var(--line); overflow: hidden; border-radius: 2px; }
.intro__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; animation: intro-bar 1.6s var(--ease-out) forwards; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes intro-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-glitch {
  0% { transform: translate(0); text-shadow: -4px 0 var(--accent-2), 4px 0 var(--accent); }
  25% { transform: translate(-3px, 2px) skewX(-6deg); }
  50% { transform: translate(3px, -1px); text-shadow: 4px 0 var(--accent-2), -4px 0 var(--accent); }
  75% { transform: translate(-1px, 0) skewX(4deg); }
  100% { transform: none; }
}

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 14, 16, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.1rem/1 var(--font-display); letter-spacing: -0.02em; }
.nav__logo img { border-radius: 9px; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__links {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px; background: rgba(14, 14, 16, .96);
  border-bottom: 1px solid var(--line);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
}
.nav-open .nav__links { opacity: 1; transform: none; visibility: visible; }
.nav__links a {
  font: 500 1.05rem/1 var(--font-display); color: var(--muted);
  padding: 14px 12px; border-radius: 10px; position: relative;
  transition: color .2s, background-color .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav__toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: 12px; border: 1px solid var(--line-2); }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out); }
.nav-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links {
    position: static; flex-direction: row; padding: 0; gap: 2px;
    background: none; border: 0; opacity: 1; visibility: visible; transform: none;
  }
  .nav__links a { font-size: .95rem; padding: 10px 14px; }
  .nav__links a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
    border-radius: 2px;
  }
  .nav__links a:hover, .nav__links a.is-active { background: none; }
  .nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
}

/* ---------- Wskaźnik LIVE ---------- */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  font: 600 .72rem/1 var(--mono); letter-spacing: .12em;
  color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
  transition: color .3s, background-color .3s, border-color .3s, box-shadow .3s;
}
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: live-pulse 2.4s var(--ease-out) infinite; opacity: .5;
}
[data-live="1"] .live-badge { color: #fff; background: rgba(235, 4, 0, .16); border-color: rgba(235, 4, 0, .55); box-shadow: 0 0 18px rgba(235, 4, 0, .35); }
[data-live="1"] .live-dot { background: var(--live); box-shadow: 0 0 10px var(--live); }
[data-live="1"] .live-dot::after { animation-duration: 1.4s; opacity: .9; }
@keyframes live-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Przyciski ---------- */
.btn {
  --glow: var(--accent-rgb);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 14px;
  font: 600 1rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .45s var(--ease-out), box-shadow .3s, background-color .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary {
  color: #fff; background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 8px 28px -6px rgba(var(--glow), .7), 0 0 22px rgba(var(--glow), .35);
}
.btn--primary::before { /* połysk */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 10px 40px -4px rgba(var(--glow), .9), 0 0 50px rgba(var(--glow), .55), 0 0 90px rgba(var(--accent-2-rgb), .18);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost {
  --glow: var(--accent-2-rgb);
  color: var(--text); background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(var(--accent-2-rgb), .45);
}
.btn--ghost:hover {
  color: var(--accent-2); border-color: var(--accent-2);
  box-shadow: 0 0 24px rgba(var(--glow), .35), inset 0 0 14px rgba(var(--glow), .15);
}
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .45) 0%, rgba(var(--accent-2-rgb), .25) 40%, transparent 70%);
  transform: scale(0); animation: ripple .7s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 32px) 0 96px;
}
.hero__grid { display: grid; gap: 36px; justify-items: center; text-align: center; }
.hero__copy { display: grid; gap: 22px; justify-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: .85rem; letter-spacing: .04em; }
.glitch {
  position: relative;
  font-size: clamp(3.4rem, 17vw, 9.5rem); font-weight: 700; line-height: .9; letter-spacing: -0.055em;
  text-shadow: 0 0 40px rgba(var(--accent-rgb), .25);
}
.glitch .grad { filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), .45)); }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.glitch::before { color: var(--accent-2); animation: glitch-a 7s steps(1) infinite 2s; }
.glitch::after { color: var(--accent); animation: glitch-b 7s steps(1) infinite 2s; }
@keyframes glitch-a {
  0%, 88%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  89% { opacity: .9; transform: translate(-5px, 2px); clip-path: inset(8% 0 62% 0); }
  91% { transform: translate(4px, -2px); clip-path: inset(58% 0 18% 0); }
  93% { transform: translate(-3px, 0); clip-path: inset(32% 0 44% 0); }
  95% { opacity: .9; transform: translate(2px, 1px); clip-path: inset(75% 0 4% 0); }
  96% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 88%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  89% { opacity: .9; transform: translate(5px, -1px); clip-path: inset(62% 0 10% 0); }
  91% { transform: translate(-4px, 2px); clip-path: inset(12% 0 70% 0); }
  94% { transform: translate(3px, 0); clip-path: inset(40% 0 35% 0); }
  96% { opacity: 0; }
}
.hero__tagline { font-size: clamp(1.1rem, 4vw, 1.45rem); color: var(--muted); max-width: 34ch; line-height: 1.45; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.hero__status { color: var(--dim); font-size: .82rem; letter-spacing: .03em; }
.hero__status b { color: var(--accent-2); font-weight: 600; }

/* Wejście elementów hero po intro */
.js [data-hero] { opacity: 0; transform: translate3d(0, 28px, 0); }
.js.is-ready [data-hero] {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 100ms);
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-2);
  display: grid; justify-items: center; padding-top: 8px;
}
.scroll-hint span { width: 3px; height: 8px; border-radius: 3px; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); animation: scroll-hint 1.8s var(--ease-out) infinite; }
@keyframes scroll-hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Avatar */
.avatar {
  position: relative; display: block;
  width: clamp(180px, 50vw, 330px); aspect-ratio: 1;
  border-radius: 50%; perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}
.avatar__glow {
  position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .55), rgba(var(--accent-2-rgb), .15) 45%, transparent 68%);
  filter: blur(18px); animation: breathe 5s ease-in-out infinite;
}
.avatar__ring {
  position: absolute; inset: -9px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), transparent 38%, transparent 50%, var(--accent) 72%, var(--accent-2) 90%, var(--accent));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: spin 7s linear infinite;
}
.avatar__inner {
  position: absolute; inset: 0; display: block; border-radius: 50%;
  transform-style: preserve-3d; animation: float 6s ease-in-out infinite;
}
.avatar__img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid var(--bg); background: var(--bg-2); }
.avatar.is-bump .avatar__img { animation: bump .25s var(--ease-out); }
.avatar.is-spin .avatar__inner { animation: egg-spin 1.3s var(--ease-out); }
.avatar__bubble {
  position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 5;
  width: max-content; max-width: min(300px, 80vw);
  padding: 12px 16px; border-radius: 14px;
  background: #fff; color: #111; font: 600 .92rem/1.4 var(--font-body); text-align: left;
  box-shadow: 0 12px 40px -8px rgba(var(--accent-rgb), .6);
  transform: translate(-50%, 10px) scale(.9); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.avatar__bubble::after { content: ''; position: absolute; left: 50%; top: 100%; translate: -50% -1px; border: 9px solid transparent; border-top-color: #fff; }
.avatar__bubble.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes bump { 50% { transform: scale(.94); } }
@keyframes egg-spin { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(540deg) scale(1.12); } 100% { transform: rotateY(720deg) scale(1); } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.25fr 1fr; text-align: left; justify-items: start; gap: 48px; }
  .hero__media { order: 2; justify-self: center; }
  .hero__copy { justify-items: start; }
  .eyebrow, .hero__cta { justify-content: flex-start; }
}

/* ---------- Sekcje ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head__label { color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.sec-head__label span { color: var(--accent-2); margin-right: 6px; }
.sec-head h2, .collab h2 { font-size: clamp(2.2rem, 8vw, 4.4rem); font-weight: 700; }
.sec-head__sub { color: var(--muted); max-width: 60ch; }

/* Reveal przy scrollu */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 44px, 0);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.js [data-reveal="left"] { transform: translate3d(-48px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(48px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 200ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* ---------- Karty (baza + tilt) ---------- */
.card {
  position: relative; display: block; height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)), var(--surface);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .3s;
  will-change: transform;
}
.card:hover { border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 20px 50px -20px rgba(var(--accent-rgb), .5); }
.card.is-tilting { transition: transform .1s linear, border-color .3s, box-shadow .3s; }
.card__glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .14), transparent 55%);
  transition: opacity .3s;
}
.card:hover .card__glare { opacity: 1; }

/* ---------- Player ---------- */
.player { display: grid; gap: 16px; }
.player__frame, .player__chat {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .25), 0 30px 80px -30px rgba(var(--accent-rgb), .6), 0 0 60px -20px rgba(var(--accent-2-rgb), .3);
}
.player__frame { aspect-ratio: 16 / 9; }
.player__frame iframe, .player__chat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--muted); font-size: .85rem; text-align: center; padding: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(var(--accent-rgb), .25), transparent 60%), #0a0a0d;
}
.player__placeholder a { color: var(--accent-2); text-decoration: underline; }
.player__play {
  width: 72px; height: 72px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), .7);
  clip-path: circle(50%); position: relative;
}
.player__play::after { content: ''; position: absolute; left: 29px; top: 23px; border: 13px solid transparent; border-left: 20px solid #fff; border-right: 0; }
@media (min-width: 1100px) {
  .player.has-chat { grid-template-columns: 1fr 340px; }
  .player__chat:not([hidden]) { display: block; }
}
.player__chat { display: none; }

/* ---------- O mnie ---------- */
.about__body { display: grid; gap: 32px; }
.about__text { display: grid; gap: 18px; color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.about__text .lead { color: var(--text); font-size: clamp(1.2rem, 3.6vw, 1.55rem); line-height: 1.5; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.chip {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.chip:nth-child(even) { border-left-color: var(--accent-2); }
.chip__k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.chip__v { font-weight: 600; text-align: right; }
@media (min-width: 900px) {
  .about__body { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 64px; }
}

/* ---------- Harmonogram ---------- */
.schedule { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.schedule > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.day { padding: 20px 18px; display: grid; gap: 10px; align-content: start; min-height: 168px; }
.day__short { font: 700 .78rem/1 var(--mono); letter-spacing: .16em; color: var(--accent-2); transform: translateZ(30px); }
.day__name { font-size: 1.15rem; font-weight: 600; transform: translateZ(24px); }
.day__time { font: 700 1.5rem/1 var(--font-display); letter-spacing: -0.02em; transform: translateZ(40px); }
.day__title { color: var(--muted); font-size: .88rem; line-height: 1.4; transform: translateZ(20px); }
.day--off { background: rgba(255, 255, 255, .015); border-style: dashed; }
.day--off .day__short, .day--off .day__time { color: var(--dim); }
.day--off .day__time { font-size: 1.05rem; font-family: var(--mono); letter-spacing: .08em; }
.day--maybe { border-style: dashed; border-color: rgba(var(--accent-rgb), .45); }
.day--maybe .day__time { font-size: 1.05rem; font-family: var(--mono); letter-spacing: .08em; color: var(--accent); }
.day--today { border-color: rgba(var(--accent-2-rgb), .6); box-shadow: 0 0 0 1px rgba(var(--accent-2-rgb), .25), 0 0 40px -10px rgba(var(--accent-2-rgb), .5); }
.day__badge {
  position: absolute; top: 14px; right: 14px;
  font: 700 .62rem/1 var(--mono); letter-spacing: .14em;
  padding: 5px 8px; border-radius: 6px; color: #001014; background: var(--accent-2);
  box-shadow: 0 0 14px rgba(var(--accent-2-rgb), .7);
}
@media (min-width: 640px) { .schedule { grid-template-columns: repeat(4, 1fr); } .schedule > :last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 1100px) { .schedule { grid-template-columns: repeat(7, 1fr); } .day { min-height: 220px; } }

/* ---------- Sociale ---------- */
.socials { display: grid; gap: 12px; }
.social { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.social__icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
  color: var(--text); transform: translateZ(36px);
  transition: color .3s, background-color .3s, box-shadow .3s, border-color .3s;
}
.social__icon svg { width: 24px; height: 24px; }
.social:hover .social__icon { color: var(--brand); border-color: var(--brand); box-shadow: 0 0 22px -2px var(--brand); }
.social__body { display: grid; gap: 2px; min-width: 0; transform: translateZ(24px); }
.social__name { font: 600 1.1rem/1.2 var(--font-display); }
.social__handle { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social__arrow { margin-left: auto; font-size: 1.3rem; color: var(--dim); transition: transform .3s var(--ease-out), color .3s; }
.social:hover .social__arrow { color: var(--accent-2); transform: translate(3px, -3px); }
.social[aria-disabled="true"] { opacity: .7; }
@media (min-width: 640px) { .socials { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .socials { grid-template-columns: repeat(3, 1fr); } .social { padding: 24px; } }

/* ---------- Współpraca ---------- */
.collab {
  position: relative; display: grid; gap: 28px;
  padding: clamp(28px, 6vw, 64px); border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(var(--accent-rgb), .28), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(var(--accent-2-rgb), .14), transparent 60%),
    var(--surface-2);
  border: 1px solid rgba(var(--accent-rgb), .35);
  overflow: hidden;
}
.collab__copy { display: grid; gap: 16px; }
.collab__copy p:last-child { color: var(--muted); max-width: 56ch; }
.collab__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.collab__mail { width: 100%; color: var(--dim); font-size: .85rem; }
@media (min-width: 900px) {
  .collab { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .collab__actions { justify-content: flex-end; }
  .collab__mail { text-align: right; }
}

/* ---------- Stopka ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); background: rgba(10, 10, 12, .6); }
.footer__inner { display: grid; gap: 22px; justify-items: center; text-align: center; }
.footer__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer__socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line-2); color: var(--muted);
  transition: color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.footer__socials a:hover { color: var(--brand); border-color: var(--brand); box-shadow: 0 0 18px -4px var(--brand); transform: translateY(-3px); }
.footer__socials svg { width: 20px; height: 20px; }
.footer__copy { color: var(--dim); font-size: .88rem; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer__note { color: #4d4d5c; font-size: .7rem; }
.footer__secret {
  width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 6px;
  color: var(--dim); opacity: .22;
  transition: opacity .3s, color .3s, filter .3s, transform .3s var(--ease-out);
}
.footer__secret svg { width: 14px; height: auto; image-rendering: pixelated; }
.footer__secret:hover, .footer__secret:focus-visible { opacity: 1; color: var(--accent-2); filter: drop-shadow(0 0 6px var(--accent-2)); transform: translateY(-2px) rotate(-8deg); }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: auto 1fr auto; text-align: left; justify-items: stretch; align-items: center; }
  .footer__socials { justify-content: center; }
  .footer__note { grid-column: 1 / -1; text-align: center; }
}

/* ---------- Easter eggi: UI ---------- */
.egg-counter {
  position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  font: 600 .78rem/1 var(--mono); color: var(--muted);
  background: rgba(14, 14, 16, .82); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: .7; transition: opacity .3s, border-color .3s, color .3s;
}
.egg-counter:hover { opacity: 1; }
.egg-counter b { color: var(--accent-2); }
.egg-counter.is-pop { animation: egg-pop .7s var(--ease-out); opacity: 1; border-color: var(--accent-2); }
.egg-counter.is-done { color: var(--todo); border-color: var(--todo); opacity: 1; }
@keyframes egg-pop { 30% { transform: scale(1.3) rotate(-6deg); } 60% { transform: scale(.95) rotate(3deg); } }

.party-stop {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 90;
  padding: 10px 14px; border-radius: 999px; font: 600 .82rem/1 var(--mono);
  color: #111; background: var(--accent-2); box-shadow: 0 0 24px rgba(var(--accent-2-rgb), .6);
}
.party-stop[hidden] { display: none; }

.toasts {
  position: fixed; left: 50%; top: calc(var(--nav-h) + 12px); translate: -50% 0; z-index: 9500;
  display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none;
}
.toast {
  padding: 13px 16px; border-radius: 14px; font-size: .92rem;
  background: rgba(20, 20, 28, .95); border: 1px solid rgba(var(--accent-rgb), .5);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .8), 0 0 24px -6px rgba(var(--accent-rgb), .6);
  opacity: 0; transform: translateY(-14px) scale(.97);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.toast.is-in { opacity: 1; transform: none; }
.toast b { color: var(--accent-2); }

.emote-layer { position: fixed; inset: 0; z-index: 9400; pointer-events: none; overflow: hidden; }
.emote { position: absolute; translate: -50% -50%; font-size: clamp(1.8rem, 5vw, 2.8rem); will-change: transform, opacity; user-select: none; }
.emote--txt {
  font: 700 clamp(1.4rem, 4vw, 2.2rem)/1 var(--font-display); letter-spacing: -0.03em;
  color: var(--accent-2); text-shadow: 0 0 14px var(--accent-2), 2px 2px 0 var(--accent);
}

/* Party: dodatkowe efekty */
html.party .glitch .grad { animation: hue 2.2s linear infinite; }
html.party .avatar__ring { animation-duration: 1.4s; }
html.party .live-dot { background: var(--accent-2); }
@keyframes hue { to { filter: hue-rotate(360deg) drop-shadow(0 0 22px rgba(var(--accent-rgb), .6)); } }

/* ---------- Modale ---------- */
.modal {
  width: min(460px, calc(100% - 24px)); max-height: calc(100% - 24px);
  padding: 20px; border-radius: 22px; color: var(--text);
  background: linear-gradient(160deg, #1a1a24, #101016);
  border: 1px solid rgba(var(--accent-rgb), .5);
  box-shadow: 0 30px 90px -20px rgba(var(--accent-rgb), .6), 0 0 0 1px rgba(255, 255, 255, .04) inset;
}
.modal[open] { animation: modal-in .45s var(--ease-out); }
.modal::backdrop { background: rgba(5, 5, 8, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal__head h2 { font-size: 1.3rem; }
.modal__close { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); flex: none; transition: border-color .2s, color .2s; }
.modal__close:hover { border-color: var(--accent-2); color: var(--accent-2); }
.modal p { color: var(--muted); }
.modal__small { font-size: .85rem; margin-top: 10px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.modal__actions .btn { flex: 1 1 160px; min-height: 46px; padding: 12px 18px; font-size: .92rem; }
.secret-phrase {
  margin-top: 14px; padding: 16px; border-radius: 14px; text-align: center;
  font-size: 1.05rem; font-weight: 700; color: var(--text) !important;
  background: rgba(var(--accent-2-rgb), .08); border: 1px dashed rgba(var(--accent-2-rgb), .6);
}

.snake__hud { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.snake__hud b { color: var(--accent-2); }
.snake__canvas {
  width: 100%; aspect-ratio: 1; border-radius: 14px; touch-action: none;
  border: 1px solid rgba(var(--accent-2-rgb), .35);
  box-shadow: 0 0 30px -8px rgba(var(--accent-2-rgb), .45) inset;
}
.snake__pad {
  display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 48px);
  gap: 6px; justify-content: center; margin-top: 14px;
  grid-template-areas: ". up ." "left pause right" ". down .";
}
.snake__pad button {
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  font-size: 1rem; color: var(--muted); transition: background-color .15s, color .15s;
  touch-action: manipulation;
}
.snake__pad button:active { background: rgba(var(--accent-rgb), .35); color: #fff; }
.snake__pad [data-dir="up"] { grid-area: up; }
.snake__pad [data-dir="left"] { grid-area: left; }
.snake__pad [data-dir="pause"] { grid-area: pause; font-size: .8rem; }
.snake__pad [data-dir="right"] { grid-area: right; }
.snake__pad [data-dir="down"] { grid-area: down; }
.snake__help { text-align: center; font-size: .72rem; margin-top: 12px; color: var(--dim) !important; }
@media (hover: hover) and (pointer: fine) { .snake__pad { display: none; } }

/* Pad do Konami Code (telefon: przytrzymaj „TheMondii” w menu) */
.nav__logo { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pad__hint { text-align: center; margin-bottom: 14px; }
.pad__screen {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px;
  padding: 12px; border-radius: 12px; margin-bottom: 18px;
  background: #07070b; border: 1px solid rgba(var(--accent-2-rgb), .35);
  box-shadow: inset 0 0 20px rgba(var(--accent-2-rgb), .12);
}
.pad__screen span {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px;
  font-size: .85rem; font-weight: 700; color: var(--accent-2);
  background: rgba(255, 255, 255, .04); text-shadow: 0 0 8px var(--accent-2);
}
.pad__screen.is-wrong { animation: pad-shake .45s; border-color: var(--live); }
.pad__screen.is-ok { border-color: var(--accent-2); box-shadow: 0 0 30px rgba(var(--accent-2-rgb), .5); }
@keyframes pad-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
#padDialog { max-width: calc(100vw - 24px); overflow-x: hidden; }
.pad__screen { min-width: 0; }
.pad { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 2px 6px; }
.pad__dpad { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); gap: 4px; grid-template-areas: ". u ." "l . r" ". d ."; }
.pad__dpad button, .pad__ab button {
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
  color: var(--text); font-size: 1.1rem; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .1s, transform .1s;
}
.pad__dpad button:active, .pad__ab button:active { background: rgba(var(--accent-rgb), .45); transform: scale(.94); }
.pad__dpad [data-k="arrowup"] { grid-area: u; }
.pad__dpad [data-k="arrowleft"] { grid-area: l; }
.pad__dpad [data-k="arrowright"] { grid-area: r; }
.pad__dpad [data-k="arrowdown"] { grid-area: d; }
.pad__ab { display: flex; gap: 10px; transform: rotate(-18deg); }
.pad__ab button { width: 54px; height: 54px; border-radius: 50%; font: 700 1.2rem/1 var(--font-display); background: rgba(var(--accent-rgb), .25); border-color: rgba(var(--accent-rgb), .6); }

/* Ukryty czat do „gg” (telefon: przytrzymaj wskaźnik LIVE/OFFLINE w hero) */
.hero .live-badge { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.chat__log {
  display: grid; gap: 8px; align-content: end;
  min-height: 140px; max-height: 40vh; overflow-y: auto;
  padding: 14px; border-radius: 12px; margin-bottom: 12px;
  background: #07070b; border: 1px solid var(--line-2); font-size: .92rem;
}
.chat__log p { color: var(--text) !important; line-height: 1.45; word-break: break-word; }
.chat__form { display: flex; gap: 8px; }
.chat__input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px;
  font: 400 16px/1 var(--font-body); color: var(--text); /* 16px = brak auto-zoomu na iOS */
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); outline: none;
}
.chat__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.chat__send { min-height: 46px; padding: 10px 18px; font-size: .92rem; }

/* Udawany terminal (telefon: przytrzymaj © w stopce) — zamiennik konsoli F12 */
.footer__c { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; padding: 4px; margin: -4px; }
.modal--term { background: #050507; border-color: rgba(var(--accent-2-rgb), .5); }
.modal--term .modal__head h2 { font-size: 1rem; color: var(--accent-2); }
.term__out {
  max-height: 50vh; overflow: auto; padding: 4px 2px 10px;
  font-size: .8rem; line-height: 1.5; color: #b8f7ff; white-space: pre-wrap; word-break: break-word;
}
.term__out .art { white-space: pre; font-size: clamp(3.4px, 1.15vw, 6px); line-height: 1.1; color: var(--accent); text-shadow: 0 0 6px rgba(var(--accent-rgb), .6); margin-bottom: 10px; overflow: hidden; }
.term__out .hl { color: #050507; background: var(--accent-2); padding: 0 4px; border-radius: 3px; font-weight: 700; }
.term__out .ok { color: #7CFF9B; }
.term__out .err { color: #FF6B6B; }
.term__out .me { color: var(--muted); }
.term__form { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.term__prompt { color: var(--accent-2); font-weight: 700; }
.term__input {
  flex: 1; min-width: 0; height: 40px; background: none; border: 0; outline: none;
  font: 16px/1 var(--mono); color: var(--text); caret-color: var(--accent-2);
}
.term__enter {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  font: 700 .72rem/1 var(--mono); letter-spacing: .1em; color: #050507;
  background: var(--accent-2); box-shadow: 0 0 16px rgba(var(--accent-2-rgb), .45);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .1s, box-shadow .2s;
}
.term__enter svg { width: 16px; height: 16px; }
.term__enter:active { transform: scale(.93); box-shadow: 0 0 26px rgba(var(--accent-2-rgb), .8); }

/* ---------- Ograniczenie animacji ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .glitch::before, .glitch::after, .scroll-hint { display: none; }
  .js [data-reveal], .js [data-stagger] > *, .js [data-hero] { opacity: 1 !important; transform: none !important; }
  body::after { display: none; }
}
