/* 기간 한정 안내 띠. 화면 아래에 떠 있어 첫 화면의 스크롤 연출을 건드리지 않는다 */
.limited {
  position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 40;
  width: min(760px, calc(100vw - 24px)); display: flex; align-items: center;
  color: #fff4dc; background: #1b1420; border: 2px solid #ffd84a; border-radius: 14px;
  box-shadow: 0 0 0 2px #1b1420, 0 10px 30px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 216, 74, .45);
  overflow: hidden; animation: lt-in .5s cubic-bezier(.2, .8, .2, 1) both, lt-glow 2.2s ease-in-out infinite;
}
.limited::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 216, 74, .32) 50%, transparent 60%);
  background-size: 260% 100%; animation: lt-shine 3s linear infinite;
}
.lt-link { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px 6px 10px 14px; color: inherit; text-decoration: none; }
.lt-tag { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 9px; border-radius: 999px; background: #e2413f; color: #fff; font-size: 13px; font-weight: 700; }
.lt-tag i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lt-blink 1s steps(2) infinite; }
.lt-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lt-main b { font-size: 18px; color: #ffd84a; }
.lt-main small { font-size: 13px; color: #fff4dc; white-space: nowrap; }
.lt-clock { margin-left: auto; flex: none; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: #ffd84a; }
.lt-go { flex: none; padding: 9px 14px; border-radius: 10px; background: #ffd84a; color: #1b1420; font-size: 14px; font-weight: 700; }
.lt-link:hover .lt-go, .lt-link:focus-visible .lt-go { background: #fff; }
.lt-close { position: relative; flex: none; width: 34px; height: 44px; border: 0; background: none; color: #fff4dc; font-size: 20px; cursor: pointer; }
.limited.soon { border-color: #e2413f; animation-duration: .5s, .9s; }
.limited.soon::before { animation-duration: 1.3s; }
.limited.soon .lt-clock { color: #ff8a6b; }

@keyframes lt-in { from { opacity: 0; translate: -50% 24px; } }
@keyframes lt-glow { 50% { box-shadow: 0 0 0 2px #1b1420, 0 10px 30px rgba(0, 0, 0, .45), 0 0 34px rgba(255, 216, 74, .9); } }
@keyframes lt-shine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes lt-blink { 50% { opacity: .25; } }

@media (max-width: 640px) {
  .limited { bottom: 8px; }
  .lt-link { gap: 8px; padding: 8px 2px 8px 10px; flex-wrap: wrap; }
  .lt-tag { font-size: 12px; padding: 3px 7px; }
  .lt-main { order: 3; flex-direction: row; align-items: baseline; gap: 8px; width: 100%; }
  .lt-main b { font-size: 16px; }
  .lt-main small { font-size: 12px; }
  .lt-clock { font-size: 16px; margin-left: 0; }
  .lt-go { padding: 5px 9px; font-size: 12px; margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .limited, .limited.soon, .limited::before, .lt-tag i { animation: none; }
  .limited::before { display: none; }
}
