:root {
  /* soft white / pink base */
  --bg: #fff7fb;
  --card-bg: rgba(255, 244, 248, 0.88); /* pale pink-white glass */
  --card-border: rgba(255, 170, 204, 0.65); /* light rose border */
  --text-main: #3f2a35; /* soft brown-violet, matches eyes/hair shading */
  --text-muted: #a8899b; /* muted mauve */
  --accent-soft: rgba(255, 190, 220, 0.55); /* gentle pink for pills */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 22px 55px rgba(255, 153, 204, 0.32); /* pink glow */
  --blur-bg: 26px;
  --max-width: 720px;
  --font-main: "Cherry Bomb One", cursive;
}

/* Keep everything else the same */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* subtle background gradient to match the reference image */
  background: linear-gradient(135deg, #ffffff 0%, #ffe2f3 45%, #ffc6ec 100%);
  color: var(--text-main);
  font-family: var(--font-main);
}

body {
  overflow: hidden;
}

/* ✨ Cherry Bomb text pop */
body,
.profile-name,
.discord-name,
.spotify-text,
.link-pill,
.btn-primary,
.profile-meta,
.spotify-label,
.discord-tag,
.spotify-time-row span {
  letter-spacing: 0.6px;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65),
    0 2px 2px rgba(255, 105, 180, 0.25);
}

/* make big name extra cute + readable */
.profile-name {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.85),
    0 3px 4px rgba(255, 105, 180, 0.35);
}

/* tone down shadow on small / muted text */
.profile-meta,
.discord-tag,
.spotify-time-row span {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  letter-spacing: 0.4px;
}

/* Background */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background-image: url("/assets/bg.gif");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  z-index: 0;
}

.layout {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 20px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  justify-content: center;
  transform: translateY(-32px);
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(var(--blur-bg));
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}

/* Intro overlay */
.skull-start {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

.skull-start::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 90%;
  background: rgba(255, 185, 211, 0.85); /* soft pink glow */
  filter: blur(38px);
  z-index: 0;
}

.skull-start img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.skull-start.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Profile */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 170, 204, 0.7);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff7ba8; /* pink status */
}

.profile-status {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.profile-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Spotify */
.spotify-section {
  font-size: 0.83rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.spotify-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.86rem;
}

.spotify-dot {
  font-size: 0.9rem;
}

.spotify-text {
  color: var(--text-muted);
}

/* Spotify layout + progress */
.links-row {
  display: flex;
  gap: 8px;
}

.spotify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

/* bigger cover art */
.spotify-art {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  opacity: 0.35;
  box-shadow: 0 12px 26px rgba(255, 153, 204, 0.4);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.spotify-art:not([src=""]) {
  opacity: 1;
}

.spotify-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spotify-progress {
  margin-top: 4px;
}

.spotify-progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 209, 229, 0.95);
  overflow: hidden;
}

.spotify-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7ba8, #ffc0df);
  transition: width 0.15s linear;
}

/* time labels */
.spotify-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.9;
}

#spotify-time-current,
#spotify-time-total {
  user-select: none;
}

/* Links */
.link-pill {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 170, 204, 0.7);
  background: var(--accent-soft);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 150ms ease-out, border-color 150ms ease-out,
    transform 150ms ease-out, box-shadow 150ms ease-out;
}

.link-pill-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-pill-icon {
  font-size: 0.9rem;
}

.link-pill-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.link-pill-arrow {
  font-size: 0.85rem;
  opacity: 0.8;
}

.link-pill:hover {
  border-color: #ff57b4;
  background: rgba(255, 199, 221, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(255, 135, 193, 0.45);
}

/* Discord block */
.discord-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.discord-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.discord-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.discord-tag {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.discord-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 204, 0.7);
}

.discord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-primary {
  border-radius: var(--radius-pill);
  border: none;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  background: #ff7ba8;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(255, 153, 204, 0.4);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out,
    background 140ms ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #ff98c4;
  box-shadow: 0 22px 50px rgba(255, 141, 199, 0.55);
}

/* Audio toggle */
.audio-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 170, 204, 0.7);
  background: rgba(255, 240, 247, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5f9e;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 16px 40px rgba(255, 174, 207, 0.55);
}

.audio-toggle span {
  font-size: 0.9rem;
}

.audio-volume {
  position: fixed;
  top: 16px;
  left: 58px; /* just to the right of the button */
  width: 110px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 209, 229, 0.9);
  outline: none;
  cursor: pointer;
  z-index: 12;
  box-shadow: 0 10px 26px rgba(255, 174, 207, 0.5);
}

/* track */
.audio-volume::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 209, 229, 0.9);
}
.audio-volume::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 209, 229, 0.9);
}

/* thumb */
.audio-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #facece;
  border: 2px solid #ffffff;
  margin-top: -4px; /* centers thumb */
}
.audio-volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff7ba8;
  border: 2px solid #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
  .layout {
    padding-inline: 14px;
    transform: translateY(-10px);
  }
  .links-row {
    flex-direction: column;
  }
}
