/* =========================================================
 * 새해 첫날 디깅 자판기 (vending-newyear.html, body class="theme-newyear")
 * 위치 값(px)은 시안(iPhone 17, 폭 402)을 로고 바 아래부터 잰 값이에요.
 * 턴테이블은 3장을 겹쳐요: 바닥(newyear_turntable) → 클로버 LP(newyear_record, 돌아가요) → 톤암(newyear_arm)
 * ========================================================= */
@font-face { font-family: 'DearFromsol'; src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/2607161334@griun-fromsol-rg/griun-fromsol-rg/Griun_Fromsol-Rg.woff2') format('woff2'); font-weight: 400; font-display: swap; }

.theme-newyear {
  --ny-green: #bdd8b0;          /* 버튼·검색칸 */
  --ny-green-text: #537840;     /* 버튼 글자 */
  --ny-lyric-bg: #ebf3e7;       /* 가사 띠 */
  --ny-lyric-text: #81a271;     /* 가사 글자 */
  --ny-line: #bdd8b0;           /* 입력 밑줄 (버튼과 같은 연두) */
  --ny-spin: 3.2s;              /* LP 한 바퀴 도는 시간 (작을수록 빨라요) */
  --ff-fromsol: 'DearFromsol', var(--ff);
  --c-footer-line: #ececec;
}
.theme-newyear #app { overflow-x: hidden; }
.theme-newyear .screen { background: #ffffff; }
.theme-newyear .main-footer { margin-top: auto; }

/* ---------- 무대 (메인 ↔ 결과) ---------- */
.ny-stage { position: relative; height: 560px; transition: height .6s cubic-bezier(.4, 0, .2, 1); }
.ny-stage.is-result { height: 935.6px; }   /* 신고 문구 아래 = 로고 바~영상 간격(48px) */
.ny-stage.is-result + .main-footer { display: none; }   /* 결과 화면부터는 푸터 없이 */

.ny-title {
  position: absolute; top: 44px; left: 0; right: 0; margin: 0;
  font-family: var(--ff-fromsol); font-weight: 400; font-size: 22px; line-height: 28px;
  color: #151515; text-align: center; white-space: nowrap;
  transition: opacity .3s ease;
}

/* 턴테이블: 메인 크기 309×315 (첫 화면에 버튼까지 다 보이게), 결과에선 324×330으로 아래로 */
.ny-tt {
  position: absolute; top: 124px; left: calc(50% - 154.4px); width: 308.8px; height: 315.1px;
  transform-origin: 50% 0;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
}
.ny-tt img { position: absolute; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.ny-tt-base, .ny-arm { left: 0; top: 0; width: 100%; height: 100%; }
/* LP 중심 = 턴테이블 축 */
.ny-record { left: 13.27%; top: 8.815%; width: 69.77%; height: 68.37%; }
.is-result .ny-tt { transform: translateY(124.35px) scale(1.0482); }   /* 영상과 36px */
.is-result .ny-record { animation: ny-spin var(--ny-spin) linear .35s infinite; }
@keyframes ny-spin { to { transform: rotate(360deg); } }

/* 유튜브 영상 자리 */
.ny-video {
  position: absolute; top: 48.4px; left: calc(50% - 149px); width: 298px; height: 167.6px;
  background: #d9d9d9; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .4s ease .25s, transform .4s ease .25s, visibility 0s linear .65s;
}
.ny-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.is-result .ny-video { opacity: 1; visibility: visible; transform: none; transition-delay: .25s, .25s, 0s; }

/* ---------- 버튼 ---------- */
.ny-btn {
  display: flex; align-items: center; justify-content: center;
  width: 334px; max-width: calc(100% - 40px); border: 0; padding: 0;
  background: var(--ny-green); color: var(--ny-green-text); text-decoration: none;
  font-family: var(--ff-fromsol); font-size: 16px; font-weight: 400; letter-spacing: 0.4px;
  -webkit-tap-highlight-color: transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}
.ny-btn:active { transform: scale(.98); }
.ny-play { position: absolute; top: 459px; left: 50%; height: 60px; border-radius: 30px; transform: translateX(-50%); transition: opacity .25s ease; }
.ny-play:active { transform: translateX(-50%) scale(.98); }
.is-result .ny-title, .is-result .ny-play { opacity: 0; pointer-events: none; }

/* 결과 아래쪽 (가사·제목·버튼 3개·신고) */
.ny-result { position: absolute; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.is-result .ny-result { opacity: 1; visibility: visible; transition: opacity .4s ease .4s, visibility 0s; }
.ny-result > * { pointer-events: auto; }
.ny-result .ny-btn { position: absolute; left: 50%; height: 45px; border-radius: 22.5px; transform: translateX(-50%); }
.ny-result .ny-btn:active { transform: translateX(-50%) scale(.98); }
.ny-b1 { top: 692.6px; }   /* 가수-제목과 36px */
.ny-b2 { top: 749.6px; }   /* 버튼끼리 12px */
.ny-b3 { top: 806.6px; }

.ny-lyric {
  position: absolute; top: 595.4px; left: calc(50% - 157.5px); width: 315px; height: 24px; margin: 0; padding: 0 10px;
  background: var(--ny-lyric-bg); color: var(--ny-lyric-text);
  font-family: var(--ff-fromsol); font-size: 14px; line-height: 24px; letter-spacing: 0.2px;
  text-align: center; white-space: nowrap;
}
.ny-lyric.is-empty { visibility: hidden; }   /* 가사가 없는 노래는 띠를 숨겨요 (자리는 그대로) */
.ny-song {
  position: absolute; top: 632.6px; left: calc(50% - 167px); width: 334px; height: 24px; margin: 0;
  font-family: var(--ff-fromsol); font-size: 20px; line-height: 24px; color: #151515;
  text-align: center; white-space: nowrap;
}
.ny-report {
  position: absolute; top: 863.2px; left: 0; right: 0; margin: 0 auto; width: max-content; padding: 4px 8px;
  border: 0; background: none; font-family: var(--ff); font-size: 12px; line-height: 16px; color: #757575; cursor: pointer;
}
.ny-report u { text-underline-offset: 2px; }
.ny-report:disabled { cursor: default; }

/* 흐르는 글자 (칸보다 길 때만) */
.mq { display: block; overflow: hidden; width: 100%; }
.mq-in { display: inline-block; white-space: nowrap; }
.mq.is-run { text-align: left; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%); }
.mq.is-run .mq-in { animation: ny-marquee var(--mq-dur, 8s) linear var(--mq-delay, 0s) infinite; }
.mq-gap { display: inline-block; width: 48px; }
@keyframes ny-marquee { from { transform: translateX(0); } to { transform: translateX(var(--mq-shift, -50%)); } }

/* ---------- 나만의 새해 첫 곡 추천 ---------- */
.vr-body { flex: 1; display: flex; flex-direction: column; padding: 0 0 44px; }
.vr-intro { margin: 41px 0 0; font-size: 16px; line-height: 24px; text-align: center; color: #151515; }
.vr-search { position: relative; margin: 28.6px auto 0; width: 329px; max-width: calc(100% - 40px); }
.vr-search-input {
  width: 100%; height: 43px; padding: 0 50px 0 20px;
  border: 1.5px solid var(--ny-green); border-radius: 22px; background: #fff;
  font-size: 16px; color: #151515; outline: none; -webkit-appearance: none; appearance: none;
}
.vr-search-input::placeholder { color: #a5a5a5; }
.vr-search-input::-webkit-search-cancel-button { display: none; }
.vr-search-icon { position: absolute; right: 16px; top: 8px; width: 27px; height: 27px; color: var(--ny-green); pointer-events: none; }
.vr-found { margin: 10px auto 0; width: 318px; max-width: calc(100% - 50px); padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.vr-found[hidden] { display: none; }
.vr-found li { display: flex; gap: 8px; align-items: baseline; padding: 7px 2px; border-bottom: 1px solid #edf3ea; }
.vr-found li:last-child { border-bottom: 0; }
.vr-found .tag { flex-shrink: 0; font-size: 11px; color: var(--ny-green-text); font-weight: 700; }
.vr-found .song { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-found .none { color: #757575; }
.vr-label { display: block; margin: 33px auto 0; width: 318px; max-width: calc(100% - 50px); font-size: 19px; line-height: 23px; font-weight: 600; color: #151515; white-space: nowrap; }
.vr-label ~ .vr-label { margin-top: 31.3px; }
.vr-field {
  display: block; margin: 10.7px auto 0; width: 318px; max-width: calc(100% - 50px); height: 34px; padding: 0 0 4px;
  border: 0; border-bottom: 1px solid var(--ny-line); border-radius: 0; background: none;
  font-size: 17px; color: #151515; outline: none; -webkit-appearance: none; appearance: none;
}
.vr-field::placeholder { color: #b8b8b8; }
.vr-field:focus { border-bottom-width: 2px; padding-bottom: 3px; }
.vr-error { margin: 8px auto 0; width: 318px; max-width: calc(100% - 50px); font-size: 13px; color: #e5486e; }
.vr-error + .vr-label { margin-top: 18px; }
.vr-note { margin: 27px auto 0; width: 360px; max-width: calc(100% - 20px); font-size: 12.5px; line-height: 16px; color: #757575; text-align: center; word-break: keep-all; }
.vr-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.vr-space { flex: 1 0 34.8px; }
.vr-submit { margin: 0 auto; width: 329px; height: 52px; border-radius: 26px; }
.vr-submit:disabled { background: #dcebd5; color: #8fae80; cursor: default; transform: none; }
.screen-recommend .main-footer { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .ny-stage, .ny-tt, .ny-video, .ny-result, .ny-title, .ny-play { transition: none !important; }
  .is-result .ny-record { animation: none; }
}
