/* ============================================================
   Pawlit (포우릿) — interface
   ============================================================ */
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-Medium.otf') format('opentype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-Bold.otf') format('opentype'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Pretendard'; src: url('fonts/Pretendard-ExtraBold.otf') format('opentype'); font-weight: 800 900; font-display: swap; }

:root {
  --paper: #FFFBF4;
  --paper-2: #FBF0E0;
  --ink: #4A3A2E;
  --ink-2: #7B6555;
  --ink-3: #A28874;
  --line: rgba(120, 92, 64, 0.16);
  --line-2: rgba(120, 92, 64, 0.30);
  --accent: #E3A87E;
  --accent-deep: #C07C52;
  --gold: #D6AC6C;
  --glass: rgba(255, 250, 242, 0.74);
  --glass-strong: rgba(255, 251, 245, 0.92);
  --shadow: 0 24px 60px -22px rgba(74, 50, 30, 0.5);
  --shadow-soft: 0 10px 30px -14px rgba(74, 50, 30, 0.35);
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 14px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #F3D9C2;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button { font-family: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; color: var(--ink); }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#stage { position: fixed; inset: 0; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#scene:active { cursor: grabbing; }
body.in-sanctuary #scene { cursor: default; }

.scene-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.20; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.scene-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 38%, rgba(255, 240, 220, 0) 45%, rgba(84, 55, 32, 0.28) 100%);
  transition: background 1.2s ease;
}
body.theme-morning .scene-vignette { background: radial-gradient(120% 90% at 50% 38%, rgba(255,255,255,0) 48%, rgba(60,80,90,0.22) 100%); }
body.theme-night .scene-vignette { background: radial-gradient(120% 90% at 50% 38%, rgba(20,20,40,0) 40%, rgba(14,12,30,0.5) 100%); }

/* ─────────── top bar ─────────── */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 26px 34px;
  background: linear-gradient(to bottom, rgba(72, 46, 28, 0.30), rgba(72, 46, 28, 0.06) 55%, transparent);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
body.theme-morning .topbar { background: linear-gradient(to bottom, rgba(40, 70, 88, 0.22), rgba(40,70,88,0.04) 55%, transparent); }
body.theme-night .topbar { background: linear-gradient(to bottom, rgba(10, 10, 24, 0.5), rgba(10,10,24,0.1) 55%, transparent); }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 19px;
  background: var(--glass-strong); box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,0.7);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: #FFF9EF;
  text-shadow: 0 1px 12px rgba(60, 35, 18, 0.45);
}
.brand-text em {
  font-style: normal; font-size: 10.5px; letter-spacing: 0.06em; color: rgba(255, 249, 239, 0.78);
  text-shadow: 0 1px 10px rgba(60, 35, 18, 0.5); margin-top: 2px;
}

.space-nav {
  display: flex; gap: 3px; padding: 4px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-soft);
}
.space-tab {
  padding: 8px 20px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink-2); transition: all .25s ease; white-space: nowrap;
}
.space-tab:hover { color: var(--ink); }
.space-tab.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 10px rgba(80, 55, 30, 0.14); }

.top-actions { display: flex; align-items: center; gap: 8px; }
.seg {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}
.seg button {
  width: 32px; height: 30px; border-radius: 999px; font-size: 14px; display: grid; place-items: center;
  transition: all .22s ease; opacity: 0.62; filter: grayscale(0.35);
}
.seg button:hover { opacity: 1; filter: none; }
.seg button.is-active { background: var(--paper); opacity: 1; filter: none; box-shadow: 0 2px 8px rgba(80, 55, 30, 0.16); }
.seg.lang button { width: 38px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; }

/* ─────────── dog rail ─────────── */
.dog-rail {
  position: absolute; z-index: 25; right: 22px; top: 96px; width: 262px;
  padding: 6px 6px 10px; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(1.15); -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 30px)); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  max-height: min(62vh, 560px); display: flex; flex-direction: column;
}
.dog-rail.is-open { transform: none; opacity: 1; }
.rail-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2);
}
.rail-close { font-size: 12px; color: var(--ink-3); padding: 4px 6px; }
.rail-list { overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 0 2px 2px; }
.rail-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 14px; text-align: left;
  transition: background .2s ease; width: 100%;
}
.rail-item:hover { background: rgba(255, 252, 246, 0.75); }
.rail-item img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: inline 0 0 0 2px #fff; }
.rail-item .ri-name { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.rail-item .ri-meta { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.rail-item .ri-flower { margin-left: auto; font-size: 11px; color: var(--ink-2); white-space: nowrap; }

/* ─────────── niche panel ─────────── */
.niche-panel {
  position: absolute; z-index: 26; right: 22px; top: 96px; width: 300px; max-height: calc(100vh - 150px);
  overflow: auto; padding: 20px; border-radius: var(--r-lg);
  background: var(--glass-strong); border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.niche-panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
.panel-x { position: absolute; top: 12px; right: 12px; font-size: 12px; color: var(--ink-3); z-index: 2; }
.niche-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.niche-photo { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 3px #fff, var(--shadow-soft); }
.niche-photo img { width: 100%; height: 100%; object-fit: cover; }
.niche-id { min-width: 0; flex: 1; }
.niche-name { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.niche-meta { margin: 3px 0 0; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
.niche-nav { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255,255,255,0.6); border: 1px solid var(--line); }
.niche-nav button { width: 22px; height: 22px; border-radius: 50%; font-size: 13px; color: var(--ink-2); line-height: 1; }
.niche-nav button:hover { background: #fff; }
.niche-nav span { font-size: 9px; color: var(--ink-3); min-width: 26px; text-align: center; letter-spacing: 0.04em; }
.photo-pair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.photo-slot {
  position: relative; height: 78px; border-radius: 12px; overflow: hidden; border: 1px dashed var(--line-2);
  background: rgba(255,255,255,0.55); display: grid; place-items: center; transition: border-color .2s ease, background .2s ease;
}
.photo-slot:hover { border-color: var(--accent); background: #fff; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot span {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 999px;
  background: rgba(255,251,243,0.86); font-size: 8px; color: var(--ink-2); letter-spacing: 0.01em; white-space: nowrap;
}
.photo-slot span b { font-weight: 700; }
.photo-slot img:not([src='']) ~ span, .photo-slot img[src] ~ span { background: rgba(255,251,243,0.8); }
.niche-letter { margin-bottom: 12px; }
.niche-letter h3, .deco-block > h3, .niche-notes-wrap h3 { margin: 0 0 6px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.niche-letter p { margin: 0; font-size: 12px; line-height: 1.8; color: var(--ink-2); white-space: pre-line; }
.niche-notes-wrap { margin-bottom: 10px; }
.niche-notes { max-height: 132px; overflow: auto; margin-bottom: 8px; }
.gb-form.compact { margin-top: 0; }
.gb-form.compact input { padding: 9px 12px; font-size: 11.5px; border-radius: 10px; }
.gb-form.compact button { padding: 0 13px; font-size: 10.5px; border-radius: 10px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.offer-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px;
  font-size: 9.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,253,248,0.7);
  transition: all .2s ease;
}
.offer-grid button:hover { background: #fff; border-color: var(--line-2); transform: translateY(-1px); }
.offer-grid button span:first-child { font-size: 18px; line-height: 1; }
.offer-grid button:active { transform: scale(0.97); }
.offer-counts { margin: 8px 0 14px; font-size: 10.5px; color: var(--ink-3); min-height: 14px; }

/* ─────────── decorate the niche ─────────── */
.deco-block { margin-bottom: 12px; }
.deco-sub { margin: -2px 0 10px; font-size: 9.5px; line-height: 1.5; color: var(--ink-3); }
.deco-group { margin-bottom: 9px; }
.deco-label {
  display: flex; align-items: center; gap: 6px; margin-bottom: 5px;
  font-size: 10px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.01em;
}
.deco-label em {
  font-style: normal; font-size: 9px; font-weight: 700; color: var(--accent-deep);
  background: rgba(255,255,255,0.85); border: 1px solid var(--line); padding: 0 6px; border-radius: 999px;
}
.style-row { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.style-chip {
  display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,253,248,0.7); text-align: left;
  font-size: 9px; font-weight: 600; color: var(--ink-2); transition: all .18s ease;
}
.style-chip:hover { background: #fff; transform: translateY(-1px); }
.style-chip.is-active { background: #fff; border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 2px rgba(227,168,126,0.18); }
.style-chip .sw { width: 13px; height: 13px; flex: 0 0 auto; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(120,92,64,0.28); }
.style-chip .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-row { display: flex; gap: 3px; margin-bottom: 6px; }
.chip-row button {
  flex: 1; padding: 5px 2px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.5); font-size: 8.5px; font-weight: 700; color: var(--ink-3);
  letter-spacing: -0.01em; transition: all .18s ease; white-space: nowrap;
}
.chip-row button:hover { background: #fff; color: var(--ink-2); }
.chip-row button.is-active { background: var(--paper); color: var(--ink); border-color: var(--line-2); box-shadow: 0 2px 8px rgba(80,55,30,0.10); }
.decor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.decor-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px 6px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,253,248,0.62); font-size: 8.5px; font-weight: 600; line-height: 1.2;
  color: var(--ink-3); transition: all .18s ease; text-align: center;
}
.decor-item:hover { background: #fff; border-color: var(--line-2); transform: translateY(-1px); }
.decor-item .di-ico { font-size: 16px; line-height: 1; filter: grayscale(0.4); opacity: 0.82; transition: all .18s ease; }
.decor-item .di-lb { letter-spacing: -0.01em; }
.decor-item .di-mark {
  position: absolute; top: 3px; right: 5px; font-style: normal; font-size: 8px; font-weight: 800;
  color: var(--accent-deep); opacity: 0; transition: opacity .18s ease;
}
.decor-item.is-on { background: #FFF8EC; border-color: var(--accent); color: var(--ink); box-shadow: 0 3px 10px rgba(200,150,100,0.16); }
.decor-item.is-on .di-ico { filter: none; opacity: 1; }
.decor-item.is-on .di-mark { opacity: 1; }
.decor-foot { display: flex; gap: 5px; margin-top: 6px; }
.btn-mini {
  flex: 1; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.72); font-size: 9px; font-weight: 700; color: var(--ink-2); transition: all .18s ease;
}
.btn-mini:hover { background: #fff; }
.btn-mini.ghost { color: var(--ink-3); background: rgba(255,255,255,0.4); }

/* ─────────── door prompt ─────────── */
.door-prompt {
  position: absolute; z-index: 24; left: 50%; bottom: 112px; transform: translateX(-50%) translateY(8px);
  display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px;
  border-radius: 999px; background: rgba(255, 249, 238, 0.9); color: var(--ink);
  font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.7); opacity: 0; transition: opacity .3s ease, transform .3s ease;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.door-prompt[hidden] { display: none; }
.door-prompt.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.dp-key {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px;
  background: var(--ink); color: #FFF8ED; font-size: 11px; font-weight: 800;
}

/* ─────────── dock ─────────── */
.dock {
  position: absolute; z-index: 28; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow); transition: opacity .3s ease;
}
.dock-btn {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; transition: all .22s ease;
}
.dock-btn.primary { background: #FFFDF8; box-shadow: 0 4px 16px rgba(90, 60, 30, 0.18); }
.dock-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(90, 60, 30, 0.22); }
.dock-btn.ghost { color: var(--ink-2); }
.dock-btn.ghost:hover { background: rgba(255,255,255,0.5); color: var(--ink); }
.dock-ico { font-size: 13px; color: var(--accent-deep); }
.dock-link {
  padding: 10px 14px; font-size: 11.5px; color: var(--ink-3); border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.dock-link:hover { color: var(--ink-2); background: rgba(255,255,255,0.45); }

/* ─────────── hints ─────────── */
.hintbar {
  position: absolute; z-index: 20; left: 24px; bottom: 30px;
  display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: rgba(255, 250, 240, 0.9);
  text-shadow: 0 1px 10px rgba(50, 30, 15, 0.55); letter-spacing: 0.01em; pointer-events: none;
}
.hintbar kbd {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; margin-right: 2px;
  font-family: inherit; font-size: 9px; font-weight: 700; border-radius: 4px;
  background: rgba(255, 250, 240, 0.22); border: 1px solid rgba(255,255,255,0.3);
}
.hintbar .dot { opacity: 0.5; }
body.in-sanctuary .hintbar { display: none; }

/* ─────────── touch dpad ─────────── */
.dpad { position: absolute; z-index: 24; left: 18px; bottom: 74px; width: 132px; height: 132px; display: none; }
.dpad button {
  position: absolute; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 250, 242, 0.55); border: 1px solid rgba(255,255,255,0.55); color: var(--ink);
  font-size: 11px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(60, 40, 20, 0.18); touch-action: none; user-select: none;
}
.dpad button:active { background: rgba(255,255,255,0.85); transform: scale(0.95); }
.dp-up { left: 45px; top: 0; } .dp-down { left: 45px; bottom: 0; }
.dp-left { left: 0; top: 45px; } .dp-right { right: 0; top: 45px; }
.dp-center { position: absolute; left: 57px; top: 57px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,250,242,0.35); border: 1px solid rgba(255,255,255,0.4); }
body.show-touch .dpad { display: block; }

/* ─────────── fade / toast ─────────── */
.fade {
  position: absolute; inset: 0; z-index: 40; pointer-events: none; opacity: 0;
  background: #FFF6E8; transition: opacity .55s ease;
}
.fade.is-on { opacity: 1; }
.toast-wrap {
  position: absolute; z-index: 60; left: 50%; bottom: 96px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100% - 40px);
}
.toast {
  padding: 10px 18px; border-radius: 999px; background: rgba(255, 251, 243, 0.95); color: var(--ink);
  font-size: 12px; font-weight: 600; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.7);
  animation: toastIn .4s cubic-bezier(.2,.8,.2,1) both;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.toast.out { animation: toastOut .4s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* ─────────── intro ─────────── */
.intro {
  position: absolute; inset: 0; z-index: 70; display: grid; place-items: center;
  transition: opacity 1s ease, visibility 1s;
  overflow: hidden;
}
body:not(.is-intro) .intro { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-bg {
  position: absolute; inset: -4%;
  background: url('assets/intro-sunset.jpg') center 42% / cover no-repeat;
  transform: scale(1.06); animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.03) translateY(0); } to { transform: scale(1.12) translateY(-1.5%); } }
.intro-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(255, 238, 214, 0.28), rgba(255, 232, 205, 0.1) 60%, rgba(90, 55, 30, 0.42) 100%),
    linear-gradient(to bottom, rgba(60, 40, 25, 0.18), transparent 30%, rgba(60, 40, 25, 0.34));
}
.intro-card {
  position: relative; z-index: 2; text-align: center; padding: 0 26px; max-width: 660px;
  color: #FFFBF2;
}
/* the intro ships both languages in the markup so the first paint is already
   in the visitor's language; the app's i18n pass replaces it once it boots */
html[lang="ko"] #intro [lang="en"], html[lang="en"] #intro [lang="ko"] { display: none; }
.intro-card .kicker {
  margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255, 248, 236, 0.85); text-shadow: 0 2px 16px rgba(50, 30, 15, 0.6);
}
.intro-card h1 {
  margin: 0; font-size: clamp(44px, 8vw, 82px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02;
  text-shadow: 0 4px 40px rgba(55, 30, 12, 0.45);
}
.intro-card .lead {
  margin: 22px auto 30px; max-width: 470px; font-size: 14.5px; line-height: 1.85; font-weight: 500;
  color: rgba(255, 250, 240, 0.92); text-shadow: 0 2px 18px rgba(50, 30, 15, 0.6); white-space: pre-line;
}
.btn-enter {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px 15px 30px; border-radius: 999px;
  background: rgba(255, 251, 243, 0.94); color: var(--ink); font-size: 13.5px; font-weight: 700;
  box-shadow: 0 18px 50px -12px rgba(50, 25, 10, 0.55); transition: all .3s cubic-bezier(.2,.8,.2,1);
  letter-spacing: -0.01em;
}
.btn-enter:hover { transform: translateY(-2px); background: #FFFDF8; box-shadow: 0 22px 56px -10px rgba(50, 25, 10, 0.6); }
.btn-enter-ico {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: #FFF9EE; font-size: 12px;
}
.intro-note { margin: 18px 0 0; font-size: 10.5px; letter-spacing: 0.06em; color: rgba(255, 248, 236, 0.7); }

/* ─────────── modals ─────────── */
.modal {
  position: absolute; inset: 0; z-index: 50; display: grid;
  /* the column never grows to the sheet's max-content — a wide line of text
     must not push the sheet off the left edge of a phone */
  grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px;
  background: rgba(58, 38, 22, 0.32); backdrop-filter: blur(14px) saturate(0.95); -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease; overflow: auto;
}
.modal.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: relative; width: min(1000px, 100%); background: var(--paper); border-radius: var(--r-xl);
  box-shadow: 0 40px 120px -30px rgba(50, 28, 12, 0.6); padding: 34px 36px 30px;
  transform: translateY(16px) scale(0.99); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  max-height: calc(100vh - 48px); overflow: auto;
  border: 1px solid rgba(255,255,255,0.8);
}
.modal.open .sheet { transform: none; }
.sheet-x {
  position: absolute; top: 18px; right: 20px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: var(--ink-3); background: rgba(255,255,255,0.6);
  z-index: 3;
}
.sheet-x:hover { background: #fff; color: var(--ink); }

/* memorial */
.mem-grid { display: grid; grid-template-columns: 330px 1fr; gap: 34px; }
.mem-left { display: flex; flex-direction: column; }
.polaroid {
  margin: 0; background: #FFFDF9; padding: 12px 12px 14px; border-radius: 4px;
  box-shadow: 0 18px 40px -18px rgba(60, 40, 20, 0.45), 0 2px 0 rgba(255,255,255,0.8) inset;
  transform: rotate(-1.4deg); transition: transform .4s ease;
}
.polaroid:hover { transform: rotate(0deg); }
.polaroid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; background: var(--paper-2); }
.polaroid figcaption { display: flex; align-items: baseline; gap: 8px; padding: 12px 4px 2px; }
.polaroid figcaption strong { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.polaroid figcaption small { font-size: 11px; color: var(--ink-3); }
.mem-meta { margin: 14px 2px 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.mem-meta b { color: var(--ink-2); font-weight: 600; }
.mem-stats { display: flex; gap: 4px; margin: 16px 0 16px; }
.mem-stats > div { flex: 1; text-align: center; padding: 10px 4px; border-radius: 14px; background: rgba(255,255,255,0.6); border: 1px solid var(--line); }
.mem-stats b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-deep); }
.mem-stats span { font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.mem-offers { display: flex; gap: 6px; }
.mem-offers button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px;
  font-size: 9.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,0.55); transition: all .2s ease;
}
.mem-offers button span:first-child { font-size: 19px; }
.mem-offers button:hover { background: #fff; transform: translateY(-1px); border-color: var(--line-2); }
.mem-right { min-width: 0; display: flex; flex-direction: column; }
.letter-card {
  padding: 20px 22px; border-radius: 18px; background: linear-gradient(160deg, #FFFDF7, #FBF0DF);
  border: 1px solid var(--line); position: relative; margin-bottom: 18px;
}
.letter-card h3, .gb h3 {
  margin: 0 0 8px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.letter-card p {
  margin: 0; font-size: 14px; line-height: 1.95; color: var(--ink); white-space: pre-line;
  font-family: var(--serif); letter-spacing: 0.005em;
}
html[lang="ko"] .letter-card p { font-family: var(--font); font-weight: 500; font-size: 13.5px; line-height: 2.05; }
.gb { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.gb h3 { display: flex; align-items: baseline; gap: 8px; }
.gb h3 em { font-style: normal; font-size: 10px; color: var(--accent-deep); letter-spacing: 0; }
.gb-list { overflow: auto; max-height: 210px; padding-right: 6px; display: flex; flex-direction: column; gap: 2px; }
.gb-item { padding: 9px 2px; border-bottom: 1px dotted var(--line); }
.gb-item .gb-who { font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.gb-item .gb-who.mine { color: var(--accent-deep); }
.gb-item p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); white-space: pre-line; }
.gb-empty { font-size: 12px; color: var(--ink-3); padding: 14px 2px; }
.gb-form { display: flex; gap: 8px; margin-top: 12px; }
.gb-form input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.7); outline: none; font-size: 12.5px; transition: border .2s ease, background .2s ease;
}
.gb-form input:focus { border-color: var(--accent); background: #fff; }
.gb-form button {
  padding: 0 18px; border-radius: 12px; background: var(--ink); color: #FFF9EF; font-size: 11.5px; font-weight: 700;
  transition: opacity .2s ease;
}
.gb-form button:hover { opacity: 0.88; }
.mem-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.btn-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(255,255,255,0.75); border: 1px solid var(--line-2); color: var(--ink);
  transition: all .22s ease;
}
.btn-soft:hover { background: #fff; transform: translateY(-1px); }
.btn-soft.wide { width: 100%; margin-top: 4px; }
.btn-quiet { padding: 10px 14px; font-size: 11.5px; color: var(--ink-3); border-radius: 999px; transition: color .2s ease, background .2s ease; }
.btn-quiet:hover { color: var(--ink-2); background: rgba(255,255,255,0.55); }
.btn-primary {
  padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #FFF9EF; font-size: 12px; font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(60, 40, 20, 0.7); transition: transform .2s ease, opacity .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.92; }

/* ─────────── instagram story photo ticket (9:16) ─────────── */
.btn-ticket {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px;
  padding: 11px 16px 12px; border-radius: 16px; text-align: left;
  background: linear-gradient(135deg, #FFF7EA, #F8E2C9);
  border: 1px solid rgba(200, 150, 105, 0.38);
  box-shadow: 0 10px 26px -18px rgba(120, 70, 30, 0.6);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-ticket:hover { transform: translateY(-1px); background: linear-gradient(135deg, #FFFBF3, #F9E7D1); box-shadow: 0 14px 30px -18px rgba(120, 70, 30, 0.65); }
.bt-ico {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; font-size: 16px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px rgba(200, 150, 105, 0.35);
}
.bt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bt-body b { font-size: 11.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.bt-body small { font-size: 9.5px; color: var(--ink-3); }
.bt-go { flex: none; font-size: 12px; color: var(--accent-deep); opacity: 0.75; }

.sheet.ticket-sheet {
  max-width: 520px; padding: 28px 26px 22px;
  background: linear-gradient(168deg, #FFFDF7, #FBF0DE 70%, #F7E7CF);
}
.ticket-head { text-align: center; margin-bottom: 14px; }
.ticket-eyebrow {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px; border-radius: 50%;
  font-size: 15px; background: radial-gradient(circle at 35% 30%, #FFF7E6, #F0D9B6);
  box-shadow: inset 0 0 0 1px rgba(190, 150, 100, 0.35);
}
.ticket-head h2 { margin: 0 0 5px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.ticket-head p { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.ticket-stage {
  position: relative; width: fit-content; max-width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; border-radius: 22px; background: rgba(120, 92, 64, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}
#ticketCanvas {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 58vh;
  border-radius: 16px; background: #FFF9F0;
  box-shadow: 0 20px 44px -24px rgba(90, 60, 30, 0.65);
}
.ticket-loading {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0;
  font-size: 11.5px; color: var(--ink-3); pointer-events: none;
}
.ticket-privacy { margin: 10px 2px 0; font-size: 9.5px; color: var(--ink-3); text-align: center; }
.ticket-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
@media (max-width: 780px) {
  .sheet.ticket-sheet { max-width: 100%; padding: 22px 14px 18px; }
  #ticketCanvas { max-height: 46vh; }
  .ticket-head h2 { font-size: 18px; }
  .ticket-head p { font-size: 10.5px; }
  .ticket-stage { padding: 9px; }
  .bt-body b { font-size: 11px; }
}

/* ─────────── 함께 기억할게요 · the candle relay ─────────── */
.mem-relay {
  margin-top: 14px; padding: 13px 15px 12px; border-radius: 16px;
  background: linear-gradient(150deg, #FFF8EC, #FAEBD8);
  border: 1px solid rgba(200, 155, 110, 0.30);
}
.mr-head { display: flex; align-items: center; gap: 7px; }
.mr-ico { font-size: 13px; }
.mr-head b { font-size: 11px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.mr-pet { margin-left: auto; font-size: 10px; color: var(--ink-3); }
.mr-bar { height: 6px; margin: 10px 0 6px; border-radius: 99px; background: rgba(160, 120, 80, 0.16); overflow: hidden; box-shadow: inset 0 1px 1px rgba(120, 86, 52, 0.10); }
.mr-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #E9BE8F, #C98757); transition: width .5s ease; }
.mr-shared { margin: 0; font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.01em; }
.mr-donate { margin: 3px 0 0; font-size: 9px; line-height: 1.55; color: rgba(162, 136, 116, 0.9); }
.mr-acts { display: flex; gap: 6px; margin-top: 9px; }
.mr-candle, .mr-invite {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.mr-candle { background: linear-gradient(140deg, #FFF3DE, #F7DDBE); color: #8A5A34; box-shadow: inset 0 0 0 1px rgba(196, 144, 96, 0.42); }
.mr-candle:hover { transform: translateY(-1px); background: linear-gradient(140deg, #FFF9EE, #F9E5CB); }
.mr-candle.is-lit { background: rgba(255, 255, 255, 0.7); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.mr-invite { background: rgba(255, 255, 255, 0.7); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.mr-invite:hover { transform: translateY(-1px); background: #fff; color: var(--ink); }

.sheet.relay-sheet {
  max-width: 430px; padding: 30px 30px 22px; text-align: center;
  background: linear-gradient(168deg, #FFFDF6, #FBF0DD 72%, #F7E6CE);
}
.relay-portrait {
  width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 10px 24px -12px rgba(90, 60, 30, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}
.relay-portrait img { width: 100%; height: 100%; object-fit: cover; }
.relay-kicker { margin: 0 0 3px; font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.sheet.relay-sheet h2 { margin: 0 0 5px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.relay-sub { margin: 0; font-size: 11.5px; line-height: 1.65; color: var(--ink-3); }
.relay-lamp { position: relative; width: 92px; height: 112px; margin: 12px auto 4px; }
.rl-glow {
  position: absolute; left: 50%; top: 10px; width: 92px; height: 92px; margin-left: -46px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 150, 0.72), rgba(255, 214, 150, 0) 70%);
  animation: rlGlow 3.4s ease-in-out infinite;
}
.rl-flame {
  position: absolute; left: 50%; top: 14px; width: 14px; height: 24px; margin-left: -7px;
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: linear-gradient(180deg, #FFF6D6, #FFC46B 55%, #EE9A4C);
  box-shadow: 0 0 16px rgba(255, 190, 110, 0.85);
  animation: rlFlame 2.6s ease-in-out infinite;
}
.rl-wick { position: absolute; left: 50%; top: 36px; width: 2px; height: 8px; margin-left: -1px; background: #8A6A4A; border-radius: 2px; }
.rl-wax {
  position: absolute; left: 50%; top: 43px; width: 34px; height: 52px; margin-left: -17px; border-radius: 8px 8px 6px 6px;
  background: linear-gradient(100deg, #FFF6E4, #F3DFC4 55%, #E7CFAC);
  box-shadow: inset 0 0 0 1px rgba(200, 160, 115, 0.35), 0 8px 16px -10px rgba(120, 80, 40, 0.7);
}
.rl-plate { position: absolute; left: 50%; bottom: 4px; width: 64px; height: 9px; margin-left: -32px; border-radius: 50%; background: rgba(176, 134, 92, 0.35); filter: blur(2px); }
@keyframes rlFlame { 0%, 100% { transform: scale(1) rotate(-1deg); opacity: 0.95; } 50% { transform: scale(1.12, 0.94) rotate(1.5deg); opacity: 1; } }
@keyframes rlGlow { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.relay-field { display: flex; flex-direction: column; gap: 6px; text-align: left; margin-top: 6px; }
.relay-field > span { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.relay-field input {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75); outline: none; font-size: 12.5px;
}
.relay-field input:focus { border-color: var(--accent); background: #fff; }
.relay-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
#btnRelayLight { font-size: 12px; }
#btnRelayLight[disabled] { opacity: 0.45; box-shadow: none; cursor: default; }
.relay-today { margin: 11px 0 0; font-size: 10.5px; color: var(--accent-deep); }
.relay-foot { margin: 9px 0 0; font-size: 9.5px; color: var(--ink-3); line-height: 1.6; }

/* ─────────── the invitation card ─────────── */
.sheet.invite-sheet {
  max-width: 470px; padding: 28px 28px 22px;
  background: linear-gradient(168deg, #FFFDF6, #FBF0DE 72%, #F7E7CF);
}
.invite-head { text-align: center; margin-bottom: 16px; }
.invite-eyebrow {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 50%; font-size: 16px;
  background: radial-gradient(circle at 35% 30%, #FFF7E6, #F0D9B6); box-shadow: inset 0 0 0 1px rgba(190, 150, 100, 0.35);
}
.invite-head h2 { margin: 0 0 5px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.invite-head p { margin: 0; font-size: 11px; line-height: 1.65; color: var(--ink-3); }
.invite-f { display: flex; flex-direction: column; gap: 6px; }
.invite-f > span { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.invite-row { display: flex; gap: 6px; }
.invite-row input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8); font-size: 11px; color: var(--ink-2); outline: none;
}
.invite-row button {
  flex: none; padding: 0 14px; border-radius: 11px; font-size: 10.5px; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .18s ease;
}
.invite-row button:hover { background: #fff; }
.invite-label { margin: 16px 2px 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.invite-bubble {
  padding: 15px 17px; border-radius: 16px 16px 16px 5px; font-size: 12px; line-height: 1.8; color: var(--ink);
  background: #FFFDF8; border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word;
  box-shadow: 0 12px 30px -22px rgba(90, 60, 30, 0.7);
}
.invite-acts { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ─────────── a quiet thank-you ─────────── */
.sheet.thanks-sheet {
  max-width: 440px; padding: 40px 34px 28px; text-align: center;
  background: linear-gradient(168deg, #FFFDF7, #FBF0DC 70%, #F6E5CC);
}
.thanks-env { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF7E6, #F0D9B6); box-shadow: 0 12px 26px -14px rgba(120, 80, 40, 0.7), inset 0 0 0 1px rgba(190, 150, 100, 0.35); }
.thanks-kicker { margin: 0 0 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.sheet.thanks-sheet h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.4; }
.thanks-body { margin: 0; font-family: var(--serif); font-size: 14px; line-height: 2; color: var(--ink); }
html[lang="ko"] .thanks-body { font-family: var(--font); font-weight: 500; font-size: 13px; line-height: 2.05; }
.thanks-gift {
  margin: 18px 0 0; padding: 13px 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 3px;
  background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(200, 155, 110, 0.35);
}
.thanks-gift b { font-size: 12px; font-weight: 800; color: var(--accent-deep); letter-spacing: -0.01em; }
.thanks-gift span { font-size: 10px; color: var(--ink-3); }
.thanks-acts { display: flex; justify-content: center; margin-top: 18px; }
.thanks-note { margin: 12px 0 0; font-size: 9.5px; color: var(--ink-3); }

@media (max-width: 780px) {
  .sheet.relay-sheet, .sheet.invite-sheet, .sheet.thanks-sheet { max-width: 100%; padding: 24px 18px 20px; }
  .mr-act b, .bt-body b { font-size: 10.5px; }
  .relay-actions { flex-direction: column-reverse; }
  .relay-actions .btn-primary { width: 100%; }
  .invite-acts { flex-direction: column; }
  .invite-acts > * { width: 100%; }
}

/* register */
.reg-head h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.reg-head p { margin: 0 0 22px; font-size: 12.5px; color: var(--ink-3); }
.reg-grid { display: grid; grid-template-columns: 340px 1fr; gap: 30px; }
.reg-left { display: flex; flex-direction: column; gap: 12px; }
.upload {
  position: relative; display: grid; place-items: center; height: 168px; border-radius: 18px; cursor: pointer;
  border: 1.5px dashed var(--line-2); background: rgba(255,255,255,0.5); overflow: hidden; transition: border-color .2s ease, background .2s ease;
}
.upload:hover { border-color: var(--accent); background: rgba(255,255,255,0.8); }
.upload img { width: 100%; height: 100%; object-fit: cover; }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 20px; text-align: center; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
.up-ico { font-size: 22px; }
.stage3d { position: relative; height: 236px; border-radius: 18px; overflow: hidden; background: linear-gradient(170deg, #FCEBD6, #F6DCC2 55%, #EFCFB0); }
.stage3d canvas { width: 100%; height: 100%; display: block; }
.stage3d-label { position: absolute; left: 12px; bottom: 10px; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(90, 62, 40, 0.55); }
.reg-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.field input[type=text], .field input[type=date], .field textarea {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.7);
  outline: none; font-size: 13px; transition: border .2s ease, background .2s ease; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; line-height: 1.7; min-height: 74px; }
.field-row { display: grid; grid-template-columns: 160px 1fr; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips button {
  padding: 7px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); background: rgba(255,255,255,0.6); transition: all .2s ease;
}
.chips button:hover { border-color: var(--line-2); }
.chips button.is-active { background: var(--ink); color: #FFF9EE; border-color: var(--ink); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.swatches button:hover { transform: scale(1.08); }
.swatches button.is-active { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.08); }
.reg-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 6px; }

/* pass */
.pass-head { text-align: center; margin-bottom: 26px; }
.pass-eyebrow { font-size: 22px; }
.pass-head h2 { margin: 8px 0 8px; font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.pass-head p { margin: 0 auto; max-width: 470px; font-size: 12.5px; line-height: 1.75; color: var(--ink-3); }
.pass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.tier {
  position: relative; padding: 22px 20px 20px; border-radius: 20px; border: 1px solid var(--line);
  background: rgba(255,255,252,0.6); display: flex; flex-direction: column;
}
.tier.keepsake { background: linear-gradient(165deg, #FFF8EC, #FBEBDA); border-color: rgba(200,150,105,0.45); box-shadow: 0 20px 50px -28px rgba(120, 70, 30, 0.5); }
.tier-tag {
  align-self: flex-end; margin: -6px 0 4px; max-width: 100%; text-align: right;
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.35;
  padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,0.85); color: var(--accent-deep);
}
.tier h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.tier .price { margin: 0 0 14px; display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.tier .price b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.tier .price small, .tier .price span { font-size: 10.5px; color: var(--ink-3); }
.tier ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.tier li { position: relative; padding-left: 16px; font-size: 11.5px; line-height: 1.6; color: var(--ink-2); }
.tier li::before { content: '·'; position: absolute; left: 4px; top: -1px; color: var(--accent); font-weight: 800; }
.tier-btn {
  width: 100%; padding: 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255,255,255,0.6); transition: all .2s ease;
}
.tier-btn.primary { background: var(--ink); color: #FFF9EF; border-color: var(--ink); }
.tier-btn:hover { transform: translateY(-1px); }
.tier-btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.pass-note { margin: 20px 0 0; text-align: center; font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.01em; }
.pass-links { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }

/* ─────────── responsive ─────────── */
@media (max-width: 960px) {
  .mem-grid { grid-template-columns: 280px 1fr; gap: 24px; }
  .reg-grid { grid-template-columns: 300px 1fr; gap: 22px; }
}

@media (max-width: 780px) {
  .topbar { padding: 12px 14px 26px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; font-size: 16px; }
  .brand-text strong { font-size: 14px; }
  .brand-text em { display: none; }
  .space-nav { order: 3; position: fixed; left: 50%; transform: translateX(-50%); top: 62px; bottom: auto; z-index: 27; }
  .space-tab { padding: 6px 13px; font-size: 10.5px; }
  .seg button { width: 28px; height: 27px; font-size: 12px; }
  .seg.lang button { width: 32px; font-size: 9.5px; }

  .dog-rail { right: 12px; left: 12px; width: auto; top: auto; bottom: 130px; max-height: 48vh; }
  .niche-panel { right: 10px; left: 10px; width: auto; top: auto; bottom: 10px; max-height: 58vh; border-radius: 22px; }
  .niche-panel.is-open ~ .dock { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(12px); }
  .niche-panel.is-open ~ .dpad { opacity: 0; pointer-events: none; }
  .dpad { transition: opacity .25s ease; }
  .dock { bottom: 16px; gap: 2px; padding: 5px; transition: opacity .3s ease, transform .3s ease; }
  .dock-btn { padding: 10px 13px; font-size: 11px; }
  .dock-btn.ghost { display: inline-flex; padding: 10px 10px; font-size: 10.5px; }
  .dock-btn.ghost .dock-ico { display: none; }
  .dock-link { padding: 9px 8px; font-size: 10px; white-space: nowrap; flex: 0 0 auto; }
  .dock-btn, .dock-btn.ghost { white-space: nowrap; flex: 0 0 auto; }
  .hintbar { display: none; }
  .dpad { display: block; bottom: 96px; width: 118px; height: 118px; }
  .dpad button { width: 38px; height: 38px; font-size: 10px; }
  .dp-up { left: 40px; top: 0; } .dp-down { left: 40px; bottom: 0; }
  .dp-left { left: 0; top: 40px; } .dp-right { right: 0; top: 40px; }
  .dp-center { left: 50px; top: 50px; width: 16px; height: 16px; }
  .door-prompt { bottom: 170px; font-size: 11px; }

  .modal { padding: 0; align-items: flex-end; }
  .sheet { width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; padding: 24px 18px 26px; }
  .sheet-x { top: 14px; right: 14px; }
  .mem-grid { grid-template-columns: 1fr; gap: 18px; }
  .mem-left { flex-direction: row; gap: 14px; align-items: flex-start; }
  .polaroid { width: 118px; flex: none; padding: 7px 7px 9px; }
  .polaroid figcaption { padding: 7px 2px 0; flex-direction: column; gap: 0; }
  .polaroid figcaption strong { font-size: 13px; }
  .polaroid figcaption small { font-size: 9px; }
  .mem-meta { margin: 0; font-size: 10px; }
  .mem-stats { margin: 10px 0 0; gap: 4px; }
  .mem-stats b { font-size: 16px; }
  .mem-stats span { font-size: 8.5px; }
  .mem-offers { width: 100%; margin-top: 10px; }
  .mem-offers button { font-size: 8.5px; padding: 8px 2px; }
  .mem-left { flex-wrap: wrap; }
  .gb-list { max-height: 150px; }
  .letter-card p { font-size: 12.5px; }
  .mem-foot { flex-wrap: wrap; }

  .reg-grid { grid-template-columns: 1fr; gap: 16px; }
  .reg-left { flex-direction: row; gap: 10px; }
  .upload { flex: 1; height: 116px; }
  .stage3d { flex: 1; height: 116px; }
  .stage3d-label { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 12px; }
  .reg-head h2 { font-size: 21px; }
  .pass-grid { grid-template-columns: 1fr; }
  .pass-head h2 { font-size: 21px; }
  .tier { padding: 18px; }
  .intro-card h1 { font-size: 46px; }
  .intro-card .lead { font-size: 12.5px; }
}

@media (max-height: 620px) {
  .dock { bottom: 10px; transform: translateX(-50%) scale(0.92); }
  .hintbar { display: none; }
}

/* ─────────── a letter from them ─────────── */
.sheet.reply {
  max-width: 620px; background: linear-gradient(168deg, #FFFDF6, #FBF0DD 70%, #F7E7CF);
  padding: 38px 40px 30px;
}
.reply-inner { text-align: center; }
.reply-seal {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  margin: 0 auto 12px; background: radial-gradient(circle at 35% 30%, #FFF7E6, #F0D9B6);
  box-shadow: 0 8px 22px -10px rgba(120, 80, 40, 0.6), inset 0 0 0 1px rgba(190, 150, 100, 0.35);
}
.reply-kicker {
  margin: 0 0 4px; font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
}
.reply-paper {
  background: #FFFDF8; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 26px 22px; margin: 16px 0 20px; text-align: left;
  box-shadow: inset 0 0 44px rgba(210, 175, 130, 0.14), 0 14px 34px -24px rgba(90, 60, 30, 0.5);
}
.reply-paper p {
  margin: 0; font-family: var(--serif); font-size: 15px; line-height: 2.05; color: #4A3A2E;
  white-space: pre-line;
}
html[lang="ko"] .reply-paper p { font-family: var(--font); font-weight: 500; font-size: 13.5px; line-height: 2.15; letter-spacing: -0.005em; }
.reply-sign { margin-top: 18px !important; text-align: right; font-size: 11.5px !important; color: var(--ink-3) !important; }
.reply-actions { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
@media (max-width: 780px) {
  .sheet.reply { padding: 26px 18px 22px; }
  .reply-paper { padding: 20px 18px 16px; }
  .reply-paper p { font-size: 12.5px; line-height: 2; }
}

/* ============================================================
   v2 — three meadows, pawprints, family wall, rest corner, album
   ============================================================ */

/* ─────────── utility strip under the top bar ─────────── */
.zone-bar {
  position: absolute; z-index: 27; top: 84px; left: 24px; right: 24px;
  display: flex; align-items: center; gap: 6px; pointer-events: none;
  overflow-x: auto; overflow-y: visible; scrollbar-width: none;
}
.zone-bar::-webkit-scrollbar { display: none; }
.zone-bar > * { pointer-events: auto; }
.zb-sep { width: 1px; height: 18px; background: rgba(255, 250, 240, 0.35); margin: 0 4px; }
.zb-label {
  font-size: 9.5px; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255, 250, 240, 0.8); text-shadow: 0 1px 10px rgba(50, 30, 15, 0.6);
  margin-right: 2px; white-space: nowrap;
}
.zone-chip {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: 999px;
  background: rgba(255, 250, 242, 0.62); border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 6px 18px -10px rgba(60, 38, 20, 0.4);
  font-size: 10.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  transition: all .24s ease;
}
.zone-chip:hover { background: rgba(255, 253, 248, 0.9); color: var(--ink); transform: translateY(-1px); }
.zone-chip .zc-ico { font-size: 13px; }
.zone-chip.is-here {
  background: #FFFDF8; color: var(--ink); border-color: rgba(255,255,255,0.9);
  box-shadow: 0 8px 22px -12px rgba(60, 38, 20, 0.55), 0 0 0 2px rgba(227,168,126,0.28);
}
.zone-chip.is-here .zc-ico { filter: none; }
body.theme-night .zone-chip { background: rgba(40, 44, 74, 0.55); color: rgba(255, 248, 236, 0.82); border-color: rgba(255,255,255,0.16); }
body.theme-night .zone-chip.is-here { background: rgba(60, 62, 96, 0.85); color: #FFF8EC; }
body.in-sanctuary .zone-bar { opacity: 0.72; }

/* ─────────── the pawprint chip ─────────── */
.paw-chip {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 7px 12px 9px 10px; border-radius: 999px;
  background: rgba(255, 250, 242, 0.78); border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 18px -10px rgba(60, 38, 20, 0.4);
  font-size: 10.5px; color: var(--ink-2); transition: all .22s ease;
}
.paw-chip:hover { background: #FFFDF8; transform: translateY(-1px); }
.paw-chip .pc-ico { font-size: 12px; }
.paw-chip b { font-size: 12px; font-weight: 800; color: var(--accent-deep); letter-spacing: -0.01em; }
.paw-chip .pc-goal { font-size: 9px; color: var(--ink-3); }
.pc-bar {
  position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2.5px; border-radius: 2px;
  background: rgba(120, 92, 64, 0.16); overflow: hidden;
}
.pc-bar > i { display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, #E9B48A, #D08A5A); transition: width .6s ease; }
body.theme-night .paw-chip { background: rgba(40, 44, 74, 0.6); color: rgba(255,248,236,0.85); border-color: rgba(255,255,255,0.16); }
body.theme-night .pc-bar { background: rgba(255,255,255,0.18); }

.icon-btn {
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-size: 13px;
  background: rgba(255, 250, 242, 0.7); border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 6px 18px -12px rgba(60, 38, 20, 0.5); transition: all .2s ease;
}
.icon-btn:hover { background: #FFFDF8; transform: translateY(-1px); }
.icon-btn.is-on { background: #FFF6DF; box-shadow: 0 0 0 2px rgba(227,168,126,0.3), 0 6px 18px -12px rgba(60,38,20,0.5); }
body.theme-night .icon-btn { background: rgba(40, 44, 74, 0.6); border-color: rgba(255,255,255,0.16); }

/* ─────────── outfits on the memorial ─────────── */
.mem-outfits { margin-top: 12px; }
.outfit-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.outfit-chip {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.55);
  font-size: 8px; font-weight: 600; color: var(--ink-3); line-height: 1.25; text-align: center;
  transition: all .2s ease;
}
.outfit-chip .oc-ico { font-size: 15px; filter: grayscale(0.5); opacity: 0.85; }
.outfit-chip:hover { background: #fff; border-color: var(--line-2); transform: translateY(-1px); }
.outfit-chip.is-active { background: #FFF7E9; border-color: var(--accent); color: var(--ink); box-shadow: 0 3px 10px rgba(200,150,100,0.18); }
.outfit-chip.is-active .oc-ico { filter: none; opacity: 1; }

/* ─────────── memorial tabs & family wall ─────────── */
.mem-tabs {
  display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.55); border: 1px solid var(--line); align-self: flex-start;
}
.mem-tab {
  padding: 6px 13px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--ink-3);
  transition: all .2s ease;
}
.mem-tab:hover { color: var(--ink-2); }
.mem-tab.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgba(80,55,30,0.12); }
.wall-pane { display: flex; flex-direction: column; min-height: 0; }
.wall-head { display: flex; align-items: baseline; gap: 8px; font-size: 10px; color: var(--ink-3); margin-bottom: 6px; }
.wall-head em { font-style: normal; font-size: 9.5px; color: var(--accent-deep); font-weight: 700; }
.wall-item { padding: 9px 2px 9px; border-bottom: 1px dotted var(--line); }
.wall-who { display: flex; align-items: baseline; gap: 8px; }
.wall-who b { font-size: 10px; font-weight: 800; letter-spacing: 0.02em; color: var(--accent-deep); }
.wall-who span { font-size: 9px; color: var(--ink-3); }
.wall-item p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; }
.wall-replies { margin: 7px 0 0 10px; padding-left: 10px; border-left: 2px solid rgba(227,168,126,0.35); display: flex; flex-direction: column; gap: 4px; }
.wall-reply { display: flex; gap: 6px; font-size: 11px; line-height: 1.6; color: var(--ink-2); }
.wall-reply b { flex: none; font-weight: 800; color: var(--ink-3); font-size: 10px; }
.wall-acts { display: flex; gap: 6px; margin-top: 6px; }
.wall-reply-btn {
  font-size: 9.5px; font-weight: 700; color: var(--ink-3); padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.5);
}
.wall-reply-btn:hover { color: var(--accent-deep); background: #fff; }
.nick-input { flex: 0 0 74px !important; }
.wall-reply-hint {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px;
  padding: 6px 10px; border-radius: 10px; background: rgba(227,168,126,0.13);
  font-size: 10px; color: var(--accent-deep); font-weight: 700;
}
.wall-reply-hint button { color: var(--ink-3); font-size: 10px; }
.urn-note { margin: 6px 0 0; font-size: 9px; line-height: 1.5; color: var(--ink-3); font-style: italic; }
.hint-line { margin: 2px 0 0; font-size: 9.5px; line-height: 1.5; color: var(--ink-3); }
.species-chips button { display: inline-flex; align-items: center; gap: 5px; }
.sp-emoji { font-size: 13px; }

/* ─────────── pawprints modal ─────────── */
.sheet.paws { max-width: 780px; padding-top: 30px; }
.paws-head { text-align: center; margin-bottom: 12px; }
.paws-eyebrow { font-size: 24px; }
.paws-head h2 { margin: 6px 0 6px; font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
.paws-head p { margin: 0 auto; max-width: 460px; font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.paws-top { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-radius: 18px;
  background: linear-gradient(150deg, #FFF9EE, #FBEFDD); border: 1px solid var(--line); }
.paws-count { display: flex; flex-direction: column; align-items: flex-start; }
.paws-count b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--accent-deep); line-height: 1; }
.paws-count span { font-size: 9.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: 0.04em; }
.paws-goal { flex: 1; }
.goal-bar { height: 10px; border-radius: 999px; background: rgba(180,150,110,0.22); overflow: hidden; }
.goal-bar > i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #F0C99A, #DFA06B); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.paws-goal em { display: block; margin-top: 6px; font-style: normal; font-size: 10px; color: var(--ink-3); }
.paws-bowl { display: flex; align-items: center; gap: 18px; margin: 16px 0 6px; }
.paws-bowl canvas { width: 260px; height: 148px; flex: none; }
.paws-donate { margin: 0; font-size: 11.5px; line-height: 1.85; color: var(--ink-2); }
.paws-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.paws-row h3 { margin: 0 0 8px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.paws-acts { display: flex; flex-direction: column; gap: 6px; }
.paw-act { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.55); font-size: 11px; color: var(--ink-2); }
.paw-act .pa-ico { font-size: 15px; }
.paw-act .pa-lb { flex: 1; }
.paw-act .pa-mark { font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--ink-3); }
.paw-act.is-done { background: #FFF8EC; border-color: rgba(227,168,126,0.5); color: var(--ink); }
.paw-act.is-done .pa-mark { color: var(--accent-deep); }
.name-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.name-cloud span { font-size: 9.5px; font-weight: 600; color: var(--ink-2); padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--line); }
.paws-flower { margin: 10px 0 0; font-size: 10px; color: var(--ink-3); }
.paws-foot { display: flex; justify-content: center; margin-top: 18px; }

/* ─────────── rest corner ─────────── */
.sheet.rest { max-width: 660px; }
.rest-head { text-align: center; margin-bottom: 16px; }
.rest-candle { font-size: 24px; }
.rest-head h2 { margin: 6px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.rest-head p { margin: 0 auto; max-width: 430px; font-size: 11.5px; line-height: 1.8; color: var(--ink-3); }
.rest-form { display: grid; grid-template-columns: 110px 1fr; gap: 8px; margin-bottom: 16px; }
.rest-form textarea {
  grid-column: 2; grid-row: 1 / span 2; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.75); outline: none; font-size: 12.5px; resize: none; line-height: 1.7;
}
.rest-form textarea:focus { border-color: var(--accent); background: #fff; }
.rest-form input { padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.75); font-size: 11.5px; outline: none; }
.rest-form button { padding: 9px 12px; border-radius: 12px; background: var(--ink); color: #FFF9EF; font-size: 11px; font-weight: 700; align-self: end; }
.rest-list { max-height: 42vh; overflow: auto; padding-right: 4px; }
.rest-item { padding: 12px 2px; border-bottom: 1px dotted var(--line); }
.rest-who { display: flex; align-items: baseline; gap: 8px; }
.rest-who b { font-size: 10px; font-weight: 800; color: var(--accent-deep); }
.rest-who span { font-size: 9px; color: var(--ink-3); }
.rest-item p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); white-space: pre-line; }
.rest-row { display: flex; gap: 6px; margin-top: 7px; }
.candle-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(227,168,126,0.45); background: rgba(255,248,236,0.8);
  font-size: 10px; color: var(--accent-deep); font-weight: 700; transition: all .2s ease;
}
.candle-btn:hover { background: #FFF3DE; transform: translateY(-1px); }
.reply-btn {
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.6); font-size: 10px; color: var(--ink-3); font-weight: 600;
}
.reply-btn:hover { background: #fff; color: var(--ink-2); }
.rest-reply-form { display: flex; gap: 6px; margin-top: 7px; }
.rest-reply-form input { flex: 1; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 11.5px; outline: none; }
.rest-reply-form button { padding: 0 12px; border-radius: 10px; background: var(--ink); color: #FFF9EF; font-size: 10.5px; font-weight: 700; }

/* ─────────── memory album ─────────── */
.sheet.album { max-width: 880px; }
.album-head { text-align: center; margin-bottom: 16px; }
.album-eyebrow { font-size: 22px; }
.album-head h2 { margin: 6px 0 5px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.album-head p { margin: 0; font-size: 11px; color: var(--ink-3); }
.album-form { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 12px; border-radius: 16px;
  border: 1px dashed var(--line-2); background: rgba(255,255,255,0.45); margin-bottom: 16px; }
.album-upload {
  position: relative; display: grid; place-items: center; height: 104px; border-radius: 12px; overflow: hidden;
  background: rgba(255,255,255,0.7); border: 1px dashed var(--line-2); cursor: pointer; transition: all .2s ease;
}
.album-upload:hover { border-color: var(--accent); background: #fff; }
.album-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album-add { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.album-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; }
.album-f { display: flex; flex-direction: column; gap: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.album-f input { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 11.5px; outline: none; }
.album-f:nth-child(2) { grid-column: 1 / span 2; }
.album-fields button { grid-column: 1 / span 2; justify-self: start; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #FFF9EF; font-size: 11px; font-weight: 700; }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.album-card { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #FFFDF8;
  box-shadow: 0 12px 30px -20px rgba(90,60,30,0.5); border: 1px solid var(--line); }
.album-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.album-card figcaption { padding: 9px 10px 11px; }
.album-card time { font-size: 8.5px; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase; }
.album-card p { margin: 4px 0 0; font-size: 11px; line-height: 1.6; color: var(--ink-2); }
.album-del {
  position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,251,243,0.9); color: var(--ink-3); font-size: 10px; display: grid; place-items: center;
  opacity: 0; transition: opacity .2s ease;
}
.album-card:hover .album-del { opacity: 1; }
.album-lock { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(227,168,126,0.14);
  font-size: 11px; line-height: 1.6; color: var(--accent-deep); }

/* ─────────── responsive ─────────── */
@media (max-width: 1100px) {
  .zb-label { display: none; }
}
@media (max-width: 780px) {
  .zone-bar {
    top: 96px; left: 8px; right: 8px; gap: 4px; padding: 2px 2px 4px;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .zone-bar::-webkit-scrollbar { display: none; }
  .zb-sep { display: none; }
  .zone-chip { padding: 6px 10px 6px 8px; font-size: 9.5px; flex: none; }
  .zone-chip .zc-ico { font-size: 12px; }
  .paw-chip { flex: none; padding: 6px 10px 8px 9px; }
  .paw-chip .pc-goal { display: none; }
  .icon-btn { width: 28px; height: 28px; font-size: 12px; flex: none; }

  .mem-outfits .outfit-row { grid-template-columns: repeat(5, 1fr); }
  .outfit-chip .oc-lb { font-size: 7px; }
  .mem-tabs { margin-bottom: 8px; }
  .sheet.paws { padding: 22px 16px 20px; }
  .paws-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .paws-bowl { flex-direction: column; align-items: flex-start; gap: 8px; }
  .paws-bowl canvas { width: 100%; max-width: 320px; height: auto; }
  .paws-row { grid-template-columns: 1fr; gap: 12px; }
  .rest-form { grid-template-columns: 1fr; }
  .rest-form textarea { grid-column: 1; grid-row: auto; }
  .album-form { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .album-fields { grid-template-columns: 1fr; }
  .album-f:nth-child(2) { grid-column: 1; }
  .album-fields button { grid-column: 1; }
  .niche-panel { top: auto; }
}
@media (max-width: 420px) {
  .brand-text strong { font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; }
  .album-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v3 — the guardian, the petting card, the Steady Pass,
        and the quiet adoption corner
   ============================================================ */

/* ─────────── walk-with-me chip ─────────── */
.walk-chip { padding-right: 13px; }
.walk-chip .zc-ico { filter: grayscale(0.4); opacity: 0.9; }
.walk-chip.is-on {
  background: #FFFDF8; color: var(--ink);
  box-shadow: 0 8px 22px -12px rgba(60, 38, 20, 0.55), 0 0 0 2px rgba(227, 168, 126, 0.28);
}
.walk-chip.is-on .zc-ico { filter: none; opacity: 1; }
body.theme-night .walk-chip.is-on { background: rgba(60, 62, 96, 0.85); color: #FFF8EC; }

/* ─────────── the card beside a companion ─────────── */
.pet-card {
  position: absolute; z-index: 29; left: 50%; bottom: 94px;
  transform: translate(-50%, 10px);
  display: flex; align-items: flex-start; gap: 12px;
  width: min(430px, calc(100% - 32px));
  padding: 12px 30px 12px 12px; border-radius: 20px;
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.15); -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
.pet-card.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.petc-face {
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 3px #fff, var(--shadow-soft); background: var(--paper-2);
}
.petc-face img { width: 100%; height: 100%; object-fit: cover; }
.petc-body { min-width: 0; flex: 1; }
.petc-body b { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; }
.petc-body p { margin: 3px 0 8px; font-size: 11.5px; line-height: 1.65; color: var(--ink-2); }
.petc-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.petc-acts button {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.72);
  font-size: 10px; font-weight: 700; color: var(--ink-2); transition: all .18s ease;
}
.petc-acts button:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.petc-acts .petc-mem { border-color: rgba(227, 168, 126, 0.5); color: var(--accent-deep); background: #FFF8EC; }
.petc-x { position: absolute; top: 8px; right: 10px; font-size: 10px; color: var(--ink-3); padding: 3px; }

/* ─────────── the Steady Pass ─────────── */
.sheet.pass { max-width: 1040px; }
.pass-status {
  display: flex; align-items: center; gap: 10px; margin: -8px 0 18px;
  padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(150deg, #FFF8EC, #FBECDA);
  border: 1px solid rgba(227, 168, 126, 0.35);
  font-size: 11.5px; color: var(--accent-deep);
}
.pass-status .ps-dot { font-size: 14px; }
.pass-status b { flex: 1; font-weight: 700; line-height: 1.5; }
.pass-status button {
  flex: none; padding: 5px 11px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line-2); font-size: 10.5px; color: var(--ink-3);
}
.pass-status button:hover { color: var(--ink); }
.pass-principles {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.5); border: 1px dashed var(--line-2);
}
.pass-principles h3, .pass-refund h3 {
  margin: 0 0 8px; font-size: 9.5px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
}
.pass-principles ul, .pass-refund ul {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 6px;
}
.pass-principles li, .pass-refund li {
  position: relative; padding-left: 15px; font-size: 11px; line-height: 1.65; color: var(--ink-2);
}
.pass-principles li::before, .pass-refund li::before {
  content: '·'; position: absolute; left: 4px; top: -1px; color: var(--accent); font-weight: 800;
}
.plan-switch {
  display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 10px; align-self: flex-start;
  border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line);
}
.plan-switch button {
  padding: 5px 14px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--ink-3);
  transition: all .2s ease;
}
.plan-switch button.is-active { background: var(--ink); color: #FFF9EF; }
.tier.steady { background: linear-gradient(165deg, #FFF8EC, #FBEBDA); border-color: rgba(200, 150, 105, 0.45); box-shadow: 0 20px 50px -28px rgba(120, 70, 30, 0.5); }
.tier.custom { background: rgba(255, 255, 252, 0.55); }
.tier.custom .price b { font-size: 22px; white-space: nowrap; }
.tier.custom .price { flex-direction: column; align-items: flex-start; gap: 2px; }
.tier.custom h3 { padding-right: 96px; }
.tier.custom .tier-tag { color: var(--ink-3); }
.pass-refund {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line);
}

/* ─────────── pawprint tabs & donation line ─────────── */
.paws-tabs { display: flex; justify-content: center; width: max-content; max-width: 100%; margin: 0 auto 12px; flex-wrap: wrap; }
.paws-pane { display: block; }
.paws-donate-wrap { min-width: 0; }
.paws-donate-state { margin: 8px 0 0; font-size: 11px; font-weight: 700; color: var(--accent-deep); }
.paws-donate-state.is-done { color: #6F9157; }
.paws-donate-hint { margin: 6px 0 0; font-size: 10px; line-height: 1.6; color: var(--ink-3); }

/* ─────────── adoption corner ─────────── */
.adopt-intro { margin: 0 0 10px; font-size: 11.5px; line-height: 1.8; color: var(--ink-2); text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.adopt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.adopt-card {
  position: relative; padding: 12px 13px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line);
}
.adopt-badge {
  position: absolute; top: 10px; right: 10px; font-size: 8px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--ink-3); background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 7px;
}
.adopt-face {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(160deg, #FFF6E7, #F7E4CB); box-shadow: 0 0 0 2px #fff; margin-bottom: 8px;
}
.adopt-card h4 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.adopt-meta { margin: 3px 0 0; font-size: 10px; color: var(--ink-3); }
.adopt-note-line { margin: 7px 0 0; font-size: 10.5px; line-height: 1.55; color: var(--ink-2); }
.adopt-traits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.adopt-traits span {
  font-size: 9px; padding: 3px 8px; border-radius: 999px;
  background: rgba(227, 168, 126, 0.14); color: var(--accent-deep); font-weight: 700;
}
.adopt-more {
  margin-top: 9px; font-size: 10px; font-weight: 700; color: var(--ink-3);
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7);
}
.adopt-more:hover { color: var(--ink-2); background: #fff; }
.adopt-detail { margin-top: 9px; padding-top: 9px; border-top: 1px dotted var(--line); }
.adopt-detail p { margin: 0 0 6px; font-size: 10.5px; line-height: 1.6; color: var(--ink-2); }
.adopt-detail b { color: var(--ink-3); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; margin-right: 5px; }
.adopt-how {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.5); border: 1px dashed var(--line-2);
}
.adopt-how h3 { margin: 0 0 8px; font-size: 9.5px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.adopt-how ol { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: 11px; line-height: 1.6; color: var(--ink-2); }
.adopt-note { margin: 10px 0 0; font-size: 10px; line-height: 1.65; color: var(--ink-3); }
.adopt-promise { margin: 6px 0 0; font-size: 11px; line-height: 1.7; color: var(--accent-deep); text-align: center; }

@media (max-width: 780px) {
  .pet-card {
    top: 140px; bottom: auto; left: 10px; right: 10px; width: auto;
    transform: translateY(-8px); padding: 11px 28px 11px 11px;
  }
  .pet-card.is-on { transform: none; }
  .petc-face { width: 44px; height: 44px; }
  .petc-acts button { padding: 5px 8px; font-size: 9px; }
  .adopt-grid { grid-template-columns: 1fr; }
  .pass-status { flex-wrap: wrap; }
  .pass-status b { flex: 1 1 100%; }
}

/* ============================================================
   v4 — a remembered habit, seasons & anniversaries, the quiet
        minute by candlelight, and today's easel
   ============================================================ */

/* ─────────── the hill menu: season, candle, easel ─────────── */
.season-chip .zc-ico, .candle-chip .zc-ico, .easel-chip .zc-ico { font-size: 12px; }
.season-chip { padding-right: 13px; }
.candle-chip .zc-ico { transform: translateY(-1px); }
.easel-chip[hidden] { display: none !important; }
body.in-sanctuary .candle-chip { opacity: 0.55; }
body.theme-night .season-chip, body.theme-night .candle-chip { background: rgba(44, 48, 80, 0.62); color: rgba(255, 248, 236, 0.86); border-color: rgba(255, 255, 255, 0.16); }

/* ─────────── a remembered habit ─────────── */
.mem-habit {
  margin-top: 10px; padding: 10px 12px 11px; border-radius: 15px;
  background: rgba(255, 255, 255, 0.52); border: 1px dashed var(--line-2);
}
.mem-habit .deco-label { font-size: 9px; }
.mem-habit-line { margin: 5px 0 0; font-size: 11.5px; line-height: 1.72; color: var(--ink-2); }
.mem-habit-edit {
  margin-top: 7px; font-size: 9px; font-weight: 800; letter-spacing: 0.07em;
  color: var(--accent-deep); text-transform: uppercase;
}
.mem-habit-edit:hover { color: var(--ink); }
.mem-habit-form { display: flex; gap: 4px; margin-top: 7px; }
.mem-habit-form input {
  flex: 1; min-width: 0; padding: 6px 9px; border-radius: 9px;
  border: 1px solid var(--line-2); background: #fff; font-size: 11px;
}
.mem-habit-form button {
  padding: 6px 9px; border-radius: 9px; font-size: 9.5px; font-weight: 700;
  background: rgba(227, 168, 126, 0.2); color: var(--accent-deep); white-space: nowrap;
}
.mem-habit-form button + button { background: rgba(255, 255, 255, 0.6); color: var(--ink-3); }
.niche-habit { margin: 3px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }

/* ─────────── seasons & anniversaries sheet ─────────── */
.sheet.season { max-width: 720px; }
.season-head { text-align: center; margin-bottom: 16px; }
.season-eyebrow { font-size: 22px; }
.season-head h2 { margin: 6px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.season-head p { margin: 0 auto; max-width: 470px; font-size: 11.5px; line-height: 1.75; color: var(--ink-2); }
.season-pick {
  margin: 0 0 8px; font-size: 9px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.season-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.season-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 15px 8px 12px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6); transition: all .22s ease;
}
.season-opt:hover { transform: translateY(-1px); background: #fff; }
.season-opt .so-ico { font-size: 22px; }
.season-opt b { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.season-opt .so-sub { font-style: normal; font-size: 9px; color: var(--ink-3); text-align: center; line-height: 1.45; }
.season-opt.is-active {
  background: #FFFBF2; border-color: rgba(227, 168, 126, 0.65);
  box-shadow: 0 0 0 2px rgba(227, 168, 126, 0.22), 0 10px 24px -18px rgba(60, 38, 20, 0.55);
}
.season-today { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.season-today h3 {
  margin: 0 0 8px; font-size: 12px; font-weight: 700;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.season-today h3 em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--ink-3); }
.season-notes { display: flex; flex-direction: column; gap: 6px; }
.season-note {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 13px; text-align: left;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); transition: all .18s ease;
}
.season-note:hover { background: #fff; transform: translateY(-1px); }
.season-note img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.season-note .sn-tx { min-width: 0; }
.season-note b { display: block; font-size: 11.5px; font-weight: 700; }
.season-note span { display: block; font-size: 9.5px; color: var(--ink-3); }
.season-note em { margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--accent-deep); white-space: nowrap; }
.season-note.is-today { border-color: rgba(227, 168, 126, 0.55); background: #FFF9EF; }
.season-next { margin: 10px 0 0; font-size: 10px; color: var(--ink-3); }
.season-foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ─────────── a note that arrived with the weather ─────────── */
.wish-card {
  position: absolute; z-index: 29; left: 24px; bottom: 96px;
  width: min(372px, calc(100% - 32px));
  padding: 17px 19px 12px; border-radius: 6px 22px 22px 22px;
  background: linear-gradient(158deg, #FFFCF5, #FBF0DE 72%, #F6E7CE);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 34px 74px -34px rgba(60, 38, 20, 0.62), 0 0 0 1px rgba(190, 150, 105, 0.16);
  opacity: 0; pointer-events: none; transform: translateY(14px) rotate(-0.7deg);
  transition: opacity .34s ease, transform .46s cubic-bezier(.2, .8, .2, 1);
}
.wish-card.is-on { opacity: 1; pointer-events: auto; transform: none; }
.wish-kicker { margin: 0 0 9px; font-size: 8.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-deep); }
.wish-body { margin: 0; font-family: var(--serif); font-size: 14.5px; line-height: 1.95; color: var(--ink); }
html[lang="ko"] .wish-body { font-family: var(--font); font-weight: 500; font-size: 13px; line-height: 2.06; letter-spacing: -0.005em; }
.wish-sign { margin: 11px 0 0; text-align: right; font-size: 10.5px; color: var(--ink-3); }
.wish-acts { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.wish-acts button {
  padding: 6px 11px; border-radius: 999px; font-size: 10px; font-weight: 700;
  color: var(--ink-2); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.6);
  transition: all .18s ease;
}
.wish-acts button:hover { background: #fff; color: var(--ink); }
.wish-acts button:first-child { color: var(--accent-deep); background: #FFF8EC; border-color: rgba(227, 168, 126, 0.45); }
.wish-x { position: absolute; top: 8px; right: 10px; padding: 3px; font-size: 10px; color: var(--ink-3); }

/* ─────────── today's easel panel ─────────── */
.easel-panel {
  position: absolute; z-index: 29; right: 22px; bottom: 96px;
  width: min(332px, calc(100% - 32px));
  padding: 16px 18px 14px; border-radius: 22px;
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .32s ease, transform .42s cubic-bezier(.2, .8, .2, 1);
  max-height: calc(100vh - 190px); overflow: auto;
}
.easel-panel.is-open { opacity: 1; pointer-events: auto; transform: none; }
.easel-x { position: absolute; top: 10px; right: 12px; padding: 3px; font-size: 11px; color: var(--ink-3); }
.easel-kicker { margin: 0 0 10px; font-size: 8.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-deep); }
.easel-photo {
  width: 100%; aspect-ratio: 8 / 9; border-radius: 13px; overflow: hidden; background: var(--paper-2);
  box-shadow: inset 0 0 0 1px rgba(160, 120, 70, 0.18), 0 12px 26px -20px rgba(60, 38, 20, 0.6);
}
.easel-photo img { width: 100%; height: 100%; object-fit: cover; }
.easel-name { margin: 10px 0 2px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.easel-meta { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; color: var(--accent-deep); }
.easel-line { margin: 0 0 10px; font-size: 10.5px; line-height: 1.7; color: var(--ink-2); }
.easel-count { margin: 0 0 9px; font-size: 11px; font-weight: 800; color: var(--ink); }
.easel-light {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #7A4A22;
  background: linear-gradient(160deg, #FFF3D9, #FBE2B8);
  border: 1px solid rgba(214, 172, 108, 0.55);
  box-shadow: 0 10px 22px -16px rgba(120, 70, 20, 0.7); transition: all .2s ease;
}
.easel-light:hover { transform: translateY(-1px); }
.easel-light.is-lit { background: rgba(255, 255, 255, 0.55); color: var(--ink-3); box-shadow: none; cursor: default; }
.easel-thanks { margin: 9px 0 0; font-size: 10.5px; line-height: 1.65; color: var(--accent-deep); }
.easel-next { margin: 9px 0 0; font-size: 9.5px; color: var(--ink-3); }
.easel-oneday { margin: 5px 0 10px; font-size: 9px; color: var(--ink-3); }
.easel-panel .btn-quiet.wide { margin-top: 2px; }

/* ─────────── the quiet minute ─────────── */
.candle-veil {
  position: absolute; inset: 0; z-index: 66; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(125% 88% at 50% 64%, #2A2033 0%, #171425 46%, #0A0A13 100%);
  opacity: 0; transition: opacity .85s ease; overflow: hidden;
}
.candle-veil.is-on { opacity: 1; }
.candle-stars {
  position: absolute; inset: 0; opacity: 0.95;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1.7px 1.7px at 26% 9%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(2.4px 2.4px at 41% 24%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1.6px 1.6px at 58% 12%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(2.2px 2.2px at 73% 22%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1.7px 1.7px at 88% 15%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1.8px 1.8px at 8% 46%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(2.1px 2.1px at 93% 44%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.6px 1.6px at 18% 72%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(2px 2px at 82% 78%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.7px 1.7px at 34% 88%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(2.2px 2.2px at 66% 84%, rgba(255,255,255,.65), transparent 60%);
  animation: candleTwinkle 7s ease-in-out infinite alternate;
}
.candle-stars::after {
  content: ''; position: absolute; inset: 0; opacity: 0.8;
  background-image:
    radial-gradient(2.2px 2.2px at 6% 12%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.8px 1.8px at 20% 33%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(2.5px 2.5px at 34% 7%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.9px 1.9px at 48% 30%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(2.3px 2.3px at 63% 6%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.8px 1.8px at 79% 34%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(2.6px 2.6px at 95% 26%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(2px 2px at 14% 58%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(2.4px 2.4px at 74% 60%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.8px 1.8px at 28% 82%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(2.2px 2.2px at 88% 88%, rgba(255,255,255,.5), transparent 60%);
  animation: candleTwinkle 9s ease-in-out infinite alternate-reverse;
}
@keyframes candleTwinkle { 0% { opacity: 0.62; } 100% { opacity: 0.95; } }
.candle-inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  gap: 12px; max-width: 460px; text-align: center;
}
.candle-kicker { margin: 0; font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 238, 214, 0.62); }
.candle-glow-wrap { position: relative; width: 96px; height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.candle-aura {
  position: absolute; bottom: 4px; left: 50%; width: 250px; height: 250px; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,196,120,.34) 0%, rgba(255,160,80,.12) 40%, rgba(255,140,60,0) 70%);
  animation: auraBreath 8s ease-in-out infinite;
}
@keyframes auraBreath {
  0%, 100% { opacity: .78; transform: translateX(-50%) scale(.94); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.07); }
}
.candle-wax {
  position: relative; width: 34px; height: 74px; border-radius: 8px 8px 11px 11px;
  background: linear-gradient(180deg, #FFF6E2, #F3D9AE 55%, #E2C08C);
  box-shadow: 0 10px 34px -10px rgba(255, 180, 100, 0.55);
}
.candle-flame {
  position: absolute; bottom: 70px; left: 50%; width: 19px; height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(50% 62% at 50% 70%, #FFFDF2 0%, #FFE9A8 34%, #FFC46A 62%, rgba(255,150,60,.22) 100%);
  border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  filter: blur(.35px);
  animation: flameFlicker 2.6s ease-in-out infinite;
}
@keyframes flameFlicker {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-1deg); }
  35% { transform: translateX(-51%) scale(1.05, .96) rotate(1.6deg); }
  70% { transform: translateX(-49%) scale(.96, 1.06) rotate(-1.2deg); }
}
.candle-ring { position: relative; width: 94px; height: 94px; }
.candle-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cr-bg { fill: none; stroke: rgba(255, 240, 214, 0.16); stroke-width: 3; }
.cr-fg {
  fill: none; stroke: rgba(255, 214, 150, 0.88); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 339.292; stroke-dashoffset: 0; transition: stroke-dashoffset .2s linear;
}
.candle-time {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; letter-spacing: 0.02em; color: rgba(255, 246, 230, 0.94);
}
.candle-line { margin: 2px 0 0; font-size: 16px; font-weight: 600; line-height: 1.75; color: #FFF4E2; letter-spacing: -0.01em; }
html[lang="ko"] .candle-line { font-size: 15.5px; }
.candle-breath { margin: 0; min-height: 17px; font-size: 10.5px; letter-spacing: 0.09em; color: rgba(255, 228, 196, 0.72); }
.candle-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.candle-acts button {
  padding: 8px 14px; border-radius: 999px; font-size: 10.5px; font-weight: 700;
  color: rgba(255, 244, 226, 0.9); border: 1px solid rgba(255, 224, 180, 0.3);
  background: rgba(255, 235, 205, 0.08); transition: all .2s ease;
}
.candle-acts button:hover { background: rgba(255, 235, 205, 0.17); }
.candle-acts button.is-on { background: rgba(255, 225, 170, 0.22); border-color: rgba(255, 225, 170, 0.52); }
.candle-hint { margin: 2px 0 0; font-size: 9.5px; color: rgba(255, 235, 210, 0.46); }

body.candle-mode .topbar, body.candle-mode .zone-bar, body.candle-mode .dock,
body.candle-mode .hintbar, body.candle-mode .dpad, body.candle-mode .pet-card,
body.candle-mode .wish-card, body.candle-mode .dog-rail, body.candle-mode .niche-panel,
body.candle-mode .door-prompt, body.candle-mode .easel-panel {
  opacity: 0 !important; pointer-events: none !important;
}

/* ─────────── responsive ─────────── */
@media (max-width: 780px) {
  .season-grid { grid-template-columns: 1fr; gap: 6px; }
  .season-opt { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 11px 13px; }
  .season-opt .so-ico { font-size: 18px; }
  .season-opt .so-sub { margin-left: auto; text-align: right; max-width: 46%; }
  .sheet.season { padding: 24px 16px 18px; }
  .season-head h2 { font-size: 20px; }
  .wish-card {
    left: 10px; right: 10px; width: auto; top: 142px; bottom: auto;
    padding: 14px 16px 10px; border-radius: 16px;
  }
  .wish-body { font-size: 12px; line-height: 1.95; }
  .easel-panel {
    left: 10px; right: 10px; width: auto; bottom: 88px;
    max-height: calc(100vh - 250px); padding: 14px 15px 12px;
  }
  .easel-photo { aspect-ratio: 16 / 10; }
  .easel-name { font-size: 16px; }
  .candle-ring { width: 82px; height: 82px; }
  .candle-time { font-size: 17px; }
  .candle-line { font-size: 14px; line-height: 1.8; }
  .candle-glow-wrap { height: 132px; }
  .candle-glow-wrap .candle-wax { height: 62px; }
  .candle-flame { bottom: 58px; }
  .candle-inner { gap: 10px; }
  .candle-veil { padding: 18px; }
}
@media (max-width: 420px) {
  .wish-acts { justify-content: stretch; }
  .wish-acts button { flex: 1; text-align: center; }
}

/* ============================================================
   v5 — 포우릿 · Pawlit: brand mark, sample badges, rail filter
   ============================================================ */
.brand-mark { overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.intro-brand-en {
  margin: -8px 0 0; text-align: center; font-family: var(--serif); font-size: 12px;
  letter-spacing: 0.44em; text-transform: uppercase; color: var(--ink-3);
}
.rail-filter {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 10px 9px;
}
.rf-counts { font-size: 10px; color: var(--ink-3); letter-spacing: 0.01em; }
.rf-toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  font-size: 10px; color: var(--ink-3); background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line); white-space: nowrap;
}
.rf-toggle.is-on { color: var(--ink-2); background: rgba(246, 216, 195, 0.55); border-color: var(--line-2); }
.rail-item.is-demo { opacity: 0.84; }
.rail-item .ri-demo {
  display: inline-block; margin-top: 3px; font-style: normal; font-size: 9.5px; letter-spacing: 0.02em;
  color: var(--ink-3); background: rgba(120, 92, 64, 0.09); border-radius: 999px; padding: 1px 6px;
}
.mem-demo { margin: 8px 2px 0; font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }
.pass-support { margin: 7px 0 0; text-align: center; font-size: 10.5px; color: var(--ink-3); }
.pass-support a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) {
  .rf-counts { font-size: 9.5px; }
  .intro-brand-en { font-size: 10.5px; letter-spacing: 0.36em; }
}

/* ============================================================
   v8 — the weather outside, the heart mailbox, a shining night
   ============================================================ */

/* ─────────── one warm line under the hill menu ─────────── */
.hill-note {
  position: absolute; z-index: 26; top: 124px; left: 24px;
  display: flex; align-items: center; gap: 9px; max-width: min(620px, calc(100vw - 48px));
  padding: 8px 10px 8px 13px; border-radius: 999px;
  background: rgba(255, 250, 242, 0.84); border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 12px 30px -16px rgba(60, 38, 20, 0.6);
  animation: hnIn .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes hnIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.hill-note .hn-ico { font-size: 15px; line-height: 1; }
.hill-note .hn-tx {
  font-size: 11px; line-height: 1.55; font-weight: 600; color: var(--ink-2);
  letter-spacing: -0.005em; flex: 1 1 auto; min-width: 0;
}
.hill-note .hn-go, .hill-note .hn-quiet {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 800; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.hill-note .hn-go { color: #FFF7EC; background: rgba(150, 106, 66, 0.82); }
.hill-note .hn-go:hover { background: rgba(122, 84, 50, 0.92); }
.hill-note .hn-quiet { color: var(--ink-3); background: rgba(120, 92, 64, 0.08); }
.hill-note .hn-quiet:hover { color: var(--ink); background: rgba(120, 92, 64, 0.16); }
body.theme-night .hill-note { background: rgba(42, 46, 78, 0.78); border-color: rgba(255, 255, 255, 0.14); }
body.theme-night .hill-note .hn-tx { color: rgba(255, 248, 236, 0.88); }
body.theme-night .hill-note .hn-quiet { color: rgba(255, 248, 236, 0.72); background: rgba(255, 255, 255, 0.1); }

/* ─────────── the season's chip ─────────── */
.festive-chip .zc-ico { font-size: 12px; }
.festive-chip.is-on {
  background: linear-gradient(135deg, #FFF4DC, #FFE6B8);
  border-color: rgba(255, 228, 176, 0.9);
  color: #7A5326;
  box-shadow: 0 8px 24px -12px rgba(180, 126, 46, 0.85), 0 0 0 1px rgba(255, 232, 186, 0.55) inset;
}
body.theme-night .festive-chip.is-on {
  background: linear-gradient(135deg, rgba(122, 92, 44, 0.9), rgba(90, 66, 32, 0.9));
  color: #FFEFC4; border-color: rgba(255, 214, 140, 0.42);
}

/* ─────────── the heart mailbox, in the memorial ─────────── */
.mem-mailbox {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px;
  padding: 11px 14px; border-radius: 15px; text-align: left;
  background: rgba(255, 255, 255, 0.62); border: 1px solid var(--line);
  transition: all .22s ease;
}
.mem-mailbox:hover { background: #FFFDF8; border-color: var(--line-2); transform: translateY(-1px); }
.mem-mailbox .mmb-ico { font-size: 16px; }
.mem-mailbox .mmb-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mem-mailbox .mmb-body b { font-size: 11.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.mem-mailbox .mmb-body em { font-style: normal; font-size: 9.5px; color: var(--ink-3); }
.mem-mailbox .mmb-go { font-size: 15px; color: var(--ink-3); }

.easel-mailbox {
  width: 100%; margin-top: 7px; padding: 8px 10px; border-radius: 11px;
  font-size: 10.5px; font-weight: 700; color: var(--accent-deep);
  background: rgba(255, 247, 235, 0.86); border: 1px solid var(--line);
}
.easel-mailbox:hover { background: #FFFDF5; color: var(--ink); }

/* ─────────── the weather & the season block in the season sheet ─────────── */
.season-block {
  margin-top: 14px; padding: 15px 16px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.5); border: 1px solid var(--line);
}
.season-block h3 {
  margin: 0 0 3px; font-size: 12px; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 8px; color: var(--ink);
}
.season-block h3 em {
  font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--accent-deep); margin-left: auto; white-space: nowrap;
}
.season-block .sb-sub { margin: 0 0 10px; font-size: 10.5px; line-height: 1.65; color: var(--ink-3); }
.wx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wx-opt { flex-direction: column; align-items: flex-start; gap: 3px; padding: 9px 10px; text-align: left; }
.wx-opt .so-ico { font-size: 15px; }
.wx-opt b { font-size: 10.5px; font-weight: 800; }
.wx-opt .so-sub { font-size: 9px; line-height: 1.45; color: var(--ink-3); }
.wx-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.wx-live { flex: 1 1 auto; min-width: 0; font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.01em; }
.wx-foot .btn-mini { flex: 0 0 auto; }
.festive-seg { display: flex; gap: 5px; flex-wrap: wrap; }
.festive-seg button {
  flex: 1 1 auto; padding: 7px 11px; border-radius: 999px; font-size: 10px; font-weight: 700;
  color: var(--ink-3); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line);
  white-space: nowrap;
}
.festive-seg button.is-active {
  color: #6F4A1E; background: linear-gradient(135deg, #FFF1D4, #FFE1AE);
  border-color: rgba(214, 172, 108, 0.7);
}
.festive-count { margin: 9px 0 0; font-size: 10px; color: var(--ink-3); }

/* ─────────── the heart mailbox sheet ─────────── */
.sheet.mailbox { max-width: 940px; }
.mb-head { display: flex; align-items: center; gap: 14px; padding-right: 34px; }
.mb-portrait {
  width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  border: 2px solid #FFFDF8; box-shadow: 0 10px 24px -14px rgba(70, 44, 24, 0.6);
  background: #F6E3CB;
}
.mb-portrait img { width: 100%; height: 100%; object-fit: cover; }
.mb-head-tx { min-width: 0; }
.mb-eyebrow { font-size: 14px; }
.mb-head h2 { margin: 2px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.mb-to { margin: 0; font-size: 11px; font-weight: 700; color: var(--accent-deep); }
.mb-sub { margin: 5px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--ink-3); max-width: 620px; }
.mb-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 20px; margin-top: 16px;
}
.mb-received h3, .mb-write h3 {
  margin: 0 0 9px; font-size: 11.5px; font-weight: 800; letter-spacing: -0.005em;
  display: flex; align-items: baseline; gap: 7px;
}
.mb-received h3 em, .mb-write h3 em { font-style: normal; font-size: 9.5px; color: var(--ink-3); font-weight: 600; margin-left: auto; }
.mb-letters {
  display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow: auto; padding-right: 4px;
}
.mb-letter { display: flex; flex-direction: column; gap: 5px; }
.ml-paper {
  position: relative; padding: 16px 18px 12px; border-radius: 4px;
  background: linear-gradient(160deg, #FFFDF7, #FFF6E8 62%, #FCEEDC);
  border: 1px dashed rgba(196, 152, 106, 0.55);
  box-shadow: 0 12px 26px -20px rgba(80, 50, 24, 0.55);
}
.mb-letter:nth-child(even) .ml-paper { transform: rotate(-0.5deg); }
.mb-letter:nth-child(3n) .ml-paper { transform: rotate(0.4deg); }
.ml-stamp {
  position: absolute; top: 9px; right: 11px; width: 24px; height: 24px; display: grid; place-items: center;
  font-size: 11px; border-radius: 3px; color: #B77F4B;
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(196, 152, 106, 0.5);
}
.ml-text {
  margin: 0; font-size: 11.5px; line-height: 1.95; color: var(--ink); padding-right: 26px;
  letter-spacing: -0.005em; white-space: pre-wrap; word-break: break-word;
}
.ml-foot { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.ml-from { font-size: 9px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.01em; }
.ml-foot time { font-size: 9px; color: var(--ink-3); margin-left: auto; }
.mb-letter.is-mine .ml-from { color: var(--accent-deep); }
.ml-save {
  align-self: flex-end; font-size: 9px; font-weight: 700; color: var(--ink-3);
  padding: 3px 8px; border-radius: 999px; background: rgba(120, 92, 64, 0.06);
}
.ml-save:hover { color: var(--ink); background: rgba(120, 92, 64, 0.14); }
.mb-empty { padding: 14px 4px; }
.mb-write {
  padding: 14px 15px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.56); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.mb-write-sub { margin: 0 0 10px; font-size: 10px; line-height: 1.6; color: var(--ink-3); }
.mb-preset-label { margin: 0 0 6px; font-size: 9px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.mb-presets { display: flex; flex-direction: column; gap: 4px; margin-bottom: 9px; max-height: 168px; overflow: auto; }
.mb-preset {
  text-align: left; padding: 7px 10px; border-radius: 11px; font-size: 10px; line-height: 1.5;
  color: var(--ink-2); background: rgba(255, 253, 248, 0.85); border: 1px solid var(--line);
}
.mb-preset:hover { color: var(--ink); border-color: var(--line-2); background: #FFFDF8; }
.mb-preset.is-on { color: #6F4A1E; background: linear-gradient(135deg, #FFF6E2, #FDEBD0); border-color: rgba(214, 172, 108, 0.7); }
#mbInput {
  width: 100%; resize: vertical; min-height: 74px; padding: 11px 12px; border-radius: 12px;
  font-size: 11.5px; line-height: 1.75; color: var(--ink);
  background: #FFFDF8; border: 1px solid var(--line-2); outline: none;
}
#mbInput:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(227, 168, 126, 0.16); }
.mb-write-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mb-count { font-size: 9px; color: var(--ink-3); letter-spacing: 0.03em; }
.mb-write-foot .btn-primary { margin-left: auto; }
.mb-privacy { margin: 9px 0 0; font-size: 9px; color: var(--ink-3); line-height: 1.5; }
.mb-foot { margin: 12px 0 0; font-size: 10px; color: var(--ink-3); text-align: center; }

@media (max-width: 900px) {
  .mb-grid { grid-template-columns: 1fr; gap: 14px; }
  .mb-letters { max-height: 30vh; }
}
@media (max-width: 780px) {
  .hill-note { top: 138px; left: 10px; right: 10px; max-width: none; padding: 7px 8px 7px 11px; }
  body.has-hill-note .wish-card { top: 200px; }
  @keyframes hnIn { from { opacity: 0; } to { opacity: 1; } }
  .hill-note .hn-tx { font-size: 10px; line-height: 1.5; }
  .hill-note .hn-go, .hill-note .hn-quiet { font-size: 9px; padding: 3px 7px; }
  .wx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-block { padding: 12px 12px 11px; }
  .sheet.mailbox { padding: 20px 14px 16px; }
  .mb-head { gap: 10px; }
  .mb-portrait { width: 48px; height: 48px; }
  .mb-head h2 { font-size: 18px; }
  .mb-sub { font-size: 9.5px; }
  .mb-letters { max-height: 26vh; }
  .ml-text { font-size: 10.5px; line-height: 1.85; }
  .mb-presets { max-height: 120px; }
  .mem-mailbox { padding: 10px 12px; }
}

/* ============================================================
   v9 — a simpler face: the hill first, everything else quiet
   ============================================================ */

/* the brand and the pawprint progress sit together, top left */
.topbar .brand-cluster { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .paw-chip { flex: 0 0 auto; }

/* the three meadows read as one calm row under the two spaces */
.zone-bar {
  top: 86px; left: 50%; right: auto; transform: translateX(-50%);
  max-width: calc(100vw - 28px);
  justify-content: center; gap: 6px; padding: 2px;
}
.zone-bar .zb-label { display: none; }

/* ─────────── one quiet tray for the little comforts ─────────── */
.tool-cluster { position: absolute; z-index: 31; left: 24px; top: 100px; display: flex; flex-direction: column; align-items: flex-start; }
.tool-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px 8px 11px; border-radius: 999px;
  background: rgba(255, 250, 242, 0.68); border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 8px 22px -14px rgba(60, 38, 20, 0.55);
  font-size: 11px; font-weight: 700; color: var(--ink-2);
  transition: all .22s ease;
}
.tool-toggle .tt-ico { font-size: 14px; line-height: 1; }
.tool-toggle:hover { background: #FFFDF8; color: var(--ink); }
.tool-toggle.is-on { background: #FFFDF8; color: var(--ink); box-shadow: 0 10px 26px -14px rgba(60, 38, 20, 0.6), inset 0 0 0 1px rgba(227, 168, 126, 0.34); }
body.theme-night .tool-toggle { background: rgba(40, 44, 74, 0.62); color: rgba(255, 248, 236, 0.86); border-color: rgba(255, 255, 255, 0.16); }

.tool-tray {
  position: absolute; left: 0; top: calc(100% + 8px); width: 218px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px;
  border-radius: 18px;
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: var(--shadow);
  animation: trayIn .2s cubic-bezier(.2, .8, .2, 1);
}
.tool-tray[hidden] { display: none; }
@keyframes trayIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tray-head {
  margin: 3px 9px 6px; font-size: 8.5px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
}
.tray-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border-radius: 12px; text-align: left;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.tray-item:hover { background: rgba(255, 252, 246, 0.85); color: var(--ink); }
.tray-item.is-on { background: rgba(255, 246, 226, 0.92); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(227, 168, 126, 0.3); }
.tray-item .ti-ico { width: 18px; text-align: center; font-size: 13px; line-height: 1; }
.tray-item .ti-tx { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-item[hidden] { display: none; }
body.theme-night .tool-tray { background: rgba(34, 38, 66, 0.94); border-color: rgba(255, 255, 255, 0.14); }
body.theme-night .tray-head { color: rgba(255, 248, 236, 0.55); }
body.theme-night .tray-item { color: rgba(255, 248, 236, 0.82); }
body.theme-night .tray-item:hover { background: rgba(255, 255, 255, 0.08); color: #FFF8EC; }
body.theme-night .tray-item.is-on { background: rgba(122, 92, 44, 0.55); color: #FFEFC4; }

/* the paid door stays a single quiet line at the end of the dock */
.dock-link { font-size: 11px; letter-spacing: 0.01em; color: var(--ink-3); }
.dock-link::before { content: '·'; margin-right: 8px; opacity: 0.55; }

/* ─────────── a companion's traits ─────────── */
.trait-chips, .trait-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.trait-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.66); border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 600; color: var(--ink-2);
  transition: all .18s ease;
}
.trait-chip:hover { border-color: rgba(190, 150, 105, 0.55); color: var(--ink); }
.trait-chip.is-active {
  background: #FFF6E4; border-color: rgba(214, 160, 110, 0.7); color: var(--ink);
  box-shadow: 0 0 0 2px rgba(227, 168, 126, 0.18);
}
.trait-chip.is-compact { padding: 4px 8px; font-size: 9.5px; }
.trait-chip.is-static { cursor: default; }
.trait-chip .tc-ico { font-size: 11px; line-height: 1; }
.mem-traits { margin-top: 13px; }
.trait-hint { margin: 6px 0 0; font-size: 9.5px; line-height: 1.6; color: var(--ink-3); }
.niche-traits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.niche-traits[hidden] { display: none; }
body.theme-night .trait-chip { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 248, 236, 0.8); }
body.theme-night .trait-chip.is-active { background: rgba(122, 92, 44, 0.5); color: #FFEFC4; }

/* ─────────── phones ─────────── */
@media (max-width: 780px) {
  .topbar { padding: 10px 12px 24px; }
  .topbar .brand-cluster { gap: 8px; }
  .topbar .paw-chip { padding: 6px 9px 8px 8px; }
  .topbar .paw-chip b { font-size: 11px; }
  .topbar .paw-chip .pc-goal { display: none; }
  .zone-bar { top: 102px; left: 50%; right: auto; gap: 4px; padding: 0 2px; max-width: calc(100vw - 16px); overflow-x: auto; }
  .zone-bar .zone-chip { padding: 6px 10px 6px 8px; font-size: 9.5px; }
  .tool-cluster { left: auto; right: 12px; top: auto; bottom: 92px; align-items: flex-end; }
  .tool-tray { left: auto; right: 0; top: auto; bottom: calc(100% + 8px); width: min(226px, calc(100vw - 24px)); }
  .hill-note { top: 142px; left: 12px; }
}
@media (max-width: 420px) {
  .zone-bar .zone-chip .zc-tx { max-width: 78px; overflow: hidden; text-overflow: ellipsis; }
}
