:root {
  color-scheme: dark;
  --night: #03051a;
  --night-soft: #080d31;
  --panel: rgba(8, 12, 48, 0.84);
  --panel-solid: #0b113d;
  --white: #f8fbff;
  --muted: #b9c5ef;
  --cyan: #65f7ff;
  --cyan-deep: #16d7ee;
  --violet: #7456ff;
  --magenta: #f052df;
  --pink: #ff9ae9;
  --line: rgba(139, 191, 255, 0.28);
  --shadow: 0 24px 70px rgba(0, 3, 25, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(3, 5, 26, 0.82);
  border-bottom: 1px solid rgba(101, 247, 255, 0.18);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 58px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  font-weight: 950;
  letter-spacing: 0.07em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(101, 247, 255, 0.38);
}

.brand span {
  font-size: 18px;
}

.brand small {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-top: 5px;
  text-transform: uppercase;
}

.social-links {
  align-items: center;
  display: flex;
  gap: 9px;
}

.social-links a {
  align-items: center;
  background: rgba(119, 99, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #dce8ff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  transition: 180ms ease;
  width: 40px;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: rgba(101, 247, 255, 0.16);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(101, 247, 255, 0.34);
  color: var(--cyan);
  outline: none;
  transform: translateY(-2px);
}

.social-links svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.hero {
  background-color: #1d2d85;
  background-image: url("./assets/mouse-stage-wide.webp");
  background-position: 58% center;
  background-size: cover;
  color: var(--white);
  min-height: 100svh;
  overflow: hidden;
  padding-top: 72px;
  position: relative;
}

.hero::before,
.hero::after {
  border-radius: 50%;
  content: "";
  filter: blur(12px);
  pointer-events: none;
  position: absolute;
}

.hero::before {
  background: rgba(101, 247, 255, 0.24);
  box-shadow: 0 0 95px 45px rgba(101, 247, 255, 0.24);
  height: 12px;
  right: 6vw;
  top: 18%;
  width: 12px;
}

.hero::after {
  background: rgba(240, 82, 223, 0.22);
  box-shadow: 0 0 100px 45px rgba(240, 82, 223, 0.22);
  height: 10px;
  left: 46%;
  top: 38%;
  width: 10px;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(1, 3, 18, 0.05) 0 46%, rgba(2, 5, 27, 0.54) 64%, rgba(2, 4, 24, 0.88) 100%),
    linear-gradient(0deg, rgba(2, 4, 25, 0.78), transparent 28%, rgba(3, 5, 28, 0.08) 75%);
  inset: 0;
  position: absolute;
}

.hero-inner {
  align-content: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px) 150px;
  margin: 0 auto;
  max-width: 1260px;
  min-height: calc(100svh - 72px);
  padding: 48px 34px 74px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-copy,
.request-panel {
  grid-column: 2;
}

.hero-copy {
  backdrop-filter: blur(17px);
  background: linear-gradient(135deg, rgba(4, 8, 42, 0.82), rgba(24, 21, 88, 0.64));
  border: 1px solid rgba(145, 201, 255, 0.35);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px 30px;
}

.eyebrow,
.panel-kicker {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.eyebrow span {
  background: var(--cyan);
  box-shadow: 0 0 13px var(--cyan);
  display: inline-block;
  height: 7px;
  margin-right: 8px;
  transform: rotate(45deg);
  width: 7px;
}

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

h1 {
  font-size: clamp(42px, 4vw, 64px);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: -0.035em;
}

.lede {
  color: #edf2ff;
  font-size: 18px;
  margin: 17px 0 0;
}

.lede strong {
  color: var(--cyan);
}

.donation-note {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 0;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.donation-button {
  align-items: center;
  background: linear-gradient(135deg, var(--magenta), #a84fff);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(240, 82, 223, 0.26);
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  transition: 180ms ease;
}

.donation-button:hover,
.donation-button:focus-visible {
  box-shadow: 0 12px 34px rgba(240, 82, 223, 0.48);
  outline: none;
  transform: translateY(-2px);
}

.donation-button svg {
  fill: currentColor;
  height: 17px;
  width: 17px;
}

.queue-link {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 850;
}

.queue-link:hover,
.queue-link:focus-visible {
  color: #fff;
  outline: none;
}

.request-panel {
  backdrop-filter: blur(20px);
  background: rgba(4, 8, 38, 0.9);
  border: 1px solid rgba(101, 247, 255, 0.42);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.06);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 26px 30px 28px;
}

.request-panel h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.panel-kicker {
  color: var(--pink);
  margin-bottom: 8px;
}

.request-panel label {
  color: #e2e8ff;
  font-size: 13px;
  font-weight: 800;
  margin: 13px 0 6px;
}

.request-panel input,
.search-box input,
.queue-tools select {
  background: rgba(3, 7, 31, 0.78);
  border: 1px solid rgba(144, 183, 255, 0.34);
  border-radius: 12px;
  color: var(--white);
  height: 48px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

.request-panel input::placeholder,
.search-box input::placeholder {
  color: #8492bd;
}

.request-panel input:focus,
.search-box input:focus,
.queue-tools select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(101, 247, 255, 0.15), 0 0 22px rgba(101, 247, 255, 0.12);
}

.primary-button,
.secondary-button {
  align-items: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan), #62aaff);
  box-shadow: 0 10px 26px rgba(22, 215, 238, 0.24);
  color: #03102a;
  margin-top: 22px;
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 0 12px 32px rgba(22, 215, 238, 0.42);
  outline: none;
  transform: translateY(-2px);
}

.secondary-button {
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  color: #fff;
  min-width: 100px;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  box-shadow: 0 0 24px rgba(240, 82, 223, 0.35);
  outline: none;
}

.form-status {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  min-height: 20px;
  margin: 12px 0 0;
}

.hidden-frame {
  border: 0;
  height: 0;
  position: absolute;
  width: 0;
}

.queue-section {
  background:
    linear-gradient(180deg, rgba(3, 5, 26, 0.9), rgba(3, 5, 26, 0.76)),
    url("./assets/stage-lights.webp") center / cover;
  border-top: 1px solid rgba(101, 247, 255, 0.2);
  min-height: 760px;
  padding: 84px max(28px, calc((100vw - 1180px) / 2)) 92px;
}

.queue-header {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 28px;
}

.queue-tools {
  display: grid;
  gap: 10px;
  grid-template-columns: 230px 160px 110px;
}

.queue-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.queue-summary span {
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 61, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe5ff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 13px;
}

.table-shell {
  backdrop-filter: blur(16px);
  background: rgba(5, 9, 37, 0.88);
  border: 1px solid rgba(114, 185, 255, 0.3);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  position: relative;
}

table {
  border-collapse: collapse;
  min-width: 880px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid rgba(139, 191, 255, 0.14);
  padding: 17px 18px;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(23, 29, 83, 0.88);
  color: #9eaff0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  color: #dce5ff;
  font-size: 14px;
}

tbody tr {
  transition: background 150ms ease;
}

tbody tr:hover {
  background: rgba(101, 247, 255, 0.055);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.song-title {
  color: #fff;
  display: block;
  font-weight: 900;
}

.request-id {
  color: #93a6db;
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  min-width: 84px;
}

.status-chip {
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-width: 92px;
  padding: 6px 10px;
}

.status-received {
  background: rgba(101, 247, 255, 0.1);
  color: var(--cyan);
}

.status-making {
  background: rgba(240, 82, 223, 0.1);
  color: var(--pink);
}

.status-complete {
  background: rgba(134, 112, 255, 0.13);
  color: #b7a7ff;
}

.empty-state {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  padding: 24px;
}

.footer {
  align-items: center;
  background: #020315;
  border-top: 1px solid rgba(101, 247, 255, 0.16);
  color: #8694bf;
  display: flex;
  font-size: 12px;
  gap: 16px;
  justify-content: center;
  min-height: 88px;
  padding: 22px 28px;
  text-transform: uppercase;
}

.trans-flag {
  aspect-ratio: 5 / 3;
  background: linear-gradient(
    to bottom,
    #5bcffb 0 20%,
    #f5abb9 20% 40%,
    #ffffff 40% 60%,
    #f5abb9 60% 80%,
    #5bcffb 80% 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(91, 207, 251, 0.25);
  width: 58px;
}

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

@media (max-width: 980px) {
  .hero {
    background-position: 58% center;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 430px);
    padding-inline: 24px;
  }

  .queue-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .queue-tools {
    grid-template-columns: minmax(0, 1fr) 160px 110px;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 11px 18px;
    position: relative;
  }

  .brand span {
    font-size: 15px;
  }

  .brand small {
    font-size: 9px;
  }

  .social-links {
    gap: 6px;
  }

  .social-links a {
    height: 36px;
    width: 36px;
  }

  .hero {
    background-image: url("./assets/mouse-stage-portrait.webp");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    padding-top: 0;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      transparent 0 55vw,
      rgba(3, 5, 26, 0.18) 78vw,
      rgba(3, 5, 26, 0.92) 116vw,
      var(--night) 136vw
    );
  }

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

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding: calc(116vw + 20px) 18px 54px;
  }

  .hero-copy,
  .request-panel {
    max-width: 560px;
    width: 100%;
  }

  .hero-copy {
    padding: 24px 22px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .request-panel {
    padding: 24px 22px 26px;
  }

  .queue-section {
    padding: 60px 18px 64px;
  }

  .queue-tools {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .hero-inner {
    padding-top: calc(122vw + 18px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
