@font-face {
  font-family: 'Minecraftia';
  src: url('assets/fonts/Minecraftia.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080808;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.5);
  --muted-2: rgba(255, 255, 255, 0.7);
  --container: rgba(0, 0, 0, 0.5);
  --border: 2px solid rgba(255, 255, 255, 0.3);
  --btn-bg: rgba(255, 255, 255, 0.22);
  --btn-bg-hover: rgba(255, 255, 255, 0.32);
  --btn-border: 2px solid rgba(255, 255, 255, 0.12);
  --btn-border-hover: 2px solid rgba(255, 255, 255, 0.25);
  --purple: #a855f7;
  --purple-soft: #c084fc;
  --font-sans: 'Manrope', sans-serif;
  --font-pixel: 'Minecraftia', monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: url('assets/cursor.png') 16 16, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

@media (hover: hover) and (pointer: fine) {
  a, button, input, .vol-box, .dc {
    cursor: url('assets/cursor.png') 16 16, auto;
  }
}

/* ------- entrance ------- */

.entrance {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}

.entrance.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entrance-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  animation: kenburns 18s ease-in-out infinite alternate;
}

.entrance-inner {
  position: relative;
  text-align: center;
  transform: scale(1.25);
  animation: pulse-soft 2.6s ease-in-out infinite;
}

.entrance-text {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.16em;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
}

.entrance-domain {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.35em;
  margin-top: 0.7rem;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(1.5%, -1.5%); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}

/* ------- background ------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bgimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: saturate(1.1);
  animation: kenburns 26s ease-in-out infinite alternate;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  will-change: transform;
}

.blob-1 {
  width: 52vmax;
  height: 52vmax;
  top: -16vmax;
  left: -12vmax;
  background: radial-gradient(circle at 40% 40%, #6d28d9 0%, transparent 65%);
  animation: drift-1 28s ease-in-out infinite alternate;
}

.blob-2 {
  width: 44vmax;
  height: 44vmax;
  bottom: -14vmax;
  right: -10vmax;
  background: radial-gradient(circle at 60% 60%, #4c1d95 0%, transparent 65%);
  animation: drift-2 34s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8vmax, 6vmax) scale(1.15); }
}

@keyframes drift-2 {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-7vmax, -5vmax) scale(0.95); }
}

/* ------- cursor glow ------- */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 65%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* ------- hint ------- */

.hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 14px);
  z-index: 40;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.hint.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------- volume ------- */

.vol-box {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  border: var(--btn-border);
  border-radius: 99px;
  backdrop-filter: blur(10px);
  animation: rise 1s var(--ease-out) 0.1s both;
}

.vol-ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.vol {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple) var(--fill, 70%), rgba(255, 255, 255, 0.15) var(--fill, 70%));
  outline: none;
  cursor: url('assets/cursor.png') 16 16, auto;
}

.vol::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
}

.vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.85);
  transition: transform 0.35s var(--ease-spring);
}

.vol:hover::-webkit-slider-thumb {
  transform: scale(1.3);
}

.vol::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
}

.vol::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: var(--purple);
}

.vol::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.85);
}

/* ------- page ------- */

.page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.container {
  width: 100%;
  max-width: 40rem;
  transform: scale(1.25);
}

/* ------- card ------- */

.card {
  background: var(--container);
  border: var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 35px 15px 20px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  animation: rise 1.1s var(--ease-out) 0.1s both, card-glow 5s ease-in-out infinite 1.5s;
}

.card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 0.8rem;
}

@keyframes card-glow {
  0%, 100% { box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
  50% { box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 44px rgba(168, 85, 247, 0.2); }
}

@media (min-width: 540px) {
  .card {
    grid-template-columns: 1fr 158px;
  }
  .skin {
    align-self: center;
  }
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple-soft);
  box-shadow: 0 0 10px 2px rgba(192, 132, 252, 0.6);
  opacity: 0;
  animation: spark-rise 7s ease-in infinite;
  pointer-events: none;
}

.spark.s1 { left: 12%; top: 20%; animation-delay: 0s; }
.spark.s2 { left: 28%; top: 45%; animation-delay: 1.8s; width: 3.5px; height: 3.5px; }
.spark.s3 { left: 75%; top: 30%; animation-delay: 3.2s; }
.spark.s4 { left: 88%; top: 60%; animation-delay: 4.6s; width: 3.5px; height: 3.5px; }
.spark.s5 { left: 55%; top: 75%; animation-delay: 5.5s; }

@keyframes spark-rise {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  10% { opacity: 0.9; }
  60% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-90px) scale(0.4); }
}

/* ------- head ------- */

.head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  text-align: left;
}

.avatar {
  position: relative;
  width: 112px;
  height: 112px;
  margin-bottom: 0.7rem;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 28px;
  background: conic-gradient(from 0deg, rgba(168, 85, 247, 0.5), rgba(255, 255, 255, 0.25), rgba(192, 132, 252, 0.6), rgba(168, 85, 247, 0.5));
}

#pfp {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #141414;
  border: 2px solid rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.name {
  position: relative;
  font-weight: 600;
  font-size: 39.5px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(192, 132, 252, 0.35));
}

.name-text {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #ffffff 20%, #e9d5ff 45%, #c084fc 60%, #ffffff 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: name-flow 6s linear infinite;
}

.name-text::after {
  content: 'Htz';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(192, 132, 252, 0.55) 50%, transparent 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine 5s var(--ease-out) infinite;
}

@keyframes name-flow {
  to { background-position: -250% 0; }
}

@keyframes shine {
  0%, 55% { background-position: 200% 0; }
  80%, 100% { background-position: -100% 0; }
}

.verified {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  animation: verified-pop 3s var(--ease-spring) infinite;
}

@keyframes verified-pop {
  0%, 100% { transform: scale(1) rotate(0deg); }
  12% { transform: scale(1.15) rotate(-8deg); }
  24% { transform: scale(1) rotate(0deg); }
}

.bio {
  font-size: 19px;
  font-weight: 500;
  color: var(--muted-2);
  margin-top: 0.15rem;
}

/* ------- skin ------- */

.skin {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 0.5rem 0;
}

.skin-name {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.22em;
  margin-bottom: 0.45rem;
}

.skin-canvas {
  display: none;
  width: 150px;
  height: 220px;
  background: transparent;
}

.skin-canvas.active {
  display: block;
}

.skin-img {
  display: none;
  width: 130px;
  height: 210px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.3));
}

.skin-img.active {
  display: block;
}

.skin-shadow {
  width: 70px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  filter: blur(3px);
}

/* ------- discord ------- */

.dc {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.4rem 0 1.1rem;
  width: 100%;
  max-width: 340px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.5s var(--ease-spring), border-color 0.4s ease, background 0.4s ease;
}

.dc:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.dc-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.dc-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #141414;
  border: 2px solid rgba(0, 0, 0, 0.15);
  transition: transform 0.5s var(--ease-spring);
}

.dc:hover .dc-avatar img {
  transform: scale(1.08);
}

.dc-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #80848e;
  border: 2px solid #000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.dc-dot.online {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(35, 165, 90, 0); }
}

.dc-info {
  flex: 1;
  min-width: 0;
}

.dc-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-2);
  margin-top: 0.1rem;
}

.dc-activity {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.05rem;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-emoji {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ------- media kit ------- */

.media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.media-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--text);
  transition: transform 0.45s var(--ease-spring), background 0.35s ease, border-color 0.35s ease, box-shadow 0.45s ease;
}

.media-item svg {
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  transition: transform 0.5s var(--ease-spring), color 0.4s ease;
}

.media-num {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.media-label {
  color: var(--muted);
  font-size: 0.74rem;
}

.media-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.2);
}

.media-item:hover svg {
  color: var(--purple-soft);
  transform: scale(1.2) rotate(-6deg);
}

.media-item:hover .media-num {
  color: var(--purple-soft);
}

/* ------- buttons ------- */

.buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--btn-bg);
  border: var(--btn-border);
  border-radius: 12px;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-spring), background 0.35s ease, border-color 0.35s ease, box-shadow 0.45s ease;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(192, 132, 252, 0.22) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.9s var(--ease-out);
}

.btn:hover {
  transform: translateY(-3px) rotate(-4deg);
  background: var(--btn-bg-hover);
  border: var(--btn-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(168, 85, 247, 0.22);
}

.btn:hover::before {
  transform: translateX(130%);
}

.btn-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  transition: transform 0.5s var(--ease-spring), color 0.4s ease;
}

.btn-ico svg {
  width: 100%;
  height: 100%;
}

.btn:hover .btn-ico {
  color: var(--purple-soft);
  transform: scale(1.15);
}

.btn:active {
  transform: translateY(0) scale(0.92);
}

/* ------- card foot ------- */

.card-foot {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  flex-shrink: 0;
}

.eq span {
  width: 3.5px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--purple-soft), var(--purple));
  transform-origin: bottom;
  animation: none;
}

.eq span:nth-child(1) { animation-delay: 0s; }
.eq span:nth-child(2) { animation-delay: 0.18s; }
.eq span:nth-child(3) { animation-delay: 0.36s; }
.eq span:nth-child(4) { animation-delay: 0.12s; }
.eq span:nth-child(5) { animation-delay: 0.28s; }

.player.playing .eq span {
  animation: bounce 0.9s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

.play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.45s var(--ease-spring), background 0.35s ease, box-shadow 0.45s ease;
}

.play svg {
  width: 16px;
  height: 16px;
}

.play:hover {
  transform: scale(1.12);
  background: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.5);
}

.play:active {
  transform: scale(0.92);
}

/* ------- animations ------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 480px) {
  .page { padding: 1rem; }
  .card { padding: 30px 12px 16px; }
  .vol { width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
