body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)),
    url("images/background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

h1 {
  position: relative;
  text-align: center; /* jak wcześniej */
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 20px;
}

.achievement {
  position: relative;
  background: #1e293b;
  border-radius: 12px;
  padding: 15px;
  box-sizing: border-box;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.achievement:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 20px rgba(74, 222, 128, 0.6),
    0 0 40px rgba(34, 197, 94, 0.4);
}

.achievement img {
  width: 100%;
  border-radius: 8px;
}

.achievement h3 {
  margin: 10px 0 5px;
  font-size: 16px;
}

.achievement p {
  margin: 0;
  font-size: 14px;
}

.progress-bar {
  background: #334155;
  border-radius: 8px;
  height: 10px;
  margin: 10px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  animation: fillProgress 2s forwards;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  box-shadow:
    0 0 10px #4ade80,
    0 0 20px #22c55e;
}

.percent {
  font-size: 12px;
  margin: 0;
}

@keyframes fillProgress {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width);
  }
}

/* Overlay wyłączony */
.overlay {
  display: none;
}

/* Responsywność */
@media (max-width: 1200px) {
  .achievements-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

.logo {
  display: block; /* wycentrowanie */
  margin: 20px auto; /* 20px od góry i dołu, wycentrowanie poziome */
  width: 120px; /* szerokość logo, możesz zmienić */
  height: auto; /* proporcjonalna wysokość */
}

.copyright {
  position: fixed; /* przykleja do okna przeglądarki */
  bottom: 10px; /* 10px od dołu */
  right: 10px; /* 10px od prawego brzegu */
  font-size: 12px; /* rozmiar czcionki */
  color: #ccc; /* kolor napisu, jasnoszary */
  background: rgba(0, 0, 0, 0.5); /* lekko przyciemnione tło, opcjonalne */
  padding: 4px 8px; /* trochę przestrzeni wokół tekstu */
  border-radius: 5px; /* lekko zaokrąglone rogi */
  z-index: 1000; /* żeby zawsze był na wierzchu */
}

/* Kontener ikon w prawym górnym rogu */
.social-icons {
  display: flex; /* ustawienie w jednej linii */
  justify-content: center; /* wyśrodkowanie poziome */
  gap: 20px; /* odstęp między ikonami */
  margin-bottom: 30px; /* odstęp od kolejnej sekcji (np. kafelków) */
}

.social-icons img {
  width: 30px; /* większe ikony */
  height: 30px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.2); /* powiększenie przy najechaniu */
  opacity: 0.8; /* lekka przezroczystość */
  cursor: pointer;
}

.achievement-card a {
  text-decoration: none;
  color: inherit;
}

/* ===== GLOBAL PROGRESS PRO ===== */
.global-progress-pro {
  max-width: 520px;
  margin: 20px auto 45px;
  padding: 14px 18px;
  background: rgba(11, 22, 36, 0.6);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 255, 150, 0.08);
}

/* Header */
.gp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.gp-title {
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.gp-value {
  font-size: 14px;
  color: #cfe8dc;
}

/* Pasek tła */
.gp-bar {
  height: 14px;
  background: #1e2a3a;
  border-radius: 20px;
  overflow: hidden;
}

/* ===== WYPEŁNIENIE (ZIELONE) ===== */
.gp-fill {
  height: 100%;
  width: 0;
  border-radius: 20px;
  background: linear-gradient(90deg, #3cff8f, #00ffd5);
  box-shadow: 0 0 12px rgba(60, 255, 143, 0.8);
  transition: width 1.8s ease;
  animation: pulseGlow 2.5s infinite alternate;
}

/* Procent */
.gp-percent {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #ffffff;
  opacity: 0.85;
}

/* Zielony puls */
@keyframes pulseGlow {
  from {
    box-shadow: 0 0 8px rgba(60, 255, 143, 0.4);
  }
  to {
    box-shadow: 0 0 16px rgba(60, 255, 143, 0.9);
  }
}

/* ===== ZŁOTY STAN (100%) ===== */
.gp-fill.gold {
  background: linear-gradient(90deg, #ffd700, #ffae00);
  box-shadow: 0 0 20px rgba(255, 215, 0, 1);
  animation: none; /* WYŁĄCZA ZIELONY PULS */
  position: relative;
  overflow: hidden;
}

/* ===== SHINE NA ZŁOCIE ===== */
.gp-fill.gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  animation: shine 2.5s infinite;
}

@keyframes shine {
  from {
    left: -40%;
  }
  to {
    left: 120%;
  }
}

/* ===== CONFETTI ===== */
.confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 14px;
  z-index: 99999; /* MEGA WAŻNE */
  pointer-events: none;
  animation: fall 3s linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== MODAL HOVER ===== */
.achievement {
  position: relative;
}

.hover-modal {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(10, 20, 35, 0.95);
  padding: 14px 18px;
  border-radius: 14px;

  min-width: 220px;
  text-align: center;

  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 50;
}

.hover-modal p {
  margin: 4px 0;
  font-size: 13px;
  opacity: 0.9;
}

/* STRZAŁKA */
.hover-modal::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(11, 22, 36, 0.95);
}

/* POKAZANIE */
.achievement:hover .hover-modal {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ===== STATS HUD (LEFT CENTER) ===== */
.stats-hud-fixed {
  position: fixed;
  bottom: 20px; /* odstęp od dołu */
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: row; /* JEDNA LINIA */
  gap: 20px;

  z-index: 9999;
  pointer-events: none; /* NIE BLOKUJE KLIKANIA */
}

/* BOX */
.stats-hud-fixed .stat-box {
  background: rgba(11, 22, 36, 0.9);
  padding: 14px 22px;
  border-radius: 14px;
  min-width: 150px;
  text-align: center;

  box-shadow: 0 0 18px rgba(0, 255, 150, 0.25);
  backdrop-filter: blur(6px);
}

/* IKONA */
.stats-hud-fixed .stat-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

/* NUMER */
.stats-hud-fixed .stat-number {
  font-size: 28px;
  font-weight: 700;
  color: #3cff8f;
  line-height: 1;
}

/* OPIS */
.stats-hud-fixed .stat-label {
  font-size: 12px;
  opacity: 0.85;
}

/* ZŁOTY */
.stats-hud-fixed .stat-box.gold .stat-number {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* ===== HACKER LOADING SCREEN ===== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: black;
  overflow: hidden;
  z-index: 99999;
}

#loading-screen .stats-hud-fixed {
  display: none;
}

/* TERMINAL */
.hacker-terminal {
  position: relative;
  z-index: 3; /* NAD MATRIX */
  text-align: center;
  color: #3cff8f;
}

/* GLITCH TEXT */
.glitch {
  font-size: 28px;
  font-weight: bold;
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
}

.glitch::before {
  color: #00ffd5;
  animation: glitchTop 1.2s infinite linear;
}

.glitch::after {
  color: #00ff00;
  animation: glitchBottom 1s infinite linear;
}

@keyframes glitchTop {
  0% {
    clip-path: inset(0 0 80% 0);
  }
  50% {
    clip-path: inset(0 0 20% 0);
  }
  100% {
    clip-path: inset(0 0 80% 0);
  }
}

@keyframes glitchBottom {
  0% {
    clip-path: inset(80% 0 0 0);
  }
  50% {
    clip-path: inset(20% 0 0 0);
  }
  100% {
    clip-path: inset(80% 0 0 0);
  }
}

/* FAKE LOGI */
.loading-lines p {
  font-size: 13px;
  margin: 6px 0;
  opacity: 0.85;
  animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

/* LOADING BAR */
.loader-bar {
  height: 8px;
  background: #003311;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ff66, #00ffaa);
  animation: load 4s forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

.loading-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3cff8f, #00ffd5);
  box-shadow: 0 0 10px #3cff8f;
  animation: loadBar 3s forwards;
}

@keyframes loadBar {
  to {
    width: 100%;
  }
}

/* STATUS */
.loading-status {
  text-align: center;
  font-size: 14px;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* FADE OUT */
#loading-screen.hide {
  animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ===== MATRIX RAIN ===== */
#matrix {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
}

.hacker-terminal {
  position: relative;
  z-index: 2; /* NAD matrix rain */
}

.loader-box {
  position: relative;
  z-index: 2;

  max-width: 520px;
  width: 90%;
  padding: 28px;

  border: 2px solid #00ff66;
  border-radius: 14px;

  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 30px rgba(0, 255, 100, 0.4);

  color: #00ff66;
  font-family: "Courier New", monospace;
}

/* === WYŚRODKOWANIE TEKSTU W KAFELKACH === */
.achievement {
  text-align: center;
}

/* MATRIX */
#matrix {
  position: absolute;
  inset: 0;
}

/* CENTER */
.loader-wrapper {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* RAMKA */
.loader-box {
  width: 420px;
  padding: 25px;
  border: 2px solid #3cff8f;
  background: rgba(0, 0, 0, 0.85);
  color: #3cff8f;
  font-family: monospace;
  text-align: left;
  box-shadow: 0 0 20px #3cff8f;
}

/* BAR */
.loader-bar {
  margin-top: 15px;
  height: 6px;
  background: #111;
  border: 1px solid #3cff8f;
  overflow: hidden;
}

.loader-progress {
  width: 100%;
  height: 100%;
  background: #3cff8f;
  animation: load 5s linear forwards;
}

@keyframes load {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ACCESS ALERT */
.access-alert {
  margin-top: 16px;
  text-align: center;
}

.access-status {
  font-family: monospace;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.6s ease;
}

/* ❌ DENIED */
.access-status.denied {
  color: #ff3b3b;
  text-shadow: 0 0 8px rgba(255, 59, 59, 0.8);
}

/* ✅ GRANTED */
.access-status.granted {
  color: #3cff8f;
  text-shadow: 0 0 12px rgba(60, 255, 143, 1);
}

/* UKRYWA STATYSTYKI PODCZAS LOADINGU */
body.loading .stats-hud-fixed {
  display: none !important;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: radial-gradient(circle at top, #1a1a2e, #050510);
  color: #ffffff;
  line-height: 1.6;
}

/* ===== LINKS ===== */
a {
  color: inherit;
  text-decoration: none;
}

/* ===== LAYOUT CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== NAV ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 16, 0.75);
  backdrop-filter: blur(12px);

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 60px;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo span {
  font-size: 20px;
  letter-spacing: 0.8px;
}

/* ===== NAV LINKS ===== */
.topbar nav a {
  margin-left: 32px;
  color: #b5b5c5;
  font-weight: 500;
  transition: color 0.3s;
}

.topbar nav a:hover {
  color: #ffffff;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; /* pełny ekran */
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero p {
  opacity: 0.85;
  max-width: 460px;
  margin-bottom: 40px;
}

/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 20px;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.primary {
  background: linear-gradient(90deg, #ff4ecd, #7f5cff);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(127, 92, 255, 0.7);
}

.outline {
  border: 2px solid #7f5cff;
}

.outline:hover {
  background: #7f5cff;
}

/* ===== HERO IMAGE ===== */
.hero-image img {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 0 60px rgba(127, 92, 255, 0.35);
}

/* SOCIAL */
.hero-social {
  display: flex;
  gap: 22px;
}

.hero-social img {
  width: 32px;
  height: 32px;
  opacity: 0.85;
  transition: 0.3s;
}

.hero-social img:hover {
  transform: scale(1.25);
  opacity: 1;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin: 0 auto 40px;
  }

  .hero-social {
    justify-content: center;
  }
}

.about-card {
  max-width: 900px;
  margin: 120px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0b0b12;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* LEWA STRONA */
.about-text {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-label {
  font-size: 13px;
  letter-spacing: 3px;
  color: #777;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.about-text h3 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 28px;
}

/* SOCIAL ICONS */
.about-socials {
  display: flex;
  gap: 18px;
}

.about-socials img {
  width: 20px;
  opacity: 0.7;
  transition: 0.3s;
}

.about-socials img:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* PRAWA STRONA */
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== HERO LAYOUT FIX ===== */

.hero-content {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 80px;
}

/* LEWA STRONA */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-text p {
  opacity: 0.85;
  margin-bottom: 28px;
}

/* PRAWA STRONA – LOGO */
.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: 320px;
  max-width: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.4));
}

/* MOBILE */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-social {
    justify-content: center;
  }

  .hero-logo {
    margin-top: 40px;
  }
}

/* ===== ABOUT ME ===== */
.about-me {
  padding: 140px 60px;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
  align-items: center;
}

/* LEFT TEXT */
.about-label {
  color: #7f5cff;
  letter-spacing: 2px;
  font-size: 13px;
}

.about-text h2 {
  font-size: 42px;
  margin: 12px 0 25px;
}

.about-text p {
  opacity: 0.85;
  margin-bottom: 18px;
  max-width: 520px;
}

/* STATS */
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.about-stats div strong {
  font-size: 28px;
  display: block;
}

.about-stats div span {
  font-size: 13px;
  opacity: 0.7;
}

/* CARD */
.about-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 28px;
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 50px rgba(127, 92, 255, 0.15);
}

.about-card img {
  width: 160px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 25px rgba(0, 255, 200, 0.4));
}

.about-card h3 {
  margin-bottom: 6px;
}

.about-card p {
  opacity: 0.75;
  font-size: 14px;
}

/* SOCIAL */
.about-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.about-social img {
  width: 26px;
  opacity: 0.8;
  transition: 0.3s;
}

.about-social img:hover {
  transform: scale(1.3);
  opacity: 1;
}

/* MOBILE */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }
}

/* ===== CENTER TOP BAR ===== */
.topbar-center {
  position: sticky;
  top: 0;
  z-index: 9999;

  background: linear-gradient(
    to bottom,
    rgba(5, 8, 20, 0.95),
    rgba(5, 8, 20, 0.75)
  );

  backdrop-filter: blur(8px);
}

.nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ===== LOGO ===== */
.nav-logo img {
  width: 72px; /* DUŻE LOGO */
  height: auto;
  filter: drop-shadow(0 0 5px rgba(0, 255, 200, 0.4));
}

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  position: relative;
  padding-bottom: 10px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ffffff;
}

/* ACTIVE */
.nav-links a.active {
  background: linear-gradient(90deg, #00ffd5, #7f5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  border-radius: 6px;
  background: linear-gradient(90deg, #00ffd5, #7f5cff);
  box-shadow: 0 0 12px rgba(0, 255, 213, 0.7);
}

/* ===== HOME – WŁASNE TŁO ===== */
.home-page {
  background:
    linear-gradient(rgba(5, 5, 16, 0.75), rgba(5, 5, 16, 0.9)),
    url("images/background.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  min-height: 100vh;
}

.home-page h1 {
  margin-top: 50px;
}

/* ===== HERO FIX – USUNIĘCIE PUSTEJ PRZESTRZENI ===== */

.hero {
  padding-bottom: 80px;
}

.hero-content {
  align-items: center;
}

/* LEWA KOLUMNA – tekst + social razem */
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Sociale NIE MOGĄ być absolutne */
.hero-social {
  margin-top: 26px;
}

/* PRAWA KOLUMNA – logo */
.hero-logo-big {
  align-self: center;
}

/* ZABLOKUJ WSZYSTKIE DOLNE UCIECZKI */
.hero-logo-big img {
  display: block;
  margin: 0;
}

body.intro-active {
  overflow: hidden;
}

/* =========================
   CINEMATIC INTRO
========================= */

#cinematic-intro {
  position: fixed;
  inset: 0;
  background: black;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  color: #3cff8f;
}

/* SCANLINES */
.scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 2px
  );
  animation: scanMove 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scanMove {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 100%;
  }
}

/* LOGO */
.logo-wrap {
  width: 220px;
  z-index: 2;
  animation: zoomIn 3s ease forwards;
}

@keyframes zoomIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.logo-wrap img {
  width: 100%;
}

/* DECRYPT TEXT */
.decrypt {
  margin-top: 32px;
  font-size: 26px;
  letter-spacing: 4px;
  z-index: 2;
}

/* ACCESS */
.access {
  margin-top: 16px;
  font-size: 20px;
  opacity: 0;
  transition: 0.6s;
  z-index: 2;
}

/* ===== CUSTOM CURSOR ===== */
* {
  cursor:
    url("images/cursor.cur") 16 16,
    auto;
}

a,
button,
.btn {
  cursor:
    url("images/cursor.cur") 16 16,
    pointer;
}

.build-info.hud {
  position: fixed;
  bottom: 14px;
  left: 14px;

  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;

  color: #3cff8f;
  background: rgba(5, 10, 20, 0.85);
  border: 1px solid rgba(60, 255, 143, 0.35);
  border-radius: 10px;

  padding: 10px 14px;
  box-shadow: 0 0 18px rgba(60, 255, 143, 0.3);
}

.build-info .ok {
  color: #3cff8f;
  text-shadow: 0 0 6px rgba(60, 255, 143, 0.8);
}

/* ===== CURRENTLY PLAYING CARD ===== */
.currently-playing {
  margin: 50px auto 0;
  max-width: 420px;

  display: flex;
  align-items: center;
  gap: 18px;

  padding: 16px 22px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(127, 92, 255, 0.35);
  box-shadow: 0 0 30px rgba(127, 92, 255, 0.25);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.currently-playing:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 45px rgba(127, 92, 255, 0.45);
}

/* OKŁADKA */
.currently-playing img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;

  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
}

/* TEKST */
.cp-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cp-label {
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
  font-family: monospace;
}

.cp-game {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;

  background: linear-gradient(90deg, #ff4ecd, #7f5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.currently-playing {
  display: flex;
  align-items: center;
  gap: 20px;
}

.playing-text {
  display: flex;
  flex-direction: column;
  max-width: 260px; /* ⬅️ OGRANICZENIE SZEROKOŚCI */
}

.label {
  font-size: 14px;
  color: #bdbdbd;
  margin-bottom: 6px;
}

.title {
  font-size: 22px;
  font-weight: 700;
  color: #c084fc;
  line-height: 1.2;
  word-wrap: break-word;
}

/* ===== HERO SPACING FIX ===== */
.hero {
  min-height: calc(60vh - 160px); /* odejmuje wysokość topbara */
  padding: 60px 60px 80px;
}

/* ===== MINI GAME v1 ===== */
.mini-game {
  margin: 120px auto;
  text-align: center;
}

.mini-game h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.game-box {
  max-width: 420px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 20px;
  background: rgba(10, 20, 35, 0.85);
  border: 1px solid rgba(60, 255, 143, 0.4);
  box-shadow: 0 0 30px rgba(60, 255, 143, 0.25);
}

#game-info {
  margin-bottom: 20px;
  font-family: monospace;
  color: #3cff8f;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.cell {
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: #0b1c2d;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.cell.active {
  background: #3cff8f;
  box-shadow: 0 0 20px #3cff8f;
}

/* BUTTON */
#startGame {
  margin-top: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #3cff8f, #00ffd5);
  font-weight: 700;
  cursor: pointer;
}

/* ===== MINI GAME ===== */
.mini-game {
  margin: 120px auto;
  max-width: 900px;
  text-align: center;
}

.mini-game h2 {
  font-size: 32px;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #3cff8f, #7f5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-box {
  background: rgba(5, 10, 20, 0.85);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 0 40px rgba(60, 255, 143, 0.25);
  backdrop-filter: blur(10px);
}

#game-info {
  font-family: monospace;
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.85;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0;
}

.grid div {
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: 0.25s;
  box-shadow: inset 0 0 0 1px rgba(127, 92, 255, 0.25);
}

.grid div:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(127, 92, 255, 0.6);
}

.grid div.active {
  background: #3cff8f;
  box-shadow: 0 0 25px rgba(60, 255, 143, 0.9);
}

/* BUTTON */
#startGame {
  margin-top: 20px;
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #7f5cff, #3cff8f);
  color: #000;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
}

#startGame:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(127, 92, 255, 0.8);
}

/* ===============================
   MINI GAME – WYSUWANY PANEL
================================ */

.mini-game-panel {
  position: fixed;
  top: 50%;
  right: -360px; /* SCHOWANY */
  transform: translateY(-50%);
  width: 360px;
  background: rgba(5, 10, 20, 0.96);
  border-left: 2px solid rgba(60, 255, 143, 0.4);
  box-shadow: -5px 0 10px rgba(60, 255, 143, 0.3);
  transition: right 0.4s ease;
  z-index: 9999;
}

/* OTWARTY */
.mini-game-panel.open {
  right: 0;
}

/* ZAKŁADKA */
.mini-game-tab {
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  background: #0b1a12;
  color: #3cff8f;
  padding: 12px 22px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  border: 1px solid rgba(60, 255, 143, 0.4);
  box-shadow: 0 0 18px rgba(60, 255, 143, 0.4);
  user-select: none;
}

/* WNĘTRZE GRY */
.mini-game {
  padding: 20px;
}

.hero-content {
  display: flex;
  gap: 2rem;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-logo img {
    width: 200px;
    height: auto;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    gap: 16px;
  }
}

.hero-social img {
  width: 36px;
  height: 36px;
}

@media (max-width: 768px) {
  .hero-social {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-social img {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .currently-playing {
    flex-direction: column;
    text-align: center;
  }

  .currently-playing img {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .mini-game-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    transform: translateY(90%);
  }

  .mini-game-panel.open {
    transform: translateY(0);
  }

  .mini-game-tab {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 80%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  p {
    font-size: 1rem;
  }
}

/* ❌ WYŁĄCZ MINI GAME NA TELEFONIE */
@media (max-width: 768px) {
  .mini-game-panel {
    display: none !important;
  }
}

.devlog-section {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.devlog-terminal {
  width: 100%;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #3cff8f;
  box-shadow: 0 0 25px rgba(60, 255, 143, 0.2);
  font-family: monospace;
}

.devlog-header {
  padding: 12px;
  background: #0b1a12;
  color: #3cff8f;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #3cff8f;
}

.devlog-content {
  padding: 20px;
  color: #caffdf;
}

.devlog-entry {
  margin-bottom: 25px;
}

.log-date {
  color: #3cff8f;
  font-size: 14px;
}

.log-title {
  margin-left: 10px;
  color: #7cffb4;
}

.log-line {
  margin: 6px 0;
}

.log-comment {
  margin-top: 10px;
  color: #eafff3;
}

.separator {
  height: 1px;
  background: rgba(60, 255, 143, 0.2);
  margin: 25px 0;
}

.cursor {
  color: #3cff8f;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
