
:root {
  color-scheme: light;
  --mz-bg: #f9f8f4;
  --mz-fg: #272a26;
  --mz-muted: #686e66;
  --mz-line: #dedfd6;
  --mz-paper: #fffefa;
  --mz-accent: #df503b;
  --mz-accent-ink: #c9412c;
  --mz-soft: #efeee6;
  --mz-lift: 0 1px 2px #1f241c0d, 0 12px 32px -12px #1f241c26;
  --mz-float: 0 2px 6px #1f241c0f, 0 40px 80px -32px #1f241c55;
  --muted: var(--mz-muted);
  --code: var(--mz-soft);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--mz-bg);
  color: var(--mz-fg);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: #e3e6ba;
  color: #252a20;
}
.mizi-site {
  overflow: clip;
}
.mizi-site a {
  color: inherit;
  text-decoration: none;
}
.mizi-site button,
.mizi-site input {
  font: inherit;
}
.mizi-site button {
  cursor: pointer;
}
.mizi-site :focus-visible,
.cookie :focus-visible {
  outline: 3px solid var(--mz-accent);
  outline-offset: 4px;
  border-radius: 6px;
}
.mizi-site h1,
.mizi-site h2,
.mizi-site h3,
.mizi-site p {
  margin: 0;
  word-break: keep-all;
}
.mizi-site svg {
  vertical-align: middle;
}
.mizi-skip {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 16px;
  transform: translateY(-150%);
  padding: 12px 20px;
  background: var(--mz-fg);
  color: var(--mz-bg) !important;
  border-radius: 8px;
}
.mizi-skip:focus {
  transform: none;
}

/* ── 머리띠 ─────────────────────────────────────────── */
.mizi-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--mz-line);
  background: var(--mz-bg);
}
@supports (backdrop-filter: blur(16px)) {
  .mizi-nav-wrap {
    background: color-mix(in srgb, var(--mz-bg) 86%, transparent);
    backdrop-filter: blur(16px) saturate(1.2);
  }
}
.mizi-nav {
  height: 72px;
  max-width: 1240px;
  padding: 0 32px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mizi-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mz-accent) !important;
}
.mizi-brand > span {
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -1.6px;
  color: var(--mz-fg);
}
.mizi-brand-dot {
  color: var(--mz-accent);
}
.mizi-nav-links {
  display: flex;
  gap: 30px;
  margin-left: 40px;
}
.mizi-nav-links a {
  font-size: 14px;
  font-weight: 550;
  color: var(--mz-muted);
  padding: 12px 0;
  transition: color 0.2s;
}
.mizi-nav-links a:hover,
.mizi-nav-links a[aria-current="page"] {
  color: var(--mz-fg);
}
.mizi-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mizi-my {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  background: var(--mz-fg);
  color: var(--mz-bg) !important;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.mizi-my:hover {
  opacity: 0.86;
}
.mizi-my svg {
  width: 15px;
  height: 15px;
}
.mizi-motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  gap: 7px;
  white-space: nowrap;
  font-size: 12px !important;
  border: 1px solid var(--mz-line);
  border-radius: 99px;
  background: transparent;
  color: var(--mz-muted);
}
.mizi-motion-toggle:hover:not(:disabled) {
  color: var(--mz-fg);
  border-color: var(--mz-muted);
}
.mizi-motion-toggle svg {
  width: 14px;
  height: 14px;
}

/* ── 모두 쓰는 조각 ───────────────────────────────────── */
.mizi {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.mizi-eyebrow {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.3px;
  line-height: 1.6;
  color: var(--mz-muted);
}
.mz-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.5;
  color: var(--mz-accent-ink);
}
.mizi-little-spark {
  color: var(--mz-accent);
  font-size: 20px;
  line-height: 1;
}
.mizi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  border: 1px solid transparent;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.mizi-button svg {
  width: 18px;
  height: 18px;
}
.mizi-button.primary {
  background: var(--mz-accent-ink);
  color: #fff;
}
.mizi-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--mz-accent-ink) 60%, transparent);
}
.mizi-button.ghost {
  background: var(--mz-paper);
  border-color: var(--mz-line);
  color: var(--mz-fg);
}
.mizi-button.ghost:hover {
  border-color: var(--mz-muted);
  transform: translateY(-2px);
}
.mizi-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}
.mizi-text-link svg {
  width: 16px;
  height: 16px;
}
.mizi-text-link > span {
  font-size: 18px;
}
.mizi-text-link:hover {
  color: var(--mz-accent-ink);
}
.mizi-lead {
  font-size: 17px;
  color: var(--mz-muted);
  line-height: 1.8;
  margin-top: 24px !important;
  letter-spacing: -0.3px;
}
.mizi-lead strong {
  font-weight: 650;
  color: var(--mz-fg);
}
.mizi h1 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.18;
  font-weight: 760;
  letter-spacing: -0.05em;
  margin-top: 20px;
}
.mizi h1 > span {
  color: var(--mz-accent);
}
.mizi-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}
.mizi-section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-weight: 720;
  margin-top: 10px;
}
.mizi-section-head > p {
  color: var(--mz-muted);
  font-size: 15px;
  line-height: 1.75;
  padding-bottom: 4px;
  text-align: right;
}
.mizi-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--mz-muted);
  line-height: 1.5;
}
.mizi-status > span,
.mz-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #8a8f87;
}
.mizi-status.on > span,
.mz-dot.on {
  background: #3f9460;
  box-shadow: 0 0 0 3px #3f946024;
}
.mizi-status.locked > span,
.mz-dot.locked {
  background: #c8933e;
}
/* 바깥 마을 — 답하는지는 모르고, 연결돼 있다는 것만 안다. 초록(답한다)과 헷갈리지 않는 색. */
.mizi-status.linked > span {
  background: #6f8fb3;
}
.mz-face-stack {
  display: inline-flex;
  align-items: center;
}
.mz-face-stack > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mz-soft);
  border: 2px solid var(--mz-bg);
  overflow: hidden;
}
.mz-face-stack > span + span {
  margin-left: -9px;
}
.mz-face-stack.large > span {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border-width: 3px;
  background: var(--mz-paper);
}
.mz-face-stack.large > span + span {
  margin-left: -14px;
}
.theme-forest {
  --world: #e1e9d8;
  --world-ink: #476449;
  --world-deep: #355240;
}
.theme-lavender {
  --world: #e7e3f1;
  --world-ink: #756396;
  --world-deep: #62527f;
}
.theme-rose {
  --world: #f1e1df;
  --world-ink: #a46169;
  --world-deep: #8f4c54;
}
.theme-sand {
  --world: #ede6d6;
  --world-ink: #8b7653;
  --world-deep: #766342;
}

/* ── 첫 화면 ─────────────────────────────────────────── */
.mizi-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
  min-height: 640px;
  padding: 72px 0 96px;
}
.mizi-hero-copy {
  min-width: 0;
}
.mizi-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.mizi-hero-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  color: var(--mz-muted);
  font-size: 14px;
}
.mizi-hero-art {
  min-width: 0;
  position: relative;
}
.mizi-hero-art:before {
  content: "";
  position: absolute;
  inset: -12% -8% -6% -8%;
  z-index: -1;
  background:
    radial-gradient(40% 45% at 70% 30%, color-mix(in srgb, var(--mz-accent) 16%, transparent), transparent 70%),
    radial-gradient(45% 50% at 25% 75%, #9fb98a33, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

/* 첫 화면의 앱 그림 — 탭·창·도크 */
.mz-demo {
  display: grid;
  /* 탭의 글자 폭이 틀을 밀어내지 않게 — 넘치면 탭 줄이 옆으로 밀린다. */
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.mz-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.mz-demo-bar .mizi-motion-toggle {
  flex: none;
}
.mz-demo-tabs {
  display: inline-flex;
  min-width: 0;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--mz-soft);
  border: 1px solid var(--mz-line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.mz-demo-tabs::-webkit-scrollbar {
  display: none;
}
.mz-demo-tab {
  /* 줄지 않는다 — 탭이 많거나 이름이 길면 탭 줄이 옆으로 밀리고, 글자가 잘리지 않는다. */
  flex: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mz-muted);
  font-size: 13.5px !important;
  font-weight: 620;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.mz-demo-tab:hover {
  color: var(--mz-fg);
}
.mz-demo-tab[aria-selected="true"] {
  background: var(--mz-paper);
  color: var(--mz-fg);
  box-shadow:
    0 1px 2px #1f241c14,
    0 0 0 1px var(--mz-line);
}
.mz-demo-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--world-ink);
  opacity: 0.55;
  transform-origin: left center;
  animation: mz-progress 6.5s linear forwards;
}
.mz-demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.mz-window {
  grid-area: 1 / 1;
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--mz-paper);
  border: 1px solid var(--mz-line);
  box-shadow: var(--mz-float);
  /* 들어오는 창은 나가는 창이 거의 빠진 뒤에 선다 — 둘이 반씩 겹쳐 보이는 순간을 줄인다. */
  transition:
    opacity 0.45s ease 0.12s,
    transform 0.5s cubic-bezier(0.2, 0.65, 0.3, 1) 0.12s;
}
.mz-window[data-active="false"] {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  transition-duration: 0.2s;
  transition-delay: 0s;
}
.mz-window-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--mz-line);
  background: color-mix(in srgb, var(--mz-soft) 55%, var(--mz-paper));
}
.mz-window-dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}
.mz-window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mz-line);
}
.mz-window-url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 280px;
  height: 26px;
  margin: 0 auto;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--mz-bg);
  border: 1px solid var(--mz-line);
  color: var(--mz-muted);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mz-window-url svg {
  flex: none;
}
.mz-window-top:after {
  content: "";
  width: 42px;
  flex: none;
}
.mz-screen {
  position: relative;
  height: 392px;
  overflow: hidden;
  isolation: isolate;
}
.mz-demo-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mz-muted);
  text-align: center;
}
.mz-demo-empty {
  place-items: center;
  min-height: 420px;
  border: 1px dashed var(--mz-line);
  border-radius: 22px;
  color: var(--mz-muted);
  font-size: 14px;
}

/* 포커 판 */
.mz-screen-poker {
  background: radial-gradient(120% 90% at 50% 20%, #2c5f43 0%, #1d4331 58%, #15301f 100%);
}
.mz-felt {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 34px;
  height: 196px;
  border-radius: 999px;
  background: radial-gradient(70% 80% at 50% 40%, #3b8a5b, #2a6645 72%, #235a3c);
  box-shadow:
    inset 0 0 0 2px #ffffff14,
    inset 0 10px 30px #00000026,
    0 0 0 9px #3d2b1e,
    0 0 0 10px #5a4230,
    0 22px 40px #00000055;
}
.mz-board {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -38%);
  display: flex;
  gap: 7px;
}
.mz-slot {
  width: 36px;
  height: 50px;
  border-radius: 6px;
  border: 1.5px dashed #ffffff40;
  background: #ffffff08;
}
.mz-pot {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
}
.mz-pot i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e4c98d;
  border: 3px dashed #a8874b;
  box-shadow: 0 2px 0 #00000033;
}
.mz-pot i:nth-child(2) {
  background: #d8685a;
  border-color: #fff4;
  transform: translateY(-3px);
}
.mz-seat {
  position: absolute;
  top: -22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a3a28;
  border: 2px solid #ffffff2e;
  display: grid;
  place-items: center;
}
.mz-seat i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #ffffff38;
}
.seat-left {
  left: 20%;
}
.seat-right {
  right: 20%;
}
.mz-dealer {
  position: absolute;
  right: 23%;
  bottom: 30px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fbfaf4;
  color: #1f2a22;
  font: 800 11px/1 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 2px 0 #0000004d;
}
.mz-hand {
  position: absolute;
  left: 40%;
  top: 184px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.mz-card {
  position: relative;
  display: block;
  width: 54px;
  height: 76px;
  border-radius: 8px;
  background: #fbfaf4;
  color: #1f2a22;
  box-shadow:
    0 1px 0 #ffffff inset,
    0 10px 20px #00000059;
  font-family: ui-serif, Georgia, serif;
}
.mz-card:first-child {
  transform: rotate(-7deg) translateY(2px);
}
.mz-card:last-child {
  transform: rotate(6deg);
}
.mz-card b {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 17px;
  line-height: 1;
}
.mz-card > span {
  position: absolute;
  inset: 20px 0 0;
  display: grid;
  place-items: center;
  font-size: 30px;
}
.mz-card.red {
  color: #c0453b;
}
.mz-actions {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 7px;
}
.mz-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: #ffffff17;
  border: 1px solid #ffffff21;
  color: #e7efe8;
  font-size: 12.5px;
  font-weight: 650;
}
.mz-actions .lead {
  background: #e4c98d;
  border-color: #e4c98d;
  color: #2a2317;
}

/* 타로 펼침 */
.mz-screen-tarot {
  background: radial-gradient(90% 75% at 50% 15%, #4b3b70 0%, #2b2147 58%, #1b142e 100%);
}
.mz-moon {
  position: absolute;
  top: 28px;
  right: 13%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: -8px 4px 0 0 #e4c98d;
  transform: rotate(-20deg);
  opacity: 0.85;
}
.mz-star {
  position: absolute;
  color: #e4c98d;
  opacity: 0.7;
  animation: mizi-glint 4s ease-in-out infinite;
}
.star-one {
  top: 42px;
  left: 14%;
  font-size: 14px;
}
.star-two {
  top: 120px;
  left: 8%;
  font-size: 11px;
  animation-delay: 1.2s;
}
.star-three {
  top: 96px;
  right: 9%;
  font-size: 12px;
  animation-delay: 2s;
}
.mz-spread {
  position: absolute;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
}
.mz-tcard {
  position: relative;
  width: 72px;
  height: 116px;
  border-radius: 9px;
  border: 2px solid #e4c98d99;
  background:
    radial-gradient(circle at 50% 50%, #e4c98d33 0 14px, transparent 15px),
    repeating-linear-gradient(45deg, #ffffff0a 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #6a55a0, #3d2e66);
  box-shadow:
    0 0 0 5px #e4c98d1f,
    0 0 30px #e4c98d40,
    0 14px 28px #00000073;
}
.mz-tcard:nth-child(2) {
  transform: translateY(-10px);
}
.mz-tcard em {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4c98d;
  color: #2a2148;
  font: 800 11px/1 ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
}
.mz-deck {
  position: absolute;
  left: 50%;
  bottom: -44px;
  width: 0;
  height: 0;
}
.mz-deck span {
  position: absolute;
  left: -22px;
  bottom: 0;
  width: 44px;
  height: 72px;
  border-radius: 6px;
  border: 1.5px solid #e4c98d66;
  background: linear-gradient(160deg, #54438a, #2f2452);
  transform-origin: 50% 180%;
  transform: rotate(calc(var(--i) * 8deg));
  box-shadow: 0 6px 14px #0000004d;
}

/* 취향 월드컵 */
.mz-screen-worldcup {
  background: linear-gradient(180deg, #fbefee 0%, #f4dddd 100%);
}
.mz-cup-round {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: #9c2f45;
  font-size: 12.5px;
  font-weight: 750;
  box-shadow: 0 2px 8px #9c2f4514;
}
.mz-cup-pair {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.mz-cup-option {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 132px;
  height: 152px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px #9c2f451a;
}
.mz-cup-option b {
  font-size: 46px;
  line-height: 1;
}
.mz-cup-option em {
  font-style: normal;
  font-size: 14px;
  font-weight: 750;
  color: #3a0f1a;
}
.mz-cup-option.picked {
  border-color: #e8657a;
  transform: translateY(-6px) rotate(1.5deg);
  box-shadow:
    0 0 0 6px #e8657a26,
    0 16px 30px #9c2f452e;
}
.mz-vs {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 1px;
  color: #c2415a;
}
.mz-cup-steps {
  position: absolute;
  left: 22px;
  bottom: 26px;
  display: flex;
  gap: 6px;
}
.mz-cup-steps i {
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: #e8657a33;
}
.mz-cup-steps i.done {
  background: #e8657a99;
}
.mz-cup-steps i.on {
  background: #c2415a;
}
.mz-screen-other {
  background: var(--mz-soft);
}
.mz-other {
  position: absolute;
  inset: 40px 32px auto;
  display: grid;
  gap: 12px;
}
.mz-other span {
  height: 56px;
  border-radius: 12px;
  background: var(--mz-paper);
  border: 1px solid var(--mz-line);
}

/* 앱 구석의 도크 — 모양은 앱의 것(explore/dock-styles.ts) */
.mz-dock {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: min(268px, 72%);
}
.mz-dock-bubble {
  padding: 11px 15px 12px;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(163deg, #ffffff30 0%, #ffffff12 26%, #ffffff00 56%), #241c40;
  border: 1px solid #e4c98d3d;
  box-shadow:
    0 12px 28px #05030f8c,
    inset 0 1px 0 #ffffff33;
  color: #f0e9f7;
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}
.mz-dock-when {
  display: block;
  margin-bottom: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: #c9c0e8;
}
.mz-dock-row {
  display: flex;
  align-items: center;
}
.mz-dock-face {
  line-height: 0;
  margin-right: 6px;
  filter: drop-shadow(0 6px 12px #00000073) drop-shadow(0 0 1px #e4c98d40);
  animation: mizi-bob 3.6s ease-in-out infinite;
}
.mz-dock-pill {
  display: flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(163deg, #ffffff3d 0%, #ffffff17 26%, #ffffff00 56%), #2a2148ed;
  border: 1px solid #e4c98d3d;
  box-shadow:
    0 8px 24px #05030f8c,
    inset 0 1px 0 #ffffff26;
  color: #e0d5bd;
}
.mz-dock-pill svg {
  box-sizing: content-box;
  padding: 11px 13px;
}
.mz-dock-pill svg + svg {
  box-shadow: inset 1px 0 0 #ffffff1a;
}
/*
  말풍선은 **움직임이 켜져 있을 때만** 올라온다. 멈춘 채(모션 끄기, 그리고 스크립트가 붙기 전)로 이 애니메이션이
  걸리면 첫 장면(투명)에서 얼어서 말풍선이 안 보인다 — 멈춤은 「덜 보이기」가 아니라 「안 움직이기」다.
*/
html[data-mizi-motion="running"] .mz-window[data-active="true"] .mz-dock-bubble {
  animation: mz-rise 0.45s 0.35s cubic-bezier(0.2, 0.65, 0.3, 1) both;
}

/* ── 마을 ────────────────────────────────────────────── */
.mizi-villages {
  padding: 8px 0 104px;
  scroll-margin-top: 20px;
}
.mizi-world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.mizi-world {
  border: 1px solid var(--mz-line);
  border-radius: 20px;
  background: var(--mz-paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 15px;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}
.mizi-world:hover,
.mizi-world:focus-within {
  border-color: color-mix(in srgb, var(--world-ink) 45%, transparent);
  box-shadow: var(--mz-lift);
  transform: translateY(-4px);
}
.mizi-world-art {
  position: relative;
  background: var(--world);
  padding: 22px 0 22px;
  overflow: hidden;
}
.mizi-world-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mz-paper) 70%, transparent);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--world-deep);
}
.mizi-world-caption {
  text-align: center;
  font-size: 14px;
  color: var(--world-deep);
  font-weight: 650;
  letter-spacing: -0.3px;
}
.mizi-world-body {
  padding: 24px 24px 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.mizi-world h3 {
  font-size: 24px;
  font-weight: 720;
  letter-spacing: -0.8px;
  margin-top: 10px;
}
.mizi-does {
  font-size: 15px;
  color: var(--mz-muted);
  line-height: 1.75;
  margin-top: 10px !important;
  min-height: 78px;
}
.mizi-prompt {
  margin-top: 18px;
  background: var(--mz-bg);
  border: 1px solid var(--mz-line);
  border-radius: 12px;
  padding: 12px 14px;
}
.mizi-prompt > span {
  display: block;
  color: var(--mz-muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.mizi-prompt > p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.3px;
}
.mizi-refuses {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mz-muted);
  margin: 16px 0 22px !important;
}
.mizi-refuses svg {
  flex: none;
  margin-top: 3px;
  color: var(--world-ink);
}
.mizi-world-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding: 18px 0;
  border-top: 1px solid var(--mz-line);
  font-size: 15px;
  font-weight: 700;
  min-height: 62px;
}
.mizi-world-link > svg {
  width: 18px;
  transition: transform 0.2s;
}
.mizi-world-link:hover > svg {
  transform: translate(3px, -3px);
}
.mizi-world-link:hover {
  color: var(--mz-accent-ink);
}

/* 마을 카드의 그림 조각 */
.mizi-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 215px;
}
.mizi-scene-orbit {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid var(--world-ink);
  border-radius: 50%;
  opacity: 0.16;
  top: 12px;
  left: calc(50% - 85px);
}
.mizi-scene-orbit:after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px dashed var(--world-ink);
  border-radius: 50%;
}
.mizi-character {
  position: relative;
  z-index: 3;
  transform-origin: 50% 90%;
  animation: mizi-bob 4.5s ease-in-out infinite;
}
.mizi-character:has(.agent-face:not(.alive)) {
  animation: none;
}
.mizi-character .agent-face {
  display: block;
  max-height: 148px;
  width: auto;
  max-width: 130px;
  filter: drop-shadow(0 4px 0 #24272a12);
}
.mizi-character-shadow {
  position: absolute;
  width: 97px;
  height: 13px;
  bottom: 22px;
  left: calc(50% - 48.5px);
  border-radius: 50%;
  background: var(--world-ink);
  opacity: 0.14;
  filter: blur(2px);
}
.mizi-scene-spark {
  position: absolute;
  color: var(--world-ink);
  z-index: 2;
}
.spark-one {
  top: 32px;
  right: 21%;
  width: 15px;
  height: 15px;
  animation: mizi-glint 4s ease-in-out infinite;
}
.spark-two {
  bottom: 56px;
  left: 18%;
  width: 10px;
  height: 10px;
  animation: mizi-glint 4s 1s ease-in-out infinite;
}
.mizi-playing-card {
  position: absolute;
  display: block;
  width: 49px;
  height: 69px;
  border: 1px solid #69846655;
  border-radius: 5px;
  background: #fbfbf1;
  color: #3e6049;
  font:
    15px/1 ui-serif,
    Georgia,
    serif;
  padding: 5px;
  top: 45px;
  left: 18%;
  transform: rotate(-18deg);
}
.mizi-playing-card > span {
  display: block;
  text-align: center;
  font-size: 28px;
  line-height: 1.2;
}
.mizi-playing-card.card-two {
  left: auto;
  right: 17%;
  top: 61px;
  transform: rotate(19deg);
  color: #bb5c56;
}
.mizi-chip {
  position: absolute;
  width: 28px;
  height: 10px;
  background: #f5e7b0;
  border: 3px dashed #ab904d;
  border-radius: 50%;
  bottom: 28px;
  left: 22%;
  transform: rotate(-12deg);
}
.mizi-chip.chip-two {
  bottom: 35px;
  left: 24%;
}
.mizi-moon {
  position: absolute;
  top: 15px;
  right: 25%;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  box-shadow: -7px 3px 0 0 var(--world-ink);
  transform: rotate(-20deg);
  opacity: 0.55;
}
.mizi-tarot-card {
  position: absolute;
  width: 45px;
  height: 68px;
  display: grid;
  place-items: center;
  color: #e9d59b;
  border: 3px double #b4a482;
  border-radius: 4px;
  background: #645377;
  font-size: 25px;
  left: 19%;
  top: 73px;
  transform: rotate(-15deg);
}
.mizi-tarot-card.card-two {
  left: auto;
  right: 17%;
  top: 78px;
  transform: rotate(18deg);
}
.mizi-choice {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 49px;
  border: 1px solid #bc80803d;
  background: #fff8ef;
  border-radius: 10px;
  font-size: 25px;
  color: #bd737b;
  left: 18%;
  top: 67px;
  transform: rotate(-15deg);
}
.mizi-choice.choice-two {
  left: auto;
  right: 17%;
  top: 48px;
  transform: rotate(14deg);
  color: #b39550;
}
.mizi-confetti {
  position: absolute;
  width: 7px;
  height: 14px;
  background: var(--world-ink);
  opacity: 0.4;
  transform: rotate(25deg);
  left: 30%;
  top: 25px;
}
.mizi-confetti.confetti-two {
  left: auto;
  right: 24%;
  top: 137px;
  transform: rotate(-30deg);
  height: 9px;
}

/* ── 미지들 ──────────────────────────────────────────── */
.mz-cast {
  padding: 0 0 104px;
  scroll-margin-top: 20px;
}
.mz-cast-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.mz-cast-grid > li {
  min-width: 0;
}
.mz-persona {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--mz-line);
  border-radius: 20px;
  background: var(--mz-paper);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
}
.mz-persona:hover,
.mz-persona:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--mz-lift);
  border-color: color-mix(in srgb, var(--world-ink) 45%, transparent);
}
.mz-persona-face {
  position: relative;
  display: grid;
  place-items: center;
  height: 132px;
  background:
    radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--mz-paper) 55%, transparent), transparent 70%),
    var(--world);
}
.mz-persona-face .agent-face {
  filter: drop-shadow(0 6px 0 #1f241c14);
  transition: transform 0.3s;
}
.mz-persona:hover .mz-persona-face .agent-face {
  transform: translateY(-4px) rotate(-2deg);
}
/*
  그림 얼굴(PictureFace) — 세로 그림(2:3)을 얼굴 칸에 가득. 칸이 가로로 길어 얼굴 둘레만 남는다: 인형(자란 모습·대표 그림)은
  얼굴이 그림 위에서 20~55% 자리라 32% 에, 조교 사진은 14~31% 라 16% 에 맞춘다(2026-10-01 일곱 장을 112·150px 칸에 잘라 봄).
*/
.mz-pic {
  position: relative;
  overflow: hidden;
}
.mz-pic > .mz-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  transition: transform 0.35s;
}
.mz-pic > .mz-photo.ta {
  object-position: 50% 16%;
}
.mz-persona:hover .mz-persona-face .mz-photo {
  transform: scale(1.04);
}
/* 겹친 얼굴 묶음의 그림 얼굴(SmallFace) — 칸(둥근 틀)을 가득 채운다. 픽셀은 칸 가운데 작게, 그림은 칸째. */
.mz-face-stack > span > .mz-face-pic,
.mz-final-faces > span > .mz-face-pic {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.mz-persona-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 15px 18px;
}
.mz-persona-body strong {
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.5px;
}
.mz-persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mz-persona-tags span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--mz-soft);
  color: var(--mz-muted);
  font-size: 12px;
  font-weight: 550;
}
.mz-persona-line {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mz-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}
.mz-cast-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}
.mizi-explore-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 104px;
  padding: 34px 38px;
  border: 1px solid var(--mz-line);
  border-radius: 20px;
  background: var(--mz-paper);
}
.mizi-explore-band h2 {
  font-size: 26px;
  letter-spacing: -0.9px;
  font-weight: 700;
  margin: 8px 0 6px;
}
.mizi-explore-band p:not(.mz-kicker) {
  color: var(--mz-muted);
  font-size: 15px;
  line-height: 1.75;
}
.mizi-explore-band .mizi-button {
  flex: none;
}

/* ── 이렇게 함께해요 ─────────────────────────────────── */
.mz-how {
  border-top: 1px solid var(--mz-line);
  padding: 96px 0 104px;
  scroll-margin-top: 0;
}
.mz-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.mz-steps > li {
  min-width: 0;
  border: 1px solid var(--mz-line);
  border-radius: 20px;
  background: var(--mz-paper);
  padding: 18px 18px 26px;
}
.mz-step-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  height: 128px;
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 14px;
  background: var(--mz-soft);
  overflow: hidden;
}
.mz-step-world {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--world);
  color: var(--world-deep);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.mz-step-world:nth-child(1) {
  transform: rotate(-4deg);
}
.mz-step-world:nth-child(3) {
  transform: rotate(3deg);
}
.mz-step-screen {
  display: grid;
  gap: 7px;
  align-content: center;
  width: 150px;
  height: 88px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--mz-paper);
  border: 1px solid var(--mz-line);
}
.mz-step-screen i {
  height: 8px;
  border-radius: 4px;
  background: var(--mz-line);
}
.mz-step-screen i:nth-child(2) {
  width: 70%;
}
.mz-step-screen i:nth-child(3) {
  width: 45%;
}
.mz-step-bubble {
  position: absolute;
  right: calc(50% - 104px);
  bottom: 18px;
  display: flex;
  gap: 4px;
  padding: 10px 13px;
  border-radius: 14px 14px 4px 14px;
  background: #241c40;
  border: 1px solid #e4c98d3d;
  box-shadow: 0 8px 18px #05030f4d;
}
.mz-step-bubble i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e0d5bd;
  animation: mz-typing 1.4s ease-in-out infinite;
}
.mz-step-bubble i:nth-child(2) {
  animation-delay: 0.2s;
}
.mz-step-bubble i:nth-child(3) {
  animation-delay: 0.4s;
}
.mz-step-no {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 0 12px 6px;
  border-radius: 50%;
  background: var(--mz-fg);
  color: var(--mz-bg);
  font-size: 13px;
  font-weight: 750;
}
.mz-steps h3 {
  margin: 0 6px !important;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.6px;
}
.mz-steps p {
  margin: 8px 6px 0 !important;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mz-muted);
}
.mz-promises {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 20px;
  padding: 30px 32px;
  border-radius: 20px;
  background: var(--mz-fg);
  color: var(--mz-bg);
}
.mz-promises h3 {
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.5px;
  line-height: 1.4;
}
.mz-promises ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px 28px;
}
.mz-promises li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mz-promises svg {
  flex: none;
  color: var(--mz-accent);
  margin-top: 1px;
}
.mz-promises p {
  font-size: 14px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--mz-bg) 74%, var(--mz-fg));
}
.mz-promises strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--mz-bg);
}

/* ── AI에 연결하기 (마이페이지와 함께 쓴다) ───────────────── */
.mizi-connect {
  background: #e9ecdf;
  border: 1px solid #dce1d1;
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin: 0 0 24px;
}
.mizi-connect h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.04em;
  font-weight: 720;
  margin-top: 12px;
}
.mizi-connect h2 > span {
  color: #5d7446;
}
.mizi-connect-copy > p:not(.mizi-eyebrow):not(.mz-kicker) {
  font-size: 15px;
  color: var(--mz-muted);
  line-height: 1.8;
  margin-top: 18px;
}
.mizi-connect-copy > .mizi-text-link {
  margin-top: 16px;
  font-size: 14px;
}
.mizi-connect-panel {
  background: var(--mz-paper);
  padding: 28px;
  border: 1px solid var(--mz-line);
  border-radius: 16px;
  box-shadow: var(--mz-lift);
  min-width: 0;
}
.mizi-connect-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mizi-connect-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mz-line);
  border-radius: 11px;
  font-size: 22px;
  background: var(--mz-bg);
  flex: none;
}
.mizi-connect-panel h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.mizi-connect-panel-head p {
  font-size: 13px;
  color: var(--mz-muted);
  margin-top: 3px;
}
.mizi-mcp-copy {
  margin-top: 22px;
}
.mizi-mcp-address {
  display: block;
  width: 100%;
  min-width: 0;
  background: var(--mz-bg);
  border: 1px solid var(--mz-line);
  border-radius: 10px;
  padding: 14px 14px;
  color: var(--mz-fg);
  font:
    13px/1.5 ui-monospace,
    monospace !important;
}
.mizi-copy-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 10px;
  background: var(--mz-fg);
  color: var(--mz-bg);
  min-height: 48px;
  margin-top: 10px;
  font-size: 14px !important;
  font-weight: 650 !important;
  transition: opacity 0.2s;
}
.mizi-copy-button:hover {
  opacity: 0.86;
}
.mizi-copy-button svg {
  width: 16px;
  height: 16px;
}
.mizi-copy-status {
  font-size: 12.5px;
  color: var(--mz-muted);
  line-height: 1.6;
  min-height: 20px;
  margin-top: 8px !important;
}
.mizi-address-empty {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 20px !important;
  color: var(--mz-muted);
}
.mizi-connect-steps {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.mizi-connect-steps li {
  font-size: 13px;
  color: var(--mz-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.5;
}
.mizi-connect-steps li > span {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--mz-soft);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--mz-fg);
}
.mizi-connect-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--mz-line);
  padding-top: 18px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--mz-muted) !important;
}
.mizi-connect-help:hover {
  color: var(--mz-fg) !important;
}
.mizi-connect-help svg {
  width: 16px;
}

/* ── 맺음 ────────────────────────────────────────────── */
.mz-final {
  text-align: center;
  padding: 88px 24px 92px;
  margin: 0 0 8px;
  border-radius: 24px;
  border: 1px solid var(--mz-line);
  background:
    radial-gradient(70% 90% at 50% 0%, color-mix(in srgb, var(--mz-accent) 13%, transparent), transparent 70%),
    var(--mz-paper);
}
.mz-final-faces {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 28px;
}
.mz-final-faces > span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: var(--mz-soft);
  border: 1px solid var(--mz-line);
  animation: mizi-bob 4.5s ease-in-out infinite;
}
.mz-final-faces > span:nth-child(2n) {
  transform: translateY(-8px);
  animation-delay: -1.2s;
}
.mz-final-faces > span:nth-child(3) {
  animation-delay: -2.1s;
}
.mz-final h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
  font-weight: 760;
  letter-spacing: -0.05em;
}
.mz-final h2 > span {
  color: var(--mz-accent);
}
.mz-final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.mizi-empty {
  text-align: center;
  border: 1px dashed var(--mz-line);
  padding: 48px 24px;
  border-radius: 16px;
}
.mizi-empty h3 {
  margin-top: 16px;
  font-size: 20px;
}
.mizi-empty p {
  font-size: 14px;
  color: var(--mz-muted);
  margin: 12px 0 16px;
}

/* ── 발밑 ────────────────────────────────────────────── */
.mizi .site-foot {
  border-top: 1px solid var(--mz-line);
  margin-top: 64px;
  padding: 44px 0 28px;
}
.mizi .site-foot .fcols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
/* 「미지 서비스」 칸이 선 발밑(SiteFooter). :where 로 무게를 안 늘린다 — 뒤의 좁은 화면 규칙이 그대로 이긴다. */
.mizi .site-foot .fcols:where(.four) {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 860px) {
  .mizi .site-foot .fcols:where(.four) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mizi .site-foot .fcols:where(.four) .fbrand {
    grid-column: 1/-1;
  }
}
.mizi .site-foot .fbrand b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.mizi .site-foot .fbrand p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mz-muted);
  max-width: 32ch;
  margin-top: 10px;
}
.mizi .site-foot h4 {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--mz-muted);
  margin: 0 0 10px;
}
.mizi .site-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mizi .site-foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 13.5px;
}
.mizi .site-foot a:hover {
  color: var(--mz-accent-ink);
}
.mizi .site-foot .legal {
  border-top: 1px solid var(--mz-line);
  padding-top: 20px;
  margin-top: 30px;
}
.mizi .site-foot .legal p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--mz-muted);
  word-break: normal;
}
.mizi .site-foot .sep {
  margin: 0 5px;
  opacity: 0.45;
}
.mizi .site-foot .copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--mz-muted);
}
body:has(.mizi-site) > .cookie {
  position: fixed;
  z-index: 25;
  bottom: 16px;
  left: 24px;
  right: 24px;
  max-width: 790px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 18px;
  background: var(--mz-paper);
  border: 1px solid var(--mz-line);
  border-radius: 14px;
  box-shadow: 0 8px 40px #20272018;
}
body:has(.mizi-site) > .cookie p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mz-muted);
}
body:has(.mizi-site) > .cookie a {
  color: var(--mz-fg);
  text-underline-offset: 3px;
}
body:has(.mizi-site) > .cookie button {
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--mz-line);
  background: var(--mz-soft);
  color: var(--mz-fg);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
}

/* ── 움직임 ──────────────────────────────────────────── */
html:not([data-mizi-motion]) .mizi-site * {
  animation-play-state: paused !important;
}
@keyframes mizi-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}
@keyframes mizi-glint {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}
@keyframes mz-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes mz-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes mz-typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
[data-mizi-reveal] {
  opacity: 1;
  transform: none;
}
html[data-mizi-reveal="ready"] [data-mizi-reveal] {
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: calc(var(--reveal-order, 0) * 75ms);
}
html[data-mizi-reveal="ready"] [data-mizi-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(22px);
}
html[data-mizi-motion="paused"] .mizi-site *,
html[data-mizi-motion="paused"] .mizi-site *:before,
html[data-mizi-motion="paused"] .mizi-site *:after {
  animation-play-state: paused !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-mizi-motion="paused"] [data-mizi-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html[data-mizi-motion="paused"] {
  scroll-behavior: auto;
}
html[data-mizi-motion="paused"] .mizi-world:hover,
html[data-mizi-motion="paused"] .mizi-world:focus-within,
html[data-mizi-motion="paused"] .mizi-button:hover,
html[data-mizi-motion="paused"] .mz-persona:hover,
html[data-mizi-motion="paused"] .mz-persona:focus-visible,
html[data-mizi-motion="paused"] .mz-persona:hover .agent-face,
html[data-mizi-motion="paused"] .mizi-world-link:hover > svg {
  transform: none !important;
}

/* ── 어두운 화면 ─────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --mz-bg: #181b18;
    --mz-fg: #eeefe6;
    --mz-muted: #a6aca1;
    --mz-line: #363c33;
    --mz-paper: #20251f;
    --mz-accent: #f08771;
    --mz-accent-ink: #f08771;
    --mz-soft: #272e25;
    --mz-lift: 0 1px 2px #0000004d, 0 16px 36px -12px #00000080;
    --mz-float: 0 2px 6px #00000040, 0 40px 80px -30px #000000b3;
  }
  .theme-forest {
    --world: #304233;
    --world-ink: #a6c29f;
    --world-deep: #c7d9b9;
  }
  .theme-lavender {
    --world: #3a3348;
    --world-ink: #b2a1ca;
    --world-deep: #d6c7eb;
  }
  .theme-rose {
    --world: #493434;
    --world-ink: #d2a2a2;
    --world-deep: #e6c3bc;
  }
  .theme-sand {
    --world: #423e30;
    --world-ink: #cabd9a;
    --world-deep: #e0d4b5;
  }
  .mizi-button.primary {
    color: #25251f;
  }
  .mizi-connect {
    background: #262e22;
    border-color: #3a4533;
  }
  .mizi-connect h2 > span {
    color: #b4c99a;
  }
  .mizi-character-shadow {
    opacity: 0.22;
  }
  .mizi-playing-card {
    border-color: #b7c2a0;
  }
  .mz-screen-worldcup {
    background: linear-gradient(180deg, #3d2a2e 0%, #2f2023 100%);
  }
  .mz-cup-round,
  .mz-cup-option {
    background: #4a3237;
    color: #f6c9d0;
  }
  .mz-cup-option em {
    color: #fbe6e9;
  }
  .mz-window-dots i {
    background: #454c41;
  }
  .mz-promises {
    background: color-mix(in srgb, var(--mz-accent) 9%, var(--mz-paper));
    border: 1px solid color-mix(in srgb, var(--mz-accent) 22%, var(--mz-line));
    color: var(--mz-fg);
  }
  .mz-promises p {
    color: var(--mz-muted);
  }
  .mz-promises strong {
    color: var(--mz-fg);
  }
}

/* ── 좁은 화면 ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .mz-cast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .mizi-nav-links {
    margin-left: 0;
    gap: 22px;
  }
  .mizi-hero {
    gap: 36px;
    min-height: 580px;
    padding: 60px 0 80px;
  }
  .mizi-lead {
    font-size: 16px;
  }
  .mz-screen {
    height: 360px;
  }
  .mizi-world-grid {
    gap: 15px;
  }
  .mizi-world-body {
    padding: 22px 20px 0;
  }
  .mizi-world h3 {
    font-size: 22px;
  }
  .mz-steps {
    gap: 14px;
  }
  .mz-promises {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mizi-connect {
    padding: 40px;
    gap: 36px;
  }
  .mizi-connect-panel {
    padding: 22px;
  }
  .mizi-connect-steps {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 860px) {
  .mizi-nav {
    padding: 0 24px;
    gap: 16px;
  }
  .mizi-nav-links {
    gap: 18px;
  }
  .mizi-nav-links a {
    font-size: 13px;
  }
  .mizi-nav-links a:nth-child(2) {
    display: none;
  }
  /* 에이전트 목록 링크는 남기고, 대신 같은 화면 안의 「이렇게 함께해요」를 뺀다. */
  .mizi-nav-links a.mizi-nav-keep {
    display: inline;
  }
  .mizi-nav-links a.mizi-nav-minor {
    display: none;
  }
  .mizi {
    padding: 0 24px;
  }
  .mizi-hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 52px 0 72px;
    min-height: 0;
  }
  .mizi-hero-art {
    width: 100%;
    max-width: 640px;
    justify-self: center;
  }
  .mizi-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .mizi-section-head > p {
    text-align: left;
    padding: 0;
  }
  .mizi-world-grid {
    grid-template-columns: 1fr;
  }
  .mizi-world {
    display: grid;
    grid-template-columns: 42% 1fr;
  }
  .mizi-world-art {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
  .mizi-world-art .mizi-scene {
    height: 200px;
  }
  .mizi-world-tag {
    position: absolute;
    top: 20px;
    left: 18px;
    margin: 0;
  }
  .mizi-world-caption {
    padding: 0 20px;
  }
  .mizi-does {
    min-height: 0;
  }
  .mz-steps {
    grid-template-columns: 1fr;
  }
  .mz-steps > li {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 20px;
    align-items: start;
  }
  .mz-step-art {
    grid-row: 1 / 4;
    margin: 0;
    height: 100%;
    min-height: 128px;
  }
  .mz-step-no {
    margin-top: 6px;
  }
  .mizi-connect {
    grid-template-columns: 1fr;
    padding: 36px;
  }
  .mizi-desktop-break {
    display: none;
  }
}
@media (max-width: 640px) {
  .mizi-explore-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 24px;
  }
  .mz-cast-grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    margin: 0 -20px;
    padding: 4px 20px 12px;
    scrollbar-width: none;
  }
  .mz-cast-grid::-webkit-scrollbar {
    display: none;
  }
  .mz-cast-grid > li {
    scroll-snap-align: start;
  }
  .mz-cast-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .mz-cast-foot .mizi-text-link {
    justify-content: center;
  }
}
@media (max-width: 540px) {
  html {
    scroll-padding-top: 76px;
  }
  .mizi-nav {
    height: 64px;
    padding: 0 20px;
  }
  .mizi-brand > span {
    font-size: 25px;
  }
  .mizi-brand > svg {
    width: 23px;
    height: 23px;
  }
  .mizi-nav-links {
    display: none;
  }
  .mizi-my {
    min-height: 40px;
    padding: 0 14px 0 16px;
    font-size: 13.5px;
  }
  .mizi-motion-toggle {
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
  }
  .mizi-motion-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .mizi {
    padding: 0 20px;
  }
  .mizi-hero {
    padding: 40px 0 64px;
    gap: 36px;
  }
  .mizi h1 {
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1.2;
    margin-top: 16px;
  }
  .mizi-lead {
    font-size: 15.5px;
    line-height: 1.8;
    margin-top: 18px !important;
  }
  .mizi-hero-actions {
    margin-top: 26px;
    gap: 10px;
  }
  .mizi-hero-actions .mizi-button {
    flex: 1 1 auto;
  }
  .mizi-button {
    min-height: 50px;
    padding: 0 18px;
    font-size: 15px;
  }
  .mizi-hero-note {
    font-size: 13px;
    margin-top: 22px;
  }
  .mz-demo-tab {
    padding: 0 12px;
    font-size: 13px !important;
  }
  .mz-window {
    border-radius: 18px;
  }
  .mz-window-dots {
    display: none;
  }
  .mz-window-top:after {
    display: none;
  }
  .mz-screen {
    height: 348px;
  }
  .mz-felt {
    left: 5%;
    right: 5%;
    top: 30px;
    height: 150px;
  }
  .mz-board {
    transform: translate(-50%, -62%);
  }
  .mz-dealer {
    bottom: 18px;
    right: 16%;
  }
  .mz-slot {
    width: 30px;
    height: 42px;
  }
  .mz-hand {
    left: 50%;
    top: 124px;
  }
  .mz-card {
    width: 46px;
    height: 66px;
  }
  .mz-card > span {
    font-size: 26px;
  }
  .mz-actions span:not(.lead) {
    display: none;
  }
  .mz-spread {
    gap: 12px;
    top: 56px;
  }
  .mz-tcard {
    width: 62px;
    height: 100px;
  }
  .mz-cup-option {
    width: 112px;
    height: 132px;
  }
  .mz-cup-option b {
    font-size: 40px;
  }
  .mz-cup-pair {
    top: 70px;
    gap: 10px;
  }
  .mz-dock {
    right: 12px;
    bottom: 12px;
    max-width: 78%;
  }
  .mz-dock-bubble {
    font-size: 13.5px;
    padding: 10px 13px 11px;
  }
  .mz-dock-pill svg {
    padding: 10px 11px;
  }
  .mz-demo-note {
    font-size: 12px;
  }
  .mizi-section-head {
    margin-bottom: 26px;
  }
  .mizi-section-head h2 {
    font-size: 28px;
  }
  .mizi-section-head > p {
    font-size: 14.5px;
  }
  .mizi-section-head > p > br {
    display: none;
  }
  .mizi-villages {
    padding-bottom: 72px;
  }
  .mizi-world-grid {
    gap: 18px;
  }
  .mizi-world {
    display: flex;
  }
  .mizi-world-art {
    padding: 20px 0 22px;
  }
  .mizi-world-tag {
    position: static;
    margin-left: 20px;
  }
  .mizi-world-art .mizi-scene {
    height: 205px;
  }
  .mizi-world-body {
    padding: 22px 20px 0;
  }
  .mizi-world h3 {
    font-size: 23px;
  }
  .mz-cast {
    padding-bottom: 72px;
  }
  .mz-how {
    padding: 64px 0 72px;
  }
  .mz-steps > li {
    display: block;
    padding: 16px 16px 22px;
  }
  .mz-step-art {
    height: 112px;
    min-height: 0;
    margin-bottom: 18px;
  }
  .mz-promises {
    padding: 24px 22px;
  }
  .mz-promises ul {
    grid-template-columns: 1fr;
  }
  .mizi-connect {
    padding: 28px 20px 22px;
    gap: 26px;
    border-radius: 20px;
  }
  .mizi-connect-panel {
    padding: 20px;
  }
  .mizi-mcp-address {
    font-size: 12px !important;
  }
  .mz-final {
    padding: 60px 20px 64px;
    border-radius: 20px;
  }
  .mz-final-faces {
    gap: 6px;
  }
  .mz-final-faces > span {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }
  .mz-final-faces .agent-face {
    width: 38px;
    height: auto;
  }
  .mz-final-actions .mizi-button {
    flex: 1 1 100%;
  }
  .mizi .site-foot {
    margin-top: 44px;
    padding-top: 30px;
  }
  .mizi .site-foot .fcols {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .mizi .site-foot .fbrand {
    grid-column: 1/-1;
  }
  .mizi .site-foot nav a {
    min-height: 40px;
  }
  .mizi .site-foot .copy {
    flex-direction: column;
    gap: 5px;
  }
  .mizi .site-foot .legal p {
    line-height: 2;
  }
  body:has(.mizi-site) > .cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 12px;
    padding: 13px 14px;
  }
  body:has(.mizi-site) > .cookie p {
    font-size: 12.5px;
  }
  body:has(.mizi-site) > .cookie button {
    padding: 0 14px;
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .mizi-site *,
  .mizi-site *:before,
  .mizi-site *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html[data-mizi-reveal="ready"] [data-mizi-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .mizi-world:hover,
  .mizi-world:focus-within,
  .mz-persona:hover,
  .mz-persona:focus-visible,
  .mz-persona:hover .agent-face,
  .mizi-button:hover,
  .mizi-world-link:hover > svg {
    transform: none !important;
  }
}

/* 랜딩(/mizi)의 칸 — 마을 칸과 같은 간격. */
.mz-doors-band { padding: 0 0 104px; scroll-margin-top: 20px; }
.mz-doors { list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.mz-door { --door: #ebe3f4; --door-ink: #5a4a78; display:flex; flex-direction:column; min-width:0; border: 1px solid var(--mz-line); border-radius: 24px;
  background: var(--mz-paper); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mz-door.door-school { --door: #dfe5f2; --door-ink: #2b3d74; }
.mz-door.door-company { --door: #e1ebe4; --door-ink: #2d5a45; }
.mz-door.door-home { --door: #f0e7d5; --door-ink: #7a5a2c; }
.mz-door:hover, .mz-door:focus-within { border-color: color-mix(in srgb, var(--door-ink) 40%, var(--mz-line)); box-shadow: var(--mz-lift); transform: translateY(-3px); }
.mz-door-main { display:flex; flex-direction:column; flex: 1; min-width: 0; color: inherit; }
.mz-door-main:focus-visible { outline-offset: -4px !important; border-radius: 22px !important; }
.mz-door-art { position: relative; display:block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--door); }
.mz-door-art img { display:block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.mz-door-art img.doll { object-position: 50% 32%; }
.mz-door:hover .mz-door-art img { transform: scale(1.035); }
.mz-door-art::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mz-paper) 22%, transparent)); pointer-events: none; }
.mz-door-pixel { position: absolute; inset: 0; display:grid; place-items:center;
  background: radial-gradient(52% 58% at 50% 52%, color-mix(in srgb, var(--mz-paper) 70%, transparent), transparent 72%), var(--door); }
.mz-door-pixel .agent-face { filter: drop-shadow(0 6px 0 #1f241c1a); }
.mz-door-mark { color: var(--mz-accent); --mz-bg: var(--door); }
.mz-door-spark { position: absolute; width: 22px; height: 22px; color: var(--door-ink); opacity: .55; }
.mz-door-spark.spark-one { top: 22%; left: 24%; }
.mz-door-spark.spark-two { bottom: 24%; right: 22%; width: 16px; height: 16px; }
/* 견본 대화 — 대표 AI 의 대화창 한 장. 칸이 가장 좁을 때(넷이 한 줄, 1181px 에서 265px) 그림 칸 높이 안에 들게 줄였다. */
.mz-door-sample { position: absolute; inset: 0; display:grid; place-items:center; padding: 50px 16px 14px;
  background: radial-gradient(60% 64% at 50% 58%, color-mix(in srgb, var(--mz-paper) 62%, transparent), transparent 74%), var(--door); }
.mz-door-sample-card { display:flex; flex-direction:column; gap: 7px; width: min(100%, 248px); padding: 10px 11px 11px; border-radius: 16px;
  background: var(--mz-paper); border: 1px solid color-mix(in srgb, var(--door-ink) 16%, transparent); box-shadow: 0 12px 26px -16px #1f241c66;
  transform: rotate(-1.2deg); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.mz-door:hover .mz-door-sample-card { transform: rotate(0deg) translateY(-2px); }
.mz-door-sample-head { display:flex; align-items:center; gap: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--mz-line); min-width: 0; }
.mz-door-sample-face { flex: none; display:grid; place-items:center; width: 26px; height: 26px; border-radius: 8px; background: var(--door); color: var(--door-ink); --mz-bg: var(--door); }
.mz-door-sample-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 740; letter-spacing: -.3px; }
.mz-door-sample-head i { flex: none; padding: 1px 7px; border: 1px solid var(--mz-line); border-radius: 999px; font-size: 10.5px; font-style: normal; font-weight: 750; color: var(--mz-muted); }
.mz-door-sample-line { align-self: flex-start; max-width: 94%; padding: 7px 10px; border-radius: 4px 12px 12px 12px; background: var(--mz-soft);
  font-size: 12px; line-height: 1.5; word-break: keep-all; }
.mz-door-sample-ask { align-self: flex-end; padding: 5px 10px; border-radius: 12px 4px 12px 12px; background: var(--door-ink); color: #fff; font-size: 12px; font-weight: 650; }
.mz-door-service { position: absolute; top: 14px; left: 14px; z-index: 1; display:inline-flex; align-items:center; min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: #151714a6; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -.2px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.door-home .mz-door-service { background: color-mix(in srgb, var(--door-ink) 88%, transparent); }
.mz-door-body { display:flex; flex-direction:column; gap: 9px; flex: 1; padding: 20px 22px 22px; min-width: 0; }
/* 넷이 한 줄이면 제목이 두 줄로 접힌다 — 끝 한 낱말(「앉아요」)만 둘째 줄로 떨어지지 않게. */
.mz-door-title { font-size: 19px; line-height: 1.4; font-weight: 740; letter-spacing: -.6px; word-break: keep-all; text-wrap: pretty; }
.mz-door-who { display:flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; color: var(--mz-muted); }
.mz-door-who b { color: var(--mz-fg); font-weight: 700; }
/* 말줄임은 안쪽 글에 — 칸에 걸면 셋째 줄이 안쪽 여백으로 비어져 나온다. */
.mz-door-line { display:block; margin-top: 2px; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: var(--mz-soft); font-size: 14.5px; line-height: 1.6; }
.mz-door-line > span { display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.mz-door-note { font-size: 13px; color: var(--mz-muted); }
.mz-door-cta { margin-top: auto; flex: none; display:flex; align-items:center; justify-content:space-between; gap: 12px; min-height: 50px; padding: 0 18px; border-radius: 13px;
  background: var(--mz-accent-ink); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.mz-door-cta svg { width: 18px; height: 18px; transition: transform .2s; }
.mz-door:hover .mz-door-cta svg { transform: translate(2px, -2px); }
.mz-door-more { display:flex; align-items:center; justify-content:space-between; gap: 10px; min-height: 48px; padding: 0 22px; border-top: 1px solid var(--mz-line);
  font-size: 14px; font-weight: 600; color: var(--mz-muted); transition: color .2s, background .2s; }
.mz-door-more:hover { color: var(--mz-fg); background: var(--mz-soft); }
.mz-door-more svg { width: 15px; height: 15px; }

@media (prefers-color-scheme: dark) {
  .mz-door { --door: #332d42; --door-ink: #cbb8ea; }
  .mz-door.door-school { --door: #262f47; --door-ink: #aebde8; }
  .mz-door.door-company { --door: #233129; --door-ink: #a6d3bd; }
  .mz-door.door-home { --door: #3b3527; --door-ink: #e0c99a; }
  .mz-door-cta, .mz-door-sample-ask { color: #25251f; }
  .door-home .mz-door-service { color: #25251f; }
}
html[data-mizi-motion="paused"] .mz-door, html[data-mizi-motion="paused"] .mz-door-art img { transition: none; transform: none !important; }
html[data-mizi-motion="paused"] .mz-door-sample-card { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .mz-door, .mz-door-art img, .mz-door-cta svg, .mz-door-sample-card { transition: none; }
  .mz-door:hover, .mz-door:hover .mz-door-art img { transform: none; }
  .mz-door:hover .mz-door-sample-card { transform: rotate(-1.2deg); }
}

/* 둘씩 두 줄 — 칸이 넓어지는 만큼 그림 칸을 낮춘다(5:4 그대로면 1180px 에서 한 장이 620px 다). 210px 아래로는 안 줄인다 —
   견본 대화가 그 높이에 맞춰져 있다. */
@media (max-width: 1180px) {
  .mz-doors { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mz-door-art { aspect-ratio: auto; height: clamp(210px, 26vw, 300px); }
}
@media (max-width: 1100px) {
  .mz-doors { gap: 14px; }
  .mz-door-body { padding: 18px 18px 20px; }
  .mz-door-title { font-size: 17.5px; }
}
/* 휴대폰 — 세로로 쌓은 한 줄씩. 그림은 왼쪽 작은 세로 칸, 글은 오른쪽. 한 장을 낮게 해서 넷이 첫 화면 가까이 서게. */
@media (max-width: 860px) {
  .mz-doors-band { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .mz-doors { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .mz-door { border-radius: 20px; }
  .mz-door:hover, .mz-door:focus-within { transform: none; }
  .mz-door-main { flex-direction: row; align-items: stretch; }
  .mz-door-art { flex: none; width: 104px; aspect-ratio: auto; height: auto; min-height: 136px; }
  .mz-door-art::after { display: none; }
  .mz-door-pixel .agent-face, .mz-door-mark { width: 64px; height: auto; }
  .mz-door-spark.spark-one { top: 16%; left: 14%; width: 16px; height: 16px; }
  .mz-door-spark.spark-two { bottom: 16%; right: 14%; width: 12px; height: 12px; }
  /* 견본 대화는 104px 칸에 안 든다 — 얼굴과 「AI」 표만 남긴다. */
  .mz-door-sample { padding: 30px 8px 8px; }
  .mz-door-sample-card { width: auto; padding: 9px; transform: none; }
  .mz-door:hover .mz-door-sample-card { transform: none; }
  .mz-door-sample-head { flex-direction: column; gap: 5px; padding: 0; border: 0; }
  .mz-door-sample-face { width: 40px; height: 40px; border-radius: 11px; }
  .mz-door-sample-face svg { width: 26px; height: 26px; }
  .mz-door-sample-head b, .mz-door-sample-line, .mz-door-sample-ask { display: none; }
  .mz-door-service { top: 8px; left: 8px; min-height: 24px; padding: 0 8px; font-size: 11.5px; }
  .mz-door-body { gap: 5px; padding: 12px 14px 12px 15px; }
  .mz-door-title { font-size: 15.5px; line-height: 1.38; }
  .mz-door-who { font-size: 13px; }
  .mz-door-line { display: none; }
  .mz-door-note { font-size: 12.5px; }
  .mz-door-cta { min-height: 44px; margin-top: 6px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
  .mz-door-more { min-height: 44px; padding: 0 16px; font-size: 13.5px; }
}

.mx-main { padding-bottom: 0; }
.mx-main:has(.chat-dock) { padding-bottom: 104px; }
.mx-visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.mx-muted { color: var(--mz-muted); font-size: 13.5px; line-height: 1.75; }
.mx-muted a { text-decoration: underline; text-underline-offset: 3px; }
.mx-problem { margin: 0 0 20px !important; padding: 14px 18px; border: 1px solid var(--mz-line); border-radius: 14px; background: var(--mz-soft); font-size: 14px; line-height: 1.7; }

/* ── 첫 칸: 관문의 문 셋 ── */
.mx-gate { padding: 52px 0 12px; }
.mx-gate-head { display:flex; align-items:flex-end; justify-content:space-between; gap: 20px 40px; margin-bottom: 28px; }
.mx-gate-head h1 { margin-top: 10px; font-size: clamp(34px, 3.7vw, 50px); line-height: 1.18; letter-spacing: -0.05em; font-weight: 780; }
.mx-gate-head h1 span { color: var(--mz-accent-ink); }
.mx-gate-head .mizi-lead { max-width: 440px; margin: 0 !important; font-size: 16px; line-height: 1.75; color: var(--mz-muted); }
.mx-gate-head .mizi-lead strong { color: var(--mz-fg); }

/* ── 미지들 ── */
.mx-list { padding-top: 64px; }
.mx-list-head { margin-bottom: 8px; }
.mx-list-head h2 { font-size: clamp(26px, 2.8vw, 34px); }
.mx-board-top { height: 0; scroll-margin-top: 80px; }
.mx-more { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap: 8px 20px; margin-top: 18px; }
.mx-more .mizi-button { min-height: 48px; gap: 10px; }
.mx-more-left { font-size: 13px; font-weight: 550; color: var(--mz-muted); }
.mx-more-left::before { content: "·"; margin-right: 10px; }
.mx-group .mx-more { justify-content: flex-start; }

/* ── 찾기 ── */
.mx-tools { position: sticky; top: 72px; z-index: 5; padding: 12px 0; background: var(--mz-bg); }
@supports (backdrop-filter: blur(16px)) {
  .mx-tools { background: color-mix(in srgb, var(--mz-bg) 88%, transparent); backdrop-filter: blur(16px); }
}
.mx-search { display:flex; align-items:center; gap:12px; padding: 0 18px; min-height: 54px; border: 1px solid var(--mz-line); border-radius: 16px; background: var(--mz-paper); color: var(--mz-muted); box-shadow: 0 1px 2px #1f241c0a; transition: border-color .2s, box-shadow .2s; }
.mx-search:focus-within { border-color: var(--mz-accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mz-accent-ink) 16%, transparent); }
.mx-search input { flex:1; min-width:0; border:0; outline:0; background:transparent; color: var(--mz-fg); font-size: 16px; min-height: 52px; }
.mx-search input::placeholder { color: var(--mz-muted); opacity: 1; }
.mx-filters { display:grid; gap: 10px; padding: 6px 0 4px; border-bottom: 1px solid var(--mz-line); padding-bottom: 18px; }
.mx-chips { display:flex; flex-wrap:wrap; align-items:center; gap: 8px; }
.mx-chips-label { min-width: 58px; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--mz-muted); }
.mx-chips-split { display:inline-flex; flex-wrap:wrap; gap: 8px; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--mz-line); }
.mx-chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--mz-line); border-radius: 999px; background: var(--mz-paper); color: var(--mz-fg); font-size: 13.5px !important; font-weight: 600; white-space: nowrap; transition: border-color .2s, background .2s; }
.mx-chip:hover { border-color: var(--mz-muted); }
.mx-chip[aria-pressed="true"] { background: var(--mz-fg); border-color: var(--mz-fg); color: var(--mz-bg); }
.mx-chip:disabled { opacity: .5; cursor: not-allowed; }
.mx-reset { border: 0; background: none; padding: 0; color: var(--mz-accent-ink); cursor: pointer; }

/* ── 칸 ── */
.mx-section { padding: 44px 0 8px; }
.mx-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap: 24px; margin-bottom: 20px; }
.mx-section-head h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.04em; font-weight: 720; margin-top: 6px; }
.mx-section-head > p { color: var(--mz-muted); font-size: 14px; line-height: 1.75; }
.mx-spots { list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.mx-spots > li { min-width: 0; }
.mx-spot .mz-persona-face { background: color-mix(in srgb, var(--tint, var(--mz-soft)) 26%, var(--mz-paper)); }

/* 목록의 장 — 얼굴 칸 위, 글 아래 */
.mx-grid { list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.mx-grid > li { min-width: 0; }
.mx-card { display:flex; flex-direction:column; height: 100%; border: 1px solid var(--mz-line); border-radius: 18px; background: var(--mz-paper); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s; }
.mx-card:hover, .mx-card:focus-visible { border-color: color-mix(in srgb, var(--tint, var(--mz-accent)) 55%, var(--mz-line)); transform: translateY(-3px); box-shadow: var(--mz-lift); }
.mx-card-face { display:grid; place-items:center; height: 112px; flex: none;
  background: radial-gradient(60% 70% at 50% 45%, color-mix(in srgb, var(--mz-paper) 50%, transparent), transparent 70%),
    color-mix(in srgb, var(--tint, var(--mz-soft)) 22%, var(--mz-paper)); }
.mx-card-face .agent-face { filter: drop-shadow(0 4px 0 #1f241c14); transition: transform .25s; }
.mx-card:hover .mx-card-face .agent-face { transform: translateY(-3px); }
.mx-card-body { min-width:0; flex: 1; display:flex; flex-direction:column; gap: 8px; padding: 14px 15px 16px; }
.mx-card-top { display:flex; align-items:center; flex-wrap:wrap; gap: 6px 8px; }
.mx-card-name { font-size: 17px; font-weight: 720; letter-spacing: -.5px; overflow-wrap:anywhere; }
.mx-card-line { font-size: 13.5px; line-height: 1.6; color: color-mix(in srgb, var(--mz-fg) 82%, var(--mz-bg)); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; word-break: keep-all; }
.mx-card-line.plain { color: var(--mz-muted); }
.mx-card-apps { margin-top: auto; padding-top: 2px; font-size: 12px; color: var(--mz-muted); }
.mx-card-foot { margin-top: auto; padding-top: 2px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.mx-card-foot .mx-card-apps { margin-top: 0; padding-top: 0; }
.mx-pop { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--mz-muted); white-space: nowrap; }
.mx-pop-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.mx-pop-bars i { display: block; width: 4px; border-radius: 1px; background: var(--mz-line); }
.mx-pop-bars i:nth-child(1) { height: 4px; } .mx-pop-bars i:nth-child(2) { height: 6px; } .mx-pop-bars i:nth-child(3) { height: 8px; }
.mx-pop-bars i:nth-child(4) { height: 9.5px; } .mx-pop-bars i:nth-child(5) { height: 11px; }
.mx-pop-bars i.on { background: var(--mz-accent); }
.mx-detail-pop { margin: 6px 0 0; }
.mx-grows { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--mz-accent-ink); }
.mx-grows span { margin-right: 4px; }
.mx-kind { display:inline-flex; align-items:center; padding: 3px 9px; border-radius: 99px; background: var(--mz-soft); color: var(--mz-muted); font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.mx-kind.member { color: var(--mz-accent-ink); background: color-mix(in srgb, var(--mz-accent) 13%, transparent); }
.mx-kinds { display:inline-flex; align-items:center; flex-wrap:wrap; gap: 6px; }
.mx-kind.gated { color: var(--mz-fg); background: transparent; border: 1px solid var(--mz-line); }
.mx-kind.verified { color: #476449; background: #e1e9d8; }
@media (prefers-color-scheme: dark) { .mx-kind.verified { color: #a6c29f; background: #304233; } }
.mx-tags { display:flex; flex-wrap:wrap; gap: 5px; }
.mx-tag { padding: 3px 9px; border-radius: 99px; background: var(--mz-soft); font-size: 12px; font-weight: 550; color: var(--mz-muted); }
.mx-tag.on { background: var(--mz-fg); color: var(--mz-bg); }
.mx-empty { display:grid; justify-items:center; gap: 8px; text-align:center; padding: 56px 24px; border: 1px dashed var(--mz-line); border-radius: 20px; margin: 8px 0 24px; }
.mx-empty > p:first-child { font-size: 16px; font-weight: 650; }
.mx-empty .mizi-button { margin-top: 10px; min-height: 44px; }

.mx-make { display:flex; align-items:center; justify-content:space-between; gap: 24px; margin: 64px 0 24px; padding: 36px 40px; border-radius: 24px; border: 1px solid var(--mz-line);
  background: radial-gradient(70% 120% at 100% 0%, color-mix(in srgb, var(--mz-accent) 12%, transparent), transparent 70%), var(--mz-paper); }
.mx-make h2 { font-size: 26px; letter-spacing: -.9px; font-weight: 720; margin: 8px 0 6px; }
.mx-make p:not(.mz-kicker) { color: var(--mz-muted); font-size: 15px; line-height: 1.75; }
.mx-make .mizi-button { flex: none; }

/* ── 한 사람 ── */
.mx-crumbs { display:flex; align-items:center; gap: 8px; min-height: 44px; margin-top: 24px; font-size: 14px; color: var(--mz-muted); }
.mx-crumbs a:hover { color: var(--mz-fg); }
.mx-crumbs [aria-current] { color: var(--mz-fg); font-weight: 650; }
.mx-detail { display:grid; grid-template-columns: 360px minmax(0,1fr); gap: 28px; align-items:start; padding: 12px 0 32px; }
.mx-portrait { position: sticky; top: 96px; display:grid; gap: 18px; padding: 22px; border: 1px solid var(--mz-line); border-radius: 24px; background: var(--mz-paper); box-shadow: var(--mz-lift); }
.mx-portrait-face { display:flex; align-items:center; justify-content:center; aspect-ratio: 1.2; border-radius: 18px;
  background: radial-gradient(55% 60% at 50% 45%, color-mix(in srgb, var(--mz-paper) 55%, transparent), transparent 70%),
    color-mix(in srgb, var(--tint, var(--mz-soft)) 26%, var(--mz-paper)); }
.mx-portrait-face .agent-face { filter: drop-shadow(0 6px 0 #1f241c14); }
/* 자란 모습 — 사진은 세로라 칸을 채우지 않고 가운데 세운다. 처음 모습(픽셀)은 오른쪽 아래에 작게. */
.mx-portrait-face.grown { position: relative; }
.mx-portrait-grown { height: 100%; max-height: 240px; width: auto; border-radius: 14px; object-fit: cover; }
.mx-portrait-pixel { position: absolute; right: 10px; bottom: 10px; padding: 4px; border-radius: 10px; background: var(--mz-paper, #fff); box-shadow: 0 2px 6px #0002; }
.mx-card-grown { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; filter: drop-shadow(0 4px 0 #1f241c14); transition: transform .25s; }
.mx-card:hover .mx-card-grown { transform: translateY(-3px); }
.mx-card:hover .mx-card-face .mz-photo { transform: scale(1.04); }
.mx-portrait-meta { display:grid; gap: 10px; justify-items:start; min-width: 0; }
.mx-portrait-meta h1 { font-size: 38px; letter-spacing: -1.6px; line-height: 1.15; margin: 0; overflow-wrap:anywhere; }
.mx-portrait-quote { margin: 0; padding: 14px 16px; border-radius: 4px 18px 18px 18px; background: var(--mz-soft); font-size: 15.5px; line-height: 1.7; overflow-wrap:anywhere; }
.mx-meet { display:grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--mz-line); }
.mx-meet h2 { font-size: 13px; font-weight: 700; color: var(--mz-muted); letter-spacing: 0; }
.mx-meet-apps { display:grid; gap: 8px; }
.mx-meet-apps .mizi-button { justify-content: space-between; width: 100%; }
.mx-meet .mx-muted { font-size: 12.5px; line-height: 1.7; }
.mx-detail-body { display:grid; gap: 16px; min-width: 0; }
.mx-block { padding: 26px 28px; border: 1px solid var(--mz-line); border-radius: 22px; background: var(--mz-paper); }
.mx-block h2 { font-size: 18px; font-weight: 720; letter-spacing: -.5px; }
.mx-block-lead { margin: 4px 0 18px !important; font-size: 13.5px; line-height: 1.7; color: var(--mz-muted); }
.mx-block-lead:last-child { margin-bottom: 0 !important; }
.mx-block h2 + .mx-traits { margin-top: 12px !important; }
.mx-traits { font-size: 16px; line-height: 1.85; white-space: pre-line; overflow-wrap:anywhere; }
.mx-chat { list-style:none; margin:0; padding:0; display:grid; gap: 10px; }
.mx-chat li { display:flex; align-items:flex-end; gap: 10px; }
.mx-chat-face { flex:none; display:grid; place-items:center; width: 36px; height: 36px; border-radius: 12px; background: var(--mz-soft); }
.mx-bubble { max-width: 100%; padding: 11px 15px; border-radius: 16px 16px 16px 4px; background: var(--mz-soft); font-size: 14.5px; line-height: 1.65; overflow-wrap:anywhere; }
.mx-moments { list-style:none; margin:0; padding:0; display:grid; gap: 12px; }
.mx-moments li { display:grid; grid-template-columns: 136px minmax(0,1fr); align-items:center; gap: 12px; }
.mx-moments .mx-bubble { justify-self: start; }
.mx-moment { justify-self: start; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--mz-accent) 12%, transparent); color: var(--mz-accent-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mx-admin { padding: 20px 24px; border: 1px dashed var(--mz-accent); border-radius: 18px; display:grid; gap: 12px; }
.mx-admin h2 { font-size: 13px; color: var(--mz-accent-ink); }
.mx-admin-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 10px 16px; font-size: 13.5px; line-height: 1.7; }
.mx-nearby { padding-bottom: 24px; }

html[data-mizi-motion="paused"] .mx-card:hover,
html[data-mizi-motion="paused"] .mx-card:hover .agent-face { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mx-card, .mx-card .agent-face, .mx-search { transition: none; }
  .mx-card:hover, .mx-card:hover .agent-face { transform: none; }
}

@media (max-width: 1100px) {
  .mx-spots { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mx-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  /* 곁의 미지는 넷 — 세 칸짜리 줄에서는 넷째가 혼자 한 줄을 차지해서 뺀다(두 칸이면 다시 넷). */
  .mx-nearby .mx-grid > li:nth-child(n+4) { display: none; }
  .mx-preview > li:nth-child(n+7) { display: none; }
  .mx-fit-four > li:nth-child(n+4) { display: none; }
}
@media (max-width: 1050px) {
  .mx-detail { grid-template-columns: 300px minmax(0,1fr); gap: 22px; }
}
@media (max-width: 860px) {
  .mx-gate { padding-top: 40px; }
  .mx-gate-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
  .mx-gate-head .mizi-lead { max-width: none; }
  .mx-list { padding-top: 48px; }
  .mx-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mx-nearby .mx-grid > li:nth-child(n+4), .mx-fit-four > li:nth-child(n+4) { display: block; }
  .mx-detail { grid-template-columns: minmax(0,1fr); }
  .mx-portrait { position: static; grid-template-columns: 132px minmax(0,1fr); align-items:center; padding: 18px; box-shadow: none; }
  .mx-portrait-face { aspect-ratio: 1; }
  .mx-portrait-face svg { width: 96px; height: auto; }
  .mx-portrait-quote, .mx-meet { grid-column: 1 / -1; }
  .mx-portrait-meta h1 { font-size: 30px; }
}
@media (max-width: 800px) {
  /* 좁은 화면에서는 찾기 칸을 제자리에 둔다 — 따라오면 휴대폰 화면 위쪽을 늘 가린다. */
  .mx-tools { position: static; padding-top: 4px; }
  .mx-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
  .mx-chips::-webkit-scrollbar { display: none; }
  .mx-chips-split { flex-wrap: nowrap; }
}
@media (max-width: 640px) {
  .mx-spots { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 4px 16px 12px; scroll-padding: 0 16px; scrollbar-width: none; }
  .mx-spots::-webkit-scrollbar { display: none; }
  .mx-spots > li { scroll-snap-align: start; }
  .mx-make { flex-direction: column; align-items: stretch; padding: 26px 22px; }
}
@media (max-width: 540px) {
  .mx-main.mizi { padding: 0 16px; }
  .mx-chips { margin: 0 -16px; padding: 0 16px; }
  .mx-gate { padding-top: 22px; }
  .mx-gate-head { gap: 8px; margin-bottom: 16px; }
  .mx-gate-head h1 { margin-top: 6px; font-size: clamp(29px, 8.4vw, 36px); }
  .mx-gate-head .mizi-lead { font-size: 14.5px; line-height: 1.7; }
  .mx-gate-head .mizi-lead br { display: none; }
  .mx-list { padding-top: 40px; }
  .mx-more { flex-direction: column; align-items: stretch; }
  .mx-more .mizi-button { width: 100%; }
  .mx-more .mizi-text-link { justify-content: center; }
  .mx-section { padding-top: 36px; }
  .mx-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mx-grid { gap: 10px; }
  .mx-card { border-radius: 16px; }
  .mx-card-face { height: 88px; }
  .mx-card-face svg { width: 48px; height: auto; }
  .mx-card-grown { width: 56px; height: 56px; }
  .mx-card-body { padding: 12px 12px 14px; gap: 7px; }
  .mx-card-name { font-size: 16px; }
  .mx-card-line { font-size: 13px; -webkit-line-clamp: 3; }
  .mx-tag { font-size: 11.5px; padding: 2px 8px; }
  .mx-portrait { grid-template-columns: 96px minmax(0,1fr); gap: 14px; padding: 16px; border-radius: 20px; }
  .mx-portrait-face { border-radius: 14px; }
  .mx-portrait-face svg { width: 70px; }
  .mx-portrait-meta h1 { font-size: 27px; }
  .mx-portrait-quote { font-size: 14.5px; }
  .mx-block { padding: 20px; border-radius: 18px; }
  .mx-moments li { grid-template-columns: minmax(0,1fr); gap: 6px; }
}
