:root {
  --bg-dark: #000000;
  
  --kick: #53FC18;
  --yt: #ff0033;
  --discord: #5865F2;
  --steam: #171a21;
  --steam-acc: #3b82f6;
  --insta: #d62976;
  
  --glass-bg: rgba(15, 15, 15, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.locked { overflow: hidden; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: #fff;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; 
  position: relative;
}

/* --- TŁO --- */
.video-background {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -3;
}
.video-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65); z-index: -2;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.noise-overlay {
  position: fixed; inset: 0; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* --- PRELOADER --- */
#preloader {
  position: fixed; inset: 0; background: #000; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s, visibility 0.8s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.access-card {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1); width: 340px; border-radius: 12px;
  padding: 0; overflow: hidden; box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.02);
  cursor: pointer; position: relative; transition: transform 0.2s, border-color 0.2s;
  backdrop-filter: blur(10px);
}
.access-card:hover { border-color: rgba(255, 255, 255, 0.2); transform: scale(1.01); }
.scan-line {
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #53FC18, transparent);
  animation: scan 2s linear infinite; opacity: 0.5;
}
@keyframes scan { 0% { top: 0; opacity:0; } 50% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.access-header {
  background: rgba(255, 255, 255, 0.03); padding: 12px 20px; font-size: 11px;
  font-weight: 700; letter-spacing: 1px; color: #666; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; gap: 8px;
}
.access-body { padding: 25px 30px; display: flex; align-items: center; gap: 20px; }
.checkbox-tech {
  width: 40px; height: 40px; background: rgba(0, 0, 0, 0.5); border: 1px solid #444;
  border-radius: 50%; display: grid; place-items: center; position: relative;
}
.spinner-svg { width: 40px; height: 40px; } 
.path-circle {
  stroke: #53FC18; stroke-dasharray: 126; stroke-dashoffset: 126;
  transition: stroke-dashoffset 1s ease-in-out; stroke-linecap: round;
  transform-origin: center; transform: rotate(-90deg);
}
.path-check {
  stroke: #53FC18; stroke-dasharray: 60; stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.4s ease-in-out 0.6s;
  stroke-linecap: round; stroke-linejoin: round;
}
.checkbox-tech.active .path-circle { stroke-dashoffset: 0; }
.checkbox-tech.active .path-check { stroke-dashoffset: 0; }
.checkbox-tech.active { border-color: transparent; background: rgba(83, 252, 24, 0.1); }
.text-tech { display: flex; flex-direction: column; }
.main-text { font-size: 16px; font-weight: 600; color: #eee; }
.sub-text { font-size: 11px; color: #777; font-family: monospace; margin-top: 4px; }
.access-footer {
  background: rgba(0, 0, 0, 0.3); padding: 10px 20px; display: flex; justify-content: space-between;
  font-family: monospace; font-size: 10px; color: #444; border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.code { color: #666; }

/* --- GRID SYSTEM --- */
.bento-container {
  width: 100%; max-width: 950px; height: 520px;
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 20px; padding: 20px;
  opacity: 0; transform: translateY(30px) scale(0.98);
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bento-container.visible { opacity: 1; transform: translateY(0) scale(1); }

.card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 26px; position: relative; overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5); transition: all 0.4s;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
/* PROFIL */
.profile-card { padding: 40px; background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.2) 100%); }
.avatar-frame { width: 130px; height: 130px; position: relative; margin-bottom: 25px; flex-shrink: 0; }
.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.1); box-shadow: 0 0 30px rgba(0,0,0,0.5); display: block; }
.status-indicator { position: absolute; bottom: 8px; right: 8px; width: 22px; height: 22px; background: #22c55e; border: 3px solid #111; border-radius: 50%; box-shadow: 0 0 15px #22c55e; }
.nick { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 5px; margin-top: 0; line-height: 1.2; }
.sub-nick { font-size: 13px; color: #888; text-transform: uppercase; letter-spacing: 3px; font-weight: 600; margin-bottom: 35px; margin-top: 0; }
.email-capsule { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); padding: 6px 6px 6px 16px; border-radius: 50px; transition: 0.3s; }
.email-capsule:hover { background: rgba(0,0,0,0.6); }
.icon-zone { color: #888; display: flex; }
#emailText { font-family: monospace; color: #ccc; font-size: 13px; }
.copy-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; display: grid; place-items: center; transition: 0.2s; }
.copy-btn:hover { background: #fff; color: #000; }
/* LINKI */
.links-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr 1fr; gap: 16px; width: 100%; height: 100%; }
.link-card { text-decoration: none; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; position: relative; }
.brand-icon { font-size: 36px; color: #ccc; transition: 0.3s; display: block; line-height: 1; z-index: 2; }
.link-name { font-weight: 600; font-size: 15px; opacity: 0.8; transition: 0.3s; z-index: 2; }
.arrow-box { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.05); display: grid; place-items: center; font-size: 12px; color: #888; transform: rotate(-45deg); transition: 0.3s; z-index: 3; }
.glow-effect { position: absolute; inset: 0; opacity: 0; transition: 0.4s; z-index: 0; background: radial-gradient(circle at center, var(--glow-color, rgba(255,255,255,0.1)) 0%, transparent 70%); }
.kick { grid-column: span 2; }
.kick-big-text { font-size: 50px; font-weight: 900; font-style: italic; letter-spacing: -2px; display: block; line-height: 1; margin: 0; z-index: 2; transition: 0.3s; }
.kick { --glow-color: rgba(83, 252, 24, 0.15); }
.kick:hover { border-color: var(--kick); }
.kick:hover .kick-big-text { transform: scale(1.05); text-shadow: 0 0 25px rgba(83, 252, 24, 0.4); }
.youtube { --glow-color: rgba(255, 0, 0, 0.15); }
.youtube:hover { border-color: var(--yt); }
.youtube:hover .brand-icon { color: var(--yt); transform: scale(1.1); }
.discord { --glow-color: rgba(88, 101, 242, 0.15); }
.discord:hover { border-color: var(--discord); }
.discord:hover .brand-icon { color: var(--discord); transform: scale(1.1); }
.instagram { --glow-color: rgba(225, 48, 108, 0.15); }
.instagram:hover { border-color: var(--insta); }
.instagram:hover .brand-icon { color: var(--insta); transform: scale(1.1); }
.steam { --glow-color: rgba(59, 130, 246, 0.15); }
.steam:hover { border-color: var(--steam-acc); }
.steam:hover .brand-icon { color: var(--steam-acc); transform: scale(1.1); }
.link-card:hover .glow-effect { opacity: 1; }
.link-card:hover .link-name { opacity: 1; color: #fff; }
.link-card:hover .arrow-box { background: #fff; color: #000; transform: rotate(0deg); }

/* MUSIC PLAYER */
.music-player {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(50px);
  width: 90%; max-width: 500px; background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px);
  border-radius: 50px; padding: 12px 25px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; z-index: 500; opacity: 0; pointer-events: none;
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.music-player.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
.player-track-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.equalizer-icon { display: flex; gap: 2px; align-items: flex-end; height: 15px; }
.equalizer-icon span { width: 3px; background: var(--kick); border-radius: 2px; animation: eq 1s infinite ease-in-out; }
.equalizer-icon span:nth-child(1) { height: 60%; animation-delay: 0s; }
.equalizer-icon span:nth-child(2) { height: 100%; animation-delay: 0.1s; }
.equalizer-icon span:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.equalizer-icon span:nth-child(4) { height: 80%; animation-delay: 0.3s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.music-player.paused .equalizer-icon span { animation-play-state: paused; height: 3px; }
.meta { display: flex; flex-direction: column; min-width: 0; }
.track-title { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.player-controls { display: flex; align-items: center; gap: 12px; }
.ctrl-btn { background: none; border: none; color: #aaa; cursor: pointer; font-size: 14px; transition: 0.2s; display: grid; place-items: center; }
.ctrl-btn:hover { color: #fff; }
.ctrl-btn.main { width: 32px; height: 32px; background: #fff; color: #000; border-radius: 50%; font-size: 12px; }
.ctrl-btn.main:hover { transform: scale(1.1); box-shadow: 0 0 10px rgba(255,255,255,0.5); }
.player-volume { display: flex; align-items: center; gap: 8px; }
.vol-icon { font-size: 12px; color: #666; width: 15px; }
input[type=range] { -webkit-appearance: none; width: 60px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; cursor: pointer; transition: 0.2s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* --- LEGAL MODAL & FOOTER LINKS --- */
.footer {
  position: absolute; bottom: 20px; left: 0; width: 100%;
  text-align: center;
  pointer-events: none; opacity: 0; transition: opacity 1s 0.8s;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.footer.visible { opacity: 1; }

.legal-links { pointer-events: auto; display: flex; gap: 10px; align-items: center; }
.legal-links button {
  background: none; border: none; color: rgba(255, 255, 255, 0.5);
  font-size: 12px; cursor: pointer; transition: 0.2s;
}
.legal-links button:hover { color: #fff; text-decoration: underline; }
.separator { color: rgba(255,255,255,0.2); font-size: 10px; }
.copyright { font-size: 11px; color: rgba(255, 255, 255, 0.3); }

/* MODAL WINDOW */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-window {
  width: 90%; max-width: 600px; max-height: 80vh;
  background: #111; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; display: flex; flex-direction: column;
  transform: translateY(20px); transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.modal-overlay.active .modal-window { transform: translateY(0); }

.modal-header {
  padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-size: 18px; font-weight: 700; color: #fff; }
#closeModalBtn {
  background: none; border: none; color: #888; font-size: 20px;
  cursor: pointer; transition: 0.2s;
}
#closeModalBtn:hover { color: #fff; }

.modal-body {
  padding: 20px; overflow-y: auto; color: #ccc; font-size: 14px;
  line-height: 1.6; text-align: left;
}
/* Scrollbar */
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: #000; }
.modal-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(30px); background: #fff; color: #000; padding: 10px 20px; border-radius: 30px; font-weight: 600; font-size: 13px; opacity: 0; display: flex; gap: 8px; align-items: center; transition: all 0.4s; z-index: 100; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  body { height: auto; display: block; overflow-y: auto; padding: 20px; }
  .bento-container { display: flex; flex-direction: column; height: auto; margin-top: 20px; }
  .kick-big-text { font-size: 32px; }
  .footer { position: relative; margin-top: 50px; }
  .music-player { width: 95%; bottom: 85px; } /* Wyżej na mobile, żeby nie zasłaniać stopki */
}