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

html,
body {
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

#snow,
#sparks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#snow   { z-index: 0; }
#sparks { z-index: 5; }

.content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* Title */
.title {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  padding-left: 0.35em; /* balances trailing letter-spacing so it stays centered */
  user-select: none;
}

.title span {
  display: inline-block;
  color: #cfcfcf;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { color: #7a7a7a; }
  50%      { color: #ffffff; }
}

/* Buttons */
.buttons {
  display: flex;
  gap: 16px;
}

.btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: #f2f2f2;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .title span { animation: none; }
}

/* Spotify player: matte frosted glass */
.player {
  width: min(92vw, 400px);
  margin-top: 6px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 40px rgba(0, 0, 0, 0.55);
}

.player:empty {
  display: none;
}

.player iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 18px;
  opacity: 0.78; /* lets the glass show through Spotify's own background */
  color-scheme: normal;
}

/* Enter screen */
.enter {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100%;
  border: 0;
  background: #000;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, color 0.3s ease;
}

.enter:hover {
  color: #fff;
}

body.entered .enter {
  opacity: 0;
  pointer-events: none;
}

/* Page content fades in after entering */
.content {
  opacity: 0;
  transition: opacity 1.2s ease 0.3s;
}

body.entered .content {
  opacity: 1;
}
