:root {
  --pink: #ff2d95;
  --hot: #ff5cc8;
  --bg: #0b0509;
  --ink: #fbe9f3;
  --panel: rgba(11, 5, 9, .6);
  --gap: 14px;
}

* { box-sizing: border-box; }

/* one screen: header on top, the three windows fill the rest */
html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #3a0d27 0%, var(--bg) 70%);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.watermark {
  position: fixed;
  inset: 50% auto auto 50%;
  width: 140vw;
  transform: translate(-50%, -50%) rotate(-8deg);
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

header {
  flex: none;
  height: 12vh;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 8px 16px 0;
}
header img { height: 100%; width: auto; }
header .girl { animation: sway 5s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(255, 45, 149, .5)); }
header .title { animation: pulse 2.4s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(255, 45, 149, .5)); }
header .brand { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
header .name { height: 70%; filter: drop-shadow(0 0 12px rgba(255, 45, 149, .6)); }
header .qr { height: 85%; }
header .qr img { border-radius: 8px; }
.credit { margin: 0; font-size: .8rem; }
.credit a { color: var(--hot); text-decoration: none; }
.credit a:hover { text-decoration: underline; }

main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
  gap: var(--gap);
  padding: var(--gap) 16px var(--gap);
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.player {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border: 3px solid var(--pink);
  border-radius: 14px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 30px var(--pink), 0 0 80px rgba(255, 45, 149, .35);
}
.stage video { width: 100%; height: 100%; object-fit: contain; display: block; }

#sound {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(11, 5, 9, .75);
  color: var(--ink);
  border: 1px solid var(--pink);
  border-radius: 999px;
  padding: .45rem .9rem;
  font: inherit;
  cursor: pointer;
}
#sound:hover { background: var(--pink); }

.soundcloud { flex: none; }
.soundcloud iframe {
  display: block;
  width: 100%;
  height: 166px;
  border: 1px solid var(--pink);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 45, 149, .4);
}

/* lyrics scale with the window height so the whole song fits */
.lyrics {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 16px;
  text-align: center;
  font-size: clamp(.75rem, 1.9vh, 1.05rem);
  line-height: 1.6;
  border: 1px solid var(--pink);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 0 20px rgba(255, 45, 149, .25);
}
.lyrics h2 {
  margin: 0 0 .9em;
  color: var(--pink);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 1em;
}
.lyrics p { margin: 0 0 1em; }
.lyrics .intro, .lyrics .outro { font-style: italic; color: var(--hot); }
.lyrics .chorus { font-weight: 700; text-shadow: 0 0 10px rgba(255, 45, 149, .7); }
.lyrics .sign { margin: .6em 0 0; font-size: .85em; opacity: .75; }

/* Cursed Entertainment footer (same parts as the other CursedPrograms sites), squeezed to one row */
footer {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 28px;
  padding: 8px 16px 10px;
  border-top: 1px solid rgba(255, 45, 149, .35);
  background: rgba(11, 5, 9, .7);
  color: #a89497;
  font-size: 13px;
}
footer a { color: var(--hot); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .links { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; }
footer .logos { display: flex; align-items: center; gap: 18px; }
footer .logos img { display: block; height: 30px; width: auto; }

/* intro: a swarm of butterflies covers the page, then flies off (built in site.js) */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--bg);
  transition: background-color 1.4s ease .5s;
  cursor: pointer;
}
#intro.go { background-color: transparent; }
#intro .bf {
  position: absolute;
  width: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  will-change: transform;
}
#intro .bf img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 0 8px rgba(255, 45, 149, .6));
  animation: flap var(--flap) ease-in-out infinite alternate;
}

/* 18+ gate: covers everything (even the butterflies) until confirmed */
#agegate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: radial-gradient(ellipse at center, #3a0d27 0%, var(--bg) 70%);
}
.gate-box {
  width: min(440px, 100%);
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 2px solid var(--pink);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 0 30px var(--pink), 0 0 80px rgba(255, 45, 149, .35);
}
.gate-box img { width: 160px; filter: drop-shadow(0 0 12px rgba(255, 45, 149, .5)); }
.gate-box h2 { margin: .5rem 0; color: var(--pink); letter-spacing: .2em; text-transform: uppercase; }
.gate-box p { margin: 0 0 1.25rem; line-height: 1.6; }
.gate-buttons { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
#gate-yes, #gate-no {
  padding: .6rem 1.2rem;
  border: 1px solid var(--pink);
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
#gate-yes { background: var(--pink); color: #fff; font-weight: 700; }
#gate-yes:hover { background: var(--hot); }
#gate-no { background: transparent; color: var(--ink); }
#gate-no:hover { background: rgba(255, 45, 149, .2); }

@keyframes flap { to { transform: scaleX(.25); } }
@keyframes pulse { 50% { transform: scale(1.06) rotate(-2deg); } }
@keyframes sway { 50% { transform: rotate(-4deg) translateY(-4px); } }

/* phones and narrow windows: stack and scroll normally */
@media (max-width: 900px) {
  body { height: auto; overflow: auto; }
  header { height: auto; flex-wrap: wrap; gap: 1rem; padding-top: 1rem; }
  header img { height: 90px; }
  header .brand { height: auto; }
  header .name { height: auto; width: min(320px, 80vw); }
  header .qr { height: 90px; }
  main { display: flex; flex-direction: column; }
  .stage { flex: none; aspect-ratio: 16 / 9; }
  .lyrics { font-size: 1rem; overflow: visible; }
  footer { flex-direction: column; padding: 16px; }
  footer .logos { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  #intro { display: none; }
}
