/* 물마루 (Mushsooni, SIL OFL 1.1). 12px 픽셀 격자라 12의 배수 크기에서 가장 선명합니다. */
@font-face { font-family: "Mulmaru"; src: url("fonts/Mulmaru.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* 레이아웃: 한 줄 세로 흐름. 게임 화면이 첫 화면을 차지하고, 아래로 순위 → 듣기 → 밴드 → 후원.
   단일 다크 테마(야간 마감 작업실 느낌)를 의도적으로 고정합니다. */
:root {
  color-scheme: dark;
  --night: #15132e;      /* 배경: 새벽 3시 작업실 */
  --desk: #211d45;       /* 패널 */
  --line: #3a3470;       /* 테두리 */
  --paper: #f4eedc;      /* 본문: 원고지 */
  --muted: #a9a3c9;      /* 보조 글씨 */
  --overdue: #ff5a47;    /* 강조: 마감 초과 빨강 */
  --postit: #ffd23f;     /* 보조 강조: 포스트잇 */
  --ink: #15132e;        /* 밝은 배경 위 글씨 */

  --f-hero: "Mulmaru", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-display: "Mulmaru", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-pixel: "Mulmaru", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; /* 긴 글 */

  --step--1: 0.9rem;
  --step-0: 1rem;
  --step-1: 24px;
  --step-2: 24px;
  --step-3: clamp(24px, 6vw, 36px);
  --step-4: clamp(48px, 14vw, 96px);

  --wrap: 1080px;
  --pixel-shadow: 4px 4px 0 0 #000;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-synthesis: none; -webkit-font-smoothing: antialiased;
  background: var(--night);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.75;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night);
}

a { color: var(--postit); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--postit); outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* 상단 바 */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--night) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 10px; flex-wrap: wrap;
}
.brand img { display: block; height: 20px; width: auto; }
.brand { font-family: var(--f-pixel); font-size: var(--step-0); letter-spacing: 0.06em; color: var(--muted); }
.brand b { color: var(--paper); font-weight: 400; }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; }
.nav a {
  font-family: var(--f-pixel); font-size: var(--step-0) !important;
  color: var(--paper); text-decoration: none; font-size: var(--step--1);
  padding: 2px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--overdue); }

/* 섹션 공통 */
section { padding-block: 56px; border-bottom: 2px dashed var(--line); }
section:last-of-type { border-bottom: 0; }
.kicker {
  font-family: var(--f-pixel); font-size: var(--step-0);
  letter-spacing: 0.08em; color: var(--overdue); margin: 0 0 8px;
}
h2 {
  font-family: var(--f-display); font-weight: 400; font-size: var(--step-3);
  line-height: 1.3; margin: 0 0 24px; text-wrap: balance;
}
h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); line-height: 1.3; margin: 0 0 10px; text-wrap: balance; }
.lede { color: var(--muted); max-width: 62ch; margin: -12px 0 28px; }
.placeholder { color: var(--muted); font-style: italic; }

/* 히어로 + 게임 */
#play { padding-block: 36px 56px; }
.hero-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px;
}
.hero-title { min-width: 0; }
.hero-title h1 {
  font-family: var(--f-hero); font-weight: 400; font-size: var(--step-4);
  line-height: 1; margin: 0; letter-spacing: 0;
  text-shadow: 5px 5px 0 var(--overdue);
}
.hero-title p { margin: 10px 0 0; color: var(--muted); }
.hero-title .en { font-family: var(--f-pixel); color: var(--paper); letter-spacing: 0.1em; }

.stamp {
  font-family: var(--f-display); font-weight: 400; color: var(--overdue);
  border: 4px solid var(--overdue); padding: 6px 14px 4px;
  transform: rotate(-6deg); text-align: center; line-height: 1.1;
  font-size: var(--step-2); flex: none; line-height: 1.25;
}
.stamp small {
  display: block; font-family: var(--f-pixel); font-size: 0.7rem;
  letter-spacing: 0.08em; color: var(--paper);
}
.stamp .clock { font-family: var(--f-pixel); font-size: 0.85rem; margin-top: 4px; font-variant-numeric: tabular-nums; }

.stage {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9;
  background: #000; border: 4px solid var(--paper); box-shadow: 8px 8px 0 0 var(--overdue);
  overflow: hidden;
}
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.stage-empty {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 14px;
  text-align: center; padding: 16px;
  background:
    linear-gradient(transparent 0 calc(100% - 22%), #2c2760 calc(100% - 22%) calc(100% - 21%), var(--desk) 0),
    radial-gradient(circle at 80% 22%, #2b2660 0 6%, transparent 6.5%),
    var(--night);
  image-rendering: pixelated;
}
.stage-empty .runner { font-family: var(--f-pixel); font-size: clamp(1rem, 3vw, 1.6rem); color: var(--postit); }
.stage-empty p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.demo-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.demo-form input {
  font: inherit; font-size: var(--step--1); padding: 8px 10px; width: 11em;
  background: var(--desk); color: var(--paper); border: 2px solid var(--line);
}

.play-hint { margin: 18px 0 0; color: var(--muted); font-size: var(--step--1); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-family: var(--f-pixel); font-weight: 400; font-size: var(--step-0);
  padding: 10px 16px; border: 2px solid #000; cursor: pointer;
  background: var(--postit); color: var(--ink); text-decoration: none;
  box-shadow: var(--pixel-shadow); transition: transform 80ms, box-shadow 80ms;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 0 #000; }
.btn.alt { background: var(--paper); }
.btn[aria-disabled="true"] {
  background: transparent; color: var(--muted); border-color: var(--line);
  box-shadow: none; cursor: not-allowed; transform: none;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* 순위 */
.board { border: 2px solid var(--line); background: var(--desk); overflow-x: auto; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-family: var(--f-pixel); font-size: 1.05rem; }
.board th, .board td { padding: 10px 14px; text-align: left; white-space: nowrap; }
.board th {
  font-family: var(--f-pixel); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--muted); border-bottom: 2px solid var(--line);
}
.board td.num, .board th.num { text-align: right; }
.board tbody tr + tr td { border-top: 1px solid var(--line); }
.board .rank { font-family: var(--f-pixel); width: 3.5em; }
.board tr.top1 .rank { color: var(--postit); }
.board tr.top2 .rank, .board tr.top3 .rank { color: var(--paper); }
.board tr.top1 td { background: color-mix(in srgb, var(--postit) 10%, transparent); }
.board tr.mine td { background: color-mix(in srgb, var(--overdue) 18%, transparent); }
.board .name { white-space: normal; overflow-wrap: anywhere; min-width: 8em; }
.board .when { color: var(--muted); font-size: var(--step--1); }
.board .cheer { display: block; margin-top: 2px; font-family: var(--f-body); font-size: 12px; color: var(--muted); white-space: normal; -webkit-font-smoothing: auto; }
.board-empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.board-note { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; font-size: var(--step--1); color: var(--muted); }
.board-note .mode { color: var(--postit); }

/* 듣기 / 뮤비 */
.listen-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.stream-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stream-list .btn { justify-content: space-between; width: 100%; }
.btn span { white-space: nowrap; }
.stream-list .btn span:last-child { font-size: 0.85rem; opacity: 0.8; }
.credits { margin: 18px 0 0; color: var(--muted); font-size: var(--step--1); }
.mv { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border: 4px solid var(--paper); background: #000; }
.mv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mv-link {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center;
  color: var(--paper); text-decoration: none; padding: 16px;
}
.mv-link .play {
  width: 64px; height: 44px; margin: 0 auto; background: var(--overdue);
  clip-path: polygon(0 12%, 8% 0, 92% 0, 100% 12%, 100% 88%, 92% 100%, 8% 100%, 0 88%);
  display: grid; place-content: center;
}
.mv-link .play::after { content: ""; border-left: 16px solid var(--paper); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }

/* 밴드 */
.band-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
.band-grid .bio p { margin: 0 0 14px; max-width: 62ch; }
.members { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--line); }
.members li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.members .part { font-family: var(--f-pixel); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; align-self: center; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.contact { margin-top: 16px; font-size: var(--step--1); color: var(--muted); }

/* 후원 */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.support-card {
  border: 2px solid var(--line); background: var(--desk); padding: 18px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.support-card p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.support-card .btn { align-self: flex-start; }
.account-number { font-family: var(--f-pixel); font-size: var(--step-1); color: var(--paper); overflow-wrap: anywhere; user-select: all; }

footer { padding-block: 28px 40px; color: var(--muted); font-size: var(--step--1); }
footer .wrap { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }

/* 저장 알림 */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  background: var(--paper); color: var(--ink); border: 2px solid #000; box-shadow: var(--pixel-shadow);
  padding: 10px 16px; font-size: var(--step--1); max-width: calc(100% - 32px);
}

@media (max-width: 760px) {
  section { padding-block: 44px; }
  .listen-grid, .band-grid { grid-template-columns: minmax(0, 1fr); }
  .stamp { transform: rotate(-4deg); }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .stream-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .stream-list { grid-template-columns: minmax(0, 1fr); }
  .board th, .board td { padding: 8px 10px; }
  .board .dist, .board .when { display: none; }
}

/* 픽셀 폰트 요소는 계단 모양을 살려 렌더링 */
h1, h2, h3, .kicker, .stamp, .btn, .nav a, .brand, .board table { -webkit-font-smoothing: none; font-smooth: never; }

/* 음악 사이트 로고 한 줄: 앱 아이콘 모양 */
.stream-row { display: flex; justify-content: center; gap: clamp(16px, 4vw, 32px); }
.stream-tile {
  width: clamp(64px, 17vw, 88px); aspect-ratio: 1; display: grid; place-items: center;
  background: var(--tile); border-radius: 24%; text-decoration: none;
  box-shadow: 0 6px 0 0 color-mix(in srgb, var(--tile) 55%, #000), 0 10px 24px -8px #000;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.stream-tile img { width: 48%; height: auto; display: block; }
.stream-tile img.wide { width: 78%; }
a.stream-tile[href]:hover { transform: translateY(-3px); }
a.stream-tile[href]:active { transform: translateY(3px); box-shadow: 0 2px 0 0 color-mix(in srgb, var(--tile) 55%, #000); }
.stream-tile[aria-disabled="true"] { cursor: default; }
.stream-note { text-align: center; color: var(--muted); font-size: var(--step--1); margin: 28px 0 0; }
#listen .mv { max-width: 880px; margin: 40px auto 0; }
#listen h2, #listen .kicker, #listen .credits { text-align: center; }
@media (prefers-reduced-motion: reduce) { .stream-tile { transition: none; } }

/* 후원: 계좌 하나 */
.support-grid:has(> .account:only-child) { grid-template-columns: minmax(0, 480px); }

/* 헤드라인 로고 */
.hero-title .kicker { color: var(--overdue); }
.hero-title h1.title-logo { text-shadow: none; line-height: 0; margin: 4px 0 6px; }
.title-logo img { display: block; width: clamp(280px, 72vw, 520px); height: auto; filter: drop-shadow(6px 6px 0 var(--overdue)); }

/* 히어로 가운데 정렬 */
.hero-head { justify-content: center; text-align: center; }
.hero-title { display: flex; flex-direction: column; align-items: center; }
.play-hint { text-align: center; }

/* 밴드 사진 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin-top: 36px; }
.gallery .photo {
  position: relative; aspect-ratio: 1; max-width: 100%; padding: 0; margin: 0; overflow: hidden;
  border: 2px solid var(--line); background: var(--desk); cursor: zoom-in; display: block;
}
.gallery .photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 300ms ease; }
.gallery button.photo:hover img { transform: scale(1.04); }
.gallery .photo.empty { cursor: default; display: grid; place-items: center; border-style: dashed; color: var(--muted); font-size: var(--step--1); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .gallery .photo img { transition: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, #000 88%, transparent);
}
.lightbox figure { margin: 0; min-width: 0; display: grid; justify-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border: 3px solid var(--paper); }
.lightbox figcaption { color: var(--paper); font-size: var(--step--1); text-align: center; }
.lb-btn { font: inherit; font-family: var(--f-pixel); font-size: 28px; line-height: 1; color: var(--paper); background: transparent; border: 2px solid var(--paper); width: 48px; height: 48px; cursor: pointer; }
.lb-btn:hover { background: var(--paper); color: var(--ink); }
.lb-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); font-size: 20px; }
@media (max-width: 520px) { .lb-prev, .lb-next { display: none; } .lightbox { grid-template-columns: 1fr; } }

.board .char { color: var(--muted); }
@media (max-width: 420px) { .board .char { display: none; } }

/* 밴드 소개: 신문 기사처럼 단 나눔 */
.news-head { border-top: 4px solid var(--paper); border-bottom: 1px solid var(--line); padding-block: 14px 12px; margin-bottom: 18px; }
.news-head h2 { margin: 0; font-size: clamp(28px, 6vw, 48px); line-height: 1.2; }
.news-sub { margin: 6px 0 0; font-family: var(--f-pixel); font-size: var(--step-1); color: var(--postit); }
.news {
  columns: 3 16em; column-gap: 28px; column-rule: 1px solid var(--line);
  font-size: 14px; line-height: 1.7; text-align: justify; word-break: normal; overflow-wrap: anywhere;
}
.news p { margin: 0 0 0.8em; white-space: pre-line; text-indent: 0.6em; }
.news p.ps { color: var(--muted); text-indent: 0; font-size: 13px; }
.news .quotes { list-style: none; margin: 0 0 0.9em; padding: 10px 12px; border-left: 3px solid var(--overdue); background: color-mix(in srgb, var(--desk) 70%, transparent); text-align: left; break-inside: avoid; }
.news .quotes li + li { margin-top: 8px; }
.news .quotes q { display: block; color: var(--paper); font-weight: 600; quotes: "“" "”"; }
.news .quotes .by { display: block; color: var(--muted); font-size: 12.5px; }

.lineup { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--paper); border-bottom: 2px solid var(--paper); }
.lineup li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px; text-align: center; min-width: 0; }
.lineup li + li { border-left: 1px solid var(--line); }
.lineup .part { font-family: var(--f-pixel); font-size: 12px; color: var(--overdue); letter-spacing: 0.06em; }
.lineup strong { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.lineup .job { font-size: 12.5px; color: var(--muted); }
.band-links { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 18px; }
.band-links .socials { margin: 0; }
.band-links .contact { margin: 0; }
@media (max-width: 560px) {
  .lineup strong { font-size: 16px; }
  .lineup .job { font-size: 11px; }
  .lineup li { padding: 10px 2px; }
}

/* 사진이 아직 없을 때는 자리 표시를 작게 */
.gallery .photo.empty, .gallery .photo.empty:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }

/* 추천사: 더 작게, 첫 번째 단 안에 */
.news .quotes { padding: 8px 10px; }
.news .quotes li + li { margin-top: 5px; }
.news .quotes q { font-size: 12.5px; line-height: 1.45; }
.news .quotes .by { font-size: 11px; line-height: 1.4; }
@media (min-width: 900px) {
  .news { columns: 3; }
  .news .quotes { break-after: column; margin-bottom: 0; }
}

/* 로고 아래: 발매 티켓 + 게임 안내 */
.release { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 44px auto 30px; text-align: center; }
.ticket {
  position: relative; display: flex; align-items: stretch; max-width: 100%;
  background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--overdue);
}
/* 티켓 양옆 펀치 구멍 */
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background: var(--night); border-radius: 50%;
}
.ticket::before { left: -9px; } .ticket::after { right: -9px; }
.t-cell { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 28px; }
.t-what { padding-left: 34px; }
.t-when { border-left: 3px dashed color-mix(in srgb, var(--ink) 35%, transparent); padding-right: 34px; }
.t-label { font-family: var(--f-pixel); font-size: 12px; letter-spacing: 0.14em; color: var(--overdue); -webkit-font-smoothing: none; }
.t-main { font-family: var(--f-display); font-size: clamp(17px, 2.4vw, 22px); line-height: 1.2; -webkit-font-smoothing: none; }
.t-date { font-family: var(--f-pixel); font-size: clamp(26px, 4vw, 36px); line-height: 1; letter-spacing: 0.02em; -webkit-font-smoothing: none; }
.t-stamp {
  position: absolute; right: -30px; top: -34px; width: 64px; height: 64px; display: grid; place-items: center;
  font-family: var(--f-pixel); font-size: 14px; line-height: 1.05; color: var(--overdue);
  border: 3px solid var(--overdue); border-radius: 50%; background: color-mix(in srgb, var(--paper) 85%, transparent);
  transform: rotate(14deg); -webkit-font-smoothing: none;
}
.mission { margin: 0; color: var(--muted); font-size: var(--step-0); line-height: 1.7; }
.mission strong { color: var(--paper); font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 2.6vw, 24px); -webkit-font-smoothing: none; }
.cue {
  font-family: var(--f-pixel); font-size: 15px; letter-spacing: 0.2em; color: var(--postit); text-decoration: none;
  animation: cue-blink 1.1s steps(2, jump-none) infinite; -webkit-font-smoothing: none;
}
.cue span { display: inline-block; animation: cue-bob 1.1s steps(2, jump-none) infinite; }
@keyframes cue-blink { 50% { opacity: 0.35; } }
@keyframes cue-bob { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .cue, .cue span { animation: none; } }
@media (max-width: 560px) {
  .ticket { flex-direction: column; width: 100%; max-width: 340px; }
  .t-cell, .t-what { padding: 14px 22px; }
  .t-when { border-left: 0; border-top: 3px dashed color-mix(in srgb, var(--ink) 35%, transparent); padding-right: 22px; }
  .ticket::before, .ticket::after { top: auto; bottom: 0; margin: 0 0 calc(var(--tw, 64px) - 9px); }
  .t-stamp { right: -12px; top: auto; bottom: -22px; width: 58px; height: 58px; font-size: 13px; }
}

/* 달리는 다섯 캐릭터 (img/runners: tools/make_runners.py 로 생성) */
.crew { list-style: none; margin: -4px 0 0; padding: 0; display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); --px: 3; }
.crew li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.crew-sprite {
  display: block; width: calc(16px * var(--px)); height: calc(24px * var(--px));
  background: var(--sheet) 0 0 / calc(128px * var(--px)) 100% no-repeat; image-rendering: pixelated;
  animation: crew-run 1.15s steps(8, jump-none) infinite; animation-delay: var(--delay, 0s);
}
.crew li:nth-child(odd) .crew-sprite { animation-duration: 1.05s; }
@keyframes crew-run { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.crew-part { font-family: var(--f-pixel); font-size: 12px; color: var(--muted); -webkit-font-smoothing: none; }
@media (max-width: 420px) { .crew { --px: 2.5; } }


/* 현재 1위: 픽셀 전광판 */
.leader {
  --led: #ffb627; --led-red: #ff4a3d;
  display: block; width: min(100%, 520px); padding: 10px; text-decoration: none; position: relative;
  background: #0b0a14; border: 4px solid #2c2846; box-shadow: 0 0 0 2px #000, 6px 6px 0 2px #000;
  font-family: var(--f-pixel); -webkit-font-smoothing: none;
}
/* 모서리 나사 */
.leader::before, .leader::after {
  content: ""; position: absolute; top: 3px; width: 4px; height: 4px; background: #4a4570; box-shadow: 0 calc(100% + 0px) 0 #4a4570;
}
.leader::before { left: 3px; } .leader::after { right: 3px; }
.leader > * { position: relative; }
/* LED 점 격자 */
.leader .led-head, .leader .led-row, .leader .led-ticker {
  background-color: #120f1f;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0 1px, transparent 1.4px);
  background-size: 4px 4px;
}
.led-head {
  padding: 6px 0 4px; font-size: 13px; letter-spacing: 0.3em; color: var(--led-red);
  text-shadow: 0 0 6px color-mix(in srgb, var(--led-red) 70%, transparent);
}
.led-blink { animation: led-blink 1s steps(2, jump-none) infinite; }
@keyframes led-blink { 50% { opacity: 0.15; } }
.led-row {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 14px; padding: 8px 12px 10px;
  color: var(--led); text-shadow: 0 0 8px color-mix(in srgb, var(--led) 65%, transparent), 0 0 1px var(--led);
}
.led-name { font-size: clamp(22px, 3.4vw, 30px); overflow-wrap: anywhere; }
.led-part { font-size: 14px; opacity: 0.8; }
.led-score { font-size: clamp(22px, 3.4vw, 30px); color: #ffe9a8; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.led-ticker {
  margin-top: 4px; overflow: hidden; white-space: nowrap; padding: 5px 0; font-size: 14px; color: #5cf2a0;
  text-shadow: 0 0 6px color-mix(in srgb, #5cf2a0 60%, transparent);
  border-top: 2px solid #1d1930;
}
.led-ticker span { display: inline-block; padding-left: 100%; animation: led-scroll 14s linear infinite; }
@keyframes led-scroll { to { transform: translateX(-100%); } }
.leader:hover { border-color: #3d3760; }
.leader:hover .led-row { color: #ffd36a; }
/* 이름·점수 줄: 오른쪽에서 들어와 멈췄다가 왼쪽으로 빠지는 전광판 동작 */
.led-row { overflow: hidden; }
.led-inner { display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 4px 14px; max-width: 100%;
  animation: led-slide 7s steps(28, jump-end) infinite; }
@keyframes led-slide {
  0% { transform: translateX(120%); }
  18%, 78% { transform: translateX(0); }
  100% { transform: translateX(-160%); }
}
.led-score { animation: led-flash 0.5s steps(2, jump-none) infinite; }
@keyframes led-flash { 50% { color: var(--led); } }
