:root{
  --bg-void:      #17181b;
  --accent-violet:#b46bff;
  --accent-cyan:  #3fe0d0;
  --accent-red:   #ff4d5e;
  --text-primary: #f2f3f6;
  --text-muted:   #9497a3;
  --text-dim:     #5c5f6a;
  --border-hair:  rgba(255,255,255,0.08);

  --font-display: 'Chakra Petch', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; overflow: hidden; cursor: none !important; }

body{
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-void);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 i 11 */
    user-select: none; /* Standard */
    -webkit-user-drag: none;
}

/* TŁO WIDEO NA CAŁY EKRAN */
.video-layer{
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; overflow: hidden; pointer-events: none;
}
.video-layer video{
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.45; filter: saturate(1.1) brightness(0.8);
}
.video-layer::after{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(23, 24, 27, 0.4) 0%, rgba(23, 24, 27, 0.85) 100%);
}

.page-shell{
  position: relative; z-index: 1; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease, visibility .6s ease; height: 100svh;
}
.page-shell.is-ready{ opacity: 1; visibility: visible; pointer-events: auto; }

/* EKRAN INTRO / CLICK */
.intro-screen{
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(60% 50% at 30% 35%, rgba(180,107,255,0.15), transparent 70%), var(--bg-void);
  transition: opacity .7s ease, visibility .7s ease; cursor: pointer;
}
.intro-screen.is-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.intro-screen .intro-card{ text-align: center; max-width: 320px; }
.intro-screen .intro-text{
  font-family: var(--font-mono); font-size: clamp(24px, 5vw, 38px); letter-spacing: 0.26em;
  color: var(--text-primary); text-transform: lowercase; white-space: pre; min-height: 1.4em;
  margin-right: -0.26em;
}
.intro-screen .intro-cursor{
  display: inline-block; margin-left: 0.18em; width: 0.7ch;
  border-right: 1px solid rgba(255,255,255,0.9); animation: intro-cursor 0.9s steps(1) infinite;
}
@keyframes intro-cursor { 50% { border-color: transparent; } }
.intro-screen .intro-hint{
  margin-top: 14px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted);
}

/* KURSOR PLUSIK */
.custom-cursor {
  position: fixed; width: 24px; height: 24px; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); transition: opacity 0.15s ease;
}
.custom-cursor::before, .custom-cursor::after {
  content: ''; position: absolute; background: #fff; top: 50%; left: 50%;
  transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(63,224,208, 0.6);
}
.custom-cursor::before { width: 100%; height: 2px; }
.custom-cursor::after { width: 2px; height: 100%; }

/* SMUGA KURSORÓW */
.trail-drop {
  position: fixed; width: 16px; height: 16px; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%); animation: trailFade 0.4s ease-out forwards;
}
.trail-drop::before, .trail-drop::after {
  content: ''; position: absolute; background: var(--accent-violet); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.trail-drop::before { width: 100%; height: 2px; }
.trail-drop::after { width: 2px; height: 100%; }

@keyframes trailFade {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); filter: blur(0px); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); filter: blur(2px); }
}
body.cursor-hidden a, body.cursor-hidden button, body.cursor-hidden { cursor: none !important; }

/* TOP BAR */
.top-bar{
  position: fixed; top:0; left:0; right:0; z-index: 20;
  display:flex; align-items:center; justify-content:space-between;
  padding: clamp(14px,3vw,26px); pointer-events:none;
}
.top-bar > *{ pointer-events:auto; }
.mute-btn{
  width:44px; height:44px; border-radius:12px; border:1px solid var(--border-hair);
  background: rgba(255,255,255,0.04); backdrop-filter: blur(6px); color: var(--text-primary);
  display:flex; align-items:center; justify-content:center;
  transition: background .15s, border-color .15s, transform .15s;
}
.mute-btn:hover{ background: rgba(255,255,255,0.08); border-color: var(--border-hair); transform: translateY(-1px); }
.mute-btn svg{ width:19px; height:19px; }
.audio-control-container {
  position: relative;
  display: flex;
  align-items: center;
}

#volumeSlider {
  position: absolute;
  left: 100%;
  margin-left: 8px;
  width: 80px;
  height: 44px; /* wyrównanie z mute-btn */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: none;

  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.audio-control-container:hover #volumeSlider {
  opacity: 1;
  visibility: visible;
}

/* --- TRACK --- */
#volumeSlider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent-cyan) 0%,
    var(--accent-violet) calc(var(--vol-percent, 50%)),
    rgba(255,255,255,0.1) calc(var(--vol-percent, 50%)),
    rgba(255,255,255,0.1) 100%
  );
}
#volumeSlider::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}
#volumeSlider::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
}

/* --- THUMB --- */
#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 8px rgba(63,224,208,0.6);
  transition: box-shadow .15s, transform .15s;
}
#volumeSlider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(180,107,255,0.7);
}
#volumeSlider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 8px rgba(63,224,208,0.6);
}
.stats{ display:flex; align-items:center; gap:10px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.stats .divider{ color: var(--text-dim); }
.stats .stat{ display:flex; align-items:center; gap:6px; }
.stats svg{ width:15px; height:15px; opacity:0.75; flex-shrink:0; }

/* POZIOMY SLIDER */
.scroll-wrapper {
  position: absolute; inset: 0; overflow: hidden; z-index: 5;
}
.slider-container {
  display: flex; width: 300vw; height: 100svh;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.25, 1); will-change: transform;
}
.panel {
  width: 100vw; height: 100svh; flex-shrink: 0; display: flex;
  flex-direction: column; justify-content: center;
  padding: clamp(24px, 6vw, 64px); position: relative;
}

/* SYSTEM ANIMACJI */
.reveal {
  opacity: 0; transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel.is-visible .reveal { opacity: 1; transform: translateY(0) scale(1); }
.d-1 { transition-delay: 0.2s; }
.d-2 { transition-delay: 0.3s; }
.d-3 { transition-delay: 0.4s; }

/* STYLIZACJA PROFILU */
.profile{
  display:flex; flex-direction:column; align-items:flex-start;
  max-width: 480px; margin-left: clamp(0px, 6vw, 96px);
}
.avatar-tilt{ perspective: 700px; }
.avatar-wrap{
  width: clamp(88px, 11vw, 132px); height: clamp(88px, 11vw, 132px);
  border-radius:50%; position:relative; transform-style: preserve-3d;
  transition: transform .12s ease-out; will-change: transform;
}
.avatar-wrap::before{
  content:""; position:absolute; inset:-14px; border-radius:50%;
  background: radial-gradient(circle, rgba(180,107,255,0.55), transparent 70%);
  filter: blur(6px); animation: halo-pulse 3.4s ease-in-out infinite; z-index:-1;
}
@keyframes halo-pulse{
  0%,100%{ opacity:0.7; transform:scale(0.96); } 50%{ opacity:1; transform:scale(1.04); }
}

.avatar{
  width:100%; height:100%; border-radius:50%; object-fit:cover;
  border: 2px solid rgba(180,107,255,0.6); display:block;
  position: relative; z-index: 1;
}

/* RAMKA AVATARA (Discord Decoration) */
.avatar-decoration {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

/* KROPKA STATUSU */
.presence-badge{
  position: absolute; right: 2%; bottom: 2%;
  width: clamp(24px, 3vw, 32px); height: clamp(24px, 3vw, 32px);
  border-radius: 50%; border: clamp(3px, 0.4vw, 5px) solid var(--bg-void);
  background: var(--badge-color, var(--text-dim));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-void); z-index: 3; transition: background-color 0.3s;
}
.presence-badge svg{ width: 55%; height: 55%; }

.name-row{ margin-top: 20px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.display-name{ font-family: var(--font-display); font-weight:700; font-size: clamp(26px, 5vw, 36px); letter-spacing:0.3px; }
.badges{ display:flex; align-items:center; gap:7px; font-size: clamp(15px,3vw,18px); line-height:1; }

.presence{ margin-top: 8px; display:flex; flex-direction: column; gap: 6px; }
.presence-name-row{ display:flex; align-items:center; gap:7px; }
.presence-name{ font-family: var(--font-mono); font-weight:700; font-size:15px; color: var(--text-primary); }
.presence-tag{
  font-family: var(--font-mono); font-size:10px; letter-spacing:0.5px;
  color: var(--text-dim); border:1px solid var(--border-hair); border-radius:5px; padding:2px 6px;
}
.presence-activity{ font-family: var(--font-mono); font-size:13px; color: var(--accent-cyan); }

/* KARTA LISTENING (DISCORD-STYLE, BEZ PROGRESS BARA) */
.listening-card{
  display: none;
  margin-top: 6px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-hair);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  max-width: 340px;
}
.listening-card.is-active{ display: flex; }
.listening-cover{
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; background: rgba(255,255,255,0.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.listening-info{ min-width: 0; display:flex; flex-direction:column; gap: 2px; }
.listening-header{
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px;
  color: var(--text-dim); text-transform: uppercase;
}
.listening-title{
  font-family: var(--font-body); font-weight:600; font-size: 14px;
  color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.listening-artist{
  font-family: var(--font-body); font-size: 12.5px;
  color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.links{ margin-top: 24px; display:flex; gap:8px; flex-wrap:wrap; }
.link-btn{
  display:flex; align-items:center; gap:6px; padding: 8px 12px; border-radius: 9px;
  border:1px solid var(--border-hair); background: rgba(255,255,255,0.03); color: var(--text-primary);
  text-decoration:none; font-size:12px; font-weight:500; transition: background .15s, transform .15s;
}
.link-btn:hover{ background: rgba(255,255,255,0.07); transform: translateY(-1px); }

/* KARTY DODATKOWE */
.info-box {
  background: rgba(23, 24, 27, 0.6); backdrop-filter: blur(12px); border: 1px solid var(--border-hair);
  border-radius: 16px; padding: clamp(20px, 4vw, 32px); max-width: 500px;
  margin-left: clamp(0px, 6vw, 96px); box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.info-box h2 { font-family: var(--font-display); font-size: 24px; color: var(--accent-cyan); margin-bottom: 12px; display: flex; align-items: center; min-height: 1.2em; }
.info-box p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-bottom: 12px; }

/* TYPEWRITER CURSOR - ABOUT ME */
.type-cursor{
  display:inline-block; width:9px; margin-left:2px; color: var(--accent-cyan);
  animation: type-blink 0.9s step-end infinite;
}
.type-cursor.is-done{ display:none; }
@keyframes type-blink{ 0%,100%{ opacity:1; } 50%{ opacity:0; } }

/* HOVER NA WIEKU - DOKŁADNY WIEK */
.age-hover{
  position: relative;
  text-decoration: underline dotted var(--text-dim); text-underline-offset: 3px;
}
.age-tooltip{
  position: absolute; left: 0; bottom: calc(100% + 8px); transform: translateY(4px);
  background: #1e232b; border: 1px solid var(--border-hair); color: var(--accent-cyan);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 6px 10px;
  border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease; z-index: 5;
}
.age-hover:hover + .age-tooltip{ opacity: 1; transform: translateY(0); }

/* POLAND - BARWY FLAGI */
.poland-flag{
  font-weight: 700;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 49%, #dc143c 51%, #dc143c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 1px rgba(255,255,255,0.15);
}
.info-box ul { list-style: none; margin-top: 16px; }
.info-box ul li {
  font-family: var(--font-mono); font-size: 14px; margin-bottom: 8px;
  color: var(--text-primary); display: flex; align-items: center; gap: 10px;
}
.info-box ul li::before { content: '>'; color: var(--accent-violet); font-weight: bold; }

.poke-btn{
  position: fixed; right: clamp(16px,4vw,32px); bottom: clamp(16px,4vw,32px); z-index: 20;
  display:flex; align-items:center; gap:8px; padding: 12px 18px; border-radius: 999px; border:none;
  cursor:pointer; font-family: var(--font-display); font-weight:600; font-size:13px; color: var(--bg-void);
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-violet));
  box-shadow: 0 8px 24px -8px rgba(180,107,255,0.6); transition: transform .15s, filter .15s;
}
.poke-btn:hover{ filter:brightness(1.08); }
.poke-btn:active{ transform: scale(0.96); }
.ping-ring{
  position: fixed; z-index: 19; width: 10px; height:10px; border-radius:50%;
  border: 2px solid var(--accent-cyan); pointer-events:none; animation: ping-out 0.9s ease-out forwards;
}
@keyframes ping-out{ from{ opacity:.9; transform: scale(0.5); } to{ opacity:0; transform: scale(16); } }

/* URZĄDZENIA DOTYKOWE - BEZ VOLUME SLIDERA I CUSTOM CURSORA */
@media (hover: none), (pointer: coarse) {
  #volumeSlider{ display: none !important; }
  .custom-cursor{ display: none !important; }
  body{ cursor: auto !important; }
  body.cursor-hidden a, body.cursor-hidden button, body.cursor-hidden{ cursor: auto !important; }
}

/* RESPONSIVE */
@media (max-width: 640px){
  .panel { justify-content: center; padding-top: 60px; }
  .profile, .info-box { align-items:center; text-align:center; margin-left:0; max-width:100%; }
  .name-row, .presence, .links{ justify-content:center; align-items:center; }
  .listening-card{ margin-left: auto; margin-right: auto; }
  .info-box ul li { justify-content: center; }
  .stats{ font-size:11px; }
  .stats .stat span.stat-label{ display:none; }
}