:root {
  --ink: #27332d;
  --ink-soft: #5f695f;
  --paper: #f8f1e3;
  --paper-deep: #efe2ca;
  --cream: #fffaf0;
  --moss: #4f755c;
  --moss-deep: #29483b;
  --peach: #d9816d;
  --peach-deep: #a95148;
  --gold: #d5a95d;
  --line: rgba(54, 67, 56, .16);
  --glass: rgba(255, 249, 237, .76);
  --shadow: 0 28px 70px rgba(53, 46, 36, .18);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 17%, rgba(255, 230, 177, .92) 0, rgba(255, 230, 177, 0) 17%),
    linear-gradient(180deg, #7da4ad 0%, #b7cac2 34%, #efc7a7 70%, #edb58f 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background 1.2s ease;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  opacity: .16;
  mix-blend-mode: soft-light;
}
body.night {
  background:
    radial-gradient(circle at 76% 15%, rgba(235, 226, 187, .5) 0, rgba(235, 226, 187, 0) 13%),
    radial-gradient(circle at 50% 68%, rgba(135, 156, 159, .16) 0, transparent 52%),
    linear-gradient(180deg, #192b3a 0%, #304756 40%, #6e7169 74%, #8f7465 100%);
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--peach-deep);
  outline-offset: 3px;
}
#app { position: relative; height: 100%; isolation: isolate; }
#scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
  z-index: 2;
  transition: filter 1.2s ease;
}
#scene-canvas.dragging { cursor: grabbing; }
body.night #scene-canvas { filter: brightness(.6) saturate(.72) contrast(1.08) hue-rotate(-4deg); }
.sky-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: filter 1.2s ease;
}
.sun-disc {
  position: absolute;
  width: clamp(90px, 12vw, 170px);
  aspect-ratio: 1;
  top: 10%;
  right: 18%;
  border-radius: 50%;
  background: #ffe5a5;
  box-shadow: 0 0 50px 16px rgba(255, 220, 144, .55), 0 0 150px 65px rgba(255, 211, 152, .22);
  opacity: .92;
  transition: all 1.2s ease;
}
.sun-disc::before, .sun-disc::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(174, 158, 124, .15);
  opacity: 0;
  transition: opacity 1s ease;
}
.sun-disc::before { width: 20%; height: 20%; left: 24%; top: 28%; box-shadow: 24px 20px 0 rgba(174, 158, 124, .12); }
.sun-disc::after { width: 12%; height: 12%; right: 24%; bottom: 25%; box-shadow: -18px -25px 0 rgba(174, 158, 124, .1); }
body.night .sun-disc {
  background: #f1ead0;
  box-shadow: 0 0 45px 8px rgba(232, 232, 202, .25), 0 0 100px 35px rgba(190, 210, 215, .09);
  opacity: .86;
}
body.night .sun-disc::before, body.night .sun-disc::after { opacity: 1; }
.cloud {
  position: absolute;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 249, 233, .3);
  filter: blur(12px);
  animation: cloud-drift 36s linear infinite alternate;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: inherit; }
.cloud::before { width: 42%; height: 240%; left: 18%; bottom: 10%; }
.cloud::after { width: 52%; height: 180%; right: 12%; bottom: -16%; }
.cloud-a { width: 25vw; top: 19%; left: -3%; opacity: .65; }
.cloud-b { width: 19vw; top: 31%; right: 4%; opacity: .4; animation-delay: -12s; animation-duration: 44s; }
.cloud-c { width: 15vw; top: 8%; right: 37%; opacity: .28; animation-delay: -21s; }
body.night .cloud { background: rgba(154, 178, 190, .1); }
@keyframes cloud-drift { from { transform: translateX(-1vw); } to { transform: translateX(4vw); } }
.sky-grain {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(105deg, transparent 0 12px, rgba(255, 255, 255, .012) 13px 14px),
    radial-gradient(ellipse at center, transparent 48%, rgba(74, 65, 52, .16) 100%);
}
.scene-shade {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(44, 47, 38, .14) 0%, transparent 27%, transparent 73%, rgba(52, 45, 35, .08) 100%),
    linear-gradient(0deg, rgba(42, 43, 34, .18) 0%, transparent 25%, transparent 80%, rgba(255, 248, 223, .08) 100%);
}

body.night .scene-shade {
  background:
    radial-gradient(ellipse at 77% 10%, rgba(239, 236, 203, .14) 0%, rgba(239, 236, 203, .06) 5%, transparent 15%),
    radial-gradient(1.4px 1.4px at 11% 16%, rgba(255, 246, 211, .9) 0 45%, transparent 60%),
    radial-gradient(1px 1px at 21% 9%, rgba(255, 246, 211, .72) 0 45%, transparent 60%),
    radial-gradient(1.5px 1.5px at 32% 21%, rgba(255, 246, 211, .8) 0 45%, transparent 60%),
    radial-gradient(1px 1px at 43% 12%, rgba(255, 246, 211, .58) 0 45%, transparent 60%),
    radial-gradient(1.2px 1.2px at 56% 18%, rgba(255, 246, 211, .76) 0 45%, transparent 60%),
    radial-gradient(1px 1px at 67% 8%, rgba(255, 246, 211, .5) 0 45%, transparent 60%),
    radial-gradient(1.6px 1.6px at 88% 20%, rgba(255, 246, 211, .7) 0 45%, transparent 60%),
    radial-gradient(1px 1px at 94% 9%, rgba(255, 246, 211, .6) 0 45%, transparent 60%),
    linear-gradient(180deg, rgba(9, 24, 39, .24) 0%, rgba(10, 23, 32, .12) 46%, rgba(7, 16, 20, .28) 100%);
  transition: background 1.2s ease;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) 30px 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.brand-seal {
  width: 43px;
  height: 51px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(91, 59, 46, .7);
  color: #6d493d;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.18;
  letter-spacing: .15em;
  background: rgba(255, 244, 221, .4);
  backdrop-filter: blur(8px);
  transition: transform .35s ease, background .35s ease;
}
.brand:hover .brand-seal { transform: rotate(-3deg); background: rgba(255, 244, 221, .72); }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong {
  color: #2d3c34;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .17em;
}
.brand-copy small {
  color: rgba(45, 60, 52, .58);
  font-size: 7px;
  letter-spacing: .24em;
}
.top-actions { display: flex; gap: 8px; align-items: center; }
.round-action {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(65, 76, 66, .18);
  border-radius: 999px;
  background: rgba(255, 248, 233, .38);
  backdrop-filter: blur(14px);
  cursor: pointer;
  color: rgba(39, 51, 45, .82);
  font-size: 11px;
  letter-spacing: .04em;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.round-action:hover { background: rgba(255, 248, 233, .7); transform: translateY(-1px); }
.round-action[aria-pressed="true"] { background: rgba(243, 236, 215, .85); border-color: rgba(95, 91, 68, .3); }
.round-action.square { width: 39px; justify-content: center; padding: 0; }
.round-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round-action svg path:first-child { fill: none; }
#sound-toggle svg path:first-child { fill: currentColor; stroke: none; }
.time-icon { font-family: var(--serif); font-size: 18px; line-height: 1; transform: translateY(-1px); }
body.night .time-icon { transform: rotate(180deg); }

.hotspot-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.hotspot {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff9e8;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .45s ease;
  white-space: nowrap;
  filter: drop-shadow(0 3px 8px rgba(34, 41, 34, .3));
}
.hotspot.visible { opacity: 1; }
.hotspot::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 1px;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 249, 230, .85), transparent);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .25s ease;
}
.hotspot:hover::after { opacity: .8; }
.hotspot-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  border: 1px solid rgba(255, 249, 232, .9);
  border-radius: 50%;
  background: rgba(255, 248, 230, .55);
  box-shadow: 0 0 0 5px rgba(255, 248, 230, .12), 0 0 18px rgba(255, 229, 168, .7);
}
.hotspot-dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 249, 232, .25);
  border-radius: inherit;
  animation: hotspot-pulse 2.6s ease-out infinite;
}
@keyframes hotspot-pulse { 0% { transform: scale(.65); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.hotspot-label {
  padding: 5px 9px 6px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .08em;
  background: rgba(40, 52, 41, .46);
  border: 1px solid rgba(255, 249, 230, .24);
  backdrop-filter: blur(7px);
  transition: background .2s ease;
}
.hotspot:hover .hotspot-label { background: rgba(84, 75, 55, .75); }
.hotspot:hover .hotspot-dot { transform: scale(1.2); }

.welcome-card {
  position: fixed;
  z-index: 15;
  left: max(32px, env(safe-area-inset-left));
  bottom: 126px;
  width: min(390px, calc(100vw - 64px));
  padding: 28px 30px 25px;
  border: 1px solid rgba(87, 75, 55, .15);
  border-radius: 2px 26px 2px 2px;
  background:
    linear-gradient(140deg, rgba(255, 252, 242, .88), rgba(247, 234, 208, .77)),
    rgba(255, 250, 239, .7);
  box-shadow: 0 28px 70px rgba(68, 55, 41, .21);
  backdrop-filter: blur(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.welcome-card::before {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  right: 19px;
  top: 18px;
  border-radius: 50% 0 50% 50%;
  background: radial-gradient(circle at 38% 38%, rgba(214, 130, 111, .32), transparent 60%);
  transform: rotate(22deg);
}
.welcome-card.dismissed { opacity: 0; transform: translateY(18px); pointer-events: none; }
.welcome-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--peach-deep);
  font-size: 9px;
  letter-spacing: .24em;
}
.welcome-kicker span { width: 24px; height: 1px; background: currentColor; opacity: .65; }
.welcome-card h1 {
  margin: 16px 0 13px;
  color: #2d3c34;
  font-family: var(--serif);
  font-size: clamp(42px, 4.4vw, 58px);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.08;
}
.welcome-lead {
  margin: 0;
  color: #39463e;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .03em;
}
.welcome-note {
  margin: 10px 0 22px;
  color: rgba(57, 70, 62, .62);
  font-size: 11px;
  line-height: 1.7;
}
.welcome-actions { display: flex; gap: 9px; align-items: center; }
.btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .07em;
  transition: transform .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff9eb; background: var(--moss-deep); box-shadow: 0 8px 18px rgba(46, 78, 61, .22); }
.btn-primary:hover { background: #365d49; }
.btn-primary span { display: inline-block; margin-left: 10px; font-size: 14px; }
.btn-ghost { color: #586157; background: transparent; border-color: rgba(61, 75, 62, .24); }
.btn-ghost:hover { background: rgba(255, 255, 255, .38); border-color: rgba(61, 75, 62, .4); }
.btn-soft { color: var(--moss-deep); background: rgba(79, 117, 92, .1); border-color: rgba(79, 117, 92, .18); }
.btn-danger { color: #8f463e; background: rgba(153, 76, 64, .08); border-color: rgba(153, 76, 64, .18); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 10px; }
.welcome-index {
  position: absolute;
  right: 24px;
  bottom: 21px;
  color: rgba(62, 77, 64, .2);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: .2em;
}

.location-card {
  position: fixed;
  z-index: 12;
  top: 100px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(45, 59, 48, .72);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .5s ease, transform .5s ease;
}
.location-card.visible { opacity: 1; transform: none; }
.location-number { font-family: var(--serif); font-size: 12px; color: var(--peach-deep); }
.location-copy { display: flex; flex-direction: column; gap: 2px; }
.location-copy small { font-size: 7px; letter-spacing: .22em; opacity: .55; }
.location-copy strong { font-family: var(--serif); font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.location-line { width: 32px; height: 1px; background: rgba(53, 66, 55, .25); }
.location-season { font-size: 8px; letter-spacing: .16em; opacity: .58; }

.journey-dock {
  position: fixed;
  z-index: 18;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(255, 249, 231, .25);
  border-radius: 999px;
  background: rgba(36, 51, 42, .52);
  box-shadow: 0 16px 45px rgba(39, 43, 33, .19);
  backdrop-filter: blur(17px);
  transform: translateX(-50%);
}
.dock-btn {
  min-width: 70px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 248, 232, .65);
  background: transparent;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, transform .22s ease;
}
.dock-btn:hover { color: #fff8e7; transform: translateY(-1px); }
.dock-btn.active { color: #2f4436; background: rgba(255, 246, 220, .92); }
.dock-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dock-btn span { font-size: 8px; letter-spacing: .08em; }
.drag-hint {
  position: fixed;
  z-index: 11;
  left: 50%;
  bottom: 92px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(43, 55, 47, .55);
  font-size: 8px;
  letter-spacing: .1em;
  transform: translateX(-50%);
  transition: opacity .8s ease;
  pointer-events: none;
}
.drag-hint.fade { opacity: 0; }
.mouse-mark {
  width: 11px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  position: relative;
}
.mouse-mark::after { content: ""; position: absolute; width: 1px; height: 3px; background: currentColor; left: 50%; top: 3px; }
.scene-signature {
  position: fixed;
  z-index: 10;
  left: 30px;
  bottom: 25px;
  color: rgba(42, 55, 47, .4);
  font-size: 7px;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fdf6e7;
  background: #334b3d;
  transition: opacity .9s ease, visibility .9s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-screen p { margin: 8px 0 0; font-family: var(--serif); font-size: 15px; letter-spacing: .2em; }
.loading-screen span { font-size: 7px; letter-spacing: .25em; opacity: .5; }
.loader-bloom { position: relative; width: 48px; height: 48px; animation: loader-spin 5s linear infinite; }
.loader-bloom i { position: absolute; left: 21px; top: 0; width: 7px; height: 25px; border-radius: 100% 0 100% 0; background: #e7b29d; transform-origin: 3.5px 24px; opacity: .85; }
.loader-bloom i:nth-child(1) { transform: rotate(0deg); }
.loader-bloom i:nth-child(2) { transform: rotate(72deg); }
.loader-bloom i:nth-child(3) { transform: rotate(144deg); }
.loader-bloom i:nth-child(4) { transform: rotate(216deg); }
.loader-bloom i:nth-child(5) { transform: rotate(288deg); }
@keyframes loader-spin { to { transform: rotate(360deg); } }

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal-root.open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(29, 39, 33, .42);
  backdrop-filter: blur(9px);
  cursor: pointer;
}
.modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid rgba(81, 70, 52, .17);
  border-radius: 4px 32px 4px 4px;
  background:
    radial-gradient(circle at 95% 0, rgba(222, 174, 140, .16), transparent 30%),
    linear-gradient(135deg, rgba(255, 250, 240, .98), rgba(244, 234, 215, .98));
  box-shadow: 0 38px 110px rgba(28, 34, 28, .35);
  transform: translateY(20px) scale(.985);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 94, 80, .3) transparent;
}
.modal-root.open .modal-card { transform: none; }
.modal-card::-webkit-scrollbar { width: 8px; }
.modal-card::-webkit-scrollbar-thumb { background: rgba(80, 94, 80, .25); border-radius: 99px; }
.modal-close {
  position: sticky;
  z-index: 5;
  float: right;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  margin: 16px 16px -52px 0;
  border: 1px solid rgba(60, 74, 62, .15);
  border-radius: 50%;
  background: rgba(255, 250, 239, .76);
  color: rgba(52, 65, 55, .66);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 30px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: #fffaf0; transform: rotate(5deg); }
#modal-content { min-height: 100%; }
.panel {
  padding: 46px 52px 50px;
}
.panel-head { position: relative; max-width: 660px; padding-right: 40px; }
.panel-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--peach-deep);
  font-size: 8px;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.panel-kicker::before { content: ""; width: 25px; height: 1px; background: currentColor; }
.panel h2 {
  margin: 0;
  color: #2e3e34;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
}
.panel-lead {
  max-width: 620px;
  margin: 14px 0 0;
  color: #596359;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.85;
}
.panel-rule { width: 100%; height: 1px; margin: 28px 0; background: linear-gradient(90deg, var(--line), transparent); }
.panel h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .05em; }
.panel p { line-height: 1.8; }
.muted { color: #7a8177; }
.small { font-size: 11px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag {
  padding: 6px 10px 7px;
  border: 1px solid rgba(77, 105, 83, .18);
  border-radius: 999px;
  color: #4e6857;
  background: rgba(100, 138, 108, .07);
  font-size: 9px;
  letter-spacing: .06em;
}
.two-col { display: grid; grid-template-columns: 1.08fr .92fr; gap: 26px; align-items: stretch; }
.home-story { margin-top: 30px; }
.family-panel {
  padding: 26px;
  border: 1px solid rgba(74, 89, 75, .13);
  border-radius: 2px 20px 2px 2px;
  background: rgba(255, 250, 239, .55);
}
.family-lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.family-member {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  background: rgba(89, 119, 93, .06);
  text-align: center;
}
.family-member .figure-icon { width: 42px; height: 55px; position: relative; }
.family-member .avatar-photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center; border: 3px solid rgba(255, 250, 237, .9); box-shadow: 0 4px 14px rgba(63, 55, 43, .16); background: #eee4d2; }
.family-member .avatar-photo.avatar-woman { transform: rotate(6deg) scale(1.04); }
.family-member .avatar-photo.avatar-man { transform: rotate(-1deg) scale(1.04); }
.family-member .avatar-photo.avatar-cat { transform: rotate(-12deg) scale(1.04); }
.figure-icon::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 0;
  left: 10px;
  border-radius: 50%;
  background: #e0b18e;
  box-shadow: inset 0 5px 0 #66513e;
}
.figure-icon::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 29px;
  left: 6px;
  bottom: 1px;
  border-radius: 12px 12px 4px 4px;
  background: #66866f;
}
.family-member:nth-child(2) .figure-icon::before { background: #d9a985; box-shadow: inset 0 8px 0 #493e35; }
.family-member:nth-child(2) .figure-icon::after { background: #b56c5c; }
.family-member.cat .figure-icon { height: 47px; }
.family-member.cat .figure-icon::before {
  width: 30px; height: 26px; top: 7px; left: 6px; border-radius: 45% 45% 40% 40%;
  background: #8999a0; box-shadow: inset 9px 0 0 #c6a06e, inset 0 -8px 0 #e2d1b3;
}
.family-member.cat .figure-icon::after { width: 33px; height: 18px; left: 4px; bottom: 7px; border-radius: 50% 50% 35% 35%; background: #8999a0; box-shadow: inset 7px 0 0 #c6a06e; }
.family-member strong { font-family: var(--serif); font-size: 12px; font-weight: 500; }
.family-member span { color: #7d847a; font-size: 8px; letter-spacing: .08em; }
.quote-card {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  overflow: hidden;
  background: #3d5c49;
  color: #f8eedb;
  border-radius: 2px 22px 2px 2px;
}
.quote-card::before {
  content: "“";
  position: absolute;
  right: 18px;
  top: -22px;
  color: rgba(249, 237, 211, .08);
  font-family: Georgia, serif;
  font-size: 170px;
  line-height: 1;
}
.quote-card blockquote { position: relative; margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.7; letter-spacing: .05em; }
.quote-card small { color: rgba(248, 238, 219, .58); font-size: 9px; line-height: 1.8; letter-spacing: .06em; }
.quote-leaf { width: 40px; height: 55px; margin-bottom: 28px; border: 1px solid rgba(248, 238, 219, .25); border-radius: 100% 0 100% 0; transform: rotate(-18deg); position: relative; }
.quote-leaf::after { content: ""; position: absolute; width: 1px; height: 68px; background: rgba(248, 238, 219, .22); left: 22px; top: 20px; transform: rotate(35deg); transform-origin: top; }

.veg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 24px; }
.veg-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(76, 92, 76, .12);
  border-radius: 2px 14px 2px 2px;
  background: rgba(255, 250, 239, .66);
  text-align: center;
}
.veg-card.highlight { background: #f4e3c2; border-color: rgba(168, 129, 76, .25); }
.veg-emoji { font-size: 30px; filter: saturate(.75); }
.veg-card strong { font-family: var(--serif); font-size: 13px; font-weight: 500; }
.veg-card small { color: #869084; font-size: 8px; }
.farm-lower { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 18px; }
.camp-card, .potato-card {
  padding: 24px;
  border-radius: 2px 18px 2px 2px;
  background: rgba(255, 250, 239, .58);
  border: 1px solid rgba(75, 90, 75, .12);
}
.potato-card { background: #e9d6b4; }
.camp-status { display: flex; align-items: center; gap: 10px; margin: 15px 0 18px; color: #6c765f; font-size: 10px; letter-spacing: .08em; }
.camp-status i { width: 8px; height: 8px; border-radius: 50%; background: #d6974e; box-shadow: 0 0 0 5px rgba(214, 151, 78, .12); }
.camp-status.off i { background: #9da495; box-shadow: none; }
.fire-orb { display: inline-block; width: 34px; height: 34px; position: relative; margin-right: 5px; }
.fire-orb::before { content: ""; position: absolute; inset: 8px 10px 3px; border-radius: 50% 50% 50% 0; background: #dd8755; transform: rotate(-45deg); box-shadow: 0 0 20px rgba(221, 135, 85, .45); }
.fire-orb::after { content: ""; position: absolute; inset: 15px 15px 7px; border-radius: 50% 50% 50% 0; background: #f4c46f; transform: rotate(-45deg); }
body.fire-off .fire-orb::before, body.fire-off .fire-orb::after { background: #aab0a4; box-shadow: none; }
.potato-fact { display: flex; gap: 14px; align-items: center; }
.potato-fact .potato-emoji { font-size: 40px; }
.potato-fact strong { display: block; font-family: var(--serif); font-size: 14px; margin-bottom: 5px; }
.potato-fact span { color: #7e7767; font-size: 9px; line-height: 1.6; }

.memory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 17px; }
.upload-zone {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 1px dashed rgba(84, 111, 89, .36);
  border-radius: 14px;
  background: rgba(103, 135, 106, .06);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  text-align: left;
}
.upload-zone:hover, .upload-zone.dragover { background: rgba(103, 135, 106, .12); border-color: rgba(84, 111, 89, .62); }
.upload-plus { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #52745f; color: #fff8e9; font-family: var(--serif); font-size: 24px; font-weight: 300; }
.upload-zone strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 13px; font-weight: 500; }
.upload-zone span { display: block; color: #7b8478; font-size: 9px; line-height: 1.6; }
.upload-zone .upload-plus { display: grid; place-items: center; color: #fff8e9; font-family: var(--serif); font-size: 24px; font-weight: 300; line-height: 1; }
.memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
.polaroid {
  position: relative;
  min-width: 0;
  padding: 9px 9px 34px;
  border: 0;
  border-radius: 2px;
  background: #fffdf6;
  box-shadow: 0 10px 24px rgba(67, 58, 43, .1);
  transform: rotate(var(--tilt, 0deg));
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: left;
}
.polaroid:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 16px 32px rgba(67, 58, 43, .16); }
.polaroid-photo { aspect-ratio: 1.17; overflow: hidden; display: grid; place-items: center; background: #ddd; }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }
.memory-art { position: relative; width: 100%; height: 100%; overflow: hidden; }
.memory-art.sunset { background: linear-gradient(160deg, #e8af94, #d49a82 45%, #677c68 46%, #405c48); }
.memory-art.sunset::before { content: ""; position: absolute; width: 42%; height: 42%; border-radius: 50%; left: 29%; top: 14%; background: rgba(253, 226, 164, .75); box-shadow: 0 0 24px rgba(255, 220, 150, .6); }
.memory-art.sunset::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(160deg, transparent 22%, rgba(31, 55, 40, .55) 23% 30%, transparent 31%), repeating-linear-gradient(170deg, transparent 0 12px, rgba(220, 227, 190, .08) 13px 14px); }
.memory-art.morning { background: linear-gradient(160deg, #b5ccca, #e4d9b4 55%, #819763 56%, #587653); }
.memory-art.morning::before { content: ""; position: absolute; width: 70%; height: 38%; left: 15%; top: 20%; border-radius: 50% 50% 10% 10%; background: rgba(255, 250, 225, .24); filter: blur(10px); }
.memory-art.morning::after { content: ""; position: absolute; inset: 48% 0 0; background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(48, 82, 59, .25) 21px 23px, transparent 24px 40px); }
.memory-art.dinner { background: linear-gradient(145deg, #3f5143, #9c7a5b 66%, #d5ad7d); }
.memory-art.dinner::before { content: ""; position: absolute; width: 40%; height: 40%; left: 30%; top: 25%; border-radius: 50%; background: radial-gradient(circle, #f5c972 0 20%, #ef9b56 21% 38%, transparent 40%); box-shadow: 0 0 36px rgba(245, 183, 94, .7); }
.memory-art.dinner::after { content: ""; position: absolute; inset: 58% 0 0; background: rgba(41, 50, 39, .55); }
.polaroid-caption { position: absolute; left: 12px; right: 12px; bottom: 8px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.polaroid-caption strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-size: 11px; font-weight: 500; }
.polaroid-caption small { flex: none; color: #9a978d; font-size: 7px; }
.photo-delete {
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(44, 49, 42, .5);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease;
}
.polaroid:hover .photo-delete { opacity: 1; }
.memory-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); color: #7b8377; font-size: 9px; line-height: 1.7; }

.message-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; margin-top: 28px; }
.mail-form { padding: 26px; border-radius: 2px 18px 2px 2px; background: #f0e2c8; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.field label { color: #677064; font-size: 9px; letter-spacing: .1em; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid rgba(74, 91, 75, .16);
  border-radius: 2px 10px 2px 2px;
  background: rgba(255, 251, 241, .74);
  color: var(--ink);
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.6;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus { border-color: rgba(79, 117, 92, .55); background: #fffaf0; outline: none; }
.field textarea { min-height: 112px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.messages-list { max-height: 475px; overflow: auto; padding-right: 8px; scrollbar-width: thin; }
.message-card {
  position: relative;
  padding: 18px 18px 16px 23px;
  border-bottom: 1px solid rgba(67, 80, 68, .12);
}
.message-card::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50% 0 50% 50%;
  left: 6px;
  top: 21px;
  background: #d38b79;
  transform: rotate(20deg);
}
.message-card header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 7px; }
.message-card strong { font-family: var(--serif); font-size: 13px; font-weight: 500; }
.message-card time { color: #999c91; font-size: 8px; }
.message-card p { margin: 0; color: #59645a; font-family: var(--serif); font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-card .sample-label { display: inline-block; margin-top: 8px; color: #aaa79d; font-size: 8px; }
.mail-count { color: #7d8478; font-size: 9px; letter-spacing: .08em; }

.library-layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; margin-top: 28px; }
.book-shelf {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 14px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(80, 92, 76, .13);
  border-radius: 2px 18px 2px 2px;
  background: rgba(255, 250, 239, .65);
}
.book-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #35453b;
  text-align: left;
  cursor: pointer;
  transition: transform .23s ease;
}
.book-card:hover { transform: translateY(-5px) rotate(-.45deg); }
.book-card:focus-visible { outline: 2px solid rgba(76, 105, 84, .55); outline-offset: 3px; }
.book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: .74;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 15px 12px 14px 18px;
  overflow: hidden;
  border-radius: 2px 9px 2px 2px;
  color: var(--book-ink, #fff8e8);
  background:
    radial-gradient(circle at 90% 4%, rgba(255, 255, 255, .16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, .04), transparent 50%),
    var(--book-bg, #7d665f);
  box-shadow: 0 10px 22px rgba(57, 51, 40, .18), inset -1px 0 rgba(0, 0, 0, .13);
  transition: box-shadow .23s ease;
}
.book-card:hover .book-cover { box-shadow: 0 17px 30px rgba(57, 51, 40, .24), inset -1px 0 rgba(0, 0, 0, .13); }
.book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 9px;
  width: 1px;
  background: rgba(255, 255, 255, .24);
  box-shadow: 2px 0 rgba(0, 0, 0, .07);
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035), transparent 35%),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, .012) 5px);
  pointer-events: none;
}
.book-cover-top { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.book-card .book-category { position: relative; max-width: 78%; font-size: 6px; line-height: 1.5; letter-spacing: .16em; opacity: .72; }
.book-cover-year { flex: none; font-size: 6px; letter-spacing: .08em; opacity: .55; }
.book-cover-title {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--book-accent) 42%, transparent);
  font-family: var(--serif);
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.24;
}
.book-cover-author { position: relative; z-index: 2; margin-top: 7px; font-size: 7px; letter-spacing: .07em; line-height: 1.5; opacity: .68; }
.book-cover-shape,
.book-cover-shape::before,
.book-cover-shape::after { position: absolute; content: ""; pointer-events: none; }
.book-cover-shape { z-index: 1; opacity: .68; }
.book-cover-shape::before,
.book-cover-shape::after { inset: 0; }
.cover-solitude .book-cover-shape { width: 86px; height: 86px; right: -24px; top: 54px; border: 1px solid var(--book-accent); border-radius: 50%; box-shadow: 0 0 0 13px color-mix(in srgb, var(--book-accent) 16%, transparent); }
.cover-solitude .book-cover-shape::before { border-radius: 50%; border: 1px solid color-mix(in srgb, var(--book-accent) 48%, transparent); transform: scale(.58); }
.cover-solitude .book-cover-shape::after { width: 1px; height: 110px; left: 43px; top: -20px; background: var(--book-accent); transform: rotate(38deg); }
.cover-tea .book-cover-shape { width: 72px; height: 40px; right: -13px; top: 83px; border: 1px solid var(--book-accent); border-radius: 0 0 50% 50%; }
.cover-tea .book-cover-shape::before { width: 88px; height: 1px; left: -8px; top: 45px; background: var(--book-accent); }
.cover-tea .book-cover-shape::after { width: 24px; height: 24px; left: 25px; top: -22px; border-top: 1px solid var(--book-accent); border-radius: 50%; transform: rotate(14deg); }
.cover-earth .book-cover-shape { inset: auto -20px 46px 22px; height: 54px; border-top: 1px solid var(--book-accent); border-bottom: 1px solid var(--book-accent); background: repeating-linear-gradient(170deg, transparent 0 10px, color-mix(in srgb, var(--book-accent) 38%, transparent) 11px 12px); transform: rotate(-7deg); }
.cover-earth .book-cover-shape::before { border-top: 1px solid color-mix(in srgb, var(--book-accent) 42%, transparent); transform: translateY(16px); }
.cover-words .book-cover-shape { inset: 49px 12px 48px 20px; border: 1px solid var(--book-accent); background: repeating-linear-gradient(90deg, transparent 0 18px, color-mix(in srgb, var(--book-accent) 30%, transparent) 19px 20px), repeating-linear-gradient(0deg, transparent 0 18px, color-mix(in srgb, var(--book-accent) 30%, transparent) 19px 20px); }
.cover-words .book-cover-shape::before { inset: 7px; border: 1px solid color-mix(in srgb, var(--book-accent) 35%, transparent); }
.cover-spectacle .book-cover-shape { width: 66px; height: 66px; right: 12px; top: 54px; border: 1px solid var(--book-accent); border-radius: 50%; background: color-mix(in srgb, var(--book-accent) 13%, transparent); }
.cover-spectacle .book-cover-shape::before { width: 118px; height: 14px; right: 22px; top: 86px; border-top: 1px solid var(--book-accent); border-bottom: 1px solid var(--book-accent); }
.cover-invisible .book-cover-shape { inset: 60px -14px auto 24px; height: 76px; border: 1px dashed var(--book-accent); transform: skewY(-12deg); }
.cover-invisible .book-cover-shape::before { border-top: 1px solid color-mix(in srgb, var(--book-accent) 48%, transparent); transform: translateY(19px); }
.cover-invisible .book-cover-shape::after { border-top: 1px solid color-mix(in srgb, var(--book-accent) 31%, transparent); transform: translateY(38px); }
.cover-river .book-cover-shape { inset: 62px -16px auto 18px; height: 42px; border-top: 2px solid var(--book-accent); border-radius: 50%; transform: rotate(-8deg); }
.cover-river .book-cover-shape::before { height: 34px; top: 13px; border-top: 1px solid color-mix(in srgb, var(--book-accent) 45%, transparent); border-radius: 50%; }
.cover-river .book-cover-shape::after { height: 28px; top: 27px; border-top: 1px solid color-mix(in srgb, var(--book-accent) 28%, transparent); border-radius: 50%; }
.cover-illness .book-cover-shape { width: 74px; height: 74px; right: -8px; top: 53px; border: 1px solid var(--book-accent); border-radius: 50%; }
.cover-illness .book-cover-shape::before { background: linear-gradient(90deg, transparent 49%, var(--book-accent) 50% 51%, transparent 52%); }
.cover-illness .book-cover-shape::after { inset: 12px; border: 1px solid color-mix(in srgb, var(--book-accent) 38%, transparent); border-radius: 50%; }
.cover-note .book-cover-shape { width: 72px; height: 72px; right: -14px; top: 58px; border: 1px solid var(--book-accent); transform: rotate(24deg); }
.book-card-summary { display: flex; flex-direction: column; gap: 4px; padding: 0 3px; }
.book-card-summary strong {
  display: -webkit-box;
  overflow: hidden;
  color: #526054;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.book-card-summary small { color: #99988e; font-size: 7px; letter-spacing: .05em; }
.book-note-panel { display: flex; flex-direction: column; padding: 24px; border-radius: 2px 18px 2px 2px; background: rgba(75, 106, 83, .09); }
.book-note-panel h3 { margin-bottom: 12px; }
.book-note-panel p { margin: 0 0 18px; color: #647065; font-family: var(--serif); font-size: 12px; line-height: 1.9; }
.book-note-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.reader-view { padding: 58px 66px 64px; }
.reader-back { margin-bottom: 26px; }
.reader-meta { color: var(--peach-deep); font-size: 8px; letter-spacing: .2em; }
.reader-view h2 { max-width: 650px; margin: 13px 0 0; color: #2e3e34; font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 500; letter-spacing: .06em; line-height: 1.25; }
.reader-book-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 42px; align-items: start; margin-top: 10px; }
.reader-book-cover-wrap .book-cover { min-height: 284px; aspect-ratio: .72; padding: 22px 17px 20px 24px; border-radius: 2px 13px 2px 2px; box-shadow: 0 20px 38px rgba(57, 51, 40, .23), inset -1px 0 rgba(0, 0, 0, .13); }
.reader-book-cover-wrap .book-cover-title { font-size: 27px; }
.reader-book-cover-wrap .book-cover-author { font-size: 9px; }
.reader-book-author { margin: 9px 0 0; color: #8b735e; font-family: var(--serif); font-size: 12px; letter-spacing: .08em; }
.reader-book-copy .reader-body { margin-top: 22px; font-size: 14px; line-height: 2.05; }
.reader-book-note { margin: 25px 0 0; padding: 13px 16px; border-left: 2px solid rgba(190, 126, 98, .45); background: rgba(164, 113, 83, .06); color: #8b7d6d; font-family: var(--serif); font-size: 10px; line-height: 1.8; }
.reader-body {
  max-width: 680px;
  margin-top: 28px;
  color: #484f47;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.15;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reader-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: #7e847a; font-size: 9px; }
.new-note-form { margin-top: 24px; padding: 24px; border: 1px solid rgba(73, 91, 74, .15); border-radius: 2px 16px 2px 2px; background: rgba(255, 250, 239, .64); }
.new-note-form[hidden] { display: none; }
.note-file-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.note-file-button { cursor: pointer; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

.about-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.about-portrait {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 27px;
  border-radius: 2px 50% 2px 2px;
  color: #fdf5e4;
  background:
    radial-gradient(circle at 38% 28%, rgba(248, 215, 170, .34) 0 12%, transparent 13%),
    linear-gradient(160deg, #78907a 0%, #3e5e49 56%, #273f35 100%);
}
.about-portrait::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  left: 50%;
  top: 75px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(235, 198, 154, .8);
  box-shadow: 0 98px 0 32px #b97061, 0 116px 0 18px #e1c092;
}
.about-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(29, 53, 40, .7), transparent 58%); }
.about-portrait > * { position: relative; z-index: 1; }
.about-portrait strong { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .12em; }
.about-portrait span { margin-top: 6px; color: rgba(253, 245, 228, .62); font-size: 8px; letter-spacing: .18em; }
.about-copy p { color: #596359; font-family: var(--serif); font-size: 13px; line-height: 2; }
.about-principles { display: grid; gap: 12px; margin-top: 24px; }
.principle { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.principle span { color: var(--peach-deep); font-family: var(--serif); font-size: 11px; }
.principle strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 12px; font-weight: 500; }
.principle small { color: #7e8479; font-size: 9px; line-height: 1.6; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.help-item { padding: 20px; border: 1px solid var(--line); border-radius: 2px 14px 2px 2px; background: rgba(255, 250, 239, .55); }
.help-item .help-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 15px; border-radius: 50%; background: rgba(80, 113, 88, .1); color: #4d6a56; font-family: var(--serif); }
.help-item strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 12px; font-weight: 500; }
.help-item p { margin: 0; color: #7a8177; font-size: 9px; line-height: 1.7; }
.help-note { margin-top: 24px; padding: 17px 20px; border-radius: 12px; background: rgba(196, 143, 101, .1); color: #8b6d57; font-size: 10px; line-height: 1.8; }

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px;
  background: rgba(22, 29, 24, .82);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.photo-lightbox.open { opacity: 1; visibility: visible; }
.lightbox-close {
  position: absolute;
  right: 24px;
  top: 20px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}
.lightbox-nav {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-family: var(--serif);
  font-size: 30px;
  cursor: pointer;
}
.photo-lightbox figure { max-width: min(980px, 78vw); max-height: 82vh; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.photo-lightbox img { max-width: 100%; max-height: 72vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.photo-lightbox figcaption { color: rgba(255, 249, 236, .75); font-family: var(--serif); font-size: 13px; letter-spacing: .08em; }

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 96px;
  max-width: calc(100vw - 40px);
  padding: 10px 16px;
  border: 1px solid rgba(255, 247, 228, .25);
  border-radius: 999px;
  color: #fff9e9;
  background: rgba(43, 64, 50, .86);
  box-shadow: 0 10px 30px rgba(34, 44, 35, .22);
  backdrop-filter: blur(10px);
  font-size: 10px;
  letter-spacing: .05em;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.noscript { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #334b3d; color: #fff; font-family: var(--serif); }

@media (max-width: 900px) {
  .welcome-card { width: 345px; left: 22px; bottom: 112px; padding: 23px 24px 21px; }
  .welcome-card h1 { font-size: 44px; }
  .welcome-lead { font-size: 14px; }
  .location-card { top: 86px; right: 22px; }
  .location-line, .location-season { display: none; }
  .scene-signature { display: none; }
  .panel { padding: 38px 32px 40px; }
  .veg-grid { grid-template-columns: repeat(3, 1fr); }
  .family-lineup { grid-template-columns: repeat(3, 1fr); }
  .message-layout, .library-layout, .about-layout { grid-template-columns: minmax(0, 1fr); }
  .about-portrait { min-height: 250px; }
  .messages-list { max-height: 340px; }
}

@media (max-width: 700px) {
  .topbar { padding: max(14px, env(safe-area-inset-top)) 14px 0; }
  .brand { gap: 9px; }
  .brand-seal { width: 36px; height: 44px; font-size: 12px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 6px; }
  .round-action { min-width: 38px; width: 38px; justify-content: center; padding: 0; }
  .round-action > span:not(.time-icon) { display: none; }
  .round-action.square { width: 38px; }
  .welcome-card { left: 14px; right: 14px; bottom: 91px; width: auto; padding: 20px 21px 19px; border-radius: 2px 22px 2px 2px; }
  .welcome-card h1 { margin: 12px 0 10px; font-size: 39px; }
  .welcome-lead { font-size: 13px; line-height: 1.65; }
  .welcome-note { margin: 7px 0 16px; font-size: 10px; }
  .welcome-index { display: none; }
  .location-card { top: 70px; right: 14px; }
  .journey-dock { width: calc(100vw - 24px); justify-content: space-around; border-radius: 18px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .dock-btn { min-width: 48px; height: 43px; flex: 1; }
  .dock-btn span { font-size: 7px; }
  .drag-hint { display: none; }
  .modal-root { padding: 0; align-items: end; }
  .modal-card { width: 100%; max-height: 91vh; border-radius: 22px 22px 0 0; }
  .modal-close { position: sticky; top: 10px; margin: 10px 10px -46px 0; }
  .panel { padding: 34px 20px 38px; }
  .panel-head { padding-right: 32px; }
  .panel h2 { font-size: 34px; }
  .panel-lead { font-size: 13px; }
  .two-col, .farm-lower { grid-template-columns: 1fr; }
  .quote-card { min-height: 250px; }
  .veg-grid { grid-template-columns: repeat(2, 1fr); }
  .memory-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
  .memory-toolbar { align-items: stretch; flex-direction: column; }
  .upload-zone { min-height: 74px; padding: 12px; }
  .upload-plus { width: 36px; height: 36px; }
  .memory-footer { align-items: flex-start; flex-direction: column; }
  .modal-card { max-width: 100vw; overflow-x: hidden; }
  .book-shelf { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .book-card, .book-note-panel { width: 100%; min-width: 0; }
  .book-card-summary strong, .book-card-summary small, .panel-lead { overflow-wrap: anywhere; }
  .book-card-summary strong { font-size: 9px; }
  .reader-view { padding: 38px 22px 40px; }
  .reader-book-layout { grid-template-columns: 1fr; gap: 27px; }
  .reader-book-cover-wrap { width: min(210px, 64vw); margin: 0 auto; }
  .reader-book-cover-wrap .book-cover-title { font-size: 25px; }
  .reader-book-copy h2 { font-size: 32px; }
  .reader-body { font-size: 14px; line-height: 2; }
  .about-portrait { min-height: 220px; }
  .help-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .photo-lightbox { padding: 18px; gap: 7px; }
  .photo-lightbox figure { max-width: calc(100vw - 80px); }
  .lightbox-nav { width: 34px; height: 34px; font-size: 24px; }
  .toast { bottom: 75px; }
}

@media (max-height: 650px) and (min-width: 701px) {
  .welcome-card { bottom: 92px; padding-top: 19px; padding-bottom: 18px; }
  .welcome-card h1 { font-size: 40px; margin: 10px 0; }
  .welcome-note { margin-bottom: 14px; }
  .welcome-lead { font-size: 13px; line-height: 1.6; }
  .journey-dock { bottom: 12px; }
  .drag-hint { bottom: 75px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
