:root {
  --night: #100818;
  --gold: #efc56a;
  --paper: #f3e6c4;
  --window: #ffb45a;
  --hud: rgba(12, 8, 18, 0.88);
  --ok: #7ed38a;
}

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

html,
body {
  min-height: 100%;
  background: var(--night);
  color: var(--paper);
  font-family: Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%, #2a1844 0%, transparent 58%),
    linear-gradient(#100818, #080510);
}

.page {
  width: min(1240px, calc(100% - 1.2rem));
  margin: 0 auto;
  padding: 0.7rem 0 1.2rem;
}

.site-head {
  margin-bottom: 0.5rem;
}

.site-title {
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: clamp(1.3rem, 3.2vw, 2.05rem);
  letter-spacing: 0.22em;
  color: var(--gold);
  text-shadow: 3px 3px 0 #2a1408;
}

.site-tag {
  margin-top: 0.12rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #cbb89a;
}

.stage-wrap {
  border: 3px solid #c9a15b;
  box-shadow:
    0 0 0 2px #2a1a10,
    0 0 0 5px #6d4a22,
    6px 8px 0 rgba(0, 0, 0, 0.45);
  background: #09060f;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1914 / 822;
  overflow: hidden;
  background: #0a0614;
}

.backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.yard-glow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.yard-glow-white {
  left: 21.6%;
  top: 57.8%;
  width: 6.8%;
  aspect-ratio: 0.92;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: 50% 70%;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle at 50% 46%,
    rgba(255, 250, 230, 0.55) 0%,
    rgba(255, 236, 190, 0.18) 38%,
    rgba(255, 220, 150, 0.05) 62%,
    transparent 76%
  );
}

.yard-glow-black {
  left: 87.2%;
  top: 74.8%;
  width: 5.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  transform: scale(0.88);
  transform-origin: 50% 50%;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(64, 48, 128, 0.42) 0%,
    rgba(40, 28, 88, 0.16) 42%,
    transparent 72%
  );
}

.moon {
  position: absolute;
  top: 7%;
  left: 56%;
  width: 8.4%;
  aspect-ratio: 1;
  z-index: 2;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  transform-origin: 50% 50%;
}

.clouds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  mix-blend-mode: screen;
  opacity: 0.88;
}

.band-logo {
  position: absolute;
  top: 3.8%;
  left: 2.2%;
  width: min(11.2%, 118px);
  height: auto;
  z-index: 2;
  display: block;
  aspect-ratio: 280 / 145;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 70%;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55));
}

.band {
  position: absolute;
  left: 50%;
  bottom: 11.5%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 36%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 8px 6px rgba(4, 2, 14, 0.5));
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.actor {
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex-shrink: 0;
  filter: url(#night-indigo);
}

.tapn {
  width: 32%;
  aspect-ratio: 256 / 256;
  z-index: 4;
  margin-right: -8%;
  background-image: url("tapn_piano_sheet.png");
  background-size: 400% 400%;
  background-position: calc(var(--col) * 100% / 3) calc(var(--row) * 100% / 3);
}

.capn {
  width: 44%;
  aspect-ratio: 256 / 272;
  z-index: 1;
  background-image: url("capn_sheet.png");
  background-size: 400% 400%;
  background-position: calc(var(--col) * 100% / 3) calc(var(--row) * 100% / 3);
}

.slapn {
  width: 39%;
  aspect-ratio: 256 / 272;
  z-index: 3;
  margin-left: -7%;
  background-image: url("slapn_sheet.png");
  background-size: 400% 400%;
  background-position: calc(var(--col) * 100% / 3) calc(var(--row) * 100% / 3);
}

.hud {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas:
    "play copy vol clock"
    "seek seek seek seek";
  gap: 0.22rem 0.55rem;
  align-items: center;
  padding: 0.42rem 0.55rem 0.48rem;
  background: var(--hud);
  border-top: 2px solid #6d4a22;
}

.play-btn {
  grid-area: play;
  min-width: 4.6rem;
  padding: 0.32rem 0.55rem 0.28rem;
  border: 2px solid #f0d48a;
  background: #3a6b48;
  color: #f7ffe8;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    inset 1px 1px 0 #b6e7b0,
    inset -2px -2px 0 #1d3a24;
  cursor: pointer;
}

.play-btn:hover:not(:disabled) {
  background: #448256;
}

.play-btn:active:not(:disabled) {
  box-shadow:
    inset -1px -1px 0 #b6e7b0,
    inset 2px 2px 0 #1d3a24;
}

.play-btn:disabled {
  background: #3a3a3a;
  border-color: #8a8a8a;
  color: #c8c8c8;
  cursor: wait;
}

.hud-copy {
  grid-area: copy;
  min-width: 0;
}

.song-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-status {
  font-size: 0.68rem;
  color: #b7a58c;
}

.clock {
  grid-area: clock;
  font-family: "Courier New", "Lucida Console", monospace;
  font-size: 0.78rem;
  color: var(--ok);
}

.vol-label {
  grid-area: vol;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  width: 7.4rem;
}

.vol-name {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.vol {
  flex: 1;
  min-width: 0;
  height: 12px;
  accent-color: var(--window);
  cursor: pointer;
}

.seek-label {
  grid-area: seek;
  display: block;
}

.seek {
  width: 100%;
  height: 12px;
  accent-color: var(--window);
  cursor: pointer;
}

.seek:disabled {
  cursor: default;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 0.7rem, 1240px);
    padding-top: 0.4rem;
  }

  .band-logo {
    width: 14.5%;
    left: 1.8%;
  }

  .hud {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "play copy"
      "clock vol"
      "seek seek";
  }
}

@media (max-width: 520px) {
  .site-title {
    letter-spacing: 0.12em;
  }

  .band {
    width: 46%;
    bottom: 12%;
  }

  .moon {
    width: 10%;
    left: 55%;
    top: 6%;
  }
}
