/* =========================================================
   권도일의 Sincerely yours, — 공통 스타일
   색·폰트는 아래 :root 에서 한 번에 바꿀 수 있어요.
   ========================================================= */
@font-face {
  font-family: 'Seongang';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2312-1@1.1/SOGANGUNIVERSITYTTF.woff2') format('woff2');
  font-weight: normal;
  font-display: swap;
}
:root {
  --blue: #1810a3;          /* 메인 남색 */
  --blue-light: #4f6be8;    /* 파형·포인트 파랑 */
  --bg: #eaedf6;            /* 배경 */
  --grid: rgba(255, 255, 255, 0.75); /* 모눈 선 */
  --ink: #15151a;
  --font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-script: "Playball", cursive;           /* Sincerely yours, 필기체 */
  --font-title-kr: "Seongang", serif;           /* 한글 제목: 서강체 */
  --font-round: "Cafe24 Ssurround", var(--font-body);  /* 플레이어 제목: 카페24 써라운드 */
  --font-pixel: "DotGothic16", monospace;       /* 주파수 숫자 */
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 2px, transparent 2px),
    linear-gradient(90deg, var(--grid) 2px, transparent 2px);
  background-size: 84px 70px;
  background-position: 22px 32px;
}
img { max-width: 100%; display: block; }
button { font: inherit; }

/* ---------- 상단·하단 띠 ---------- */
.bar {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.bar__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 32px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bar__group { display: flex; gap: 160px; }
.bar__group--right { gap: 80px; }
main { flex: 1; }

/* ---------- 클립 종이 (제목) ---------- */
.paper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  container-type: inline-size;   /* 종이 크기에 맞춰 글씨도 같이 커지고 작아짐 */
}
.paper > img { width: 100%; height: auto; }
.paper__text {
  position: absolute;
  /* 흰 종이 영역의 정중앙 (이미지 실측) */
  left: 3%;
  right: 6.5%;
  top: 21%;
  bottom: 26.2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-2.05deg);   /* 흰 종이 기울기와 똑같이 */
}

/* ---------- 페이지 1 ---------- */
.hero {
  min-height: calc(100vh - 32px);
  padding: 40px 20px 30px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; margin-left: -30px; width: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--blue); text-decoration: none;
}
.scroll-cue svg { animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(6px); } }
html { scroll-behavior: smooth; }
.hero .paper { max-width: 930px; }
.hero__kicker {
  margin: 0 0 0.9cqw;
  font-family: var(--font-title-kr);
  font-size: max(11px, 2.05cqw);
  font-weight: 400;
  color: var(--blue);
  padding-bottom: 0.6cqw;
  border-bottom: max(1.5px, 0.22cqw) solid var(--blue);
  letter-spacing: 0.04em;
}
.hero__title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 9.8cqw;
  line-height: 1.08;
  color: var(--blue);
  white-space: nowrap;
}

.onair-wrap {
  margin-top: -6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.onair {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 22px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
}
.onair__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: blink 1.2s steps(1) infinite;
}
.onair__text { animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0.25; } }
.onair-wrap p { margin: 10px 0 0; font-family: var(--font-title-kr); font-size: 18px; font-weight: normal; line-height: 1.5; }

/* ---------- 주파수 튜너 ---------- */
.tuner-section { padding: 100px 20px 0; }
.tuner {
  max-width: 640px;
  margin: 0 auto;
  background: var(--blue);
  border-radius: 40px;
  padding: 32px 36px 30px;
  box-shadow: 0 10px 40px rgba(24, 16, 163, 0.25);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tuner__guide {
  margin: 0;
  font-family: var(--font-title-kr);
  text-align: center;
  font-size: 18px;
  font-weight: 400;
}
.tuner__guide strong { color: #ffe27a; }
.tuner__screen {
  background: #f4f4f6;
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--ink);
}
.tuner__label { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.12em; color: #555; }
.tuner__freq { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.tuner__num { font-family: var(--font-pixel); font-size: 60px; line-height: 1; }
.tuner__unit { font-family: var(--font-pixel); font-size: 18px; color: #555; }
.tuner__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tuner__bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.tuner__bars span { width: 7px; border-radius: 3px; background: #cfd2e2; transition: background 0.2s; }
.tuner__bars span.on { background: var(--blue-light); }
.tuner__status { font-family: var(--font-pixel); font-size: 13px; letter-spacing: 0.08em; color: #666; }
.tuner__status.locked { color: var(--blue); }

.tuner__scale { position: relative; height: 66px; margin: 0 14px; }
.tuner__target {
  position: absolute; top: 0; left: 52%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font-pixel); font-size: 12px; color: #ffe27a;
}
.tuner__ticks { position: absolute; left: 0; right: 0; bottom: 18px; height: 22px; }
.tuner__ticks i {
  position: absolute; bottom: 0; width: 2px; margin-left: -1px;
  background: #fff; opacity: 0.55; height: 10px;
}
.tuner__ticks i.major { opacity: 1; height: 20px; }
.tuner__needle {
  position: absolute; bottom: -4px; width: 3px; height: 34px; margin-left: -1.5px;
  background: #ff6b57; border-radius: 2px; transition: left 0.08s;
}
.tuner__labels { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; }
.tuner__labels span {
  position: absolute; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 11px; color: rgba(255, 255, 255, 0.8);
}
.tuner__controls { display: flex; align-items: center; gap: 12px; }
.tuner__step {
  flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: rgba(255, 255, 255, 0.15); color: #fff; font-size: 22px; cursor: pointer;
}
.tuner__step:hover { background: rgba(255, 255, 255, 0.25); }
.tuner.is-locked .tuner__step { opacity: 0.35; cursor: default; }
.tuner.is-locked .tuner__range { cursor: default; }
.tuner.is-locked .tuner__range::-webkit-slider-thumb { background: #ffe27a; }
.tuner.is-locked .tuner__range::-moz-range-thumb { background: #ffe27a; }

input[type="range"].tuner__range {
  -webkit-appearance: none; appearance: none;
  flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer;
}
.tuner__range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.tuner__range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.tuner__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.tuner__range::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; }
.tuner__range:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }

/* ---------- 오프닝 멘트 버튼 ---------- */
.cta-wrap { padding: 56px 20px 0; display: flex; justify-content: center; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 320px; height: 80px; padding: 0 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3b3fe0 0%, #5b5ef5 100%);
  box-shadow: 0 8px 26px rgba(59, 63, 224, 0.45);
  color: #fff; text-decoration: none;
  font-family: var(--font-title-kr);
  font-size: 19px; font-weight: 400; letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(59, 63, 224, 0.55); }
.cta-wrap.is-hidden .cta { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }
.cta-wrap .cta { transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s, box-shadow 0.15s; }
.cta.is-locked { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 8px 40px rgba(91, 94, 245, 0.85); } }

/* ---------- 방청 안내 ---------- */
.info-section { padding: 180px 20px 0; }
.info {
  max-width: 900px;
  margin: 0 auto;
  background: #f9f9fb;
  border-radius: 34px;
  padding: 56px 40px 62px;
  text-align: center;
}
.info h2 {
  margin: 0 0 30px;
  font-family: var(--font-title-kr);
  font-weight: 400;
  font-size: 25px;
  color: var(--blue);
}
.info p { margin: 0; font-size: 17px; line-height: 2; word-break: keep-all; }
.info .hl { color: var(--blue); font-weight: 600; }

/* ---------- 갤러리 ---------- */
.gallery { padding: 200px 0 0; position: relative; }
.gallery__viewport {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 calc(50% - 260px) 0;
  scrollbar-width: none;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: none;
  width: 520px;
  scroll-snap-align: center;
  margin: 0;
}
.gallery__item img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 6px 24px rgba(24, 16, 163, 0.12); }
.gallery__arrow {
  position: absolute;
  top: calc(200px + 50% - 100px);
  width: 56px; height: 100px;
  border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gallery__arrow--prev { left: calc(50% - 360px); }
.gallery__arrow--next { right: calc(50% - 360px); }
.gallery__arrow:disabled { opacity: 0; pointer-events: none; }
.gallery-spacer { height: 48px; }

/* ---------- 페이지 2: 비밀번호 ---------- */
.center-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px;
}
.note { max-width: 650px; width: 100%; }
.note .paper__text { left: 3.5%; right: 7%; top: 20.5%; bottom: 26.7%; gap: 1.9cqw; }
.note h1 {
  margin: 0;
  font-family: var(--font-title-kr);
  font-weight: 400;
  font-size: 5.3cqw;
  line-height: 1.15;
  color: var(--blue);
  white-space: nowrap;
}
.note p {
  margin: 0;
  font-family: var(--font-title-kr); font-weight: 400;
  font-size: 2.35cqw; line-height: 1.45;
  white-space: nowrap;
}
.m-br { display: none; }
.note-sub { display: none; }
.note:has(.note-desc) h1 { font-size: 4.24cqw; }   /* 비밀번호 페이지 제목 (PC) */
@media (max-width: 600px) {
  /* 모바일: 종이 안에는 제목만, 설명은 종이 밑으로 */
  .note .note-desc { display: none; }
  .note:has(.note-desc) h1 { font-size: 5.92cqw; }
  .note-sub {
    display: block;
    margin: 6px 0 0;
    font-family: var(--font-title-kr);
    font-size: 15px; line-height: 1.6;
    color: var(--ink); text-align: center;
  }
}
/* 종이가 좁을 때(모바일): 안내 문구를 두 줄로 나누고 글씨를 키움 */
@container (max-width: 480px) {
  .note h1 { font-size: 6.4cqw; }
  .note p { font-size: 3.6cqw; line-height: 1.45; }
  .note .paper__text { gap: 1.6cqw; }
  .m-br { display: inline; }
}
.pw-form { margin-top: 40px; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pw-input {
  width: 100%; height: 80px; border: 0; border-radius: 999px;
  background: #fff; text-align: center; font-size: 17px; color: var(--ink);
  box-shadow: 0 6px 20px rgba(24, 16, 163, 0.08);
  outline: none; transition: box-shadow 0.2s;
}
.pw-input::placeholder { color: #a9aef0; }
.pw-input:focus { box-shadow: 0 0 0 3px rgba(79, 107, 232, 0.35), 0 6px 20px rgba(24, 16, 163, 0.08); }
.pw-input.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pw-msg { min-height: 22px; margin: 0; font-size: 15px; color: #d23b3b; }

/* ---------- 페이지 3: 플레이어 ---------- */
.player {
  width: 100%; max-width: 755px;
  background: var(--blue);
  border-radius: 40px;
  padding: 34px 34px 22px;
  box-shadow: 0 10px 40px rgba(24, 16, 163, 0.25);
  color: #fff;
}
.player__top { display: grid; grid-template-columns: 230px 1fr; gap: 30px; }
.player__dots { display: flex; gap: 25px; }
.player__dots span { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.player__dots span:nth-child(1) { background: #fff; }
.player__dots span:nth-child(2) { background: #d9d9d9; }
.player__dots span:nth-child(3) { background: #adadad; }
.player__name { margin: 72px 0 0; font-family: var(--font-round); font-size: 18px; font-weight: normal; }
.player__title {
  margin: 8px 0 0;
  font-family: var(--font-round);
  font-weight: normal;
  font-size: 44px;
  line-height: 0.95;
}
.player__name, .player__title { padding-left: 2px; }
.player__screen {
  background: #f4f4f6; border-radius: 12px;
  height: 243px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.player__screen span {
  width: 14px; border-radius: 7px; background: var(--blue-light);
  height: var(--h);
  transform-origin: center;
}
.player.is-playing .player__screen span { animation: wave 0.9s ease-in-out infinite alternate; }
.player.is-playing .player__screen span:nth-child(2n) { animation-delay: -0.3s; }
.player.is-playing .player__screen span:nth-child(3n) { animation-delay: -0.6s; }
@keyframes wave { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

.player__progress {
  margin: 46px 40px 0;
  height: 8px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer; position: relative;
}
.player__progress-fill { position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 4px; background: #fff; }
.player__time { margin: 8px 40px 0; display: flex; justify-content: space-between; font-size: 12px; opacity: 0.8; font-variant-numeric: tabular-nums; }
.player__controls { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 40px; }
.player__btn { border: 0; background: transparent; cursor: pointer; padding: 0; display: flex; color: #fff; }
.player__btn--play {
  width: 72px; height: 72px; border-radius: 50%; background: #f4f4f6; color: var(--blue);
  align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.player__btn--play .icon-play { margin-left: 5px; }
.player__btn--play .icon-pause { display: none; }
.player.is-playing .player__btn--play .icon-play { display: none; }
.player.is-playing .player__btn--play .icon-pause { display: block; }
.player__track { margin: 12px 0 0; text-align: center; font-size: 14px; opacity: 0.85; min-height: 20px; }

/* ---------- 모바일 ---------- */
@media (max-width: 900px) {
  .bar { font-size: 10px; }
  .bar__inner { padding: 0 20px; height: 26px; }
  .bar__group, .bar__group--right { gap: 18px; }
  .gallery__item { width: 72vw; }
  .gallery__viewport { padding: 0 14vw; }
  .gallery__arrow { display: none; }
}
@media (max-width: 600px) {
  .hero { min-height: calc(100svh - 26px); }
  .tuner { padding: 22px 18px; border-radius: 28px; }
  .tuner__num { font-size: 44px; }
  .tuner-section { padding-top: 70px; }
  .info-section, .gallery { padding-top: 100px; }
  .info { padding: 40px 22px; border-radius: 24px; }
  .info p { font-size: 12px; line-height: 1.75; }
  .info p + p { margin-top: 10px; }   /* 모바일: 문장마다 간격 */
  .cta { min-width: 0; width: 100%; height: 68px; }
  .player { padding: 24px 20px 18px; border-radius: 28px; }
  .player__top { grid-template-columns: 1fr; gap: 20px; }
  .player__dots { gap: 14px; }
  .player__dots span { width: 20px; height: 20px; }
  .player__name { margin-top: 32px; }
  .player__title { font-size: 34px; }
  .player__screen { height: 160px; gap: 12px; }
  .player__screen span { width: 10px; height: calc(var(--h) * 0.65); }
  .player__progress, .player__time { margin-left: 8px; margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   오늘의 선곡표 (vote.html)
   ========================================================= */
[hidden] { display: none !important; }
.vote-main { padding: 90px 20px 120px; display: flex; flex-direction: column; align-items: center; }
.vote-main .note { max-width: 630px; }
.vote-notice {
  margin: 4px 0 0;
  font-family: var(--font-title-kr);
  font-size: 17px;
  color: var(--blue);
  text-align: center;
  word-break: keep-all;
}
.vote-card {
  width: 100%;
  max-width: 800px;
  background: #f9f9fb;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(24, 16, 163, 0.05);
}
.song-card { margin-top: 74px; padding: 30px 30px 60px; }
.song-card__head {
  margin: 0 0 40px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  font-family: var(--font-title-kr); font-size: 12px; color: #444;
}
.song-list { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; display: flex; flex-direction: column; gap: 6px; }
.song {
  width: 100%;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; column-gap: 10px;
  padding: 9px 22px;
  border: 0; border-radius: 999px; background: transparent;
  font-family: var(--font-title-kr); font-size: 18px; line-height: 1.6; color: var(--ink);
  text-align: left; cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.song__no { font-family: var(--font-round); font-size: 14px; color: var(--blue-light); font-variant-numeric: tabular-nums; }
.song__name { word-break: keep-all; }
.song__artist { color: #6a6a78; }
.song:hover, .song[aria-pressed="true"] { background: var(--blue); color: #fff; }
.song:hover .song__no, .song[aria-pressed="true"] .song__no,
.song:hover .song__artist, .song[aria-pressed="true"] .song__artist { color: rgba(255, 255, 255, 0.75); }
.song:disabled { cursor: not-allowed; opacity: 0.35; background: transparent; color: var(--ink); }
.song:disabled .song__no { color: var(--blue-light); }
.song:disabled .song__artist { color: #6a6a78; }
.song:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }

.reason-card { margin-top: 36px; padding: 18px 22px 22px; display: flex; flex-direction: column; }
.reason-card label {
  font-family: var(--font-title-kr); font-size: 12px; color: #444;
  padding: 0 2px 6px;
  border-bottom: 1.5px dashed #a9aef0;
}
.vote-textarea {
  width: 100%; border: 0; background: transparent; resize: vertical;
  font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--ink);
  outline: none;
}
.reason-card .vote-textarea { min-height: 150px; padding: 12px 2px 0; }
.letter-card { margin-top: 36px; padding: 0; border: 1px solid var(--blue-light); }
.letter-card .vote-textarea { min-height: 210px; padding: 22px 26px; border-radius: 20px; }
.letter-card:focus-within, .reason-card:focus-within { box-shadow: 0 0 0 3px rgba(79, 107, 232, 0.2); }
.vote-textarea::placeholder { color: #a9aef0; }
.vote-hint { margin: 8px 0 0; min-height: 22px; font-size: 14px; color: #d23b3b; text-align: center; }

.post-btn {
  margin-top: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 320px; height: 80px; padding: 0 40px;
  border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #e8474e 0%, #c3080d 100%);
  box-shadow: 0 8px 24px rgba(214, 30, 36, 0.4);
  color: #fff; cursor: pointer;
  font-family: var(--font-title-kr); font-size: 19px; letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.post-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(214, 30, 36, 0.5); }
.post-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---- 등장 효과: 아래에서 위로 ---- */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.letter-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.letter-wrap .letter-card { width: 100%; }

/* ---- 투표 완료 ---- */
.done-badge-wrap { position: relative; display: flex; justify-content: center; width: 100%; max-width: 320px; }
.done-badge-wrap .done-badge { position: relative; z-index: 1; }
.confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.cf {
  position: absolute; left: 0; top: 0; display: block;
  background: var(--c);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  animation: cf-burst 0.9s cubic-bezier(.2,.8,.3,1) var(--d) both, cf-float var(--f) ease-in-out calc(var(--d) + 0.9s) infinite alternate;
}
.cf--rect { width: 7px; height: 14px; margin: -7px 0 0 -3.5px; border-radius: 2px; }
.cf--dot  { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; }
.cf--star { width: 14px; height: 14px; margin: -7px 0 0 -7px;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.cf[style*="#ffffff"] { box-shadow: 0 0 0 1px rgba(24,16,163,.15); }
@keyframes cf-burst {
  from { transform: translate(0, 0) rotate(0deg) scale(0.2); opacity: 0; }
  30% { opacity: 1; }
  to { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 1; }
}
@keyframes cf-float {
  from { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  to { transform: translate(var(--x), calc(var(--y) + 8px)) rotate(calc(var(--r) + 40deg)); }
}
.done-main { padding: 70px 20px 100px; display: flex; flex-direction: column; align-items: center; }
.done-badge {
  display: flex; align-items: center; justify-content: center;
  width: 320px; max-width: 100%; height: 80px;
  border: 1px solid var(--blue-light); border-radius: 999px; background: #f9f9fb;
  font-family: var(--font-title-kr); font-size: 26px; color: var(--blue);
}
.done-grid {
  margin-top: 54px;
  width: 100%; max-width: 1040px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px;
}
.done-col { display: flex; flex-direction: column; gap: 14px; }
.top-card {
  position: relative;
  min-height: 530px;
  background: #f9f9fb;
  border: 1px solid var(--blue-light);
  border-radius: 14px;
  padding: 90px 36px 32px;
}
.top-card__label {
  position: absolute; top: -40px; left: 110px; width: 280px;
  container-type: inline-size;
}
.top-card__label img { width: 100%; height: auto; }
.top-card__label span {
  position: absolute; left: 3.5%; right: 7%; top: 20.5%; bottom: 26.7%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title-kr); font-size: 7cqw; color: var(--blue);
  white-space: nowrap;
  transform: rotate(-2.05deg);
}
.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.top-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px; background: #fff;
  box-shadow: 0 2px 10px rgba(24, 16, 163, 0.05);
}
.top-item__rank { font-family: var(--font-round); font-size: 26px; color: var(--blue); text-align: center; }
.top-item__title { font-family: var(--font-title-kr); font-size: 18px; color: var(--ink); }
.top-item__artist { display: block; font-size: 13px; color: #6a6a78; margin-top: 2px; }
.top-item__count { font-family: var(--font-round); font-size: 16px; color: var(--blue); white-space: nowrap; }
.top-item.mine { box-shadow: 0 0 0 1.5px var(--blue-light); }
.top-empty { margin: 30px 0 0; text-align: center; color: #6a6a78; font-size: 15px; }
.top-updated { margin: 18px 0 0; text-align: right; font-size: 12px; color: #8a8a98; }

.info-card {
  background: #f9f9fb; border-radius: 14px; padding: 24px 28px 28px;
  min-height: 255px; flex: 1;
}
.info-card h2 {
  margin: 0 0 16px; padding-bottom: 8px;
  border-bottom: 1.5px dashed #a9aef0;
  text-align: center;
  font-family: var(--font-title-kr); font-weight: 400; font-size: 19px; color: var(--blue);
}
.my-songs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.my-songs li { font-family: var(--font-title-kr); font-size: 17px; }
.my-songs li span { color: #6a6a78; font-size: 14px; }
.my-letter__label { display: block; margin: 0 0 4px; font-size: 12px; color: #8a8a98; }
.my-letter__text { margin: 0 0 14px; font-size: 15px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }

.demo-bar {
  background: #15151a; color: #f3f0e8; text-align: center;
  font-size: 12px; padding: 6px 12px;
}
.demo-bar button {
  margin-left: 8px; background: none; border: 1px solid #f3f0e8; color: #f3f0e8;
  border-radius: 999px; padding: 1px 10px; font-size: 12px; cursor: pointer;
}

@media (max-width: 900px) {
  .done-grid { grid-template-columns: 1fr; gap: 56px; }
  .top-card { min-height: 0; }
  .top-card__label { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .hero { padding-left: 8px; padding-right: 8px; }
  .center-main, .vote-main { padding-left: 12px; padding-right: 12px; }
  .vote-notice { font-size: 14px; margin-top: 2px; }
  .confetti { transform: scale(0.6); z-index: 50; }   /* 모바일: 컨페티를 맨 위 레이어로 */
  .done-badge-wrap { z-index: 50; }
  .vote-main { padding-top: 50px; }
  .song-card { padding: 22px 12px 36px; margin-top: 48px; }
  .song { font-size: 15px; padding: 8px 14px; grid-template-columns: 28px minmax(0, 1fr); }
  .post-btn { min-width: 0; width: 100%; height: 68px; }
  .top-card { padding: 80px 16px 24px; }
  .top-card__label { width: 230px; top: -32px; }
  .info-card { padding: 20px 18px 22px; }
}
