/* ============================================================
   스마일캠프 전시회 — 공통 컴포넌트
   css/components.css
   ============================================================ */

/* ============================================================
   버튼
   규칙: 채움 노랑 버튼은 한 화면에 하나만.
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-btn);
  padding: 12px 20px;
  font-weight: 600; font-size: 15px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--font-display); font-weight: 700;
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-active); }

.btn-hero {
  border-radius: var(--r-pill);
  padding: 18px 36px; font-size: 20px;
}

.btn-outline { background: var(--card); border: 1px solid var(--line-strong); }
.btn-outline:hover { background: var(--card-sub); }

.btn-ghost { color: var(--ink-2); padding: 8px 12px; }
.btn-ghost:hover { color: var(--ink); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================================
   헤더
   ============================================================ */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  max-width: var(--w-page); margin: 0 auto; padding: 0 24px;
  height: var(--h-header);
  display: flex; align-items: center; gap: 24px;
}
.hd-logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.5px; flex: 0 0 auto;
}
.hd-search { flex: 0 1 320px; position: relative; }
.hd-search input {
  width: 100%; height: 40px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 0 16px;
}
.hd-search input::placeholder { color: var(--ink-3); }
.hd-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

.hd-bell { position: relative; width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; }
.hd-bell .dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--state-reject-ink);
}
.hd-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-soft-ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}

/* 메뉴 탭 */
.hd-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.hd-nav-in {
  max-width: var(--w-page); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 28px; height: 48px; align-items: stretch;
}
.hd-nav a {
  display: flex; align-items: center;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  border-bottom: 3px solid transparent;
}
.hd-nav a:hover { color: var(--ink); }
.hd-nav a.on { color: var(--ink); border-bottom-color: var(--brand); }

/* 모바일 하단 탭바 */
.tabbar { display: none; }
@media (max-width: 900px) {
  .hd-in { padding: 0 16px; height: 56px; gap: 12px; }
  .hd-search { display: none; }
  .hd-search-btn { width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; }
  .hd-nav { display: none; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: var(--h-tabbar);
    background: var(--card); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: var(--ink-3);
  }
  .tabbar a .ic { font-size: 20px; line-height: 1; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.mid .ic {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--brand); color: var(--brand-ink);
    display: grid; place-items: center; font-size: 24px;
    margin-top: -18px; border: 4px solid var(--paper);
  }
  .tabbar a.mid { color: var(--ink); }
}
@media (min-width: 901px) { .hd-search-btn { display: none; } }

/* ============================================================
   작품 카드
   시그니처: 썸네일 위 브라우저 주소창
   ============================================================ */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid.cols-1 { grid-template-columns: minmax(0,1fr); }

@media (max-width: 900px) {
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .grid.cols-1 { grid-template-columns: minmax(0,1fr); }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); }

.card-browser {
  background: var(--card-sub); border-bottom: 1px solid var(--line);
  padding: 8px 10px; display: flex; align-items: center; gap: 8px;
}
.card-dots { display: flex; gap: 4px; flex: 0 0 auto; }
.card-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); display: block; }
.card-addr {
  flex: 1; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 3px 10px; font-size: 11px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card-thumb { position: relative; aspect-ratio: 16/9; background: var(--card-sub); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.card-thumb .badge { position: absolute; top: 10px; left: 10px; }
.card-thumb.dim img, .card-thumb.dim .ph { opacity: 0.5; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-size: var(--fs-card); font-weight: 600; line-height: var(--lh-tight);
  margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-meta { font-size: var(--fs-meta); color: var(--ink-2); line-height: 1.5; }
.card-stats {
  display: flex; gap: 14px; margin-top: 4px;
  font-size: var(--fs-meta); color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.card-actions .btn { flex: 1; padding: 9px 8px; font-size: 14px; }

@media (max-width: 900px) {
  .card-title { font-size: 14px; }
  .card-body { padding: 10px 12px 12px; }
  .card-actions .btn { font-size: 12px; padding: 7px 6px; }
}

/* ============================================================
   배지 · 칩
   ============================================================ */
.badge {
  display: inline-block; font-size: var(--fs-badge); font-weight: 600;
  padding: 5px 10px; border-radius: var(--r-badge); line-height: 1;
}
.badge.c-purple { background: var(--type-game-bg);     color: var(--type-game-ink); }
.badge.c-blue   { background: var(--type-homepage-bg); color: var(--type-homepage-ink); }
.badge.c-pink   { background: var(--type-quiz-bg);     color: var(--type-quiz-ink); }
.badge.c-green  { background: var(--type-story-bg);    color: var(--type-story-ink); }
.badge.c-teal   { background: var(--type-tool-bg);     color: var(--type-tool-ink); }
.badge.c-brown  { background: var(--type-art-bg);      color: var(--type-art-ink); }
.badge.pending  { background: var(--state-pending-bg); color: var(--state-pending-ink); }
.badge.rejected { background: var(--state-reject-bg);  color: var(--state-reject-ink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--card); border: 1px solid var(--line-strong); color: var(--ink-2);
  border-radius: var(--r-chip); padding: 7px 14px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background var(--dur) var(--ease);
}
.chip:hover { background: var(--card-sub); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.chip.sys { border-style: dashed; color: var(--ink-3); cursor: default; }

/* ============================================================
   필터 바
   ============================================================ */
.filter-types {
  display: flex; gap: 24px; align-items: stretch;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.filter-types button {
  padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--ink-2);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.filter-types button:hover { color: var(--ink); }
.filter-types button.on { color: var(--ink); border-bottom-color: var(--brand); }

.filter-tags { overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.filter-tags::-webkit-scrollbar { height: 0; }
.filter-tags .chips { flex-wrap: nowrap; }

.filter-status {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0; flex-wrap: wrap;
  font-size: var(--fs-meta); color: var(--ink-2);
}
.sortbar { display: flex; gap: 4px; }
.sortbar button { font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 6px 10px; border-radius: var(--r-btn); }
.sortbar button.on { color: var(--ink); background: var(--card); }

@media (max-width: 900px) {
  .filter-types { overflow-x: auto; gap: 18px; }
  .filter-types button { white-space: nowrap; font-size: 14px; }
}

/* ============================================================
   사이드바 블록
   ============================================================ */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px; margin-bottom: 24px;
}
.panel h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 14px; }

.mission li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; }
.mission .tick {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--line-strong); display: grid; place-items: center;
  font-size: 11px; color: transparent;
}
.mission li.done .tick { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.mission li.done span { color: var(--ink-2); }
.bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 14px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); }

.feed li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-size: 14px; }
.feed li + li { border-top: 1px solid var(--line); }
.feed .av {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  background: var(--card-sub); color: var(--ink-2);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.feed .tx { flex: 1; line-height: 1.45; }
.feed .tm { font-size: 12px; color: var(--ink-3); }

.stats { display: grid; gap: 12px; }
.stats > div { display: flex; align-items: baseline; justify-content: space-between; }
.stats .lb { font-size: 14px; color: var(--ink-2); }
.stats .vl { font-family: var(--font-display); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================================================
   폼
   ============================================================ */
.field { margin-bottom: 24px; }
.field > label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.field .hint { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.field .err { font-size: 13px; color: var(--state-reject-ink); margin-top: 6px; }

.input, .textarea, .select {
  width: 100%; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  padding: 12px 14px;
}
.input { height: 48px; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); outline: none; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.counter { text-align: right; font-size: 12px; color: var(--ink-3); margin-top: 6px; font-variant-numeric: tabular-nums; }

.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices button {
  padding: 11px 20px; border-radius: var(--r-btn);
  border: 1px solid var(--line-strong); background: var(--card);
  font-weight: 600; font-size: 15px;
}
.choices button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ============================================================
   빈 상태 · 알림 · 모달
   ============================================================ */
.empty { text-align: center; padding: 64px 20px; }
.empty p { color: var(--ink-2); margin-bottom: 20px; }

.notice {
  background: var(--card-sub); border: 1px solid var(--line);
  border-radius: var(--r-btn); padding: 16px 18px;
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
}

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 14px 22px;
  border-radius: var(--r-btn); font-size: 15px; z-index: 200;
  display: flex; align-items: center; gap: 16px;
}
.toast button { color: #C0AEFF; font-weight: 700; }

.modal-bg {
  position: fixed; inset: 0; background: rgba(26,25,23,.45);
  display: grid; place-items: center; z-index: 150; padding: 20px;
}
.modal {
  background: var(--card); border-radius: var(--r-card);
  padding: 28px; max-width: 420px; width: 100%;
}
.modal h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.modal p { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 24px; }
.modal .row { display: flex; gap: 10px; }
.modal .row .btn { flex: 1; }

.dropdown {
  position: absolute; top: 52px; right: 0; width: 360px; max-height: 480px;
  overflow-y: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 8px 24px rgba(26,25,23,.10); z-index: 80;
}
.dropdown .dh {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600;
}
.dropdown .dh button { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dropdown li { padding: 14px 18px; display: flex; gap: 12px; cursor: pointer; }
.dropdown li + li { border-top: 1px solid var(--line); }
.dropdown li:hover { background: var(--card-sub); }
.dropdown li { position: relative; }
.dropdown li.unread { background: var(--brand-soft); }
.dropdown li.unread::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--brand);
}
.dropdown li.unread .nb { font-weight: 600; }
.dropdown li.unread:hover { background: #FFE9A6; }
.dropdown .nb { font-size: 14px; line-height: 1.45; }
.dropdown .nt { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

@media (max-width: 900px) {
  .dropdown { position: fixed; inset: 56px 0 0; width: auto; max-height: none; border-radius: 0; border: none; }
}

/* ============================================================
   푸터
   ============================================================ */
.ft { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0 48px; }
.ft-in { max-width: var(--w-page); margin: 0 auto; padding: 0 24px; font-size: 14px; color: var(--ink-3); }
.ft-in .links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.ft-in .links a:hover { color: var(--ink-2); }

/* ============================================================
   아이콘 — 텍스트 기호 대신 SVG
   ============================================================ */
.ic { flex: 0 0 auto; vertical-align: -0.15em; }
.btn .ic, .card-stats .ic { margin-right: 2px; }
.card-stats span { display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================
   응원 피드백
   ============================================================ */
.actions .cheer { display: flex; align-items: center; justify-content: center; gap: 8px; }
.actions .cheer .num { font-variant-numeric: tabular-nums; }


@keyframes cheer-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.actions .cheer.pop { animation: cheer-pop 320ms var(--ease); }

.spark {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); pointer-events: none; z-index: 300;
  animation: spark-up 700ms var(--ease) forwards;
}
@keyframes spark-up {
  0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; }
}

/* ============================================================
   썸네일이 없을 때 — 제목에서 뽑은 색
   ============================================================ */
.ph-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: hsl(var(--h) 62% 93%);
}
.ph-txt {
  font-family: var(--font-display); font-weight: 700;
  font-size: 30px; color: hsl(var(--h) 45% 42%);
  letter-spacing: -1px;
}

/* ============================================================
   불러오는 중 — 자리를 잡아둔다
   ============================================================ */
.card.sk { pointer-events: none; }
.sk-bar   { height: 33px; background: var(--card-sub); border-bottom: 1px solid var(--line); }
.sk-thumb { aspect-ratio: 16/9; background: var(--card-sub); }
.sk-line  { height: 13px; border-radius: 4px; background: var(--card-sub); margin-bottom: 8px; }
.sk-line.w70 { width: 70%; } .sk-line.w40 { width: 40%; }
.card.sk .sk-thumb, .card.sk .sk-line, .card.sk .sk-bar { animation: sk-pulse 1.4s ease-in-out infinite; }
@keyframes sk-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

/* 터치 기기 — hover 대신 누르는 느낌 */
@media (hover: none) {
  .btn:active, .chip:active, .card:active { transform: scale(0.985); }
}

/* ============================================================
   로고 — 브랜드 노랑 + 부제
   ============================================================ */
.hd-logo { display: flex; flex-direction: column; line-height: 1.15; }
.hd-logo .lg-main {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; letter-spacing: -0.5px; color: #E8B800;
}
.hd-logo .lg-sub { font-size: 10px; color: var(--ink-3); letter-spacing: 0.2px; }

/* ============================================================
   카드 — 배지를 하단 우측으로
   ============================================================ */
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 10px;
}
.card-foot .card-stats { margin-top: 0; gap: 12px; }
.card-foot .badge { flex: 0 0 auto; }
.card-actions { margin-top: 12px; }

/* ============================================================
   모바일 탭바 — 다섯 칸 균등, 중앙 강조 없음
   ============================================================ */
@media (max-width: 900px) {
  .tabbar a { gap: 4px; font-size: 10px; }
  .tabbar a span { white-space: nowrap; }
  .tabbar a.on { color: #D9A400; }
  .tabbar a.on .ic { color: #D9A400; }
}

/* 응원 활성 — 브랜드 노랑 */
.actions .cheer.on { background: var(--brand-soft); border-color: var(--brand); }
.actions .cheer.on .ic { color: #E8B800; }
.spark { background: #F0C22E; }

/* ============================================================
   Hero — 학생들이 만든 사이트가 쌓여 있다
   카드의 브라우저 주소창 언어를 그대로 끌고 온다.
   5초마다 한 장이 위로 빠지고 아래에서 새 창이 올라온다.
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand-tint); border-radius: 24px;
  padding: 56px; margin-top: 28px;
  display: flex; align-items: center; gap: 24px;
  min-height: 340px;
}
.hero-txt { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  line-height: 1.35; letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: #E0A800; }
.hero-sub { font-size: 16px; color: var(--ink-2); margin: 14px 0 30px; }
.btn-hero { border-radius: var(--r-btn); padding: 16px 28px; font-size: 18px; gap: 10px; }

.hero-art {
  position: absolute; right: 64px; top: 50%;
  width: 300px; height: 230px; margin-top: -115px;
  pointer-events: none;
}
.hw-stack { position: absolute; inset: 0; }

/* 창 하나 = 작품 카드의 축소판 */
.hw {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(26,25,23,.07);
}
.hw-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px; background: var(--card-sub);
  border-bottom: 1px solid var(--line);
}
.hw-bar i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--line-strong); flex: 0 0 auto;
}
.hw-bar span {
  margin-left: 4px; font-size: 8px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hw-body {
  height: calc(100% - 24px);
  display: grid; place-items: center;
  background: hsl(var(--h) 62% 93%);
}
.hw-body span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; color: hsl(var(--h) 45% 42%); letter-spacing: -1px;
}

/* 세 장이 겹쳐 있고, 5초마다 한 칸씩 앞으로 온다 */
.hw.p1 { width: 196px; height: 128px; left: 6px;  top: 2px;   z-index: 1; }
.hw.p2 { width: 216px; height: 142px; left: 34px; top: 42px;  z-index: 2; }
.hw.p3 { width: 236px; height: 154px; left: 62px; top: 74px;  z-index: 3; }

.hw.p1 { animation: hw-1 5s var(--ease) infinite; }
.hw.p2 { animation: hw-2 5s var(--ease) infinite; }
.hw.p3 { animation: hw-3 5s var(--ease) infinite; }

/* 맨 앞 → 위로 빠지며 사라짐, 아래에서 새로 올라옴 */
@keyframes hw-3 {
  0%          { transform: rotate(-2deg) translateY(0);     opacity: 1; }
  44%         { transform: rotate(-2deg) translateY(0);     opacity: 1; }
  56%         { transform: rotate(-4deg) translateY(-26px); opacity: 0; }
  57%         { transform: rotate(4deg)  translateY(46px);  opacity: 0; }
  72%, 100%   { transform: rotate(-2deg) translateY(0);     opacity: 1; }
}
/* 중간 → 맨 앞 자리로 */
@keyframes hw-2 {
  0%, 44%   { transform: rotate(3deg) translate(0, 0) scale(1); }
  62%, 100% { transform: rotate(3deg) translate(14px, 16px) scale(1.03); }
}
/* 뒤 → 중간 자리로 */
@keyframes hw-1 {
  0%, 44%   { transform: rotate(-6deg) translate(0, 0) scale(1); }
  62%, 100% { transform: rotate(-6deg) translate(14px, 16px) scale(1.02); }
}

/* 새 창이 올라오는 순간에만 조각이 튄다 — 장식이 아니라 반응 */
.hw-cf {
  position: absolute; left: 176px; top: 152px;
  width: 7px; height: 7px; border-radius: 2px;
  background: #F0C22E; opacity: 0;
  animation: hw-spark 5s var(--ease) infinite;
}
.hw-cf.k1 { --x: -44px; --y: -34px; animation-delay: 3.55s; }
.hw-cf.k2 { --x:  40px; --y: -30px; animation-delay: 3.62s; background: #E8A93B; border-radius: 50%; }
.hw-cf.k3 { --x: -18px; --y: -50px; animation-delay: 3.69s; background: #FFD11A; }
.hw-cf.k4 { --x:  22px; --y: -48px; animation-delay: 3.76s; background: #FCD34D; border-radius: 50%; }
@keyframes hw-spark {
  0%       { transform: translate(0,0) scale(.4); opacity: 0; }
  2%       { opacity: 1; }
  9%       { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; }
  100%     { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hw, .hw-cf { animation: none; }
  .hw.p1 { transform: rotate(-6deg); }
  .hw.p2 { transform: rotate(3deg); }
  .hw.p3 { transform: rotate(-2deg); }
  .hw-cf { opacity: 0; }
}


@media (max-width: 900px) {
  .hero { padding: 26px 20px 24px; border-radius: 18px; margin-top: 14px; display: block; min-height: 0; }
  .hero h1 { font-size: 22px; line-height: 1.45; }
  .hero-sub { font-size: 14px; margin: 10px 0 20px; }
  .hero .btn { width: 100%; padding: 15px; font-size: 16px; }
  /* 좁아서 세 장이 안 들어간다 — 한 장만 걸쳐 두고 멈춘다 */
  .hero-art {
    position: absolute; right: -54px; top: -30px;
    width: 190px; height: 150px; margin: 0; opacity: .5;
  }
  .hw, .hw-cf { animation: none !important; }
  .hw.p1, .hw.p2 { display: none; }
  .hw.p3 { width: 176px; height: 116px; left: 0; top: 0; transform: rotate(-6deg); }
  .hw-body span { font-size: 20px; }
}
