/* ========== 페이지 틀 ========== */
.hot-dot { color: var(--hot); }

.toolbar {
  position: sticky; top: 60px; z-index: 40;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 -24px; padding: 12px 24px;
  background: rgba(245, 244, 240, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.cat-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a {
  flex: none; padding: 7px 14px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.cat-chips a:hover { border-color: var(--ink); color: var(--ink); }
.cat-chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chips a.out { background: var(--accent-weak); border-color: transparent; color: var(--accent); }
.search {
  display: flex; align-items: center; gap: 8px;
  width: 280px; max-width: 100%; height: 38px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--muted);
}
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ink); }
@media (max-width: 560px) {
  .toolbar { margin: 0 -16px; padding: 10px 16px; }
  .search { width: 100%; }
}

.no-result {
  display: grid; justify-items: center; gap: 6px;
  margin: 40px 0; padding: 48px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); text-align: center;
}
.no-result b { color: var(--ink); font-size: 18px; }

.section-title { scroll-margin-top: 140px; }

.terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}
@media (max-width: 420px) { .terms { grid-template-columns: 1fr; } }
.term {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 140px;
}
.term.wide { grid-column: span 2; }
@media (max-width: 760px) { .term.wide { grid-column: auto; } }
.term.flash { animation: flash 1.4s; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.term-head { padding: 18px 20px 14px; }
.term-head h3 { font-size: 19px; font-weight: 750; letter-spacing: -.015em; line-height: 1.35; }
.term-head h3 em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.term-head p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.term-foot { padding: 0 20px 16px; margin-top: -2px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.term-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
.term-foot a:hover { text-decoration: underline; }
.term-foot b { color: var(--ink-2); }

.stage {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 250px;
  margin: 0 12px 14px; padding: 40px 18px 22px;
  background: var(--stage);
  border-radius: 12px;
  overflow: hidden;
}
.stage.top { justify-content: flex-start; }
.stage.flush { padding: 0; justify-content: stretch; align-items: stretch; min-height: 260px; }
.stage-ctrl { position: absolute; left: 12px; bottom: 12px; z-index: 6; }

/* 부위 이름 보기 */
.lt {
  position: absolute; z-index: 7;
  display: none;
  padding: 2px 8px; border-radius: 6px;
  background: var(--hot); color: #fff;
  font-size: 11.5px; font-weight: 700; font-style: normal; white-space: nowrap; line-height: 1.6;
  pointer-events: none;
  animation: pop-in .25s var(--ease-out);
}
.show-labels .lt { display: inline-block; }
.lt-btn {
  position: absolute; left: 10px; bottom: 10px; z-index: 6;
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.show-labels .lt-btn { background: var(--hot); border-color: var(--hot); color: #fff; }
@keyframes pop-in { from { opacity: 0; scale: .8; } }

/* 와이어 대용 회색 줄·상자 */
.ph-line { height: 9px; border-radius: 5px; background: #d9d7d0; margin: 9px 0; width: 100%; }
.ph-line.w80 { width: 80%; } .ph-line.w70 { width: 70%; } .ph-line.w60 { width: 60%; } .ph-line.w50 { width: 50%; }
.ph-img { height: 70px; border-radius: 8px; background: linear-gradient(135deg, #d5d2c9, #e6e3dc); margin: 10px 0; }

/* 안쪽 스크롤 상자 */
.scrollbox {
  position: relative;
  flex: 1; height: 260px;
  overflow-y: auto; overscroll-behavior: contain;
  background: #fbfaf8;
  scroll-behavior: smooth;
}
.scroll-wrap { position: relative; flex: 1; display: flex; }
.scroll-wrap .scrollbox { height: 260px; }
.stage.flush > .scrollbox, .stage.flush > .scroll-wrap { flex: 1 1 0; height: auto; min-height: 260px; }
.stage.flush > .scroll-wrap > .scrollbox { position: absolute; inset: 0; height: auto; }
.sb-content { padding: 14px 18px 24px; }
.sb-content h4 { font-size: 14px; margin-bottom: 6px; }

/* ========== 햄버거 + 드로어 ========== */
.phone {
  position: relative;
  width: 200px; height: 250px;
  border-radius: 22px; border: 6px solid #232327;
  background: #fff; overflow: hidden;
  box-shadow: var(--shadow-1);
}
.phone-bar {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  height: 40px; padding: 0 6px 0 12px;
  border-bottom: 1px solid #eee; background: #fff;
  font-size: 11px; letter-spacing: .08em;
}
.burger {
  position: relative; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent;
}
.burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s, top .3s var(--ease-out);
}
.burger span:nth-child(1) { top: 11px; } .burger span:nth-child(2) { top: 16px; } .burger span:nth-child(3) { top: 21px; }
.phone.open .burger span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.phone.open .burger span:nth-child(2) { opacity: 0; }
.phone.open .burger span:nth-child(3) { top: 16px; transform: rotate(-45deg); }
.phone-body { padding: 10px 12px; }
.phone-dim { position: absolute; inset: 40px 0 0; z-index: 2; background: var(--dim); opacity: 0; pointer-events: none; transition: opacity .3s; }
.phone.open .phone-dim { opacity: 1; pointer-events: auto; }
.phone-drawer {
  position: absolute; top: 40px; right: 0; bottom: 0; z-index: 3;
  width: 72%; padding: 34px 16px 16px;
  display: flex; flex-direction: column; gap: 2px;
  background: #fff;
  transform: translateX(100%); transition: transform .35s var(--ease-out);
}
.phone.open .phone-drawer { transform: none; }
.phone-drawer a { padding: 8px 4px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #f0f0f0; }
.phone-drawer .name-tag { top: 8px; left: 12px; }

/* ========== 드롭다운 ========== */
.mini-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 330px; height: 50px; padding: 0 14px;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-1);
  font-size: 12px; letter-spacing: .06em;
}
.mini-header nav { display: flex; align-items: center; gap: 4px; font-size: 14px; letter-spacing: 0; font-weight: 600; }
.mini-header nav > a { padding: 6px 8px; }
.dd { position: relative; }
.dd-btn {
  display: flex; align-items: center; gap: 2px;
  padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; font-weight: 600;
}
.dd-btn:hover, .dd.open .dd-btn { background: rgba(0,0,0,.05); }
.dd-btn .ic { transition: transform .25s; }
.dd.open .dd-btn .ic { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 5;
  min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(-6px); transform-origin: top; pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease-out);
}
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-menu a { display: block; padding: 8px 10px; border-radius: 6px; font-weight: 500; cursor: pointer; }
.dd-menu a:hover { background: var(--accent-weak); color: var(--accent); }

/* ========== 탭 ========== */
.tabs { width: 100%; max-width: 320px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-1); overflow: hidden; }
.tab-list { position: relative; display: flex; border-bottom: 1px solid var(--line); }
.tab-list button {
  flex: 1; padding: 12px 6px; border: 0; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s;
}
.tab-list button.on { color: var(--ink); }
.tab-ink { position: absolute; bottom: -1px; height: 2px; background: var(--ink); transition: left .3s var(--ease-out), width .3s var(--ease-out); }
.tab-panels { position: relative; min-height: 84px; padding: 16px; }
.tab-panels p { display: none; font-size: 14px; color: var(--ink-2); }
.tab-panels p.on { display: block; animation: fade-up .3s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }

/* ========== 브레드크럼 ========== */
.crumb-demo { width: 100%; max-width: 320px; display: grid; gap: 14px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--muted); }
.crumbs a { padding: 2px 6px; border-radius: 6px; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { background: var(--accent-weak); }
.crumbs b { padding: 2px 6px; color: var(--ink); }
.crumb-page {
  padding: 18px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-1);
  animation: fade-up .3s var(--ease-out);
}
.crumb-page small { display: block; color: var(--muted); font-size: 12px; }
.crumb-page b { font-size: 20px; }

/* ========== 페이지네이션 ========== */
.pg-demo { width: 100%; max-width: 320px; display: grid; gap: 14px; }
.pg-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pg-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: #fff; border-radius: 8px; font-size: 14px;
  animation: fade-up .3s var(--ease-out) both;
}
.pg-list li i { width: 26px; height: 26px; border-radius: 6px; background: #e6e3dc; }
.pager { display: flex; justify-content: center; gap: 4px; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 6px;
  border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 600; color: var(--ink-2);
  display: grid; place-items: center;
}
.pager button:hover:not(:disabled) { background: rgba(0,0,0,.06); }
.pager button.on { background: var(--ink); color: #fff; }
.pager button:disabled { opacity: .3; cursor: default; }

/* ========== 앵커 링크 ========== */
.sb-toc {
  position: sticky; top: 0; z-index: 2;
  display: flex; gap: 6px; padding: 10px 14px;
  background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line);
}
.sb-toc a { padding: 4px 10px; border-radius: 99px; background: var(--accent-weak); color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.sb-sec { padding: 14px 18px 30px; border-radius: 8px; transition: background .4s; }
.sb-sec h4 { font-size: 15px; scroll-margin-top: 50px; }
.sb-sec.hit { background: #fff3c4; }

/* ========== 스티키 헤더 ========== */
.sb-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  transition: box-shadow .3s;
  z-index: 2;
}
.sb-header span { font-weight: 500; letter-spacing: 0; color: var(--muted); }
.sb-header.sticky { position: sticky; top: 0; }
.sb-header.scrolled { box-shadow: 0 4px 14px rgba(0,0,0,.08); }

/* ========== 맨 위로 ========== */
.to-top {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ========== GNB · LNB ========== */
.gnb-demo { flex: 1; display: flex; flex-direction: column; background: #fff; }
.gd-top {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: .06em;
  box-shadow: inset 0 0 0 2px rgba(255, 91, 46, .5);
}
.gd-top nav { display: flex; gap: 4px; letter-spacing: 0; }
.gd-top nav a { padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.gd-top nav a.on { color: var(--ink); background: rgba(0,0,0,.05); }
.gd-top .name-tag { right: 10px; top: 50%; transform: translateY(-50%); }
.gd-body { flex: 1; display: flex; }
.gd-side {
  position: relative;
  width: 120px; padding: 34px 8px 10px;
  border-right: 1px solid var(--line);
  box-shadow: inset 0 0 0 2px rgba(47, 91, 255, .45);
}
.gd-side .name-tag { top: 8px; left: 8px; background: var(--accent); box-shadow: none; }
.gd-side ul { margin: 0; padding: 0; list-style: none; }
.gd-side li { padding: 6px 8px; font-size: 13px; color: var(--ink-2); border-radius: 6px; animation: fade-up .3s var(--ease-out) both; }
.gd-side li:first-child { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
.gd-main { flex: 1; padding: 6px 14px; }

/* ========== 카드 ========== */
.work-card {
  position: relative;
  display: block; width: 190px;
  background: #fff; border-radius: 12px; overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.wc-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #eee; }
.wc-img img { width: 100%; height: 100%; object-fit: cover; }
.wc-body { position: relative; padding: 10px 12px 12px; display: grid; }
.wc-body b { font-size: 15px; }
.wc-body small { color: var(--muted); font-size: 12px; }

/* ========== 썸네일 ========== */
.thumb-demo { display: grid; justify-items: center; gap: 14px; }
.thumb-box {
  width: 170px; height: 170px; border-radius: 10px; overflow: hidden;
  background: repeating-conic-gradient(#e2e0da 0% 25%, #f1efea 0% 50%) 50% / 16px 16px;
  box-shadow: 0 0 0 2px var(--ink);
}
.thumb-box img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }

/* ========== 갤러리 ========== */
.gal-demo { width: 100%; display: grid; justify-items: center; gap: 14px; }
.gal { width: 100%; max-width: 520px; }
.gal img { width: 100%; border-radius: 6px; background: #ddd; }
.gal.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gal.grid img { aspect-ratio: 1; object-fit: cover; }
.gal.masonry { columns: 3; column-gap: 8px; }
.gal.masonry img { margin-bottom: 8px; break-inside: avoid; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }

/* ========== 캐러셀 ========== */
.carousel { position: relative; width: 200px; }
.cr-view { overflow: hidden; border-radius: 12px; touch-action: pan-y; cursor: grab; background: #ddd; }
.cr-view:active { cursor: grabbing; }
.cr-track { display: flex; transition: transform .45s var(--ease-out); }
.cr-track.dragging { transition: none; }
.cr-track figure { flex: none; width: 100%; margin: 0; position: relative; }
.cr-track img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; user-select: none; }
.cr-track figcaption {
  position: absolute; left: 8px; bottom: 8px;
  padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px;
}
.cr-arrow {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow-1);
  transform: translateY(-50%);
  transition: transform .15s;
}
.cr-arrow:active { transform: translateY(-50%) scale(.9); }
.cr-arrow.prev { left: -14px; } .cr-arrow.next { right: -14px; }
.cr-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.cr-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #c4c1b9; transition: width .3s, background .3s; }
.cr-dots button.on { width: 22px; background: var(--ink); }
.auto-play { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-2); }

/* ========== 라이트박스 썸네일 ========== */
.lb-thumbs { display: grid; grid-template-columns: repeat(2, 92px); gap: 8px; }
.lb-thumbs button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #ddd; transition: transform .2s; }
.lb-thumbs button:hover { transform: scale(1.04); }
.lb-thumbs img { width: 92px; height: 92px; object-fit: cover; }

/* ========== 아코디언 ========== */
.acc { width: 100%; max-width: 320px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-1); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 13px 16px; border: 0; background: transparent; font-size: 15px; font-weight: 650; text-align: left;
}
.pm { position: relative; width: 14px; height: 14px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--ink-2); transition: transform .3s var(--ease-out); }
.pm::after { transform: rotate(90deg); }
.acc-item.open .pm::after { transform: rotate(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 16px 14px; font-size: 14px; color: var(--ink-2); }
.acc-opt { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ========== 툴팁 줄 ========== */
.tip-row { display: flex; gap: 14px; }
.tip-row .icon-btn { background: #fff; box-shadow: var(--shadow-1); width: 46px; height: 46px; border-radius: 12px; }

/* ========== 배지·태그·칩 ========== */
.btc { display: grid; gap: 14px; width: 100%; max-width: 320px; }
.btc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btc-name { width: 36px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bell { position: relative; background: #fff; box-shadow: var(--shadow-1); }
.badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--bad); color: #fff; border: 2px solid var(--stage);
  font-size: 11px; font-weight: 800; line-height: 16px; text-align: center;
}
.badge.bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.35); } }
.new-badge { padding: 2px 7px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.tag { padding: 3px 9px; border-radius: 6px; background: #fff; color: var(--ink-2); font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 12px; border-radius: 99px; border: 1px solid #cfccc4; background: #fff; font-size: 13px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ========== 캡션·대체 텍스트 ========== */
.cap-demo { display: grid; justify-items: center; gap: 12px; }
.cap-demo figure { margin: 0; width: 240px; }
.cap-img { position: relative; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: #fff; }
.cap-img img { width: 100%; height: 100%; object-fit: cover; }
.broken {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 2px dashed #c9c6be; border-radius: 8px; background: #fbfaf8; color: var(--muted);
  font-size: 12.5px; text-align: center; padding: 12px;
}
.broken .name-tag { top: 6px; left: 6px; }
.cap-demo.is-broken .broken { display: flex; }
.cap-demo.is-broken .cap-img img { visibility: hidden; }
.cap-demo figcaption { position: relative; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.cap-demo figcaption .name-tag { position: static; display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 11px; font-style: normal; box-shadow: none; }
.cap-demo i.name-tag { font-style: normal; }

/* ========== 구분선 ========== */
.div-demo { display: grid; justify-items: center; gap: 14px; width: 100%; }
.with-div { width: 100%; max-width: 300px; margin: 0; padding: 4px 16px; list-style: none; background: #fff; border-radius: 12px; }
.with-div li { padding: 12px 0; font-size: 14px; border-top: 1px solid transparent; transition: border-color .3s; }
.with-div li:first-child { border-top: 0; }
.with-div li b { margin-right: 10px; }
.div-demo.on .with-div li { border-top-color: var(--line); }
.div-demo.on .with-div li:first-child { border-top-color: transparent; }

/* ========== 아바타 ========== */
.avatars { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.av-col { display: grid; justify-items: center; gap: 8px; }
.av-col small { font-size: 12px; color: var(--muted); }
.avatar {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-weight: 800; font-size: 16px; border: 2px solid var(--stage);
}
.avatar.img { overflow: hidden; }
.avatar.img img { width: 100%; height: 100%; object-fit: cover; }
.avatar.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--stage); }
.av-stack { display: flex; }
.av-stack .avatar + .avatar { margin-left: -12px; }
.avatar.more { background: #d9d7d0; color: var(--ink-2); font-size: 13px; }

/* ========== 버튼 종류 ========== */
.btn-kinds { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; text-align: center; }
.btn-kinds > div { display: grid; justify-items: center; gap: 8px; }
.btn-kinds small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ripple { position: relative; overflow: hidden; }
.ripple .rp { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); animation: rp .55s ease-out forwards; pointer-events: none; }
@keyframes rp { to { transform: scale(2.6); opacity: 0; } }

/* ========== 버튼 vs 링크 (미니 브라우저) ========== */
.mini-browser { width: 100%; max-width: 330px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-1); overflow: hidden; }
.mb-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #efeee9; }
.mb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d0cec6; }
.mb-url { flex: 1; margin-left: 8px; padding: 3px 10px; border-radius: 6px; background: #fff; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mb-url b { color: var(--ink); font-weight: 600; }
.mb-url.changed { animation: url-flash .8s; }
@keyframes url-flash { 0%, 50% { background: #fff1bf; } }
.mb-page { position: relative; min-height: 150px; }
.mb-view { display: none; padding: 16px; }
.mb-view.on { display: block; animation: fade-up .35s var(--ease-out); }
.mb-view b { font-size: 18px; }
.mb-view p { font-size: 13px; color: var(--ink-2); margin: 6px 0 12px; }
.mb-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.like-btn { display: flex; align-items: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; }
.like-btn.on { color: var(--bad); border-color: #f5c2c3; background: #fff5f5; }
.like-btn.on .ic { fill: currentColor; }
.mb-link { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mb-hints { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; color: var(--muted); }

/* ========== CTA ========== */
.cta-demo { display: grid; justify-items: center; gap: 6px; text-align: center; }
.cta-demo b { font-family: var(--serif); font-size: 22px; }
.cta-demo p { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.cta-btn { height: 48px; padding: 0 26px; font-size: 16px; border-radius: 12px; animation: glow 2.2s infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 91, 255, .4); } 50% { box-shadow: 0 0 0 10px rgba(47, 91, 255, 0); } }
.cta-sub { margin-top: 4px; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ========== FAB ========== */
.sb-content.list { display: grid; gap: 4px; }
.li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #efede8; }
.li i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e6e3dc; }
.li .ph-line { margin: 0; }
.fab-zone { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab {
  display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 16px;
  background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(47, 91, 255, .4);
  transition: transform .3s var(--ease-out), border-radius .3s;
}
.fab .ic { transition: transform .3s var(--ease-out); }
.fab-zone.open .fab .ic { transform: rotate(135deg); }
.fab-actions { display: grid; gap: 8px; justify-items: end; }
.fab-actions button {
  display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease-out);
}
.fab-actions button:nth-child(1) { transition-delay: .05s; }
.fab-zone.open .fab-actions button { opacity: 1; transform: none; pointer-events: auto; }
.fab-actions span { padding: 3px 9px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-1); }
.fab-actions .ic { box-sizing: content-box; padding: 10px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); }

/* ========== 아이콘 버튼 ========== */
.icon-demo { display: grid; justify-items: center; gap: 16px; }
.icon-row { display: flex; gap: 6px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-1); }
.icon-row .icon-btn { width: 44px; height: 44px; outline: 1.5px dashed transparent; outline-offset: -1px; transition: outline-color .2s, background .2s; }
.icon-demo.hit .icon-row .icon-btn { outline-color: var(--hot); }
.icon-btn.heart[aria-pressed="true"] { color: var(--bad); }
.icon-btn.heart[aria-pressed="true"] .ic { fill: currentColor; animation: bump .35s var(--ease-out); }
.hit-opt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }

/* ========== 입력 필드 ========== */
.field { position: relative; width: 210px; display: grid; gap: 6px; }
.field label { position: relative; font-size: 13px; font-weight: 700; justify-self: start; }
.field-box { position: relative; }
.field-box input {
  width: 100%; height: 44px; padding: 0 36px 0 12px;
  border: 1.5px solid #cfccc4; border-radius: 10px; background: #fff; outline: 0;
  font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field-box input::placeholder { color: #aaa8a2; }
.field-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.ok-mark { position: absolute; right: 12px; top: 50%; translate: 0 -50%; color: var(--ok); opacity: 0; transition: opacity .2s; }
.field .help, .field .err { position: relative; font-size: 12px; justify-self: start; }
.field .help { color: var(--muted); }
.field .err { display: none; color: var(--bad); font-weight: 600; }
.field.invalid .field-box input { border-color: var(--bad); box-shadow: 0 0 0 3px #fde4e5; }
.field.invalid .help { display: none; }
.field.invalid .err { display: block; animation: shake .35s; }
.field.valid .ok-mark { opacity: 1; }
.show-labels .field .err { display: block; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ========== 셀렉트 ========== */
.select-demo { display: grid; gap: 6px; width: 200px; }
.select-demo label { font-size: 13px; font-weight: 700; }
.select-box { position: relative; }
.select-box select {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 44px; padding: 0 36px 0 12px;
  border: 1.5px solid #cfccc4; border-radius: 10px; background: #fff; font-size: 15px;
}
.select-box .ic { position: absolute; right: 12px; top: 50%; translate: 0 -50%; pointer-events: none; }
.select-out { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ========== 체크박스·라디오·토글 ========== */
#crt-stage { transition: background .35s; }
#crt-stage.dark { background: #1d1d21; }
#crt-stage.dark fieldset { background: #2a2a30; color: #eee; }
#crt-stage.dark legend em { color: #9a9aa3; }
.crt { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.crt fieldset {
  display: grid; gap: 8px; align-content: start;
  min-width: 170px; margin: 0; padding: 14px 16px 16px;
  border: 0; border-radius: 12px; background: #fff; box-shadow: var(--shadow-1);
  transition: background .35s, color .35s;
}
.crt legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; font-weight: 750; font-size: 15px; }
.crt legend em { display: block; font-style: normal; font-size: 12px; color: var(--hot); font-weight: 700; }
.crt label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.crt input[type="checkbox"], .crt input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 99px; background: #cfccc4; transition: background .25s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease-out); }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track .knob { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ========== 슬라이더(입력) ========== */
.range-demo { display: grid; justify-items: center; gap: 12px; width: 100%; }
.range-img { height: 150px; display: grid; place-items: end center; }
.range-img img { width: 90px; transition: width .05s; border-radius: 4px; }
.range-row { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 300px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.range-row input[type="range"] { flex: 1; accent-color: var(--ink); }
.range-row b { min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ========== 자동완성 ========== */
.ac { position: relative; width: 100%; max-width: 300px; }
.ac-box { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; background: #fff; border-radius: 99px; box-shadow: var(--shadow-1); border: 1.5px solid transparent; color: var(--muted); }
.ac-box:focus-within { border-color: var(--ink); }
.ac-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.ac-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: var(--shadow-2); display: none; }
.ac.open .ac-list { display: block; animation: fade-up .2s var(--ease-out); }
.ac-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.ac-list li:hover, .ac-list li.on { background: #f3f2ee; }
.ac-list mark { background: none; color: var(--accent); font-weight: 750; }
.ac-list small { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ========== 상태 ========== */
.states { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.state-col { display: grid; justify-items: center; gap: 4px; width: 116px; text-align: center; }
.state-col .btn { margin-bottom: 6px; pointer-events: none; }
.state-col b { font-size: 13px; }
.state-col small { font-size: 11.5px; color: var(--muted); }
.btn.blue.s-hover { background: #2549d8; }
.btn.s-focus { outline: 3px solid #9fb4ff; outline-offset: 2px; }
.btn.blue.s-press { transform: scale(.95); background: #1d3db8; }
.btn:disabled { background: #cfcdc6; color: #8d8b85; cursor: not-allowed; }
.state-live { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; padding-top: 16px; border-top: 1px dashed #cfccc4; width: 100%; font-size: 13px; color: var(--ink-2); }
.state-live > span { font-weight: 700; color: var(--hot); }
.state-live small { color: var(--muted); }

.cur-nav { position: relative; display: flex; gap: 2px; padding: 8px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-1); }
.cur-nav a { position: relative; z-index: 1; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .2s; }
.cur-nav a.on { color: var(--ink); }
.cur-ink { position: absolute; bottom: 8px; height: 2px; background: var(--ink); border-radius: 2px; transition: left .35s var(--ease-out), width .35s var(--ease-out); }

.loaders { display: flex; gap: 22px; }
.ld-col { display: grid; justify-items: center; gap: 10px; width: 130px; text-align: center; }
.ld-col small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.ld-spot { display: grid; place-items: center; gap: 4px; width: 100%; height: 70px; background: #fff; border-radius: 12px; }
.ld-idle { font-size: 12px; color: var(--muted); }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #e6e3dc; border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ld-done { color: var(--ok); animation: bump .35s; }
.progress { width: 100px; height: 8px; border-radius: 99px; background: #e6e3dc; overflow: hidden; }
.progress .bar { width: 0; height: 100%; background: var(--accent); border-radius: 99px; }
#prog-out { font-size: 12px; font-variant-numeric: tabular-nums; }

.skel-demo { display: grid; justify-items: center; gap: 14px; }
.skel-card { width: 200px; display: flex; gap: 12px; align-items: center; padding: 12px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-1); }
.sk-img { flex: none; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: #e6e3dc; }
.sk-img img { width: 100%; height: 100%; object-fit: cover; }
.sk-text { display: grid; gap: 2px; flex: 1; }
.sk-text small { color: var(--muted); font-size: 12px; }
.skel-card.loading .sk-img img, .skel-card.loading .sk-text > * { visibility: hidden; }
.skel-card.loading .sk-img, .skel-card.loading .sk-text > * { position: relative; background: #e6e3dc; border-radius: 6px; overflow: hidden; }
.skel-card.loading .sk-text b { width: 80%; } .skel-card.loading .sk-text small { width: 55%; }
.skel-card.loading .sk-img::after, .skel-card.loading .sk-text > *::after {
  content: ""; position: absolute; inset: 0; visibility: visible;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: shimmer 1.2s infinite; transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-card:not(.loading) .sk-text, .skel-card:not(.loading) .sk-img img { animation: fade-in .4s; }
@keyframes fade-in { from { opacity: 0; } }

.empty-demo { width: 100%; max-width: 290px; min-height: 170px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-1); display: grid; }
.em-list { margin: 0; padding: 6px; list-style: none; }
.em-list li { display: flex; align-items: center; gap: 10px; padding: 8px; font-size: 14px; border-radius: 8px; transition: opacity .25s, transform .25s; }
.em-list li img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.em-list li button { margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.em-list li button:hover { background: #fde4e5; color: var(--bad); }
.em-list li.bye { opacity: 0; transform: translateX(20px); }
.em-empty { display: none; place-items: center; align-content: center; gap: 8px; padding: 20px; color: var(--muted); text-align: center; animation: fade-up .4s var(--ease-out); }
.em-empty b { color: var(--ink); }
.empty-demo.empty .em-list { display: none; }
.empty-demo.empty .em-empty { display: grid; }

/* ========== 움직임 ========== */
.ta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
@media (max-width: 560px) { .ta { grid-template-columns: 1fr; } }
.ta-col { display: grid; gap: 10px; padding: 14px; background: #fff; border-radius: 12px; }
.ta-col > b { font-size: 14px; }
.ta-track { position: relative; height: 50px; border-radius: 10px; background: #f3f2ee; }
.ta-box { position: absolute; left: 8px; top: 8px; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); transition: left .6s var(--ease-out), background .6s, border-radius .6s; }
.ta-track.moved .ta-box { left: calc(100% - 42px); background: var(--hot); border-radius: 50%; }
.ta-track.instant .ta-box { transition: none; }
.ta-ctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; }
.ta-ctrl small { font-size: 12px; color: var(--muted); }
.ta-ball { position: absolute; top: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--hot); animation: roam 2.4s ease-in-out infinite; }
@keyframes roam {
  0% { left: 8px; transform: scale(1); }
  25% { transform: scale(.6); background: var(--accent); }
  50% { left: calc(100% - 42px); transform: scale(1); border-radius: 8px; }
  75% { transform: scale(.6); background: #16a05d; }
  100% { left: 8px; transform: scale(1); }
}

.fx-demo { display: grid; justify-items: center; gap: 12px; }
.fx-frame { width: 220px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#e2e0da 0% 25%, #f1efea 0% 50%) 50% / 16px 16px; }
.fx-frame img { width: 100%; height: 100%; object-fit: cover; }
.fx-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 260px; }
.fx-fade { animation: fx-fade .7s ease both; }
.fx-slide { animation: fx-slide .7s var(--ease-out) both; }
.fx-zoom { animation: fx-zoom .7s var(--ease-out) both; }
.fx-out { animation: fx-fade .7s ease reverse both; }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-slide { from { opacity: 0; transform: translateY(40px); } }
@keyframes fx-zoom { from { opacity: 0; transform: scale(.6); } }

.ease-demo { display: grid; gap: 8px; width: 100%; max-width: 330px; }
.lane { position: relative; height: 34px; border-radius: 8px; background: #fff; }
.lane span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lane span em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
.lane i { position: absolute; top: 7px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.ease-demo.go .lane i { animation: race 1.4s var(--e) forwards; }
.ease-demo .btn { justify-self: center; margin-top: 4px; }
@keyframes race { to { left: calc(100% - 24px); } }

.reveal-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 60px 0 110px; animation: nudge 1.2s infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.reveal {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 10px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
#reveal-reset { display: block; margin: 20px auto 0; }

.hover-grid { display: grid; grid-template-columns: repeat(2, 120px); gap: 12px; }
.hv { margin: 0; text-align: center; }
.hv figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.hv > div { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #ddd; transition: transform .35s var(--ease-out), box-shadow .35s; }
.hv img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out), opacity .35s; }
.hv.zoom:hover img { transform: scale(1.12); }
.hv.shade span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; opacity: 0; transition: opacity .3s; }
.hv.shade:hover span { opacity: 1; }
.hv.swap img + img { position: absolute; inset: 0; opacity: 0; }
.hv.swap:hover img + img { opacity: 1; }
.hv.lift:hover > div { transform: translateY(-8px); box-shadow: 0 14px 24px rgba(0,0,0,.18); }

.parallax { background: #1b1b1e; }
.px-scene { position: relative; height: 230px; overflow: hidden; }
.px-bg { position: absolute; inset: -60px 0 0; }
.px-bg img { width: 100%; height: 330px; object-fit: cover; }
.px-title { position: absolute; left: 18px; bottom: 18px; color: #fff; font-family: var(--serif); font-size: 26px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.px-title small { display: block; font-family: var(--font); font-size: 12px; font-weight: 500; opacity: .85; }
.parallax .sb-content { background: #fbfaf8; min-height: 260px; }

/* ========== 글자·간격 ========== */
.fonts { display: grid; gap: 14px; width: 100%; max-width: 320px; }
.fonts > div { display: flex; flex-direction: column; padding: 10px 14px; background: #fff; border-radius: 10px; }
.fonts span { font-size: 22px; line-height: 1.4; }
.fonts small { font-size: 12px; color: var(--muted); }
.fonts small em { font-style: normal; }

.slider-demo { display: grid; justify-items: center; gap: 10px; width: 100%; }
.weight-sample { font-size: 34px; font-weight: 400; transition: font-weight .15s; margin-bottom: 8px; }
.lh-sample { max-width: 300px; padding: 12px 14px; background: #fff; border-radius: 10px; font-size: 14px; line-height: 1.6; }

.box-model { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; width: 100%; }
.bm-canvas {
  --pad: 16px; --mar: 12px; --gap: 16px;
  display: flex; gap: var(--gap); padding: 10px;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, #fbd9ff 0 6px, #f6e8fa 6px 12px);
  transition: gap .1s;
}
.bm-margin { padding: var(--mar); background: #ffe1c7; border-radius: 6px; }
.bm-pad { padding: var(--pad); background: #c9f0d6; border-radius: 4px; }
.bm-content { display: grid; place-items: center; width: 64px; height: 52px; background: #fff; border-radius: 4px; font-size: 13px; font-weight: 700; }
.bm-ctrl { display: grid; gap: 8px; min-width: 240px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw.pad { background: #9fe0b5; } .sw.mar { background: #ffc898; } .sw.gap { background: #eab3f5; }

.align-demo { display: grid; justify-items: center; gap: 12px; width: 100%; }
.al-box { position: relative; width: 230px; height: 130px; border-radius: 10px; background: #fff; border: 1.5px dashed #c9c6be; }
.al-item {
  --x: 50; --y: 50;
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  translate: calc(var(--x) * -1%) calc(var(--y) * -1%);
  padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  transition: left .4s var(--ease-out), top .4s var(--ease-out), translate .4s var(--ease-out);
}
.al-ctrl { display: grid; gap: 6px; justify-items: center; }

.deco-card {
  --r: 12px; --sh: 10px; --bd: 0px;
  width: 140px; height: 140px; overflow: hidden; margin-bottom: 8px;
  border-radius: var(--r);
  border: var(--bd) solid var(--ink);
  box-shadow: 0 calc(var(--sh) * .5) calc(var(--sh) * 1.6) rgba(0,0,0,.2);
}
.deco-card img { width: 100%; height: 100%; object-fit: cover; }

/* ========== 알림·창 안내 띠 ========== */
.popup-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; padding: 28px 32px;
  border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .3s var(--ease-out);
}
.popup-band:hover { transform: translateY(-3px); }
.popup-band b { font-size: 19px; }
.popup-band p { color: #b9b9c0; font-size: 14px; margin-top: 4px; }
.popup-band .btn { background: #fff; color: var(--ink); }
