﻿* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --header-h: 56px; }
html, body { background: #0a0f24; }
body { font-family: 'Noto Sans KR', sans-serif; color: #f5ecd8; word-break: keep-all; }
button, input { font-family: inherit; }
a { color: #f0c869; text-decoration: none; }
a:hover { color: #ffe9a8; }

/* 미원: 페이지에 쓰인 글자(한글 313자 + 영문·숫자·기호)만 남긴 서브셋 woff2. 문구를 새로 추가하면 원본(coding_수정완료/assets/미원Miwon.otf)으로 서브셋을 다시 만들어야 새 글자가 이 폰트로 보임 */
@font-face { font-family: 'Miwon'; src: url('../assets/miwon-subset.woff2') format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'GapyeongHanseokbongBigBrush'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2312-1@1.1/GapyeongHanseokbong-Bold.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'GounBatang'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/GowunBatang-Regular.woff') format('woff'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'GounBatang'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/GowunBatang-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'KimJwaJinGeneral'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GenKJwajinOTF-Rg.woff') format('woff'); font-weight: normal; font-display: swap; }
@font-face { font-family: 'KimJwaJinGeneral'; src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GenKJwajinOTF-Bd.woff') format('woff'); font-weight: 700; font-display: swap; }

@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }

.page { width: 100%; max-width: 100%; background: linear-gradient(180deg, #0a0f24 0%, #131b3a 40%, #1b1440 100%); overflow: hidden; position: relative; }

/* ---------- HERO ---------- */
/* header + hero together fill the viewport height on any monitor resolution (1920x1080, 2560x1440, ...): subtract the live header height (--header-actual, set by script.js since the header wraps to auto height below 1024px), falling back to --header-h; 760px floor keeps it from collapsing on very short viewports; dvh overrides vh where supported to account for mobile browser chrome */
.hero { position: relative; width: 100%; min-height: max(760px, calc(100vh - var(--header-actual, var(--header-h)))); min-height: max(760px, calc(100dvh - var(--header-actual, var(--header-h)))); padding: 80px 20px 96px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 0%, #2d1b5e 0%, #141033 55%, #0a0f24 100%); }
/* night-sky stars sit above the KV (z 1) but below the frame/title; positions/colors/timings are generated by script.js */
#star-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-star { position: absolute; border-radius: 50%; background: currentColor; box-shadow: 0 0 4px 1px currentColor; opacity: .2; animation: starTwinkle 3s ease-in-out infinite; }
.hero-star--sparkle { border-radius: 0; background: none; box-shadow: none; animation-name: starSparkle; }
.hero-star--sparkle svg { display: block; width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 8px rgba(200,180,255,.8)); }
@keyframes starTwinkle {
  0%, 100% { opacity: .15; transform: scale(.6); }
  50%      { opacity: 1;   transform: scale(1); }
}
@keyframes starSparkle {
  0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  45%, 55% { opacity: 1; transform: scale(1) rotate(45deg); }
}
/* title glints: firework-like flashes on the title letters, one after another — a soft bloom, two hair-thin light streaks
   (long horizontal, shorter vertical) and six tiny embers that fly outward and fade. Each glint is a square sized as % of the
   title width; children animate on a shared 4.5s cycle offset by --delay */
.hero-title-img { position: relative; }
.title-glints { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.title-glint { position: absolute; aspect-ratio: 1; translate: -50% -50%; }
.title-glint > i { position: absolute; left: 50%; top: 50%; opacity: 0; animation: 4.5s cubic-bezier(.2,.7,.3,1) var(--delay, 0s) infinite both; }
.title-glint > .glint-core { width: 22%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255,240,250,.9) 18%, rgba(214,180,255,.45) 45%, rgba(214,180,255,0) 72%); animation-name: glintCore; }
.title-glint > .glint-streak { width: 100%; height: 1.5px; translate: -50% -50%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(235,220,255,.7) 35%, #fff 50%, rgba(235,220,255,.7) 65%, rgba(255,255,255,0)); box-shadow: 0 0 6px rgba(220,200,255,.8); animation-name: glintStreak; }
.title-glint > .glint-streak--v { width: 1.5px; height: 62%; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(235,220,255,.7) 35%, #fff 50%, rgba(235,220,255,.7) 65%, rgba(255,255,255,0)); animation-name: glintStreakV; }
.title-glint > .glint-ray { inset: 0; rotate: var(--a); opacity: 1; animation: none; }
.glint-ray::after { content: ''; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 3px 1px var(--c), 0 0 8px 2px var(--c); opacity: 0; animation: glintEmber 4.5s cubic-bezier(.15,.8,.35,1) var(--delay, 0s) infinite both; }
@keyframes glintCore {
  0%        { opacity: 0; scale: 0; }
  5%        { opacity: 1; scale: 1.15; }
  9%        { opacity: .9; scale: 1; }
  22%, 100% { opacity: 0; scale: .5; }
}
@keyframes glintStreak {
  0%        { opacity: 0; scale: 0 1; }
  5%        { opacity: 1; scale: 1 1; }
  20%, 100% { opacity: 0; scale: .2 1; }
}
@keyframes glintStreakV {
  0%        { opacity: 0; scale: 1 0; }
  6%        { opacity: .9; scale: 1 1; }
  18%, 100% { opacity: 0; scale: 1 .2; }
}
@keyframes glintEmber {
  0%, 3%    { opacity: 0; left: 50%; scale: 1; }
  6%        { opacity: 1; }
  24%, 100% { opacity: 0; left: var(--reach, 90%); scale: .3; }
}
.hero-layer { position: absolute; inset: 0; z-index: 0; }
/* KV is a 16:9 scene (PC: kv_new_01.png with extra night sky, mobile: kv_new.png); on viewports wider than 16:9 cover crops it vertically — anchoring low lets the sky (title space) absorb most of the crop while the bottom clouds take the rest, keeping the characters' feet in frame */
.hero-layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; display: block; }
@media (min-width: 721px) {
  .hero-layer img { object-position: 50% 88%; }
}
/* PC/tablet: script.js anchors the title block to the KV itself — it measures where the gate roof lands on screen (the KV is
   cover-scaled and bottom-anchored, so the gate moves with the window height) and centres the block in the sky between the
   frame top and the roof, shrinking it (--hero-fit, min 0.9) only when that band is too short. --hero-ratio drives the scrim. */
.hero { padding-top: var(--hero-pad-top, 20px); }
@media (max-width: 720px) {
  .hero { padding-top: 72px; }
  .hero-content { margin-top: 0; }
}
.hero-scrim { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(ellipse 42% 48% at 50% 32%, rgba(12,8,40,0.78) 0%, rgba(12,8,40,0.45) 45%, rgba(12,8,40,0) 75%); opacity: clamp(0, calc((0.9 - var(--hero-ratio, 1)) * 4), 0.85); }

/* double-line frame with a knot lattice in each corner; --u = grid spacing, --sw = line width (fixed 1px; corner SVG uses non-scaling-stroke so it stays 1px at any --u) */
.hero-frame { --u: 6px; --sw: 1px; --frame-c: #8b86a0; position: absolute; inset: 14px; pointer-events: none; }
.hero-frame-edge { position: absolute; box-sizing: border-box; border: 0 solid var(--frame-c); }
.hero-frame-edge--t, .hero-frame-edge--b { left: calc(var(--u) * 4); right: calc(var(--u) * 4); height: calc(var(--u) + var(--sw)); border-top-width: var(--sw); border-bottom-width: var(--sw); }
.hero-frame-edge--l, .hero-frame-edge--r { top: calc(var(--u) * 4); bottom: calc(var(--u) * 4); width: calc(var(--u) + var(--sw)); border-left-width: var(--sw); border-right-width: var(--sw); }
.hero-frame-edge--t { top: 0; }
.hero-frame-edge--b { bottom: 0; }
.hero-frame-edge--l { left: 0; }
.hero-frame-edge--r { right: 0; }
.hero-corner-pattern { position: absolute; width: calc(var(--u) * 4 + var(--sw)); height: calc(var(--u) * 4 + var(--sw)); fill: none; stroke: var(--frame-c); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-linecap: square; stroke-linejoin: miter; }
.hero-corner-pattern--tl { top: 0; left: 0; }
.hero-corner-pattern--tr { top: 0; right: 0; transform: scaleX(-1); }
.hero-corner-pattern--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.hero-corner-pattern--br { bottom: 0; right: 0; transform: scale(-1); }
@media (max-width: 720px) {
  .hero-frame { --u: 5px; inset: 10px; }
}
/* game BI pinned to the top-left, just inside the frame's corner knot */
/* game BI top-left / partner BI top-right, both just inside the frame's corner knots; the partner logo is vertically centred on the game BI (BI copy.png is 261x67, craftbox_BI.webp is 100x22) */
.hero-bi, .hero-bi-partner { position: absolute; z-index: 5; height: auto; pointer-events: none; }
.hero-bi { --bi-w: clamp(140px, 9vw, 200px); top: 44px; left: 52px; width: var(--bi-w); }
.hero-bi-partner { --bi-w: clamp(140px, 9vw, 200px); --cb-w: clamp(100px, 6.5vw, 140px); top: calc(44px + var(--bi-w) * 67 / 261 / 2 - var(--cb-w) * 22 / 100 / 2); right: 52px; width: var(--cb-w); filter: drop-shadow(0 1px 2px rgba(10,6,40,.9)) drop-shadow(0 0 6px rgba(10,6,40,.75)); }
@media (max-width: 720px) {
  .hero-bi { --bi-w: 100px; top: 28px; left: 30px; }
  .hero-bi-partner { --bi-w: 100px; --cb-w: 76px; top: calc(28px + var(--bi-w) * 67 / 261 / 2 - var(--cb-w) * 22 / 100 / 2); right: 30px; }
}

.hero-content { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 720px; width: 100%; padding: 0 8px; margin-top: 0; transform: scale(var(--hero-fit, 1)); transform-origin: 50% 0; }

.hero-logos { display: flex; align-items: center; gap: 16px; justify-content: center; margin-bottom: 6px; }
.hero-logos img { height: 24px; width: auto; }
.hero-logos .x { font-family: 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 13px; color: rgba(255,255,255,0.6); }
.hero-tag { font-family: 'GapyeongHanseokbongBigBrush', sans-serif; font-size: 18px; letter-spacing: 1px; color: #8fd6ff; font-weight: 700; padding: 8px 20px; border: 1px solid rgba(143,214,255,0.4); border-radius: 999px; }
.hero-title { font-family: 'Miwon', sans-serif; font-weight: 400; font-size: clamp(34px, 9vw, 56px); line-height: 1.25; word-break: keep-all; margin: 14px 0 0; padding: 0 2px; background: url('../assets/txt.webp') center/cover no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(1px 0 0 #4a4a98) drop-shadow(-1px 0 0 #4a4a98) drop-shadow(0 1px 0 #4a4a98) drop-shadow(0 -1px 0 #4a4a98) drop-shadow(0.7px 0.7px 0 #4a4a98) drop-shadow(-0.7px 0.7px 0 #4a4a98) drop-shadow(0.7px -0.7px 0 #4a4a98) drop-shadow(-0.7px -0.7px 0 #4a4a98) drop-shadow(0 2px 4px rgba(72,63,155,0.29)) drop-shadow(0 0 8px rgba(48,41,151,0.6)) drop-shadow(0 0 16px rgba(48,41,151,0.6)); }
.hero-title .nowrap { white-space: nowrap; }
/* KV_title.png bundles title + sub copy + event period; its baked-in dark glow pads the edges, so pull the CTA up into that padding */
.hero-title-img { margin: 0; line-height: 0; width: min(640px, 92vw); }
.hero-title-img img { width: 100%; height: auto; display: block; }
/* mobile uses title_m.png, which has no glow padding below the period box, so the CTA just sits under it */
.hero-title-img + .hero-cta { margin-top: 6px; }
.hero-sub { font-family: 'GapyeongHanseokbongBigBrush', sans-serif; font-size: clamp(18px, 4vw, 19px); margin: 10px 0 26px; color: #ffffff; word-break: keep-all; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.hero-sub b { color: #f0c869; }
.hero-sub-break { display: none; }
@media (max-width: 720px) {
  .hero-sub-break { display: inline; }
}
.hero-cta { position: relative; display: flex; align-items: center; justify-content: center; width: min(300px, 72vw); aspect-ratio: 238/43; }
.hero-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.hero-cta span { position: relative; color: #fff; font-weight: 900; font-size: 16px; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
/* PC: title + CTA grow with viewport width like the cover-scaled KV behind them (1/3 of width at 1920), capped so the CTA stays clear of the characters on wide screens */
@media (min-width: 721px) {
  /* 520px floor keeps the title from shrinking too far on narrow windows; CTA width/offset follow the title width so they stay proportional */
  .hero-content { max-width: none; --title-w: clamp(520px, 33.4vw, 860px); }
  .hero-title-img { width: var(--title-w); }
  .hero-cta { width: calc(var(--title-w) * 0.467); }
  .hero-title-img + .hero-cta { margin-top: calc(var(--title-w) * -0.02); }
}
/* tablet portrait: 33vw would hit the 520px floor and look small against the tall height-scaled KV; size the title off width more generously there */
@media (min-width: 721px) and (orientation: portrait) {
  .hero-content { --title-w: clamp(520px, 72vw, 780px); }
}
.hero-period { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; color: #322774; margin-top: 10px; text-shadow: 0 0 4px rgba(255,255,255,0.9), 0 0 8px rgba(255,255,255,0.7); }
.hero-period img { height: 14px; width: auto; filter: drop-shadow(0 0 4px rgba(255,255,255,0.9)) drop-shadow(0 0 8px rgba(255,255,255,0.7)); }

/* ---------- HERO INTRO ----------
   html.intro (set inline in <head>) holds every piece on its first keyframe; script.js adds .intro-play once the KV has loaded
   and they enter one after another: KV settles in → frame → BIs → title → CTA → stars. Uses opacity/translate/scale only
   (not transform) where an element already animates transform, so the intro and the CTA pulse don't fight. */
.intro .hero-layer img       { animation: introKv 1.8s cubic-bezier(.22,.61,.36,1) 0s both; }
.intro .hero-frame           { animation: introFade 1s ease-out .6s both; }
.intro .hero-bi              { animation: introDown .9s cubic-bezier(.22,.61,.36,1) 1s both; }
.intro .hero-bi-partner      { animation: introDown .9s cubic-bezier(.22,.61,.36,1) 1.1s both; }
.intro .hero-title-img       { animation: introTitle 1.2s cubic-bezier(.22,.61,.36,1) 1.3s both; }
.intro .hero-cta             { animation: introUp .8s cubic-bezier(.22,.61,.36,1) 2s both; }
.intro #star-layer           { animation: introFade 1.6s ease-out 2.2s both; }
.intro .hero-layer img, .intro .hero-frame, .intro .hero-bi, .intro .hero-bi-partner,
.intro .hero-title-img, .intro .hero-cta, .intro #star-layer { animation-play-state: paused; }
.intro.intro-play .hero-layer img, .intro.intro-play .hero-frame, .intro.intro-play .hero-bi, .intro.intro-play .hero-bi-partner,
.intro.intro-play .hero-title-img, .intro.intro-play .hero-cta, .intro.intro-play #star-layer { animation-play-state: running; }
@keyframes introKv    { from { opacity: 0; scale: 1.08; } to { opacity: 1; scale: 1; } }
@keyframes introFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes introDown  { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
@keyframes introTitle { from { opacity: 0; translate: 0 28px; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes introUp    { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* AVIF용으로 <img>를 감싼 <picture>: 레이아웃에 끼어들지 않도록 투명 처리 */
.avif-wrap { display: contents; }

/* ---------- SECTION SHELLS ---------- */
.section { width: 100%; }
.section--a { background: #0c1030; }
.section--b { background: #12173a; }
.section--reward-bg { background: #12173a url('../assets/reward-bg.webp') center/cover no-repeat; }
@media (max-width: 720px) {
  .section--reward-bg { background: linear-gradient(180deg, rgba(6,8,20,0.75), rgba(6,8,20,0.55) 40%, rgba(6,8,20,0.75)), url('../assets/reward-bg.webp') center/cover no-repeat; }
}
.section--story-bg { background: #12173a url('../assets/p3_bg.webp') center/cover no-repeat; }
.section--reward-bg.section--attendance { background-position: center 20%; }
/* 쿠폰 등록 방법: 이미지 자체가 가운데 어두운 먹 + 가장자리 한지라 어두운 덧칠 없이 그대로 */
.section--how-bg { background: #2e2014 url('../assets/img_bg_redeem.webp') center/cover no-repeat; }
.section--where-bg { background: linear-gradient(180deg, rgba(6,8,20,0.75), rgba(6,8,20,0.55) 40%, rgba(6,8,20,0.75)), url('../assets/where-bg.webp') center top/cover no-repeat; } /* 이미지 상단이 항상 섹션 상단에 붙어 보이도록 top 고정 */
.section--participate-bg { background: linear-gradient(180deg, rgba(6,8,20,0.75), rgba(6,8,20,0.55) 40%, rgba(6,8,20,0.75)), url('../assets/participate-bg.webp') center/cover no-repeat; }
.section-inner { padding: 56px 20px; max-width: 1000px; margin: 0 auto; }
.section-inner--attendance { padding-top: 64px; padding-bottom: 56px; }
.section--attendance { position: relative; overflow: hidden; }
.section--attendance::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 45%; background: linear-gradient(180deg, rgba(10,15,36,0.8) 0%, rgba(10,15,36,0.4) 50%, rgba(10,15,36,0) 100%); pointer-events: none; z-index: 0; }
.section--attendance .section-inner { position: relative; z-index: 1; }
.section--reward { position: relative; overflow: hidden; }
.section--reward .section-inner { position: relative; z-index: 3; padding-bottom: 88px; }
/* 밝은 배경(p3_bg)용 텍스트 컬러 */
.section--reward .section-eyebrow { color: #2f62a8; }
.section--reward .section-title { color: #1b2350; }
.section--reward .section-desc { color: #3a4468; font-weight: 500; }
/* 밝은 배경에서 노란 강조가 묻히지 않도록 남색 외곽선 */
/* 누적플레이 미션 안내 문구 이미지 (485x73) */
.section-desc-img { display: block; width: 485px; max-width: 100%; height: auto; margin: 16px auto 0; }
@media (max-width: 720px) { .section-desc-img { width: 300px; } } /* 모바일용 img_mission2_txt_m.png (565x185, 세 줄) */
/* 출석체크 미션 안내 문구 이미지: PC 464x58 / 모바일 367x95 (미션2와 글자 크기 맞춤) */
.section-desc-img--m1 { width: 520px; }
@media (max-width: 720px) { .section-desc-img--m1 { width: 260px; } }
.reward-front { position: absolute; bottom: 0; z-index: 0; height: auto; pointer-events: none; }
.reward-front--left { left: 0; width: min(20vw, 400px); }
.reward-front--right { right: 0; width: min(25vw, 500px); }
@media (max-width: 720px) { .reward-front { display: none; } }
/* 구름: 이미지 하단이 잘려 있으므로 섹션 바닥 아래로 살짝 내려 두고, 아래 방향으로만 떠다니게 해 잘린 선이 드러나지 않게 함 */
.reward-cloud { position: absolute; left: 0; bottom: -4px; width: 100%; height: auto; pointer-events: none; will-change: transform; }
.reward-cloud--01 { bottom: -2.5vw; z-index: 1; animation: cloudFloatA 5.3s ease-in-out infinite; }
.reward-cloud--02 { bottom: -7.5vw; z-index: 2; animation: cloudFloatB 6s ease-in-out infinite; }
@keyframes cloudFloatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(18px); } }
@keyframes cloudFloatB { 0%, 100% { transform: translateY(16px); } 50% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .reward-cloud { animation: none; } }
.attendance-objet { position: absolute; bottom: 0; z-index: 0; height: auto; pointer-events: none; }
.attendance-objet--left { left: 0; width: min(22vw, 400px); }
.attendance-objet--right { right: 0; width: min(16.3vw, 296px); }
.section-inner--notice { padding-bottom: 72px; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-eyebrow { font-size: 13px; color: #8fd6ff; letter-spacing: 2px; font-weight: 700; }
.section-title { font-family: 'Miwon', sans-serif; font-weight: 400; font-size: clamp(24px, 4vw, 32px); color: #fff; margin: 8px 0 0; }
.section-divider { display: block; width: min(360px, 80%); height: auto; margin: 12px auto 0; }
/* 누적플레이 미션: 밝은 배경이라 라인을 진한 파랑(eyebrow #2f62a8 계열)으로 칠해 또렷하게 */
.section--reward .section-divider { filter: brightness(0) saturate(100%) invert(31%) sepia(62%) saturate(880%) hue-rotate(194deg) brightness(92%) drop-shadow(0 1px 0 rgba(255,255,255,.6)); }
.section-desc { color: #cfd3e8; font-size: 15px; margin-top: 12px; }
.section-desc b { color: #f0c869; font-weight: 700; }
.section-desc__lead { font-family: 'Miwon', sans-serif; font-weight: 400; font-size: 20px; display: inline-block; margin-bottom: 8px; }
.section-desc__lead b { font-weight: 400; }

/* ---------- 출석체크 미션 ---------- */
.attendance-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; margin-bottom: 24px; }
/* DAY 카드 사이 >>> 화살표 (순차 점멸) */
.attendance-arrow { display: flex; align-items: center; justify-content: center; padding: 0 2px; }
.attendance-arrow span { width: 11px; height: 11px; margin-left: -2px; border-top: 3px solid #f0c869; border-right: 3px solid #f0c869; transform: rotate(45deg); opacity: .2; filter: drop-shadow(0 0 4px rgba(240,200,105,.8)); animation: arrowFlow 1.5s ease-in-out infinite; }
.attendance-arrow span:nth-child(2) { animation-delay: .2s; }
.attendance-arrow span:nth-child(3) { animation-delay: .4s; }
@keyframes arrowFlow { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
@media (max-width: 720px) {
  .attendance-grid { grid-template-columns: 1fr; gap: 4px; }
  .attendance-arrow { flex-direction: column; padding: 4px 0; }
  .attendance-arrow span { transform: rotate(135deg); margin: -2px 0 0; }
}
.attendance-arrow.is-dim span { animation: none; opacity: .18; filter: none; border-color: #9aa0c2; }
@media (prefers-reduced-motion: reduce) { .attendance-arrow span { animation: none; opacity: .8; } }

/* 활성 / 잠금 상태 */
/* 카드 폭을 이미지(최대 300px)에 맞춰 자물쇠가 이미지 우측 상단에 붙도록 함 */
.attendance-card { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
.attendance-card.is-active .attendance-icon { animation: dayActiveGlow 2.4s ease-in-out infinite; }
@keyframes dayActiveGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(240,200,105,.35)); }
  50%      { filter: drop-shadow(0 0 22px rgba(240,200,105,.85)); }
}
.attendance-card.is-locked .attendance-icon { filter: grayscale(.9) brightness(.55); }
.attendance-lock { position: absolute; top: 12%; right: 12%; z-index: 2; pointer-events: none; }
.attendance-lock__icon { position: relative; isolation: isolate; overflow: hidden; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #f0c869; background: radial-gradient(circle at 50% 35%, #3b3f6b, #151836); border: 2px solid rgba(240,200,105,.7); box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 12px rgba(240,200,105,.3); }
/* 자물쇠 원형 배경 종이 질감: 한지 섬유 무늬가 몰려 있는 구간(원본 약 700~860, 240~400px)이 원 안에 오도록 위치 지정 */
.attendance-lock__icon::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: url("../assets/paper_bg.webp") -201px -68px/500px auto no-repeat; mix-blend-mode: soft-light; pointer-events: none; }
.attendance-lock__icon svg { width: 22px; height: 22px; }
.attendance-lock__bubble { position: absolute; right: 0; bottom: calc(100% + 8px); padding: 7px 14px; border-radius: 999px; background: #fff7e2; color: #5c3a1a; font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px rgba(0,0,0,.4); animation: lockBubbleBob 2.2s ease-in-out infinite; }
.attendance-lock__bubble::after { content: ''; position: absolute; right: 16px; top: 100%; border: 6px solid transparent; border-top-color: #fff7e2; }
@keyframes lockBubbleBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .attendance-card.is-active .attendance-icon, .attendance-lock__bubble { animation: none; } }

/* ===== [개발 연동] 출석체크 미션 마일리지 소진(선착순 마감) 딤처리 — 카드별 / 전체 2가지 =====
   ① 카드별 소진: 소진된 DAY 카드(.attendance-card)에만 .is-soldout (DAY마다 독립, 예: DAY 2만 소진 가능)
      (예: <div class="attendance-card is-locked is-soldout">)
      → 그 카드만 흑백·어둡게 + "마일리지 소진" 도장. 빛남·자물쇠·말풍선·hover 꺼짐. 다른 카드·화살표는 영향 없음
   ② 전체 소진(미션 마감) (예: <section class="section section--a section--reward-bg section--attendance is-soldout">)
      → DAY 1~3 카드·화살표·하단 "최대 5,000 마일리지 지급!" 띠 전체 딤 + 카드 3장 가운데에 큰 도장 1개
      → 카드에 붙은 ①의 is-soldout 은 그대로 둬도 됨 (카드별 작은 도장은 자동으로 숨김)
   - DAY 카드의 is-active / is-locked 는 그대로 두어도 is-soldout 이 우선 적용됨
   - 도장은 CSS(::after)로 그려지므로 별도 마크업 불필요
   - 디자인 확인용: 주소 뒤에 ?preview=soldout-day2 (DAY 2만) / soldout-day1,3 (DAY 1·3) / soldout (전체) (index.html 하단 스크립트) */

/* ① 카드별 소진 */
.attendance-card.is-soldout { pointer-events: none; }
.attendance-card.is-soldout .attendance-icon { animation: none; filter: grayscale(1) brightness(.4); opacity: .6; } /* 잠금 카드보다 한 단계 더 어둡고 배경이 비치게 */
.attendance-card.is-soldout .attendance-lock { display: none; }.attendance-card.is-soldout::after { content: "마일리지 소진"; position: absolute; top: 58%; left: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(-8deg); padding: 9px 20px 7px; border: 4px double #e2483d; border-radius: 10px; background: rgba(28,10,14,.92); color: #ff6a5c; font-family: 'Miwon', sans-serif; font-size: 24px; letter-spacing: 2px; white-space: nowrap; text-shadow: 0 0 8px rgba(226,72,61,.55); box-shadow: 0 0 0 2px rgba(226,72,61,.2), 0 8px 18px rgba(0,0,0,.55); }
@media (max-width: 720px) { .attendance-card.is-soldout::after { font-size: 20px; padding: 8px 16px 6px; } }
.section--attendance.is-soldout .attendance-card.is-soldout::after { content: none; } /* 전체 소진일 땐 가운데 큰 도장만 */

/* ② 미션 전체 소진 */
.section--attendance.is-soldout .attendance-grid { position: relative; pointer-events: none; }
.section--attendance.is-soldout .attendance-icon { animation: none; filter: grayscale(1) brightness(.4); opacity: .6; } /* 잠금 카드보다 한 단계 더 어둡고 배경이 비치게 */
.section--attendance.is-soldout .attendance-lock { display: none; }
.section--attendance.is-soldout .attendance-arrow span { animation: none; opacity: .18; filter: none; border-color: #9aa0c2; }
.section--attendance.is-soldout .attendance-banner { filter: grayscale(1); opacity: .45; }
/* 소진 도장: 카드 3장 가운데에 크게, 붉은 인주 느낌의 이중 테두리 + 살짝 기울임 */
.section--attendance.is-soldout .attendance-grid::after { content: "마일리지 소진"; position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(-8deg); padding: 14px 40px 12px; border: 5px double #e2483d; border-radius: 12px; background: rgba(28,10,14,.92); color: #ff6a5c; font-family: 'Miwon', sans-serif; font-size: 40px; letter-spacing: 4px; white-space: nowrap; text-shadow: 0 0 10px rgba(226,72,61,.55); box-shadow: 0 0 0 3px rgba(226,72,61,.2), 0 10px 24px rgba(0,0,0,.6); }
@media (max-width: 720px) { .section--attendance.is-soldout .attendance-grid::after { font-size: 28px; padding: 10px 26px 8px; letter-spacing: 3px; } }
.attendance-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.attendance-day { display: inline-flex; align-items: center; justify-content: center; width: 100px; aspect-ratio: 907/290; background: url('../assets/day_bg.webp') center/100% 100% no-repeat; font-family: 'Miwon', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 1px; color: #fff3e0; }
.attendance-icon { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1/1; background: url('../assets/mission_bg.webp') center/contain no-repeat; }
.attendance-icon img { position: absolute; bottom: 22%; left: 50%; transform: translateX(-50%); width: 62%; z-index: 1; }
.attendance-label { position: absolute; top: 14%; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.attendance-cond { font-family: 'Miwon', sans-serif; font-weight: 400; font-size: 13px; color: #5c3a1a; }
/* 조건 문구 앞 시계 아이콘 (텍스트 색을 따라감) */
.attendance-cond { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.attendance-cond::before { content: ""; flex-shrink: 0; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279.5%27/%3E%3Cpath d=%27M12 6.5V12l3.5 2.2%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%279.5%27/%3E%3Cpath d=%27M12 6.5V12l3.5 2.2%27/%3E%3C/svg%3E") center/contain no-repeat; }
.attendance-banner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 16px 24px; background: linear-gradient(90deg, rgba(10,14,40,0.92), rgba(28,22,72,0.92) 50%, rgba(10,14,40,0.92)); position: relative; border-top: 3px solid #04061a; border-bottom: 3px solid #04061a; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%); }
.attendance-banner .amount { font-family: 'Miwon', sans-serif; font-weight: 400; font-size: 24px; color: #f0c869; }
.attendance-banner span { font-family: 'Miwon', sans-serif; font-weight: 400; font-size: 18px; color: #fff; }
/* 박스 안쪽 한 겹 더: 박스 색보다 밝은 라인 */
.attendance-banner::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; bottom: 3px; border-top: 2px solid rgba(150,140,230,0.55); border-bottom: 2px solid rgba(150,140,230,0.55); pointer-events: none; }
/* 종이 질감: 별도 레이어로 올려 투명도로 세기 조절 (mask가 쌓임 맥락을 만들어 z-index:-1이 박스 배경 위, 텍스트 아래에 깔림) */
.attendance-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/paper_bg.webp") center/cover no-repeat; mix-blend-mode: hard-light; opacity: 0.9; pointer-events: none; }
/* dot.webp 모양을 마스크로 써서 안쪽 라인과 같은 연보라색으로 칠함 */
.attendance-banner span.attendance-banner__dot { width: 14px; height: auto; aspect-ratio: 40/39; flex-shrink: 0; background: rgba(150,140,230,0.55); -webkit-mask: url("../assets/dot.webp") center/contain no-repeat; mask: url("../assets/dot.webp") center/contain no-repeat; }

/* ---------- 누적플레이 미션 ---------- */
/* 두루마리: 종이(::before) + 양쪽 축(.reward-scroll) + 안쪽 금색 표구 프레임 */
.reward-card { position: relative; container-type: inline-size; padding: 10px; max-width: 900px; margin: 0 auto; filter: drop-shadow(0 18px 28px rgba(27,35,80,.35)); }
/* 종이: 축 쪽으로 말려 들어가는 음영 + 은은한 광택 + 가장자리 비네팅, 위/아래는 찢어진 한지 결 마스크 */
.reward-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(8,6,34,.7) 0%, rgba(8,6,34,.25) 2.5%, rgba(255,255,255,.08) 4.5%, rgba(255,255,255,0) 8%, rgba(255,255,255,0) 92%, rgba(255,255,255,.08) 95.5%, rgba(8,6,34,.25) 97.5%, rgba(8,6,34,.7) 100%),
    linear-gradient(112deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.07) 42%, rgba(255,255,255,0) 54%),
    radial-gradient(ellipse 75% 90% at 50% 50%, rgba(255,255,255,.06) 0%, rgba(20,14,60,0) 55%, rgba(20,14,60,.45) 100%),
    linear-gradient(180deg, rgba(10,8,40,.35) 0%, rgba(10,8,40,0) 10%, rgba(10,8,40,0) 90%, rgba(10,8,40,.35) 100%),
    url('../assets/paper_bg.webp') center/100% 100% no-repeat;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 8' preserveAspectRatio='none'%3E%3Cpath d='M0 8V4.6C6 4 9 3.2 15 3.9S26 5 33 4.2S41 2.6 50 3.4S63 4.9 71 4.4S80 3.1 88 3.6S101 5.2 109 4.5S118 2.9 127 3.3S141 4.8 149 4.3S156 4.1 160 4.6V8Z'/%3E%3C/svg%3E") top left/160px 7px repeat-x,
    linear-gradient(#000,#000) center/100% calc(100% - 14px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 8' preserveAspectRatio='none'%3E%3Cpath d='M0 0V3.4C7 4.1 11 4.9 18 4.2S30 2.9 38 3.6S47 5.3 57 4.6S70 3 79 3.5S90 4.8 99 4.4S110 2.8 119 3.4S132 5.1 141 4.5S154 3.2 160 3.4V0Z'/%3E%3C/svg%3E") bottom left/160px 7px repeat-x;
          mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 8' preserveAspectRatio='none'%3E%3Cpath d='M0 8V4.6C6 4 9 3.2 15 3.9S26 5 33 4.2S41 2.6 50 3.4S63 4.9 71 4.4S80 3.1 88 3.6S101 5.2 109 4.5S118 2.9 127 3.3S141 4.8 149 4.3S156 4.1 160 4.6V8Z'/%3E%3C/svg%3E") top left/160px 7px repeat-x,
    linear-gradient(#000,#000) center/100% calc(100% - 14px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 8' preserveAspectRatio='none'%3E%3Cpath d='M0 0V3.4C7 4.1 11 4.9 18 4.2S30 2.9 38 3.6S47 5.3 57 4.6S70 3 79 3.5S90 4.8 99 4.4S110 2.8 119 3.4S132 5.1 141 4.5S154 3.2 160 3.4V0Z'/%3E%3C/svg%3E") bottom left/160px 7px repeat-x;
}
.reward-card-inner { position: relative; z-index: 1; display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 44px 48px; }
/* 금박 프레임: 가운데가 빛나는 그라데이션 테두리 + 안쪽 얇은 선 */
/* 한지 이미지(img_bg_roll.png)는 금박 프레임(inset 12px) 안쪽에 딱 맞게. 프레임 선은 ::before가 위에 그려 그대로 보임 */
.reward-card-inner { background: url('../assets/img_bg_roll.webp') center/calc(100% - 24px) calc(100% - 24px) no-repeat; background-image: image-set(url('../assets/img_bg_roll.avif') type('image/avif'), url('../assets/img_bg_roll.webp') type('image/webp')); }
.reward-card-inner::before { content: ''; position: absolute; inset: 12px; z-index: -1; border: 1px solid; border-image: linear-gradient(90deg, rgba(240,200,105,.25), #e8b85a 18%, #fff0bf 50%, #e8b85a 82%, rgba(240,200,105,.25)) 1; outline: 1px solid rgba(240,200,105,.28); outline-offset: -6px; box-shadow: inset 0 0 24px rgba(90,60,20,.3), 0 1px 0 rgba(0,0,0,.25); pointer-events: none; }
.reward-corner { position: absolute; width: 26px; height: 26px; fill: rgba(240,200,105,.12); stroke: #f3d27e; stroke-width: 1.4; stroke-linecap: square; pointer-events: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.45)) drop-shadow(0 0 4px rgba(240,200,105,.35)); }
.reward-corner--tl { top: 6px; left: 6px; }
.reward-corner--tr { top: 6px; right: 6px; transform: scaleX(-1); }
.reward-corner--bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.reward-corner--br { bottom: 6px; right: 6px; transform: scale(-1); }

/* 축: 원통 음영 + 금속 마개(손잡이) */
.reward-scroll { position: absolute; top: -24px; bottom: -24px; width: 28px; z-index: 2; pointer-events: none; filter: drop-shadow(3px 5px 6px rgba(10,8,40,.5)); }
.reward-scroll img { width: 100%; height: 100%; object-fit: fill; display: block; border-radius: 3px; }
.reward-scroll::after { content: ''; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 18%, rgba(255,255,255,.35) 34%, rgba(255,255,255,.06) 50%, rgba(0,0,0,.12) 72%, rgba(0,0,0,.55) 100%); }
.reward-scroll__cap { position: absolute; left: 50%; z-index: 1; width: 36px; height: 14px; transform: translateX(-50%); border-radius: 4px / 7px; background: linear-gradient(90deg, #5c3808 0%, #b07a1e 14%, #f7dc8f 34%, #fff6d6 44%, #e6b451 62%, #9a6a18 84%, #4a2d06 100%); box-shadow: inset 0 2px 0 rgba(255,246,214,.55), inset 0 -2px 0 rgba(60,36,6,.55), 0 2px 3px rgba(0,0,0,.4); }
/* 마개 끝의 둥근 장식(보주) */
.reward-scroll__cap::before { content: ''; position: absolute; left: 50%; width: 16px; height: 11px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at 38% 30%, #fff6d6 0%, #f0c869 35%, #a06c16 75%, #5c3808 100%); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
/* 축과 마개 사이 어두운 링 */
.reward-scroll__cap::after { content: ''; position: absolute; left: 3px; right: 3px; height: 3px; background: linear-gradient(90deg, #2a1a04, #6b4a14 40%, #2a1a04); border-radius: 2px; }
.reward-scroll__cap--top { top: -12px; }
.reward-scroll__cap--top::before { bottom: 100%; margin-bottom: -2px; }
.reward-scroll__cap--top::after { top: 100%; }
.reward-scroll__cap--bottom { bottom: -12px; }
.reward-scroll__cap--bottom::before { top: 100%; margin-top: -2px; }
.reward-scroll__cap--bottom::after { bottom: 100%; }
.reward-scroll--left { left: -16px; }
.reward-scroll--right { right: -16px; transform: scaleX(-1); }

/* 보상 상자: 펄스 광원 + 천천히 도는 빛줄기 + 바닥 그림자 */
.reward-box-glow { position: relative; flex-shrink: 0; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.reward-box-glow::after { content: ''; position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; margin: -65px 0 0 -79px; /* 상자 그림 중심에 맞춤 */ border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,220,120,.45) 0deg 5deg, rgba(255,220,120,0) 5deg 22.5deg); -webkit-mask: radial-gradient(circle, #000 18%, rgba(0,0,0,.5) 42%, transparent 68%); mask: radial-gradient(circle, #000 18%, rgba(0,0,0,.5) 42%, transparent 68%); animation: box-rays-spin 24s linear infinite; z-index: 0; }
.reward-box-glow img { position: relative; width: 180px; height: 180px; object-fit: contain; z-index: 1; }
@keyframes box-rays-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reward-box-glow::after { animation: none; } }

/* 보상 정보: 왼쪽 [먹물+상자] / 오른쪽 [상품명+구성품]. 오른쪽 아래 캐릭터 자리만큼 우측 여백을 넉넉히 */
.reward-card-inner { flex-direction: row; flex-wrap: nowrap; gap: 44px; padding: 72px 180px 76px 64px; }
/* 상품명+구성품 텍스트 이미지 (272x129) */
.reward-text-pic { position: relative; z-index: 1; display: block; flex-shrink: 1; min-width: 0; } /* 모바일은 가운데 정렬 버전 _m.png */
.reward-text-img { display: block; width: 272px; max-width: 100%; height: auto; }
/* 상자 밑 먹물 자국: 상자보다 크게 깔아 파란 빛이 어두운 먹 위에서 또렷이 보이게 */
.reward-box-glow .reward-ink { position: absolute; top: 50%; left: 50%; z-index: 0; width: 220px; height: auto; max-width: none; transform: translate(calc(-50% - 9px), calc(-50% + 10px)); pointer-events: none; filter: none; } /* 상자 그림의 실제 중심(이미지 중심보다 좌하단)과 먹물 그림 중심(살짝 우측)을 맞춘 보정값 */
.reward-box-glow::after { z-index: 1; }
.reward-box-glow img:not(.reward-ink) { z-index: 2; }
/* 백선운 탄 캐릭터: 두루마리 오른쪽 아래 모서리에 걸쳐 앉은 배치. 픽셀아트라 pixelated + 둥실 */
.reward-character { position: absolute; right: 10px; bottom: -30px; z-index: 3; width: 220px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 12px 10px rgba(10,8,40,.45)); pointer-events: none; animation: characterFloat 3.2s ease-in-out infinite; }
@keyframes characterFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .reward-character { animation: none; } }
@media (max-width: 720px) {
  .reward-card-inner { flex-direction: column; gap: 20px; padding: 56px 24px 160px; background-image: url('../assets/img_bg_roll_m.webp'); }
  .reward-box-glow .reward-ink { width: 200px; }
  /* 모바일: 하단 가운데 (transform은 둥실 애니메이션이 쓰므로 margin으로 중앙 정렬) */
  .reward-character { right: auto; left: 50%; margin-left: -90px; bottom: -40px; width: 180px; }
}

/* 스크롤 진입 시 두루마리 펼침 (JS가 .js-unroll을 붙인 경우에만 숨김 상태 적용)
   - 진행도 하나(--unroll: 0→1)만 transition하고, 종이·내용 clip과 축 위치를 모두 이 값에서 계산
     → transform(합성 스레드)과 clip-path(메인 스레드)를 따로 애니메이션하면 축이 종이보다 앞서 가는 어긋남이 생기므로 한 값으로 묶음
   - 닫힌 상태에서 두 축이 가운데서 맞닿도록 이동 거리 = 50cqw(패딩 제외 폭의 절반) - 2px
   - @property 미지원 브라우저는 애니메이션 없이 바로 펼쳐진 상태로 보임 */
@property --unroll { syntax: '<number>'; inherits: true; initial-value: 1; }
.reward-card.js-unroll { --unroll: 0; --unroll-rest: calc(1 - var(--unroll)); transition: --unroll 1.3s cubic-bezier(.6,0,.3,1); }
.reward-card.js-unroll.is-unrolled { --unroll: 1; }
.reward-card.js-unroll::before,
.reward-card.js-unroll .reward-card-inner { clip-path: inset(0 calc(50% * var(--unroll-rest)) 0 calc(50% * var(--unroll-rest))); }
.reward-card.js-unroll .reward-scroll--left { transform: translateX(calc((50cqw - 2px) * var(--unroll-rest))); }
.reward-card.js-unroll .reward-scroll--right { transform: translateX(calc((-50cqw + 2px) * var(--unroll-rest))) scaleX(-1); }
/* 캐릭터는 두루마리가 다 펼쳐진 뒤 등장 */
.reward-card.js-unroll .reward-character { opacity: 0; translate: 0 16px; transition: opacity .5s ease 1.1s, translate .5s var(--ease-out) 1.1s; }
.reward-card.js-unroll.is-unrolled .reward-character { opacity: 1; translate: 0 0; }

/* ---------- 쿠폰 등록 방법 ---------- */
/* 쿠폰 등록 카드: 디자인된 이미지(img_aos.png / img_ios.png, 505x325) 두 장 */
.section--how-bg .section-inner { max-width: 1100px; }
.redeem-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 20px; }
.redeem-method { position: relative; width: 505px; max-width: 100%; }
.redeem-method-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); }
/* iOS 카드: 이미지 하단 빈 공간 위에 쿠폰 등록 페이지 바로가기 버튼(btn_coupon.png 301x76, 카드 폭에 비례) */
.redeem-method .redeem-method-link { position: absolute; left: 50%; bottom: 13%; translate: -50% 0; width: 52%; }
.redeem-method-link { display: block; line-height: 0; }
@media (max-width: 720px) { .redeem-method .redeem-method-link { width: 68%; bottom: 15%; } } /* 모바일: 버튼 크게 */
.redeem-method-link img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }

/* ---------- 쿠폰 등록 / 참여 방법 (스텝) ---------- */
.step-grid { --step-gap: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--step-gap); }
@media (max-width: 720px) {
  .step-grid { grid-template-columns: 1fr; gap: 56px; }
}
/* 종이 카드: 이미지 + STEP 메달 + 설명을 한 장의 종이(step_bg.png) 안에 */
.step-card { position: relative; width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 4/5; align-self: stretch; /* 글이 긴 카드가 늘어나면 같은 줄의 카드도 같은 높이로 */ padding: 11% 10% 15%; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; text-align: center; }
/* 종이 배경+그림자는 별도 레이어로: 텍스트에 filter가 걸리면 안티에일리어싱이 꺼져 글자가 계단처럼 깨짐 */
.step-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../assets/step_bg.webp') center/100% 100% no-repeat; background-image: image-set(url('../assets/step_bg.avif') type('image/avif'), url('../assets/step_bg.webp') type('image/webp')); filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)); transition: filter .35s var(--ease-out); }
/* 이미지 영역 높이를 고정해 STEP 뱃지가 세 카드에서 같은 높이에 오도록 */
/* 이미지 비율이 제각각이라 같은 크기 액자 안에 잘림 없이(contain) 담아 크기를 통일 */
.step-icon { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4/3; flex-shrink: 0; padding: 6px; border-radius: 4px; background: rgba(214,196,166,.35); overflow: hidden; }
.step-icon img { width: 100%; height: 100%; object-fit: contain; }
/* 카드 사이 연결 화살표(» 모양, 오른쪽으로 살짝 흐름) */
.step-card:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: calc(var(--step-gap) / -2 - 13px); width: 26px; height: 26px; margin-top: -13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0c869' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6l6 6-6 6'/%3E%3Cpath d='M12 6l6 6-6 6' opacity='.55'/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 0 5px rgba(240,200,105,.6)); animation: stepArrowNudge 1.6s ease-in-out infinite; }
@keyframes stepArrowNudge { 0%, 100% { transform: translateX(-3px); opacity: .7; } 50% { transform: translateX(3px); opacity: 1; } }
@media (max-width: 720px) {
  /* 모바일: 세로로 쌓이므로 화살표를 카드 아래에 아래 방향으로 */
  .step-card:not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: -40px; width: 24px; height: 24px; margin: 0 0 0 -12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0c869' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 5l6 6 6-6'/%3E%3Cpath d='M6 12l6 6 6-6' opacity='.55'/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 0 5px rgba(240,200,105,.6)); animation: stepArrowNudgeDown 1.6s ease-in-out infinite; }
}
@keyframes stepArrowNudgeDown { 0%, 100% { transform: translateY(-3px); opacity: .7; } 50% { transform: translateY(3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .step-card:not(:last-child)::after { animation: none; } }
/* STEP 뱃지: 출석체크 DAY 뱃지와 같은 붓칠 배경 */
.step-num { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 110px; flex-shrink: 0; margin-top: 10px; aspect-ratio: 907/290; background: url('../assets/day_bg.webp') center/100% 100% no-repeat; font-family: 'Miwon', sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 1px; color: #fff3e0; line-height: 1; }
.step-num small, .step-num span { font: inherit; }
.step-text { font-family: 'GounBatang', serif; text-wrap: balance; font-size: 16px; font-weight: 700; -webkit-text-stroke: .4px currentColor; color: #3b2a17; line-height: 1.6; word-break: keep-all; }
.step-text a { color: #9a5f0e; font-weight: 700; text-decoration: underline; }
/* 쿠폰 안내 바: 출석체크 미션 하단 띠(.attendance-banner) 디자인 재사용 */
.attendance-banner--notice { flex-wrap: nowrap; margin-top: 20px; padding: 16px 12%; }
.attendance-banner--notice .attendance-banner__text { flex: 0 1 auto; font-size: 15px; line-height: 1.6; text-align: center; text-wrap: balance; }
.attendance-banner--notice .attendance-banner__text .hl { font-size: inherit; color: #f0c869; }
/* 붉은 경고 톤: 배경·바깥 라인은 짙은 적색, 안쪽 라인·dot은 밝은 적색 */
.attendance-banner.attendance-banner--notice { background: linear-gradient(90deg, rgba(58,10,16,0.92), rgba(110,22,30,0.92) 50%, rgba(58,10,16,0.92)); border-top: 0; border-bottom: 0; } /* 가장 바깥 진한 선 제거 */
.attendance-banner--notice::before { top: 0; bottom: 0; border-top-color: rgba(255,120,110,0.55); border-bottom-color: rgba(255,120,110,0.55); }
.attendance-banner--notice::after { mix-blend-mode: luminosity; opacity: .35; }
.attendance-banner--notice span.attendance-banner__dot { background: rgba(255,120,110,0.7); }
.attendance-banner--notice span.attendance-banner__text, .attendance-banner--notice .attendance-banner__text .hl { font-family: 'Noto Sans KR', sans-serif; font-weight: 500; }
.attendance-banner--notice .attendance-banner__text .hl { font-weight: 700; color: #ffd27a; }
@media (max-width: 720px) {
  /* 모바일은 문장이 여러 줄이라 양끝 페이드를 줄여 글자가 흐려지지 않게 함 */
  .attendance-banner--notice { padding: 14px 8%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%); }
  .attendance-banner--notice .attendance-banner__text { font-size: 14px; }
}

/* ---------- 참여 방법 탭 ---------- */
/* 탭: 이미지 버튼 — 선택 p8_button_03(파랑), 미선택 p8_button_02(흰색) */
.tabs { display: flex; gap: 12px; justify-content: center; margin: 0 auto 32px; }
.tab-btn { width: 260px; aspect-ratio: 245/75; padding: 0 0 3px; border: none; border-radius: 0; background: url('../assets/p8_button_02.webp') center/100% 100% no-repeat; color: #2b4f93; font-family: 'Miwon', sans-serif; font-weight: 400; font-size: 19px; cursor: pointer; white-space: nowrap; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
@media (max-width: 720px) {
  /* 모바일: 탭 버튼을 크게, 위아래로 쌓음 */
  .tabs { flex-direction: column; align-items: center; gap: 10px; }
  .tab-btn { width: 100%; max-width: 300px; font-size: 19px; }
}
.tab-btn.active { background-image: url('../assets/p8_button_03.webp'); color: #fff; text-shadow: 0 1px 2px rgba(10,30,90,.6); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- 마일리지 사용처 ---------- */
.mileage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
/* 나무 액자 + 종이(use_bg.png) 카드. 배경+그림자는 ::before로 분리해 텍스트 렌더링 유지 */
.mileage-card { position: relative; isolation: isolate; padding: 9% 10% 10%; }
.mileage-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../assets/use_bg.webp') center/100% 100% no-repeat; background-image: image-set(url('../assets/use_bg.avif') type('image/avif'), url('../assets/use_bg.webp') type('image/webp')); filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)); }
.mileage-character { position: absolute; right: -16px; bottom: -16px; width: 100px; pointer-events: none; }
@media (max-width: 720px) { .mileage-character { right: -8px; bottom: -10px; width: 72px; } }
.mileage-card .thumb { width: 100%; aspect-ratio: 16/10; margin-bottom: 16px; overflow: hidden; border-radius: 4px; background: rgba(110,135,180,.15); display: flex; align-items: center; justify-content: center; }
.mileage-card .thumb img { width: 88%; height: 88%; object-fit: contain; }
.mileage-card:not(.mileage-card--char) .thumb img { width: 100%; height: 100%; } /* PC방 결제 이미지는 작아 보여 칸을 꽉 채움 */
.mileage-card .name { font-family: 'GounBatang', serif; font-weight: 700; -webkit-text-stroke: .6px currentColor; font-size: 17px; color: #2f4a7d; margin-bottom: 6px; }
.mileage-card .desc { font-family: 'GounBatang', serif; font-size: 14px; font-weight: 700; -webkit-text-stroke: .4px currentColor; color: #2a3150; line-height: 1.6; }
.mileage-notes { font-size: 12.5px; color: #9aa0c2; line-height: 1.8; margin-bottom: 24px; text-align: center; }
.mileage-guide-link { display: inline-flex; align-items: center; }
.mileage-guide-link img { display: block; width: 258px; max-width: 100%; height: auto; }
.mileage-guide-wrap { text-align: center; }

/* ---------- 유의사항 ---------- */
.notice-box { padding: 20px 24px; }
.notice-box summary { font-family: 'Miwon', sans-serif; font-weight: 400; font-size: 18px; color: #f0c869; list-style: none; cursor: pointer; }
.notice-box summary::-webkit-details-marker { display: none; }
.notice-box ul { margin: 16px 0 0; padding-left: 18px; font-size: 13px; line-height: 2.4; color: #b7bcd8; }
.notice-box ul a { color: #f0c869; text-decoration: underline; }

/* ════════════════════════════════════════
   CB HEADER · 공유하기
════════════════════════════════════════ */
.cb-header {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-h);
  background: linear-gradient(90deg, #000 0%, #060712 100%);
  box-shadow: inset 0px -1px 0px rgba(255,255,255,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-header__inner {
  max-width: 1440px;
  width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.cb-header__notice-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: center;
}
.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.toggle-btn__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cb-header__notice {
  font-size: clamp(12px, 1.1vw, 14px);
  color: #fff;
  line-height: 1.4;
  white-space: nowrap;
}
.cb-header__notice u { text-decoration: underline; }
.cb-header__notice b { font-weight: 700; }
.cb-header__notice a { color: #469CFF; text-decoration: none; }
.cb-header__notice a:hover u { opacity: 0.8; }

.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #fff;
  border: none;
  border-radius: 50px;
  padding: 6px 12px;
  height: 32px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  box-sizing: border-box;
  flex-shrink: 0;
}
.btn-share:hover { opacity: 0.85; }
.btn-share img { width: 12px; height: auto; display: block; }
.btn-share span {
  font-size: 12px;
  font-weight: 700;
  color: #111;
}

.mobile-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 1800;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mobile-fab__btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
.mobile-fab__btn img {
  display: block;
  width: 20px;
  height: 20px;
  filter: none;
}
.mobile-fab__btn--top {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  background: #f0f0f2;
  color: #111;
}
.mobile-fab__btn--top:hover {
  background: #e4e4e8;
}

.copy-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + 12px);
  transform: translate(-50%, 12px);
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  padding: 20px;
}
.share-modal.is-open { display: flex; }
.share-modal__dialog {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 28px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: shareModalIn 0.18s ease-out;
}
@keyframes shareModalIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.share-modal__title {
  font-family: 'GapyeongHanseokbongBigBrush', sans-serif;
  color: #111;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.share-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 26px;
  color: #555;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.15s;
}
.share-modal__close:hover { background: #f0f0f0; }
.share-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s;
  min-height: 44px;
}
.share-item:hover { background: #f5f5f7; }
.share-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.share-item__icon svg { width: 28px; height: 28px; display: block; }
.share-item--kakao     .share-item__icon { background: #FEE500; color: #181600; }
.share-item--facebook  .share-item__icon { background: #1877F2; }
.share-item--twitter   .share-item__icon { background: #000; }
.share-item--naver     .share-item__icon { background: #03C75A; }
.share-item--instagram .share-item__icon {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
}
.share-item--copy      .share-item__icon { background: #2c2c32; }
.share-item__label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .share-modal__dialog { padding: 28px 18px 22px; }
  .share-modal__grid { gap: 8px; }
  .share-item__icon { width: 52px; height: 52px; }
  .share-item__icon svg { width: 26px; height: 26px; }
  .share-item__label { font-size: 12px; }
}

@media (max-width: 1024px) {
  .cb-header {
    height: auto;
    min-height: var(--header-h);
    padding: 8px 0;
  }
  .cb-header__inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: min(16px, 2vw);
    padding: 0 24px;
  }
  .cb-header__notice-wrap {
    flex: 0 1 auto;
    min-width: 0;
  }
  .cb-header__notice {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .cb-header {
    height: auto;
    min-height: 44px;
    overflow: visible;
    align-items: stretch;
    padding: 8px 0;
  }
  .cb-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 max(12px, env(safe-area-inset-left, 0px)) 0 max(12px, env(safe-area-inset-right, 0px));
    min-width: 0;
    box-sizing: border-box;
  }
  .cb-header__notice-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 0;
    align-items: stretch;
    flex: none;
    overflow: visible;
  }
  .cb-header__notice {
    text-align: center;
    font-size: clamp(11px, 3.2vw, 14px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    overflow: visible;
  }
  .toggle-btn,
  .btn-share {
    display: none;
  }
  .mobile-fab {
    display: flex;
  }
}

/* ════════════════════════════════════════
   INTERACTIONS · 마우스오버 / 클릭 피드백
════════════════════════════════════════ */
:root { --ease-out: cubic-bezier(.22,1,.36,1); --gold: #f0c869; }

/* 키보드 포커스 */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* 공통 트랜지션 */
.hero-cta, .mileage-guide-link, .tab-btn, .redeem-method-link, .btn-share, .toggle-btn, .mobile-fab__btn,
.share-item__icon, .share-modal__close, .redeem-method, .mileage-card, .attendance-icon, .step-card,
.mileage-card .thumb img, .attendance-icon img {
  transition: transform .35s var(--ease-out), filter .35s var(--ease-out), box-shadow .3s ease, background-color .25s ease, border-color .25s ease, color .25s ease, opacity .25s ease;
}

/* 메인 CTA: 커졌다 작아졌다 하는 펄스 + 크게 커질 때 연보라 오라가 함께 번짐 + 호버 시 떠오름 */
/* pulse lives on the inner img so hover/active can transform the link itself without cancelling the pulse (cancelling it made the button snap smaller on hover) */
.hero-cta img { animation: ctaPulse 1.6s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)) drop-shadow(0 0 4px rgba(196,160,255,.25)); }
  50%      { transform: scale(1.08); filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)) drop-shadow(0 0 16px rgba(196,160,255,.75)); }
}
.hero-cta:active { transform: translateY(1px) scale(.96); }
.mileage-guide-link:active { transform: scale(.96); }

/* 탭 */
.tab-btn:active { transform: scale(.96); }

/* 링크형 버튼 */
.redeem-method-link:active { transform: scale(.96); }

/* 헤더 */
.btn-share:active { transform: scale(.94); }
.toggle-btn:active { transform: scale(.94); }

/* 모바일 플로팅 */
.mobile-fab__btn:active { transform: scale(.9); box-shadow: 0 4px 10px rgba(0,0,0,.25); }

/* 공유 모달 */
.share-item:active .share-item__icon { transform: scale(.92); }

/* 탭 패널 전환 */
.tab-panel.active { animation: tabFadeIn .45s var(--ease-out); }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 유의사항 접기/펼치기 화살표 */
.notice-box summary { display: inline-flex; align-items: center; gap: 8px; user-select: none; }
.notice-box summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease-out); }
.notice-box:not([open]) summary::after { transform: translateY(1px) rotate(-45deg); }
.notice-box[open] ul { animation: tabFadeIn .4s var(--ease-out); }

/* 마우스 환경에서만 호버 적용 (모바일 hover 고착 방지) */
@media (hover: hover) and (pointer: fine) {
  .hero-cta:hover { transform: translateY(-4px) scale(1.06); filter: brightness(1.12) drop-shadow(0 0 18px rgba(196,160,255,.85)); }
  .mileage-guide-link:hover { transform: translateY(-3px); filter: brightness(1.1) drop-shadow(0 6px 14px rgba(0,0,0,.4)) drop-shadow(0 0 12px rgba(240,200,105,.5)); }

  .tab-btn:not(.active):hover { transform: translateY(-2px); filter: brightness(1.05) drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
  .tab-btn.active:hover { filter: brightness(1.08) drop-shadow(0 0 12px rgba(80,150,255,.55)); }

  .redeem-method-link:hover { transform: translateY(-2px); filter: brightness(1.08); }

  .btn-share:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,255,255,.25); }
  .toggle-btn:hover { transform: scale(1.04); filter: brightness(1.12); }
  .cb-header__notice a:hover { color: #7cbaff; }
  .cb-header__notice a:hover u { opacity: 1; }

  .mobile-fab__btn:hover { transform: translateY(-2px); }

  .share-item:hover .share-item__icon { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 16px rgba(0,0,0,.18); }
  .share-modal__close:hover { transform: rotate(90deg); }

  /* 카드 */
  .attendance-card:not(.is-locked):hover .attendance-icon { transform: translateY(-6px); filter: drop-shadow(0 10px 18px rgba(240,200,105,.35)); }
  .attendance-card:not(.is-locked):hover .attendance-icon img { transform: translateX(-50%) scale(1.08) rotate(-3deg); }

  .step-card:hover { transform: translateY(-6px); }
  .step-card:hover::before { filter: drop-shadow(0 14px 20px rgba(143,214,255,.25)); }

  .redeem-method:hover { transform: translateY(-3px); }

  .mileage-card:hover { transform: translateY(-4px); }
  .mileage-card:hover .thumb img { transform: scale(1.05); }


  .notice-box summary:hover { color: #ffe9a8; }
  .notice-box ul a:hover { color: #ffe9a8; }
  .step-text a:hover { color: #c27a14; }
}

/* 지연 로딩: html.lazy-sections(head 인라인)인 동안 화면 아래 섹션의 CSS 배경 이미지를 받지 않음.
   script.js가 섹션이 화면 800px 앞까지 다가오면 .is-near를 붙여 그때 배경을 불러옴 (단색 배경색은 그대로 유지) */
.lazy-sections .section:not(.is-near),
.lazy-sections .section:not(.is-near)::before,
.lazy-sections .section:not(.is-near)::after,
.lazy-sections .section:not(.is-near) *,
.lazy-sections .section:not(.is-near) *::before,
.lazy-sections .section:not(.is-near) *::after { background-image: none !important; }

/* 스크롤 등장: script.js가 각 섹션의 .section-inner에 .reveal을 붙여 숨김 → 화면에 들어오면 .is-revealed로 섹션 전체가 한 번에 떠오름.
   transform 대신 개별 translate 속성을 써서 내부 요소들의 transform과 겹치지 않게 함 */
.reveal { opacity: 0; translate: 0 56px; transition: opacity .9s ease, translate 1.1s cubic-bezier(.22,.61,.36,1); }
.reveal.is-revealed { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-cta, .hero-cta img, .hero-star { animation: none; }
  .hero-star { opacity: .7; }
  .title-glints { display: none; }
  .intro .hero-layer img, .intro .hero-frame, .intro .hero-bi, .intro .hero-bi-partner,
  .intro .hero-title-img, .intro .hero-cta, .intro #star-layer { animation: none !important; }
  .tab-panel.active, .notice-box[open] ul { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
