/* 부산 불꽃축제 */
.flam {
    --flam-gold: #d8ceff;
    --flam-mint: #a5f1db;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-synthesis: none;
    padding: 100px 24px;
    color: #fff;
    background: radial-gradient(ellipse at 10% 3%, rgba(119, 78, 197, .3), transparent 25%), radial-gradient(ellipse at 95% 20%, rgba(66, 181, 179, .16), transparent 28%), #11182c;
    font-size: 16px;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.flam *, .flam *::before, .flam *::after { box-sizing: border-box; }
.flam .flam__inner { max-width: 1100px; margin: 0 auto; }
.flam h2, .flam h3, .flam h4, .flam p, .flam figure, .flam ul { margin: 0; color: inherit; }
.flam ul { padding: 0; list-style: none; }
.flam .flam__hero { position: relative; padding: 30px 0 85px; text-align: center; }
.flam .flam__eyebrow { margin-bottom: 16px; color: var(--flam-gold); font-size: 12px; font-weight: 600; letter-spacing: .24em; }
.flam .flam__hero h2 { color: var(--flam-gold); font-size: clamp(36px, 5vw, 64px); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.flam .flam__hero h2 span { display: block; margin-bottom: 12px; color: #fff; font-size: .55em; font-weight: 500; letter-spacing: -.02em; }
.flam .flam__date { display: inline-block; margin-top: 30px; padding: 0; color: var(--flam-gold); font-size: 23px; letter-spacing: .13em; }
.flam h3 { font-size: 30px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.flam .flam__benefits > h3 { margin-bottom: 32px; text-align: center; }
.flam .flam__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.flam .flam__card { padding: 36px 20px; border: 1px solid rgba(216, 206, 255, .16); border-radius: 28px; background: rgba(255, 255, 255, .045); text-align: center; transition: transform .3s ease, background .3s ease; }
.flam .flam__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 24px; border-radius: 24px; transform: rotate(-6deg); background: #d8ceff; color: #43327a; font-size: 32px; }
.flam .flam__icon i { transform: rotate(6deg); }
.flam .flam__card:nth-child(2) .flam__icon { background: #a5f1db; color: #24594b; }
.flam .flam__card:nth-child(3) .flam__icon { background: #ffcfb9; color: #794932; }
.flam .flam__card-label { margin-bottom: 12px; color: var(--flam-gold); font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.flam .flam__card h4 { font-size: 20px; font-weight: 600; line-height: 1.7; letter-spacing: -.03em; }
.flam .flam__card strong { color: var(--flam-gold); font-weight: 600; }
.flam .flam__seating, .flam .flam__schedule { margin-top: 80px; }
.flam .flam__section-heading { margin-bottom: 28px; text-align: center; }
.flam .flam__section-heading .flam__eyebrow { margin-bottom: 8px; }
.flam .flam__map { overflow: hidden; border: 1px solid rgba(245, 217, 148, .25); border-radius: 20px; background: #101c2f; }
.flam .flam__map-image { position: relative; container-type: inline-size; }
.flam .flam__map img { display: block; width: 100%; height: auto; }

.flam .flam__map-label { position: absolute; left: 34%; top: 46%; display: grid; place-items: center; width: 17.5%; height: 9%; transform: rotate(17deg); background: #101113; color: #fff; font-size: clamp(8px, 1.8vw, 22px); font-size: 2cqw; font-weight: 600; white-space: nowrap; }
.flam .flam__seat-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 22px; font-size: 15px; }
.flam .flam__seat-types li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 9px 3px 0; border-radius: 50%; background: var(--flam-gold); }
.flam .flam__seat-types strong { color: var(--flam-gold); }
.flam .flam__table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid rgba(216, 206, 255, .2); border-radius: 24px; background: rgba(255, 255, 255, .025); color: #fff; font-size: 17px; }
.flam .flam__table th, .flam .flam__table td { padding: 23px 28px; border-bottom: 1px solid rgba(255, 255, 255, .14); text-align: center; vertical-align: middle; }
.flam .flam__table thead th { border-top: 0; background: rgba(216, 206, 255, .1); color: var(--flam-gold); font-weight: 600; }
.flam .flam__table th:first-child { width: 30%; }
.flam .flam__table tbody th { font-weight: 500; }
.flam .flam__pending { color: #b8c0ce; font-size: 15px; }
.flam .flam__highlight td { color: var(--flam-gold); font-weight: 600; }
.flam .flam__note { margin-top: 18px; color: #b8c0ce; font-size: 13px; text-align: right; }
.flam .flam__mobile-break { display: none; }
.flam .flam__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.flam .flam__sale-badge { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 32px; padding: 12px 22px; border: 1px solid rgba(165, 241, 219, .4); border-radius: 30px; background: #a5f1db; color: #173d37; font-size: 16px; font-weight: 500; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.flam .flam__notes { margin-top: 18px; }
.flam .flam__notes .flam__note { margin-top: 6px; text-align: left; }
.flam .flam__promotion, .flam .flam__food { margin-top: 80px; }
.flam .flam__promotion { padding: 48px 32px 32px; border-radius: 36px; background: #f1edff; color: #302849; }
.flam .flam__promotion h3 { color: #654ba0; font-size: 42px; }
.flam .flam__promotion .flam__eyebrow { color: #7257a4; }
.flam .flam__promotion-en { margin-top: 4px; color: #7257a4; font-size: 18px; letter-spacing: .06em; }
.flam .flam__limited { margin-top: 20px; font-size: 18px; font-weight: 600; }
.flam .flam__products { display: grid; gap: 16px; }
.flam .flam__product { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 24px; padding: 28px; border: 1px solid #e6def5; border-radius: 20px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.flam .flam__product h4 { margin-bottom: 14px; color: #39304f; font-size: 21px; font-weight: 600; line-height: 1.5; }
.flam .flam__product-info > p { color: #6a6378; font-size: 15px; line-height: 1.9; }
.flam .flam__price { padding-left: 24px; border-left: 1px dashed #d9d0e9; text-align: right; }
.flam .flam__regular { color: #77707f; font-size: 14px; }
.flam .flam__early-price { margin-top: 10px; color: #7453b2; }
.flam .flam__early-price > span { display: block; font-size: 13px; }
.flam .flam__early-price strong { display: block; font-size: 34px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.flam .flam__early-price small { margin-left: 4px; font-size: 18px; font-weight: 500; }
.flam .flam__food figure { text-align: center; }
.flam .flam__food img { display: block; width: 100%; height: auto; border-radius: 16px; }
.flam .flam__food figcaption { margin-top: 14px; color: #b8c0ce; font-size: 12px; }

@media (max-width: 700px) {
    .flam { padding: 56px 20px; }
    .flam .flam__hero { padding: 15px 0 52px; }
    .flam .flam__date { font-size: 18px; margin-top: 24px; }
    .flam h3 { font-size: 24px; }
    .flam .flam__mobile-break { display: block; }
    .flam .flam__cards { grid-template-columns: 1fr; gap: 12px; }
    .flam .flam__card { position: relative; padding: 24px 20px 24px 84px; text-align: left; border-radius: 16px; }
    .flam .flam__icon { position: absolute; left: 20px; top: 27px; width: 46px; height: 46px; border-radius: 15px; font-size: 24px; }
    .flam .flam__card h4 { font-size: 18px; }
    .flam .flam__card-label { margin-bottom: 6px; }
    .flam .flam__seating, .flam .flam__schedule { margin-top: 52px; }
    .flam .flam__map { border-radius: 12px; }
    .flam .flam__seat-types { justify-content: flex-start; gap: 10px 18px; padding: 18px; font-size: 13px; }
    .flam .flam__table { font-size: 14px; }
    .flam .flam__table th, .flam .flam__table td { padding: 18px 10px; }
    .flam .flam__table th:first-child { width: 34%; }
    .flam .flam__pending { font-size: 12px; }
    .flam .flam__note { text-align: left; font-size: 12px; }
    .flam .flam__sale-badge { padding: 10px 14px; gap: 7px; font-size: 13px; }
    .flam .flam__promotion, .flam .flam__food { margin-top: 52px; }
    .flam .flam__promotion h3 { font-size: 34px; }
    .flam .flam__limited { font-size: 16px; }
    .flam .flam__product { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 20px; }
    .flam .flam__product h4 { font-size: 20px; }
    .flam .flam__product-info > p { font-size: 14px; }
    .flam .flam__price { padding: 18px 0 0; border-left: 0; border-top: 1px dashed #d9d0e9; }
    .flam .flam__promotion { padding: 32px 14px 14px; border-radius: 24px; }
}

.flam .A2Z { font-family: 'A2Z', 'Pretendard', sans-serif; font-weight: 600; }
.flam .flam__table tbody tr:last-child > * { border-bottom: 0; }
.flam .flam__live-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #ff4d4f; box-shadow: 0 0 0 4px rgba(255, 77, 79, .12); animation: flam-pulse 1.6s ease-in-out infinite; }
.flam .flam__sale-badge > span:nth-child(2) { padding-left: 10px; border-left: 1px solid rgba(23, 61, 55, .25); font-size: .85em; }
.flam .flam__sale-badge:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.flam .flam__hero h2, .flam .flam__date { animation: flam-rise .9s ease-out both; }
.flam .flam__date { animation-delay: .15s; }
.flam .flam__promotion h3 { scroll-margin-top: 140px; }

@media (hover: hover) {
    .flam .flam__card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); }
    .flam .flam__product:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(75, 48, 115, .08); }
    .flam .flam__sale-badge:hover { color: #173d37; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(165, 241, 219, .18); }
}
@keyframes flam-rise { from { opacity: .3; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flam-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(255, 77, 79, .12); }
    50% { opacity: .25; box-shadow: 0 0 0 8px rgba(255, 77, 79, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .flam *, .flam *::before, .flam *::after { animation: none !important; transition: none !important; }
}

/* 스크롤 진입 시 한 번만 재생하며, JS가 없어도 내용은 표시됩니다. */
.flam .flam__card.is-revealed { animation: flam-card-reveal .65s ease-out backwards; }
.flam .flam__card.is-revealed:nth-child(2) { animation-delay: .14s; }
.flam .flam__card.is-revealed:nth-child(3) { animation-delay: .28s; }
.flam .flam__price { position: relative; transition: background-color .3s ease, box-shadow .3s ease; }
.flam .flam__price-label { display: inline-block; margin-bottom: 12px; padding: 4px 10px; background: #e5f7ee; color: #28614b; font-size: 10px; font-weight: 600; letter-spacing: .12em; line-height: 1.6; }
.flam .flam__firework { position: absolute; width: 92px; height: 92px; pointer-events: none; opacity: 0; color: var(--flam-mint); }
.flam .flam__firework--one { left: 5%; top: 145px; }
.flam .flam__firework--two { right: 5%; top: 235px; width: 72px; height: 72px; color: #ffcfb9; }
.flam .flam__hero.is-revealed .flam__firework { animation: flam-firework 2.2s ease-out 2; }
.flam .flam__hero.is-revealed .flam__firework--two { animation-delay: .4s; }
@media (hover: hover) {
    .flam .flam__product:hover .flam__price { background-color: #f4efff; box-shadow: 0 0 0 12px #f4efff; }
}
@keyframes flam-card-reveal { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes flam-firework {
    0% { opacity: 0; transform: scale(.25); }
    18% { opacity: .85; }
    65% { opacity: .4; }
    85%, 100% { opacity: 0; transform: scale(1); }
}
@media (max-width: 700px) {
    .flam .flam__firework--one { left: -6px; top: 118px; width: 36px; height: 36px; }
    .flam .flam__firework--two { right: -6px; top: 218px; width: 32px; height: 32px; }
}

/* 불꽃축제 티켓 구매: 혜택 안내와 얼리버드 영역에서 공통 사용 */
.flam .flam__purchase { display: flex; justify-content: center; margin-top: 28px; }
.flam .flam__purchase-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 300px); min-height: 54px; padding: 14px 24px; border: 1px solid rgba(245, 217, 148, .55); border-radius: 40px; background: transparent; color: var(--flam-gold); font-size: 17px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .2s ease; }
.flam .flam__purchase-link:hover { background: rgba(216, 206, 255, .1); color: var(--flam-gold); }
.flam .flam__purchase-link--earlybird { min-height: 58px; background: var(--flam-mint); border-color: var(--flam-mint); color: #11182c; box-shadow: 0 6px 24px rgba(165, 241, 219, .2); }
.flam .flam__purchase-link--earlybird:hover { background: #c8faec; border-color: #c8faec; color: #11182c; }
.flam .flam__purchase-link:focus-visible { outline: 3px solid var(--flam-gold); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
    .flam .flam__purchase-link { transition: none; }
}
