/* 소원 돌탑 — 밤하늘 다크 테마 하나만 씁니다. */
:root {
  --bg: #070a1c;
  --panel: rgba(13, 18, 46, 0.92);
  --panel-solid: #0f1535;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef0ff;
  --muted: #a8aecb;
  --moon: #ffeab0;
  --moon-dim: rgba(255, 234, 176, 0.35);
  --accent: #f3dc8f;
  --danger: #ff8a8a;
  --green: #8fd3a0;
  --font-title: "Gowun Batang", "Noto Serif KR", serif;
  --font-body: "Gowun Dodum", "Noto Sans KR", sans-serif;
  --sb-w: 380px;
  --radius: 14px;
  --sa-top: env(safe-area-inset-top, 0px);
  --sa-bottom: env(safe-area-inset-bottom, 0px);
  --sa-left: env(safe-area-inset-left, 0px);
  --sa-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.5; overscroll-behavior: none; }
body { overflow: hidden; -webkit-tap-highlight-color: transparent; }
body.modal-open { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; margin: 0; }
a { color: var(--moon); }
button { font-family: inherit; font-size: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#tower { position: fixed; inset: 0; display: block; touch-action: none; cursor: grab; }

/* ---------- HUD ---------- */
.hud { position: fixed; z-index: 5; }
.hud-tl { top: calc(12px + var(--sa-top)); left: calc(16px + var(--sa-left)); pointer-events: none; }
.hud-tl h1 { font-size: 26px; letter-spacing: 0.04em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.hud-tl p { margin: 2px 0 0; color: var(--muted); font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
/* 애틋한 소원 흐름: 최대 3개, 맨 위가 20% 더 크고 진함, 위로 사라짐 */
#wish-feed { margin-top: 30px; width: min(380px, 70vw); display: flex; flex-direction: column; gap: 7px; pointer-events: auto; }
#wish-feed:not(:empty) { padding: 10px 14px 12px; margin-left: -14px; border-radius: 14px;   /* 옅은 어두운 바탕: 확대한 탑 위에서도 읽히게 */
  background: linear-gradient(180deg, rgba(7, 10, 28, 0.62), rgba(7, 10, 28, 0.42)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.wf-item { font-family: var(--font-title); font-size: 15.6px; line-height: 1.45; color: var(--text); opacity: 0.72; cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); word-break: keep-all;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease, font-size 0.8s ease; }   /* 들어올 때 0.8초 */
.wf-item .wf-name { font-size: 0.78em; color: var(--muted); margin-left: 6px; }
.wf-item.top { font-size: 18.7px; opacity: 1; font-weight: 700; color: #fff; }
.wf-item.enter { opacity: 0; transform: translateY(8px); filter: blur(2px); }
.wf-item.leave { opacity: 0; transform: translateY(-10px) scale(0.985); filter: blur(3px); transition-duration: 1.6s; }   /* 사라질 때는 1.6초 */
@media (prefers-reduced-motion: reduce) { .wf-item { transition: none; } }
/* 이전·다음 소원 */
.nav-row { display: flex; gap: 8px; margin: 10px 0 14px; }
.nav-row .btn { flex: 1; }
.hud-tr { top: calc(12px + var(--sa-top)); right: calc(16px + var(--sa-right)); display: flex; gap: 8px; }
.hud-bl { bottom: calc(16px + var(--sa-bottom)); left: calc(16px + var(--sa-left)); display: flex; flex-direction: column; gap: 6px; }
.hud-bc { bottom: calc(22px + var(--sa-bottom)); left: 50%; transform: translateX(-50%); }
.hud-br { bottom: calc(6px + var(--sa-bottom)); right: calc(12px + var(--sa-right)); font-size: 11px; color: rgba(168, 174, 203, 0.6); }
.hud-br a { color: inherit; text-decoration: none; }
.hud-br a:hover { color: var(--muted); }

body.sb-open .hud-tr { right: calc(var(--sb-w) + 16px + var(--sa-right)); }
body.sb-open .hud-br { right: calc(var(--sb-w) + 12px + var(--sa-right)); }
.hud-tr, .hud-br { transition: right 0.2s; }

/* ---------- 버튼 ---------- */
.btn { border: 1px solid var(--line); background: rgba(13, 18, 46, 0.8); color: var(--text); padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; backdrop-filter: blur(8px); transition: background 0.15s, transform 0.1s; line-height: 1.3; }
.btn:hover { background: rgba(40, 48, 92, 0.9); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #ffe9a8, #e9c66a); color: #2b2108; border-color: transparent; font-weight: 700; }
.btn.primary:hover { background: linear-gradient(180deg, #fff1c2, #f0cf78); }
.btn.danger { background: rgba(255, 110, 110, 0.15); border-color: rgba(255, 138, 138, 0.5); color: var(--danger); }
.btn.ghost { background: rgba(13, 18, 46, 0.65); }
.btn.big { font-size: 18px; padding: 14px 28px; box-shadow: 0 6px 30px rgba(243, 220, 143, 0.35); }
.btn.icon { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 18px; }
.btn.icon.small { width: 32px; height: 32px; font-size: 18px; }
.btn.full { width: 100%; justify-content: center; }
.btn.accent { background: rgba(243, 220, 143, 0.14); border-color: rgba(243, 220, 143, 0.5); color: var(--accent); }
.btn.link { background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 4px; backdrop-filter: none; }
.btn.link:hover { color: var(--danger); background: none; }
.btn.tiny { padding: 3px 9px; font-size: 12px; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--moon); outline-offset: 2px; }

/* ---------- 팝업 ---------- */
#toasts { position: fixed; top: calc(14px + var(--sa-top)); left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { position: relative; pointer-events: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 36px 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); overflow: hidden; animation: toast-in 0.25s ease-out; }
.toast.error { border-color: rgba(255, 138, 138, 0.5); }
.toast .t-title { font-weight: 700; font-family: var(--font-title); color: var(--moon); }
.toast .t-line { font-size: 13px; color: var(--text); }
.toast .t-line.muted { color: var(--muted); }
.toast .t-line.bless { color: var(--accent); font-family: var(--font-title); margin-top: 4px; }
.toast .t-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: none; background: none; color: var(--muted); cursor: pointer; font-size: 18px; border-radius: 50%; }
.toast .t-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.toast .t-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--moon); width: 100%; transform-origin: left; animation: toast-bar linear forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- 우측 바 ---------- */
#sidebar { position: fixed; top: 0; right: 0; bottom: 0; width: var(--sb-w); z-index: 10; background: var(--panel); border-left: 1px solid var(--line); backdrop-filter: blur(14px); display: flex; flex-direction: column; padding-top: var(--sa-top); animation: sb-in 0.22s ease-out; }
#sidebar[hidden] { display: none; }
@keyframes sb-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sb-handle { display: none; }
.sb-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.sb-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 10px 10px; color: var(--muted); cursor: pointer; font-family: var(--font-title); font-size: 15px; }
.sb-tab[aria-selected="true"] { color: var(--moon); border-bottom-color: var(--moon); }
#sb-close { margin-left: auto; }
.sb-body { flex: 1; overflow-y: auto; padding: 14px 14px calc(20px + var(--sa-bottom)); -webkit-overflow-scrolling: touch; }
.sb-body h3 { font-size: 14px; color: var(--muted); margin: 18px 0 8px; font-weight: 400; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card.selected { border: 2px solid var(--moon); box-shadow: 0 0 0 3px var(--moon-dim); }
.card .name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .name { font-family: var(--font-title); font-size: 19px; font-weight: 700; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.stone { color: #c9c0b4; }
.badge.silver { color: #dfe6ef; border-color: rgba(220, 228, 240, 0.5); }
.badge.gold { color: #f2d27a; border-color: rgba(242, 210, 122, 0.5); }
.badge.achieved { color: #b7e2fb; border-color: rgba(183, 226, 251, 0.5); }
.badge.mine { color: var(--moon); border-color: rgba(255, 234, 176, 0.5); }
.wish { font-family: var(--font-title); font-size: 15px; white-space: pre-wrap; word-break: break-word; margin: 10px 0 0; line-height: 1.7; }
/* 긴 글 접기: 한 줄만 보이고 "더보기"로 펼침 */
.clamp-wrap { margin: 0 0 12px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.clamp-wrap.open .clamp { display: block; -webkit-line-clamp: unset; overflow: visible; }
.clamp-more { background: none; border: none; padding: 0; margin-top: 2px; color: var(--accent); font-size: 12px; cursor: pointer; }
.clamp-more::before { content: "… "; color: var(--muted); }
.clamp-wrap.open .clamp-more::before { content: ""; }
.c-body.clamp, .c-body { margin: 3px 0 0; }
.comment .clamp-wrap { margin: 0 0 4px; }
.latest .clamp-wrap { margin: 2px 0 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stat { background: rgba(0, 0, 0, 0.25); border-radius: 10px; padding: 8px 6px; text-align: center; }
.stat .v { font-family: var(--font-title); font-size: 18px; color: var(--moon); }
.stat .k { font-size: 11px; color: var(--muted); }
.stat .sub { font-size: 11px; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.actions .btn { flex: 1; justify-content: center; min-width: 120px; }

.my-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.my-tab { border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--muted); font-size: 13px; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-tab[aria-selected="true"] { color: var(--moon); border-color: var(--moon); background: rgba(255, 234, 176, 0.08); }
.my-tab.locked { opacity: 0.6; cursor: default; }

.goal { margin-top: 12px; }
.goal .g-text { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.goal .g-bar { height: 8px; background: rgba(0, 0, 0, 0.3); border-radius: 999px; overflow: hidden; }
.goal .g-fill { height: 100%; background: linear-gradient(90deg, #d7b65b, var(--moon)); border-radius: 999px; transition: width 0.4s; }
.note { font-size: 13px; color: var(--muted); background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.note.warn { color: #ffd9a3; border: 1px dashed rgba(255, 217, 163, 0.4); }
.note.good { color: var(--green); }
.note.moss { color: var(--accent); }

.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: none; }
.comment .c-head { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--muted); }
.comment .c-author { background: none; border: none; padding: 0; color: var(--moon); cursor: pointer; font-family: var(--font-title); font-size: 13px; font-weight: 700; text-decoration: underline dotted; }
.comment .c-author.gone { color: var(--muted); text-decoration: none; cursor: default; }
.comment .c-body { white-space: pre-wrap; word-break: break-word; margin: 3px 0 4px; }
.comment .c-tools { display: flex; gap: 8px; }
.comment .c-tools button { background: none; border: none; padding: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.comment .c-tools button:hover { color: var(--text); }
.c-form textarea { width: 100%; }
.c-form .c-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.c-form .c-row select { flex: 1; min-width: 0; }
.c-form .count { font-size: 12px; color: var(--muted); margin-left: auto; }
.empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

.latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.latest li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; background: rgba(0, 0, 0, 0.15); }
.latest li:hover { background: rgba(255, 255, 255, 0.06); }
.latest li.selected { border: 2px solid var(--moon); }
.latest .l-head { display: flex; align-items: center; gap: 8px; }
.latest .l-name { font-family: var(--font-title); font-weight: 700; }
.latest .l-wish { font-size: 12px; color: var(--muted); }

/* ---------- 폼 ---------- */
textarea, input[type="text"], input[type="password"], select { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 10px 12px; font-family: var(--font-body); font-size: 15px; resize: vertical; }
textarea { font-family: var(--font-title); line-height: 1.6; }
select { appearance: auto; }
.field { display: block; margin-top: 12px; }
.label-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.label-row small { font-size: 12px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.hint.center { text-align: center; }
.about-faq h3 { font-size: 15px; margin: 16px 0 4px; }
.about-faq p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.form-error { color: var(--danger); font-size: 13px; min-height: 1.2em; margin: 8px 0 0; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(2, 4, 14, 0.65); display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); animation: fade-in 0.18s ease-out; }
.modal[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.modal-card.narrow { width: min(400px, 100%); }
.modal-card.center { text-align: center; }
.modal-card h2 { font-size: 20px; margin-bottom: 6px; padding-right: 30px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; background: none; color: var(--muted); font-size: 22px; cursor: pointer; border-radius: 50%; }
.modal-x:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.modal-actions.center { justify-content: center; }
.seg { display: flex; background: rgba(0, 0, 0, 0.3); border-radius: 999px; padding: 3px; margin-bottom: 8px; margin-right: 36px; }
.seg-btn { flex: 1; border: none; background: none; padding: 8px; border-radius: 999px; color: var(--muted); cursor: pointer; font-family: var(--font-title); }
.seg-btn[aria-selected="true"] { background: rgba(255, 234, 176, 0.15); color: var(--moon); }
.congrats-text { font-family: var(--font-title); font-size: 17px; line-height: 1.9; margin: 8px 0 0; }
.glass-stone { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(200, 235, 255, 0.5)); } 50% { filter: drop-shadow(0 0 22px rgba(200, 235, 255, 0.95)); } }

/* 이끼 닦기 */
.wipe-card { width: min(440px, 100%); }
#wipe-area { position: relative; width: 100%; aspect-ratio: 4 / 3; margin-top: 12px; border-radius: 14px; background: radial-gradient(ellipse at 50% 40%, rgba(60, 70, 120, 0.5), rgba(0, 0, 0, 0.2)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; }
#wipe-area:active { cursor: grabbing; }
#wipe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#wipe-hand { position: absolute; left: 0; top: 0; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); transition: opacity 0.2s; }
.bar { height: 10px; background: rgba(0, 0, 0, 0.35); border-radius: 999px; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); }
#wipe-bar { height: 100%; width: 0; background: linear-gradient(90deg, #8fd3a0, var(--moon)); border-radius: 999px; }

/* ---------- 모바일 ---------- */
@media (max-width: 760px) {
  :root { --sb-w: 100vw; }
  body.sb-open .hud-tr { right: calc(16px + var(--sa-right)); }
  .hud-tl h1 { font-size: 21px; }
  #wish-feed { width: 56vw; gap: 3px; margin-top: 24px; }
  #wish-feed:not(:empty) { padding: 8px 12px 9px; margin-left: -12px;
    background: linear-gradient(180deg, rgba(7, 10, 28, 0.58), rgba(7, 10, 28, 0.4)); }   /* 모바일: PC(0.62/0.42)보다 조금 옅게 */
  .wf-item { font-size: 13px; line-height: 1.35; }
  .wf-item.top { font-size: 15.6px; }
  .btn.ghost span { display: none; }
  #btn-profile { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .hud-br { display: none; }
  #sidebar { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 72vh; height: 72dvh; border-left: none; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding-top: 0; animation: sheet-in 0.25s ease-out; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sb-handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; }
  .sb-tabs { padding-top: 4px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { border-radius: 18px 18px 0 0; max-height: 92vh; max-height: 92dvh; padding-bottom: calc(20px + var(--sa-bottom)); }
  .modal-card.narrow, .wipe-card { width: 100%; }
  .stat .v { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .toast .t-bar { animation: none; display: none; }
}

/* 너를 위해 준비했어 */

#create-seg .seg-btn { font-size: 13px; }
.badge.present { color: #ffc6d8; border-color: rgba(255, 198, 216, 0.5); }
.cred { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(255, 234, 176, 0.4); text-align: left; }
.cred div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cred span { color: var(--muted); font-size: 13px; }
.cred b { color: var(--moon); font-size: 18px; letter-spacing: 1px; word-break: break-all; user-select: all; }
.share-url { width: 100%; margin-top: 8px; font-size: 12px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--muted); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); border-radius: 14px; color: inherit; cursor: pointer; font-size: 12px; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--moon); }
.share-btn .ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; }
.share-btn .ico.kakao { background: #fee500; color: #3a1d1d; font-size: 10px; letter-spacing: -0.5px; }
.share-btn .ico.insta { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.share-btn .ico.copy, .share-btn .ico.more { background: rgba(255, 255, 255, 0.14); font-size: 10px; }
.present-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.present-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.present-list .p-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gift-h { margin: 16px 0 4px; font-size: 14px; }
.gift-history .empty { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.modal-card.narrow.center .gift-history { text-align: left; }
.present-list .p-main { flex: 1; min-width: 0; }
.present-list .p-cred { font-size: 12px; color: var(--muted); margin-top: 3px; }
.present-list .p-cred b { color: var(--moon); font-weight: 600; letter-spacing: 0.3px; }

/* 개인정보 처리방침 · 이용약관 (policy.html) */
body.policy { overflow: auto; height: auto; min-height: 100vh; }
.policy-wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; color: var(--text); font-size: 15px; line-height: 1.7; }
.policy-wrap h1 { font-family: var(--font-title); color: var(--moon); font-size: 24px; margin: 36px 0 6px; }
.policy-wrap h2 { font-size: 16px; color: var(--moon); margin: 22px 0 6px; }
.policy-wrap p, .policy-wrap ul { margin: 6px 0; }
.policy-wrap ul { padding-left: 20px; }
.policy-wrap a { color: var(--accent); }
.policy-meta { font-size: 13px; color: var(--muted); }
.policy-nav, .policy-back { font-size: 13px; color: var(--muted); }
.policy-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.policy-wrap th, .policy-wrap td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.policy-wrap th { color: var(--muted); font-weight: 600; background: rgba(0, 0, 0, 0.2); }
.policy-wrap code { font-size: 12px; background: rgba(0, 0, 0, 0.3); padding: 1px 4px; border-radius: 4px; }
