.miracle-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding-right: min(20%, 78px);
  overflow: hidden;
  background: linear-gradient(129.25deg,#000 8.65%,#00afff 137.33%);
  color: white;
}
.miracle-line[hidden] { display: none; }
.ml-logo { width: 74px; height: 19px; object-fit: contain; mix-blend-mode: lighten; }
.miracle-line strong { font: 600 15px/23px Pretendard,sans-serif; white-space: nowrap; }
.ml-portrait { position: absolute; right: max(0px, calc((100% - 368px)/2)); top: 0; width: 101px; height: 44px; overflow: hidden; }
.ml-portrait img { position: absolute; left: -4px; top: -8px; width: 110px; max-width: none; }
@media(max-width:350px) {
  .miracle-line { justify-content: flex-start; padding-left: 6px; }
}
@media(prefers-reduced-motion: no-preference) {
  .ml-logo { animation: logo-slide 2s infinite, logo-fade 2s infinite; }
  .miracle-line strong span { display: inline-block; animation: strip-word 2s infinite both; }
  .miracle-line strong span:nth-child(1) { animation-delay: .18s; }
  .miracle-line strong span:nth-child(2) { animation-delay: .329s; }
  .miracle-line strong span:nth-child(3) { animation-delay: .478s; }
}
@keyframes logo-slide {
  0% { transform: translateX(-14px); animation-timing-function: cubic-bezier(.18,.72,.28,1); }
  23%,100% { transform: translateX(0); }
}
@keyframes logo-fade {
  0% { opacity: 0; animation-timing-function: ease-out; }
  17%,100% { opacity: 1; }
}
@keyframes strip-word {
  0% { opacity: 0; transform: translateY(7px); animation-timing-function: cubic-bezier(.18,.72,.28,1); }
  18.61%,100% { opacity: 1; transform: translateY(0); }
}
#car-tire-design .imc-coupon{margin:16px 0 0;background:#050a14;color:#fff;overflow:hidden}
.imc-coupon button{color:inherit}.imc-open{display:block;width:100%;padding:0;text-align:initial}.imc-banner-face{height:120px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px 0 16px;background:#050a14 url('/resources/images/contents/imc_seo_fold_bg.png') center/cover;overflow:hidden}
/* Keep the tire and both arms within the available width; crop vertically at the waist. */
.imc-banner-text{width:min(56%,200px);height:auto;object-fit:contain;flex:none}
.imc-banner-person{display:block;width:147px;min-width:0;height:120px;flex:0 1 147px;object-fit:cover;object-position:center 8%}
.imc-toggle-label,.imc-close{height:44px;width:100%;display:flex;gap:4px;align-items:center;justify-content:center;background:#505c66;font-size:13px;font-weight:600;line-height:20px}.imc-chevron{width:16px;height:16px;filter:brightness(0) invert(1)}.imc-close .imc-chevron{transform:rotate(180deg)}
.imc-coupon[open] .imc-toggle-label{display:none}.imc-panel[hidden]{display:none}.imc-panel{background:#050a14 url('/resources/images/contents/imc_seo_expand_bg.png') center top/100% auto no-repeat}.imc-title{display:block;width:200px;height:119px;object-fit:contain;margin:0 auto;padding:0}.imc-title-wrap{padding-top:32px}.imc-coupons-wrap{padding:10px 10px 20px;background:linear-gradient(transparent,rgba(0,175,255,.6) 32%,transparent 96%)}.imc-coupons{display:block;width:100%;max-width:380px;height:auto;margin:auto}
.imc-bottom{background:#000;padding:20px 20px 24px;text-align:center}.imc-total-label{font-size:15px;line-height:23px;color:#cfd5d9}.imc-total{font-size:36px;line-height:40px;color:#78d5ff;font-weight:700;display:block}.imc-total-note{font-size:14px;line-height:22px;color:#a1a9b0;margin-top:12px}.imc-app{display:flex;align-items:center;justify-content:center;width:100%;max-width:380px;min-height:48px;margin:32px auto 0;border-radius:12px;background:#00afff;color:#fff!important;font-size:17px;font-weight:600;text-decoration:none}.imc-app:focus-visible{outline:3px solid #fff;outline-offset:3px}.imc-app:active{transform:scale(.96)}
.imc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.imc-close{cursor:pointer}.imc-open:focus-visible,.imc-close:focus-visible{outline-offset:-3px}
@media(max-width:350px){.imc-banner-face{padding-left:12px}}
@media(min-width:1024px){.imc-banner-face{padding:0 40px 0 32px}}

.imc-toggle-label { justify-content:flex-start; padding:0 16px; background:#050a14; }
.imc-toggle-action { margin-left:auto; font-size:12px; opacity:.85; }
#car-tire-design .imc-coupon + #profile { border-top:0; padding-top:32px; }

.hero-offer { white-space: nowrap; }
.hero-offer small { font-size: 13px; line-height: 18px; font-weight: 500; color: #505c66; }

.pc-benefit-panel { display: none; }
@media (min-width: 1024px) {
  .tire-page-layout:has(> .pc-benefit-panel:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 640px) 320px;
    gap: 40px;
    max-width: 1000px;
    margin-inline: auto;
  }
  .tire-page-layout:has(> .pc-benefit-panel:not([hidden])) > .phone-page {
    width: 100%; min-width: 0; max-width: none; margin: 0;
  }
  .tire-page-layout:has(> .pc-benefit-panel:not([hidden])) #car-tire-design .mx-float {
    right: auto; left: max(0px, calc((100% - 1000px) / 2));
    width: min(640px, calc(100% - 360px)); max-width: none;
  }
  .pc-benefit-panel:not([hidden]) { display: block; padding-top: 24px; }
  .pc-benefit-card {
    position: sticky; top: 24px; overflow: hidden; border-radius: 24px;
    background: #080d17; color: #fff;
  }
  .pc-benefit-art {
    aspect-ratio: 320 / 372;
    background: url('/tire/car-benefit/pc-tire-card.png') center / cover no-repeat;
  }
  .pc-benefit-actions { padding: 20px; }
  .pc-benefit-actions a {
    display: flex; align-items: center; justify-content: center;
    min-height: 56px; border-radius: 12px; background: #00afff; color: #fff;
    font: 600 17px/24px Pretendard,sans-serif; text-decoration: none;
  }
  .pc-benefit-actions a:focus-visible { outline: 2px solid white; outline-offset: 3px; }
}
@media (min-width: 1024px) and (max-height: 515px) {
  .pc-benefit-card { position: static; }
}

/* Keep the wheel baseline and each car's horizontal center when resizing. */
#car-tire-design .cars .car-two { scale: 1.05; transform-origin: center bottom; }
#car-tire-design .cars .car-three { scale: .90; transform-origin: center bottom; }
