:root {
  --deep: #050505;
  --void: #101010;
  --ink: #fff3d6;
  --orange: #ff4b12;
  --red: #ff2020;
  --yellow: #ffd84a;
  --electric: #3e64d8;
  --on-red: #fff3d6;
  --muted: #c7bba6;
  --sheet: #101010;
  --sheet-ink: #fff3d6;
  --line: rgba(255, 243, 214, 0.22);
  --sans: system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: Impact, "Arial Narrow", "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font-family: var(--sans);
  background: var(--deep);
  color-scheme: dark;
  overflow: hidden;
}

body[data-theme="violet"] {
  --ink: #f4eeff;
  --orange: #7d32ff;
  --red: #ff5c9a;
  --yellow: #e4d4ff;
  --electric: #c9b0ff;
  --on-red: #101010;
  --muted: #c9bdd6;
  --line: rgba(181, 138, 255, 0.32);
}

body[data-theme="lime"] {
  --ink: #f6ffd8;
  --orange: #c7f000;
  --red: #9ed000;
  --yellow: #eaff8a;
  --electric: #d8ff4a;
  --on-red: #101010;
  --muted: #c9cda6;
  --line: rgba(199, 240, 0, 0.34);
}

body[data-theme="red"] {
  --ink: #fff1ee;
  --orange: #ff4235;
  --red: #6d0b00; 
  --yellow: #ff3b30;
  --electric:  #ff3b30;
  --on-red: #101010;
  --muted: #d4bdb8;
  --line: rgba(255, 59, 48, 0.34);
}

/* SoulShake brand - https://soulshake.it/ */
body[data-theme="soulshake"] {
  --deep: #ffffff;
  --void: #f4f4f4;
  --ink: #292e37;
  --orange: #c59d19;
  --red: #8f7010;
  --yellow: #e4c04a;
  --electric: #c59d19;
  --on-red: #ffffff;
  --muted: #6b6570;
  --sheet: #ffffff;
  --sheet-ink: #292e37;
  --line: rgba(41, 46, 55, 0.18);
  background: #ffffff;
  color: #292e37;
  color-scheme: light;
}

body[data-theme="soulshake"] .sheet-scroll {
  scrollbar-color: var(--orange) #f4f4f4;
}

body[data-theme="soulshake"] .sheet-scroll::-webkit-scrollbar-track {
  background: #f4f4f4;
}

body[data-theme="soulshake"] .sheet-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
}

body[data-theme="soulshake"] .sheet-close:hover,
body[data-theme="soulshake"] .sheet-back:hover,
body[data-theme="soulshake"] .sheet-back:focus-visible {
  color: var(--orange);
}

/* Menagrama brand - https://www.menagrama.it/ */
body[data-theme="menagrama"] {
  --deep: #c1c1c3;
  --void: #b4b4b6;
  --ink: #61473c;
  --orange: #61473c;
  --red: #3d2c25;
  --yellow: #8b6a58;
  --electric: #61473c;
  --on-red: #ffffff;
  --muted: #5a524e;
  --sheet: #c1c1c3;
  --sheet-ink: #61473c;
  --line: rgba(97, 71, 60, 0.28);
  background: #c1c1c3;
  color: #61473c;
  color-scheme: light;
}

body[data-theme="menagrama"] .sheet-scroll {
  scrollbar-color: var(--orange) #b4b4b6;
}

body[data-theme="menagrama"] .sheet-scroll::-webkit-scrollbar-track {
  background: #b4b4b6;
}

body[data-theme="menagrama"] .sheet-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
}

body[data-theme="menagrama"] .sheet.is-music .sheet-kicker,
body[data-theme="menagrama"] .sheet-kicker {
  color: #ffffff;
}

body[data-theme="menagrama"] .sheet-close:hover,
body[data-theme="menagrama"] .sheet-back:hover,
body[data-theme="menagrama"] .sheet-back:focus-visible {
  color: var(--red);
}

body.light {
  --deep: #fff3d6;
  --void: #fff3d6;
  --ink: #101010;
  --muted: #5c5348;
  --line: rgba(16, 16, 16, 0.16);
  background: #fff3d6;
  color: #101010;
  color-scheme: light;
}

h1, h2, p { margin: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

::selection {
  background: var(--orange);
  color: var(--deep);
}

#app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 12px 20px 10px;
  position: relative;
  z-index: 2;
  border-bottom: 3px solid var(--orange);
}

.nameplate { text-align: left; min-width: 0; }

.name {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.15rem, 5.6vw, 4.15rem);
  letter-spacing: 0.01em;
  line-height: 0.82;
  text-transform: uppercase;
}

.name-last { color: var(--yellow); }
body.light .name-last { color: var(--red); }

.discipline {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.slash { color: var(--orange); }

.mast-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sound-toggle,
.mover-label,
.sheet-kicker,
.card-discipline,
.info-kicker,
.sheet-nav button,
.info button,
.invite {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
}

.sound-toggle[aria-pressed="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #101010;
}

.sound-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
}

.sound-toggle[aria-pressed="false"] .sound-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: currentColor;
  left: -2px;
  top: 4px;
  transform: rotate(-42deg);
}

.sound-toggle[aria-pressed="true"] .sound-icon {
  background: #101010;
  border-color: #101010;
}

.stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 78%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 34%),
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--red) 18%, transparent), transparent 28%),
    var(--deep);
}

body.light .stage {
  background:
    radial-gradient(circle at 28% 78%, rgba(255, 75, 18, 0.16), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(255, 32, 32, 0.08), transparent 26%),
    var(--deep);
}

.stage[data-mode="circus"] {
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--orange) 40%, transparent), transparent 46%),
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--red) 22%, transparent), #050505 70%);
}

body.light .stage[data-mode="circus"] {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 75, 18, 0.28), transparent 48%),
    var(--deep);
}

.stage.flash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(255, 216, 74, 0.45), rgba(255, 75, 18, 0.18) 32%, transparent 62%);
  animation: fireflash 520ms ease-out forwards;
}

.field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.field[inert] { pointer-events: none; }

.stage.is-open .field { pointer-events: none; }
.stage.is-open .token { z-index: 4; cursor: pointer; }
.stage.is-open .token:not(.is-covered) { pointer-events: auto; }
.token.is-covered { visibility: hidden; pointer-events: none; }

.field::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 243, 214, 0.045) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.55;
}

.embers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.embers i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  opacity: 0;
  animation: ember 6.5s linear infinite;
}

.embers i:nth-child(1) { left: 18%; bottom: 12%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 62%; bottom: 20%; animation-delay: 1.4s; background: var(--yellow); }
.embers i:nth-child(3) { left: 40%; bottom: 8%; animation-delay: 2.6s; }
.embers i:nth-child(4) { left: 78%; bottom: 30%; animation-delay: 3.3s; background: var(--red); }
.embers i:nth-child(5) { left: 28%; bottom: 36%; animation-delay: 4.5s; }

.room {
  position: absolute;
  width: min(38vw, 380px);
  height: min(38vw, 380px);
  right: -6%;
  top: -12%;
  color: var(--orange);
  opacity: 0.55;
  pointer-events: none;
}

.halo,
.waves,
.flourish,
.drag-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.halo { z-index: 1; }
#halo-circle { stroke: var(--orange); filter: drop-shadow(0 0 8px var(--orange)); }
#halo-inner { stroke: var(--yellow); }

.waves { z-index: 1; opacity: 0; }

.waves path {
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px currentColor);
}

.waves path:nth-child(1) { stroke: var(--orange); }
.waves path:nth-child(2) { stroke: var(--red); }
.waves path:nth-child(3) { stroke: var(--electric); }

.drag-trail { z-index: 4; }
#drag-circus,
#drag-music,
#drag-bio,
#drag-contact {
  stroke-width: 4;
  opacity: 0.92;
}
#drag-circus {
  stroke: var(--orange);
  filter: drop-shadow(0 0 8px var(--yellow));
}
#drag-music {
  stroke: var(--electric);
  filter: drop-shadow(0 0 8px var(--electric));
}
#drag-bio {
  stroke: var(--yellow);
  filter: drop-shadow(0 0 8px var(--yellow));
}
#drag-contact {
  stroke: var(--red);
  filter: drop-shadow(0 0 8px var(--red));
}
body.light #drag-bio {
  stroke: #101010;
  filter: drop-shadow(0 0 6px var(--orange));
}

.orbit {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.orbit svg { display: block; width: 100%; height: 100%; }
.stage.is-open .orbit { opacity: 0; }

.flourish { z-index: 4; }

.flourish path {
  stroke: var(--yellow);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px var(--orange));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.flourish.play path {
  opacity: 1;
  animation: draw 0.8s cubic-bezier(0.16, 0.8, 0.2, 1) forwards, fadeout 0.4s ease 1s forwards;
}

.mover {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 5px;
  touch-action: none;
  padding: 0;
}

.mover-label {
  font-size: 13px;
  font-weight: 800;
  color: #101010;
  background: var(--orange);
  padding: 4px 9px 3px;
}

#token-music .mover-label { background: var(--electric); color: #101010; }
#token-bio .mover-label { background: var(--yellow); color: #101010; }
#token-contact .mover-label { background: var(--red); color: var(--on-red); }

.ball {
  border-radius: 50%;
  border: 2px solid #101010;
  box-shadow: 0 0 12px color-mix(in srgb, var(--orange) 45%, transparent);
}

.ball::before {
  content: "";
  position: absolute;
  inset: -14px;
}

.ball::after {
  content: "";
  position: absolute;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: rgba(255, 243, 214, 0.7);
  top: 14%;
  left: 18%;
  pointer-events: none;
}

.ball-a { width: 30px; height: 30px; background: var(--orange); }
.ball-b { width: 30px; height: 30px; background: var(--red); }
.ball-c { width: 30px; height: 30px; background: var(--yellow); box-shadow: 0 0 14px color-mix(in srgb, var(--yellow) 70%, transparent); }

.ball.is-hidden { display: none; }
.ball.ping { animation: ballping 420ms ease-out; }
.ball.is-loose { box-shadow: 0 0 16px var(--yellow); }
.ball:hover { box-shadow: 0 0 0 5px color-mix(in srgb, var(--yellow) 45%, transparent), 0 0 16px var(--orange); }

.ball.is-on-fire {
  border-color: var(--yellow);
  box-shadow:
    0 0 10px var(--yellow),
    0 0 22px var(--orange),
    0 0 40px var(--red);
  animation: ballFire 0.38s ease-in-out infinite alternate;
}

.ball-flame {
  position: absolute;
  left: 50%;
  bottom: 68%;
  width: 12px;
  height: 28px;
  margin-left: -6px;
  border-radius: 80% 80% 20% 20% / 55% 55% 45% 45%;
  clip-path: polygon(50% 0%, 78% 28%, 92% 62%, 72% 100%, 28% 100%, 8% 62%, 22% 28%);
  background: linear-gradient(to top, #ff2020 8%, #ff4b12 40%, #ffd84a 92%);
  box-shadow: 0 0 12px #ff4b12, 0 -4px 14px rgba(255, 216, 74, 0.7);
  pointer-events: none;
  transform-origin: center bottom;
  animation: ballFlame 0.26s ease-in-out infinite alternate;
  z-index: 2;
}

.ball-flame::before,
.ball-flame::after {
  content: "";
  position: absolute;
  bottom: 0;
  clip-path: polygon(50% 0%, 82% 35%, 70% 100%, 30% 100%, 18% 35%);
  background: linear-gradient(to top, #ff4b12, #ffd84a);
}

.ball-flame::before {
  left: -4px;
  width: 8px;
  height: 16px;
  animation: ballFlame 0.22s ease-in-out infinite alternate-reverse;
}

.ball-flame::after {
  right: -3px;
  width: 7px;
  height: 14px;
  animation: ballFlame 0.3s ease-in-out infinite alternate;
}

.impact {
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 12px var(--orange);
  pointer-events: none;
  z-index: 4;
  animation: pulse 420ms ease-out forwards;
}

.token { width: 148px; cursor: grab; }

.glyph-hoop {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 6px solid var(--orange);
  box-shadow:
    inset 0 0 0 12px transparent,
    inset 0 0 0 17px var(--yellow),
    0 0 20px color-mix(in srgb, var(--orange) 45%, transparent);
  display: block;
  position: relative;
  animation: hoopglow 2.8s ease-in-out infinite;
}

.glyph-hoop::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow);
  top: -8px;
  left: 50%;
  margin-left: -8px;
  box-shadow: 0 0 12px var(--orange);
  transform-origin: 8px 74px;
  animation: spin 2.4s linear infinite;
}

.glyph-bars {
  width: 116px;
  height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  filter: drop-shadow(0 0 12px rgba(62, 200, 216, 0.45));
}

.glyph-bars i {
  width: 20px;
  display: block;
  transform-origin: center bottom;
  animation: eq 0.55s ease-in-out infinite alternate;
}

.glyph-bars i:nth-child(1) { height: 36px; background: var(--red); }
.glyph-bars i:nth-child(2) { height: 78px; background: var(--electric); animation-delay: 0.1s; }
.glyph-bars i:nth-child(3) { height: 50px; background: var(--orange); animation-delay: 0.2s; }

.glyph-flame {
  width: 92px;
  height: 118px;
  display: block;
  transform-origin: 50% 85%;
  animation: flicker 1.35s ease-in-out infinite;
}

.glyph-flame svg,
.sheet.is-circus .sheet-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.glyph-mail {
  width: 122px;
  height: 84px;
  display: block;
  position: relative;
  background: #fff3d6;
  box-shadow: 0 0 0 4px #101010, 0 0 18px rgba(255, 243, 214, 0.35);
  transform-origin: center bottom;
  animation: letterbob 2.6s ease-in-out infinite;
}

.glyph-mail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  border-top: 42px solid var(--red);
  border-left: 61px solid transparent;
  border-right: 61px solid transparent;
  transform-origin: center top;
  animation: flap 2.6s ease-in-out infinite;
}

.glyph-mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45px;
  background:
    linear-gradient(to top right, transparent calc(50% - 1.5px), #101010 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1.5px)) left bottom / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1.5px), #101010 calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1.5px)) right bottom / 50% 100% no-repeat;
}

.token:hover .glyph-hoop,
.token:focus-visible .glyph-hoop { box-shadow: inset 0 0 0 12px transparent, inset 0 0 0 17px var(--yellow), 0 0 26px var(--orange); }

.token:hover .glyph-flame,
.token:focus-visible .glyph-flame { filter: drop-shadow(0 0 16px var(--yellow)); }

.token:hover .glyph-mail,
.token:focus-visible .glyph-mail { box-shadow: 0 0 0 4px #101010, 0 0 22px var(--red); }

.piano {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 300px;
  height: 86px;
  background: #101010;
  border: 3px solid var(--orange);
  box-shadow: 0 0 18px color-mix(in srgb, var(--orange) 40%, transparent);
  padding: 10px 8px 0;
}

.piano.is-on-fire {
  border-color: #ffd84a;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #ff4b12 55%, transparent),
    0 0 22px #ff4b12,
    0 0 48px rgba(255, 32, 32, 0.55),
    0 -18px 40px rgba(255, 216, 74, 0.35);
  animation: pianoFire 0.55s ease-in-out infinite alternate;
}

.piano.is-on-fire .piano-keys {
  filter: saturate(1.15) brightness(1.05);
}

.piano.is-on-fire .key.white {
  background: linear-gradient(180deg, #fff8e4 0%, #ffe0a8 55%, #ffb36a 100%);
}

.piano.is-on-fire .key.black {
  background: linear-gradient(180deg, #5a2a12, #2a1008);
  box-shadow: inset 0 -6px 10px rgba(255, 75, 18, 0.35);
}

.piano-flames {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 78%;
  height: 78px;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.piano-flames .pf {
  position: absolute;
  bottom: 0;
  transform-origin: 50% 100%;
  animation: pianoFlame 0.38s ease-in-out infinite alternate;
  opacity: 0.96;
  filter: blur(0.15px);
  box-shadow:
    0 0 14px #ff4b12,
    0 -6px 18px rgba(255, 216, 74, 0.5);
}

/* Style 1 - soft rounded tongue */
.piano-flames .pf-tongue {
  border-radius: 55% 55% 42% 42% / 68% 68% 32% 32%;
  background:
    radial-gradient(circle at 50% 16%, #fff6c2 0 16%, transparent 40%),
    linear-gradient(to top, #c41200 8%, #ff2020 28%, #ff4b12 58%, #ffd84a 100%);
}

.piano-flames .pf-tongue::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 48%;
  height: 62%;
  border-radius: inherit;
  background: linear-gradient(to top, transparent 18%, rgba(255, 216, 74, 0.9));
  transform: translateX(-50%);
}

/* Style 2 - sharp spike */
.piano-flames .pf-spike {
  border-radius: 0;
  clip-path: polygon(50% 0%, 82% 26%, 96% 58%, 78% 100%, 22% 100%, 4% 58%, 18% 26%);
  background: linear-gradient(to top, #9a0a00 6%, #ff2020 30%, #ff4b12 55%, #ffd84a 88%, #fff6c2 100%);
  animation-name: pianoFlameSpike;
}

.piano-flames .pf-spike::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 36%;
  height: 55%;
  clip-path: polygon(50% 0%, 100% 100%, 0 100%);
  background: rgba(255, 246, 194, 0.75);
  transform: translateX(-50%);
}

/* Style 3 - cluster of spikes */
.piano-flames .pf-split {
  background: transparent;
  box-shadow: none;
  filter: none;
  overflow: visible;
  animation: none;
  pointer-events: none;
}

.piano-flames .pf-split .pf-spike {
  position: absolute;
  bottom: 0;
  left: 50%;
  margin-left: 0;
  animation: pianoFlameSpike 0.34s ease-in-out infinite alternate;
}

.piano-flames .pf-split .pf-spike:nth-child(1) {
  left: 8%;
  width: 42%;
  height: 68%;
  animation-duration: 0.3s;
  animation-direction: alternate-reverse;
}

.piano-flames .pf-split .pf-spike:nth-child(2) {
  left: 32%;
  width: 48%;
  height: 100%;
  animation-duration: 0.28s;
}

.piano-flames .pf-split .pf-spike:nth-child(3) {
  left: 58%;
  width: 40%;
  height: 78%;
  animation-duration: 0.36s;
  animation-delay: 0.06s;
}

.piano-flames .spark {
  position: absolute;
  bottom: 28px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd84a;
  box-shadow: 0 0 8px #ff4b12;
  animation: pianoSpark 1.1s linear infinite;
  opacity: 0;
  --sx: 0px;
}

.piano-flames .spark:nth-child(odd) { --sx: -8px; }
.piano-flames .spark:nth-child(even) { --sx: 10px; }

.token.is-respawn {
  animation: tokenRespawn 520ms cubic-bezier(0.16, 0.84, 0.2, 1);
}

.stage.is-open .piano {
  opacity: 0;
  pointer-events: none;
}

.piano-keys {
  position: relative;
  display: flex;
  height: 100%;
}

.piano-keys .key {
  display: block;
  transform-origin: center top;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
}

.piano-keys .key:active,
.piano-keys .key.is-down { transform: translateY(7px); }

.piano-keys .white {
  flex: 1;
  background: #fff3d6;
  border: 0;
  border-right: 2px solid #101010;
}

.piano-keys .white:nth-child(14) { border-right: 0; }

.piano-keys .black {
  position: absolute;
  top: 0;
  width: 14px;
  height: 58%;
  margin-left: -7px;
  border: 2px solid #101010;
  z-index: 1;
}

.piano-keys .black:active,
.piano-keys .black.is-down { transform: translateY(4px); }

.piano-keys .black:nth-child(15) { left: 7.14%; background: var(--orange); }
.piano-keys .black:nth-child(16) { left: 14.29%; background: var(--electric); }
.piano-keys .black:nth-child(17) { left: 28.57%; background: var(--red); }
.piano-keys .black:nth-child(18) { left: 35.71%; background: var(--yellow); }
.piano-keys .black:nth-child(19) { left: 42.86%; background: var(--orange); }
.piano-keys .black:nth-child(20) { left: 57.14%; background: var(--electric); }
.piano-keys .black:nth-child(21) { left: 64.29%; background: var(--red); }
.piano-keys .black:nth-child(22) { left: 78.57%; background: var(--yellow); }
.piano-keys .black:nth-child(23) { left: 85.71%; background: var(--orange); }
.piano-keys .black:nth-child(24) { left: 92.86%; background: var(--electric); }

.stage:not(.ready) .mover,
.stage:not(.ready) .orbit,
.stage:not(.ready) .piano { opacity: 0; }

.sheet {
  position: fixed;
  z-index: 6;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: calc(100% - 20rem);
  height: calc(100dvh - 2rem);
  max-height: none;
  overflow: hidden;
  background: var(--sheet);
  color: var(--sheet-ink);
  border: 3px solid var(--orange);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--red);
  padding: 24px 26px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  user-select: text;
}

.sheet.is-music {
  box-shadow: 8px 8px 0 var(--electric);
}

.sheet.is-music .sheet-title { font-size: clamp(2.8rem, 6vw, 4.4rem); }
/* .sheet.is-music .sheet-lead { max-width: 62ch; } */
.sheet.is-bio { border-color: var(--yellow); box-shadow: 8px 8px 0 var(--yellow); }
.sheet.is-contact { border-color: var(--red); box-shadow: 8px 8px 0 var(--ink); }

.sheet[hidden] { display: none; }
.sheet.is-in { animation: sheetIn 380ms cubic-bezier(0.16, 0.84, 0.24, 1); }

.sheet-kicker {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  color: #101010;
  background: var(--yellow);
  padding: 3px 7px;
}

.sheet.is-music .sheet-kicker {
  background: var(--electric);
  color: #101010;
}

.sheet.is-contact .sheet-kicker {
  background: #fff3d6;
  color: #101010;
}

.sheet-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  line-height: 0.78;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-right: 108px;
  color: var(--sheet-ink);
}

.sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--sheet-ink);
}

.sheet.is-music .sheet-close {
  top: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  font-size: 0.9rem;
}

.sheet-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric);
  padding: 0 0 2px;
}

.sheet-back:hover,
.sheet-back:focus-visible { color: var(--yellow); }

.sheet-close:hover { color: var(--yellow); }

.sheet-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) #1a1a1a;
}

.sheet.is-music .sheet-scroll { scrollbar-color: var(--electric) #1a1a1a; }
.sheet.is-bio .sheet-scroll { scrollbar-color: var(--yellow) #1a1a1a; }
.sheet.is-contact .sheet-scroll { scrollbar-color: #fff3d6 #1a1a1a; }

.sheet-scroll::-webkit-scrollbar { width: 10px; }
.sheet-scroll::-webkit-scrollbar-track { background: #1a1a1a; }
.sheet-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
  border: 2px solid #1a1a1a;
}
.sheet.is-music .sheet-scroll::-webkit-scrollbar-thumb { background: var(--electric); }
.sheet.is-bio .sheet-scroll::-webkit-scrollbar-thumb { background: var(--yellow); }
.sheet.is-contact .sheet-scroll::-webkit-scrollbar-thumb { background: #fff3d6; }

.sheet-title::after {
  content: "";
  display: block;
  width: 84px;
  height: 8px;
  margin-top: 10px;
  background: var(--yellow);
}

.sheet.is-music .sheet-title::after { background: var(--electric); }
.sheet.is-contact .sheet-title::after { background: var(--red); }

.sheet.is-band .sheet-title::after { display: none; }
.sheet.is-band .sheet-mark { display: none; }

.sheet-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.sheet-head .sheet-title {
  padding-right: 0;
  flex: 1 1 auto;
  min-width: min(100%, 12ch);
}

.sheet-head .act-links {
  margin: 0 0 4px;
  flex: 0 1 auto;
  justify-content: flex-end;
  padding:0.5rem;
}

.sheet-lead {
  /* max-width: 38ch; */
  font-size: 1rem;
  line-height: 1.4;
}

.sheet-mark {
  position: absolute;
  right: 48px;
  top: 8px;
  width: 96px;
  height: 96px;
  pointer-events: none;
}

.sheet.is-circus .sheet-mark {
  width: 52px;
  height: 68px;
  border: 0;
  border-radius: 0;
  background: none;
  clip-path: none;
  filter: drop-shadow(0 0 8px rgba(255, 75, 18, 0.45));
  animation: grow 480ms cubic-bezier(0.16, 0.84, 0.2, 1);
}

.sheet.is-music .sheet-mark {
  right: 38px;
  top: 20px;
  height: 72px;
  background:
    linear-gradient(#fff3d6, #fff3d6) 0 8px / 100% 3px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 0 28px / 72% 4px no-repeat,
    linear-gradient(var(--electric), var(--electric)) 0 48px / 100% 3px no-repeat;
  filter: drop-shadow(0 0 6px rgba(62, 200, 216, 0.45));
  animation: strum 0.65s ease-in-out infinite alternate;
}

.sheet.is-bio .sheet-mark {
  width: 72px;
  height: 72px;
  border: 4px solid var(--orange);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px transparent, inset 0 0 0 11px var(--yellow), 0 0 16px rgba(255, 75, 18, 0.45);
}

.sheet.is-contact .sheet-mark {
  width: 78px;
  height: 52px;
  border: 0;
  border-radius: 0;
  background: #fff3d6;
  box-shadow: 0 0 0 3px #101010;
}

.sheet.is-contact .sheet-mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  border-top: 26px solid var(--red);
  border-left: 39px solid transparent;
  border-right: 39px solid transparent;
}

.sheet-signal {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--sheet-ink);
  border-left: 4px solid var(--red);
  padding: 8px 0 8px 12px;
}

.bio-story {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 48px);
  margin: 8px 0 20px;
}

.bio-row {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
}

.bio-row-media-start,
.bio-row-media-end {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
}

.bio-row-media-end {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
}

.bio-row-text {
  grid-template-columns: 1fr;
}

.bio-photo {
  margin: 0;
  border: 2px solid var(--yellow);
  background: #050505;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.bio-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-photo-pending {
  display: flex;
  align-items: flex-end;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(255, 216, 74, 0.16), transparent 46%),
    #050505;
}

.bio-photo-pending figcaption {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
}

.bio-copy {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--sheet-ink) 88%, transparent);
  max-width: 42ch;
}

.bio-copy-indent {
  margin-left: clamp(12%, 16vw, 22%);
  max-width: 48ch;
  border-left: 4px solid var(--yellow);
  padding-left: 14px;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contact-form label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: #050505;
  color: #fff3d6;
  border: 2px solid var(--orange);
  border-radius: 0;
  padding: 8px 10px;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.send {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--red);
  color: var(--on-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
}

.send:hover { background: var(--orange); }

.send:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-note {
  margin: 2px 0 0;
  min-height: 1.2em;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.contact-routes a {
  color: var(--sheet-ink);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
}

.contact-routes a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

.block-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--electric);
}

.acts { display: flex; flex-direction: column; }

.acts-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 12px;
}

.act {
  display: grid;
  gap: 10px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
}

.act-head { display: grid; gap: 3px; }

.band-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--electric) 70%, #fff3d6);
  background: #050505;
  color: #fff3d6;
  cursor: pointer;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.band-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #101010;
}

.band-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.band-card-copy {
  display: grid;
  gap: 6px;
  padding: 14px 14px 16px;
  background:
    linear-gradient(180deg, rgba(16, 16, 16, 0.92), #101010 40%);
}

.band-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff3d6;
}

.band-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--electric);
}

.band-card-lead {
  margin-top: 2px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 243, 214, 0.72);
}

.band-card:hover,
.band-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--electric);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--electric) 40%, transparent);
  outline: none;
}

.band-card:hover .band-card-media img,
.band-card:focus-visible .band-card-media img {
  transform: scale(1.05);
}

.band-card:hover .band-name,
.band-card:focus-visible .band-name {
  color: var(--electric);
}

.band-card:active {
  transform: translateY(-1px) scale(0.99);
}

.act h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 0.86;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sheet-ink);
}

.act-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--electric);
}

.act-text {
  max-width: 68ch;
  font-size: 0.98rem;
  line-height: 1.4;
}

.act-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; }

.link-pending {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}

.act-links a {
  color: var(--electric);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--electric);
}

.band-story {
  /* max-width: 58ch; */
  margin: 4px 0 22px;
  font-size: 1.02rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--sheet-ink) 82%, transparent);
}

.shot-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px 12px;
  margin: 8px 0 28px;
  align-items: start;
}

.shot {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--electric) 70%, #fff3d6);
  background: #050505;
  border-radius: 0;
}

.shot img,
.shot video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 420ms ease, opacity 280ms ease;
  pointer-events: none;
}

.shot:hover img,
.shot:hover video,
.shot:focus-within img,
.shot:focus-within video { transform: scale(1.04); }

.shot.is-loading {
  aspect-ratio: 3 / 4;
  background: #121212;
}

.shot.is-loading img,
.shot.is-loading video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
}

.shot.is-ready img,
.shot.is-ready video {
  opacity: 1;
}

.shot-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 75, 18, 0.12), transparent 42%),
    repeating-linear-gradient(
      -45deg,
      #161616 0 10px,
      #1d1d1d 10px 20px
    );
  background-size: 100% 100%, 28px 28px;
  animation: shotLoaderShift 1.1s linear infinite;
}

.shot.is-ready .shot-loader,
.shot.is-error .shot-loader {
  display: none;
}

.shot-loader-bar {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 243, 214, 0.18);
  border-top-color: var(--orange);
  border-right-color: var(--yellow);
  animation: shotLoaderSpin 0.75s linear infinite;
}

.shot.is-loading:hover img,
.shot.is-loading:hover video,
.shot.is-loading:focus-within img,
.shot.is-loading:focus-within video {
  transform: none;
}

.shot .shot-open:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -4px;
}

.shot .shot-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}

.shot-credit {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  margin: 0;
  max-width: calc(100% - 16px);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  pointer-events: none;
}

.shot-video:has(.shot-mute) .shot-credit {
  max-width: calc(100% - 56px);
}

.shot-credit a {
  pointer-events: auto;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: rgba(255, 243, 214, 0.72);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  background: rgba(5, 5, 5, 0.35);
  padding: 3px 5px;
  border: 1px solid transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.shot-credit a:hover,
.shot-credit a:focus-visible {
  color: #fff3d6;
  background: rgba(5, 5, 5, 0.72);
  border-color: rgba(255, 243, 214, 0.35);
  outline: none;
}

.shot-credit-sep {
  color: rgba(255, 243, 214, 0.4);
  font-size: 10px;
  pointer-events: none;
}

.shot-mute {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 2px solid #fff3d6;
  background: rgba(16, 16, 16, 0.82);
  color: #fff3d6;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.shot-mute:hover,
.shot-mute:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #101010;
}

.shot-mute-icon {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(135deg, transparent 46%, currentColor 46% 54%, transparent 54%),
    radial-gradient(circle at 28% 50%, currentColor 0 18%, transparent 19%),
    linear-gradient(currentColor, currentColor) 0 35% / 7px 30% no-repeat,
    linear-gradient(currentColor, currentColor) 7px 20% / 3px 60% no-repeat;
  box-shadow: inset -1px 0 0 currentColor;
  position: relative;
}

.shot-mute[aria-pressed="true"] .shot-mute-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, transparent 46%, #ff2020 46% 54%, transparent 54%);
}

.shot-mute.is-unmuted .shot-mute-icon::after { display: none; }

.shot-video::after {
  content: "Video";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #101010;
  background: var(--orange);
  padding: 3px 6px;
  pointer-events: none;
}

.shot-1 { grid-column: 1 / 8; margin-right: 4%; }

.shot-2 { grid-column: 8 / 13; margin-top: 36px; }

.shot-3 { grid-column: 2 / 7; margin-top: -18px; }

.shot-4 { grid-column: 7 / 13; margin-top: 10px; margin-left: 6%; }

.shot-1:nth-child(n+5) { grid-column: 1 / 6; margin: 8px 8% 0 0; }
.shot-2:nth-child(n+5) { grid-column: 6 / 13; margin: 28px 0 0 4%; }
.shot-3:nth-child(n+5) { grid-column: 1 / 7; margin: 4px 0 0 10%; }
.shot-4:nth-child(n+5) { grid-column: 7 / 12; margin: 22px 0 0 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding:
    max(16px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  background: rgba(5, 5, 5, 0.92);
}

.lightbox[hidden] { display: none; }

body.lightbox-open { overflow: hidden; }

.lightbox-frame {
  margin: 0;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  min-width: 0;
  max-height: calc(100dvh - 48px);
}

.lightbox-frame img,
.lightbox-frame video {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 2px solid var(--electric);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--electric) 35%, transparent);
  background: #050505;
}

.lightbox-frame img[hidden],
.lightbox-frame video[hidden] {
  display: none;
}

.lightbox.is-video .lightbox-frame video {
  width: min(100%, 920px);
  max-height: calc(100dvh - 96px);
  border-color: var(--orange);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--orange) 35%, transparent);
}

.lightbox-credit {
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 243, 214, 0.7);
}

.lightbox-credit[hidden] { display: none; }

.lightbox-credit a {
  color: rgba(255, 243, 214, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.lightbox-credit a:hover,
.lightbox-credit a:focus-visible {
  color: #fff3d6;
  border-bottom-color: rgba(255, 243, 214, 0.55);
  outline: none;
}

.lightbox-close,
.lightbox-nav {
  border: 2px solid #fff3d6;
  color: #fff3d6;
  background: #101010;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
}

.lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

.lightbox-nav {
  width: 44px;
  height: 64px;
  font-size: 2rem;
  align-self: center;
}

.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  color: #101010;
  background: var(--yellow);
  border-color: var(--yellow);
}

.band-video {
  margin: 8px 0 10px;
  display: grid;
  gap: 10px;
}

.band-video .block-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

.band-video-note {
  margin: 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--sheet-ink) 78%, transparent);
}

.band-video-frame {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 16 / 9;
  border: 2px solid var(--orange);
  background: #050505;
  overflow: hidden;
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--orange) 35%, transparent);
}

.band-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  max-width: 720px;
}

.sheet.is-band .reel { max-width: none; }
.sheet.is-band .reel-stage { height: min(480px, 54vh); }

.reel-stage {
  position: relative;
  height: 148px;
  grid-column: 2;
  grid-row: 1;
}

.media-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 14px;
  border: 2px solid var(--electric);
  background:
    linear-gradient(145deg, rgba(62, 200, 216, 0.14), transparent 42%),
    #050505;
}

.media-card[data-kind="video"] {
  min-height: 240px;
  border-color: var(--orange);
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border: 2px solid var(--electric);
  background:
    linear-gradient(145deg, rgba(62, 200, 216, 0.14), transparent 42%),
    #050505;
}

.slide.is-on { display: flex; }
.slide[data-kind="video"] { border-color: var(--orange); }

.slide-kind {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric);
}

.slide[data-kind="video"] .slide-kind,
.media-card[data-kind="video"] .slide-kind { color: var(--orange); }

.slide-label {
  font-size: 0.95rem;
  color: var(--sheet-ink);
}

.reel-btn {
  grid-row: 1;
  height: 44px;
  border: 2px solid var(--electric);
  color: var(--electric);
  font-size: 1.6rem;
  line-height: 1;
}

.reel-btn:hover { background: var(--electric); color: var(--on-red); }
.reel-btn[data-reel="-1"] { grid-column: 1; }
.reel-btn[data-reel="1"] { grid-column: 3; }

.reel-count {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.also { display: grid; gap: 8px; padding-bottom: 8px; }

.also-lead {
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

.also-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.also-list li {
  display: grid;
  gap: 4px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.also-slot {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.also-text { font-size: 0.92rem; color: var(--muted); }

.cards { display: flex; flex-direction: column; }

.card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  animation: cardIn 380ms ease both;
}

.card:nth-child(2) { animation-delay: 40ms; }
.card:nth-child(3) { animation-delay: 80ms; }

.card h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--sheet-ink);
}

.card-discipline {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--orange);
}

.sheet.is-music .card-discipline { color: var(--electric); }

.card-text {
  margin-top: 4px;
  font-size: 0.96rem;
  line-height: 1.35;
  max-width: 46ch;
  color: var(--sheet-ink);
}

.motif {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  position: relative;
}

.motif-orbit {
  width: 52px;
  height: 52px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 75, 18, 0.45);
}

.motif-orbit i {
  position: absolute;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  left: 50%;
  top: -1px;
  border-radius: 50%;
  background: var(--yellow);
  transform-origin: 4px 27px;
  animation: spin 1.8s linear infinite;
}

.motif-stack { align-content: center; gap: 7px; }

.motif-stack i {
  display: block;
  height: 4px;
  margin-inline: auto;
  background: var(--yellow);
}

.motif-stack i:nth-child(1) { width: 26px; }
.motif-stack i:nth-child(2) { width: 44px; background: var(--orange); }
.motif-stack i:nth-child(3) { width: 18px; background: var(--red); }

.motif-ring i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  box-shadow: inset 0 0 0 6px transparent, inset 0 0 0 8px var(--yellow);
}

.motif-wave svg { width: 64px; height: 28px; display: block; }
.motif-wave path { stroke: var(--electric); stroke-width: 3; }

.motif-bars {
  height: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.motif-bars i {
  width: 7px;
  display: block;
  transform-origin: center bottom;
  animation: eq 0.55s ease-in-out infinite alternate;
}

.motif-bars i:nth-child(1) { height: 16px; background: var(--red); }
.motif-bars i:nth-child(2) { height: 36px; background: var(--orange); animation-delay: 0.08s; }
.motif-bars i:nth-child(3) { height: 24px; background: var(--electric); animation-delay: 0.16s; }

.motif-pulse i,
.motif-pulse::after {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--orange);
}

.motif-pulse::after {
  content: "";
  position: absolute;
  animation: ping 1.2s ease-out infinite;
}

.sheet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 2px solid var(--orange);
}

.sheet.is-music .sheet-nav { border-top-color: var(--electric); }
.sheet.is-bio .sheet-nav { border-top-color: var(--yellow); }
.sheet.is-contact .sheet-nav { border-top-color: #fff3d6; }

.sheet-nav button {
  font-size: 11px;
  font-weight: 800;
  padding: 10px 0;
  color: var(--sheet-ink);
}

.sheet.is-circus .sheet-nav button:hover { color: var(--yellow); }
.sheet.is-music .sheet-nav button:hover { color: var(--electric); }

.invite {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 14px;
  font-size: 11px;
  font-weight: 700;
  border-top: 3px solid var(--red);
}

.track {
  width: 48px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.bead {
  width: 8px;
  height: 8px;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  position: absolute;
  top: -3px;
  left: 0;
  animation: bead 1.4s ease-in-out infinite alternate;
}

.info {
  position: fixed;
  z-index: 8;
  top: 84px;
  left: 20px;
  width: min(320px, calc(100vw - 28px));
  padding: 14px 14px 12px;
  background: #101010;
  color: #fff3d6;
  border: 2px solid var(--orange);
  box-shadow: 6px 6px 0 var(--red);
}

.info[hidden] { display: none; }

.info-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #101010;
  background: var(--yellow);
  padding: 2px 6px;
}

.info-body { margin-top: 10px; font-size: 0.96rem; line-height: 1.4; }

.info-contact {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.info button {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 800;
  color: var(--yellow);
}

.toast {
  position: fixed;
  z-index: 9;
  left: 50%;
  bottom: 58px;
  translate: -50% 6px;
  opacity: 0;
  pointer-events: none;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--orange);
  color: #101010;
  padding: 6px 10px;
  transition: opacity 120ms ease, translate 120ms ease;
}

.toast.show { opacity: 1; translate: -50% 0; }

.noscript {
  position: fixed;
  left: 16px;
  bottom: 16px;
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
}

body.is-dragging .stage { cursor: grabbing; }
body.is-dragging .token { cursor: grabbing; }

body.arcade .stage {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 216, 74, 0.2), transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(255, 32, 32, 0.28), #050505 70%);
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes ballping {
  from { box-shadow: 0 0 0 0 var(--yellow); }
  to { box-shadow: 0 0 0 20px transparent; }
}

@keyframes ballFire {
  from { filter: brightness(1); }
  to { filter: brightness(1.25); }
}

@keyframes ballFlame {
  from { transform: scaleY(0.82) scaleX(0.95); opacity: 0.85; }
  to { transform: scaleY(1.18) scaleX(1.05); opacity: 1; }
}

@keyframes pianoFire {
  from { filter: brightness(1) saturate(1.05); }
  to { filter: brightness(1.14) saturate(1.2); }
}

@keyframes pianoFlame {
  from { transform: scaleY(0.82) scaleX(0.92) rotate(-3deg); opacity: 0.82; }
  to { transform: scaleY(1.18) scaleX(1.06) rotate(3deg); opacity: 1; }
}

@keyframes pianoFlameSpike {
  from { transform: scaleY(0.88) scaleX(0.9) rotate(-2deg); opacity: 0.85; }
  to { transform: scaleY(1.22) scaleX(1.04) rotate(2deg); opacity: 1; }
}

@keyframes pianoSpark {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--sx, 6px), -56px) scale(0.2); opacity: 0; }
}

@keyframes tokenRespawn {
  from { opacity: 0; filter: blur(4px); }
  55% { opacity: 1; filter: blur(0); }
  to { opacity: 1; filter: none; }
}

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 8px rgba(255, 75, 18, 0.4)); }
  40% { transform: scale(1.07, 0.95) rotate(2deg); filter: drop-shadow(0 0 16px rgba(255, 216, 74, 0.8)); }
  70% { transform: scale(0.96, 1.06) rotate(-1deg); filter: drop-shadow(0 0 11px rgba(255, 32, 32, 0.65)); }
}

@keyframes hoopglow {
  0%, 100% { box-shadow: inset 0 0 0 12px transparent, inset 0 0 0 17px var(--yellow), 0 0 12px color-mix(in srgb, var(--orange) 35%, transparent); }
  50% { box-shadow: inset 0 0 0 12px transparent, inset 0 0 0 17px var(--yellow), 0 0 26px color-mix(in srgb, var(--orange) 85%, transparent); }
}

@keyframes letterbob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-4deg); }
}

@keyframes flap {
  0%, 40%, 100% { transform: scaleY(1); }
  62% { transform: scaleY(0.7); }
}

@keyframes pulse {
  to { transform: scale(2.05); opacity: 0; }
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeout { to { opacity: 0; } }

@keyframes sheetIn {
  from { opacity: 0; translate: -50% -40%; }
  to { opacity: 1; translate: -50% -50%; }
}

@keyframes shotLoaderShift {
  to { background-position: 0 0, 28px 0; }
}

@keyframes shotLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes cardIn {
  from { opacity: 0; translate: 8px 0; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes grow {
  from { transform: scale(0.25); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes strum {
  from { translate: 0 -4px; }
  to { translate: 0 4px; }
}

@keyframes eq {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

@keyframes ping {
  to { transform: scale(2.4); opacity: 0; }
}

@keyframes bead { to { translate: 40px 0; } }

@keyframes ember {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.8; }
  100% { transform: translateY(-90px); opacity: 0; }
}

@keyframes fireflash {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .mover, .orbit, .field, .piano { transition: opacity 240ms ease; }
}

@keyframes sheetInMobile {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 760px) {
  .token { width: 108px; }
  .mover-label { font-size: 11px; padding: 4px 8px 3px; }
  .glyph-hoop { width: 92px; height: 92px; border-width: 5px; }
  .glyph-hoop::after { width: 12px; height: 12px; top: -6px; margin-left: -6px; transform-origin: 6px 52px; }
  .glyph-bars { width: 84px; height: 64px; gap: 7px; }
  .glyph-bars i { width: 14px; }
  .glyph-bars i:nth-child(1) { height: 26px; }
  .glyph-bars i:nth-child(2) { height: 54px; }
  .glyph-bars i:nth-child(3) { height: 36px; }
  .glyph-flame { width: 66px; height: 86px; }
  .glyph-mail { width: 88px; height: 58px; }
  .glyph-mail::before { border-top-width: 29px; border-left-width: 44px; border-right-width: 44px; }
  .glyph-mail::after { height: 30px; }

  .piano {
    width: min(calc(100% - 24px), 340px);
    height: 78px;
    padding-top: 8px;
  }
  .piano-keys .black { width: 12px; margin-left: -6px; }

  .mast {
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding:
      max(10px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      8px
      max(12px, env(safe-area-inset-left));
  }
  .mast-right {
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
  }
  .name { font-size: 1.7rem; }
  .discipline { font-size: 10px; margin-top: 4px; }
  .sound-toggle {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 8px 10px;
  }
  .sound-label { display: none; }

  .room { width: 140px; height: 140px; opacity: 0.3; }

  .stage.is-open .token {
    visibility: hidden;
    pointer-events: none;
  }

  .sheet {
    left: 0;
    top: 0;
    translate: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-width: 0;
    border-top: 3px solid var(--orange);
    box-shadow: none;
    padding:
      14px
      max(14px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }
  .sheet.is-music {
    border-top-color: var(--electric);
  }
  .sheet.is-bio { box-shadow: none; border-top-color: var(--yellow); }
  .sheet.is-contact { box-shadow: none; border-top-color: var(--red); }
  .sheet.is-in { animation-name: sheetInMobile; }

  .sheet-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
    padding-right: 52px;
  }
  .sheet-head .sheet-title { padding-right: 0; }
  .sheet-close,
  .sheet.is-music .sheet-close {
    top: 6px;
    right: max(6px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .sheet-mark { width: 48px; height: 48px; right: 52px; top: 8px; }
  .sheet.is-circus .sheet-mark { width: 30px; height: 44px; }
  .sheet.is-bio .sheet-mark { width: 42px; height: 42px; }
  .sheet.is-contact .sheet-mark { width: 48px; height: 32px; }
  .sheet.is-contact .sheet-mark::before { border-top-width: 14px; border-left-width: 24px; border-right-width: 24px; }

  .sheet.is-band .reel-stage { height: min(280px, 42vh); }
  .card { grid-template-columns: 52px 1fr; gap: 10px; }
  .bio-row-media-start,
  .bio-row-media-end {
    grid-template-columns: 1fr;
  }
  .bio-row-media-end .bio-photo {
    order: -1;
  }
  .bio-copy-indent {
    margin-left: 0;
    max-width: none;
  }
  .bio-copy {
    max-width: none;
  }
  .reel-stage { height: 128px; }
  .acts-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .band-card-media { aspect-ratio: 16 / 10; }
  .act h2 { font-size: 1.7rem; }
  .motif, .motif-orbit { width: 48px; height: 48px; }
  .motif-orbit i { transform-origin: 4px 25px; }
  .shot-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .shot-1,
  .shot-2,
  .shot-3,
  .shot-4,
  .shot-1:nth-child(n+5),
  .shot-2:nth-child(n+5),
  .shot-3:nth-child(n+5),
  .shot-4:nth-child(n+5) {
    grid-column: auto;
    margin: 0;
  }
  .shot:nth-child(odd) { transform: translateY(10px); }
  .band-video-frame { width: 100%; box-shadow: 4px 4px 0 color-mix(in srgb, var(--orange) 35%, transparent); }
  .invite {
    padding:
      8px
      max(12px, env(safe-area-inset-right))
      max(10px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
  .info {
    left: max(12px, env(safe-area-inset-left));
    top: 76px;
  }
  .embers { display: none; }
}

@media (max-width: 520px) {
  .name { font-size: 1.55rem; }
}

@media (max-width: 760px) {
  .lightbox {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 12px 16px;
  }
  .lightbox-frame {
    flex: 1 1 100%;
    order: 1;
    max-height: calc(100dvh - 120px);
  }
  .lightbox-frame img,
  .lightbox-frame video { max-height: calc(100dvh - 120px); }
  .lightbox-nav {
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
  }
  .lightbox-prev { order: 2; }
  .lightbox-next { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .shot:hover img,
  .shot:hover video,
  .shot:focus-within img,
  .shot:focus-within video { transform: none; }
  .band-card:hover,
  .band-card:focus-visible,
  .band-card:active { transform: none; }
  .band-card:hover .band-card-media img,
  .band-card:focus-visible .band-card-media img { transform: none; }
  .shot-loader,
  .shot-loader-bar { animation: none; }
  .ball.is-on-fire,
  .ball-flame,
  .ball-flame::before,
  .ball-flame::after,
  .piano.is-on-fire,
  .piano-flames .pf,
  .piano-flames .pf-split .pf-spike,
  .piano-flames .spark,
  .token.is-respawn {
    animation: none !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
