/* 2026-10-20 레이아웃 마감 검토 반영: 정렬·간격·비율만 조정합니다. 색상·글꼴·구성은 바꾸지 않습니다. */

/* 한글 단어 중간 줄바꿈 방지. 하단 고정 띠 여백은 푸터 안에서 확보해 푸터 아래 빈 띠를 없앱니다. */
body{word-break:keep-all;overflow-wrap:break-word;padding-bottom:0}
.shop-footer{padding-bottom:110px}

/* 메뉴 아래 구분선이 메뉴 배경에 덮이지 않게 하고, 첫 배너를 메뉴에서 띄웁니다. */
.menu-shell .shopnav{background:transparent}
main>.hero:first-child{margin-top:24px}

/* 카드·상세 이미지 아래 상태 띠 글자는 항상 가운데 */
.product-media>.reservation-status{align-content:center}

/* 산양삼 세로 사진을 배너 칸에 꽉 채움 */
.ginseng-hero .hero-image img{object-fit:cover;object-position:50% 38%}

/* 상세 이미지 아래 상태 띠는 내용 높이만 차지 */
.detail-image .product-media{grid-template-rows:minmax(0,1fr) auto}

/* 로그인 창: 안내문 아래 고정 높이 제거 */
.social-status{min-height:0}

/* 수량 입력칸과 구매 버튼 높이·아래선 맞춤 */
.detail-purchase-row{align-items:flex-end}
.detail-purchase-row input[type=number]{height:52px;box-sizing:border-box}
.detail-purchase-row .buy-actions button{height:52px;min-height:52px}

@media(min-width:901px){
  /* 상세: 상태 띠는 내용 높이만, 이미지 열은 스크롤 시 따라오도록 */
  .detail-image{position:sticky;top:96px}
  .detail-image .product-media>.reservation-status{padding:18px 16px}

  /* 함께 보시면 좋을 먹거리: 목록과 같은 4개 폭 */
  .related-track.product-grid{grid-auto-columns:calc((100% - 69px)/4)}
  .related-products .related-track .product-card h3{font-size:22.1px;line-height:1.5;margin:0 0 7px}
  .related-track .product-meta{font-size:15.6px;margin-bottom:10px}
  .related-track .premium-product-note{font-size:13px}
  .related-track .card-body{padding-top:14px}
  .related-track .reservation-price{margin:0 0 13px}
  .related-track .reservation-price strong{font-size:28px}
  .related-track .discount-rate{font-size:20px}
  .related-track .reservation-price del,.related-track .price-caption{font-size:16px}
  .related-track .reservation-price small{font-size:13px}
  .related-track .deadline-line{font-size:14px;line-height:1.6;margin:0 0 14px}
  .related-track .card-actions{font-size:15px;padding-top:15px;gap:8px}
  .related-track .card-actions>button{padding:9px}
  .related-track .card-actions svg{width:22px;height:22px}
  .related-track .product-media .sample-chip.stock-badge{font-size:17px;left:12px;top:12px}
  .related-track .product-media .reservation-status>b{font-size:19px}
  .related-track .product-media .clock-time{font-size:clamp(11px,7.6cqw,24px)}
  .related-track .product-media>.reservation-status{padding:4px 10px;gap:2px}

}

@media(max-width:700px){
  main>.hero:first-child{margin-top:16px}
  .detail-image .product-media>.reservation-status{padding:12px}
  .detail-image .product-media .reservation-status>b{font-size:16px}
  .shop-footer{padding-bottom:90px}

  /* 배너 아래 3열 안내 → 한 줄씩 (제목 | 설명) */
  .reservation-timeline{grid-template-columns:1fr;gap:12px}
  .reservation-timeline>div{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:12px;align-items:baseline}
  .reservation-timeline>div>b{grid-row:span 2}

  /* 정렬: 라벨과 선택상자를 한 줄로 */
  .catalog .section-head{flex-direction:column;gap:12px}
  .section-head .sort{display:flex;align-items:center;gap:8px;align-self:flex-end}
  .sort select{margin-top:0}
}

/* 주문 마감까지 + 타임코드를 한 줄로 (모바일 '함께 보시면' 작은 카드는 폭이 좁아 두 줄 유지) */
.product-media>.reservation-status.attack{flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:.6em;white-space:nowrap}
.product-media>.reservation-status.attack>b{font-size:clamp(10px,5.4cqw,16px)}
.product-media>.reservation-status.attack .attack-clock{width:max-content;flex:none}
.product-media>.reservation-status.attack .clock-time{font-size:clamp(13px,7cqw,22px)}
.detail-image .product-media>.reservation-status.attack>b{font-size:clamp(13px,3.6cqw,20px)}
.detail-image .product-media>.reservation-status.attack .clock-time{font-size:clamp(20px,5.4cqw,32px)}
.detail-image .attack-clock [data-clock-time]{width:auto}
@media(max-width:700px){
  .product-grid:not(.related-track) .product-media>.reservation-status.attack{gap:5px;padding-left:3px;padding-right:3px}
  .product-grid:not(.related-track) .product-media>.reservation-status.attack>b{font-size:10.5px}
  .product-grid:not(.related-track) .product-media>.reservation-status.attack .clock-time{font-size:14px}
  .related-track .product-media>.reservation-status.attack{flex-direction:column;gap:1px}
}

/* ── 2차: 화면 폭과 무관하게 시작선 통일 (콘텐츠 폭 1216px, 최소 여백 28px) ── */
@media(min-width:701px){
  .site-header{max-width:none;margin-left:0;margin-right:0;padding-left:max(28px,calc((100% - 1216px)/2));padding-right:max(28px,calc((100% - 1216px)/2))}
  #app .menu-shell .shopnav,#app .cart-benefit-inner,#app .shop-footer .footer-inner,#app main>*{max-width:none;margin-left:max(28px,calc((100% - 1216px)/2));margin-right:max(28px,calc((100% - 1216px)/2))}
  .menu-shell .shopnav{padding-left:0;padding-right:0}
  #app .cart-benefit-bar,#app .shop-footer{padding-left:0;padding-right:0}
  .about,.legal-page,.branches-page{padding-left:0;padding-right:0}
  .legal-page>*{max-width:900px}
}

/* ── 2차: 카드 정리 ── */
/* 상태 띠: 사진을 가리지 않게 낮추고, 연한 바탕 + 상태색 글자로 */
.product-card .product-media,.detail-image .product-media{grid-template-rows:minmax(0,1fr) auto}
.product-card .product-media>.reservation-status,.detail-image .product-media>.reservation-status{background:color-mix(in srgb,var(--status-color) 12%,#fff);color:color-mix(in srgb,var(--status-color) 85%,#000);padding:11px 10px}
.product-card .product-media>.reservation-status.attack>b{font-size:clamp(10px,4.9cqw,14px)}
.product-card .product-media>.reservation-status.attack .clock-time{font-size:clamp(12px,6.3cqw,19px)}
.product-card .product-media .reservation-status>b{font-size:clamp(11px,5.6cqw,16px)}
#app .product-media>.reservation-status *{color:inherit}

/* 가격 아래 보조 문구는 숨기고, 남는 안내 글자는 읽히는 크기로 */
.product-card:not(.upcoming-card) .price-note{display:none}
.product-card:not(.upcoming-card) .reservation-price{grid-template-rows:28px 39px 0}
.product-card .price-caption{font-size:13px}

/* 하단 행: 구분선·'자세히 보기' 제거, 담기 버튼을 마감일 줄 오른쪽으로 */
.product-grid>.product-card:not(.upcoming-card){grid-template-columns:minmax(0,1fr) auto}
.product-grid>.product-card:not(.upcoming-card)>*,.product-grid>.product-card:not(.upcoming-card) .card-body>*{grid-column:1/-1}
.product-grid>.product-card:not(.upcoming-card) .deadline-line{grid-column:1;grid-row:6;align-self:center;margin:0}
.product-grid>.product-card:not(.upcoming-card) .card-actions{grid-column:2;grid-row:6;border-top:0;padding:0;min-height:0;align-self:center}
.product-grid>.product-card:not(.upcoming-card) .card-actions>a{display:none}
@media(max-width:700px){.product-card:not(.upcoming-card) .reservation-price{grid-template-rows:25px 35px 0}}

/* ── 2026-10-21 핵이득마켓 분석 반영 ── */
/* 메인 주제 진열: 목록 카드와 같은 4열, 제목 줄 오른쪽에 전체보기 */
.theme-shelf{max-width:1216px;margin:55px auto 0}
.theme-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:24px}
.theme-head h2{font-size:30px;letter-spacing:-.6px;margin:0}
.theme-head p{font-size:16.9px;color:var(--muted);margin:8px 0 0}
.theme-more,.theme-reset{background:none;border:1px solid var(--line);border-radius:999px;padding:8px 16px;font:inherit;font-size:15px;color:var(--ink,#1c3025);white-space:nowrap;cursor:pointer}
.theme-more:hover,.theme-reset:hover{border-color:currentColor}
.catalog-count .theme-reset{padding:5px 12px;font-size:14px;margin-right:auto}
/* 상세 생산자·증정 한 줄, 예약함 발송 예정일 */
.detail-producer{margin:2px 0 0;font-size:16px;color:var(--muted)}
.detail-gift{margin:8px 0 0;font-size:16px}
.detail-gift b{color:var(--green,#147c42);margin-right:4px}
.detail-gift span{color:inherit}
.cart-line .cart-ship{font-size:14px;color:var(--muted);margin:2px 0 0}
/* 상품이 적은 판매관 안내 */
.few-items-note{margin-top:28px;padding:16px 18px;border:1px dashed var(--line);border-radius:12px;font-size:16px;color:var(--muted)}
.few-items-note p{margin:0}
.few-items-note a{color:inherit;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){
  .theme-shelf{margin:40px 18px 0}
  .theme-head{align-items:flex-start;margin-bottom:16px}
  .theme-head h2{font-size:22px}
  .theme-head p{font-size:14px}
  .theme-more{padding:6px 12px;font-size:13.5px}
}

/* ── 오픈요청: 마감 상품 다시 열기 ── */
.reopen-teaser{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin-top:36px;padding:18px 20px;border-radius:14px;background:#eef3ee;color:inherit;text-decoration:none}
.reopen-teaser b{font-size:18px}
.reopen-teaser span{color:var(--muted);font-size:15.5px}
.reopen-teaser:hover b{text-decoration:underline;text-underline-offset:3px}
.reopen-head p{line-height:1.7}
.product-card .card-actions>button.reopen-cta{border:0;border-radius:999px;background:#1c3025;color:#fff;padding:9px 16px;font-size:14px;font-weight:700;white-space:nowrap}
.product-card .card-actions>button.reopen-cta:hover{background:#147c42}
.reopen-card .product-media img{filter:grayscale(.35)}
.reopen-box{margin:18px 0;padding:18px 20px;border:1.5px solid #147c42;border-radius:14px;background:#f3f8f3}
.reopen-box h2{font-size:19px;margin:0 0 8px}
.reopen-box p{margin:4px 0;font-size:15.5px;line-height:1.65}
.reopen-box .primary.wide{margin-top:12px}
.reopen-box small{display:block;margin-top:8px;color:var(--muted);font-size:13.5px}
.reopen-box .secondary{margin-top:10px}
.reopen-box .text-button{display:block;margin-top:10px;padding:0;background:none;border:0;font:inherit;font-size:13.5px;color:var(--muted);text-decoration:underline;cursor:pointer}
.reopen-progress{height:10px;border-radius:999px;background:#dfe6dd;overflow:hidden;margin:12px 0 6px}
.reopen-progress span{display:block;height:100%;background:#147c42;border-radius:inherit}
.reopen-box .reopen-progress-label{font-size:14px;color:var(--muted)}
.reopen-terms{margin:12px 0;padding-left:20px;font-size:15px;line-height:1.7}
.reopen-orders{margin:0 0 24px}
.reopen-orders h2{font-size:19px;margin:0 0 8px}
.reopen-order{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.reopen-order img,.reopen-order .photo-pending{width:72px;height:72px;border-radius:10px;object-fit:cover;display:block}
.reopen-order h3{margin:0 0 2px;font-size:17px}
.reopen-order p{margin:0;font-size:15px}
.reopen-order small{color:var(--muted);font-size:13.5px}
@media(max-width:700px){
  .reopen-teaser{margin-top:28px;padding:14px 16px}
  .reopen-teaser b{font-size:16px}
  .reopen-teaser span{font-size:14px}
  main>.reopen-orders{margin-left:18px;margin-right:18px}
  .product-card .card-actions>button.reopen-cta{padding:7px 12px;font-size:13px}
}

/* ── 후기·쿠폰 룰렛 ── */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.reviews{margin-top:56px;padding-top:32px;border-top:1px solid var(--line)}
.reviews-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.reviews-head h2{font-size:28px;margin:0}
.reviews-head h2 span{color:#147c42}
.reviews-head p{margin:8px 0 0;color:var(--muted);font-size:16px}
.reviews-head p b{color:#1c3025}
.reviews-avg{display:flex;align-items:center;gap:8px}
.reviews-avg b{font-size:20px;color:#1c3025}
.stars{color:#e0a100;letter-spacing:1px}
.review-done{font-size:15px;color:#147c42;font-weight:700}
.review-list{list-style:none;margin:20px 0 0;padding:0}
.review-list li{padding:16px 0;border-bottom:1px solid var(--line)}
.review-meta{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--muted)}
.review-list p{margin:6px 0 0;font-size:16px;line-height:1.7;white-space:pre-line}
.reviews .sample-note{margin-top:14px}
.review-form{display:grid;gap:14px}
.review-product{margin:0;color:var(--muted)}
.star-input{border:0;margin:0;padding:0;display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}
.star-input legend{font-size:15px;margin-bottom:6px;float:left;width:100%}
.star-input input{position:absolute;opacity:0;pointer-events:none}
.star-input label{font-size:34px;line-height:1;color:#d9ddd6;cursor:pointer}
.star-input input:checked~label,.star-input label:hover,.star-input label:hover~label{color:#e0a100}
.star-input input:focus-visible+label{outline:2px solid #147c42;outline-offset:2px;border-radius:4px}
.review-text{display:grid;gap:6px;font-size:15px}
.review-text textarea{font:inherit;font-size:16px;padding:12px;border:1px solid var(--line);border-radius:10px;resize:vertical}
.review-text small{justify-self:end;color:var(--muted)}
.coupon-line select{font:inherit;font-size:15px;padding:4px 8px;border:1px solid var(--line);border-radius:8px;max-width:100%}
.coupon-line small{color:var(--muted);font-weight:400}
.coupon-empty{color:var(--muted);font-size:14px}
@media(max-width:700px){
  .reviews{margin:40px 18px 0;padding-top:24px}
  .reviews-head h2{font-size:22px}
}

/* ── 룰렛 2차 디자인: 조명 테두리·금색 바늘·쿠폰 티켓·축하 효과 ── */
#dialog.roulette-dialog{width:min(420px,calc(100vw - 32px));padding:20px 22px 18px;background:linear-gradient(#fff6df 0,#fffdf6 42%,#fff 70%);overflow:hidden}
#dialog.roulette-dialog>h2{text-align:center;font-size:24px;letter-spacing:-.4px;margin:6px 0 0}
.roulette-panel{text-align:center}
.roulette-art{display:block;width:150px;height:150px;object-fit:contain;margin:0 auto -6px;mix-blend-mode:multiply;-webkit-mask-image:radial-gradient(circle,#000 58%,transparent 71%);mask-image:radial-gradient(circle,#000 58%,transparent 71%)}
.roulette-lead{margin:6px 0 0;font-size:15.5px;color:var(--muted);line-height:1.6}
.roulette-lead b{color:#c6302c}
.roulette{position:relative;width:272px;height:272px;margin:16px auto 8px}
.roulette::before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 30% 25%,#2b8f55,#0d4527 72%);box-shadow:0 12px 26px rgba(13,69,39,.35),inset 0 2px 0 rgba(255,255,255,.25)}
.wheel{position:absolute;inset:16px;border-radius:50%;box-shadow:inset 0 0 0 3px rgba(255,255,255,.8),inset 0 -12px 26px rgba(0,0,0,.08);transition:transform 4.6s cubic-bezier(.12,.75,.1,1)}
.wheel-label{position:absolute;left:50%;top:50%;display:grid;justify-items:center;line-height:1.05;font-size:11.5px;font-weight:700;color:#1c3025;transform:translate(-50%,-50%) rotate(var(--a)) translateY(-78px)}
.wheel-label b{font-size:19px;font-weight:900;letter-spacing:-.5px}
.wheel-label.r1{color:#fff3c4;display:flex;align-items:baseline;gap:1px;font-size:9px;transform:translate(-50%,-50%) rotate(var(--a)) translateY(-78px) rotate(-90deg)}
.wheel-label.r1 b{font-size:12px;letter-spacing:-.3px}
.wheel-label.r2{color:#7a3e00;display:flex;align-items:baseline;gap:1px;font-size:10px;transform:translate(-50%,-50%) rotate(var(--a)) translateY(-76px) rotate(-90deg)}
.wheel-label.r2 b{font-size:16px}
.roulette-lights{position:absolute;inset:0;z-index:2;pointer-events:none}
.roulette-lights i{position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px;border-radius:50%;background:#fff1b8;box-shadow:0 0 6px 1px #ffd46b;transform:rotate(calc(var(--k)*22.5deg)) translateY(-128px)}
.roulette.spinning .roulette-lights i{animation:roulette-bulb .36s steps(1) infinite}
.roulette.spinning .roulette-lights i:nth-child(even){animation-delay:-.18s}
.roulette.landed .roulette-lights i{animation:roulette-bulb .5s steps(1) 4}
@keyframes roulette-bulb{50%{background:#8a7a45;box-shadow:none}}
.roulette-pointer{position:absolute;z-index:3;left:50%;top:-8px;width:30px;height:38px;transform:translateX(-50%);background:linear-gradient(#ffe07a,#d98e00);clip-path:polygon(50% 100%,0 0,100% 0);filter:drop-shadow(0 3px 2px rgba(0,0,0,.3))}
.roulette.landed .roulette-pointer{animation:roulette-tick .6s ease-out}
@keyframes roulette-tick{30%{transform:translateX(-50%) rotate(-14deg)}60%{transform:translateX(-50%) rotate(6deg)}}
.wheel-hub{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:68px;border-radius:50%;border:4px solid #fff;background:radial-gradient(circle at 35% 30%,#ffe590,#df9300);color:#5a3200;font:inherit;font-weight:900;font-size:17px;box-shadow:0 4px 12px rgba(0,0,0,.28);cursor:pointer;padding:0}
.wheel-hub:hover{filter:brightness(1.05)}
.roulette.spinning .wheel-hub,.roulette.landed .wheel-hub{cursor:default;filter:none}
.roulette-odds{font-size:13.5px;color:var(--muted);line-height:1.7;margin:6px 0 4px}
.roulette-odds b{color:#1c3025}
.roulette-result:empty{display:none}
.roulette-spin{margin-top:10px}
.roulette-later{display:block;margin:10px auto 0;padding:4px;background:none;border:0;font:inherit;font-size:14px;color:var(--muted);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
/* 당첨 쿠폰 티켓 */
.coupon-ticket{display:grid;grid-template-columns:minmax(0,1fr) auto;max-width:330px;margin:10px auto 0;border-radius:14px;color:#fff;text-align:left;background:linear-gradient(135deg,#1a8a4b,#0d5a30);box-shadow:0 8px 18px rgba(13,90,48,.25);animation:coupon-pop .55s cubic-bezier(.2,1.5,.4,1)}
.coupon-ticket.rank-1{background:linear-gradient(135deg,#dc4436,#8f1d17);box-shadow:0 8px 18px rgba(143,29,23,.3)}
.coupon-ticket.rank-2{background:linear-gradient(135deg,#f2a900,#c26f00);box-shadow:0 8px 18px rgba(194,111,0,.3)}
.coupon-ticket-main{display:grid;gap:1px;padding:14px 16px}
.coupon-rank{font-size:13px;font-weight:800;opacity:.92}
.coupon-ticket-main strong{font-size:32px;font-weight:900;line-height:1.1;letter-spacing:-.6px}
.coupon-ticket-main span:last-child{font-size:14px;opacity:.9}
.coupon-ticket-side{position:relative;display:grid;align-content:center;justify-items:end;padding:14px 16px;border-left:2px dashed rgba(255,255,255,.55);font-size:12.5px}
.coupon-ticket-side b{font-size:15px}
.coupon-ticket-side small{margin-top:4px;padding:1px 7px;border-radius:999px;background:rgba(255,255,255,.2)}
.coupon-ticket-side::before,.coupon-ticket-side::after{content:"";position:absolute;left:-9px;width:16px;height:16px;border-radius:50%;background:#fff}
.coupon-ticket-side::before{top:-8px}
.coupon-ticket-side::after{bottom:-8px}
@keyframes coupon-pop{from{transform:scale(.55) rotate(-4deg);opacity:0}}
/* 축하 종이 조각 */
.confetti{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden}
.confetti i{position:absolute;left:50%;top:46%;width:8px;height:12px;border-radius:2px;animation:confetti var(--d) cubic-bezier(.2,.75,.35,1) forwards}
@keyframes confetti{0%{transform:translate(-50%,0) rotate(0);opacity:1}35%{transform:translate(calc(-50% + var(--x)*.6),var(--y)) rotate(calc(var(--r)*.4));opacity:1}100%{transform:translate(calc(-50% + var(--x)),320px) rotate(var(--r));opacity:0}}
@media(max-width:700px){
  #dialog.roulette-dialog{padding:16px 16px 14px}
  #dialog.roulette-dialog>h2{font-size:21px}
  .roulette-art{width:118px;height:118px}
  .roulette{width:248px;height:248px;margin-top:12px}
  .wheel{inset:15px}
  .wheel-label{transform:translate(-50%,-50%) rotate(var(--a)) translateY(-70px)}
  .wheel-label.r1,.wheel-label.r2{transform:translate(-50%,-50%) rotate(var(--a)) translateY(-68px) rotate(-90deg)}
  .wheel-label.r2 b{font-size:14.5px}
  .wheel-label b{font-size:17px}
  .roulette-lights i{transform:rotate(calc(var(--k)*22.5deg)) translateY(-116.5px)}
  .wheel-hub{width:60px;height:60px;font-size:15px}
}
@media(prefers-reduced-motion:reduce){.wheel{transition:none}.roulette-lights i,.roulette-pointer,.coupon-ticket{animation:none!important}}

/* 상세 상단: 좋아요 옆 카카오톡 공유 */
.detail-tools .kakao-share{background:#fee500;border-color:#fee500;color:#191919}
.detail-tools .kakao-share:hover{background:#f5dc00;border-color:#f5dc00}
.detail-tools .kakao-share svg{width:21px;height:21px}

/* ── 당첨 축하 연출 (3등 가볍게 → 1등 가장 크게) ── */
.celebrate{position:fixed;inset:0;z-index:50;display:grid;place-items:center;overflow:hidden;cursor:pointer;animation:cel-in .3s ease-out}
.celebrate.out{animation:cel-out .42s ease-in forwards}
.celebrate>canvas{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
.celebrate-card{position:relative;z-index:2;text-align:center;padding:0 16px}
#dialog .celebrate-card p{margin:0;color:inherit}
.celebrate.tier-1 .celebrate-card,.celebrate.tier-2 .celebrate-card{color:#fff}
.celebrate-rays,.celebrate-glow{position:absolute;left:50%;top:50%;pointer-events:none;z-index:1}
.celebrate-skip{position:absolute;bottom:28px;left:0;right:0;z-index:4;text-align:center;font-size:13px;color:rgba(255,255,255,.7);animation:cel-fade 1s 1.2s both}
.celebrate-amount{font-weight:900;letter-spacing:-1.5px;line-height:1;font-variant-numeric:tabular-nums}
.celebrate-rank{font-weight:800}
.celebrate-sub{font-weight:600}
/* 3등: 배경 그대로, 배지만 튀어오름 */
.celebrate.tier-3{background:transparent;cursor:default;pointer-events:none}
.celebrate.tier-3 .celebrate-card{padding:16px 26px;border-radius:22px;background:linear-gradient(135deg,#1a8a4b,#0d5a30);color:#fff;box-shadow:0 14px 34px rgba(13,90,48,.35);animation:cel-pop .55s cubic-bezier(.2,1.6,.4,1) both,cel-float 1.5s ease-in-out .5s}
.celebrate.tier-3 .celebrate-rank{font-size:15px;opacity:.9}
#dialog .celebrate.tier-3 .celebrate-amount{font-size:46px;color:#ffe680}
.celebrate.tier-3 .celebrate-sub{font-size:13px;opacity:.85;margin-top:4px}
/* 2등: 반쯤 어둡게, 금빛 광채, BIG WIN */
.celebrate.tier-2{background:radial-gradient(circle at 50% 45%,rgba(70,42,0,.8),rgba(0,0,0,.88) 70%)}
.celebrate.tier-2 .celebrate-glow{width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;background:radial-gradient(circle,rgba(255,215,0,.4),rgba(255,180,0,0) 65%);animation:cel-pulse 1.4s ease-in-out infinite}
.celebrate.tier-2 .celebrate-rays{width:900px;height:900px;margin:-450px 0 0 -450px;background:repeating-conic-gradient(rgba(255,220,120,.16) 0 9deg,transparent 9deg 22.5deg);border-radius:50%;-webkit-mask-image:radial-gradient(circle,#000 20%,transparent 62%);mask-image:radial-gradient(circle,#000 20%,transparent 62%);animation:cel-spin 14s linear infinite}
.celebrate.tier-2 .celebrate-kicker,.celebrate.tier-1 .celebrate-kicker{font-weight:900;letter-spacing:2px;line-height:1.05}
.celebrate-kicker span{background:linear-gradient(180deg,#fff7c8 10%,#ffd23f 50%,#e08b00 90%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 0 #8a4b00) drop-shadow(0 0 14px rgba(255,200,0,.6))}
.celebrate-kicker span{display:inline-block;animation:cel-letter .55s cubic-bezier(.2,1.7,.4,1) both;animation-delay:var(--d)}
.celebrate.tier-2 .celebrate-kicker{font-size:clamp(44px,12vw,84px)}
.celebrate.tier-2 .celebrate-rank{font-size:20px;color:#fff;margin-top:14px;animation:cel-fade .4s .35s both}
.celebrate.tier-2 .celebrate-amount{font-size:clamp(58px,17vw,112px);color:#fff;text-shadow:0 0 24px rgba(255,210,60,.8),0 5px 0 #b06a00;margin-top:6px;animation:cel-fade .3s .45s both}
#dialog .celebrate.tier-2 .celebrate-sub{font-size:16px;color:#ffe9a8;margin-top:12px;animation:cel-fade .4s 1.3s both}
.celebrate.tier-2.hit .celebrate-amount{animation:cel-hit .45s cubic-bezier(.2,1.8,.4,1)}
/* 1등: 완전히 어둡게, 회전 빛줄기, JACKPOT, 흔들림 */
.celebrate.tier-1{background:radial-gradient(circle at 50% 42%,rgba(50,24,0,.93),rgba(0,0,0,.97) 70%)}
.celebrate.tier-1 .celebrate-rays{width:1500px;height:1500px;margin:-750px 0 0 -750px;background:repeating-conic-gradient(rgba(255,214,90,.28) 0 7deg,transparent 7deg 18deg);border-radius:50%;-webkit-mask-image:radial-gradient(circle,#000 12%,transparent 60%);mask-image:radial-gradient(circle,#000 12%,transparent 60%);animation:cel-spin 9s linear infinite,cel-appear .8s both}
.celebrate.tier-1 .celebrate-glow{width:640px;height:640px;margin:-320px 0 0 -320px;border-radius:50%;background:radial-gradient(circle,rgba(255,220,110,.55),rgba(255,170,0,.18) 40%,transparent 68%);animation:cel-pulse 1.1s ease-in-out infinite}
.celebrate.tier-1 .celebrate-kicker{font-size:clamp(52px,15vw,124px)}
.celebrate.tier-1 .celebrate-rank{font-size:22px;color:#fff;margin-top:16px;animation:cel-fade .4s .7s both}
#dialog .celebrate.tier-1 .celebrate-amount{font-size:clamp(70px,21vw,150px);background:linear-gradient(180deg,#ffffff 0,#fff1a8 35%,#ffc400 65%,#ff9d00 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 6px 0 #9a5200) drop-shadow(0 0 30px rgba(255,200,0,.75));margin-top:6px;animation:cel-fade .3s .8s both}
#dialog .celebrate.tier-1 .celebrate-sub{font-size:18px;color:#ffe9a8;margin-top:14px;animation:cel-fade .4s 2.3s both}
.celebrate.tier-1.hit .celebrate-amount{animation:cel-hit .6s cubic-bezier(.2,1.9,.4,1)}
.celebrate.tier-1.hit .celebrate-glow{animation:cel-flash .6s ease-out,cel-pulse 1.1s .6s ease-in-out infinite}
.celebrate-stage{position:absolute;inset:0;display:grid;place-items:center}
.celebrate-stage.shake{animation:cel-shake .6s cubic-bezier(.36,.07,.19,.97)}
.celebrate-demo{position:fixed;right:16px;bottom:96px;z-index:30;display:grid;gap:6px;padding:12px;border-radius:14px;background:#1c3025;color:#fff;font-size:13px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.celebrate-demo button{border:0;border-radius:999px;padding:8px 14px;background:#ffd23f;color:#3a2400;font:inherit;font-weight:800;cursor:pointer}
@keyframes cel-in{from{opacity:0}}
@keyframes cel-appear{from{opacity:0}}
@keyframes cel-out{to{opacity:0;transform:scale(1.04)}}
@keyframes cel-fade{from{opacity:0;transform:translateY(10px)}}
@keyframes cel-pop{from{opacity:0;transform:scale(.4)}}
@keyframes cel-float{to{transform:translateY(-26px)}}
@keyframes cel-letter{from{opacity:0;transform:translateY(40px) scale(.3) rotate(-12deg)}}
@keyframes cel-spin{to{transform:rotate(360deg)}}
@keyframes cel-pulse{50%{transform:scale(1.12);opacity:.8}}
@keyframes cel-flash{0%{transform:scale(1.8);opacity:1}100%{transform:scale(1);opacity:.9}}
@keyframes cel-hit{0%{transform:scale(1)}40%{transform:scale(1.28)}100%{transform:scale(1)}}
@keyframes cel-shake{10%,90%{transform:translate(-2px,1px)}20%,80%{transform:translate(4px,-2px)}30%,50%,70%{transform:translate(-7px,3px)}40%,60%{transform:translate(7px,-3px)}}
@media(max-width:700px){.celebrate-demo{right:12px;bottom:86px}}

/* 타임어택 일:시:분:초:소수초 — 카드 폭이 좁으면 '주문 마감까지'와 시간을 두 줄로, 시간 글자는 카드 폭에 맞춤 */
@container (max-width:250px){
  #app .product-media>.reservation-status.attack{flex-direction:column;flex-wrap:nowrap;gap:1px;padding:6px 4px}
  #app .product-media>.reservation-status.attack>b{font-size:clamp(9px,6.4cqw,12px)}
  #app .product-media>.reservation-status.attack .clock-time{font-size:clamp(8.5px,8.6cqw,16px)}
}
