/* =====================================================
   Variables globales (thème bleu → rose)
===================================================== */
:root {
  --bg0: #0b0c10;
  --bg1: #0e1017;
  --fg: #ececf3;
  --muted: #b2b4bf;

  --blue: #4f46e5;
  --pink: #ec4899;

  --grad: linear-gradient(135deg, var(--blue), var(--pink));
  --grad-soft: linear-gradient(180deg, rgba(79,70,229,.22), rgba(236,72,153,.22));
}

/* =====================================================
   Reset & bases
===================================================== */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--fg);
  background: radial-gradient(
    1200px 1200px at 50% -10%,
    #131627 0%,
    var(--bg1) 60%,
    var(--bg0) 100%
  );
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

/* =====================================================
   Canvas neige
===================================================== */
#fx-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* =====================================================
   Conteneur principal
===================================================== */
.container {
  width: min(740px, 92vw);
  margin: auto;
  padding: 64px 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* =====================================================
   Avatar
===================================================== */
.avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.03),
    0 24px 60px rgba(0,0,0,.55);
}

/* =====================================================
   Titre principal ($resemble)
===================================================== */
.brand {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Mono", monospace;
  font-size: clamp(36px, 6.5vw, 64px);
  letter-spacing: 2px;
}

.brand .dollar {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(236,72,153,.45));
}

.brand .name {
  color: #e3e6ef;
  text-shadow: 0 0 18px rgba(124,58,237,.35);
}

/* =====================================================
   Sous-titre (typewriter)
===================================================== */
.tagline {
  margin: 2px 0 12px;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: clamp(14px, 2.9vw, 20px);
  letter-spacing: 1px;
}

.cursor {
  display: inline-block;
  transform: translateY(1px);
  animation: blink .95s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* =====================================================
   Liens & boutons
===================================================== */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 22px;
  border-radius: 18px;
  color: #f3f4fb;
  text-decoration: none;
  font-family: "Space Mono", monospace;
  font-size: clamp(18px, 4.2vw, 22px);
  letter-spacing: 1.5px;

  background: linear-gradient(
    180deg,
    rgba(16,18,26,.85),
    rgba(14,16,24,.72)
  ),
  var(--grad-soft);

  border: 1px solid rgba(130,134,170,.22);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  transition: transform .3s ease;
}

/* Effet lumineux autour du bouton */
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  background: var(--grad);
  filter: blur(16px);
  opacity: 0;
  transition: opacity .3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::before {
  opacity: .55;
}

/* =====================================================
   Lecteur audio
===================================================== */
.player {
  margin-top: 28px;
  width: 100%;
  background: rgba(17,18,26,.55);
  border: 1px solid rgba(120,122,150,.35);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}

.quote {
  margin: 0 0 10px;
  color: #dadde3;
  font-size: clamp(14px, 3.2vw, 18px);
}

.controls {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
}

.pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(130,134,170,.3);
  background: linear-gradient(180deg, #141625, #0f111a);
  color: #f0f1f6;
  font-size: 16px;
  cursor: pointer;
}

.bar-wrap {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #151724;
  overflow: hidden;
  border: 1px solid #26283b;
}

.bar {
  width: 0%;
  height: 100%;
  background: var(--grad);
}

.time {
  color: #c9cbd4;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

/* =====================================================
   Écran d’intro “CLICK”
===================================================== */
#intro-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #111320 0%, #07080c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .8s ease, visibility .8s ease;
}

#click-text {
  font-family: "Space Mono", monospace;
  font-size: clamp(48px, 10vw, 160px);
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(236,72,153,0.6);
  cursor: pointer;
  animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.1);
    opacity: 1;
  }
}

#intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
