/* 쇼부카지노 시안 - 이벤트 목록(/promotions)과 이벤트 상세(/promotions/*) 전용. 접두어 pm- */
/* site.css 의 --leaf·--gold-btn 은 상대 주소라 p/ 폴더에서 쓰면 그림 주소가 어긋난다. 같은 재질을 절대 주소로 다시 둔다. */
:root {
  --pm-leaf: url(/assets/img/goldleaf.webp);
  --pm-gold: linear-gradient(180deg, rgba(250, 233, 180, .9) 0%, rgba(229, 196, 124, .86) 42%, rgba(198, 154, 78, .88) 70%, rgba(160, 114, 44, .92) 100%), url(/assets/img/goldleaf-soft.webp) 50% 50% / 720px auto;
}

/* ───────── 딱지 ───────── */
.pm-st-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 3px rgba(246, 226, 164, .18); animation: blink 1.6s infinite; }
.pm-st-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.1s infinite; }

/* ───────── 이벤트 카드 ───────── */
.pm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.pm-item { min-width: 0; }
.pm-item.pm-in { animation: pmIn .6s var(--ease) both; }
@keyframes pmIn { from { opacity: 0; transform: translateY(14px); } }
.pm-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .35s, transform .5s var(--ease); }
.pm-card:hover, .pm-card:focus-visible { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(246, 226, 164, .55), 0 26px 50px -26px rgba(217, 177, 101, .55); }
.pm-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; background: var(--ink); }
.pm-card-img img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; transition: transform 1s var(--ease); }
.pm-card:hover .pm-card-img img { transform: scale(1.05); }
.pm-card-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 6, 4, .9) 0%, rgba(8, 6, 4, .55) 46%, rgba(8, 6, 4, 0) 78%), linear-gradient(0deg, rgba(8, 6, 4, .92) 0%, rgba(8, 6, 4, .3) 44%, rgba(8, 6, 4, 0) 64%); }
.pm-card-img .pm-st { position: absolute; left: 16px; top: 16px; height: 26px; padding: 0 10px; }
.pm-card-img .bdg-line { background: rgba(8, 6, 4, .66); color: var(--ivory); }
.pm-card-img .pm-st-live { background: linear-gradient(rgba(217, 177, 101, .18), rgba(217, 177, 101, .18)), rgba(8, 6, 4, .72); box-shadow: inset 0 0 0 1px var(--line-2); }
.pm-card-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-start; }
.pm-card-k { font: 600 12.5px/1 var(--sans); letter-spacing: .02em; color: var(--champagne); opacity: .9; }
.pm-card-t { margin-top: 8px; font: 700 clamp(22px, 1.8vw, 26px)/1.2 var(--serif); letter-spacing: -.035em; color: var(--ivory); text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.pm-card-gain { max-width: 100%; margin-top: 7px; font: 800 16.5px/1.35 var(--serif); letter-spacing: -.02em; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)); }
.pm-card-ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 15px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pm-card-when { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--ivory-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pm-card-when svg, .pm-card-go svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pm-card-when svg { color: var(--gold); }
.pm-card-go { flex: none; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--gold); transition: gap .3s var(--ease), color .2s; }
.pm-card:hover .pm-card-go { gap: 9px; color: var(--gold-hi); }

/* 목록: 4칸 격자, 앞의 두 장은 두 칸을 차지하는 큰 카드 */
.pm-main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
.pm-main .pm-item.pm-feat { grid-column: span 2; }
.pm-main .pm-feat .pm-card-img { aspect-ratio: 16 / 8.2; }
.pm-main .pm-feat .pm-card-cap { left: 26px; bottom: 22px; }
.pm-main .pm-feat .pm-card-t { font-size: clamp(26px, 2.2vw, 32px); }
.pm-main .pm-feat .pm-card-gain { font-size: clamp(18px, 1.5vw, 21px); }
.pm-main .pm-feat .pm-card-ft { padding-inline: 26px; }
.pm-main .pm-item:not(.pm-feat) .pm-card-t { font-size: 21px; }
.pm-main .pm-item:not(.pm-feat) .pm-card-gain { font-size: 15px; }
.pm-main .pm-item:not(.pm-feat) .pm-card-cap { left: 18px; right: 16px; bottom: 16px; }
.pm-main .pm-item:not(.pm-feat) .pm-card-ft { padding-inline: 18px; font-size: 13px; }
.pm-main .pm-item:not(.pm-feat) .pm-card-img .pm-st { left: 14px; top: 14px; }

/* 목록 위 도구 줄 */
.pm-count { margin: 0; font-size: 14px; color: var(--ivory-3); white-space: nowrap; }
.pm-count b { font: 800 20px/1 var(--serif); color: var(--gold-hi); margin-right: 2px; }
.pm-bar { margin-bottom: 20px; }
.pm-bar .chips { max-width: 100%; }

/* 매일 챙기는 혜택 */
.pm-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pm-q { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .3s; }
.pm-q:hover, .pm-q:focus-visible { box-shadow: inset 0 0 0 1px rgba(246, 226, 164, .55); }
.pm-q-i { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(246, 226, 164, .2), rgba(217, 177, 101, .05) 70%); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--gold-hi); }
.pm-q-i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pm-q-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pm-q-tx b { font: 700 17px/1.3 var(--serif); letter-spacing: -.03em; color: var(--ivory); }
.pm-q-tx small { font-size: 13px; color: var(--ivory-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-q > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.pm-q:hover > svg { transform: translateX(3px); }

/* 공통 안내·유의사항 */
.pm-notes { padding: 4px 24px; }
.pm-notes details.acc:last-child { border-bottom: 0; }

/* ───────── 상세: 큰 머리 ───────── */
.pm-hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pm-hero-tags .bdg { height: 26px; padding: 0 10px; }
.pm-hero-tags .bdg-line { background: rgba(8, 6, 4, .5); color: var(--ivory); }
.pm-hero-kind { font: 600 13.5px/1 var(--sans); color: var(--champagne); }
.pm-hero .ph-t { font-size: clamp(30px, 2.9vw, 42px); color: var(--ivory); }
.pm-gain { margin: 10px 0 0; text-wrap: balance; font: 900 clamp(32px, 3.5vw, 52px)/1.16 var(--serif); letter-spacing: -.035em; filter: drop-shadow(0 2px 0 rgba(40, 24, 6, .5)) drop-shadow(0 10px 26px rgba(0, 0, 0, .55)); animation: pmSheen 7s var(--ease) 1s infinite; }
@keyframes pmSheen { 0% { background-position: 160% 0, 0 0, 30% 40%; } 32%, 100% { background-position: -60% 0, 0 0, 30% 40%; } }
.pm-hero .ph-d { margin-top: 12px; }
.pm-stats dd { font-size: 21px; }
.pm-stats [data-pm-until] { font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.pm-join.is-done { background: rgba(217, 177, 101, .14); border-color: var(--line-2); color: var(--gold-hi); text-shadow: none; box-shadow: none; }
.pm-join.is-done::before { content: ""; width: 14px; height: 8px; margin-top: -4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }

/* 혜택 숫자 칸 */
.pm-tiles { --cols: 4; }
.pm-tiles .tile { position: relative; overflow: hidden; }
.pm-tiles .tile dd { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 2.2vw, 32px); }
.pm-tiles .tile.hl { background: radial-gradient(ellipse 90% 120% at 100% 0%, rgba(217, 177, 101, .16), transparent 60%), linear-gradient(180deg, var(--ink-2), var(--ink)); }
.pm-tiles .tile.hl dd { background-image: linear-gradient(180deg, rgba(255, 244, 205, .45) 0%, rgba(255, 236, 170, 0) 42%, rgba(96, 60, 14, .38) 100%), var(--pm-leaf); background-size: 100% 100%, 420px auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold); }

/* 참여 방법: 번호 동그라미가 줄로 이어진다 */
.pm-how { padding: 32px 30px 30px; }
.pm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.pm-steps li { position: relative; min-width: 0; }
.pm-steps li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 72px; right: -14px; height: 1px; background: linear-gradient(90deg, rgba(217, 177, 101, .75), rgba(217, 177, 101, .12)); }
.pm-steps li:not(:last-child)::before { content: ""; position: absolute; top: 23px; right: -14px; width: 8px; height: 8px; border-top: 1px solid rgba(217, 177, 101, .5); border-right: 1px solid rgba(217, 177, 101, .5); transform: rotate(45deg); }
.pm-step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--pm-gold); color: #1d1408; font: 900 23px/1 var(--serif); box-shadow: inset 0 1px 0 rgba(255, 250, 230, .75), inset 0 -2px 0 rgba(80, 50, 10, .35), 0 0 0 6px rgba(217, 177, 101, .1), 0 12px 26px -12px rgba(217, 177, 101, .8); }
.pm-steps b { display: block; margin-top: 18px; font: 700 19px/1.35 var(--serif); letter-spacing: -.03em; color: var(--ivory); }
.pm-steps p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ivory-2); }

/* 지급 조건 + 예시 계산 */
.pm-split { align-items: stretch; }
.pm-split .dt-wrap { align-self: start; }
.pm-cond td { font-size: 14.5px; }
.pm-td-k { font-weight: 600; color: var(--champagne); }
.pm-cond tbody tr:first-child td { background: rgba(217, 177, 101, .035); }
.pm-calc { display: flex; flex-direction: column; }
.pm-calc .box-hd { margin-bottom: 8px; }
.pm-calc-q { margin: 0 0 14px; font: 600 15px/1.5 var(--sans); color: var(--ivory-2); }
.pm-calc-l { margin: 0; padding: 0; list-style: none; }
.pm-calc-l li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(217, 177, 101, .16); font-size: 14px; }
.pm-calc-l span { color: var(--ivory-3); }
.pm-calc-l b { flex: none; font-weight: 700; color: var(--ivory); font-variant-numeric: tabular-nums; }
.pm-calc-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.pm-calc-r span { font: 600 14.5px/1.3 var(--sans); color: var(--champagne); }
.pm-calc-r b { font: 900 clamp(26px, 2.4vw, 32px)/1.1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* 참여 띠 */
.pm-band { position: relative; display: flex; align-items: center; gap: 26px; overflow: hidden; isolation: isolate; padding: 30px 34px; border-radius: 16px; background: radial-gradient(ellipse 70% 140% at 0% 50%, rgba(217, 177, 101, .2), transparent 60%), linear-gradient(120deg, #1d160e, #110d08 60%, #1a120a); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 60px -24px rgba(217, 177, 101, .45); }
.pm-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/img/goldleaf-soft.webp) 50% 50% / 900px auto; opacity: .07; mix-blend-mode: screen; }
.pm-band-seal { flex: none; width: 84px; height: 84px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); animation: pmSeal 6s ease-in-out infinite; }
@keyframes pmSeal { 50% { transform: rotate(-6deg) scale(1.04); } }
.pm-band-tx { flex: 1; min-width: 0; }
.pm-band-t { margin: 0; font: 700 clamp(22px, 2vw, 28px)/1.3 var(--serif); letter-spacing: -.035em; color: var(--ivory); }
.pm-band-tx p { margin: 6px 0 0; font-size: 14.5px; color: var(--ivory-2); }
.pm-band-act { flex: none; }

/* 다른 이벤트 줄 */
.pm-more { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pm-card.sm .pm-card-cap { left: 16px; right: 16px; bottom: 14px; }
.pm-card.sm .pm-card-t { font-size: 20px; }
.pm-card.sm .pm-card-gain { font-size: 14.5px; }
.pm-card.sm .pm-card-img .pm-st { left: 12px; top: 12px; }
.pm-card.sm .pm-card-ft { padding: 12px 16px 13px; font-size: 13px; }

/* ───────── 반응형 ───────── */
@media (max-width: 1240px) {
  .pm-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .pm-cards, .pm-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-main .pm-feat .pm-card-img { aspect-ratio: 16 / 7; }
  .pm-tiles { --cols: 2; }
  .pm-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pm-cards, .pm-main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pm-main .pm-item.pm-feat { grid-column: auto; }
  .pm-main .pm-feat .pm-card-img { aspect-ratio: 16 / 10; }
  .pm-card-cap, .pm-main .pm-feat .pm-card-cap, .pm-main .pm-item:not(.pm-feat) .pm-card-cap { left: 16px; right: 16px; bottom: 14px; }
  .pm-card-t, .pm-main .pm-feat .pm-card-t, .pm-main .pm-item:not(.pm-feat) .pm-card-t { font-size: 22px; }
  .pm-card-gain, .pm-main .pm-feat .pm-card-gain, .pm-main .pm-item:not(.pm-feat) .pm-card-gain { font-size: 15.5px; }
  .pm-card-ft, .pm-main .pm-feat .pm-card-ft, .pm-main .pm-item:not(.pm-feat) .pm-card-ft { padding: 12px 16px 13px; font-size: 13px; }
  .pm-bar .chips { margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); max-width: none; width: calc(100% + 2 * var(--gut)); }
  .pm-quick { gap: 10px; }
  .pm-q { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 16px 14px; }
  .pm-q-i { width: 42px; height: 42px; }
  .pm-q-i svg { width: 21px; height: 21px; }
  .pm-q-tx b { font-size: 16px; }
  .pm-q-tx small { font-size: 12.5px; white-space: normal; }
  .pm-q > svg { display: none; }
  .pm-notes { padding: 0 16px; }

  .pm-hero .ph-t { font-size: clamp(26px, 7.2vw, 32px); }
  .pm-gain { font-size: clamp(27px, 7.6vw, 34px); }
  .pm-hero .ph-act .btn { flex: 1 1 0; padding: 0 12px; }
  .pm-stats { gap: 12px 20px; }
  .pm-stats dd { font-size: 17px; }
  .pm-tiles .tile dd { font-size: 23px; }
  .pm-how { padding: 22px 18px 4px; }
  .pm-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pm-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding-bottom: 22px; }
  .pm-step-n { grid-row: span 2; width: 44px; height: 44px; font-size: 19px; box-shadow: inset 0 1px 0 rgba(255, 250, 230, .75), 0 0 0 5px rgba(217, 177, 101, .1); }
  .pm-steps b { margin-top: 10px; font-size: 17.5px; }
  .pm-steps p { margin-top: 4px; font-size: 14px; }
  .pm-steps li:not(:last-child)::after { top: 54px; bottom: 4px; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(217, 177, 101, .7), rgba(217, 177, 101, .1)); }
  .pm-steps li:not(:last-child)::before { display: none; }
  .pm-calc-r b { font-size: 28px; }
  .pm-band { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 20px; }
  .pm-band-seal { width: 60px; height: 60px; }
  .pm-band-act, .pm-band-act .btn { width: 100%; }
  .pm-more { display: flex; gap: 12px; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .pm-more::-webkit-scrollbar { display: none; }
  .pm-more .pm-item { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ───────── 대표 이벤트 5종: 글씨가 들어 있는 세로 포스터(9:16)를 한 장씩 보여 주는 카드 ───────── */
.pm-cards.pm-reps { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.pm-reps .pm-item { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
.pm-rcard { min-width: 0; }
.pm-rimg { display: block; aspect-ratio: 941 / 1672; overflow: hidden; background: var(--ink); }
.pm-rimg img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pm-rcard:hover .pm-rimg img, .pm-rcard:focus-visible .pm-rimg img { transform: scale(1.03); }
.pm-rbody { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 0; }
.pm-rtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-rtop .bdg { height: 24px; padding: 0 9px; }
.pm-rt { margin-top: 2px; font: 700 clamp(20px, 1.6vw, 23px)/1.3 var(--serif); letter-spacing: -.035em; color: var(--ivory); }
.pm-rs { font: 700 15px/1.45 var(--serif); letter-spacing: -.02em; color: var(--champagne); }
.pm-rft { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto -20px 0; padding: 13px 20px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pm-rft .pm-card-when { min-width: 0; }
.pm-more .pm-rbody { padding: 14px 16px 0; }
.pm-more .pm-rft { margin-inline: -16px; padding-inline: 16px; }
.pm-more .pm-rt { font-size: 18px; }

/* 대표 이벤트 상세: 왼쪽 글, 오른쪽 세로 포스터 한 장(전체가 보이게) */
.pm-rhero .crumbs { margin-bottom: 18px; }
.pm-rgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pm-rtext { min-width: 0; }
.pm-rhero .pm-gain { font-size: clamp(26px, 2.6vw, 38px); animation: none; }
.pm-rhero .ph-t { font-size: clamp(28px, 2.7vw, 40px); }
.pm-rhero .ph-d { margin-top: 12px; }
.pm-banner { justify-self: center; width: 100%; margin: 0; min-width: 0; border-radius: 16px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 34px 70px -34px rgba(217, 177, 101, .55); }
.pm-banner img { display: block; width: 100%; height: auto; aspect-ratio: 941 / 1672; object-fit: cover; }
@media (max-width: 1100px) {
  .pm-reps .pm-item { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 1024px) {
  .pm-rgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pm-banner { order: -1; max-width: 440px; }
}
@media (max-width: 760px) {
  .pm-cards.pm-reps { gap: 16px; }
  .pm-reps .pm-item { flex-basis: 100%; }
  .pm-rbody { padding: 14px 16px 0; }
  .pm-rft { margin-inline: -16px; padding-inline: 16px; }
  .pm-rt { font-size: 21px; }
  .pm-rs { font-size: 15px; }
  .pm-rhero .pm-gain { font-size: clamp(25px, 7vw, 32px); }
  .pm-rhero .ph-t { font-size: clamp(26px, 7.2vw, 32px); }
  .pm-rhero .ph-act .btn { flex: 1 1 0; padding: 0 12px; }
  .pm-banner { max-width: 100%; }
  .pm-more .pm-rbody { padding: 12px 14px 0; }
  .pm-more .pm-rft { margin-inline: -14px; padding-inline: 14px; }
}

/* ───────── 실연동(promo.js) ─────────
   서버 메뉴 설정으로 꺼 둔 화면(퀘스트 등)의 빠른 링크가 빠져 3개만 남으면 남은 칸이 폭을 나눠 쓴다(PC 폭에서만. 좁은 폭은 위의 2칸·1칸 규칙을 따른다). */
@media (min-width: 1101px) {
  .pm-quick.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 서버에 근거가 없어 실연동에서 본문을 숨긴 이벤트의 안내 상자(공통 .sb-note). 머리 글이 숨는 대신 이 제목이 쪽의 제목이 된다 */
.pm-off { margin-top: 36px; }

/* ───────── 서버 이벤트(promo-live.js) ─────────
   관리자가 사이트에 올린 이벤트는 정적 목록 뒤에 같은 카드 모양으로 덧붙고(.pm-srv), 상세는 /promotions/view?slug= 한 쪽이 서버 내용으로 그린다(.pm-v*).
   서버 글은 길이가 정해져 있지 않으므로 카드 글은 줄을 잘라 보이고, 상세 글은 줄바꿈을 살려(pre-line) 넘치지 않게 한다. */
.pm-srv .pm-card-img img { object-position: 50% 50%; }
.pm-srv .pm-card-t, .pm-srv .pm-card-gain { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; }
.pm-srv .pm-card-img .pm-st { max-width: calc(100% - 28px); }
.pm-st-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-hero-tags .bdg, .pm-vbar-tx .bdg { max-width: 100%; }
.pm-srv .pm-card-k { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-vtext { white-space: pre-line; overflow-wrap: anywhere; }
.pm-vhero .pm-gain { font-size: clamp(22px, 2.5vw, 34px); overflow-wrap: anywhere; }
.pm-vhero .pm-stats div { min-width: 0; max-width: 100%; }
.pm-vhero .pm-stats dd { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }

/* 상단 그림만 있는 이벤트: 그림은 폭을 채우고 PC 는 3:1 로 맞춘다(zxc 와 같다). 그 아래 한 줄에 상태·기간·단추 */
.pm-vbanner .crumbs { margin-bottom: 18px; }
.pm-vh { margin: 0; overflow: hidden; border-radius: 16px; background: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 34px 70px -34px rgba(217, 177, 101, .45); }
.pm-vh img { display: block; width: 100%; height: auto; }
@media (min-width: 641px) { .pm-vh img { aspect-ratio: 3 / 1; object-fit: cover; } }
.pm-vbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 18px; }
.pm-vbar-tx { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
.pm-vbar-tx .bdg { height: 26px; padding: 0 10px; }
.pm-vbar-tx .pm-card-when { font-size: 14px; }
.pm-vbar .ph-act { margin-top: 0; }

/* 내용 그림: 올린 순서대로 폭을 채워 이어 붙인다 */
.pm-vimgs { display: flex; flex-direction: column; gap: 12px; max-width: 1090px; margin-inline: auto; }
.pm-vimgs img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--ink); box-shadow: 0 0 0 1px var(--line); }

/* 혜택 안내: 상세 소개 문단 + 대상·혜택·기간 */
.pm-vintro { padding: 26px 28px; }
.pm-vintro .pm-vtext { margin: 0; font-size: 15.5px; line-height: 1.85; color: var(--ivory-2); }
.pm-vfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.pm-vintro .pm-vtext + .pm-vfacts { margin-top: 22px; padding-top: 22px; border-top: 1px dashed rgba(217, 177, 101, .22); }
.pm-vfacts div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-vfacts dt { font: 600 13px/1.2 var(--sans); color: var(--gold); }
.pm-vfacts dd { margin: 0; font: 600 15.5px/1.6 var(--sans); color: var(--ivory); overflow-wrap: anywhere; }

/* 참여 방법: 단계 수·글 길이가 정해져 있지 않아 세로로 잇는다 */
.pm-steps.pm-vsteps { grid-template-columns: minmax(0, 1fr); gap: 0; }
.pm-vsteps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; padding-bottom: 22px; }
.pm-vsteps li:last-child { padding-bottom: 0; }
.pm-steps.pm-vsteps .pm-step-n { grid-row: auto; width: 44px; height: 44px; font-size: 19px; box-shadow: inset 0 1px 0 rgba(255, 250, 230, .75), 0 0 0 5px rgba(217, 177, 101, .1); }
.pm-vsteps p { margin: 0; padding-top: 9px; font-size: 15px; line-height: 1.75; color: var(--ivory-2); white-space: pre-line; overflow-wrap: anywhere; }
.pm-steps.pm-vsteps li:not(:last-child)::after { top: 54px; bottom: 4px; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(217, 177, 101, .7), rgba(217, 177, 101, .1)); }
.pm-steps.pm-vsteps li:not(:last-child)::before { display: none; }

/* 유의사항 */
.pm-vterms { padding: 6px 26px; }
.pm-vterms ul { margin: 0; padding: 0; list-style: none; }
.pm-vterms li { position: relative; padding: 13px 0 13px 18px; border-bottom: 1px dashed rgba(217, 177, 101, .16); font-size: 14.5px; line-height: 1.75; color: var(--ivory-2); white-space: pre-line; overflow-wrap: anywhere; }
.pm-vterms li:last-child { border-bottom: 0; }
.pm-vterms li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .85; }

@media (max-width: 900px) {
  .pm-vfacts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 760px) {
  .pm-vhero .pm-gain { font-size: clamp(21px, 6vw, 26px); }
  .pm-vbar { align-items: stretch; }
  .pm-vbar .ph-act, .pm-vbar .ph-act .btn { width: 100%; }
  .pm-vintro { padding: 20px 18px; }
  .pm-vintro .pm-vtext { font-size: 14.5px; }
  .pm-vterms { padding: 2px 16px; }
  .pm-vsteps p { font-size: 14px; padding-top: 10px; }
}
