/* ================= 폰트몬스터 ================= */
:root {
  --brand: #6d4aff;
  --brand-strong: #5a38e6;
  --brand-soft: rgba(151, 118, 59, 0.08);
  --accent: #97763B;
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #f1f1f4;
  --text: #17181d;
  --muted: #70737e;
  --line: #e6e6ea;
  --danger: #7A3B52;
  --ok: #34664E;
  --warn: #9E5230;
  --shadow: 0 1px 2px rgb(20 20 30 / .04), 0 8px 24px rgb(20 20 30 / .06);
  --shadow-lg: 0 12px 40px rgb(20 20 30 / .16);
  --radius: 14px;
  --preview-size: 32px;
  --header-h: 64px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --brand: #8d70ff;
  --brand-strong: #a18aff;
  --brand-soft: #2a2350;
  --bg: #101116;
  --surface: #191b22;
  --surface-2: #22242d;
  --text: #f2f2f5;
  --muted: #9a9daa;
  --line: #2c2f3a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  --shadow-lg: 0 12px 48px rgb(0 0 0 / .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background .25s ease, color .25s ease;
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-text { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; color: var(--brand); }

.search {
  flex: 1; max-width: 460px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1.5px solid transparent;
  border-radius: 999px; padding: 8px 16px;
  transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: var(--brand); background: var(--surface); }
.search svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; }
.search input::-webkit-search-cancel-button { display: none; }

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px; color: var(--muted);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
html[data-theme="dark"] .ic-moon { display: none; }
html:not([data-theme="dark"]) .ic-sun { display: none; }

/* ---------- controls ---------- */
.controls {
  position: sticky; top: var(--header-h); z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 14px 0 0; border-bottom: 1px solid var(--line);
}
.controls-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.global-text {
  flex: 1 1 340px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow);
  transition: border-color .2s;
}
.global-text:focus-within { border-color: var(--brand); }
.global-text svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.global-text input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; font-size: 15px; }
.clear-btn { color: var(--muted); font-size: 20px; line-height: 1; padding: 0 2px; }
.clear-btn:hover { color: var(--text); }

.size-ctl {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow);
}
.size-ctl input[type="range"] { width: 130px; accent-color: var(--brand); }
.size-ctl output { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); width: 40px; text-align: right; }

.sort-sel {
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 11px 12px; box-shadow: var(--shadow);
  outline: 0; cursor: pointer;
}
.sort-sel:focus-visible { border-color: var(--brand); }

.chips-row { overflow-x: auto; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips { display: flex; gap: 8px; padding: 12px 0 14px; width: max-content; }
.chip {
  padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--muted);
  transition: all .18s; white-space: nowrap; user-select: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .cnt { opacity: .65; font-weight: 500; font-size: 12.5px; margin-left: 3px; }
.chip.fav-chip.active { background: var(--danger); border-color: var(--danger); }

/* ---------- grid ---------- */
.main { padding: 20px 20px 64px; }
.result-meta { color: var(--muted); font-size: 14px; margin: 2px 2px 14px; }
.result-meta strong { color: var(--text); }
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-lg); }

.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 16px 18px 12px; cursor: pointer;
}
.card-name { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; word-break: keep-all; }
.card.font-ready .card-name { font-family: var(--ff), Pretendard, sans-serif; font-weight: normal; font-size: 19px; }
.card-foundry { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.card-arrow { color: var(--muted); opacity: 0; transform: translateX(-6px); transition: all .22s; margin-top: 3px; }
.card-arrow svg { width: 18px; height: 18px; }
.card:hover .card-arrow { opacity: 1; transform: none; color: var(--brand); }

.card-divider { height: 1px; background: var(--line); margin: 0 18px; transition: background .22s; }
.card:hover .card-divider { background: var(--brand); }

.card-preview-wrap { position: relative; flex: 1; padding: 14px 18px 6px; }
.card-preview {
  width: 100%; height: 150px; resize: none; border: 0; outline: 0;
  font-family: var(--ff), Pretendard, sans-serif;
  font-size: var(--preview-size);
  font-weight: var(--pv-weight, 400);
  letter-spacing: var(--pv-ls, 0);
  line-height: var(--pv-lh, 1.4);
  text-align: var(--pv-align, left);
  color: var(--pv-color, inherit);
  background: var(--pv-bg, transparent);
  border-radius: 8px;
  padding: 0; overflow-y: auto; scrollbar-width: thin;
  transition: background .2s, color .2s;
}
.has-pv-bg .card-preview { padding: 8px 12px; height: 158px; }
.card-preview::placeholder { color: var(--text); opacity: .92; }
.card.loading .card-preview { color: transparent; }
.card.loading .card-preview::placeholder { color: transparent; }
.card.loading .card-preview-wrap::after {
  content: ""; position: absolute; inset: 14px 18px 6px;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--surface-2) 40%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  pointer-events: none;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.card-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 16px; gap: 10px; }
.card-size { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-actions { display: flex; align-items: center; gap: 8px; }

.fav-btn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: all .18s; }
.fav-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn:hover { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.fav-btn.on { color: var(--danger); }
.fav-btn.on svg { fill: currentColor; }

.btn-download {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 700;
  padding: 8px 14px; border-radius: 9px;
  transition: background .18s, transform .18s;
}
.btn-download:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-download svg { width: 15px; height: 15px; }
.btn-download.disabled { background: var(--surface-2); color: var(--muted); pointer-events: none; }

/* ---------- empty / sentinel ---------- */
.load-sentinel { height: 1px; }
.empty { text-align: center; color: var(--muted); padding: 70px 0; }
.empty svg { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 18px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 13.5px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--brand); font-weight: 600; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(10 10 16 / .55); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; width: min(760px, 100%); max-height: min(86vh, 900px);
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  animation: pop .28s cubic-bezier(.34,1.4,.64,1);
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 26px; }
.modal-scroll { overflow-y: auto; padding: 30px 30px 26px; }

.m-head h2 { margin: 0 40px 2px 0; font-size: 30px; font-family: var(--ff), Pretendard, sans-serif; font-weight: normal; letter-spacing: -0.01em; }
.m-foundry { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.m-tag { font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 4px 11px; }

.m-tester {
  width: 100%; margin: 18px 0 14px; padding: 16px;
  background: var(--pv-bg, var(--surface-2)); border: 1.5px solid var(--line); border-radius: 14px;
  outline: 0; resize: vertical; min-height: 110px;
  font-family: var(--ff), Pretendard, sans-serif;
  font-size: calc(var(--preview-size) * 1.05);
  font-weight: var(--pv-weight, 400);
  letter-spacing: var(--pv-ls, 0);
  line-height: var(--pv-lh, 1.45);
  text-align: var(--pv-align, left);
  color: var(--pv-color, inherit);
}
.m-tester:focus { border-color: var(--brand); }

.m-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px; font-weight: 700; font-size: 14.5px;
  transition: all .18s; border: 1.5px solid transparent;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn[hidden] { display: none; }
.m-note { color: var(--muted); font-size: 12.5px; margin: 10px 2px 0; }

.m-license { margin-top: 26px; }
.m-license h3 { font-size: 16px; margin: 0 0 10px; }
.license-table { width: 100%; border-collapse: collapse; font-size: 13.5px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.license-table th, .license-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.license-table th { background: var(--surface-2); font-size: 12.5px; }
.license-table tr:last-child td { border-bottom: 0; }
.license-table td:last-child { white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); }
.badge.no { color: var(--danger); }
.badge.warn { color: var(--warn); }
.m-license-full { margin-top: 14px; }
.m-license-full summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 13.5px; }
.m-license-full summary:hover { color: var(--brand); }
.m-license-full pre {
  white-space: pre-wrap; word-break: break-all; font-family: inherit;
  font-size: 13px; line-height: 1.7; color: var(--muted);
  background: var(--surface-2); padding: 16px; border-radius: 10px; max-height: 320px; overflow-y: auto;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px;
  padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 컨트롤 버튼 (라이선스/타이포) ---------- */
.ctl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow);
  font-weight: 600; font-size: 14px; color: var(--text);
  transition: border-color .18s, color .18s;
}
.ctl-btn svg { width: 17px; height: 17px; }
.ctl-btn:hover { border-color: var(--brand); color: var(--brand); }
.ctl-btn.on { border-color: var(--brand); color: var(--brand); }
.ctl-badge {
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: inline-grid; place-items: center; padding: 0 5px;
}

/* ---------- 라이선스 팝오버 ---------- */
.lic-wrap { position: relative; }
.lic-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  width: 340px; max-width: calc(100vw - 40px);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px;
  animation: pop .2s cubic-bezier(.34,1.4,.64,1);
}
.lic-pop-title { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.lic-pop-title strong { color: var(--ok); }
.lic-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lic-pill {
  padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--muted);
  transition: all .15s;
}
.lic-pill:hover { border-color: var(--brand); color: var(--brand); }
.lic-pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lic-pop-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; font-size: 12.5px; color: var(--brand); font-weight: 700;
}
.lic-reset { color: var(--muted); font-size: 13px; font-weight: 600; }
.lic-reset:hover { color: var(--danger); }

/* ---------- 타이포 패널 ---------- */
.adv-panel {
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 18px; margin-top: 12px;
  animation: pop .22s cubic-bezier(.34,1.4,.64,1);
}
.adv-panel[hidden] { display: none; }
.adv-group { display: flex; align-items: center; gap: 10px; }
.adv-group > label {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.adv-group output { color: var(--brand); font-variant-numeric: tabular-nums; min-width: 30px; }
.adv-group input[type="range"] { width: 110px; accent-color: var(--brand); }
.align-btns { display: flex; gap: 4px; }
.align-btns button {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  color: var(--muted); border: 1.5px solid var(--line); transition: all .15s;
}
.align-btns button svg { width: 16px; height: 16px; }
.align-btns button:hover { border-color: var(--brand); color: var(--brand); }
.align-btns button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.swatches { display: flex; gap: 6px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line); font-size: 13px; font-weight: 700;
  display: grid; place-items: center; transition: transform .15s, border-color .15s;
}
.swatch:hover { transform: scale(1.12); border-color: var(--brand); }
.swatch-none {
  background: linear-gradient(135deg, var(--surface) 46%, var(--danger) 46%, var(--danger) 54%, var(--surface) 54%);
}
.color-input {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px dashed var(--line); display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer;
  overflow: hidden; transition: border-color .15s;
}
.color-input:hover { border-color: var(--brand); color: var(--brand); }
.color-input input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; }
.color-input-bg span {
  width: 14px; height: 14px; border-radius: 4px;
  background: conic-gradient(#97763B 0 25%, #C9A55F 0 50%, #5A544E 0 75%, #B0A79E 0); pointer-events: none;
}
.adv-reset { color: var(--muted); font-size: 13px; font-weight: 700; margin-left: auto; }
.adv-reset:hover { color: var(--danger); }

/* ---------- 카드 비교 버튼 ---------- */
.icon-sm {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--muted); transition: all .18s;
}
.icon-sm svg { width: 17px; height: 17px; }
.cmp-btn:hover { background: var(--brand-soft); color: var(--brand); }
.cmp-btn.on { color: var(--brand); background: var(--brand-soft); }

/* ---------- 비교 트레이 ---------- */
.tray {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 55; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-lg);
  padding: 10px 14px; max-width: calc(100vw - 32px);
  animation: trayUp .3s cubic-bezier(.34,1.4,.64,1);
}
@keyframes trayUp { from { transform: translate(-50%, 20px); opacity: 0; } }
.tray-ic { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
.tray-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tray-chips::-webkit-scrollbar { display: none; }
.tray-chip {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 700; border-radius: 999px; padding: 6px 8px 6px 12px;
}
.tray-chip button { color: inherit; font-size: 15px; line-height: 1; opacity: .7; }
.tray-chip button:hover { opacity: 1; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 999px; }

/* ---------- 비교 모달 ---------- */
.cmp-panel { width: min(860px, 100%); }
.cmp-head { padding: 26px 30px 14px; border-bottom: 1px solid var(--line); }
.cmp-head h2 { margin: 0 40px 12px 0; font-size: 22px; }
.cmp-count { color: var(--brand); }
.cmp-controls { display: flex; gap: 10px; }
.cmp-controls input {
  flex: 1; min-width: 0; background: var(--surface-2);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; outline: 0;
}
.cmp-controls input:focus { border-color: var(--brand); }
.cmp-rows { overflow-y: auto; padding: 6px 30px 26px; }
.cmp-row { padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cmp-name { font-weight: 700; font-size: 15px; }
.cmp-foundry { color: var(--muted); font-size: 12.5px; }
.cmp-spacer { flex: 1; }
.btn-download-sm { padding: 6px 11px; font-size: 12.5px; }
.cmp-remove { font-size: 20px; }
.cmp-remove:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.cmp-preview {
  font-family: var(--ff), Pretendard, sans-serif;
  font-size: calc(var(--preview-size) * 1.1);
  font-weight: var(--pv-weight, 400);
  letter-spacing: var(--pv-ls, 0);
  line-height: var(--pv-lh, 1.4);
  text-align: var(--pv-align, left);
  color: var(--pv-color, inherit);
  background: var(--pv-bg, transparent);
  border-radius: 10px;
  white-space: pre-wrap; word-break: keep-all; min-height: 1.4em;
}
.has-pv-bg .cmp-preview { padding: 10px 14px; }
.cmp-row.loading .cmp-preview {
  color: transparent; border-radius: 10px;
  background: linear-gradient(100deg, var(--surface-2) 40%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}

/* ---------- 오늘의 폰트 히어로 ---------- */
.hero {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-radius: 18px; padding: 18px 22px 20px; margin-bottom: 20px;
  color: #fff; box-shadow: var(--shadow-lg);
  animation: pop .3s cubic-bezier(.34,1.4,.64,1);
}
.hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-label {
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  background: rgb(255 255 255 / .18); border-radius: 999px; padding: 5px 12px;
}
.hero-top b { font-size: 17px; }
.hero-foundry { font-size: 12.5px; opacity: .75; }
.hero-spacer { flex: 1; }
.hero-btn {
  font-size: 12.5px; font-weight: 700; color: #fff;
  border: 1.5px solid rgb(255 255 255 / .4); border-radius: 999px; padding: 6px 13px;
  transition: background .15s, border-color .15s;
}
.hero-btn:hover { background: rgb(255 255 255 / .16); border-color: #fff; }
.hero-close { color: #fff; opacity: .7; font-size: 22px; line-height: 1; padding: 2px 6px; }
.hero-close:hover { opacity: 1; }
.hero-tester {
  width: 100%; border: 0; outline: 0; resize: none; background: transparent; color: #fff;
  font-family: var(--ff), Pretendard, sans-serif;
  font-size: calc(var(--preview-size) * 1.15); line-height: 1.35;
  padding: 4px 0 0; overflow-y: auto; max-height: 130px;
}
.hero-tester::placeholder { color: rgb(255 255 255 / .85); }
.hero.loading .hero-tester { opacity: .35; }

/* ---------- meta row + ZIP ---------- */
.meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 2px 14px; }
.meta-row .result-meta { margin: 0; }
.zip-btn {
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 8px 16px; transition: background .18s, transform .18s;
}
.zip-btn:hover { background: var(--brand-strong); transform: translateY(-1px); }

/* ---------- 공식 페이지 버튼 변형 ---------- */
.btn-download.official { background: var(--surface-2); color: var(--text); border: 1.5px solid var(--line); }
.btn-download.official:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }

/* ---------- 접근성 포커스 ---------- */
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.search input:focus-visible, .global-text input:focus-visible,
.card-preview:focus-visible, .m-tester:focus-visible, .hero-tester:focus-visible,
.cmp-controls input:focus-visible { outline: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .header-inner { gap: 10px; }
  .logo-text { display: none; }
  .controls-inner { gap: 8px; }
  .size-ctl { flex: 1; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal-scroll { padding: 24px 18px 20px; }
  .adv-panel { gap: 12px; }
  .adv-group input[type="range"] { width: 90px; }
  .adv-reset { margin-left: 0; }
  .lic-pop { right: auto; left: 50%; transform: translateX(-50%); }
  .tray { bottom: 14px; padding: 8px 10px; }
  .cmp-head { padding: 20px 18px 12px; }
  .cmp-rows { padding: 4px 18px 20px; }
}
