@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");
/* Ustawienia kolorów i podstawowe style */
:root {
  --text: #f7f6ff;
  --muted: #b5b1c8;
  --accent: #c1b5ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #080811;
  color: var(--text);
  font-family: Inter, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
a,
button,
input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #cabaff;
  outline-offset: 5px;
}
::selection {
  background: #977bd877;
}
/* Wideo i przyciemnienie tła */
.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background: #080811;
}
.backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
  opacity: 0.85;
  transform: scale(1.01);
}
.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #07070c65, #05050a9c),
    radial-gradient(ellipse at 50% 50%, transparent, #04040899);
}
.aura {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 30%, #6580b415, transparent 55%);
}
.sound-toggle {
  position: fixed;
  left: 24px;
  top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #16131b6b;
  border: 1px solid #ffffff15;
  border-radius: 14px;
  padding: 15px;
  font-size: 21px;
  z-index: 3;
  backdrop-filter: blur(20px);
}
.sound-toggle span {
  font-size: 8px;
  letter-spacing: 1.2px;
  display: none;
}
.sound-toggle:hover span,
.sound-toggle:focus-visible span {
  display: inline;
}
/* Układ strony i szklana karta */
.stage {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 75px 24px;
}
.bio {
  width: 680px;
  max-width: 100%;
  padding: 30px;
  border: 1px solid #ffffff38;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff12, #16101c22);
  box-shadow:
    0 0 0 1px #fff05,
    inset 0 1px 0 #ffffff12,
    0 25px 90px #0006,
    0 0 45px #ae92ff0c;
  backdrop-filter: blur(10px) saturate(1.3);
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.entered .bio {
  opacity: 1;
  transform: perspective(1100px)
    translate3d(var(--tilt-x, 0px), var(--tilt-y, 0px), 0)
    rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}
/* Avatar i nazwa profilu */
.profile {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
}
.avatar-wrap {
  position: relative;
  width: 94px;
  height: 94px;
  flex-shrink: 0;
}
.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 32px #becfff22;
  border: 2px solid #e3d9ff55;
}
.avatar-spark {
  position: absolute;
  right: -5px;
  top: 8px;
  color: #e8dcff;
  text-shadow: 0 0 15px #c9b1ff;
  font-size: 23px;
}
.name-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -1.8px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(110deg, #fff 20%, #d6cbff 70%, #9bbdff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 15px #c9a9ff40);
}
.gem {
  font-size: 29px;
  color: #c8afff;
  text-shadow: 0 0 16px #b695ff;
}
.tagline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 1.1px;
  margin: 10px 0 8px;
  min-height: 17px;
  color: #ece7fa;
}
.caret {
  color: #ccbaff;
  margin-left: 3px;
  animation: blink 1s steps(1) infinite;
}
.profile-handle {
  font-size: 10px;
  color: #aaa4bc;
  letter-spacing: 0.3px;
}
.profile-handle span {
  padding: 0 7px;
  color: #786a91;
}
.widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
/* Panel statusu Discorda */
.presence {
  padding: 20px 17px;
  background: #100a191c;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  display: flex;
  gap: 13px;
  align-items: center;
  position: relative;
}
.discord-avatar {
  width: 57px;
  height: 57px;
  position: relative;
  flex-shrink: 0;
}
.discord-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
#status-dot {
  position: absolute;
  right: 1px;
  bottom: 0;
  height: 13px;
  width: 13px;
  border-radius: 50%;
  border: 3px solid #1b1624;
  background: #898299;
}
.presence-copy {
  min-width: 0;
  flex: 1;
}
.presence-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.presence-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 600;
}
.presence-head > span {
  font-size: 9px;
  color: #b6adc8;
}
.presence-copy p {
  display: none;
}
.discord-small {
  position: absolute;
  right: 13px;
  top: 12px;
  font-size: 6px;
  letter-spacing: 1.5px;
  color: #8f819c;
}
/* Panele serwerów */
.servers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #100a191c;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  padding: 12px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  padding: 0 3px 9px;
  color: #a699b8;
}
.section-label h2 {
  font-size: 7px;
  letter-spacing: 1.3px;
  font-weight: 400;
  margin: 0;
}
.section-label > span {
  display: none;
}
.server {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 3px;
  border-radius: 9px;
  transition: background 0.2s;
}
.server:hover {
  background: #b6a5e114;
}
.server + .server {
  margin-top: 8px;
}
.server-image {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #384052;
  color: #d9e3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  overflow: hidden;
  flex-shrink: 0;
}
.server-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cherry {
  background: #443045;
  color: #edc6ec;
}
.server h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  margin: 0 0 3px;
  font-weight: 500;
}
.server p {
  font-size: 7px;
  color: #a397b3;
  margin: 0;
}
.join {
  margin-left: auto;
  color: #ddd1f7;
  font-size: 18px;
  padding: 4px;
}
.music {
  margin-top: 23px;
  padding: 0 3px;
}
.music-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
#play {
  border: 0;
  border-radius: 50%;
  background: #d7c8ff15;
  color: #f4efff;
  width: 27px;
  height: 27px;
  font-size: 9px;
}
.music-copy {
  display: flex;
  gap: 7px;
  align-items: center;
}
.music-copy strong {
  font-weight: 400;
  font-size: 8px;
  color: #b6a7cb;
}
.music-copy > span {
  font-size: 8px;
  color: #ded4ef;
}
.equalizer {
  margin-left: auto;
  display: flex;
  gap: 2px;
  align-items: center;
  height: 15px;
}
.equalizer i {
  width: 2px;
  height: 5px;
  background: #ddd0ff;
  border-radius: 2px;
  box-shadow: 0 0 7px #d0b9ff44;
}
.equalizer i:nth-child(2),
.equalizer i:nth-child(4) {
  height: 10px;
}
.equalizer i:nth-child(3) {
  height: 14px;
}
.playing .equalizer i {
  animation: bars 0.6s ease-in-out infinite alternate;
}
.playing .equalizer i:nth-child(even) {
  animation-delay: 0.2s;
}
.music-time {
  font-size: 8px;
  color: #9f91b4;
  margin-left: 9px;
}
#current {
  color: #d9cbee;
}
#seek {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  margin: 10px 0 0;
  display: block;
  background: linear-gradient(
    90deg,
    #d0baff var(--progress, 0%),
    #ffffff1c var(--progress, 0%)
  );
  cursor: pointer;
  border-radius: 3px;
}
#seek::-webkit-slider-thumb {
  appearance: none;
  width: 7px;
  height: 7px;
  background: #e9dcff;
  border-radius: 50%;
  box-shadow: 0 0 8px #c2a9ff99;
}
#seek::-moz-range-thumb {
  width: 7px;
  height: 7px;
  background: #e9dcff;
  border: 0;
  border-radius: 50%;
}
/* Ikony kontaktu */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  margin-top: 24px;
}
.social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 0;
  color: #fff;
  filter: drop-shadow(0 0 8px #e1cfff8c);
  transition:
    transform 0.2s,
    filter 0.2s;
}
.social:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 13px #e4ccff);
}
.social svg {
  width: 29px;
  height: 29px;
}
.ltc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  font-size: 24px;
  background: #fff;
  color: #18111d;
  font-weight: 700;
  line-height: 1;
}
.social > span:not(.ltc-icon) {
  display: none;
}
.social::after {
  content: attr(aria-label);
  position: absolute;
  top: 44px;
  font-size: 8px;
  color: #f1e9ff;
  white-space: nowrap;
  opacity: 0;
  filter: none;
  transition: opacity 0.2s;
}
.social:hover::after {
  opacity: 1;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #a08fb4;
  margin-top: 24px;
}
.card-bottom > span:last-child {
  font-size: 7px;
  letter-spacing: 0.5px;
}
.card-bottom > span:last-child span {
  color: #decaff;
  margin-left: 5px;
}
/* Ekran wejścia */
.entry {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  border: 0;
  background: #07070da8;
  backdrop-filter: blur(10px) saturate(1.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  transition:
    opacity 0.7s,
    visibility 0.7s;
}
.entry-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 39px;
  font-weight: 600;
  letter-spacing: -1.5px;
  text-shadow: 0 0 30px #caaaff80;
}
.entry-name > span {
  font-size: 15px;
  margin-left: 10px;
  color: #d7bcff;
  vertical-align: middle;
}
.entry-hint {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c1b0d5;
}
.entered .entry {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes bars {
  to {
    transform: scaleY(0.3);
  }
}
@media (max-width: 650px) {
  .stage {
    padding: 85px 18px 30px;
  }
  .bio {
    padding: 26px 22px 18px;
    border-radius: 22px;
  }
  .profile {
    gap: 17px;
    margin-bottom: 24px;
  }
  .avatar-wrap {
    width: 83px;
    height: 83px;
  }
  h1 {
    font-size: 35px;
  }
  .gem {
    font-size: 23px;
  }
  .name-row {
    gap: 9px;
  }
  .tagline {
    font-size: 10px;
    letter-spacing: 0.7px;
    margin: 7px 0;
  }
  .profile-handle {
    font-size: 8px;
    letter-spacing: 0;
  }
  .profile-handle span {
    padding: 0 3px;
  }
  .widgets {
    grid-template-columns: 1fr;
  }
  .presence {
    min-height: 97px;
    padding: 18px;
  }
  .presence-head {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .presence-head strong {
    font-size: 16px;
  }
  .discord-avatar {
    width: 47px;
    height: 47px;
  }
  .servers {
    padding: 14px;
  }
  .server-image {
    width: 36px;
    height: 36px;
  }
  .server h3 {
    font-size: 14px;
  }
  .server p {
    font-size: 8px;
  }
  .server {
    padding: 5px;
  }
  .section-label h2 {
    font-size: 7px;
  }
  .music-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .socials {
    margin-top: 25px;
  }
  .sound-toggle {
    left: 18px;
    top: 18px;
    padding: 12px;
    border-radius: 12px;
  }
  .card-bottom {
    margin-top: 24px;
  }
}
@media (max-width: 360px) {
  .bio {
    padding: 22px 17px 17px;
  }
  .avatar-wrap {
    width: 72px;
    height: 72px;
  }
  .profile {
    gap: 13px;
  }
  h1 {
    font-size: 31px;
  }
  .profile-handle {
    font-size: 7px;
  }
  .tagline {
    font-size: 9px;
  }
  .music-time {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .backdrop video {
    display: none;
  }
}
.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;
}
.profile {
  gap: 22px;
}
.presence-head strong,
.server h3 {
  text-shadow: 0 1px 10px #0008;
}
.music-row .equalizer {
  margin-left: 10px;
}
.music-time {
  margin-left: auto;
}
.social {
  filter: drop-shadow(0 0 5px #e1cfff66);
}
@media (max-width: 650px) {
  .bio {
    padding: 25px 22px;
  }
  .profile {
    gap: 17px;
  }
  .presence {
    min-height: 85px;
  }
  .avatar-wrap {
    width: 78px;
    height: 78px;
  }
}
/* Sterowanie muzyką w prawym górnym rogu */
.audio-controls {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 188px;
  padding: 14px 16px;
  border-radius: 15px;
  background: #19171965;
  backdrop-filter: blur(15px);
  border: 1px solid #ffffff08;
  box-shadow: 0 5px 22px #0001;
}
.audio-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  color: #fff;
}
.audio-controls svg {
  width: 27px;
  height: 27px;
  overflow: visible;
}
.speaker-muted {
  display: none;
}
.muted .speaker-waves {
  display: none;
}
.muted .speaker-muted {
  display: block;
}
#volume {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  min-width: 0;
  height: 10px;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    #fff var(--volume, 50%),
    #ffffff28 var(--volume, 50%)
  );
  margin: 0;
  cursor: pointer;
}
#volume::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}
#volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  background: #fff;
  border-radius: 50%;
}
/* Zaproszenie FrostCode */
.frost-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  margin-bottom: 16px;
  border: 1px solid #ffffff20;
  background: linear-gradient(110deg, #d9eaff10, #ffffff03);
  border-radius: 14px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.frost-card:hover {
  background: #d9eaff18;
  border-color: #d9eaff44;
}
.frost-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #e4efff;
  font-size: 28px;
  text-shadow: 0 0 16px #b3d5ff55;
}
.frost-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.frost-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #f7f7ff;
}
.frost-copy > span {
  font-size: 10px;
  color: #bfbace;
}
.frost-arrow {
  margin-left: auto;
  font-size: 21px;
  color: #e1daee;
}
.socials {
  margin-top: 26px;
}
@media (hover: hover) and (pointer: fine) {
  html,
  body,
  body * {
    cursor:
      url("assets/cursor.gif") 16 16,
      auto !important;
  }
}
/* Custom cursor */
.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
@media (max-width: 650px) {
  .audio-controls {
    top: 16px;
    right: 18px;
    width: 165px;
    padding: 12px 14px;
    gap: 12px;
  }
  .frost-card {
    padding: 13px 14px;
    gap: 11px;
  }
  .frost-copy strong {
    font-size: 13px;
  }
  .frost-copy > span {
    font-size: 9px;
  }
  .frost-icon {
    width: 30px;
    height: 30px;
    font-size: 25px;
  }
}
.frost-icon {
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
}
.frost-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (hover: hover) and (pointer: fine) {
  .entered .bio {
    transition: opacity 0.8s;
    will-change: transform;
  }
}
.social.copy-feedback::after {
  opacity: 1;
}
