:root {
  --color-primary: #18181b;
  --color-on-primary: #ffffff;
  --color-secondary: #27272a;
  --color-accent: #00d6b9;
  --color-accent-2: #ff7ab6;
  --color-accent-3: #f8d34a;
  --color-background: #fff7fd;
  --color-foreground: #09090b;
  --color-muted: #e8ecf0;
  --color-border: #18181b;
  --color-danger: #dc2626;
  --shadow-pixel: 6px 6px 0 var(--color-primary);
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-foreground);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 182, 0.38) 0 11%, transparent 12%),
    radial-gradient(circle at 82% 14%, rgba(0, 214, 185, 0.34) 0 10%, transparent 11%),
    radial-gradient(circle at 78% 72%, rgba(248, 211, 74, 0.36) 0 12%, transparent 13%),
    linear-gradient(135deg, #fff7fd 0%, #e7f8ff 42%, #f2ffe1 100%);
  font-family: VT323, "ZCOOL KuaiLe", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 22px;
  line-height: 1.45;
}

body::selection {
  color: var(--color-on-primary);
  background: var(--color-primary);
}

main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body:not(.admin-view) #admin,
body:not(.fan-view) #fan {
  display: none;
}

body.admin-view main > :not(#admin),
body.fan-view main > :not(#fan) {
  display: none;
}

body.admin-view main,
body.fan-view main {
  overflow: visible;
}

body.admin-view .site-footer,
body.fan-view .site-footer {
  display: none;
}

body.viewer-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--color-on-primary);
  background: var(--color-primary);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.pixel-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(24, 24, 27, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.08) 2px, transparent 2px),
    linear-gradient(135deg, rgba(255, 122, 182, 0.12) 25%, transparent 25% 50%, rgba(0, 214, 185, 0.12) 50% 75%, transparent 75%);
  background-size: 28px 28px;
}

.spark-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.spark-layer span {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid var(--color-primary);
  background: var(--color-accent-3);
  box-shadow: 4px 4px 0 var(--color-primary);
  animation: floatPixel 7s steps(6) infinite;
}

.spark-layer span:nth-child(1) { left: 8%; top: 22%; animation-delay: 0s; }
.spark-layer span:nth-child(2) { left: 82%; top: 18%; background: var(--color-accent); animation-delay: 1s; }
.spark-layer span:nth-child(3) { left: 74%; top: 62%; background: var(--color-accent-2); animation-delay: 2s; }
.spark-layer span:nth-child(4) { left: 18%; top: 76%; animation-delay: 3s; }
.spark-layer span:nth-child(5) { left: 48%; top: 12%; background: #ded4ff; animation-delay: 4s; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 40px);
  border-bottom: 4px solid var(--color-primary);
  background: rgba(255, 250, 253, 0.94);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--color-on-primary);
  background: var(--color-primary);
  border: 3px solid var(--color-primary);
  box-shadow: 3px 3px 0 var(--color-accent);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
}

.brand strong,
h1,
h2 {
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 14px;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  display: grid;
  min-height: 34px;
  min-width: 72px;
  place-items: center;
  padding: 6px 12px;
  border: 3px solid var(--color-primary);
  background: var(--color-on-primary);
  box-shadow: 3px 3px 0 var(--color-primary);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translate(2px, 2px);
  background: var(--color-accent-3);
  box-shadow: 1px 1px 0 var(--color-primary);
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.hero,
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 92px) clamp(16px, 4vw, 44px);
}

.section {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  max-width: none;
  min-height: calc(100dvh - 80px);
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vh, 132px) clamp(28px, 8vw, 128px) clamp(120px, 18vh, 190px);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "text";
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  justify-content: center;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  grid-area: eyebrow;
  margin-bottom: 0;
  text-align: center;
}

.hero-copy h1 {
  grid-area: title;
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(58px, 8vw, 118px);
  line-height: 0.95;
  text-align: center;
}

.hero-text {
  grid-area: text;
  max-width: 780px;
  justify-self: center;
  margin-top: 0;
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.74;
  pointer-events: none;
  user-select: none;
}

.hero-video-fit {
  display: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 253, 0.52), rgba(255, 247, 253, 0.16) 42%, rgba(184, 255, 241, 0.14)),
    linear-gradient(to bottom, transparent 0 58%, rgba(255, 247, 253, 0.28) 78%, rgba(255, 247, 253, 0.72) 100%),
    linear-gradient(rgba(24, 24, 27, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.075) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  box-shadow: none;
  transform: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  border: 4px solid var(--color-primary);
  box-shadow: 6px 6px 0 var(--color-primary);
}

.hero::after {
  width: 132px;
  height: 56px;
  right: 6%;
  bottom: 16%;
  background: #f8d34a;
  transform: rotate(-5deg);
}

.hero::selection {
  background: var(--color-accent-2);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-secondary);
}

h1,
h2 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(30px, 5vw, 60px);
}

h2 {
  font-size: clamp(21px, 3vw, 34px);
}

h3 {
  margin: 0;
  font-size: 30px;
}

.hero-text,
.section-heading p {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: clamp(22px, 2.5vw, 28px);
}

.hero .hero-text {
  position: relative;
  max-width: 780px;
  justify-self: center;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--color-primary);
  background: transparent;
  box-shadow: none;
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: clamp(12px, 1.45vw, 18px);
  line-height: 2;
  text-align: center;
}

.hero .hero-text::before,
.hero .hero-text::after {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 4px solid var(--color-primary);
  color: var(--color-primary);
  background: var(--color-on-primary);
  box-shadow: 4px 4px 0 var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pixel-button:hover,
.pixel-button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-primary);
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.pixel-button.primary {
  color: var(--color-on-primary);
  background: var(--color-primary);
  box-shadow: 4px 4px 0 var(--color-accent);
}

.pixel-button.danger {
  color: var(--color-on-primary);
  background: var(--color-danger);
}

.hero-screen,
.pixel-form,
.admin-panel,
.member-card,
.wall-card,
.comment-card {
  border: 4px solid var(--color-primary);
  background: var(--color-on-primary);
  box-shadow: var(--shadow-pixel);
}

.hero-screen {
  overflow: hidden;
}

.screen-top {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 4px solid var(--color-primary);
  background: var(--color-muted);
}

.screen-top span {
  width: 14px;
  height: 14px;
  border: 3px solid var(--color-primary);
  background: var(--color-accent-2);
}

.screen-top span:nth-child(2) {
  background: var(--color-accent-3);
}

.screen-top span:nth-child(3) {
  background: var(--color-accent);
}

.pixel-stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 214, 185, 0.2), transparent 45%),
    linear-gradient(315deg, rgba(255, 122, 182, 0.22), transparent 48%),
    var(--color-on-primary);
}

.avatar-card {
  aspect-ratio: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 4px solid var(--color-primary);
  font-family: "Press Start 2P", monospace;
  font-size: clamp(9px, 1.05vw, 12px);
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.avatar-card::before,
.avatar-card::after {
  content: "";
  position: absolute;
  border: 3px solid currentColor;
  background: rgba(255, 255, 255, 0.62);
}

.avatar-card::before {
  width: 22px;
  height: 22px;
  left: 10px;
  top: 10px;
}

.avatar-card::after {
  width: 34px;
  height: 12px;
  right: 10px;
  bottom: 12px;
}

.avatar-card span,
.avatar-card {
  isolation: isolate;
}

.avatar-card:hover,
.avatar-card:focus-visible,
.avatar-card.is-active {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--color-primary);
  filter: saturate(1.25);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.pulse-once {
  animation: stagePulse 420ms steps(3);
}

.mint { background: #b8fff1; }
.sky { background: #bde7ff; }
.pink { background: #ffd1e6; }
.lime { background: #ddff8f; }
.violet { background: #ded4ff; }
.member-minji { background: #8ecbff; }
.member-hanni { background: #ff6ccf; }
.member-danielle { background: #ffe45c; }
.member-haerin { background: #7ed957; }
.member-hyein { background: #ff9b45; }

.terminal-line {
  margin: 0;
  padding: 12px 16px 16px;
  color: #b8fff1;
  background: var(--color-primary);
  font-size: 20px;
}

.member-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
  border-top: 4px solid var(--color-primary);
  background:
    linear-gradient(90deg, rgba(255, 122, 182, 0.16), rgba(0, 214, 185, 0.16)),
    var(--color-on-primary);
}

.member-board-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  animation: playerReveal 260ms steps(5) both;
}

.member-token {
  display: grid;
  width: 92px;
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid var(--color-primary);
  box-shadow: 5px 5px 0 var(--color-primary);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
}

.member-board-card h3,
.member-board-card p {
  margin: 0;
}

.member-board-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-form {
  display: grid;
  gap: 8px;
}

.mini-form input {
  min-height: 42px;
  padding: 8px 10px;
  border: 3px solid var(--color-primary);
}

.mini-feed {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
}

.mini-post {
  padding: 8px 10px;
  border: 3px solid var(--color-primary);
  background: rgba(255, 255, 255, 0.8);
}

.mini-post p {
  margin: 0;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading.left {
  text-align: left;
}

.gallery-heading {
  display: grid;
  grid-template-columns: auto;
  justify-content: center;
  align-items: center;
}

.gallery-heading .eyebrow {
  margin: 0;
}

#gallery {
  max-width: min(1680px, 100%);
}

.showcase-strip {
  padding-block: 0;
}

.marquee {
  overflow: hidden;
  border-block: 4px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee span {
  padding: 14px 28px;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  white-space: nowrap;
}

.carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.carousel-viewport {
  overflow: hidden;
  border: 4px solid var(--color-primary);
  background: var(--color-on-primary);
  box-shadow: var(--shadow-pixel);
  container-type: inline-size;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 320ms steps(6);
}

.carousel-slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  min-height: clamp(440px, 56vw, 640px);
  padding: clamp(14px, 3vw, 28px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 2px, transparent 2px),
    linear-gradient(rgba(255, 247, 253, 0.22), rgba(255, 247, 253, 0.08)),
    url("./background.jpg") center / cover;
  background-size: 42px 42px, 42px 42px, auto, cover;
}

.carousel-slide::before,
.carousel-slide::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 4px solid rgba(24, 24, 27, 0.72);
  box-shadow: 5px 5px 0 rgba(24, 24, 27, 0.32);
}

.carousel-slide::before {
  width: clamp(54px, 8vw, 92px);
  height: clamp(38px, 5vw, 62px);
  left: 5%;
  bottom: 8%;
  background: rgba(248, 211, 74, 0.78);
  transform: rotate(-8deg);
}

.carousel-slide::after {
  width: clamp(44px, 6vw, 74px);
  height: clamp(44px, 6vw, 74px);
  right: 7%;
  top: 7%;
  background: rgba(222, 212, 255, 0.78);
  transform: rotate(10deg);
}

.carousel-slide.member-hanni {
  background-position: center;
}

.carousel-slide.member-minji {
  background-position: 42% center;
}

.carousel-slide.member-danielle {
  background-position: 58% center;
}

.carousel-slide.member-haerin {
  background-position: 35% center;
}

.carousel-slide.member-hyein {
  background-position: 72% center;
}

.scattered-board {
  position: relative;
  width: 100%;
  height: clamp(400px, 50vw, 580px);
}

.scattered-photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  margin: 0;
  padding: clamp(8px, 1.1vw, 14px);
  border: 4px solid var(--color-primary);
  background: #fff;
  box-shadow: 8px 8px 0 rgba(24, 24, 27, 0.88);
  transform: rotate(var(--r));
  z-index: var(--z);
}

.scattered-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid rgba(24, 24, 27, 0.42);
}

.scattered-photo::after {
  content: "";
  display: block;
  height: clamp(12px, 1.8vw, 22px);
}

.scattered-photo.photo-1 {
  --x: 1%;
  --y: 2%;
  --r: -8deg;
  --z: 2;
  width: 38%;
  height: 54%;
}

.scattered-photo.photo-2 {
  --x: 33%;
  --y: 4%;
  --r: 5deg;
  --z: 4;
  width: 36%;
  height: 52%;
}

.scattered-photo.photo-3 {
  --x: 64%;
  --y: 1%;
  --r: -4deg;
  --z: 3;
  width: 31%;
  height: 53%;
}

.scattered-photo.photo-4 {
  --x: 12%;
  --y: 52%;
  --r: 7deg;
  --z: 5;
  width: 34%;
  height: 43%;
}

.scattered-photo.photo-5 {
  --x: 56%;
  --y: 51%;
  --r: -9deg;
  --z: 1;
  width: 37%;
  height: 44%;
}

.board-1 .photo-1 { --x: 14%; --y: 6%; --r: -16deg; --z: 2; width: 40%; height: 47%; }
.board-1 .photo-2 { --x: 46%; --y: 8%; --r: 15deg; --z: 4; width: 39%; height: 48%; }
.board-1 .photo-3 { --x: 42%; --y: 42%; --r: -15deg; --z: 3; width: 40%; height: 47%; }
.board-1 .photo-4 { --x: 15%; --y: 40%; --r: 16deg; --z: 5; width: 39%; height: 48%; }

.board-2 .photo-1 { --x: 2%; --y: 41%; --r: 6deg; --z: 4; width: 35%; height: 47%; }
.board-2 .photo-2 { --x: 19%; --y: 2%; --r: -7deg; --z: 2; width: 34%; height: 52%; }
.board-2 .photo-3 { --x: 60%; --y: 4%; --r: 8deg; --z: 3; width: 34%; height: 50%; }
.board-2 .photo-4 { --x: 50%; --y: 47%; --r: -5deg; --z: 5; width: 36%; height: 46%; }

.board-3 .photo-1 { --x: 13%; --y: 7%; --r: 14deg; --z: 3; width: 40%; height: 47%; }
.board-3 .photo-2 { --x: 46%; --y: 6%; --r: -16deg; --z: 5; width: 39%; height: 48%; }
.board-3 .photo-3 { --x: 45%; --y: 43%; --r: 16deg; --z: 2; width: 39%; height: 46%; }
.board-3 .photo-4 { --x: 14%; --y: 42%; --r: -14deg; --z: 4; width: 40%; height: 47%; }

.board-4 .photo-1 { --x: 1%; --y: 8%; --r: 8deg; --z: 2; width: 40%; height: 70%; }
.board-4 .photo-2 { --x: 31%; --y: 18%; --r: -10deg; --z: 5; width: 38%; height: 68%; }
.board-4 .photo-3 { --x: 60%; --y: 6%; --r: 6deg; --z: 3; width: 36%; height: 70%; }

.board-5 .photo-1 { --x: 2%; --y: 3%; --r: -9deg; --z: 4; width: 34%; height: 51%; }
.board-5 .photo-2 { --x: 18%; --y: 48%; --r: 7deg; --z: 5; width: 35%; height: 45%; }
.board-5 .photo-3 { --x: 45%; --y: 1%; --r: -4deg; --z: 2; width: 34%; height: 50%; }
.board-5 .photo-4 { --x: 60%; --y: 46%; --r: 9deg; --z: 3; width: 34%; height: 45%; }
}

.carousel-button,
.dot {
  border: 4px solid var(--color-primary);
  color: var(--color-primary);
  background: var(--color-on-primary);
  box-shadow: 4px 4px 0 var(--color-primary);
  cursor: pointer;
}

.carousel-button {
  min-width: 52px;
  font-size: 44px;
}

.carousel-button:hover,
.carousel-button:focus-visible,
.dot:hover,
.dot:focus-visible,
.dot.is-active {
  background: var(--color-accent-3);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 30px;
}

.dot {
  width: 24px;
  height: 24px;
  padding: 0;
}

.member-grid,
.wall-grid,
.comment-list {
  display: grid;
  gap: 18px;
}

.member-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.member-card,
.wall-card,
.comment-card {
  overflow: hidden;
}

.member-cover {
  width: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.member-cover:focus-visible {
  outline: 4px solid var(--color-accent-2);
  outline-offset: 5px;
}

.interactive-card {
  animation: cardIn 360ms steps(5) both;
  animation-delay: calc(var(--stagger, 0) * 45ms);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.interactive-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--color-primary);
  filter: saturate(1.08);
}

.member-art,
.wall-image {
  aspect-ratio: 4 / 3;
  border-bottom: 4px solid var(--color-primary);
}

.member-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: 4px solid var(--color-primary);
  background: var(--color-muted);
}

.member-art {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.member-art small {
  font-size: 9px;
}

.member-name {
  padding: 14px;
  text-align: center;
}

.wall-card-body,
.comment-card {
  padding: 14px;
}

.member-card h3 {
  margin: 0 0 6px;
}

.member-card p,
.wall-card p,
.comment-card p {
  margin: 4px 0;
}

.member-card .member-name p {
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: 9px;
  line-height: 1.6;
}

.member-library[hidden] {
  display: none;
}

.member-library {
  margin-top: clamp(26px, 5vw, 52px);
  padding: clamp(16px, 3vw, 28px);
  border: 4px solid var(--color-primary);
  background:
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(255, 122, 182, 0.28), rgba(0, 214, 185, 0.24));
  box-shadow: var(--shadow-pixel);
}

.library-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.library-topbar h2 {
  margin: 6px 0 8px;
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1.2;
}

.library-topbar p {
  margin-block: 0;
}

.library-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
}

.library-panel {
  min-width: 0;
  padding: clamp(12px, 2vw, 18px);
  border: 4px solid var(--color-primary);
  background:
    linear-gradient(rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(90deg, rgba(24, 24, 27, 0.05) 0 2px, transparent 2px 18px);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.52);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.library-card,
.admin-review-card {
  border: 4px solid var(--color-primary);
  background: var(--color-on-primary);
  box-shadow: 5px 5px 0 var(--color-primary);
  overflow: hidden;
}

.library-image-link {
  display: block;
  border-bottom: 4px solid var(--color-primary);
  background: var(--color-muted);
}

.library-image-link:focus-visible {
  outline: 4px solid var(--color-accent-2);
  outline-offset: -8px;
}

.library-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.library-card-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.library-card h3,
.upload-panel h3,
.admin-review-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.library-card p,
.admin-review-card p {
  margin: 0;
}

.library-actions,
.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 8px;
}

.heart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border: 3px solid var(--color-primary);
  color: var(--color-primary);
  background:
    linear-gradient(135deg, #ffd1e6 0%, #ff7ab6 55%, #ffe45c 100%);
  box-shadow: 3px 3px 0 var(--color-primary);
  cursor: pointer;
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.heart-button span {
  color: #e11d48;
  font-size: 18px;
  line-height: 1;
}

.heart-button:hover,
.heart-button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-primary);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.heart-button.is-liked,
.heart-button:disabled {
  cursor: default;
  color: var(--color-on-primary);
  background:
    linear-gradient(135deg, #e11d48 0%, #ff7ab6 62%, #ded4ff 100%);
}

.heart-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 6px 9px;
  border: 3px solid var(--color-primary);
  background:
    linear-gradient(135deg, #ffd1e6 0%, #ff7ab6 58%, #ffe45c 100%);
  box-shadow: 3px 3px 0 var(--color-primary);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: 11px;
}

.heart-count span {
  color: #e11d48;
  font-size: 18px;
  line-height: 1;
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 30px);
  background: rgba(24, 24, 27, 0.72);
}

.photo-viewer-panel {
  display: grid;
  gap: 14px;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 40px);
  padding: clamp(14px, 2vw, 22px);
  border: 4px solid var(--color-primary);
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 247, 253, 0.94)),
    linear-gradient(135deg, rgba(255, 122, 182, 0.42), rgba(0, 214, 185, 0.32));
  box-shadow: 8px 8px 0 var(--color-primary);
}

.photo-viewer-topbar,
.photo-viewer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.photo-viewer-topbar h2 {
  margin: 4px 0 0;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.25;
}

.photo-viewer img {
  width: 100%;
  max-height: min(68dvh, 720px);
  object-fit: contain;
  border: 4px solid var(--color-primary);
  background: var(--color-on-primary);
}

.compact-button {
  min-height: 42px;
  padding: 8px 10px;
  border-width: 3px;
  box-shadow: 3px 3px 0 var(--color-primary);
  font-size: 18px;
}

.upload-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-self: start;
  align-items: end;
}

.upload-panel h3 {
  grid-column: 1 / -1;
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

.upload-panel .eyebrow,
.upload-panel .form-hint,
.upload-panel .form-message {
  grid-column: 1 / -1;
}

.empty-state {
  margin: 0;
  padding: 16px;
  border: 3px dashed var(--color-primary);
  background: rgba(255, 255, 255, 0.72);
}

.admin-section,
.fan-section {
  min-height: calc(100dvh - 60px);
  padding-top: clamp(28px, 5vw, 60px);
}

.admin-shell,
.fan-shell {
  border: 4px solid var(--color-primary);
  background:
    linear-gradient(90deg, rgba(189, 231, 255, 0.62), rgba(255, 209, 230, 0.62)),
    var(--color-on-primary);
  box-shadow: var(--shadow-pixel);
  padding: clamp(16px, 3vw, 28px);
}

.admin-shell {
  width: min(1560px, calc(100vw - 32px));
  margin-inline: auto;
}

.admin-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-header .section-heading {
  margin-bottom: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.admin-stats span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 8px 10px;
  border: 3px solid var(--color-primary);
  background: var(--color-on-primary);
  box-shadow: 3px 3px 0 var(--color-primary);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
}

.admin-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.admin-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-column h3 {
  margin: 0;
  padding: 10px 12px;
  border: 3px solid var(--color-primary);
  background: var(--color-on-primary);
  box-shadow: 3px 3px 0 var(--color-primary);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.admin-review-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  align-items: stretch;
}

.admin-review-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 0;
}

.admin-review-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  min-width: 0;
}

.reject-field {
  display: grid;
  gap: 6px;
}

.reject-field textarea {
  min-height: 78px;
  resize: vertical;
  padding: 8px 10px;
  border: 3px solid var(--color-primary);
  background: var(--color-on-primary);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border: 3px solid var(--color-primary);
  background: var(--color-accent-3);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: 10px;
}

.status-rejected .status-pill {
  color: var(--color-on-primary);
  background: var(--color-danger);
}

.status-pending .status-pill {
  background: var(--color-accent);
}

.reject-reason {
  padding: 8px;
  border: 3px dashed var(--color-danger);
  background: rgba(220, 38, 38, 0.08);
}

.song-vinyl-stage {
  position: relative;
  display: grid;
  grid-template-areas:
    "carousel"
    "actions";
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
  min-height: clamp(520px, 54vw, 680px);
  padding: clamp(18px, 3vw, 34px);
  border: 4px solid var(--color-primary);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 209, 230, 0.56), transparent 34%),
    radial-gradient(circle at 78% 70%, rgba(184, 255, 241, 0.5), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(225, 250, 255, 0.92) 48%, rgba(255, 244, 251, 0.94));
  box-shadow: var(--shadow-pixel);
  overflow: hidden;
}

.music-heading {
  display: grid;
  place-items: center;
  margin: 0 0 28px;
  text-align: center;
}

.music-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 14px 26px 12px;
  border: 4px solid var(--color-primary);
  color: var(--color-primary);
  background:
    linear-gradient(90deg, rgba(189, 231, 255, 0.94), rgba(255, 209, 230, 0.94));
  box-shadow: 6px 6px 0 var(--color-primary);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.music-heading h2::before,
.music-heading h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid var(--color-primary);
  background: var(--color-accent);
  box-shadow: 3px 3px 0 var(--color-primary);
  transform: translateY(-50%);
}

.music-heading h2::before {
  left: -28px;
}

.music-heading h2::after {
  right: -28px;
  background: var(--color-accent-2);
}

.song-vinyl-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(24, 24, 27, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 24, 27, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(255, 122, 182, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 214, 185, 0.08) 2px, transparent 2px);
  background-size: 16px 16px, 16px 16px, 64px 64px, 64px 64px;
  pointer-events: none;
}

.song-vinyl-carousel {
  grid-area: carousel;
  position: relative;
  z-index: 3;
  justify-self: center;
  width: min(1040px, 100%);
  min-height: clamp(360px, 36vw, 470px);
  padding: clamp(104px, 10vw, 132px) clamp(70px, 7vw, 100px);
  border: 4px solid rgba(24, 24, 27, 0.28);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 4px 4px 0 rgba(24, 24, 27, 0.18);
  overflow: hidden;
  touch-action: pan-y;
}

.song-vinyl-carousel::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  z-index: 1;
  height: 2px;
  background: rgba(24, 24, 27, 0.16);
  pointer-events: none;
}

.song-vinyl-carousel::after {
  display: none;
}

.song-vinyl-carousel:focus-visible {
  outline: 4px solid var(--color-accent-2);
  outline-offset: 4px;
}

.vinyl-window {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: clamp(120px, 15vw, 210px);
  isolation: isolate;
}

.song-vinyl-carousel.is-sliding .vinyl-window {
  animation: albumWindowGlide 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.song-vinyl-carousel.is-sliding.is-reverse .vinyl-window {
  animation-name: albumWindowGlideReverse;
}

.vinyl-disc-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--vinyl-z, 1);
  width: clamp(128px, 15vw, 230px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  opacity: var(--vinyl-opacity, 1);
  transform:
    translate(-50%, -50%)
    translateX(var(--vinyl-x, 0))
    translateY(var(--vinyl-y, 0))
    scale(var(--vinyl-scale, 1));
  transition:
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 320ms ease,
    opacity 320ms ease;
  will-change: transform;
}

.vinyl-disc-button:hover,
.vinyl-disc-button:focus-visible {
  filter: saturate(1.18) brightness(1.04);
  outline: none;
}

.vinyl-disc-button:focus-visible .album-card {
  outline: 4px solid var(--color-accent-2);
  outline-offset: 6px;
}

.vinyl-pos-0 { --vinyl-scale: 0.68; --vinyl-y: 24px; --vinyl-x: clamp(-430px, -31vw, -280px); --vinyl-z: 1; --vinyl-opacity: 0.72; }
.vinyl-pos-1 { --vinyl-scale: 0.78; --vinyl-y: 16px; --vinyl-x: clamp(-310px, -22vw, -198px); --vinyl-z: 2; --vinyl-opacity: 0.84; }
.vinyl-pos-2 { --vinyl-scale: 0.92; --vinyl-y: 6px; --vinyl-x: clamp(-176px, -12vw, -108px); --vinyl-z: 3; --vinyl-opacity: 1; }
.vinyl-pos-3 { --vinyl-scale: 1.18; --vinyl-y: -10px; --vinyl-x: 0; --vinyl-z: 7; --vinyl-opacity: 1; }
.vinyl-pos-4 { --vinyl-scale: 0.92; --vinyl-y: 6px; --vinyl-x: clamp(108px, 12vw, 176px); --vinyl-z: 3; --vinyl-opacity: 1; }
.vinyl-pos-5 { --vinyl-scale: 0.78; --vinyl-y: 16px; --vinyl-x: clamp(198px, 22vw, 310px); --vinyl-z: 2; --vinyl-opacity: 0.84; }
.vinyl-pos-6 { --vinyl-scale: 0.68; --vinyl-y: 24px; --vinyl-x: clamp(280px, 31vw, 430px); --vinyl-z: 1; --vinyl-opacity: 0.72; }

.album-card {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 3px solid rgba(24, 24, 27, 0.92);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, var(--vinyl-a), var(--vinyl-b));
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  pointer-events: none;
}

.album-shadow {
  content: "";
  position: absolute;
  inset: auto 8% -10px;
  height: 20px;
  z-index: -1;
  background: rgba(0, 0, 0, 0.42);
  filter: blur(12px);
}

.album-vinyl {
  display: none;
}

.album-cover-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.album-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, var(--vinyl-a), var(--vinyl-b));
  transform: translateZ(0);
  transition: opacity 180ms ease;
}

.album-gloss {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(to bottom, transparent 72%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.album-spine {
  display: none;
}

.vinyl-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  max-width: none;
  padding: 8px 6px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: clamp(7px, 0.8vw, 10px);
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
}

.vinyl-disc-button.is-active .album-card {
  animation: albumPulse 1.8s ease-in-out infinite;
}

.vinyl-disc-button.mint { --vinyl-a: #b8fff1; --vinyl-b: #00d6b9; --vinyl-c: #ffffff; }
.vinyl-disc-button.sky { --vinyl-a: #bde7ff; --vinyl-b: #7cc8ff; --vinyl-c: #ffffff; }
.vinyl-disc-button.pink { --vinyl-a: #ffd1e6; --vinyl-b: #ff7ab6; --vinyl-c: #ffffff; }
.vinyl-disc-button.lime { --vinyl-a: #ddff8f; --vinyl-b: #aee84f; --vinyl-c: #ffffff; }
.vinyl-disc-button.violet { --vinyl-a: #ded4ff; --vinyl-b: #a995ff; --vinyl-c: #ffffff; }

.vinyl-control {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: grid;
  width: 48px;
  min-height: 58px;
  place-items: center;
  border: 4px solid var(--color-primary);
  color: var(--color-primary);
  background: var(--color-on-primary);
  box-shadow: 4px 4px 0 var(--color-primary);
  cursor: pointer;
  font-size: 42px;
  transform: translateY(-50%);
}

.vinyl-control-prev {
  left: 12px;
}

.vinyl-control-next {
  right: 12px;
}

.vinyl-control:hover,
.vinyl-control:focus-visible {
  background: var(--color-accent-3);
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.song-actions {
  grid-area: actions;
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(720px, 100%);
  margin: 0 auto;
}

.song-action-button {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 8px 14px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.86);
  border: 3px solid var(--color-primary);
  box-shadow: 4px 4px 0 rgba(0, 214, 185, 0.72);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: clamp(10px, 1.3vw, 14px);
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.song-action-button:hover,
.song-action-button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 214, 185, 0.72);
  outline: 3px solid var(--color-accent-2);
  outline-offset: 2px;
}

.lyrics-rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.lyrics-rain-bg {
  grid-area: carousel;
  z-index: 2;
  opacity: 0.72;
}

.global-lyrics-rain {
  top: calc(100dvh - 80px);
  bottom: 0;
  z-index: 0;
  min-height: auto;
  opacity: 0.87;
  overflow: hidden;
  mask-image:
    linear-gradient(to bottom, transparent, black 72px, black calc(100% - 44px), transparent),
    linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-composite: intersect;
}

.global-lyrics-rain::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255, 255, 255, 0.22) 30px 31px);
  pointer-events: none;
}

.lyrics-rain-track {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  width: max-content;
  gap: 34px;
  animation: lyricMarquee var(--rain-duration, 24s) linear infinite;
  animation-delay: var(--rain-delay, 0s);
  opacity: 1;
  pointer-events: none;
}

.global-lyrics-rain .lyrics-rain-track {
  top: var(--rain-top);
  right: auto;
  min-width: 240vw;
  gap: clamp(24px, 4vw, 58px);
  opacity: 0.92;
  transform: translateX(var(--rain-shift, 0%));
}

.global-lyrics-rain .lyrics-rain-track:nth-child(even) {
  animation-direction: reverse;
  opacity: 0.82;
}

.global-lyrics-rain .lyrics-rain-track:nth-child(3n) {
  transform: translateX(-18%);
}

.lyric-track-1 { top: 14px; }
.lyric-track-2 { top: 54px; }
.lyric-track-3 { top: 94px; }
.lyric-track-4 { bottom: 54px; }
.lyric-track-5 { bottom: 14px; }
.lyric-track-6 { display: none; }

.lyric-track-2,
.lyric-track-4,
.lyric-track-6 {
  animation-direction: reverse;
  opacity: 0.72;
  transform: translateX(-18%);
}

.lyrics-rain-track span {
  display: inline-block;
  color: rgba(24, 24, 27, 0.51);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: clamp(12px, 1.15vw, 17px);
  line-height: 1.35;
  white-space: nowrap;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.48);
  animation: lyricFade 4.8s ease-in-out infinite;
}

.lyrics-rain-track span:nth-child(5n + 1) { color: rgba(255, 122, 182, 0.66); animation-delay: -0.3s; }
.lyrics-rain-track span:nth-child(5n + 2) { color: rgba(0, 153, 138, 0.6); animation-delay: -1s; }
.lyrics-rain-track span:nth-child(5n + 3) { color: rgba(202, 145, 12, 0.63); animation-delay: -1.7s; }
.lyrics-rain-track span:nth-child(5n + 4) { color: rgba(124, 106, 255, 0.57); animation-delay: -2.5s; }
.lyrics-rain-track span:nth-child(5n) { color: rgba(24, 24, 27, 0.51); animation-delay: -3.2s; }

.global-lyrics-rain .lyrics-rain-track span {
  font-size: clamp(10px, 1.1vw, 17px);
  opacity: 0.92;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.44);
}

.lyric-track-2 span,
.lyric-track-4 span,
.lyric-track-6 span {
  font-size: clamp(11px, 1.1vw, 18px);
  opacity: 0.62;
}

.lyric-track-1 span,
.lyric-track-3 span,
.lyric-track-5 span {
  filter: drop-shadow(3px 3px 0 rgba(24, 24, 27, 0.18));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.guestbook-section {
  display: block;
}

.guestbook-heading {
  display: grid;
  place-items: center;
  margin: 0 0 24px;
  text-align: center;
}

.guestbook-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 14px 22px 12px;
  border: 4px solid var(--color-primary);
  color: var(--color-primary);
  background:
    linear-gradient(90deg, rgba(255, 209, 230, 0.94), rgba(184, 255, 241, 0.94));
  box-shadow: 6px 6px 0 var(--color-primary);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1.25;
  text-transform: none;
}

.guestbook-heading h2::before,
.guestbook-heading h2::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid var(--color-primary);
  background: var(--color-accent);
  box-shadow: 3px 3px 0 var(--color-primary);
  transform: translateY(-50%);
}

.guestbook-heading h2::before {
  left: -28px;
}

.guestbook-heading h2::after {
  right: -28px;
  background: var(--color-accent-2);
}

.guestbook-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  max-width: 820px;
  margin: 24px auto 0;
  padding: 10px;
  border: 4px solid var(--color-primary);
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    repeating-linear-gradient(90deg, rgba(24, 24, 27, 0.08) 0 2px, transparent 2px 12px);
  box-shadow: 6px 6px 0 rgba(24, 24, 27, 0.86);
}

.guestbook-form label {
  display: block;
  min-width: 0;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  height: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 4px solid rgba(24, 24, 27, 0.9);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 4px 4px 0 rgba(184, 255, 241, 0.55), 3px 3px 0 rgba(255, 122, 182, 0.6);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
  color: rgba(24, 24, 27, 0.48);
}

.guestbook-form .pixel-button {
  min-width: 116px;
  min-height: 58px;
  padding: 10px 18px;
  border-width: 4px;
  box-shadow: 4px 4px 0 var(--color-accent-2);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: 3px solid var(--color-accent-2);
  outline-offset: 3px;
}

.danmaku-wall {
  position: relative;
  min-height: 375px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px 0;
  overflow: hidden;
  border: 4px solid var(--color-primary);
  background:
    radial-gradient(circle at 12% 28%, rgba(255, 122, 182, 0.18), transparent 24%),
    radial-gradient(circle at 82% 68%, rgba(0, 214, 185, 0.16), transparent 26%),
    linear-gradient(90deg, rgba(255, 246, 253, 0.82), rgba(224, 250, 255, 0.82)),
    repeating-linear-gradient(90deg, rgba(24, 24, 27, 0.05) 0 2px, transparent 2px 16px);
  box-shadow: 6px 6px 0 rgba(24, 24, 27, 0.86);
}

.danmaku-wall::before,
.danmaku-wall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 24px;
  background:
    radial-gradient(circle, #fff7fd 0 4px, rgba(24, 24, 27, 0.78) 5px 7px, transparent 8px) 0 50% / 34px 20px repeat-x,
    linear-gradient(90deg, rgba(255, 209, 230, 0.8), rgba(184, 255, 241, 0.8));
  border-block: 3px solid rgba(24, 24, 27, 0.86);
}

.danmaku-wall::before {
  top: 0;
}

.danmaku-wall::after {
  bottom: 0;
}

.danmaku-track {
  position: relative;
  display: block;
  width: 100%;
  max-height: none;
  min-height: 323px;
  overflow: visible;
  padding: 42px 0 36px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.danmaku-track.is-looping {
  animation: none;
}

.danmaku-track:hover,
.danmaku-track:focus-within {
  animation-play-state: paused;
}

.danmaku-track:hover .comment-card,
.danmaku-track:focus-within .comment-card {
  animation-play-state: paused;
}

.pixel-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.pixel-form.compact {
  max-width: 520px;
  margin: 0 auto 26px;
}

.fan-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pixel-form label {
  display: grid;
  gap: 6px;
}

.pixel-form input,
.pixel-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 4px solid var(--color-primary);
  background: #fff;
}

.pixel-form textarea {
  min-height: 130px;
  resize: vertical;
}

.pixel-form input:focus,
.pixel-form textarea:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.form-hint,
.form-message {
  margin: 0;
  font-size: 20px;
}

.form-message {
  min-height: 28px;
}

.comment-count {
  width: max-content;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 8px 14px;
  border: 3px solid var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 4px 4px 0 rgba(0, 214, 185, 0.45);
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: clamp(10px, 1.4vw, 13px);
  line-height: 1.45;
  text-align: center;
}

.wall-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wall-image {
  width: 100%;
  object-fit: cover;
  background: var(--color-muted);
}

.comment-list {
  max-height: 680px;
  overflow: auto;
  padding-right: 8px;
}

.danmaku-track.comment-list {
  max-height: none;
  overflow: visible;
}

.danmaku-track .comment-card {
  position: absolute;
  top: calc(18px + var(--lane, 0) * 39px);
  left: 100%;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: min(760px, 82vw);
  min-height: 31px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid rgba(24, 24, 27, 0.74);
  background:
    linear-gradient(90deg, rgba(255, 209, 230, 0.86), rgba(184, 255, 241, 0.82));
  box-shadow: 2px 2px 0 rgba(24, 24, 27, 0.38);
  white-space: nowrap;
  animation: danmakuBullet var(--duration, 24s) linear infinite;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: both;
  will-change: transform;
}

.danmaku-track .comment-card:nth-child(7n + 2) { top: calc(18px + 4 * 39px + 9px); }
.danmaku-track .comment-card:nth-child(7n + 3) { top: calc(18px + 1 * 39px - 4px); }
.danmaku-track .comment-card:nth-child(7n + 4) { top: calc(18px + 6 * 39px - 8px); }
.danmaku-track .comment-card:nth-child(7n + 5) { top: calc(18px + 2 * 39px + 8px); }
.danmaku-track .comment-card:nth-child(7n + 6) { top: calc(18px + 5 * 39px + 2px); }
.danmaku-track .comment-card:nth-child(7n) { top: calc(18px + 3 * 39px - 9px); }

.danmaku-track .comment-card:nth-child(3n + 2) {
  background: linear-gradient(90deg, rgba(222, 212, 255, 0.82), rgba(189, 231, 255, 0.82));
}

.danmaku-track .comment-card:nth-child(3n) {
  background: linear-gradient(90deg, rgba(248, 211, 74, 0.5), rgba(221, 255, 143, 0.72));
}

.danmaku-track .comment-card p {
  margin: 0;
  font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
}

.admin-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 3px solid var(--color-primary);
}

.admin-item span {
  overflow-wrap: anywhere;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 24px clamp(16px, 4vw, 44px) 28px;
  border-top: 4px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 18px;
  line-height: 1.45;
}

.site-footer h2 {
  margin: 0 0 4px;
  color: var(--color-on-primary);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer p {
  max-width: 1100px;
  margin: 0;
  overflow-wrap: anywhere;
}

@keyframes floatPixel {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(18px, -16px); }
  70% { transform: translate(-12px, 12px); }
}

@keyframes stagePulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.18) saturate(1.3); }
  100% { filter: brightness(1); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pixelBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes playerReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes equalize {
  0%, 100% { transform: scaleY(0.65); }
  50% { transform: scaleY(1.12); }
}

@keyframes albumPulse {
  0%, 100% {
    filter: brightness(1) saturate(1);
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.08) saturate(1.16);
    transform: translateY(-3px);
  }
}

@keyframes lyricsFall {
  from { transform: translateY(0); }
  to { transform: translateY(220%); }
}

@keyframes lyricMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes lyricFade {
  0%, 100% {
    opacity: 0.38;
    filter: blur(0.4px);
  }
  45% {
    opacity: 0.95;
    filter: blur(0);
  }
  72% {
    opacity: 0.58;
    filter: blur(0.2px);
  }
}

@keyframes albumWindowGlide {
  0% {
    opacity: 0.72;
    transform: translateX(56px) scale(0.96);
  }
  62% {
    opacity: 1;
    transform: translateX(-10px) scale(1.012);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes albumWindowGlideReverse {
  0% {
    opacity: 0.72;
    transform: translateX(-56px) scale(0.96);
  }
  62% {
    opacity: 1;
    transform: translateX(10px) scale(1.012);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes danmakuRoll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes danmakuBullet {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-100vw - 100% - 220px), 0, 0); }
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .guestbook-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "text";
    justify-content: start;
  }

  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-layout {
    grid-template-columns: 1fr;
  }

  .upload-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-grid,
  .admin-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-header {
    display: grid;
  }

  .admin-columns {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .pixel-stage {
    grid-template-columns: repeat(5, minmax(76px, 1fr));
    overflow-x: auto;
  }

  .song-vinyl-stage {
    min-height: 430px;
    padding: 18px;
  }

  .song-vinyl-carousel {
    min-height: 250px;
    padding: 54px 44px;
  }

  .vinyl-window {
    min-height: 160px;
  }

  .vinyl-disc-button {
    width: clamp(120px, 20vw, 190px);
  }

  .lyrics-rain-track span {
    font-size: clamp(12px, 1.6vw, 18px);
  }
}

@media (max-width: 720px) {
  :root {
    --shadow-pixel: 4px 4px 0 var(--color-primary);
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 17px;
    line-height: 1.5;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 7px 10px 9px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    flex: 1;
    justify-content: stretch;
    gap: 5px;
  }

  .site-nav a {
    display: grid;
    min-width: 0;
    min-height: 32px;
    place-items: center;
    padding: 5px 4px;
    border: 2px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 2px 2px 0 var(--color-primary);
    font-size: 16px;
    line-height: 1;
    text-align: center;
  }

  .brand {
    flex: 0 0 auto;
    gap: 7px;
    min-height: 34px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--color-accent);
    font-size: 9px;
  }

  .brand strong {
    font-size: 10px;
    line-height: 1.15;
  }

  .hero,
  .section {
    width: 100%;
    padding: 42px 14px;
  }

  .hero {
    min-height: min(660px, calc(100dvh - 96px));
    align-items: stretch;
    padding: 48px 14px 58px;
  }

  .hero-copy {
    min-height: calc(min(660px, calc(100dvh - 96px)) - 106px);
    grid-template-rows: auto minmax(250px, 1fr) auto;
    grid-template-areas:
      "title"
      "."
      "text";
    gap: 10px;
    align-content: stretch;
  }

  .hero-copy h1 {
    max-width: 10ch;
    justify-self: center;
    font-size: clamp(34px, 12vw, 54px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .hero .hero-text {
    width: min(100%, 560px);
    max-width: none;
    justify-self: center;
    font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.72;
    color: rgba(24, 24, 27, 0.68);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
  }

  .hero .hero-text::before,
  .hero .hero-text::after {
    display: none;
  }

  .hero-copy .eyebrow {
    font-size: 9px;
  }

  .hero::before {
    background:
      radial-gradient(ellipse at 50% 34%, rgba(255, 247, 253, 0.02) 0 26%, rgba(255, 247, 253, 0.34) 66%, rgba(255, 247, 253, 0.88) 100%),
      linear-gradient(to bottom, rgba(255, 247, 253, 0.08) 0%, rgba(255, 247, 253, 0.24) 48%, rgba(255, 247, 253, 0.96) 100%),
      linear-gradient(rgba(24, 24, 27, 0.075) 1px, transparent 1px),
      linear-gradient(90deg, rgba(24, 24, 27, 0.075) 1px, transparent 1px);
    background-size: auto, auto, 22px 22px, 22px 22px;
  }

  .hero-video-fill {
    filter: blur(18px) saturate(1.24) brightness(1.06);
    opacity: 0.58;
    transform: scale(1.16);
  }

  .hero-video-fit {
    display: block;
    inset: 50% auto auto 50%;
    width: min(100%, 560px);
    height: auto;
    max-height: none;
    object-fit: contain;
    opacity: 0.78;
    mix-blend-mode: multiply;
    transform: translate(-50%, -50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 70%, transparent 96%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 70%, transparent 96%);
  }

  .hero::after {
    right: 14px;
    bottom: 18px;
    width: 72px;
    height: 30px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--color-primary);
  }

  .section-heading {
    margin-bottom: 18px;
    text-align: left;
  }

  .guestbook-heading {
    margin-bottom: 18px;
  }

  .guestbook-heading h2 {
    max-width: calc(100vw - 86px);
    padding: 12px 14px 10px;
    font-size: clamp(14px, 4.5vw, 20px);
  }

  .guestbook-heading h2::before {
    left: -22px;
  }

  .guestbook-heading h2::after {
    right: -22px;
  }

  .section-heading p {
    max-width: none;
    margin-top: 12px;
    font-size: 17px;
  }

  .music-heading {
    margin-bottom: 20px;
  }

  .music-heading h2 {
    padding: 12px 18px 10px;
    font-size: clamp(18px, 6vw, 28px);
  }

  .music-heading h2::before {
    left: -22px;
  }

  .music-heading h2::after {
    right: -22px;
  }

  .song-vinyl-stage {
    min-height: 350px;
    padding: 12px;
  }

  .song-vinyl-carousel {
    min-height: 250px;
    padding: 72px 28px;
  }

  .vinyl-window {
    min-height: 82px;
  }

  .vinyl-disc-button {
    width: clamp(82px, 30vw, 138px);
  }

  .vinyl-pos-0 { --vinyl-scale: 0.58; --vinyl-y: 14px; --vinyl-x: -150px; }
  .vinyl-pos-1 { --vinyl-scale: 0.68; --vinyl-y: 10px; --vinyl-x: -108px; }
  .vinyl-pos-2 { --vinyl-scale: 0.86; --vinyl-y: 2px; --vinyl-x: -56px; }
  .vinyl-pos-3 { --vinyl-scale: 1.08; --vinyl-y: -4px; --vinyl-x: 0; }
  .vinyl-pos-4 { --vinyl-scale: 0.86; --vinyl-y: 2px; --vinyl-x: 56px; }
  .vinyl-pos-5 { --vinyl-scale: 0.68; --vinyl-y: 10px; --vinyl-x: 108px; }
  .vinyl-pos-6 { --vinyl-scale: 0.58; --vinyl-y: 14px; --vinyl-x: 150px; }

  .vinyl-disc {
    border-width: 3px;
    box-shadow: 4px 4px 0 rgba(24, 24, 27, 0.86);
  }

  .vinyl-disc::before {
    inset: 7px;
    border-width: 2px;
  }

  .vinyl-disc::after {
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-width: 3px;
  }

  .vinyl-disc-button::before {
    inset: 4px -12px 4px auto;
    width: 26px;
  }

  .album-spine {
    right: -24px;
    width: 30px;
    border-width: 3px;
  }

  .album-spine span {
    font-size: 5px;
  }

  .album-vinyl {
    border-width: 3px;
  }

  .album-sleeve {
    border-width: 3px;
  }

  .album-art {
    border-width: 2px;
  }

  .vinyl-label {
    max-width: none;
    padding: 6px 4px;
    font-size: clamp(6px, 1.8vw, 8px);
    transform: none;
  }

  .vinyl-control {
    width: 32px;
    min-height: 44px;
    border-width: 3px;
    box-shadow: 3px 3px 0 var(--color-primary);
    font-size: 30px;
  }

  .vinyl-control-prev {
    left: 5px;
  }

  .vinyl-control-next {
    right: 5px;
  }

  .lyrics-rain-track {
    gap: 24px;
  }

  .lyrics-rain-track span {
    font-size: 10px;
    line-height: 1.35;
    text-shadow: none;
  }

  .lyric-track-1 { top: 18px; }
  .lyric-track-2 { top: 58px; }
  .lyric-track-3 { top: 98px; }
  .lyric-track-4 { top: 138px; bottom: auto; }
  .lyric-track-5 { top: 178px; bottom: auto; }

  .global-lyrics-rain {
    display: none;
  }

  .global-lyrics-rain .lyrics-rain-track span {
    font-size: clamp(9px, 2.45vw, 11px);
    opacity: 0.78;
    text-shadow: none;
  }

  .lyric-track-2 span,
  .lyric-track-4 span,
  .lyric-track-6 span {
    font-size: 10px;
  }

  .lyric-track-1 span,
  .lyric-track-3 span,
  .lyric-track-5 span {
    filter: none;
  }

  .eyebrow {
    font-size: 9px;
  }

  h2 {
    font-size: clamp(17px, 5.2vw, 22px);
  }

  h3 {
    font-size: 21px;
  }

  .showcase-strip {
    padding-block: 0;
    position: relative;
    z-index: 4;
    margin-top: -36px;
  }

  .showcase-strip .marquee {
    border-width: 3px;
    box-shadow: 4px 4px 0 rgba(24, 24, 27, 0.8);
  }

  .marquee span {
    padding: 10px 18px;
    font-size: 9px;
  }

  .wall-grid,
  .admin-tools {
    grid-template-columns: 1fr;
  }

  .member-board-card,
  .member-board-actions {
    grid-template-columns: 1fr;
  }

  .guestbook-form {
    grid-template-columns: 1fr;
    max-width: none;
    margin-top: 18px;
    padding: 8px;
    border-width: 3px;
    box-shadow: 4px 4px 0 rgba(24, 24, 27, 0.86);
  }

  .guestbook-form input,
  .guestbook-form textarea {
    min-height: 52px;
    border-width: 3px;
    font-size: 10px;
  }

  .guestbook-form .pixel-button {
    min-height: 52px;
    min-width: 0;
    width: 100%;
    border-width: 3px;
    font-size: 11px;
  }

  .danmaku-wall {
    min-height: 330px;
    padding: 22px 0;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    background:
      radial-gradient(circle at 12% 28%, rgba(255, 122, 182, 0.18), transparent 24%),
      radial-gradient(circle at 82% 68%, rgba(0, 214, 185, 0.16), transparent 26%),
      linear-gradient(90deg, rgba(255, 246, 253, 0.82), rgba(224, 250, 255, 0.82));
    box-shadow: 4px 4px 0 rgba(24, 24, 27, 0.86);
  }

  .danmaku-wall::before,
  .danmaku-wall::after {
    display: block;
    height: 18px;
    border-block-width: 2px;
  }

  .danmaku-track {
    position: relative;
    display: block;
    width: 100%;
    min-height: 286px;
    padding: 34px 0 30px;
    mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
    transform: none;
    animation: none;
  }

  .danmaku-track .comment-card {
    position: absolute;
    top: calc(12px + var(--lane, 0) * 34px);
    left: 100%;
    display: inline-flex;
    width: max-content;
    max-width: 86vw;
    min-height: 29px;
    padding: 5px 10px;
    border: 2px solid rgba(24, 24, 27, 0.74);
    border-radius: 999px;
    white-space: nowrap;
    animation: danmakuBullet calc(var(--duration, 24s) * 0.5) linear infinite;
    animation-delay: calc(var(--delay, 0s) * 0.5);
    animation-fill-mode: both;
  }

  .danmaku-track .comment-card p {
    font-family: "Press Start 2P", "ZCOOL KuaiLe", "Microsoft YaHei", sans-serif;
    font-size: 9px;
    line-height: 1.45;
  }

  .member-token {
    width: 84px;
  }

  .carousel {
    position: relative;
    display: block;
    margin-bottom: 10px;
  }

  .carousel-viewport {
    height: 68vw;
    min-height: 260px;
    max-height: 380px;
    box-shadow: 4px 4px 0 var(--color-primary);
  }

  .carousel-track {
    height: 100%;
    min-height: 100%;
  }

  .carousel-button {
    position: absolute;
    top: 50%;
    z-index: 3;
    min-width: 42px;
    min-height: 48px;
    border-width: 3px;
    box-shadow: 3px 3px 0 var(--color-primary);
    font-size: 34px;
    transform: translateY(-50%);
  }

  .carousel-button:first-child {
    left: 8px;
  }

  .carousel-button:last-child {
    right: 8px;
  }

  .carousel-slide {
    height: 100%;
    min-height: 100%;
    padding: 10px;
  }

  .scattered-board {
    width: 100%;
    height: 100%;
    transform: none;
  }

  .scattered-photo.photo-1,
  .scattered-photo.photo-2,
  .scattered-photo.photo-3,
  .scattered-photo.photo-4,
  .scattered-photo.photo-5 {
    padding: 6px;
    border-width: 3px;
    box-shadow: 4px 4px 0 rgba(24, 24, 27, 0.86);
  }

  .scattered-photo::after {
    height: 16px;
  }

  .board-3 .photo-5 {
    display: block;
  }

  .carousel-dots {
    gap: 8px;
    margin: 10px 0 22px;
  }

  .dot {
    width: 20px;
    height: 20px;
    border-width: 3px;
    box-shadow: 3px 3px 0 var(--color-primary);
  }

  .member-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(128px, 1fr));
    gap: 14px;
    overflow-x: auto;
    padding: 0 4px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .member-card {
    min-width: 128px;
    scroll-snap-align: start;
  }

  .member-card .member-name p {
    font-size: 8px;
  }

  .member-library {
    padding: 14px;
    border-width: 3px;
  }

  .library-topbar {
    display: grid;
    gap: 12px;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .admin-list {
    grid-template-columns: 1fr;
  }

  .admin-stats,
  .fan-auth-actions {
    grid-template-columns: 1fr;
  }

  .upload-panel {
    grid-template-columns: 1fr;
  }

  .library-card,
  .admin-review-card {
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--color-primary);
  }

  .admin-actions,
  .library-actions {
    grid-template-columns: 1fr;
  }

  .member-name,
  .wall-card-body,
  .comment-card {
    padding: 12px;
  }

  .split-section {
    gap: 18px;
  }

  .member-card,
  .wall-card,
  .comment-card,
  .pixel-form {
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--color-primary);
  }

  .pixel-form {
    padding: 14px;
  }

  .pixel-form input,
  .pixel-form textarea,
  .guestbook-form input,
  .guestbook-form textarea {
    min-height: 48px;
    border-width: 3px;
  }

  .pixel-button {
    width: 100%;
    min-height: 48px;
    padding-inline: 12px;
    border-width: 3px;
    box-shadow: 3px 3px 0 var(--color-primary);
    text-align: center;
  }

  .wall-grid {
    gap: 14px;
  }

  .wall-image {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    gap: 6px;
    padding: 18px 14px 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .site-footer h2 {
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .member-grid {
    grid-template-columns: repeat(5, minmax(128px, 1fr));
  }

  .brand strong {
    max-width: 8ch;
    font-size: 9px;
    line-height: 1.2;
  }

  .site-nav a {
    min-height: 30px;
    padding-inline: 3px;
    font-size: 14px;
  }

  .hero {
    min-height: min(600px, calc(100dvh - 106px));
    padding-inline: 12px;
  }

  .hero-copy {
    min-height: calc(min(600px, calc(100dvh - 106px)) - 106px);
    grid-template-rows: auto minmax(210px, 1fr) auto;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 11vw, 48px);
  }

  .hero .hero-text {
    font-size: clamp(14px, 3.85vw, 18px);
    line-height: 1.68;
  }

  .carousel-slide {
    height: 100%;
    min-height: 100%;
  }

  .carousel-viewport {
    height: 72vw;
    min-height: 250px;
    max-height: 340px;
  }

  .scattered-board {
    width: 100%;
    height: 100%;
  }

  .carousel-button {
    min-width: 38px;
    min-height: 44px;
  }

  .song-vinyl-stage {
    min-height: 320px;
    padding: 10px;
  }

  .song-vinyl-carousel {
    padding: 68px 22px;
  }

  .vinyl-disc-button {
    width: clamp(72px, 28vw, 108px);
  }

  .vinyl-label {
    font-size: 5px;
  }

  .section {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lyrics-rain-track,
  .lyrics-rain-track span {
    animation: none !important;
  }

  .global-lyrics-rain {
    opacity: 0.32;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

