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

* {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

:root {
  --gold: #ff4d4d;
  --gold-lt: #ff8080;
  --gold-dk: #b22222;
  --cream: #f0ece4;
  --ink: #120707;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--ink);
  overflow: hidden;
}

body { cursor: none; }

#enter-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-up 0.7s ease both;
}

#enter-screen.fade-out {
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

#enter-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#enter-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,0.78) 100%);
}

#enter-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.05) 3px,
    rgba(0,0,0,0.05) 4px
  );
  opacity: 0.3;
}

#cursor-e, #cursor-ring-e {
  position: fixed;
  pointer-events: none;
  z-index: 10010;
  transform: translate(-50%, -50%);
}

#cursor-e {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.9), 0 0 14px 4px rgba(255,77,77,0.5);
  transition: transform 0.12s ease;
}

#cursor-ring-e {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,77,77,0.55);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

.enter-box {
  position: relative;
  z-index: 10005;
  text-align: center;
  padding: 46px 56px;
  border: 1px solid rgba(255,77,77,0.32);
  border-radius: 12px;
  background: rgba(12,3,3,0.72);
  box-shadow: 0 0 50px rgba(255,77,77,0.15);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.enter-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #ff8080;
  letter-spacing: 0.35em;
  margin-bottom: 10px;
  text-shadow: 0 0 28px rgba(255,77,77,0.55);
}

.enter-sub {
  font-family: 'Crimson Pro', serif;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  font-style: italic;
  margin-bottom: 22px;
}

#enter-timer {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: rgba(255,80,80,0.85);
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(255,77,77,0.7), 0 0 90px rgba(255,77,77,0.3);
  animation: timer-pulse 1s ease-in-out infinite;
}

@keyframes timer-pulse {
  0%, 100% { text-shadow: 0 0 40px rgba(255,77,77,0.7), 0 0 90px rgba(255,77,77,0.3); }
  50%       { text-shadow: 0 0 60px rgba(255,100,100,1), 0 0 120px rgba(255,77,77,0.55); }
}

#cursor {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.9),
              0 0 14px 4px rgba(255,77,77,0.5);
  transition: transform 0.12s ease, background 0.12s ease;
}

#cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,77,77,0.55);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

#dots-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,0.72) 100%);
}

#scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.05) 3px,
    rgba(0,0,0,0.05) 4px
  );
  opacity: 0.3;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 20px;
  gap: 16px;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(-18px) scale(0.96); letter-spacing: 0.5em; }
  to { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.22em; }
}

@keyframes float {
  0% { transform: translateY(0px) rotate(-0.3deg); }
  33% { transform: translateY(-9px) rotate(0.2deg); }
  66% { transform: translateY(-5px) rotate(-0.1deg); }
  100% { transform: translateY(0px) rotate(-0.3deg); }
}

.title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  letter-spacing: 0.22em;
  color: var(--gold-lt);
  text-shadow: 0 0 30px rgba(255,77,77,0.6),
               0 0 80px rgba(255,77,77,0.25),
               0 2px 20px rgba(0,0,0,0.9);
  animation: title-in 1.4s cubic-bezier(0.16,1,0.3,1) both;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fade-up 1s 0.4s ease both;
}

.ornament-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dk));
}

.ornament-line.right {
  background: linear-gradient(to left, transparent, var(--gold-dk));
}

.ornament-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--gold);
}

.ornament-dot {
  width: 3px;
  height: 3px;
  background: var(--gold-dk);
  transform: rotate(45deg);
}

.frame-wrap {
  position: relative;
  padding: 10px;
  background: linear-gradient(145deg, #1a0a0a, #0f0505);
  border-radius: 4px;
  animation: float 7s ease-in-out infinite, fade-up 1.2s 0.2s ease both;
}

.frame-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 6px;
  border: 1px solid rgba(255,77,77,0.25);
  box-shadow: 0 0 30px rgba(255,77,77,0.12),
              inset 0 0 20px rgba(0,0,0,0.6);
}

.frame-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
}

.frame-corner.tl { top: 2px; left: 2px; border-top-width: 2px; border-left-width: 2px; }
.frame-corner.tr { top: 2px; right: 2px; border-top-width: 2px; border-right-width: 2px; }
.frame-corner.bl { bottom: 2px; left: 2px; border-bottom-width: 2px; border-left-width: 2px; }
.frame-corner.br { bottom: 2px; right: 2px; border-bottom-width: 2px; border-right-width: 2px; }

#img-canvas {
  display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
}

.bio {
  max-width: 580px;
  padding: 0 28px;
  color: rgba(240,236,228,0.75);
  font-family: 'Crimson Pro', serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  line-height: 1.85;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0,0,0,0.9);
  opacity: 0;
  animation: fade-up 1s 0.6s ease both;
}

.bio strong {
  font-weight: 600;
  color: var(--gold-lt);
  font-style: italic;
}

#player {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  background: rgba(10,5,5,0.85);
  border: 1px solid rgba(255,77,77,0.22);
  border-radius: 40px;
  padding: 8px 18px;
  backdrop-filter: blur(12px);
  gap: 2px;
}

.player-btn {
  background: none;
  border: none;
  color: rgba(255,77,77,0.6);
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: none;
  transition: color 0.2s ease;
}

.player-btn:hover {
  color: rgba(255,100,100,0.9);
}

#player-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,77,77,0.2);
  margin: 0 8px;
}

#song-name {
  font-family: 'Crimson Pro', serif;
  font-size: 0.8rem;
  color: rgba(255,200,200,0.55);
  letter-spacing: 0.06em;
  font-style: italic;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#track-toast {
  position: fixed;
  top: 72px;
  left: 20px;
  z-index: 100;
  background: rgba(10,5,5,0.9);
  border: 1px solid rgba(255,77,77,0.25);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Crimson Pro', serif;
  font-size: 0.78rem;
  color: rgba(255,160,160,0.8);
  letter-spacing: 0.08em;
  font-style: italic;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#track-toast.show {
  opacity: 1;
  transform: translateY(0);
}

#redirect-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(10,5,5,0.85);
  border: 1px solid rgba(255,77,77,0.3);
  border-radius: 40px;
  padding: 10px 18px;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(255,77,77,0.65);
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#redirect-btn:hover {
  color: rgba(255,100,100,0.9);
  border-color: rgba(255,77,77,0.55);
  background: rgba(20,5,5,0.92);
}

.btn-arrow {
  font-size: 0.75rem;
}