:root {
  --bg: #03030a;
  --glass: rgba(14, 10, 24, .68);
  --glass-strong: rgba(18, 12, 34, .80);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .74);
  --primary: #d946ef;
  --secondary: #8b5cf6;
  --hot: #ff3ea5;
  --border: rgba(255, 255, 255, .14);
  --shadow: 0 26px 90px rgba(0, 0, 0, .52);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #010106;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a, button { -webkit-tap-highlight-color: transparent; }

.background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 155vh;
  min-height: 1050px;
  z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(217, 70, 239, .42) 0%,
      rgba(139, 92, 246, .30) 24%,
      rgba(32, 10, 48, .24) 45%,
      rgba(3, 3, 10, .72) 72%,
      #010106 100%),
    radial-gradient(circle at 18% 10%, rgba(255, 62, 165, .40), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(139, 92, 246, .48), transparent 32%),
    url('assets/background.jpng'),
    url('assets/background.png'),
    url('assets/background.jpg');
  background-size: cover, cover, cover, cover, cover, cover;
  background-position: top center, top center, top center, top center, top center, top center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1,1,6,0) 0%, rgba(1,1,6,.08) 42%, rgba(1,1,6,.50) 66%, #010106 100%),
    linear-gradient(90deg, rgba(255,255,255,.030) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  opacity: .95;
}


.music-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 62, 165, .42);
  border-radius: 999px;
  background: rgba(12, 8, 22, .76);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 62, 165, .24);
  cursor: pointer;
}
.music-toggle:hover,
.music-toggle:focus-visible {
  border-color: rgba(255, 122, 216, .85);
  box-shadow: 0 0 28px rgba(255, 62, 165, .36);
}
.music-toggle-icon { font-size: 14px; }
.music-toggle.is-paused { opacity: .92; }

.scroll-dark { display: none; }

.neon-orb {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(46px);
  opacity: .44;
  z-index: 1;
  animation: floatOrb 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.orb-one { left: -70px; top: 170px; background: var(--hot); }
.orb-two { right: -80px; top: 420px; background: var(--secondary); animation-delay: -2s; }

.page {
  position: relative;
  z-index: 3;
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px) clamp(12px, 3vw, 22px) 62px;
}

.glass-card {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.048)), var(--glass);
  backdrop-filter: blur(19px);
  -webkit-backdrop-filter: blur(19px);
  border-radius: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.reveal { animation: fadeUp .68s cubic-bezier(.2,.9,.25,1) both; }

.hero {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(14px, 3vw, 24px);
  align-items: center;
  padding: clamp(16px, 4vw, 30px);
}

.avatar-wrap {
  width: clamp(86px, 16vw, 122px);
  height: clamp(86px, 16vw, 122px);
  border-radius: 32px;
  padding: 3px;
  background: conic-gradient(from 180deg, var(--primary), var(--hot), var(--secondary), var(--primary));
  box-shadow: 0 0 32px rgba(217, 70, 239, .44), 0 18px 55px rgba(0,0,0,.38);
  animation: glowPulse 2.8s ease-in-out infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  object-fit: cover;
  display: block;
  background: #111827;
}

.eyebrow {
  margin: 0 0 8px;
  color: #f0abfc;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: clamp(10px, 2.3vw, 12px);
  text-shadow: 0 0 22px rgba(217, 70, 239, .6);
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 8vw, 72px);
  line-height: .92;
  letter-spacing: -.05em;
  text-shadow: 0 0 35px rgba(217, 70, 239, .34);
}
h2 {
  margin-bottom: 0;
  font-size: clamp(23px, 4vw, 32px);
  letter-spacing: -.035em;
}

.hero-desc, #bannerText, .card-desc, .warning p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.banner {
  margin-top: 16px;
  min-height: clamp(150px, 25vw, 210px);
  padding: clamp(20px, 4vw, 36px);
  display: flex;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(217,70,239,.34), rgba(139,92,246,.2), rgba(0,0,0,.18)),
    var(--glass-strong);
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(255,62,165,.38), transparent 66%);
  animation: bannerGlow 4s ease-in-out infinite alternate;
}
.banner > div { position: relative; z-index: 1; }

.warning {
  margin-top: 16px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border-color: rgba(255, 62, 165, .34);
}
.warning strong {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 62, 165, .16);
  color: #fff;
  box-shadow: 0 0 26px rgba(255, 62, 165, .22);
}

.links-panel {
  margin-top: 16px;
  padding: clamp(14px, 3vw, 22px);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}

.small-note {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.links-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.link-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.058));
  text-decoration: none;
  color: var(--text);
  transform: translateZ(0);
  transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

.link-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 4% 8%, var(--brand-soft), transparent 42%);
  opacity: .72;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

.link-box::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.18) 35%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .55s ease;
  pointer-events: none;
}

.link-box:hover, .link-box:focus-visible {
  transform: translateY(-5px) scale(1.012);
  border-color: var(--brand-border);
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.078));
  box-shadow: 0 0 0 1px var(--brand-border), 0 20px 54px rgba(0,0,0,.32), 0 0 32px var(--brand-glow);
}
.link-box:hover::before { opacity: 1; transform: scale(1.05); }
.link-box:hover::after { transform: translateX(120%); }

.platform-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.06));
  box-shadow: 0 14px 30px rgba(0,0,0,.26);
  flex: 0 0 auto;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.platform-icon img {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  object-fit: cover;
  display: block;
  background: #0f1020;
}

.link-box:hover .platform-icon {
  transform: rotate(-3deg) scale(1.08);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 28px var(--brand-glow), 0 16px 36px rgba(0,0,0,.34);
}

.link-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.link-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.link-name {
  font-size: clamp(17px, 3vw, 20px);
  font-weight: 900;
  line-height: 1.15;
}

.platform-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.card-desc {
  font-size: 14px;
  max-width: 720px;
}

.action-btn {
  position: relative;
  z-index: 1;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--hot));
  color: white;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(217, 70, 239, .28);
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}
.link-box:hover .action-btn {
  transform: translateX(2px);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 25px var(--brand-glow), 0 14px 30px rgba(0,0,0,.28);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.35); }
}
@keyframes floatOrb {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(22px, -26px, 0) scale(1.12); }
}
@keyframes bannerGlow {
  from { transform: translateX(-4%); opacity: .55; }
  to { transform: translateX(4%); opacity: .95; }
}

@media (hover: hover) and (pointer: fine) {
  html {
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: #d946ef rgba(8, 5, 18, .95);
  }
  body, .page, .background, .scroll-dark, .neon-orb, .music-toggle { direction: ltr; }
  ::-webkit-scrollbar { width: 14px; }
  ::-webkit-scrollbar-track {
    background: rgba(8, 5, 18, .95);
    border-right: 1px solid rgba(217, 70, 239, .18);
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d946ef, #8b5cf6);
    border-radius: 999px;
    border: 3px solid rgba(8, 5, 18, .95);
    box-shadow: 0 0 18px rgba(217, 70, 239, .55);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff3ea5, #d946ef);
  }
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 3 L24 17 L15 19 L11 28 Z' fill='%23ff3ea5' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 4 3, auto;
  }
  a, button, .link-box {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='9' fill='%23ff3ea5' stroke='white' stroke-width='3'/%3E%3C/svg%3E") 16 16, pointer;
  }
}

@media (max-width: 720px) {
  .page { padding-top: 12px; }
  .hero { position: relative; top: auto; grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .section-title { display: block; }
  .small-note { display: block; text-align: left; margin-top: 8px; }
  .warning { grid-template-columns: 1fr; }
  .link-box { grid-template-columns: auto 1fr; padding: 14px; }
  .action-btn { grid-column: 1 / -1; text-align: center; width: 100%; }
  .platform-icon { width: 58px; height: 58px; border-radius: 20px; }
  .platform-icon img { border-radius: 17px; }
}

@media (max-width: 420px) {
  .music-toggle { font-size: 11px; padding: 8px 10px; }
  .link-box { gap: 12px; }
  .card-desc { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Optymalizacja telefonow bez usuwania kafelkow social media */
@media (max-width: 768px) {
  .neon-orb { display: none; }
  .hero { position: static; }
  .glass-card {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .link-box {
    content-visibility: auto;
    contain-intrinsic-size: 92px;
  }
}


/* Sterowanie muzyka i jezykiem */
.top-controls {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-controls .music-toggle {
  position: static;
}
.language-picker select {
  min-height: 36px;
  padding: 8px 31px 8px 11px;
  border: 1px solid rgba(139, 92, 246, .48);
  border-radius: 999px;
  background: rgba(12, 8, 22, .82);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(139, 92, 246, .22);
  cursor: pointer;
}
.language-picker select:focus-visible {
  outline: 2px solid rgba(240, 171, 252, .85);
  outline-offset: 2px;
}
.language-picker option {
  background: #140d22;
  color: #fff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Easter egg: dokladnie 1 szansa na 20 wejsc */
.dance-hamster {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 40;
  width: clamp(105px, 16vw, 180px);
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 12px 25px rgba(0,0,0,.55));
  animation: hamsterPop .45s cubic-bezier(.2,.9,.25,1) both;
  cursor: pointer;
}
.dance-hamster[hidden] { display: none !important; }
@keyframes hamsterPop {
  from { opacity: 0; transform: translateY(28px) scale(.72) rotate(-8deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@media (max-width: 600px) {
  .top-controls {
    top: 8px;
    right: 8px;
    left: 8px;
    justify-content: flex-end;
  }
  .top-controls .music-toggle,
  .language-picker select {
    font-size: 11px;
    min-height: 34px;
  }
  .language-picker select {
    max-width: 132px;
  }
  .dance-hamster {
    left: 8px;
    bottom: 8px;
    width: 118px;
  }
}
