/* ================================================================
   하늘 광장 — 글이 "비행"이 되고, 반응이 쌓일수록 높이 나는 곳
   ----------------------------------------------------------------
   고도대(tier)마다 하늘 빛이 다르다. 카드의 아바타 둘레, 고도계,
   높이 나는 글 카드의 하늘이 모두 --tier 한 색을 따른다.
   ================================================================ */

:root {
  --pz-bg:        #07130f;
  --pz-card:      rgba(16, 36, 29, .72);
  --pz-card-2:    rgba(22, 48, 38, .85);
  --pz-line:      rgba(255, 255, 255, .08);
  --pz-text:      #e7f5ee;
  --pz-muted:     #8fb8a3;
  --pz-faint:     #5d8573;
  --pz-accent:    #34d399;
  --pz-sky:       #7dd3fc;
  --pz-like:      #fb7185;
  --pz-radius:    20px;
}

.tier-runway       { --tier: #7c948a; --tier-2: #3b4d45; }
.tier-low          { --tier: #34d399; --tier-2: #0f766e; }
.tier-cruise       { --tier: #38bdf8; --tier-2: #1d4ed8; }
.tier-cloud        { --tier: #c4b5fd; --tier-2: #7c3aed; }
.tier-stratosphere { --tier: #fcd34d; --tier-2: #b45309; }

/* ── 하늘 배경 — 아주 느리게 흐르는 구름 ───────────────────────── */
body.pz-body {
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(56, 189, 248, .10), transparent 70%),
    radial-gradient(900px 400px at 110% 10%, rgba(52, 211, 153, .07), transparent 70%),
    var(--pz-bg);
  background-attachment: fixed;
}
.pz-clouds { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.pz-clouds span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.035), transparent);
  animation: pz-drift linear infinite;
}
.pz-clouds span:nth-child(1) { width: 520px; height: 160px; top: 12%; left: -30%; animation-duration: 140s; }
.pz-clouds span:nth-child(2) { width: 380px; height: 120px; top: 48%; left: -40%; animation-duration: 190s; animation-delay: -60s; }
.pz-clouds span:nth-child(3) { width: 640px; height: 200px; top: 78%; left: -50%; animation-duration: 230s; animation-delay: -120s; }
@keyframes pz-drift { to { transform: translateX(210vw); } }
@media (prefers-reduced-motion: reduce) { .pz-clouds span { animation: none; } }

.pz-wrap { position: relative; z-index: 1; padding-top: 104px; padding-bottom: 96px; }

/* ── 머리 ─────────────────────────────────────────────────────── */
.pz-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pz-hero h1 { font-size: 1.7rem; font-weight: 900; color: #fff; margin: 0; letter-spacing: -.02em; }
.pz-hero h1 .pz-hero-mark {
  display: inline-flex; width: 38px; height: 38px; border-radius: 12px; margin-right: 8px; vertical-align: -6px;
  align-items: center; justify-content: center; font-size: 1.15rem;
  background: linear-gradient(145deg, rgba(56,189,248,.25), rgba(52,211,153,.18));
  color: var(--pz-sky); border: 1px solid rgba(125,211,252,.3);
}
.pz-hero p { color: var(--pz-muted); margin: 6px 0 0; font-size: .88rem; }
.pz-hero-actions { display: flex; gap: 8px; }
.pz-icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pz-card); border: 1px solid var(--pz-line); color: var(--pz-text);
  font-size: 1.1rem; text-decoration: none; transition: border-color .2s, transform .2s;
}
.pz-icon-btn:hover { color: #fff; border-color: rgba(125,211,252,.4); transform: translateY(-1px); }
.pz-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--pz-like); color: #fff; font-size: .66rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--pz-bg);
}

/* ── 탭 ───────────────────────────────────────────────────────── */
.pz-tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--pz-line); margin-bottom: 16px;
}
.pz-tabs a {
  flex: 1; text-align: center; padding: 9px 6px; border-radius: 12px; font-size: .86rem; font-weight: 600;
  color: var(--pz-muted); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s;
}
.pz-tabs a.on { background: linear-gradient(135deg, rgba(52,211,153,.22), rgba(56,189,248,.16)); color: #fff; }
.pz-tabs a i { margin-right: 4px; }

/* ── 오늘의 하늘 질문 ─────────────────────────────────────────── */
.pz-question {
  position: relative; overflow: hidden; border-radius: var(--pz-radius); padding: 16px 18px;
  margin-bottom: 14px; border: 1px solid rgba(252,211,77,.22);
  background: linear-gradient(120deg, rgba(252,211,77,.10), rgba(56,189,248,.06) 60%, transparent);
}
.pz-question .lbl { font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: #fcd34d; }
.pz-question .q { color: #fff; font-weight: 700; margin: 4px 0 10px; font-size: 1.02rem; line-height: 1.5; }
.pz-question button, .pz-question a.btn-q {
  border: none; border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 700;
  background: #fcd34d; color: #3b2a02; text-decoration: none; display: inline-block;
}
.pz-question::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(252,211,77,.14), transparent); pointer-events: none;
}

/* ── 높이 나는 글 레일 ────────────────────────────────────────── */
.pz-section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--pz-muted); margin: 6px 2px 10px;
}
.pz-rail-track {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 14px; margin-bottom: 8px; scrollbar-width: none;
}
.pz-rail-track::-webkit-scrollbar { display: none; }
.pz-sky-card {
  flex: 0 0 210px; scroll-snap-align: start; position: relative; overflow: hidden;
  border-radius: 18px; padding: 14px; min-height: 170px; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(170deg, var(--tier-2), #0b1a16 85%);
  transition: transform .25s;
}
.pz-sky-card:hover { transform: translateY(-3px); color: #fff; }
.pz-sky-card.tier-cloud::before, .pz-sky-card.tier-stratosphere::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60px 20px at 20% 70%, rgba(255,255,255,.14), transparent),
    radial-gradient(90px 26px at 80% 85%, rgba(255,255,255,.10), transparent);
}
.pz-sky-card.tier-stratosphere::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1px 1px at 15% 20%, #fff, transparent), radial-gradient(1px 1px at 60% 12%, #fff, transparent),
                    radial-gradient(1.5px 1.5px at 85% 35%, #fde68a, transparent), radial-gradient(1px 1px at 35% 40%, #fff, transparent);
}
.pz-sky-alt { font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; font-weight: 700; line-height: 1; position: relative; }
.pz-sky-alt small { font-size: .7rem; font-weight: 600; opacity: .75; margin-left: 2px; }
.pz-sky-tier { font-size: .68rem; opacity: .8; margin-top: 3px; position: relative; }
.pz-sky-text {
  margin-top: 10px; font-size: .84rem; line-height: 1.5; color: rgba(255,255,255,.92); position: relative;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.pz-sky-foot { margin-top: 10px; font-size: .72rem; opacity: .8; display: flex; gap: 10px; position: relative; }

/* ── 쓰기 ─────────────────────────────────────────────────────── */
.pz-composer {
  display: flex; gap: 12px; padding: 16px; border-radius: var(--pz-radius); margin-bottom: 14px;
  background: var(--pz-card); border: 1px solid var(--pz-line); backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
}
.pz-composer:focus-within { border-color: rgba(125,211,252,.35); box-shadow: 0 0 0 4px rgba(56,189,248,.06); }
.pz-composer textarea {
  width: 100%; background: transparent; border: none; outline: none; resize: none; color: var(--pz-text);
  font-size: 1rem; line-height: 1.6; min-height: 30px; max-height: 320px; padding: 4px 0;
}
.pz-composer textarea::placeholder { color: var(--pz-faint); }
.pz-compose-bar { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.pz-tool {
  width: 36px; height: 36px; border-radius: 11px; border: none; background: transparent;
  color: var(--pz-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
  cursor: pointer; transition: background .2s, color .2s;
}
.pz-tool:hover { background: rgba(255,255,255,.06); color: var(--pz-sky); }
.pz-tool:disabled { opacity: .35; cursor: not-allowed; }
.pz-ring { width: 26px; height: 26px; margin-left: auto; transform: rotate(-90deg); }
.pz-ring circle { fill: none; stroke-width: 3; }
.pz-ring .bg { stroke: rgba(255,255,255,.1); }
.pz-ring .fg { stroke: var(--pz-accent); stroke-linecap: round; transition: stroke-dashoffset .15s, stroke .2s; }
.pz-ring.warn .fg { stroke: #fbbf24; }
.pz-ring.over .fg { stroke: #f87171; }
.pz-launch {
  position: relative; border: none; border-radius: 999px; padding: 8px 18px 8px 14px; margin-left: 8px;
  font-weight: 800; font-size: .88rem; color: #042015; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #6ee7b7, #38bdf8); box-shadow: 0 6px 20px rgba(56,189,248,.2);
  transition: transform .15s, opacity .2s;
}
.pz-launch:hover { transform: translateY(-1px); }
.pz-launch:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pz-launch .bi { margin-right: 5px; display: inline-block; }
.pz-launch.busy .bi { animation: pz-lift .9s ease-in-out infinite alternate; }
@keyframes pz-lift { from { transform: translateY(1px); } to { transform: translateY(-3px); } }
.pz-compose-hint { font-size: .74rem; color: var(--pz-faint); margin-top: 6px; }
.pz-compose-hint b { color: #fcd34d; }

.pz-previews { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; scrollbar-width: thin; }
.pz-previews:empty { display: none; }
.pz-prev { position: relative; flex: 0 0 auto; }
.pz-prev img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--pz-line); display: block; }
.pz-prev button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; display: flex; align-items: center; justify-content: center;
}
.pz-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px 6px 6px;
  border-radius: 12px; background: rgba(125,211,252,.08); border: 1px solid rgba(125,211,252,.2);
  font-size: .8rem; color: var(--pz-sky); max-width: 100%;
}
.pz-chip img { width: 26px; height: 36px; object-fit: cover; border-radius: 4px; }
.pz-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-chip button { border: none; background: transparent; color: var(--pz-muted); padding: 0 2px; }

.pz-login-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--pz-radius); margin-bottom: 14px;
  background: linear-gradient(120deg, rgba(52,211,153,.12), rgba(56,189,248,.08));
  border: 1px solid rgba(52,211,153,.25);
}
.pz-login-card .t { color: #fff; font-weight: 700; font-size: .95rem; }
.pz-login-card .s { color: var(--pz-muted); font-size: .8rem; }
.pz-login-card a.go {
  margin-left: auto; white-space: nowrap; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: .85rem;
  background: var(--pz-accent); color: #042015; text-decoration: none;
}

/* ── 아바타 ───────────────────────────────────────────────────── */
.pz-ava {
  --size: 44px;
  position: relative; width: var(--size); height: var(--size); flex: 0 0 var(--size); border-radius: 50%;
  padding: 2px; display: block; text-decoration: none;
  background: conic-gradient(from 210deg, var(--tier, var(--pz-accent)), var(--tier-2, #0f766e), var(--tier, var(--pz-accent)));
}
.pz-ava > span, .pz-ava > img {
  width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #0f2a22; color: #d1fae5; font-weight: 800; font-size: calc(var(--size) * .4);
  object-fit: cover; border: 2px solid var(--pz-bg);
}
.pz-ava.anon > span { color: var(--pz-faint); font-size: calc(var(--size) * .45); }
.pz-ava.sm { --size: 32px; }
.pz-ava.lg { --size: 96px; padding: 3px; }

/* ── 글 카드 ──────────────────────────────────────────────────── */
.pz-feed { display: flex; flex-direction: column; gap: 10px; }
.pz-card {
  position: relative; display: flex; gap: 12px; padding: 16px 16px 10px; border-radius: var(--pz-radius);
  background: var(--pz-card); border: 1px solid var(--pz-line); backdrop-filter: blur(8px);
  transition: border-color .25s;
}
.pz-card:hover { border-color: rgba(255,255,255,.14); }
.pz-card.pz-landed { animation: pz-land .7s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pz-land {
  0%   { opacity: 0; transform: translateY(-40px) scale(.97); }
  60%  { opacity: 1; transform: translateY(4px); }
  100% { transform: none; }
}
.pz-card.pz-flash { box-shadow: 0 0 0 2px rgba(125,211,252,.55); }
.pz-left { display: flex; flex-direction: column; align-items: center; }
.pz-main { flex: 1; min-width: 0; }
.pz-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pz-name { color: #fff; font-weight: 700; font-size: .93rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-name:hover { color: var(--pz-sky); }
.pz-name.anon { color: var(--pz-muted); font-weight: 600; }
.pz-time { color: var(--pz-faint); font-size: .8rem; white-space: nowrap; }
.pz-edited { color: var(--pz-faint); font-size: .72rem; }
.pz-you { font-size: .64rem; padding: 1px 6px; border-radius: 6px; background: rgba(52,211,153,.14); color: var(--pz-accent); font-weight: 700; }
.pz-alt {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif; font-size: .74rem; font-weight: 700; color: var(--tier);
  padding: 2px 8px 2px 6px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.pz-gauge { width: 4px; height: 14px; border-radius: 2px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.pz-gauge i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--tier); border-radius: 2px; }
.pz-more {
  border: none; background: transparent; color: var(--pz-faint); width: 30px; height: 30px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.pz-more:hover { background: rgba(255,255,255,.06); color: #fff; }
.pz-replyto { font-size: .78rem; color: var(--pz-faint); margin-top: 1px; }
.pz-replyto a { color: var(--pz-sky); text-decoration: none; }

.pz-text {
  color: var(--pz-text); font-size: .96rem; line-height: 1.65; margin-top: 4px;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
.pz-text.clamped { max-height: calc(1.65em * 9); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.pz-text a { color: var(--pz-sky); text-decoration: none; }
.pz-text a:hover { text-decoration: underline; }
.pz-text a.tag { color: #6ee7b7; white-space: nowrap; }
.pz-text a.mention { color: #c4b5fd; font-weight: 600; white-space: nowrap; }
.pz-readmore { border: none; background: none; color: var(--pz-sky); font-size: .82rem; padding: 2px 0; }
.pz-deleted-text { color: var(--pz-faint); font-style: italic; font-size: .88rem; margin-top: 4px; }

.pz-book {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: rgba(255,255,255,.035); border: 1px solid var(--pz-line); text-decoration: none; color: var(--pz-text);
  max-width: 420px;
}
.pz-book:hover { border-color: rgba(252,211,77,.35); color: #fff; }
.pz-book img, .pz-book .nocover { width: 34px; height: 48px; object-fit: cover; border-radius: 5px; flex: 0 0 auto; background: #12352a; display: flex; align-items: center; justify-content: center; color: #fcd34d; }
.pz-book .k { font-size: .66rem; color: #fcd34d; font-weight: 800; letter-spacing: .06em; }
.pz-book .t { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pz-book .a { font-size: .74rem; color: var(--pz-muted); }

/* 사진 — 한 장이면 크게, 여러 장이면 넘겨 보기 */
.pz-gallery { position: relative; margin-top: 10px; border-radius: 16px; overflow: hidden; background: #0b1914; user-select: none; }
.pz-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pz-track::-webkit-scrollbar { display: none; }
.pz-track img {
  flex: 0 0 100%; width: 100%; max-height: 520px; aspect-ratio: var(--ar, 4/5); object-fit: cover;
  scroll-snap-align: center; cursor: zoom-in; display: block;
}
.pz-gallery.single .pz-track img { aspect-ratio: auto; max-height: 560px; object-fit: contain; background: #06100d; }
.pz-counter {
  position: absolute; top: 10px; right: 10px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
}
.pz-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pz-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: transform .2s, background .2s; }
.pz-dots i.on { background: #fff; transform: scale(1.3); }
.pz-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.5); color: #fff; display: none; align-items: center; justify-content: center;
}
.pz-gallery:hover .pz-nav { display: flex; }
.pz-nav.prev { left: 8px; } .pz-nav.next { right: 8px; }
@media (hover: none) { .pz-gallery:hover .pz-nav { display: none; } }

.pz-photo-lock {
  margin-top: 10px; padding: 18px; border-radius: 16px; text-align: center; font-size: .82rem; color: var(--pz-muted);
  border: 1px dashed rgba(255,255,255,.12);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 10px, transparent 10px 20px);
}
.pz-photo-lock i { font-size: 1.4rem; display: block; margin-bottom: 4px; color: var(--pz-faint); }

/* 반응 줄 */
.pz-actions { display: flex; align-items: center; gap: 2px; margin: 8px 0 0 -8px; }
.pz-act {
  border: none; background: transparent; color: var(--pz-muted); height: 36px; padding: 0 10px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.pz-act:hover { background: rgba(255,255,255,.05); color: #fff; }
.pz-act i { font-size: 1.08rem; }
.pz-act.like.on { color: var(--pz-like); }
.pz-act.like.pop i { animation: pz-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pz-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.pz-act.save.on { color: #fcd34d; }
.pz-act.deliver:hover { color: var(--pz-sky); }
.pz-act.end { margin-left: auto; }

/* 두 번 두드리면 좋아요 — 하트에 날개 달린 헬리 하트 */
.pz-burst {
  position: fixed; z-index: 3000; pointer-events: none; font-size: 64px; color: var(--pz-like);
  transform: translate(-50%, -50%); animation: pz-burst .9s ease-out forwards; filter: drop-shadow(0 6px 18px rgba(251,113,133,.5));
}
.pz-burst::before, .pz-burst::after {
  content: ""; position: absolute; top: 2px; width: 34px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.85);
  animation: pz-rotor .18s linear infinite;
}
.pz-burst::before { left: 50%; margin-left: -38px; }
.pz-burst::after  { left: 50%; margin-left: 4px; animation-direction: reverse; }
@keyframes pz-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  60% { opacity: 1; transform: translate(-50%, -70%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -160%) scale(.8); }
}
@keyframes pz-rotor { 50% { transform: scaleX(.2); } }

/* ── 스레드 ───────────────────────────────────────────────────── */
.pz-thread-root { padding: 20px 18px 12px; }
.pz-thread-root .pz-text { font-size: 1.06rem; }
.pz-thread-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pz-back { color: var(--pz-muted); text-decoration: none; font-size: .9rem; }
.pz-back:hover { color: #fff; }
.pz-replies { position: relative; margin-top: 10px; }
.pz-reply { display: flex; gap: 10px; padding: 12px 12px 6px; position: relative; border-radius: 16px; }
.pz-reply:target, .pz-reply.pz-flash { background: rgba(125,211,252,.07); }
/* 교신을 잇는 항로선 — 점선으로 흐르고 끝에 작은 기체가 앉는다 */
.pz-reply .pz-left::after {
  content: ""; flex: 1; width: 0; margin-top: 6px;
  border-left: 2px dashed rgba(125,211,252,.22);
}
.pz-reply:last-child .pz-left::after { border-left-color: transparent; }
.pz-replies-end { display: flex; align-items: center; gap: 8px; color: var(--pz-faint); font-size: .78rem; padding: 6px 22px; }
.pz-reply .pz-text { font-size: .93rem; }
.pz-empty-thread { text-align: center; color: var(--pz-faint); padding: 26px 10px; font-size: .88rem; }
.pz-empty-thread i { font-size: 1.8rem; display: block; margin-bottom: 6px; color: rgba(125,211,252,.35); }

.pz-reply-dock {
  position: sticky; bottom: 12px; z-index: 20; margin-top: 14px; padding: 10px 12px; border-radius: 18px;
  background: rgba(10, 26, 21, .92); border: 1px solid rgba(125,211,252,.22); backdrop-filter: blur(10px);
  box-shadow: 0 -8px 30px rgba(0,0,0,.35);
}
.pz-reply-dock form { display: flex; align-items: flex-end; gap: 8px; }
.pz-reply-dock textarea {
  flex: 1; background: transparent; border: none; outline: none; resize: none; color: var(--pz-text);
  font-size: .95rem; line-height: 1.5; max-height: 160px; padding: 6px 2px;
}
.pz-reply-dock .pz-target { font-size: .74rem; color: var(--pz-sky); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.pz-reply-dock .pz-target button { border: none; background: none; color: var(--pz-faint); padding: 0; }
.pz-send {
  width: 40px; height: 40px; border-radius: 13px; border: none; flex: 0 0 auto;
  background: linear-gradient(135deg, #6ee7b7, #38bdf8); color: #042015; font-size: 1.05rem;
}
.pz-send:disabled { opacity: .4; }

/* ── 곁 칸 (넓은 화면) ────────────────────────────────────────── */
.pz-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 12px; }
.pz-panel { border-radius: var(--pz-radius); padding: 16px; background: var(--pz-card); border: 1px solid var(--pz-line); }
.pz-panel h6 { color: #fff; font-weight: 800; font-size: .88rem; margin: 0 0 10px; }
.pz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-tags a {
  font-size: .8rem; padding: 5px 10px; border-radius: 999px; text-decoration: none; color: #a7f3d0;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.18);
}
.pz-tags a:hover { background: rgba(52,211,153,.16); color: #fff; }
.pz-tags a small { color: var(--pz-faint); margin-left: 3px; }
.pz-altimeter { display: flex; flex-direction: column; gap: 8px; }
.pz-altimeter .row-t { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--pz-muted); }
.pz-altimeter .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--tier); flex: 0 0 auto; }
.pz-altimeter .m { margin-left: auto; font-family: 'Space Grotesk', sans-serif; color: var(--pz-faint); font-size: .72rem; }

.pz-tagbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; margin-bottom: 14px;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.2); color: #d1fae5;
}
.pz-tagbar b { font-size: 1.05rem; }
.pz-tagbar a { margin-left: auto; color: var(--pz-muted); font-size: .8rem; text-decoration: none; }

/* ── 새 글 알약 ───────────────────────────────────────────────── */
.pz-newpill {
  position: fixed; top: 84px; left: 50%; transform: translate(-50%, -20px); z-index: 1030; opacity: 0; pointer-events: none;
  border: none; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: .84rem;
  background: linear-gradient(135deg, #6ee7b7, #38bdf8); color: #042015; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: opacity .3s, transform .3s;
}
.pz-newpill.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

/* ── 빈 자리·끝 ───────────────────────────────────────────────── */
.pz-empty { text-align: center; padding: 48px 16px; color: var(--pz-muted); border-radius: var(--pz-radius); border: 1px dashed var(--pz-line); }
.pz-empty .ic { font-size: 2.6rem; color: rgba(125,211,252,.4); display: block; margin-bottom: 8px; }
.pz-empty b { color: #fff; display: block; margin-bottom: 4px; font-size: 1.02rem; }
.pz-sentinel { height: 1px; }
.pz-loading { text-align: center; color: var(--pz-faint); font-size: .8rem; padding: 14px; }
.pz-end { text-align: center; color: var(--pz-faint); font-size: .78rem; padding: 18px 0 4px; }

/* ── 떠 있는 띄우기 버튼 (좁은 화면) ──────────────────────────── */
.pz-fab {
  position: fixed; left: 18px; bottom: 22px; z-index: 1040; display: none;
  height: 52px; padding: 0 18px 0 14px; border-radius: 18px; border: none; font-weight: 800; font-size: .9rem;
  background: linear-gradient(135deg, #6ee7b7, #38bdf8); color: #042015; box-shadow: 0 10px 28px rgba(0,0,0,.45);
  align-items: center; gap: 6px;
}
@media (max-width: 991.98px) {
  /* 쓰는 칸이 화면에 보이는 동안에는 숨고, 지나쳐 내려가면 나타난다 */
  .pz-fab {
    display: inline-flex; bottom: calc(var(--mobile-bottom-nav-height, 68px) + 16px + env(safe-area-inset-bottom, 0px));
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .pz-fab.show { opacity: 1; transform: none; pointer-events: auto; }
  /* 교신 칸이 하단 탭 막대 뒤에 숨지 않게 */
  .pz-reply-dock { bottom: calc(var(--mobile-bottom-nav-height, 68px) + 10px + env(safe-area-inset-bottom, 0px)); }
}
/* 로그인한 휴대폰 머리줄 — 포인트·알림·쪽지·메뉴가 한 줄에 들어가도록 좁은 화면에서는 로고 글자를 뺀다 */
@media (max-width: 399.98px) {
  .hbc-navbar .navbar-brand.has-user .hbc-logo-text { display: none; }
}

/* ── 시트 (메뉴·신고·배달) ────────────────────────────────────── */
.pz-veil { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.pz-sheet {
  position: fixed; z-index: 2001; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100%);
  max-height: 88vh; overflow-y: auto; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0; background: #0e211b; border: 1px solid rgba(125,211,252,.18); border-bottom: none;
  animation: pz-sheet-in .28s cubic-bezier(.2, .9, .3, 1);
}
@media (min-width: 768px) {
  .pz-sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 24px; border-bottom: 1px solid rgba(125,211,252,.18); padding-bottom: 22px; }
}
@keyframes pz-sheet-in { from { opacity: 0; margin-bottom: -40px; } to { opacity: 1; margin-bottom: 0; } }
.pz-grip { width: 42px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); margin: 0 auto 12px; }
.pz-sheet h5 { color: #fff; font-weight: 800; font-size: 1.05rem; margin: 4px 0 12px; }
.pz-menu-item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 14px; border: none;
  background: transparent; color: var(--pz-text); font-size: .95rem; text-align: left; text-decoration: none;
}
.pz-menu-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.pz-menu-item i { font-size: 1.15rem; width: 22px; text-align: center; color: var(--pz-muted); }
.pz-menu-item.danger, .pz-menu-item.danger i { color: #fca5a5; }
.pz-field {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--pz-line); border-radius: 14px;
  color: var(--pz-text); padding: 10px 12px; outline: none; font-size: .92rem;
}
.pz-field:focus { border-color: rgba(125,211,252,.4); }
.pz-reason { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pz-reason label {
  padding: 7px 12px; border-radius: 999px; font-size: .84rem; cursor: pointer; color: var(--pz-muted);
  border: 1px solid var(--pz-line);
}
.pz-reason input { display: none; }
.pz-reason input:checked + span { color: #fff; }
.pz-reason label:has(input:checked) { border-color: #fca5a5; background: rgba(248,113,113,.12); color: #fff; }
.pz-sheet-actions { display: flex; gap: 8px; margin-top: 14px; }
.pz-btn {
  flex: 1; border: none; border-radius: 14px; padding: 12px; font-weight: 800; font-size: .92rem;
  background: rgba(255,255,255,.06); color: var(--pz-text);
}
.pz-btn.primary { background: linear-gradient(135deg, #6ee7b7, #38bdf8); color: #042015; }
.pz-btn.danger { background: rgba(248,113,113,.18); color: #fecaca; }
.pz-btn:disabled { opacity: .45; }
.pz-pick { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 220px; overflow-y: auto; }
.pz-pick button {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: var(--pz-text); text-align: left;
}
.pz-pick button:hover, .pz-pick button.on { background: rgba(125,211,252,.08); border-color: rgba(125,211,252,.25); }
.pz-deliver-sky { position: relative; height: 70px; overflow: hidden; border-radius: 16px; margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(56,189,248,.18), rgba(52,211,153,.06)); }
.pz-deliver-sky .bi { position: absolute; left: 12%; top: 26px; font-size: 1.6rem; color: #e0f2fe; animation: pz-hover 2.2s ease-in-out infinite; }
.pz-deliver-sky.go .bi { animation: pz-fly 1.1s ease-in forwards; }
@keyframes pz-hover { 50% { transform: translateY(-5px); } }
@keyframes pz-fly { to { left: 105%; top: -10px; transform: rotate(-12deg); } }

/* ── 사진 크게 보기 ───────────────────────────────────────────── */
.pz-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(2,8,6,.94); display: flex; align-items: center; justify-content: center; }
.pz-lightbox .track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pz-lightbox .track::-webkit-scrollbar { display: none; }
.pz-lightbox .track div { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; padding: 40px 12px; }
.pz-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.pz-lightbox .x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.1); color: #fff; font-size: 1.3rem; }
.pz-lightbox .n { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; }

/* ── 토스트 ───────────────────────────────────────────────────── */
.pz-toast {
  position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 20px); z-index: 4000; opacity: 0;
  padding: 11px 18px; border-radius: 14px; font-size: .88rem; font-weight: 600; max-width: calc(100% - 32px);
  background: #e7f5ee; color: #062017; box-shadow: 0 12px 30px rgba(0,0,0,.45); transition: opacity .25s, transform .25s;
}
.pz-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pz-toast.err { background: #fecaca; color: #450a0a; }

/* ── 프로필 ───────────────────────────────────────────────────── */
.pz-profile { border-radius: 24px; overflow: hidden; background: var(--pz-card); border: 1px solid var(--pz-line); margin-bottom: 14px; }
.pz-profile-sky { height: 120px; position: relative; background: linear-gradient(170deg, var(--tier-2), #0a1a15 95%); }
.pz-profile-sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90px 26px at 22% 60%, rgba(255,255,255,.10), transparent), radial-gradient(140px 36px at 78% 40%, rgba(255,255,255,.07), transparent);
}
.pz-profile-sky .tier-name {
  position: absolute; right: 14px; bottom: 10px; z-index: 1; font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: #fff;
  padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.3);
}
.pz-profile-body { padding: 0 18px 18px; margin-top: -48px; position: relative; z-index: 1; }
.pz-profile-name { color: #fff; font-weight: 900; font-size: 1.35rem; margin: 10px 0 2px; }
.pz-profile-bio { color: var(--pz-muted); font-size: .88rem; white-space: pre-wrap; margin: 6px 0 0; }
.pz-stats { display: flex; gap: 18px; margin: 14px 0; flex-wrap: wrap; }
.pz-stats div { font-size: .78rem; color: var(--pz-muted); }
.pz-stats b { display: block; color: #fff; font-size: 1.05rem; font-family: 'Space Grotesk', sans-serif; }
.pz-profile-actions { display: flex; gap: 8px; }
.pz-profile-actions .pz-btn { flex: 1; text-align: center; text-decoration: none; }
.pz-btn.following { background: transparent; border: 1px solid var(--pz-line); color: var(--pz-text); }

/* ── 쪽지 ─────────────────────────────────────────────────────── */
.pz-dm-shell { display: grid; grid-template-columns: 320px 1fr; gap: 14px; }
@media (max-width: 991.98px) { .pz-dm-shell { grid-template-columns: 1fr; } .pz-dm-shell .pz-inbox-pane.with-thread { display: none; } }
.pz-inbox-pane, .pz-thread-pane { border-radius: var(--pz-radius); background: var(--pz-card); border: 1px solid var(--pz-line); overflow: hidden; }
.pz-inbox-tabs { display: flex; border-bottom: 1px solid var(--pz-line); }
.pz-inbox-tabs a { flex: 1; text-align: center; padding: 12px; font-size: .88rem; font-weight: 700; color: var(--pz-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.pz-inbox-tabs a.on { color: #fff; border-bottom-color: var(--pz-accent); }
.pz-inbox-tabs a .n { margin-left: 4px; font-size: .7rem; padding: 1px 7px; border-radius: 999px; background: var(--pz-like); color: #fff; }
.pz-convo {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--pz-text);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.pz-convo:hover, .pz-convo.on { background: rgba(255,255,255,.04); color: #fff; }
.pz-convo .body { flex: 1; min-width: 0; }
.pz-convo .who { font-weight: 700; font-size: .9rem; display: flex; gap: 6px; align-items: center; }
.pz-convo .who time { margin-left: auto; font-weight: 400; font-size: .72rem; color: var(--pz-faint); }
.pz-convo .pv { font-size: .82rem; color: var(--pz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pz-convo.unread .pv { color: #fff; font-weight: 600; }
.pz-convo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pz-sky); flex: 0 0 auto; }
.pz-thread-pane { display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 460px; }
.pz-thread-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--pz-line); }
.pz-thread-top a.name { color: #fff; font-weight: 800; text-decoration: none; }
.pz-msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.pz-msg { max-width: 76%; display: flex; flex-direction: column; }
.pz-msg .b {
  padding: 9px 13px; border-radius: 18px; font-size: .92rem; line-height: 1.5; word-break: break-word;
  background: rgba(255,255,255,.07); color: var(--pz-text); border-bottom-left-radius: 6px;
}
.pz-msg .b > span { white-space: pre-wrap; }
.pz-msg .at { font-size: .66rem; color: var(--pz-faint); margin: 2px 6px 0; }
.pz-msg.mine { align-self: flex-end; align-items: flex-end; }
.pz-msg.mine .b { background: linear-gradient(135deg, #10b981, #0ea5e9); color: #fff; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.pz-msg .shared { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.2); color: inherit; text-decoration: none; font-size: .8rem; }
.pz-msg.pending .b { opacity: .6; }
.pz-request-bar { padding: 14px; border-top: 1px solid var(--pz-line); background: rgba(252,211,77,.06); }
.pz-request-bar p { font-size: .84rem; color: #fde68a; margin: 0 0 10px; }
.pz-dm-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--pz-line); }
.pz-dm-compose textarea { flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--pz-line); border-radius: 16px; color: var(--pz-text); padding: 9px 12px; resize: none; outline: none; max-height: 140px; font-size: .92rem; }
.pz-dm-blocked { padding: 14px; text-align: center; color: var(--pz-faint); font-size: .84rem; border-top: 1px solid var(--pz-line); }
@media (max-width: 991.98px) {
  .pz-thread-pane { height: calc(100vh - 88px - var(--mobile-bottom-nav-height, 68px) - 24px); }
}

/* ── 좁은 화면 ────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .pz-wrap { padding-top: 76px; }
  .pz-hero h1 { font-size: 1.35rem; }
  .pz-hero h1 .pz-hero-mark { width: 32px; height: 32px; font-size: 1rem; }
  .pz-hero p { font-size: .8rem; }
  .pz-card { padding: 14px 12px 8px; gap: 10px; border-radius: 18px; }
  .pz-ava { --size: 38px; }
  .pz-ava.sm { --size: 30px; }
  .pz-text { font-size: .94rem; }
  .pz-act { padding: 0 8px; }
  .pz-act span.lbl { display: none; }
  .pz-composer { padding: 12px; gap: 10px; }
  .pz-compose-bar { gap: 0; flex-wrap: nowrap; }
  .pz-tool { width: 32px; height: 32px; font-size: 1rem; }
  .pz-ring { width: 22px; height: 22px; }
  .pz-launch { padding: 7px 12px 7px 10px; margin-left: 6px; font-size: .84rem; }
  .pz-login-card { flex-wrap: wrap; }
  .pz-login-card > div { flex: 1; min-width: 0; }
  .pz-login-card a.go { margin-left: 0; width: 100%; text-align: center; }
  .pz-sky-card { flex-basis: 180px; min-height: 156px; }
  .pz-alt { padding: 2px 6px; }
  .pz-msg { max-width: 85%; }
}
