:root { --pink: #fbe4ea; --pink2: #f6c9d4; --cherry: #c8102e; --ink: #2b2527; --gray: #f3f1f2; --line: #ece4e7; }
body { margin: 0; background: #fdf7f9; color: var(--ink); font-family: "Noto Sans", system-ui, sans-serif; }
.serif { font-family: "Gowun Batang", Georgia, serif; margin: 0; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; position: relative; }
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
	padding: 12px 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font-family: "Gowun Batang", serif; font-size: 22px; letter-spacing: -.5px; }
.logo b { color: var(--cherry); }
.spark { color: var(--pink2); margin-left: 3px; display: inline-block; animation: tw 2.4s infinite; }
@keyframes tw { 50% { transform: rotate(20deg) scale(1.2); } }
.content { padding: 16px 16px 100px; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.muted { color: #8a7f83; }
.small { font-size: 13px; }
.input { font-size: 16px; min-height: 44px; border-radius: 14px; border: 1px solid var(--line); padding: 10px 14px; background: var(--gray); width: 100%; box-sizing: border-box; font-family: inherit; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.btn { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s; color: var(--ink); }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--cherry); color: #fff; border-color: var(--cherry); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.wide { width: 100%; }
.link { background: none; border: 0; color: var(--cherry); font: inherit; font-size: 14px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; animation: up .35s ease both; }
.card.soft { background: var(--pink); border-color: var(--pink2); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
.banner { background: linear-gradient(135deg, var(--pink), #fff 70%); border-radius: 26px; padding: 22px; border: 1px solid var(--pink2); }
.banner h1 { font-size: 26px; line-height: 1.25; margin: 10px 0; }
.sticker { font-size: 12px; background: #fff; border: 1px dashed var(--cherry); color: var(--cherry); padding: 4px 10px; border-radius: 999px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; min-height: 34px; font-family: inherit; cursor: pointer; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.compose { border-style: dashed; color: #8a7f83; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--pink2); color: var(--cherry); display: grid; place-items: center; font-weight: 700; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--pink2); }
.avatar.big { width: 84px; height: 84px; font-size: 34px; position: absolute; bottom: -42px; left: 50%; transform: translateX(-50%); }
.cover { position: relative; height: 120px; border-radius: 22px; background: linear-gradient(120deg, var(--pink2), var(--pink), #fff); margin-bottom: 46px; }
.tag { font-size: 12px; background: var(--pink); color: var(--cherry); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.post h3 { margin: 12px 0 6px; font-size: 19px; }
.body { margin: 6px 0; line-height: 1.55; white-space: pre-wrap; }
.actions { display: flex; gap: 4px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.act { background: none; border: 0; min-height: 44px; padding: 0 10px; font: inherit; font-size: 14px; color: #8a7f83; cursor: pointer; border-radius: 12px; }
.act.liked { color: var(--cherry); }
.comments { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.comment { margin: 0; font-size: 14px; background: var(--gray); padding: 8px 12px; border-radius: 14px; }
.pill { font-size: 13px; background: var(--gray); border-radius: 999px; padding: 6px 12px; }
.pill.ok, .alert.ok { background: #e8f6ee; color: #23784a; }
.alert.ok { padding: 10px 14px; border-radius: 14px; margin: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3cc477; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 44px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #fff;
	border-top: 1px solid var(--line); padding-bottom: max(8px, env(safe-area-inset-bottom)); z-index: 6; }
.tabbar button { flex: 1; min-height: 58px; background: none; border: 0; font: inherit; font-size: 12px; color: #8a7f83; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.tabbar .ti { font-size: 20px; }
.tabbar button.on { color: var(--cherry); font-weight: 600; }
.sheet-bg { position: fixed; inset: 0; background: rgba(43,37,39,.35); z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 480px; border-radius: 26px 26px 0 0; padding: 18px 20px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: up .25s; box-sizing: border-box; }
img.avatar { object-fit: cover; }
.center-row { justify-content: center; }
.upload { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.post-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 18px; margin-top: 8px; display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.shot { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--gray); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(43,37,39,.7); color: #fff; font-size: 18px; cursor: pointer; }
.linkcard { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; display: block; }
.left { text-align: left; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stats div { background: var(--pink); border-radius: 18px; padding: 10px 4px; display: flex; flex-direction: column; }
.stats b { font-size: 18px; color: var(--cherry); }
.stats span { font-size: 12px; color: #8a7f83; }
.back { align-self: flex-start; }
.badge-n, .dot-n { background: var(--cherry); color: #fff; border-radius: 999px; font-size: 11px; font-style: normal; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px; box-sizing: border-box; }
.tabbar .ti { position: relative; }
.dot-n { position: absolute; top: -4px; right: -12px; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubbles { display: flex; flex-direction: column; gap: 6px; min-height: 40vh; }
.bubble { max-width: 80%; align-self: flex-start; background: var(--gray); border-radius: 18px 18px 18px 4px; padding: 8px 12px; line-height: 1.4; word-break: break-word; display: flex; flex-direction: column; gap: 6px; }
.bubble.mine { align-self: flex-end; background: var(--cherry); color: #fff; border-radius: 18px 18px 4px 18px; }
.bubble img { max-width: 100%; border-radius: 12px; display: block; }
.composer { position: sticky; bottom: 76px; background: #fff; padding: 6px 0; }
.sheet-handle { width: 40px; height: 4px; background: var(--line); border-radius: 4px; margin: 0 auto; }
