/* 말틈 쪽빛판 · 바탕 모양. 화면마다의 모양은 판(design/*.dc.html)에서 가져와 화면을 열 때 끼운다. */
@font-face { font-family: "MaltumSerif"; src: url("../assets/fonts/GowunBatang-Regular.woff2?v=8b36bc0-202611271755") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MaltumSerif"; src: url("../assets/fonts/GowunBatang-Bold.woff2?v=8b36bc0-202611271755") format("woff2"); font-weight: 700; font-display: swap; }
:root { --jjok: var(--mz-jjok); --bg: #F3F5F8; --ink: var(--mz-ink); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; -webkit-text-size-adjust: 100%; word-break: keep-all; overflow-wrap: break-word; }
#app { height: 100%; height: 100dvh; padding-top: env(safe-area-inset-top, 0px); overflow-y: auto; }
#app > div { min-height: 100%; }
button, input, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--jjok); outline-offset: 2px; }
nav[aria-label="주요 메뉴"] { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important; height: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
#mz-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px; border-radius: 10px; background: var(--mz-ink); color: #FFFFFF; font-size: 14px; line-height: 1.5; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 50; }
#mz-toast.on { opacity: 1; transform: translate(-50%, 0); }
#mz-toast.ch { display: flex; align-items: center; gap: 12px; text-align: left; min-width: min(280px, calc(100% - 32px)); }
/* 캐릭터 자리(js/mz-chars.js?v=8b36bc0-202611271755): 그림이 없으면 점선 원과 이름, 있으면 그림만 */
.mzch { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; box-sizing: border-box; border-radius: 50%;
  border: 1.5px dashed #9AA2B2; color: var(--mz-ink-3); font-size: 10px; font-weight: 700; line-height: 1.1; text-align: center; vertical-align: middle; }
.mzch > i { font-style: normal; }
.mzch.has { border: 0; }
.mzch.has > i { display: none; }
.mzch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#mz-toast .mzch { color: #CBD5E8; }
@media (min-width: 520px) { body { background: var(--mz-line); } #app > div { box-shadow: 0 0 0 1px var(--mz-line), 0 20px 60px -30px rgba(20,28,51,.35); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* 디자인 캔버스에서 상태를 바꿔 보던 칩 묶음. 앱에서는 숨긴다(상태는 MZ.app 값이 정한다). */
[role="group"][aria-label^="시험판"], [role="group"][aria-label="어떤 단추를 눌렀을 때"], [role="group"][aria-label="상황"] { display: none !important; }
/* 글자 크기(MY › 글자 크기): 화면 판이 글자를 px로 고정해 두어 앱 전체를 확대한다. 높이는 확대만큼 줄여 아래 탭이 화면 안에 남게 한다(js/mz-routes.js?v=8b36bc0-202611271755 MZ.applyTextSize) */
html[data-mz-size] #app { zoom: var(--mz-zoom); height: calc(100dvh / var(--mz-zoom)); }
/* 19판 캐릭터 그림(js/routes/chars19.js?v=8b36bc0-202611271755): 빈 화면 · 상황 그림 240×176 칸, 아래 옅은 타원 그림자 */
.mz19e { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 240px; max-width: 100%; height: 176px; flex: 0 0 auto; align-self: center; margin: 0 auto; }
.mz19e > i { position: absolute; left: 30px; right: 30px; bottom: 6px; height: 34px; border-radius: 50%; background: var(--mz-jjok-100); }
.mz19e > img { position: relative; max-width: 220px; max-height: 168px; object-fit: contain; display: block; }
/* UI 규칙 v1: 빈 화면 3D 캐릭터 · 크림 타원 받침 · 최대 200×160 */
.mz19e.e3d { width: 200px; height: 160px; }
.mz19e.e3d > i { left: 22px; right: 22px; bottom: 4px; height: 30px; background: var(--mz-cream); }
.mz19e.e3d > img { max-width: 200px; max-height: 148px; }
@keyframes mz19sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.mz19e.sway > img { transform-origin: 50% 90%; animation: mz19sway 2.4s ease-in-out infinite; }
.mz19f { display: block; border-radius: 50%; background: #F3F5F8; object-fit: contain; }
.mz19fa { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; }
.mz19avatar { padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; flex: 0 0 auto; }
.mz19avatar .mz19f { background: var(--mz-jjok-100); box-shadow: 0 0 0 2px #FFFFFF; }
.mz19sheet { position: fixed; inset: 0; z-index: 60; background: rgba(23,28,42,.45); display: flex; align-items: flex-end; justify-content: center; }
.mz19sheet-box { width: 100%; max-width: 480px; background: #FFFFFF; border-radius: 16px 16px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 16px; word-break: keep-all; }
.mz19sheet-box > b { font-size: 17px; }
.mz19sheet-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mz19sheet-row button { border: 0; border-radius: 12px; background: var(--mz-bg); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; color: var(--mz-ink); cursor: pointer; }
.mz19sheet-row button[aria-pressed="true"] { background: var(--mz-jjok-100); box-shadow: inset 0 0 0 2px var(--mz-jjok); font-weight: 700; }
.mz19sheet-close { height: 48px; border: 0; border-radius: 10px; background: var(--mz-jjok); color: #FFFFFF; font-size: 15px; font-weight: 700; cursor: pointer; }
.mz19late { background: #22396A; color: #FFFFFF; border-radius: 12px; padding: 12px 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; word-break: keep-all; }
.mz19late .mz19e > i { background: rgba(233,238,247,.18); }
.mz19late-t { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mz19late-t b { font-size: 18px; }
.mz19late-t span { font-size: 14px; line-height: 1.6; color: #DCE3EE; }
.mz19late-t button { margin-top: 4px; height: 40px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--mz-bg); color: #22396A; font-size: 14px; font-weight: 700; cursor: pointer; }

/* 사업자 정보 칸 · 결제 전 약관 링크 (js/routes/biz.js?v=8b36bc0-202611271755, 2026-11-26) */
.mz-biz { margin: 24px 20px 28px; padding: 16px 16px 14px; border-top: 1px solid var(--mz-line); font-size: 13px; line-height: 1.6; color: var(--mz-ink-2); }
.mz-biz-tog { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; margin: 0 0 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--mz-ink); text-align: left; cursor: pointer; }
.mz-biz-tog i { width: 8px; height: 8px; margin-top: -3px; border-right: 1.6px solid var(--mz-ink-2); border-bottom: 1.6px solid var(--mz-ink-2); transform: rotate(45deg); }
.mz-biz-tog[aria-expanded="true"] i { margin-top: 3px; transform: rotate(-135deg); }
.mz-biz-tog:focus-visible { outline: 2px solid var(--mz-jjok); outline-offset: 2px; border-radius: 4px; }
.mz-biz-body { margin: 0 0 8px; }
.mz-biz dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0 0 10px; }
.mz-biz dt { color: var(--mz-ink-2); }
.mz-biz dd { margin: 0; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; color: #2B3245; }
.mz-biz-wait { color: var(--mz-gold-text); }
.mz-biz-chk { color: var(--mz-jjok); text-decoration: underline; cursor: pointer; }
.mz-biz-note { margin: 8px 0 0; color: var(--mz-ink-2); }
.mz-paylinks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0; font-size: 13px; color: var(--mz-ink-2); }
.mz-paylinks a { color: var(--mz-jjok); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.mz-paylinks-pay { padding: 0 2px; }
.mz-refund-link { color: var(--mz-jjok); text-decoration: underline; cursor: pointer; }

/* 라운지 작성자: 닉네임(굵게) · 직군 · 나이대(옅게) · 글쓴이 딱지 (js/routes/people.js?v=8b36bc0-202611271755) */
.mz-who { display: inline; }
.mz-nick { font-weight: 700; color: var(--mz-ink); }
.mz-nick-k { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--mz-ink); cursor: pointer; }
.mz-meta { color: #7A8294; font-weight: 400; }
.mz-tag { display: inline-flex; align-items: center; height: 18px; margin-left: 5px; padding: 0 6px; border-radius: 9px; background: #EEF1F6; color: var(--mz-ink-2); font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.mz-tag-me { background: var(--mz-jjok-100); color: var(--mz-jjok); }
.mz-nick-hint { margin: 6px 0 0; font-size: 13px; color: var(--mz-danger); }

/* 홈 바로가기 3D판(js/routes/shortcuts3d.js?v=8b36bc0-202611271755): 칸 바탕은 이 변수 하나로 바꾼다(나중에 대표색에 맞출 때) */
:root { --mz-shortcut-bg: var(--mz-surface); }   /* UI 규칙 v1: 회색 칸 → 흰 칸 */
.mz-s3d-grid { background: transparent !important; padding: 0 !important; row-gap: 14px !important; }
.mz-s3d { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; gap: 8px !important; }
.mz-s3d-tile { width: 64px !important; height: 64px !important; border-radius: var(--mz-r-tile); background: var(--mz-shortcut-bg); box-shadow: var(--mz-sh-tile); display: grid !important; place-items: center; }
.mz-s3d img { display: block; object-fit: contain; width: 50px !important; height: 50px !important; }
.mz-s3d > span:last-child { font-size: var(--mz-fs-label) !important; color: var(--mz-ink); }

/* 홈 3D판(js/routes/home3d.js?v=8b36bc0-202611271755 · UI 규칙 v1) */
.mz-today { background: linear-gradient(160deg, #FBF4E4, #F6EEDC) !important; box-shadow: var(--mz-sh-card) !important; }
.mz-today > div:last-child > span { background: rgba(255,255,255,.72) !important; }
.mz-today-prop { width: 104px !important; height: 104px !important; object-fit: contain; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 8px 10px rgba(23,28,42,.18)); }
html.mz-night .mz-today { background: radial-gradient(120% 90% at 85% 0%, #33508A 0%, #2C4678 45%, #22396A 100%) !important; box-shadow: 0 18px 30px -20px rgba(20,28,51,.9) !important; }
html.mz-night .mz-today span, html.mz-night .mz-today b { color: #FFFFFF !important; }
html.mz-night .mz-today > div:first-child span span:first-child, html.mz-night .mz-today > div:last-child span span { color: #DCE3EE !important; }   /* 밤 대비 4.5:1 이상(#DCE3EE on 세 칸 #475F95 = 4.87) */
html.mz-night .mz-today > div:last-child > span { background: rgba(255,255,255,.1) !important; }
html.mz-night .mz-today-prop { filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
/* 3D 소품(js/routes/chars19.js?v=8b36bc0-202611271755 prop · 3D 콘텐츠 1차) */
.mz-prop3d { object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 3px 4px rgba(23,28,42,.18)); }
#app .mz-prop-host { position: relative; padding-right: 88px !important; }
#app .mz-prop-host > .mz-prop3d { position: absolute; right: 16px; top: 16px; }
#app .mz-prop-val { display: inline-flex; align-items: center; gap: 6px; }
/* 전래2 보조 그림(js/routes/chars19.js?v=8b36bc0-202611271755 tale): 그림이 없던 빈 화면에 장면 그림 120 · 모서리 16 */
#app .mz-tale { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; margin-bottom: 8px; }
#app .mz-tale-row { height: auto !important; flex-direction: column; gap: 4px; padding: 16px 0; }
/* 친구 초대 손짓 꾸범(js/routes/chars19.js?v=8b36bc0-202611271755 wave): 오른쪽 위 96 */
#app .mz-wave { display: block; width: 96px; height: 105px; margin-top: -8px; }
#app .mz-wave > img { width: 96px; height: 105px; object-fit: contain; display: block; filter: drop-shadow(0 6px 8px rgba(23,28,42,.16)); }
/* 오늘의 한마디 띠(js/routes/home3d.js?v=8b36bc0-202611271755 wordBand · 3D 콘텐츠 1차): 그림 높이 고정(모바일 116 · 넓은 화면 140) · 오른쪽 아래 · 모서리 16.
 * 칸 바탕은 그림 왼쪽 끝 세로줄과 같은 색(낮: 하늘 → 모래, 밤: 쪽빛)이라 그림 경계가 보이지 않는다. 글은 캐릭터 자리(낮 1.12배 · 밤 1.5배 높이)를 비운다. */
#app .mz-wband { --wh: 116px; position: relative; border-radius: 16px !important; min-height: var(--wh) !important; padding: 14px 16px !important; box-sizing: border-box;
  background: linear-gradient(to bottom, #C2E4FD, #CFEAFD 25%, #E0EDF5 50%, #F5F0EA 75%, #FEF2DC) bottom / 100% var(--wh) no-repeat, #C2E4FD !important; }
#app .mz-wband.is-night { background: #354984 !important; }
#app .mz-wband-bg { position: absolute; right: 0; bottom: 0; height: var(--wh); width: calc(var(--wh) * 3); max-width: 100%; border-radius: 0 0 16px 0; pointer-events: none;
  background: url("../assets/ui/23/word_day.jpg?v=8b36bc0-202611271755") right bottom / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 14%, #000 34%); mask-image: linear-gradient(to right, transparent 0, transparent 14%, #000 34%); }   /* 왼쪽 끝 풀 그림이 글 밑에 깔리지 않게 */
#app .mz-wband.is-night .mz-wband-bg { width: calc(var(--wh) * 3.87); background-image: url("../assets/ui/23/word_night.jpg?v=8b36bc0-202611271755"); }
#app .mz-wband > span { position: relative; max-width: calc(100% - var(--wh) * 1.12); }
#app .mz-wband.is-night > span { max-width: calc(100% - var(--wh) * 1.5); }
#app .mz-wband.is-night > span .eb { color: #F3DDA8 !important; }
#app .mz-wband.is-night > span b { color: #FFFFFF !important; }
#app .mz-wband.is-night > span > span:last-child { color: #DCE3EE !important; }
@media (min-width: 768px) { #app .mz-wband { --wh: 140px; padding: 18px 24px !important; } }
/* 중간 작은 배너의 3D 소품(js/mz-home.js?v=8b36bc0-202611271755 mids): 96px · 그림자 */
#app a.press:has(> img[src*="assets/ui/21/s3d_"]) { min-height: 116px; justify-content: center; }
#app a.press:has(> img[src*="assets/ui/21/s3d_"]) > span { width: calc(100% - 116px) !important; padding-bottom: 14px !important; }
#app a.press > img[src*="assets/ui/21/s3d_"] { position: absolute; right: 14px; top: 50%; margin-top: -48px; width: 96px !important; height: 96px !important; object-fit: contain !important; transform: none !important; border-radius: 0 !important; box-shadow: none !important; filter: drop-shadow(0 8px 10px rgba(23,28,42,.22)); }
