/* 쿠폰짤 zzal.css — 빨간 포스터 톤, 지마켓 산스 제목 + 스포카 본문 */
@font-face { font-family: "Gmarket Sans"; src: url("../fonts/gmarket-bold.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Spoqa Han Sans Neo"; src: url("../fonts/spoqa-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spoqa Han Sans Neo"; src: url("../fonts/spoqa-500.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Spoqa Han Sans Neo"; src: url("../fonts/spoqa-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
:root {
  --rust: #c8102e;
  --rust-d: #a00c24;
  --brown: #2b0c11;
  --ink: #1f1013;
  --ink2: #4a2c31;
  --mute: #6e5157;
  --line: #f2dde0;
  --perf: #e8b2ba;
  --tint: #fcedef;
  --head: "Gmarket Sans", "Spoqa Han Sans Neo", sans-serif;
  --body: "Spoqa Han Sans Neo", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: #fff; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.78; word-break: keep-all; overflow-wrap: anywhere; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; width: 100%; }
h1, h2 { font-family: var(--head); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 800; line-height: 1.4; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.hide-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cnt { max-width: 1128px; margin: 0 auto; padding: 0 24px; }
.cnt.narrow > * { max-width: 780px; }

.b { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 6px; border: 2px solid var(--rust); font-family: var(--body); font-size: 16px; font-weight: 800; line-height: 1.3; text-align: center; cursor: pointer; }
.b-main { background: var(--rust); color: #fff; }
.b-main:hover { background: var(--rust-d); border-color: var(--rust-d); }
.b-out { background: #fff; color: var(--rust); }
.b-out:hover { background: var(--tint); }
.b-sm { min-height: 40px; padding: 6px 14px; font-size: 15px; }
.tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 6px 10px; border-radius: 6px; background: var(--brown); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.tx-lk { color: var(--rust); font-weight: 800; text-decoration: underline; }

/* 머리 */
.hd { background: #fff; border-bottom: 4px solid var(--rust); }
.hd-inner { display: flex; align-items: center; gap: 30px; height: 72px; }
.lg { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 26px; white-space: nowrap; color: var(--brown); }
.lg-mark { width: 32px; height: 32px; }
.lg-mark .lm-ticket { fill: var(--rust); }
.lg-mark .lm-perf { stroke: #fff; stroke-width: 2; stroke-dasharray: 2.5 2.5; fill: none; }
.gn { margin-left: auto; }
.gn ul { display: flex; gap: 28px; }
.gn a { font-weight: 600; }
.gn a:hover, .gn a[aria-current="page"] { color: var(--rust); }
.gn a[aria-current="page"] { font-weight: 800; }
.gn-shop { display: none; }
.hd-shop { font-weight: 800; color: var(--rust); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.gn-btn { display: none; height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--brown); color: #fff; font-family: var(--body); font-size: 15px; font-weight: 800; cursor: pointer; }

/* 포스터 띠 */
.poster { background: var(--rust); color: #fff; padding: 64px 0 56px; }
.poster h1 { white-space: nowrap; font-size: clamp(38px, 9.4vw, 108px); line-height: 1; }
.poster-ld { margin-top: 22px; max-width: 34em; font-size: 18px; color: #ffe6e9; }
.poster-pts { display: flex; flex-wrap: wrap; gap: 10px 44px; margin-top: 30px; padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .3); }
.poster-pts li { color: #ffe6e9; }
.poster-pts strong { display: block; font-family: var(--head); font-weight: 400; font-size: 32px; line-height: 1.2; color: #fff; }

.sc { padding: 76px 0; }
.sc h2, .tx-bl h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 22px; }
.sc.soft { background: var(--tint); }
.sc.inv { background: var(--brown); color: #f8e9eb; }
.sc.inv h2 { color: #fff; }
.para { margin-top: 14px; color: var(--ink2); max-width: 66ch; }

/* 쿠폰: 가로 티켓 */
.tk-cards { display: grid; gap: 0; }
.tk-card { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: center; padding: 26px 0; border-bottom: 3px dashed var(--perf); }
.tk-card:first-child { padding-top: 0; }
.tk-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.tk-body h3 { order: 2; }
.tk-body { display: flex; flex-direction: column; }
.tk-rate { order: 1; font-family: var(--head); font-size: 48px; line-height: 1.1; color: var(--rust); }
.tk-brief { order: 3; color: var(--mute); }
.tk-body .b { order: 4; margin-top: 14px; align-self: flex-start; }
.tb-scroll { overflow-x: auto; }
.tk-tb th, .tk-tb td { padding: 14px 10px; text-align: left; border-bottom: 2px solid var(--line); }
.tk-tb thead th { font-size: 14px; color: var(--mute); }
.ct-rate { color: var(--rust); font-weight: 800; white-space: nowrap; }
.ct-go { text-align: right; white-space: nowrap; width: 1%; }
.tk-numbered li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 3px dashed var(--perf); }
.cn-no { font-family: var(--head); font-size: 34px; color: var(--rust); }
.cn-brief { color: var(--mute); font-size: 15px; }

/* 글 */
.tx-bl + .tx-bl { margin-top: 56px; }
.plain-ls { margin-top: 12px; max-width: 66ch; }
.plain-ls li { padding: 8px 0 8px 22px; position: relative; color: var(--ink2); }
.plain-ls li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; background: var(--rust); border-radius: 2px; }
.stp-ls { margin-top: 12px; max-width: 66ch; counter-reset: k; }
.stp-ls li { counter-increment: k; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 6px 0; color: var(--ink2); }
.stp-ls li::before { content: counter(k); font-family: var(--head); color: var(--rust); font-size: 20px; }
.inf-tb { margin-top: 14px; font-variant-numeric: tabular-nums; }
.inf-tb th, .inf-tb td { padding: 12px 10px; text-align: left; border-bottom: 2px solid var(--line); overflow-wrap: normal; }
.inf-tb thead th { font-size: 14px; color: var(--rust); font-weight: 800; border-bottom: 3px solid var(--rust); }
.cal-tb th, .cal-tb td:last-child { white-space: nowrap; }

.stp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stp-no { display: block; font-family: var(--head); font-size: 60px; line-height: 1; color: var(--rust); }
.stp h3 { margin-top: 10px; }
.stp p { margin-top: 4px; color: var(--ink2); font-size: 16px; }
.chk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.chk li { padding: 16px 0; border-top: 2px solid var(--line); }
.chk p { color: var(--ink2); }
.inv .chk li { border-top-color: #4f2329; }
.inv .chk p { color: #e8d0d4; }

.q-ls { counter-reset: q; }
.q { counter-increment: q; position: relative; padding: 20px 0 20px 60px; border-bottom: 2px solid var(--line); }
.q::before { content: "Q" counter(q); position: absolute; left: 0; top: 18px; font-family: var(--head); font-size: 26px; color: var(--rust); }
.q p { margin-top: 6px; color: var(--ink2); }

.lk-rw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.lk-rw a { display: block; padding: 18px 0; border-bottom: 3px dashed var(--perf); }
.lk-rw strong { display: block; font-size: 20px; font-weight: 800; }
.lk-rw span { color: var(--mute); }
.lk-rw a:hover strong { color: var(--rust); }

/* 메뉴 페이지 */
.path { padding-top: 20px; font-size: 15px; color: var(--mute); }
.path a { text-decoration: underline; text-underline-offset: 3px; }
.pg-head { padding: 28px 0 40px; }
.pg-head h1 { font-size: clamp(34px, 6vw, 64px); color: var(--rust); }
.pg-ld { margin-top: 14px; max-width: 40em; font-size: 19px; color: var(--ink2); }
.pg-actions { margin-top: 22px; }
.sc-coupons, .sc-table, .sc-steps, .sc-faq, .sc-checklist { padding: 44px 0; }
.gd-tx { padding-top: 40px; }
.mr-tx { padding-top: 0; }
.cta-strip { background: var(--rust); color: #fff; padding: 48px 0; }
.cta-strip .cnt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-strip p { font-family: var(--head); font-size: 26px; line-height: 1.3; }
.cta-strip .b-main { background: #fff; color: var(--rust); border-color: #fff; }
.mr-menu { padding: 56px 0 72px; }
.mr-menu h2 { font-size: 24px; margin-bottom: 12px; }
.mr-menu ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.mr-menu a { font-weight: 800; color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }

/* 쿠폰 상세 */
.dt-poster { padding: 24px 0 56px; }
.dt-poster-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.dt-poster h1 { font-size: clamp(32px, 4.6vw, 54px); }
.dt-amount { margin-top: 12px; font-family: var(--head); font-size: 34px; color: var(--rust); }
.dt-sum { margin: 10px 0 24px; color: var(--ink2); font-size: 18px; }
.dt-poster-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.spc-tb th, .spc-tb td { padding: 13px 10px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--line); }
.spc-tb th { width: 130px; color: var(--mute); font-weight: 600; }
.rel-ls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.rel-ls a { display: flex; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 3px dashed var(--perf); }
.rel-ls span { color: var(--rust); font-weight: 800; white-space: nowrap; }
.rel-ls a:hover strong { color: var(--rust); }
.bk-lk { margin-top: 30px; }
.bk-lk a { font-weight: 800; color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }

.st-pg h1, .nf h1 { font-size: clamp(32px, 5vw, 52px); color: var(--rust); margin-bottom: 20px; }
.st-part { margin-top: 44px; }
.nf p { margin: 8px 0 24px; color: var(--ink2); }
.ct-mail { margin: 18px 0; font-size: 20px; font-weight: 800; }

.dir li { padding: 14px 0; border-bottom: 2px solid var(--line); }
.dir a { font-size: 19px; font-weight: 800; color: var(--rust); }
.dir p { color: var(--ink2); }
.sum-tb a { color: var(--rust); font-weight: 800; }
.dg-item { padding: 18px 0; border-bottom: 3px dashed var(--perf); }
.dg-item h3 span { color: var(--rust); margin-left: 6px; }
.dg-item p { margin-top: 4px; color: var(--ink2); }
.dg-item .dg-meta { font-size: 15px; color: var(--mute); }

.cd-code { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: .94em; letter-spacing: .05em; color: var(--rust); border: 2px dashed var(--rust); border-radius: 4px; padding: 0 6px; }
.wn { color: var(--mute); font-size: .9em; font-weight: 400; }
.tb-note { margin-top: 12px; color: var(--mute); font-size: 15px; }

/* 바닥 */
.ft { background: var(--rust); color: #fff; padding: 60px 0 44px; }
.ft-name { font-family: var(--head); font-size: 34px; line-height: 1.1; }
.ft-tag { margin-top: 8px; color: #ffe6e9; }
.ft-rw { margin-top: 28px; border-top: 2px solid rgba(255, 255, 255, .28); }
.ft-rw p { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 14px 0; border-bottom: 2px solid rgba(255, 255, 255, .18); font-size: 16px; }
.ft-rw b { min-width: 88px; }
.ft-rw a { color: #ffecee; }
.ft-rw a:hover { color: #fff; text-decoration: underline; }
.ft-rw a.bold { font-weight: 800; color: #fff; }
.ft-small { margin-top: 22px; font-size: 14px; color: #ffe0e4; max-width: 70em; }
.ft-small p + p { margin-top: 6px; }

@media (max-width: 1080px) {
  .hd-inner { height: 64px; gap: 12px; }
  .lg { font-size: 23px; }
  .hd-shop { margin-left: auto; }
  .gn-btn { display: inline-block; }
  .hd { position: relative; }
  .gn { position: absolute; top: 100%; left: 0; right: 0; z-index: 40; margin: 0; padding: 6px 24px 18px; background: #fff; border-bottom: 4px solid var(--rust); }
  .gn ul { flex-direction: column; gap: 0; }
  .gn a { display: block; padding: 13px 0; font-size: 18px; border-bottom: 2px solid var(--line); }
  .jsok .gn { display: none; }
  .jsok .gn-on .gn { display: block; }
  .stp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sc { padding: 56px 0; }
  .tk-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tk-rate { font-size: 40px; }
  .lk-rw, .chk, .rel-ls { grid-template-columns: minmax(0, 1fr); }
  .dt-poster-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dt-poster-img { order: -1; }
}
@media (max-width: 600px) {
  .cnt { padding-left: 16px; padding-right: 16px; }
  .stp { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .stp-no { font-size: 44px; }
  .poster-pts { gap: 12px 28px; }
  .poster-pts strong { font-size: 26px; }
  .q { padding-left: 50px; }
  .q::before { font-size: 22px; }
  .tk-numbered li { grid-template-columns: 40px minmax(0, 1fr); }
  .tk-numbered .b { grid-column: 2; justify-self: start; }
  .tk-tb thead { display: none; }
  .tk-tb tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; border-bottom: 2px solid var(--line); }
  .tk-tb th, .tk-tb td { padding: 0; border: 0; }
  .tk-tb .ct-go { grid-column: 1 / -1; text-align: left; margin-top: 8px; }
  .inf-tb { font-size: 15px; }
  .inf-tb th, .inf-tb td { padding: 10px 6px; }
  .sum-tb thead { display: none; }
  .sum-tb, .sum-tb tbody, .sum-tb tr, .sum-tb th, .sum-tb td { display: block; }
  .sum-tb tr { padding: 12px 0; border-bottom: 2px solid var(--line); }
  .sum-tb th, .sum-tb td { padding: 0; border: 0; }
  .sum-tb td:nth-child(3), .sum-tb td:nth-child(4) { display: inline; color: var(--mute); font-size: 15px; }
  .sum-tb td:nth-child(4)::before { content: " · "; }
  .tk-body .b { align-self: stretch; }
  .ft-rw b { width: 100%; }
}
@media (max-width: 379px) {
  .hd-shop { display: none; }
  .gn-btn { margin-left: auto; }
  .gn .gn-shop { display: block; }
  .gn .gn-shop a { margin-top: 12px; border: 0; color: var(--rust); font-weight: 800; }
}

.extras-head { margin: 36px 0 4px; font-family: var(--head); font-weight: 400; font-size: 26px; color: var(--rust); }

.xg { margin-top: 10px; }

/* 표 칸은 단어 중간에서 끊지 않음 */
th, td { overflow-wrap: normal; }
/* 4칸 계산표는 휴대폰에서 줄마다 세로로 쌓기 */
@media (max-width: 560px) {
  .cal-tb thead { display: none; }
  .cal-tb, .cal-tb tbody, .cal-tb tr { display: block; width: 100%; }
  .cal-tb tr { padding: 10px 0; border-bottom: 2px solid var(--line); }
  .cal-tb th, .cal-tb td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0; border: 0; text-align: right; font-size: 16px; letter-spacing: normal; white-space: normal; }
  .cal-tb th::before, .cal-tb td::before { content: attr(data-label); flex: none; color: var(--mute); font-weight: 600; text-align: left; }
}
