/* =====================================================================
   SSANCAR 홈 히어로 — 할인 이벤트 슬라이드 효과 (discount-hero-fx.css)
   - 크기는 전부 배너 폭 기준 cqw. vw · rem · 미디어쿼리(크기용) 금지.
   - 움직임은 transform / opacity / 각도 변수만 사용.
   - 슬라이드가 안 보일 때는 .ssc-fx-paused 를 붙여 멈춘다.
   - prefers-reduced-motion 이면 모든 움직임을 끈다.
   ===================================================================== */

@property --ssc-fx-a { syntax:'<angle>'; inherits:false; initial-value:0deg; }

.ssc-dcbn { position:relative; overflow:hidden; aspect-ratio:16/9;
  container-type:inline-size; isolation:isolate; background:#12171B; }
.ssc-dcbn > img.ssc-dcbn__art { position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; display:block; z-index:0; }

/* ---------- 1. 테두리를 한 바퀴 도는 빛의 띠 ---------- */
.ssc-fx-ring, .ssc-fx-ring--glow {
  position:absolute; inset:0; z-index:5; pointer-events:none; border-radius:inherit;
  padding:.5cqw;
  background:conic-gradient(from var(--ssc-fx-a),
    rgba(255,214,10,.18) 0 8%,
    transparent 8% 26%,
    rgba(255,214,10,0) 26%, #FFB800 34%, #FFF6C8 39%, #FFD60A 42%, rgba(255,214,10,0) 50%,
    transparent 50% 76%,
    rgba(232,17,45,0) 76%, #E8112D 84%, #FF8A8A 88%, rgba(232,17,45,0) 94%,
    rgba(255,214,10,.18) 94%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation:ssc-fx-spin 4.2s linear infinite;
}
.ssc-fx-ring--glow { padding:1.4cqw; filter:blur(1.1cqw); opacity:.9; z-index:4; }
@keyframes ssc-fx-spin { to { --ssc-fx-a:360deg; } }

/* ---------- 2. 화면을 가로지르는 빛 (샤인 스윕) ---------- */
.ssc-fx-shine { position:absolute; inset:0; z-index:3; pointer-events:none; overflow:hidden; }
.ssc-fx-shine::before {
  content:''; position:absolute; top:-30%; bottom:-30%; left:0; width:18%;
  background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.07) 30%,
    rgba(255,255,255,.34) 50%, rgba(255,255,255,.07) 70%, transparent 100%);
  transform:translateX(-160%) skewX(-22deg);
  animation:ssc-fx-sweep 5s cubic-bezier(.45,.05,.35,1) infinite;
}
@keyframes ssc-fx-sweep {
  0%   { transform:translateX(-160%) skewX(-22deg); }
  38%, 100% { transform:translateX(700%) skewX(-22deg); }
}

/* ---------- 3. 반짝이 (별빛) ---------- */
.ssc-fx-spark {
  position:absolute; left:var(--x); top:var(--y); z-index:4; pointer-events:none;
  width:calc(var(--s, 2) * 1.35cqw); aspect-ratio:1; translate:-50% -50%;
  filter:drop-shadow(0 0 .7cqw rgba(255,214,10,.95));
  animation:ssc-fx-twinkle var(--t, 2.6s) ease-in-out var(--d, 0s) infinite;
  opacity:0;
}
.ssc-fx-spark::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle, #fff 0 18%, #FFE680 40%, #FFC300 70%);
  clip-path:polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
@keyframes ssc-fx-twinkle {
  0%, 100% { opacity:0; transform:scale(.2) rotate(0deg); }
  45%      { opacity:1; transform:scale(1) rotate(45deg); }
  60%      { opacity:.9; transform:scale(.85) rotate(60deg); }
}

/* 글자 뒤 은은한 빛 (맥박) */
.ssc-fx-halo { position:absolute; left:-8%; top:12%; width:62%; height:80%; z-index:1;
  pointer-events:none; border-radius:50%;
  background:radial-gradient(closest-side, rgba(255,190,0,.20), rgba(232,17,45,.10) 55%, transparent);
  animation:ssc-fx-breath 3.2s ease-in-out infinite; }
@keyframes ssc-fx-breath { 0%,100% { opacity:.55; transform:scale(.96); } 50% { opacity:1; transform:scale(1.04); } }

/* ---------- 4. 문구 ---------- */
.ssc-dcbn__ovl { position:absolute; inset:0; z-index:2; padding:0 6.5%;
  display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
  font-family:"Arial Black","Segoe UI Black",system-ui,sans-serif; color:#fff; }
.ssc-dcbn__ovl > * { margin:0; max-width:56%; }

/* EVENT SALE — 금빛, 글자 위로 빛이 흐른다 */
.ssc-fx-title {
  font-size:6cqw; line-height:1; letter-spacing:-.01em; font-weight:900; white-space:nowrap;
  background:linear-gradient(100deg, #FFB800 0%, #FFE680 22%, #FFFFFF 30%, #FFD60A 38%,
    #FF9F00 60%, #FFE680 80%, #FFB800 100%);
  background-size:250% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:drop-shadow(0 .25cqw 0 rgba(0,0,0,.55)) drop-shadow(0 0 1.4cqw rgba(255,184,0,.45));
  animation:ssc-fx-gold 3.6s linear infinite;
}
@keyframes ssc-fx-gold { from { background-position:100% 0; } to { background-position:-150% 0; } }

/* LIMITED TIME 꼬리표 — 깜빡이는 점 */
.ssc-fx-tag { display:inline-flex; align-items:center; gap:.8cqw; margin-bottom:1.4cqw;
  font:700 2cqw/1 system-ui,"Segoe UI",sans-serif; letter-spacing:.12em; color:#fff;
  background:#E8112D; padding:.75cqw 1.5cqw; border-radius:999px;
  box-shadow:0 0 0 .2cqw rgba(255,255,255,.18), 0 0 2cqw rgba(232,17,45,.6); }
.ssc-fx-tag i { width:.9cqw; height:.9cqw; border-radius:50%; background:#fff;
  animation:ssc-fx-blink 1.1s steps(2, jump-none) infinite; }
@keyframes ssc-fx-blink { 50% { opacity:.15; } }

.ssc-fx-rate { display:flex; align-items:flex-end; gap:1.2cqw; margin-top:1.4cqw; line-height:.82; }
.ssc-fx-rate small { font-size:2.4cqw; line-height:1.1; padding-bottom:.9cqw; color:#E7ECEF; letter-spacing:.04em; }
.ssc-fx-rate b { font-size:12cqw; letter-spacing:-.04em; color:#fff;
  text-shadow:0 .35cqw 0 rgba(0,0,0,.5), 0 0 2.6cqw rgba(255,255,255,.35);
  animation:ssc-fx-pop 2.4s ease-in-out infinite; transform-origin:left bottom; }
.ssc-fx-rate em { font-style:normal; font-size:3.6cqw; padding-bottom:1cqw; color:#FFD60A; }
@keyframes ssc-fx-pop { 0%,100% { transform:scale(1); } 50% { transform:scale(1.05); } }

.ssc-dcbn__sub { font-size:2.8cqw; font-weight:700; color:#C9D3DA; margin-top:1.4cqw;
  font-family:system-ui,"Segoe UI",sans-serif; letter-spacing:.01em; }

/* 버튼 — 빛이 지나간다 */
.ssc-fx-cta { position:relative; overflow:hidden; margin-top:2.6cqw; padding:1.5cqw 3.2cqw;
  border-radius:999px; background:linear-gradient(180deg, #FFE066, #FFC300);
  color:#141008; font-size:2.6cqw; font-weight:900; text-decoration:none;
  box-shadow:0 .5cqw 1.6cqw rgba(255,184,0,.35), inset 0 -.3cqw 0 rgba(0,0,0,.15); }
.ssc-fx-cta::after { content:''; position:absolute; top:0; bottom:0; left:0; width:30%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transform:translateX(-120%) skewX(-20deg);
  animation:ssc-fx-cta 2.8s ease-in-out 1s infinite; }
@keyframes ssc-fx-cta { 0% { transform:translateX(-120%) skewX(-20deg); } 45%,100% { transform:translateX(420%) skewX(-20deg); } }

/* ---------- 정지 · 접근성 ---------- */
.ssc-fx-paused, .ssc-fx-paused *, .ssc-fx-paused *::before, .ssc-fx-paused *::after,
.ssc-fx-paused.ssc-dcbn { animation-play-state:paused !important; }

@media (prefers-reduced-motion: reduce) {
  .ssc-dcbn *, .ssc-dcbn *::before, .ssc-dcbn *::after { animation:none !important; }
  .ssc-fx-spark { opacity:.9; }
  .ssc-fx-shine { display:none; }
}
