/* app.css — 손으로 쓴 유틸리티 스케일 + 유틸로 만들기 애매한 위젯 컴포넌트
   변수/리셋/폰트는 base.css. 여기 값들은 base.css 토큰을 참조한다. */

/* ---------------------------------------------------------------------------
   레이아웃 프리미티브
--------------------------------------------------------------------------- */
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.4rem, 5vw, 4rem); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(14,16,41,.7) 18%, rgba(14,16,41,.7) 82%, transparent); }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }

/* 배경 글로우 블롭 + 컨페티 */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; pointer-events: none; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.confetti i { position: absolute; width: 12px; height: 12px; border-radius: 3px; opacity: .8; animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%,100%{ transform: translateY(0) rotate(0); } 50%{ transform: translateY(-16px) rotate(24deg); } }

/* ---------------------------------------------------------------------------
   헤더 / 네비 (반응형 상태가 많아 컴포넌트로 유지)
--------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,16,41,.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(14,16,41,.9); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.nav { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); }
.brand__logo { width: 36px; height: 36px; flex: none; }
.nav__links { display: flex; align-items: center; gap: .25rem; margin-left: .6rem; }
.nav__links a { padding: .5em .9em; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--muted); transition: background .16s ease, color .16s ease; }
.nav__links a:hover { background: rgba(255,255,255,.08); color: var(--cream); }
.nav__links a.is-active { color: #fff; background: rgba(255,90,95,.16); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 13px; align-items: center; justify-content: center; margin-left: auto; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.05); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2.4px; border-radius: 2px; background: var(--cream); position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------------------
   버튼
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 800; padding: .9em 1.7em; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  will-change: transform; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: var(--glow-coral); }
.btn--primary:hover { background: var(--coral-d); transform: translateY(-2px); box-shadow: 0 18px 50px rgba(255,90,95,.6); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--glow-blue); }
.btn--blue:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(43,111,255,.6); }
.btn--mint { background: var(--mint); color: #05231c; box-shadow: var(--glow-mint); }
.btn--mint:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(23,212,167,.55); }
.btn--ghost { background: rgba(255,255,255,.06); color: var(--cream); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: var(--cream); }
.btn--lg { padding: 1.04em 2.1em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------------
   눈썹 라벨 / 섹션 헤딩
--------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 800; letter-spacing: .04em;
  color: var(--yellow); background: rgba(255,203,43,.1);
  border: 1.5px solid rgba(255,203,43,.32);
  padding: .42em 1em; border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,90,95,.25); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.5; transform:scale(.7);} }
.h-sec { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-top: 1rem; }
.h-sec .accent { color: var(--coral); }
.h-sec .accent-b { color: var(--blue); }
.h-sec .accent-m { color: var(--mint); }
.lead { font-size: clamp(1rem, 2.2vw, 1.16rem); color: var(--muted); max-width: 42ch; }
.sec-head { max-width: 48ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   히어로
--------------------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 3.6rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.4rem, 6.4vw, 4.5rem); letter-spacing: -.02em; margin: 1.1rem 0 .4rem; line-height: 1.06; }
.hero__title .grad { background: linear-gradient(100deg, var(--coral), var(--yellow) 45%, var(--mint) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .pop { color: var(--yellow); }
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 36ch; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem 1.6rem; margin-top: 1.8rem; }
.hero__phone-wrap { position: relative; display: grid; place-items: center; }
.hero__phone-wrap .phone { transform: rotate(2.5deg); }

/* 스토어 배지 */
.store-badges { display: flex; flex-wrap: wrap; gap: .7rem; }
.store-badge { display: inline-flex; transition: transform .18s ease, box-shadow .18s ease; border-radius: 13px; }
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.store-badge svg, .store-badge img { height: 56px; width: auto; border-radius: 13px; }

/* 별점 & 라이브 스트립 */
.rating { display: flex; align-items: center; gap: .55rem; }
.rating__stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.rating__stars svg { width: 20px; height: 20px; }
.rating__num { font-weight: 900; font-size: 1.1rem; color: var(--cream); }
.rating small { color: var(--muted); font-weight: 500; }
.badge-free { font-weight: 800; color: var(--mint); background: rgba(23,212,167,.15); padding: .32em .85em; border-radius: 999px; font-size: .9rem; }
.live-pill { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.06); border: 1.5px solid var(--line-2); border-radius: 999px; padding: .5em 1em; font-weight: 700; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(23,212,167,.22); animation: pulse 1.6s ease-in-out infinite; flex: none; }
.live-pill b { color: var(--mint); font-weight: 900; font-variant-numeric: tabular-nums; }
.live-pill small { color: var(--muted); font-weight: 600; }
.qr { display: flex; align-items: center; gap: .7rem; }
.qr img { width: 76px; height: 76px; border-radius: 13px; box-shadow: var(--shadow-sm); }
.qr small { color: var(--muted); font-weight: 600; font-size: .82rem; max-width: 10ch; }

/* ---------------------------------------------------------------------------
   폰 목업 (프레임은 유틸로 표현 불가 → 컴포넌트)
--------------------------------------------------------------------------- */
.phone {
  --pw: 296px;
  width: var(--pw); aspect-ratio: 296 / 610; position: relative;
  background: #05061a; border-radius: 44px; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 20px; background: #05061a; border-radius: 999px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--ink-2); position: relative; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }

/* 폰 주변 떠다니는 칩 */
.float-chip {
  position: absolute; background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 16px; padding: .55rem .8rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .86rem;
  z-index: 2; animation: floaty 5s ease-in-out infinite; color: var(--cream);
}
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.float-chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-chip--a { top: 4%; left: -7%; animation-delay: 0s; }
.float-chip--b { bottom: 20%; right: -9%; animation-delay: 1.4s; }
.float-chip--c { bottom: -2%; left: 6%; animation-delay: .7s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-11px); } }

/* ---------------------------------------------------------------------------
   카운터 밴드
--------------------------------------------------------------------------- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.counter { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm); }
.counter__num { font-family: var(--font-display); font-size: clamp(1.8rem, 4.6vw, 2.6rem); color: var(--yellow); line-height: 1; }
.counter__num .suffix { font-size: .55em; color: var(--coral); }
.counter__label { color: var(--muted); font-weight: 600; margin-top: .5rem; font-size: .93rem; }

/* ---------------------------------------------------------------------------
   카드 / 피처
--------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.card__ic svg { width: 32px; height: 32px; }
.card h3 { font-size: 1.26rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card__tag { display: inline-block; margin-top: .9rem; font-size: .78rem; font-weight: 800; color: var(--cream); background: rgba(255,255,255,.07); padding: .3em .8em; border-radius: 999px; }

/* 아이콘 배경 틴트 */
.tint-coral  { background: rgba(255,90,95,.16); color: var(--coral); }
.tint-blue   { background: rgba(43,111,255,.18); color: #6f9dff; }
.tint-yellow { background: rgba(255,203,43,.18); color: var(--yellow); }
.tint-mint   { background: rgba(23,212,167,.16); color: var(--mint); }
.tint-pink   { background: rgba(255,126,200,.16); color: var(--pink); }

/* 큰 스플릿 피처 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { display: grid; place-items: center; }
.feature-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .fic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; margin-top: 2px; }
.feature-list b { display: block; color: var(--cream); }
.feature-list span { color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------------------
   미니게임 쇼케이스 (탭 + 캐러셀)
--------------------------------------------------------------------------- */
.tabs__nav { display: inline-flex; flex-wrap: wrap; gap: .35rem; background: var(--panel); border: 1.5px solid var(--line); padding: .4rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.tabs__btn { padding: .58em 1.2em; border-radius: 999px; font-weight: 800; color: var(--muted); transition: color .16s ease, background .16s ease; font-size: .93rem; }
.tabs__btn[aria-selected="true"] { color: #fff; background: var(--coral); box-shadow: var(--glow-coral); }
.tabs__panels { margin-top: 2rem; }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeUp .4s ease; }
.showcase { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.showcase__copy .badge-lvl { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .82rem; color: var(--yellow); background: rgba(255,203,43,.12); padding: .3em .85em; border-radius: 999px; margin-bottom: .9rem; }
.showcase__copy h3 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: .7rem; }
.showcase__copy .lead { max-width: 42ch; }
.showcase__media { display: grid; place-items: center; }
.mini-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip { background: rgba(255,255,255,.06); border: 1.5px solid var(--line-2); padding: .5em 1em; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--cream); }
.chip .em { color: var(--yellow); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.showcase-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.8rem; }
.showcase-dots button { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); transition: transform .16s ease, background .16s ease; }
.showcase-dots button[aria-selected="true"] { background: var(--coral); transform: scale(1.25); }

/* ---------------------------------------------------------------------------
   스텝 / 타임라인
--------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.step { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.7rem; box-shadow: var(--shadow-sm); position: relative; }
.step__n { font-family: var(--font-display); font-size: 1.15rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; margin-bottom: 1rem; box-shadow: var(--glow-coral); }
.step h3 { font-size: 1.16rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }

.timeline { max-width: 780px; margin-inline: auto; display: grid; gap: 1rem; position: relative; }
.tl-row { display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; align-items: start; }
.tl-mark { display: grid; place-items: center; }
.tl-num { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; color: #fff; flex: none; }
.tl-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.tl-card h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.tl-card p { color: var(--muted); font-size: .96rem; }
.tl-card .tl-meta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; font-size: .82rem; font-weight: 700; color: var(--mint); }

/* ---------------------------------------------------------------------------
   미니게임 카탈로그
--------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.6rem; }
.pill { padding: .5em 1.15em; border-radius: 999px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.04); font-weight: 700; font-size: .9rem; color: var(--muted); transition: background .14s ease, color .14s ease, border-color .14s ease; }
.pill:hover { color: var(--cream); }
.pill.is-on { background: var(--coral); color: #fff; border-color: var(--coral); }

.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.gcard { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.gcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.gcard__art { aspect-ratio: 1 / 1; position: relative; overflow: hidden; background: var(--ink-2); }
.gcard__art img { width: 100%; height: 100%; object-fit: cover; }
.gcard__art .gcard__svg { width: 100%; height: 100%; display: grid; place-items: center; }
.gcard__art .gcard__svg svg { width: 46%; height: 46%; }
.gcard__diff { position: absolute; top: .7rem; left: .7rem; font-size: .72rem; font-weight: 800; padding: .28em .7em; border-radius: 999px; color: #05061a; backdrop-filter: blur(4px); }
.diff-easy { background: var(--mint); }
.diff-mid  { background: var(--yellow); }
.diff-hard { background: var(--coral); color:#fff; }
.gcard__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.gcard__body h3 { font-size: 1.14rem; margin-bottom: .3rem; }
.gcard__body p { color: var(--muted); font-size: .88rem; margin-bottom: .8rem; }
.gcard__stats { display: flex; gap: 1rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); font-weight: 600; }
.gcard__stats span { display: inline-flex; align-items: center; gap: .3rem; }
.gcard__stats svg { width: 15px; height: 15px; color: var(--muted-2); }
.gcard__tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.tagpill { font-size: .74rem; font-weight: 800; color: var(--pink); background: rgba(255,126,200,.12); padding: .24em .7em; border-radius: 999px; }
.tagpill.t-brain { color: var(--blue); background: rgba(43,111,255,.14); }
.tagpill.t-coop  { color: var(--mint); background: rgba(23,212,167,.13); }
.tagpill.t-vs    { color: var(--coral); background: rgba(255,90,95,.14); }
.tagpill.t-quick { color: var(--yellow); background: rgba(255,203,43,.14); }

/* ---------------------------------------------------------------------------
   이모트 / 시즌·랭킹 / 리뷰
--------------------------------------------------------------------------- */
.emote-band { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.emote-shot { border-radius: var(--r-xl); overflow: hidden; border: 1.5px solid var(--line); box-shadow: var(--shadow); position: relative; }
.emote-shot img { width: 100%; height: auto; display: block; }
.emote-rows { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.emote-tag { display: inline-flex; align-items: center; gap: .45rem; background: var(--panel); border: 1.5px solid var(--line-2); border-radius: 999px; padding: .5em 1em; font-weight: 800; font-size: .92rem; }
.emote-tag .e { font-size: 1.15rem; }

.season { background: linear-gradient(135deg, #241f57, #3a2470); color: #fff; border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); position: relative; overflow: hidden; border: 1.5px solid var(--line-2); }
.season::after { content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(255,90,95,.5), transparent 70%); }
.season__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; position: relative; z-index: 1; }
.season h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.season .lead { color: rgba(255,255,255,.82); max-width: 40ch; }
.progress { margin-top: 1.6rem; }
.progress__bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint), var(--yellow)); width: 72%; }
.progress__meta { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .88rem; color: rgba(255,255,255,.82); font-weight: 700; }

.rank-list { display: grid; gap: .7rem; }
.rank-row { display: flex; align-items: center; gap: 1rem; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); padding: .9rem 1.2rem; box-shadow: var(--shadow-sm); transition: transform .16s ease; }
.rank-row:hover { transform: translateX(4px); }
.rank-num { font-family: var(--font-display); font-size: 1.4rem; width: 38px; text-align: center; flex: none; color: var(--muted); }
.rank-row.top1 .rank-num { color: var(--yellow); }
.rank-row.top2 .rank-num { color: #cfd3ff; }
.rank-row.top3 .rank-num { color: var(--coral); }
.rank-ava { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 1.5rem; background: rgba(255,255,255,.06); border: 1.5px solid var(--line-2); }
.rank-info { flex: 1; min-width: 0; }
.rank-info b { display: block; color: var(--cream); }
.rank-info small { color: var(--muted); }
.rank-score { font-weight: 900; color: var(--yellow); font-variant-numeric: tabular-nums; }
.rank-medal { font-size: 1.35rem; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.review { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.review__stars { display: inline-flex; gap: 2px; margin-bottom: .8rem; color: var(--yellow); }
.review__stars svg { width: 17px; height: 17px; }
.review__text { font-size: 1rem; margin-bottom: 1.1rem; color: var(--cream); }
.review__by { display: flex; align-items: center; gap: .7rem; }
.review__ava { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 1.4rem; background: rgba(255,255,255,.06); border: 1.5px solid var(--line-2); }
.review__name { font-weight: 800; font-size: .92rem; color: var(--cream); }
.review__name small { display: block; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------------------
   CTA / 파티 에디토리얼 / 이벤트
--------------------------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--coral), var(--pink) 55%, var(--blue)); border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 3.8rem); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.28), transparent 40%), radial-gradient(circle at 82% 82%, rgba(255,203,43,.4), transparent 45%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.94); margin-inline: auto; margin-top: .6rem; }
.cta-band .store-badges { justify-content: center; margin-top: 1.8rem; }
.cta-band .store-badge svg { filter: drop-shadow(0 8px 20px rgba(0,0,0,.28)); }

.party-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1.5px solid var(--line-2); box-shadow: var(--shadow); isolation: isolate; }
.party-hero img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -1; }
.party-hero__inner { padding: clamp(2rem, 6vw, 4.5rem); background: linear-gradient(100deg, rgba(14,16,41,.92) 0%, rgba(14,16,41,.7) 45%, transparent 78%); }
.party-hero__inner .lead { color: rgba(255,255,255,.9); }
.party-hero .display { font-size: clamp(2rem, 5.5vw, 3.4rem); }

.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.theme-card { display: grid; grid-template-columns: 88px 1fr; gap: 1.2rem; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; align-items: center; }
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.theme-card__ic { width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; font-size: 2.6rem; }
.theme-card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.theme-card p { color: var(--muted); font-size: .94rem; margin-bottom: .6rem; }
.theme-card .tagpill { position: static; }

.event-banner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.event { border-radius: var(--r-lg); padding: 1.7rem; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.event h3 { font-size: 1.24rem; margin: .6rem 0 .4rem; color: #fff; }
.event p { font-size: .93rem; color: rgba(255,255,255,.85); }
.event .event__date { font-weight: 800; font-size: .8rem; letter-spacing: .03em; }
.event--a { background: linear-gradient(150deg, #2a2f78, #1a1d47); }
.event--b { background: linear-gradient(150deg, #7a2340, #3a1730); }
.event--c { background: linear-gradient(150deg, #16564a, #123a33); }

/* ---------------------------------------------------------------------------
   폼 / 안전 / FAQ
--------------------------------------------------------------------------- */
.form-card { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 800; margin-bottom: .5rem; font-size: .95rem; color: var(--cream); }
.field .req { color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: 14px; border: 1.5px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--cream); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select { appearance: none; }
.field select option { color: #111; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,90,95,.18); background: rgba(255,255,255,.07); }
.field textarea { min-height: 120px; resize: vertical; }
.field__hint { color: var(--muted); font-size: .84rem; margin-top: .4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success.show { display: block; animation: fadeUp .4s ease; }
.form-success .checkmk { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(23,212,167,.16); color: var(--mint); display: grid; place-items: center; }
.form-success .checkmk svg { width: 38px; height: 38px; }
.form-success h3 { font-size: 1.5rem; }

.safe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.safe { display: flex; gap: 1rem; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.safe .sic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.safe h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.safe p { color: var(--muted); font-size: .92rem; }

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { padding: 1.15rem 1.4rem; font-weight: 800; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--coral); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* 내부 페이지 히어로 */
.page-hero { padding-top: clamp(2.2rem, 5vw, 3.6rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); text-align: center; position: relative; overflow: hidden; }
.page-hero__title { font-size: clamp(2rem, 5.6vw, 3.5rem); margin: 1rem 0 .5rem; }
.page-hero .lead { margin-inline: auto; }
.breadcrumb { font-size: .86rem; color: var(--muted); font-weight: 700; }
.breadcrumb a:hover { color: var(--coral); }

/* ---------------------------------------------------------------------------
   푸터
--------------------------------------------------------------------------- */
.site-footer { background: var(--ink-2); color: var(--muted); padding-block: 3.5rem 2rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.footer-about { max-width: 34ch; margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.06); border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .16s ease, transform .16s ease; }
.footer-social a:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-2px); color:#fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .3rem 0; color: var(--muted); font-size: .93rem; transition: color .14s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--muted-2); }
.legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.legal-open { text-decoration: underline; color: var(--muted); font-weight: 700; }
.legal-open:hover { color: #fff; }
.footer-biz { font-size: .8rem; color: var(--muted-2); line-height: 1.7; margin-top: 1rem; }

/* ---------------------------------------------------------------------------
   모달 (포커스 트랩/ESC/백드롭은 JS, 스타일은 여기)
--------------------------------------------------------------------------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: var(--space); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5,6,20,.72); backdrop-filter: blur(5px); animation: fadeIn .2s ease; }
.modal__panel { position: relative; z-index: 1; width: min(720px, 100%); max-height: 85vh; overflow-y: auto; background: var(--panel); color: var(--cream); padding: 2.4rem; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1.5px solid var(--line-2); animation: fadeUp .28s ease; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 12px; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1.5px solid var(--line-2); transition: background .14s ease; }
.modal__close:hover { background: rgba(255,255,255,.12); }
.modal__panel h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.modal__panel h3 { font-size: 1.06rem; margin: 1.4rem 0 .5rem; color: var(--cream); }
.modal__panel p, .modal__panel li { color: var(--muted); font-size: .93rem; margin-bottom: .5rem; }
.modal__panel ul { list-style: disc; padding-left: 1.2rem; }
.modal__updated { font-size: .82rem; color: var(--muted-2); margin-bottom: 1rem; }
.legal-table { width: 100%; border-collapse: collapse; margin: .8rem 0 1rem; font-size: .88rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line-2); padding: .55rem .7rem; text-align: left; color: var(--cream); }
.legal-table th { background: rgba(255,255,255,.05); font-weight: 700; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 스크롤 리빌 + 스킵 링크 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--coral); color: #fff; padding: .7em 1.2em; border-radius: 0 0 12px 0; font-weight: 800; }
.skip-link:focus { left: 0; }

/* 스프라이트 아이콘 크기 컨텍스트 */
svg.ic { width: 24px; height: 24px; flex: none; }
.card__ic svg.ic { width: 32px; height: 32px; }
.feature-list .fic svg.ic { width: 18px; height: 18px; }
.safe .sic svg.ic { width: 26px; height: 26px; }
.float-chip .ic svg.ic { width: 20px; height: 20px; }
.footer-social svg.ic { width: 20px; height: 20px; }
.nav__cta .btn svg.ic { width: 18px; height: 18px; }
.step__n svg.ic, .tl-num svg.ic { width: 26px; height: 26px; }
.theme-card__ic svg.ic { width: 40px; height: 40px; }

/* 유틸리티. 컴포넌트 뒤에 둬서 얹으면 이기게. */

/* display / flow */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid-d { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.place-center { place-items: center; }

/* gap — .25rem 스텝 */
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* margin */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mx-auto { margin-inline: auto; }

/* text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.text-cream { color: var(--cream); }
.text-muted { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }
.text-coral { color: var(--coral); }
.text-blue { color: var(--blue); }
.text-yellow { color: var(--yellow); }
.text-mint { color: var(--mint); }
.text-pink { color: var(--pink); }

/* weight */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* radius */
.rounded-sm { border-radius: var(--r-sm); }
.rounded { border-radius: var(--r); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.rounded-full { border-radius: 999px; }

/* misc */
.relative { position: relative; }
.w-full { width: 100%; }

/* ---------------------------------------------------------------------------
   반응형 (컴포넌트 그리드가 여기서 접힌다)
--------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub, .lead { margin-inline: auto; }
  .hero__actions, .hero__meta, .store-badges { justify-content: center; }
  .hero__phone-wrap { margin-top: 1rem; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .showcase { grid-template-columns: 1fr; }
  .season__grid { grid-template-columns: 1fr; }
  .emote-band { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .event-banner { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem; background: var(--ink-2);
    padding: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open .nav__links a { padding: .8em 1em; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid, .steps, .safe-grid { grid-template-columns: 1fr; }
  .theme-card { grid-template-columns: 64px 1fr; }
  .theme-card__ic { width: 64px; height: 64px; font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal__panel { padding: 1.6rem 1.3rem; }
  .tl-row { grid-template-columns: 48px 1fr; gap: .8rem; }
  .tl-num { width: 46px; height: 46px; font-size: 1.15rem; }
}
@media (max-width: 420px) {
  .catalog { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .float-chip, .confetti i, .live-dot, .eyebrow .dot { animation: none; }
}
