:root {
  color-scheme: light;
  --ink: #16120e;
  --muted: #6f655c;
  --paper: #fffaf1;
  --paper-strong: #fff2d3;
  --gold: #f0c64b;
  --amber: #d98c2e;
  --red: #a82028;
  --teal: #0f766e;
  --charcoal: #221a17;
  --line: rgba(34, 26, 23, 0.14);
  --shadow: 0 24px 80px rgba(42, 24, 11, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffaf1 0%, #fff7e8 44%, #f6efe4 100%),
    var(--paper);
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 52px);
  color: #fffaf1;
  background: rgba(20, 13, 10, 0.78);
  border-bottom: 1px solid rgba(255, 250, 241, 0.16);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #15110d;
  background: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 28px);
  color: rgba(255, 250, 241, 0.82);
  font-size: 14px;
}

.nav-links a {
  padding: 8px 0;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px clamp(18px, 5vw, 72px) 56px;
  color: #fffaf1;
  background: #170f0c;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(19, 10, 8, 0.88) 0%, rgba(19, 10, 8, 0.58) 46%, rgba(19, 10, 8, 0.18) 100%),
    linear-gradient(180deg, rgba(19, 10, 8, 0.2) 0%, rgba(19, 10, 8, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 12vw, 138px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 250, 241, 0.84);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.icon-button,
.clear-button,
.wall-input-row button,
.filter {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 800;
}

.primary-action {
  color: #17120e;
  background: var(--gold);
  box-shadow: 0 14px 32px rgba(240, 198, 75, 0.3);
}

.secondary-action {
  color: #fffaf1;
  border-color: rgba(255, 250, 241, 0.34);
  background: rgba(255, 250, 241, 0.1);
}

.primary-action:hover,
.secondary-action:hover,
.icon-button:hover,
.clear-button:hover,
.wall-input-row button:hover,
.filter:hover,
.track:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  max-width: 620px;
  gap: 1px;
  margin-top: 44px;
  background: rgba(255, 250, 241, 0.18);
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stats div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  background: rgba(18, 12, 10, 0.48);
}

.hero-stats strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 250, 241, 0.7);
  font-size: 13px;
}

.ticker {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 18px clamp(18px, 5vw, 72px);
  color: #fffaf1;
  background: var(--red);
  scrollbar-width: none;
}

.ticker::-webkit-scrollbar {
  display: none;
}

.ticker span {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid rgba(255, 250, 241, 0.25);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.05fr;
  gap: 16px;
}

.mission-panel,
.playlist-panel,
.rule-grid article,
.source-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.mission-panel {
  min-height: 190px;
  padding: 24px;
}

.mission-panel.accent {
  color: #fffaf1;
  background: linear-gradient(135deg, #221a17 0%, #7c1c25 100%);
  border-color: rgba(255, 250, 241, 0.18);
}

.panel-label {
  display: block;
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.mission-panel.accent .panel-label {
  color: #ffd66f;
}

.countdown,
.mission-panel p,
.playlist-panel h3 {
  margin: 0;
}

.countdown {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  font-weight: 900;
}

.panel-copy {
  margin-top: 14px !important;
  color: var(--muted);
  line-height: 1.7;
}

.mission-panel.accent p {
  color: rgba(255, 250, 241, 0.88);
  font-size: 22px;
  line-height: 1.45;
}

.icon-button {
  margin-top: 22px;
  padding: 0 16px;
  color: #221a17;
  background: var(--gold);
  font-weight: 800;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-row a,
.source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: #fffaf1;
  background: var(--charcoal);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter {
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  font-weight: 800;
}

.filter.active {
  color: #fffaf1;
  background: var(--teal);
}

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

.member-card {
  min-height: 238px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 42px rgba(48, 30, 18, 0.08);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.member-card.is-hidden {
  display: none;
}

.member-card:hover {
  transform: translateY(-4px);
}

.member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.member-initial {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #fffaf1;
  background: var(--red);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
}

.member-role {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.member-card h3 {
  margin: 28px 0 10px;
  font-size: 28px;
}

.member-card p,
.rule-grid p,
.source-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.stage-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: stretch;
}

.track-list {
  display: grid;
  gap: 12px;
}

.track {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 16px 18px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.track:hover {
  border-color: rgba(168, 32, 40, 0.35);
  box-shadow: 0 14px 32px rgba(68, 38, 19, 0.1);
}

.track span {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

.track strong {
  font-size: 22px;
}

.track em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.playlist-panel {
  padding: 24px;
}

.playlist-panel h3 {
  font-size: 26px;
}

#playlist {
  min-height: 170px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

#playlist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

#playlist li strong {
  color: var(--ink);
}

.clear-button {
  width: 100%;
  padding: 0 16px;
  color: #fffaf1;
  background: var(--charcoal);
  font-weight: 850;
}

.wall-form {
  max-width: 780px;
  margin-bottom: 22px;
}

.wall-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.wall-input-row {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 10px;
}

.wall-input-row input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.wall-input-row input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.wall-input-row button {
  color: #fffaf1;
  background: var(--red);
  font-weight: 850;
}

.note-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note {
  min-height: 116px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(43, 26, 12, 0.08);
}

.note p {
  margin: 0;
  line-height: 1.7;
}

.note small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}

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

.rule-grid article {
  min-height: 176px;
  padding: 22px;
}

.rule-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.source-section {
  width: min(1160px, calc(100% - 36px));
  padding: 64px clamp(18px, 4vw, 42px);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: rgba(255, 250, 241, 0.72);
  background: var(--charcoal);
}

@media (max-width: 980px) {
  .mission-grid,
  .stage-layout,
  .rule-grid {
    grid-template-columns: 1fr;
  }

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

  .playlist-panel {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    min-height: 90px;
  }

  .brand {
    max-width: 150px;
  }

  .brand span:last-child {
    line-height: 1.25;
  }

  .nav-links {
    gap: 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 88vh;
    padding: 126px 18px 38px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(19, 10, 8, 0.28) 0%, rgba(19, 10, 8, 0.86) 100%),
      linear-gradient(90deg, rgba(19, 10, 8, 0.78), rgba(19, 10, 8, 0.3));
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 62px 0;
  }

  .section-heading {
    display: block;
  }

  .member-grid,
  .note-wall {
    grid-template-columns: 1fr;
  }

  .track {
    grid-template-columns: 42px 1fr;
  }

  .track em {
    grid-column: 2;
  }

  .wall-input-row {
    grid-template-columns: 1fr;
  }

  .wall-input-row button {
    min-height: 48px;
  }

  .site-footer {
    display: grid;
  }
}
