/* ═══════════════════════════════════════════════════════════
   /main_new/ 새 메인 — PC·모바일 반응형  [2026-12-03]
   기준 폭: ~640 모바일 / 641~1024 태블릿 / 1025~ PC (내용 최대 1160px)
   맨 아래: 햄버거 메뉴(pcprofile)·모바일 하단내비 스타일 (기존 /main 에서 복사)
═══════════════════════════════════════════════════════════ */
:root {
	--mn-pink: #FF5C95;
	--mn-pink-d: #E8437E;
	--mn-pink-bg: #FFF1F5;
	--mn-cream: #FFF9F6;
	--mn-ink: #232A31;
	--mn-body: #5E6670;
	--mn-mute: #98A0A8;
	--mn-line: #EEE8EA;
	--mn-r: 18px;
	--mn-shadow: 0 1px 2px rgba(35,42,49,.05), 0 10px 28px rgba(35,42,49,.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mn { margin: 0; font-family: "Pretendard", -apple-system, sans-serif; color: var(--mn-body); background: #fff; letter-spacing: -0.2px; word-break: keep-all; }
.mn a { color: inherit; text-decoration: none; }
.mn img { max-width: 100%; display: block; }
.mn h1, .mn h2, .mn p, .mn ul, .mn ol { margin: 0; padding: 0; }
.mn ul, .mn ol { list-style: none; }
.mn-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.mo-only { display: none; }

/* ── 버튼 ── */
.mn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--mn-pink); color: #fff !important; font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap;
	box-shadow: 0 6px 16px rgba(255,92,149,.28); transition: transform .15s, box-shadow .15s, background .15s; }
.mn-btn:hover { background: var(--mn-pink-d); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255,92,149,.32); }
.mn-btn svg { width: 18px; height: 18px; }
.mn-btn--sm { height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.mn-btn--lg { height: 54px; padding: 0 26px; font-size: 16px; }
.mn-btn--ghost { background: #fff; color: var(--mn-ink) !important; box-shadow: inset 0 0 0 1.5px var(--mn-line); }
.mn-btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--mn-pink); color: var(--mn-pink) !important; }
.mn-btn--white { background: #fff; color: var(--mn-pink-d) !important; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.mn-btn--white:hover { background: #fff; }

/* ── 헤더 ── */
.mn-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow .2s; }
.mn-header.is-scrolled { box-shadow: 0 1px 0 var(--mn-line); }
.mn-header-in { display: flex; align-items: center; height: 68px; gap: 36px; }
.mn-logo { font-size: 24px; font-weight: 800; color: var(--mn-ink) !important; letter-spacing: -0.8px; }
.mn-logo span { color: var(--mn-pink); }
.mn-nav { display: flex; gap: 28px; flex: 1; }
.mn-nav a { font-size: 15px; font-weight: 600; color: var(--mn-ink); opacity: .78; transition: opacity .15s, color .15s; }
.mn-nav a:hover { opacity: 1; color: var(--mn-pink); }
.mn-header-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mn-icon-btn { position: relative; width: 40px; height: 40px; border: 0; background: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--mn-ink); }
.mn-icon-btn:hover { background: #F6F4F5; }
.mn-icon-btn svg { width: 23px; height: 23px; }
.mn-dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--mn-pink); box-shadow: 0 0 0 2px #fff; }
.mn-login-btn { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--mn-ink); padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.mn-login-btn:hover { background: #F6F4F5; }
.mn-header-cta { margin-left: 6px; }

/* ── 히어로 ── */
.mn-hero { background:
	radial-gradient(900px 420px at 85% 20%, #FFE3EC 0%, rgba(255,227,236,0) 70%),
	radial-gradient(700px 380px at 0% 100%, #FFF3E6 0%, rgba(255,243,230,0) 70%),
	var(--mn-cream); overflow: hidden; }
.mn-hero-in { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.mn-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: #fff; box-shadow: var(--mn-shadow); font-size: 13px; font-weight: 600; color: var(--mn-ink); }
.mn-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 0 4px rgba(46,204,113,.18); animation: mnPulse 1.8s ease-in-out infinite; }
@keyframes mnPulse { 50% { box-shadow: 0 0 0 7px rgba(46,204,113,0); } }
.mn-hero-title { margin-top: 22px !important; font-size: 50px; line-height: 1.22; font-weight: 800; color: var(--mn-ink); letter-spacing: -1.6px; }
.mn-hero-title em { font-style: normal; color: var(--mn-pink); background: linear-gradient(transparent 68%, #FFD9E6 68%); padding: 0 2px; }
.mn-hero-sub { margin-top: 18px !important; font-size: 17px; line-height: 1.7; }
.mn-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.mn-hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px !important; font-size: 14px; color: var(--mn-body); }
.mn-hero-points li { display: flex; align-items: center; gap: 6px; }
.mn-hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #FFE0EB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5C95' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }

.mn-hero-art { position: relative; height: 440px; }
.mn-hero-papers { position: absolute; inset: 0 0 110px 0; }
.mn-hero-paper { position: absolute; top: 0; width: 42%; aspect-ratio: 1748/2480; object-fit: cover; border-radius: 6px; background: #fff; box-shadow: 0 2px 4px rgba(35,42,49,.08), 0 18px 40px rgba(35,42,49,.16); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.mn-hero-paper--1 { left: 29%; z-index: 3; transform: rotate(-2deg); }
.mn-hero-paper--2 { left: 6%; top: 34px; z-index: 2; transform: rotate(-11deg); }
.mn-hero-paper--3 { left: 53%; top: 30px; z-index: 1; transform: rotate(9deg); }
.mn-hero-art:hover .mn-hero-paper--2 { transform: rotate(-14deg) translateX(-12px); }
.mn-hero-art:hover .mn-hero-paper--3 { transform: rotate(12deg) translateX(12px); }
.mn-hero-illust { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 92%; max-width: 480px; z-index: 4; border-radius: 22px;
	-webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 55%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 78% 82% at 50% 55%, #000 62%, transparent 100%); }

/* ── 섹션 공통 ── */
.mn-section { padding: 76px 0; }
.mn-section--tight { padding: 28px 0 0; }
.mn-section--soft { background: var(--mn-cream); }
.mn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.mn-head--center { justify-content: center; text-align: center; }
.mn-head--card { align-items: center; margin-bottom: 14px; }
.mn-kicker { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--mn-pink); margin-bottom: 8px !important; }
.mn-h2 { font-size: 30px; font-weight: 800; color: var(--mn-ink); letter-spacing: -0.9px; line-height: 1.3; }
.mn-h3 { font-size: 19px; font-weight: 800; color: var(--mn-ink); margin: 0; }
.mn-more { font-size: 14px; font-weight: 600; color: var(--mn-mute) !important; white-space: nowrap; }
.mn-more:hover { color: var(--mn-pink) !important; }
.mn-empty { padding: 24px 0; color: var(--mn-mute); font-size: 14px; }

/* ── 내 편지함 (로그인) ── */
.mn-me { display: flex; align-items: center; gap: 28px; padding: 22px 26px; border-radius: var(--mn-r); background: #fff; box-shadow: var(--mn-shadow); border: 1px solid #F5EEF0; }
.mn-me-hello { flex: 1; min-width: 0; }
.mn-me-name { font-size: 14px; color: var(--mn-mute); }
.mn-me-msg { margin-top: 4px !important; font-size: 18px; font-weight: 700; color: var(--mn-ink); }
.mn-me-msg b { color: var(--mn-pink); }
.mn-me-stats { display: flex; gap: 8px; }
.mn-stat { display: flex; flex-direction: column; align-items: center; min-width: 86px; padding: 10px 12px; border-radius: 14px; background: #FAF7F8; transition: background .15s; }
.mn-stat:hover { background: var(--mn-pink-bg); }
.mn-stat-n { font-size: 22px; font-weight: 800; color: var(--mn-ink); }
.mn-stat-l { font-size: 12.5px; color: var(--mn-mute); margin-top: 2px; }

/* ── 편지지 ── */
.mn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.mn-chip { padding: 7px 13px; border-radius: 999px; background: #F7F4F5; font-size: 13.5px; font-weight: 600; color: var(--mn-body) !important; transition: background .15s, color .15s; }
.mn-chip small { font-weight: 500; color: var(--mn-mute); margin-left: 2px; }
.mn-chip:hover { background: var(--mn-pink-bg); color: var(--mn-pink-d) !important; }
.mn-papers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
.mn-paper { display: flex; flex-direction: column; }
.mn-paper-img { position: relative; display: block; aspect-ratio: 1748/2480; border-radius: 10px; overflow: hidden; background: #F6F2F3; box-shadow: 0 1px 2px rgba(35,42,49,.06), 0 8px 22px rgba(35,42,49,.09); transition: transform .25s, box-shadow .25s; }
.mn-paper-img img { width: 100%; height: 100%; object-fit: cover; }
.mn-paper-use { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(35,42,49,.82); color: #fff; font-size: 14px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.mn-paper:hover .mn-paper-img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(35,42,49,.06), 0 16px 34px rgba(35,42,49,.14); }
.mn-paper:hover .mn-paper-use { opacity: 1; transform: none; }
.mn-paper-name { margin-top: 12px; font-size: 15.5px; font-weight: 700; color: var(--mn-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-paper-price { margin-top: 3px; font-size: 13.5px; color: var(--mn-mute); }
.mn-paper-price b { color: var(--mn-ink); }
.mn-paper-price b.free { color: #1FA463; }

/* ── 과정: 4컷 만화 (main/comic.php) ── */
.mn-comic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mn-cut { display: flex; flex-direction: column; }
.mn-cut-frame { position: relative; border: 3px solid #2B2B2B; border-radius: 8px; overflow: hidden; box-shadow: 6px 6px 0 #2B2B2B; transition: transform .2s, box-shadow .2s;
	background-image: radial-gradient(rgba(43,43,43,.09) 1.1px, transparent 1.5px); background-size: 9px 9px; }
.mn-cut:hover .mn-cut-frame { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 9px 9px 0 #2B2B2B; }
.mn-cut--1 .mn-cut-frame { background-color: #FFE6EE; }
.mn-cut--2 .mn-cut-frame { background-color: #E3ECF5; }
.mn-cut--3 .mn-cut-frame { background-color: #DDF4EC; }
.mn-cut--4 .mn-cut-frame { background-color: #FFF3CF; }
.mn-cut-frame svg { display: block; width: 100%; height: auto; }
.mn-cut-no { position: absolute; left: -3px; bottom: -3px; z-index: 1; padding: 3px 10px 4px; background: #FFD54F; border: 3px solid #2B2B2B; border-radius: 0 8px 0 0; font-size: 14px; font-weight: 900; color: #2B2B2B; }
.mn-cut-say { font-size: 17px; font-weight: 800; fill: #2B2B2B; font-family: "Pretendard", sans-serif; }
.mn-cut-sfx { font-size: 30px; font-weight: 900; fill: #FFD54F; stroke: #2B2B2B; stroke-width: 6px; paint-order: stroke; stroke-linejoin: round; font-family: "Pretendard", sans-serif; letter-spacing: -1px; }
.mn-cut-sfx--pink { fill: #FF8FB1; }
.mn-cut-cap { margin-top: 16px !important; font-size: 14px; line-height: 1.55; }
.mn-cut-cap b { display: block; margin-bottom: 3px; font-size: 16.5px; color: var(--mn-ink); }
.mn-cut--2 .mn-cut-cap b { color: #3D6FB6; }

/* ── 기능 ── */
.mn-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mn-feat { display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: var(--mn-r); }
.mn-feat b { margin-top: 10px; font-size: 17px; color: var(--mn-ink); }
.mn-feat span:last-child { font-size: 14px; line-height: 1.55; }
.mn-feat-ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: #fff; }
.mn-feat-ic svg { width: 22px; height: 22px; }
.mn-feat--pink   { background: #FFF0F4; } .mn-feat--pink   .mn-feat-ic { color: #FF5C95; }
.mn-feat--blue   { background: #EEF5FF; } .mn-feat--blue   .mn-feat-ic { color: #3B82F6; }
.mn-feat--yellow { background: #FFF7E4; } .mn-feat--yellow .mn-feat-ic { color: #E9A100; }
.mn-feat--green  { background: #ECF8F1; } .mn-feat--green  .mn-feat-ic { color: #1FA463; }

/* ── 공지 + 바로가기 ── */
.mn-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.mn-card { padding: 24px 26px; border-radius: var(--mn-r); background: #fff; box-shadow: var(--mn-shadow); }
.mn-notices li + li { border-top: 1px solid #F3EFF0; }
.mn-notices a { display: flex; align-items: center; gap: 10px; padding: 14px 0; font-size: 15px; color: var(--mn-ink); }
.mn-notices a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-notices a:hover span { color: var(--mn-pink); }
.mn-notices time { font-size: 13px; color: var(--mn-mute); }
.mn-pin { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--mn-pink); background: var(--mn-pink-bg); padding: 3px 7px; border-radius: 6px; }
.mn-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mn-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: #FAF7F8; font-size: 13.5px; font-weight: 600; color: var(--mn-ink); transition: background .15s; }
.mn-quick a span { font-size: 22px; }
.mn-quick a:hover { background: var(--mn-pink-bg); }

/* ── CTA · 푸터 ── */
.mn-cta { background: linear-gradient(120deg, #FF6FA0 0%, #FF5C95 45%, #FF8A7A 100%); }
.mn-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
.mn-cta-title { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.8px; line-height: 1.35; }
.mn-footer { background: #fff; border-top: 1px solid var(--mn-line); }
.mn-footer-in { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding-top: 30px; padding-bottom: 34px; }
.mn-logo--foot { font-size: 19px; }
.mn-footer-links { display: flex; gap: 18px; font-size: 14px; }
.mn-footer-links a:hover { color: var(--mn-pink); }
.mn-copy { margin-left: auto !important; font-size: 13px; color: var(--mn-mute); }

/* ── 편지지 자세히 보기 팝업 ── */
.mn-paper { cursor: pointer; }
.mn-paper:focus-visible .mn-paper-img { outline: 3px solid var(--mn-pink); outline-offset: 3px; }
.mn .mn-paper-use, .mn .mn-paper-use:hover { color: #fff; }
.mn-paper-use:hover { background: var(--mn-pink); }
.mn-pv { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; visibility: hidden; }
.mn-pv.is-open { visibility: visible; }
.mn-pv-back { position: absolute; inset: 0; background: rgba(28,22,26,.55); opacity: 0; transition: opacity .2s; }
.mn-pv.is-open .mn-pv-back { opacity: 1; }
.mn-pv-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; width: 100%; max-width: 860px; max-height: calc(100vh - 48px); padding: 34px; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.25);
	opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.mn-pv.is-open .mn-pv-box { opacity: 1; transform: none; }
.mn-pv-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #F6F4F5; color: var(--mn-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.mn-pv-x:hover { background: #EEEAEC; }
.mn-pv-x svg { width: 20px; height: 20px; }
.mn-pv-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 0; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, #FFF4F7, #FFF9F3); }
.mn-pv-flip { position: relative; height: min(62vh, 540px); aspect-ratio: 1748/2480; max-width: 100%; perspective: 1400px; cursor: pointer; }
.mn-pv-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; background: #fff; box-shadow: 0 2px 4px rgba(35,42,49,.08), 0 16px 36px rgba(35,42,49,.18);
	backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.3,.7,.2,1); }
.mn-pv-backimg { transform: rotateY(180deg); }
.mn-pv-flip.is-back .mn-pv-front { transform: rotateY(-180deg); }
.mn-pv-flip.is-back .mn-pv-backimg { transform: rotateY(0); }
.mn-pv-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.mn-pv-tabs button { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--mn-mute); padding: 7px 18px; border-radius: 999px; cursor: pointer; }
.mn-pv-tabs button.is-on { background: var(--mn-ink); color: #fff; }
.mn-pv-info { display: flex; flex-direction: column; padding-top: 18px; min-width: 0; }
.mn-pv-cate { font-size: 13.5px; font-weight: 700; color: var(--mn-pink); }
.mn-pv-name { margin: 6px 0 0; font-size: 26px; font-weight: 800; color: var(--mn-ink); letter-spacing: -0.8px; line-height: 1.3; }
.mn-pv-price { margin: 22px 0 0; padding: 16px 18px; border-radius: 14px; background: #FAF7F8; }
.mn-pv-price div { display: flex; justify-content: space-between; font-size: 15px; }
.mn-pv-price div + div { margin-top: 8px; }
.mn-pv-price dt { color: var(--mn-mute); }
.mn-pv-price dd { margin: 0; font-weight: 800; color: var(--mn-ink); }
.mn-pv-note { margin-top: 14px !important; font-size: 13.5px; line-height: 1.6; color: var(--mn-mute); }
.mn-pv-btns { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 24px; }

/* ── 안심 포인트 v2 (main/safe.php) — 밝고 부드럽게 ── */
.mn-safe { padding: 80px 0; background: linear-gradient(180deg, #fff 0%, #FFF6F8 100%); }
.mn-safe-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.mn-safe .mn-kicker { letter-spacing: 0; font-size: 14px; }
.mn-safe-sub { margin-top: 14px !important; font-size: 16px; line-height: 1.8; }
.mn-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.mn-flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 31px; border-top: 2px dashed #F6B9CC; }
.mn-flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mn-flow-ic { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--mn-pink); box-shadow: 0 0 0 6px #FFF6F8, 0 6px 16px rgba(255,92,149,.16); margin-bottom: 12px; }
.mn-flow-ic svg { width: 28px; height: 28px; }
.mn-flow b { font-size: 15.5px; color: var(--mn-ink); }
.mn-flow li > span:last-child { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--mn-body); }
.mn-flow-note { margin: 26px auto 0 !important; width: fit-content; padding: 13px 26px; border-radius: 999px; background: #fff; box-shadow: var(--mn-shadow); font-size: 18px; font-weight: 600; color: var(--mn-ink); }
.mn-flow-note b { color: var(--mn-pink-d); }

.mn-code { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px; margin-top: 46px; padding: 34px 40px; border-radius: 26px; background: #fff; box-shadow: var(--mn-shadow); border: 1px solid #F7EDF0; }
.mn-code-art svg { display: block; width: 100%; max-width: 420px; margin: 0 auto; height: auto; }
.mn-code-tag { font-size: 14px; font-weight: 800; fill: #fff; font-family: "Pretendard", sans-serif; }
.mn-code-eyebrow { font-size: 14px; font-weight: 700; color: var(--mn-pink); }
.mn-code-title { margin: 8px 0 0; font-size: 26px; font-weight: 800; line-height: 1.35; color: var(--mn-ink); letter-spacing: -0.8px; }
.mn-code-desc { margin-top: 14px !important; font-size: 15.5px; line-height: 1.75; }
.mn-code-list { margin-top: 18px !important; display: grid; gap: 10px; }
.mn-code-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--mn-ink); line-height: 1.5; }
.mn-code-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #FFE0EB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5C95' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }

/* ═══ 태블릿 ═══ */
@media (max-width: 1024px) {
	.mn-nav { gap: 20px; }
	.mn-hero-title { font-size: 42px; }
	.mn-hero-art { height: 380px; }
	.mn-comic, .mn-feats { grid-template-columns: repeat(2, 1fr); }
	.mn-comic { gap: 28px 24px; }
	.mn-code { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
	.mn-code-art svg { max-width: 360px; }
	.mn-papers { grid-template-columns: repeat(4, 1fr); gap: 22px 14px; }
	.mn-me { flex-wrap: wrap; }
}
@media (max-width: 860px) {
	.mn-nav { display: none; }
	.mn-hero-in { grid-template-columns: 1fr; gap: 10px; padding-top: 40px; padding-bottom: 40px; }
	.mn-hero-art { height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
	.mn-two { grid-template-columns: 1fr; }
	.mn-pv-box { grid-template-columns: minmax(0,1fr) 270px; gap: 22px; padding: 26px; }
	.mn-pv-flip { height: min(54vh, 460px); }
}

/* ═══ 모바일 ═══ */
@media (max-width: 640px) {
	.pc-only { display: none; }
	.mo-only { display: inline; }
	.mn-wrap { padding: 0 18px; }
	.mn-header-in { height: 58px; gap: 10px; }
	.mn-logo { font-size: 22px; }
	.mn-header-cta { display: none; }
	.mn-hero-in { padding-top: 26px; padding-bottom: 30px; }
	.mn-eyebrow { font-size: 12px; padding: 6px 12px 6px 10px; }
	.mn-hero-title { font-size: 31px; letter-spacing: -1px; margin-top: 16px !important; }
	.mn-hero-sub { font-size: 15px; margin-top: 12px !important; }
	.mn-hero-btns { margin-top: 22px; }
	.mn-hero-btns .mn-btn { flex: 1 1 100%; height: 52px; }
	.mn-hero-points { font-size: 13px; gap: 6px 12px; margin-top: 18px !important; }
	.mn-hero-art { height: 300px; order: -1; margin-bottom: 6px; }
	.mn-hero-papers { bottom: 88px; }
	.mn-hero-paper { width: 38%; }
	.mn-hero-paper--1 { left: 31%; }

	.mn-section { padding: 46px 0; }
	.mn-section--tight { padding: 18px 0 0; }
	.mn-h2 { font-size: 23px; }
	.mn-head { margin-bottom: 18px; }
	.mn-me { padding: 18px; gap: 14px; }
	.mn-me-msg { font-size: 16px; }
	.mn-me-stats { width: 100%; }
	.mn-stat { flex: 1; min-width: 0; }
	.mn-me-go { width: 100%; }

	.mn-chips { flex-wrap: nowrap; overflow-x: auto; margin: -4px -18px 18px; padding: 0 18px; scrollbar-width: none; }
	.mn-chips::-webkit-scrollbar { display: none; }
	.mn-chip { flex: 0 0 auto; }
	/* 편지지: 가로로 넘겨 보기 */
	.mn-papers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; gap: 12px; margin: 0 -18px; padding: 4px 18px 14px; scrollbar-width: none; }
	.mn-papers::-webkit-scrollbar { display: none; }
	.mn-paper { flex: 0 0 40%; scroll-snap-align: start; }
	.mn-paper-use { display: none; }
	.mn-paper-name { font-size: 14px; margin-top: 9px; }
	.mn-paper-price { font-size: 12.5px; }

	.mn-comic { gap: 22px 14px; }
	.mn-safe { padding: 50px 0; }
	.mn-safe-head { margin-bottom: 24px; }
	.mn-safe-sub { font-size: 14.5px; line-height: 1.7; }
	.mn-flow { grid-template-columns: 1fr; gap: 0; padding: 4px 0; }
	.mn-flow::before { left: 27px; right: auto; top: 28px; bottom: 28px; border-top: 0; border-left: 2px dashed #F6B9CC; }
	.mn-flow li { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 7px 0; }
	.mn-flow-ic { grid-row: span 2; width: 56px; height: 56px; margin: 0; }
	.mn-flow-ic svg { width: 24px; height: 24px; }
	.mn-flow b { align-self: end; font-size: 15px; }
	.mn-flow li > span:last-child { align-self: start; margin-top: 2px; font-size: 13px; }
	.mn-flow-note { font-size: 15.5px; padding: 11px 20px; margin-top: 18px !important; }
	.mn-code { margin-top: 30px; padding: 22px 18px; border-radius: 22px; }
	.mn-code-title { font-size: 21px; }
	.mn-code-desc { font-size: 14.5px; }
	.mn-code-list li { font-size: 14px; }
	.mn-cut-frame { border-width: 2.5px; box-shadow: 4px 4px 0 #2B2B2B; }
	.mn-cut-no { font-size: 12px; padding: 2px 8px 3px; border-width: 2.5px; }
	.mn-cut-cap { margin-top: 10px !important; font-size: 12.5px; }
	.mn-cut-cap b { font-size: 14.5px; }
	.mn-feats { gap: 10px; }
	.mn-feat { padding: 18px 16px; }
	.mn-feat b { font-size: 15px; margin-top: 6px; }
	.mn-feat span:last-child { font-size: 12.5px; }
	.mn-feat-ic { width: 38px; height: 38px; }
	.mn-card { padding: 20px 18px; }
	.mn-notices a { font-size: 14px; padding: 12px 0; }
	.mn-cta-in { flex-direction: column; align-items: stretch; text-align: center; padding-top: 38px; padding-bottom: 38px; }
	.mn-cta-title { font-size: 23px; }
	.mn-footer-in { flex-direction: column; align-items: flex-start; gap: 10px; }
	.mn-copy { margin-left: 0 !important; }
	/* 팝업: 아래에서 올라오는 시트 */
	.mn-pv { padding: 0; align-items: flex-end; }
	.mn-pv-box { grid-template-columns: 1fr; gap: 0; max-height: 92vh; overflow-y: auto; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(40px); }
	.mn-pv-x { top: 10px; right: 10px; }
	.mn-pv-stage { padding: 14px; }
	.mn-pv-flip { height: 46vh; }
	.mn-pv-info { padding-top: 16px; }
	.mn-pv-name { font-size: 21px; }
	.mn-pv-price { margin-top: 14px; padding: 13px 15px; }
	.mn-pv-btns { flex-direction: row; padding-top: 16px; }
	.mn-pv-btns .mn-btn { flex: 1; height: 50px; padding: 0 12px; font-size: 15px; }
}
@media (max-width: 500px) { .mn-footer-in { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }   /* 하단내비(500px 이하) 높이만큼 */
@media (prefers-reduced-motion: reduce) { .mn *, .mn *::before { transition: none !important; animation: none !important; } }

/* ═══════════ 아래: 햄버거 메뉴(includes/pcprofile.php) — 기존 /main/index.html 에서 복사 ═══════════ */
#pcProfileOverlay {
      display: none; position: fixed; inset: 0; z-index: 1500;
    }
#pcProfileOverlay.open { display: block; }
#pcProfilePanel {
      position: fixed; top: 52px; right: 12px;
      width: 260px; background: #ffffff;
      border-radius: 16px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.06);
      z-index: 1600; 
	  overflow-y: auto;
	  overflow-x: hidden;
	  height:100%;
	  max-height:500px;
      transform-origin: top right;
      transform: scale(0.88); opacity: 0; pointer-events: none;
      transition: transform 0.2s cubic-bezier(0.34,1.52,0.64,1), opacity 0.15s ease;
    }
#pcProfilePanel.open { transform: scale(1); opacity: 1; pointer-events: all; }
.pcp-header {
      display: flex; align-items: center; gap: 12px;
      padding: 18px 16px 14px; border-bottom: 1px solid #F3F5F7;
    }
.pcp-avatar {
      width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
      background: linear-gradient(135deg, #B2EBF2 0%, #E1BEE7 100%);
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
.pcp-avatar svg { stroke: #7E57C2; width: 22px; height: 22px; }
.pcp-online { position: absolute; bottom: 1px; right: 1px;
      width: 10px; height: 10px; border-radius: 50%;
      background: #22C55E; border: 2px solid #ffffff; }
.pcp-info { flex: 1; min-width: 0; }
.pcp-name {
      font-family: "Pretendard", sans-serif; font-size: 15px; font-weight: 700;
      color: #1E2930; letter-spacing: -0.3px;
    }
.pcp-name span { font-weight: 400; color: #78909C; font-size: 13px; }
.pcp-sub {
      display: flex; align-items: center; gap: 5px; margin-top: 3px;
    }
.pcp-naver {
      width: 14px; height: 14px; border-radius: 3px;
      background: #03C75A; display: flex; align-items: center; justify-content: center;
      font-family: "Pretendard", sans-serif; font-size: 9px; font-weight: 900; color: #ffffff;
      flex-shrink: 0;
    }
.pcp-sub-text {
      font-family: "Pretendard", sans-serif; font-size: 11px; color: #90A4AE;
    }
.pcp-gear {
      width: 28px; height: 28px; border-radius: 8px; border: none;
      background: #F5F7FA; cursor: pointer; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.15s;
    }
.pcp-gear:hover { background: #EEF2F7; }
.pcp-gear svg { stroke: #90A4AE; width: 14px; height: 14px; }
.pcp-section { padding: 6px 8px; }
.pcp-section + .pcp-section { border-top: 1px solid #F3F5F7; padding-top: 6px; }
.pcp-section-label {
      font-family: "Pretendard", sans-serif; font-size: 10px; font-weight: 600;
      color: #B0BEC5; letter-spacing: 0.06em;
      padding: 6px 8px 4px;
    }
.pcp-item {
      display: flex; align-items: center; gap: 11px;
      padding: 9px 8px; border-radius: 10px; border: none;
      background: transparent; cursor: pointer; width: 100%;
      font-family: "Pretendard", sans-serif; font-size: 14px;
      font-weight: 500; color: #2E3A42; letter-spacing: -0.2px;
      transition: background 0.12s;
    }
.pcp-item:hover { background: #F5F7FA; }
.pcp-item:hover .pcp-icon { background: #ffffff; }
.pcp-icon {
      width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      background: #F5F7FA; transition: background 0.12s;
    }
.pcp-icon svg { width: 15px; height: 15px; stroke: #546E7A; }
.pcp-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; flex: 1; }
.pcp-item-sub { font-size: 12px; font-weight: 500; color: #6B7785; letter-spacing: -0.1px; }
.pcp-titledot { display: flex; align-items: center; }
.pcp-dot { display: none; margin-left: auto; margin-right: 5px; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #F23C5E; }
.pcp-item.pcp-has-new .pcp-dot { display: block; }
.pcp-logout {
      padding: 6px 8px 12px; border-top: 1px solid #F3F5F7;
    }
.pcp-logout .pcp-item:hover { background: #FEF2F2; }
.pcp-logout .pcp-icon { background: #FEE2E2; }
.pcp-logout .pcp-icon svg { stroke: #EF4444; }
.pcp-logout .pcp-item { color: #EF4444; font-weight: 600; }

/* ═══════════ 모바일 하단내비(includes/bottomnav.php) — 기존 main/css/main.css 에서 복사 ═══════════ */
:root { --mbn-ink: #2B3440; --mbn-pink: #F23C7D; --mbn-pink-bg: #FCE6F0; }
.mobile-bottomnav { display: none; }

@media (max-width: 500px) {
  .mobile-bottomnav {
    display: flex; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0;
    max-width: 640px;
    margin: 0 auto;
    height: calc(90px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #ffffff;
    border-top: 1px solid #ECEAF2;
    box-shadow: none;
    z-index: 1100;
  }
  .mbn-item {
    flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    gap: 3px; padding: 0 0 12px;
    background: none; border: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mbn-icon-wrap {
    width: 58px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 15px;
    position: relative; z-index: 1;
  }
  .mbn-icon-img { height: 30px; width: auto; display: block; }
  .mbn-notice-dot {
    position: absolute; left: 48px; top: 2px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #F93E7D; transform: translate(-50%, -50%);
    z-index: 2; display: none; pointer-events: none;
  }
  .mbn-has-new .mbn-notice-dot { display: block; }
  .mbn-label {
    font-family: "Pretendard", sans-serif; font-size: 12.5px; font-weight: 600;
    color: var(--mbn-ink); letter-spacing: -0.2px; transition: color .1s ease;
    position: relative; z-index: 1; top: -1px;
  }
  .mbn-item::before {
    content: ""; position: absolute; z-index: 0;
    left: 14px; right: 14px; top: 8px; bottom: 6px;
    border-radius: 16px; background: transparent;
    transition: background .1s ease; pointer-events: none;
  }
  .mbn-item:not(.mbn-write):active::before     { background: var(--mbn-pink-bg); }
  .mbn-item:not(.mbn-write):active .mbn-label  { color: var(--mbn-pink); }
  .mbn-write::before { display: none; }
  .mbn-write-wrap { width: auto; height: auto; }
  .mbn-write-img {
    height: 55px; width: auto; display: block;
    margin-top: -14px; margin-bottom: 0;
    position: relative; top: 2px;
    transition: transform .12s ease;
  }
  .mbn-write:active .mbn-write-img { transform: scale(0.86); }
  .mbn-write .mbn-label { color: var(--mbn-pink); font-weight: 700; }
}
