@charset "UTF-8";
@font-face { font-family: "Puppy Sans"; src: url("/assets/puppy-font.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #fff9ef;
  --panel: #fffefb;
  --ink: #493f38;
  --muted: #8e8075;
  --line: #eadfd2;
  --yellow: #f6d67e;
  --yellow-light: #fff0bd;
  --pink: #f6c5b9;
  --pink-light: #fff0eb;
  --mint: #b9ddca;
  --mint-light: #eaf6ed;
  --blue: #c8e4eb;
  --sidebar: 224px;
  font-family: "Puppy Sans", "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background-image: radial-gradient(#e8d9c8 1px, transparent 1px); background-size: 24px 24px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #d69b47; outline-offset: 4px; }
button, a { touch-action: manipulation; }
input, textarea, select { width: 100%; background: #fffdfa; border: 1.5px solid #d9cabd; border-radius: 14px; color: var(--ink); padding: 13px 15px; font-size: 13px; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: #d6a44f; box-shadow: 0 0 0 4px #f6d67e2e; }
input::placeholder, textarea::placeholder { color: #b5a599; }
textarea { resize: vertical; line-height: 1.8; }
select option { background: #fffdfa; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.8; }
.small { font-size: 11px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 800; color: #aa7a37; margin: 0 0 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; border: 1.7px solid var(--ink); border-radius: 14px; padding: 12px 18px; font-size: 12px; font-weight: 700; line-height: 1.4; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 4px 0 #493f3826; }
.button:active { transform: translateY(1px); box-shadow: none; }
.button span:last-child { margin-left: auto; }
.primary { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 #d6b360; }
.primary:hover { background: #f9df98; }
.outline { border-color: #cbbdb0; background: #fffdfa; }
.outline:hover { background: var(--yellow-light); border-color: var(--ink); }
.danger { color: #b46f62; border-color: #e4b4a9; font-size: 11px; }
.text-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 700; color: #8e693d; }
.text-link:hover { color: var(--ink); }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 900; letter-spacing: 1px; }
.brand-glyph { display: grid; place-items: center; width: 45px; height: 45px; flex-shrink: 0; background: #fff; border: 1.7px solid var(--ink); border-radius: 50% 48% 52% 46%; transform: rotate(-7deg); overflow: hidden; }
.brand-glyph img { width: 42px; height: 40px; margin-top: 7px; }
.wordmark small { display: block; font-family: Arial, sans-serif; font-size: 7px; font-weight: 700; letter-spacing: 2.5px; color: #a28d79; margin-top: 5px; }
.field-label { display: block; font-size: 12px; font-weight: 700; color: #6e5e53; margin: 21px 0 9px; }
.form-error { font-size: 11px; line-height: 1.6; color: #c56555; min-height: 16px; }

/* Login */
.login-screen { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 100svh; background: #fffdfa; }
.login-landscape { position: relative; min-height: 720px; overflow: hidden; background: #f8dfa0; border-right: 2px solid var(--ink); }
.login-landscape:before { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; top: 25%; border-radius: 50%; background: #f5c8bb; opacity: .6; }
.login-landscape:after { content: ""; position: absolute; width: 380px; height: 380px; right: -180px; bottom: -130px; border-radius: 50%; background: #b9ddca; opacity: .75; }
.login-brand { position: absolute; z-index: 2; top: 38px; left: 46px; }
.login-brand .brand-glyph { width: 51px; height: 51px; }
.login-brand .brand-glyph img { width: 48px; height: 45px; }
.login-illustration { position: absolute; z-index: 1; width: min(62%, 590px); right: 3%; top: 10%; }
.login-illustration>img { display: block; width: 100%; animation: puppy-float 5s ease-in-out infinite; }
.puppy-bubble { position: absolute; z-index: 2; right: 2%; top: 3%; padding: 10px 17px; border: 2px solid var(--ink); border-radius: 20px 20px 20px 5px; background: #fffdfa; font-size: 13px; font-weight: 800; transform: rotate(5deg); box-shadow: 3px 4px 0 #493f381c; }
.login-story { position: absolute; z-index: 2; bottom: 92px; left: 7%; right: 7%; }
.login-story .eyebrow { color: #896536; font-size: 9px; }
.login-story h1 { font-size: clamp(32px, 3.2vw, 48px); font-weight: 900; line-height: 1.45; letter-spacing: 2px; margin: 15px 0; }
.login-story>p:last-child { font-size: 13px; line-height: 2; color: #806849; }
.login-caption { position: absolute; z-index: 2; bottom: 34px; left: 7%; color: #947953; font-size: 10px; letter-spacing: 2px; }
.doodle { position: absolute; z-index: 1; color: #fff9e9; font-size: 38px; }
.doodle-one { left: 8%; top: 24%; transform: rotate(15deg); }
.doodle-two { right: 7%; top: 48%; transform: rotate(-15deg); }
.doodle-three { left: 45%; bottom: 8%; font-size: 27px; }
.login-panel { position: relative; display: flex; align-items: center; justify-content: center; background: #fffdfa; padding: 62px 48px 75px; }
.login-panel:before { content: ""; position: absolute; top: 38px; right: 42px; width: 28px; height: 28px; background: var(--pink); border-radius: 50% 50% 45% 55%; opacity: .8; }
.login-form-wrap { width: 100%; max-width: 350px; }
.login-emblem { display: grid; place-items: center; width: 73px; height: 70px; background: var(--pink-light); border: 1.7px solid var(--ink); border-radius: 48% 52% 46% 54%; margin-bottom: 26px; transform: rotate(-5deg); overflow: hidden; }
.login-emblem img { width: 69px; height: 65px; margin-top: 10px; }
.login-form-wrap>.eyebrow { margin-bottom: 10px; }
.login-form-wrap h2 { font-size: 28px; font-weight: 900; letter-spacing: 1px; margin: 10px 0 12px; }
.login-form-wrap>.muted { font-size: 12px; margin: 0 0 27px; }
.resident-pick { display: flex; gap: 11px; border: 0; margin: 0; padding: 0; }
.resident-pick legend { font-size: 12px; font-weight: 700; color: #6e5e53; margin-bottom: 12px; }
.resident-pick label { flex: 1; cursor: pointer; }
.resident-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.resident-pick label span { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 10px; border: 1.5px solid #dfd2c6; border-radius: 14px; color: #9a887a; background: #fff; font-size: 12px; font-weight: 700; transition: all .2s; }
.resident-pick label b { font-size: 10px; letter-spacing: 1px; }
.resident-pick input:checked+span { border-color: var(--ink); color: var(--ink); background: var(--yellow-light); box-shadow: 0 3px 0 #e7cf94; }
.resident-pick input:focus-visible+span { outline: 3px solid #d69b47; outline-offset: 3px; }
.password-field { position: relative; }
.password-field input { padding-right: 58px; height: 48px; }
.password-field button { position: absolute; right: 8px; top: 8px; height: 32px; font-size: 11px; color: #9a887a; }
.login-submit { width: 100%; height: 49px; margin-top: 3px; }
.login-private { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; color: #a08e80; margin-top: 24px; }
.login-private svg { width: 13px; height: 13px; }
.login-footer { position: absolute; bottom: 28px; font-size: 8px; font-weight: 700; letter-spacing: 1.8px; color: #b5a699; }
.login-footer i { font-style: normal; margin: 0 10px; color: #d69b87; }
#login-loading { text-align: center; font-size: 10px; min-height: 18px; }

/* App frame */
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; padding: 31px 20px 19px; background: #fffdf8; border-right: 1.5px solid #e6d9ca; display: flex; flex-direction: column; z-index: 3; }
.sidebar .wordmark { margin-left: 6px; margin-bottom: 45px; }
.nav-eyebrow { font-size: 10px; letter-spacing: 1px; color: #aa9787; padding-left: 14px; margin: 0 0 14px; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; position: relative; border: 1.5px solid transparent; padding: 13px 14px; font-size: 12px; font-weight: 700; color: #8e7e70; border-radius: 15px; transition: all .2s; }
.sidebar nav a:hover { color: var(--ink); background: var(--pink-light); transform: translateX(2px); }
.sidebar nav a.active { background: var(--yellow-light); border-color: #e6c776; color: var(--ink); box-shadow: 0 3px 0 #eee0b9; }
.sidebar nav svg { width: 18px; height: 18px; stroke-width: 1.9; }
.nav-dot { margin-left: auto; width: 6px; height: 6px; background: #d59e44; border-radius: 50%; display: none; }
.active .nav-dot { display: block; }
.sidebar-note { position: relative; margin: auto 4px 27px; padding: 24px 18px 20px; background: var(--pink-light); border: 1.5px solid #ecc9bf; border-radius: 8px 20px 12px 22px; transform: rotate(-2deg); }
.sidebar-note:before { content: ""; position: absolute; width: 44px; height: 16px; top: -9px; left: calc(50% - 22px); background: #eddbaec7; transform: rotate(3deg); }
.note-star { color: #d88e7d; font-size: 27px; }
.sidebar-note p { font-size: 11px; line-height: 2; color: #8d7167; margin: 8px 0 13px; }
.sidebar-note>span:last-child { font-size: 7px; letter-spacing: 1.2px; color: #b59387; }
.sidebar-bottom { border-top: 1px dashed #ddcfc0; padding: 18px 8px 0; display: flex; align-items: center; gap: 7px; font-size: 9px; color: #9a897a; }
.connection-dot { height: 7px; width: 7px; border-radius: 50%; background: #91c5a7; border: 1px solid #6da88b; }
.sidebar-bottom button { margin-left: auto; font-size: 20px; color: #9a897a; }
.workspace { margin-left: var(--sidebar); }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1.5px solid #eadfd2; padding: 0 36px; font-size: 11px; color: #8f7f71; background: #fffaf3d9; backdrop-filter: blur(12px); }
.topbar>div { display: flex; align-items: center; }
.topbar-label { font-size: 8px; font-weight: 800; letter-spacing: 1.8px; color: #b09c89; }
.topbar-divider { margin: 0 14px; color: #d5c6b7; }
.header-actions { gap: 18px; }
.quiet-button { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; color: #938274; padding: 8px 3px; border-radius: 9px; }
.quiet-button:hover { background: #fff0d0; color: var(--ink); }
.quiet-button svg { height: 15px; width: 15px; }
.quiet-button[aria-pressed=true] { color: #b27832; }
.profile-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 10px; font-weight: 800; color: var(--ink); background: var(--pink); box-shadow: 0 2px 0 #dca99b; }
.workspace main { max-width: 1580px; margin: 0 auto; padding: 31px 36px 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading .eyebrow { margin-bottom: 9px; }
.page-heading h1 { font-size: 28px; font-weight: 900; letter-spacing: 1px; margin: 0 0 10px; line-height: 1.5; }
.page-heading>div>p:last-child { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.8; }
.camp-clock { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 11px 17px; border: 1.5px solid #e7cc86; border-radius: 18px; background: var(--yellow-light); transform: rotate(1deg); }
.small-orbit { font-size: 27px; color: #dca647; }
.camp-clock strong { font-family: "Arial Rounded MT Bold", Arial, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: 1px; }
.camp-clock small { display: block; font-size: 8px; color: #a18451; margin-top: 4px; }
.panel { border: 1.5px solid #e3d5c6; background: var(--panel); border-radius: 22px; padding: 21px; box-shadow: 0 4px 0 #eadfd28c; }
.section-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; color: #66564b; margin-bottom: 19px; }
.section-mini>span:last-child:not(:first-child) { color: #b19782; font-size: 9px; letter-spacing: 1px; }
.section-mini svg { width: 16px; height: 16px; color: #bf9461; }
.section-mini a { font-size: 9px; font-weight: 700; color: #a08367; }

/* Living room */
.living-grid { display: grid; grid-template-columns: minmax(0, 1fr) 258px; gap: 20px; }
.scene-panel { min-width: 0; border: 1.8px solid var(--ink); border-radius: 24px; overflow: hidden; background: #fffdf8; box-shadow: 0 5px 0 #d9c8b5; }
.camp-scene { position: relative; aspect-ratio: 16/10; background: #fff7e8; overflow: hidden; }
.camp-scene>img { display: block; width: 100%; height: 100%; object-fit: fill; transition: filter .5s; }
.scene-vignette { display: none; }
.scene-top { position: absolute; left: 18px; right: 18px; top: 17px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.scene-label { font-size: 10px; font-weight: 800; padding: 8px 12px; background: #fffdf3e8; border: 1.5px solid var(--ink); border-radius: 20px; display: flex; align-items: center; gap: 7px; color: var(--ink); box-shadow: 0 2px 0 #493f3814; }
.scene-label i { width: 6px; height: 6px; background: #e9af54; border-radius: 50%; }
.scene-caption { font-size: 8px; font-weight: 800; color: #9c816c; letter-spacing: 1.5px; }
.scene-bottom { position: absolute; bottom: 14px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; color: #765f50; pointer-events: none; }
.scene-bottom>div { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 15px; background: #fffaf0db; }
.scene-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #e1a95b; }
.scene-hint { font-size: 9px; font-weight: 700; color: #8e7360; padding: 6px 9px; border-radius: 12px; background: #fffaf0c9; }
.room-controls { display: flex; align-items: center; justify-content: space-around; gap: 6px; padding: 13px; border-top: 1.5px solid #eadfd2; min-height: 58px; }
.room-controls>span { font-size: 10px; font-weight: 800; color: #a08b77; margin-right: 5px; white-space: nowrap; }
.room-controls button { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: #a08e7d; padding: 7px; border-radius: 10px; white-space: nowrap; }
.room-controls button:hover { background: var(--yellow-light); }
.room-controls button>span { font-size: 16px; }
.room-controls svg { width: 14px; height: 14px; }
.room-controls button.active { color: #71532f; }
.room-controls button i { display: block; width: 25px; height: 14px; background: #ded4c9; border: 1px solid #c8bbad; border-radius: 9px; position: relative; margin-left: 3px; }
.room-controls button i:after { content: ""; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; transition: left .2s; }
.room-controls button.active i { background: var(--mint); border-color: #8ebda3; }
.room-controls button.active i:after { left: 13px; background: #fff; }
.companion { display: flex; flex-direction: column; align-items: stretch; padding: 20px; background: var(--pink-light); border-color: #e7bfb3; }
.companion .section-mini { margin-bottom: 9px; }
.pet-monogram { text-align: center; margin: 0; }
.pet-monogram img { display: block; width: 100px; height: 94px; margin: 0 auto -1px; }
.pet-monogram strong { display: block; font-size: 23px; font-weight: 900; }
.pet-monogram>span { display: block; font-family: Arial, sans-serif; font-size: 7px; font-weight: 700; letter-spacing: 1.7px; color: #b18f82; margin-top: 6px; }
.mood-chip { align-self: center; border: 1px solid #e1b2a4; color: #9b6b5e; font-size: 10px; font-weight: 700; border-radius: 20px; padding: 6px 13px; background: #fff9f5; margin-top: 12px; }
.pet-description { font-size: 10px; color: #9d7e70; line-height: 1.9; text-align: center; margin: 14px 0; }
.pet-stats { margin-top: auto; }
.pet-stats label { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #8c7466; margin-top: 11px; margin-bottom: 6px; }
.pet-stats b { font-size: 10px; font-weight: 800; color: #7e6254; }
meter { width: 100%; height: 7px; display: block; border: 0; background: #ead8cf; border-radius: 9px; }
meter::-webkit-meter-bar { height: 7px; background: #ead8cf; border: 0; border-radius: 9px; }
meter::-webkit-meter-optimum-value { background: #eab85e; border-radius: 9px; }
meter::-moz-meter-bar { background: #eab85e; }
#curiosity::-webkit-meter-optimum-value { background: #9dcbb3; }
#curiosity::-moz-meter-bar { background: #9dcbb3; }
.habit { padding-top: 13px; margin-top: 14px; border-top: 1px dashed #dcbcb0; font-size: 9px; color: #ad8d80; }
.habit p { font-size: 10px; color: #80685d; line-height: 1.7; margin: 6px 0 13px; }
.companion .button { font-size: 10px; padding: 10px 12px; background: #fffaf6; }

/* Home cards */
.home-bottom-grid { display: grid; grid-template-columns: 1.1fr 1.2fr .9fr; gap: 20px; margin-top: 20px; }
.decision-panel h3, .memory-teaser h3 { font-size: 17px; line-height: 1.6; font-weight: 900; margin: 0 0 10px; color: #5b4b40; }
.decision-panel p, .memory-teaser p { font-size: 11px; color: #958174; line-height: 1.9; }
.decision-people { display: flex; align-items: center; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.resident-tag { border: 1px solid #d9c7a6; border-radius: 20px; padding: 6px 10px; font-size: 9px; font-weight: 700; color: #8b6c40; background: #fff8e6; }
.resident-tag.waiting { color: #ad9988; border-style: dashed; background: transparent; }
.decision-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.decision-actions .button { padding: 9px 12px; font-size: 10px; }
.journal-panel { background: #fffdf8; }
.mini-event { display: grid; grid-template-columns: 39px 1fr; gap: 10px; position: relative; padding: 0 0 16px; }
.mini-event:before { content: ""; position: absolute; left: 35px; top: 13px; bottom: 0; width: 1px; border-left: 1px dashed #dbc9b9; }
.mini-event:last-child:before { display: none; }
.mini-event time { font-size: 9px; color: #b1947a; padding-top: 3px; }
.mini-event h4 { font-size: 11px; font-weight: 800; margin: 0 0 5px; color: #6b5849; }
.mini-event p { font-size: 10px; color: #9b8676; line-height: 1.8; margin: 0; }
.mini-event:last-child { padding-bottom: 0; }
.memory-teaser { background: var(--yellow-light); border-color: #e7cd8a; }
.paper-mark { font-size: 33px; color: #db9e6f; display: block; margin: 0 0 8px; transform: rotate(-10deg); transform-origin: left; }
.memory-teaser .text-link { margin-top: 14px; }

/* Walks */
.exploration-banner { display: flex; align-items: center; gap: 28px; margin-bottom: 23px; padding: 25px 30px; background: var(--blue); border-color: #a7cbd4; }
.banner-moon { display: grid; place-items: center; width: 83px; height: 83px; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: #fffdf8; font-size: 43px; line-height: 1; color: #d5a44e; transform: rotate(-6deg); }
.exploration-banner h3 { font-weight: 900; font-size: 22px; margin: 0 0 9px; }
.exploration-banner p { font-size: 11px; color: #708991; line-height: 1.8; }
.exploration-banner .decision-people { margin: 12px 0; }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.route-card { border: 1.5px solid #e0d2c3; border-radius: 22px; overflow: hidden; background: var(--panel); box-shadow: 0 4px 0 #eadfd2; transition: transform .2s; }
.route-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.route-art { position: relative; height: 145px; overflow: hidden; background: #dff0e5; }
.route-art:before, .route-art:after { content: ""; position: absolute; border-radius: 50%; background: #fff9e9; }
.route-art:before { width: 130px; height: 130px; left: -25px; top: 36px; }
.route-art:after { width: 95px; height: 95px; right: -12px; top: -20px; }
.route-art svg { position: absolute; z-index: 1; width: 64px; height: 64px; left: calc(50% - 32px); top: 39px; padding: 13px; box-sizing: border-box; color: #729c85; background: #fffdf8; border: 1.5px solid var(--ink); border-radius: 48% 52% 45% 55%; stroke-width: 1.4; transform: rotate(-5deg); }
.route-card:nth-child(2) .route-art { background: #fff0c5; }
.route-card:nth-child(2) .route-art svg { color: #c69542; transform: rotate(4deg); }
.route-card:nth-child(3) .route-art { background: #f9ded6; }
.route-card:nth-child(3) .route-art svg { color: #c78e80; }
.route-content { padding: 21px; }
.route-content .eyebrow { font-size: 8px; color: #ad927b; }
.route-content h3 { font-size: 20px; font-weight: 900; margin: 0 0 9px; }
.route-content p { font-size: 11px; color: #948071; line-height: 1.8; min-height: 40px; }
.route-content .button { width: 100%; margin-top: 12px; font-size: 11px; }
.route-time { font-size: 9px; color: #ab927a; }
.split-section { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-top: 23px; }
.souvenir { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-top: 1px dashed #e1d3c5; }
.souvenir>span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: var(--yellow-light); font-size: 22px; color: #c3974f; }
.souvenir h4 { font-size: 12px; font-weight: 800; margin: 0 0 7px; }
.souvenir p { font-size: 9px; color: var(--muted); margin: 0; }
.empty-state { border: 1.5px dashed #d8c4b0; border-radius: 18px; padding: 38px 24px; text-align: center; color: #927966; font-size: 12px; line-height: 2; background: #fffaf2; }
.empty-state>span { display: block; font-size: 32px; color: #d4a75e; margin-bottom: 12px; }
.empty-state p { font-size: 11px; color: #aa9481; margin: 5px 0; }

/* Memories and services */
.memory-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 23px; }
.memory-tabs button { border: 1.5px solid transparent; color: #a08b7b; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 9px 15px; }
.memory-tabs button:hover { background: #fff0d3; color: var(--ink); }
.memory-tabs button.active { color: var(--ink); background: var(--yellow-light); border-color: #e4c575; }
.memory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.memory-grid>.empty-state { grid-column: 1/-1; padding: 70px 20px; }
.memory-card { position: relative; border: 1.5px solid #ded0c1; border-radius: 8px 20px 12px 20px; text-align: left; background: #fffefb; padding: 25px; min-height: 210px; color: var(--ink); box-shadow: 0 4px 0 #eadfd2; transition: transform .2s, box-shadow .2s; }
.memory-card:nth-child(3n+2) { background: #fff3cf; transform: rotate(.6deg); }
.memory-card:nth-child(3n+3) { background: #fbe7e1; transform: rotate(-.5deg); }
.memory-card:before { content: ""; position: absolute; width: 42px; height: 14px; left: calc(50% - 21px); top: -8px; background: #e8d7b1c9; transform: rotate(-3deg); }
.memory-card:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 7px 0 #e4d5c4; }
.memory-card .eyebrow { font-size: 8px; color: #ac8e73; }
.memory-card h3 { font-size: 18px; font-weight: 900; margin: 17px 0 13px; overflow-wrap: anywhere; }
.memory-card p { font-size: 11px; color: #958071; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.memory-card time { display: block; font-size: 9px; color: #b09984; margin-top: 22px; }
.memory-card.locked { background: #eee9df; }
.search-box { display: flex; align-items: center; gap: 11px; background: #fffdf8; border: 1.5px solid #dacabb; border-radius: 18px; width: 270px; padding: 0 13px; }
.search-box:focus-within { border-color: #d6a44f; box-shadow: 0 0 0 4px #f6d67e2e; }
.search-box svg { color: #b19883; width: 17px; height: 17px; }
.search-box input { border: 0; background: none; font-size: 11px; padding: 12px 0; box-shadow: none; }
.services-note { font-size: 9px; color: #aa9684; margin: -8px 0 20px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { position: relative; border: 1.5px solid #e2d5c8; border-radius: 20px; background: var(--panel); min-width: 0; box-shadow: 0 3px 0 #eee2d5; transition: transform .2s, border-color .2s; }
.service-card>a, .service-card>div { display: block; padding: 21px; height: 100%; border-radius: 20px; }
.service-card:hover { border-color: #d6b36d; transform: translateY(-3px); }
.service-icon { display: flex; align-items: center; justify-content: center; height: 42px; width: 42px; border: 1.5px solid #dfc98f; border-radius: 14px; background: var(--yellow-light); color: #b18740; transform: rotate(-3deg); }
.service-card:nth-child(3n+2) .service-icon { background: var(--mint-light); border-color: #b8d6c4; color: #75a087; transform: rotate(3deg); }
.service-card:nth-child(3n+3) .service-icon { background: var(--pink-light); border-color: #e9c3b8; color: #bd8879; }
.service-icon svg { width: 20px; height: 20px; }
.service-card h3 { font-size: 14px; font-weight: 900; margin: 16px 0 8px; }
.service-card p { font-size: 10px; line-height: 1.8; color: #9b8777; min-height: 36px; margin: 0 0 16px; }
.service-bottom { display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed #e5d8ca; padding-top: 13px; font-size: 9px; color: #ac947e; overflow-wrap: anywhere; }
.service-star { position: absolute; right: 10px; top: 10px; color: #b9a691; padding: 7px; border-radius: 50%; }
.service-star:hover { background: var(--yellow-light); }
.service-star svg { width: 16px; height: 16px; }
.service-star.selected { color: #d3a242; }
.service-star.selected svg { fill: #f6d67e66; }
.service-grid>.empty-state { grid-column: 1/-1; }
footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px dashed #d9c9b8; margin-top: 31px; padding: 23px 0; font-size: 9px; color: #a38e7c; letter-spacing: .5px; }
footer>span:last-child { font-size: 7px; letter-spacing: 1.4px; }
footer i { font-style: normal; margin: 0 9px; color: #d89d85; }

/* Dialogs and feedback */
dialog { color: var(--ink); background: #fffdf8; border: 1.8px solid var(--ink); border-radius: 24px; padding: 28px; width: min(510px, calc(100% - 32px)); max-height: 85svh; box-shadow: 7px 8px 0 #493f3826; }
dialog::backdrop { background: #594b3f66; backdrop-filter: blur(6px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.dialog-heading .eyebrow { margin: 0; }
.dialog-heading>button { font-size: 27px; color: #a18c7b; padding: 0 5px; }
dialog h2 { font-size: 25px; line-height: 1.6; font-weight: 900; margin: 18px 0; overflow-wrap: anywhere; }
dialog .primary { width: 100%; margin-top: 16px; }
.letter-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 2.2; padding: 18px 0; color: #796659; }
.toast { position: fixed; left: 50%; bottom: 27px; transform: translateX(-50%) rotate(-1deg); max-width: calc(100% - 30px); border: 1.5px solid var(--ink); border-radius: 16px; padding: 13px 21px; background: var(--yellow-light); box-shadow: 0 4px 0 #493f3826; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.7; z-index: 20; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; background: var(--yellow); padding: 18px; text-align: center; font-size: 13px; }

/* A gently animated living room. */
.fireplace { position: absolute; left: 79%; top: 52%; width: 12%; height: 18%; pointer-events: none; filter: drop-shadow(0 0 7px #fa9a3255); transform-origin: 50% 100%; transition: opacity .6s; }
.flame { position: absolute; bottom: 5%; width: 29%; height: 75%; border-radius: 75% 15% 65% 35%; transform-origin: 50% 100%; background: linear-gradient(0deg, #ffcb50 0%, #ff971ee0 40%, #ed6515a0 75%, #e54c0400); animation: fire-rise 1.7s ease-in-out infinite alternate; filter: blur(.6px); }
.f1 { left: 8%; height: 65%; animation-delay: -.8s; animation-duration: 1.3s; }
.f2 { left: 30%; height: 98%; width: 32%; animation-duration: 1.9s; background: linear-gradient(0deg, #ffe8a0, #ffb32bf2 25%, #ee6716b0 62%, #b9580600); }
.f3 { left: 52%; height: 70%; width: 26%; animation-delay: -1.2s; animation-duration: 1.5s; }
.f4 { left: 25%; height: 47%; width: 24%; animation-delay: -.4s; background: linear-gradient(0deg, #fff7cf, #ffd86d, #ff9b2920); }
.f5 { left: 53%; height: 35%; animation-delay: -.6s; background: linear-gradient(0deg, #ffedaf, #ffb84c, #e5900020); }
.fire-coal { position: absolute; bottom: 0; left: 10%; width: 79%; height: 10%; border-radius: 50%; background: #fc9b32; filter: blur(6px); animation: coal-glow 2.6s infinite alternate; }
.ember { position: absolute; bottom: 10%; left: 50%; height: 2px; width: 2px; background: #ffe59a; border-radius: 50%; animation: ember-rise 3s linear infinite; }
.e2 { left: 32%; animation-delay: -1s; animation-duration: 4.2s; }
.e3 { left: 64%; animation-delay: -2.6s; }
.e4 { left: 43%; animation-delay: -2s; animation-duration: 3.7s; }
.hearth-glow { position: absolute; left: 73%; top: 48%; width: 25%; height: 28%; border-radius: 50%; background: radial-gradient(ellipse, #f5b84425, transparent 65%); animation: coal-glow 3.7s ease-in-out infinite alternate; pointer-events: none; }
.fire-off .fireplace, .fire-off .hearth-glow { opacity: 0; }
.lamp-off>img { filter: brightness(.9) saturate(.8); }
.plants-off>img { filter: saturate(.65); }
.scene-pet { position: absolute; width: 23%; left: 43%; bottom: 10%; padding: 0; filter: drop-shadow(0 3px 2px #856b5820); animation: pet-wander 8s ease-in-out infinite; transition: opacity 2s; }
.scene-pet:before { content: "♡"; position: absolute; right: 2%; top: 4%; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%; background: #fff; color: #e59b8a; font-size: 17px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.scene-pet:hover:before { opacity: 1; transform: scale(1) rotate(10deg); }
.scene-pet>svg { width: 100%; height: auto; overflow: visible; }
.scene-pet>span { position: absolute; left: 50%; bottom: -5px; translate: -50% 0; white-space: nowrap; font-size: 9px; font-weight: 800; color: #8c6e5d; opacity: 0; transition: opacity .2s; }
.scene-pet:hover>span { opacity: 1; }
.pet-body { transform-origin: 50% 80%; animation: pet-breathe 3s ease-in-out infinite; }
.pet-tail { transform-origin: 70% 65%; animation: tail-sway 2.5s ease-in-out infinite; }
.scene-pet.sleeping { transform: translateY(10px); animation: none; }
.scene-pet.sleeping .pet-body { transform: scaleY(.82); transform-origin: center bottom; }
.scene-pet.sleeping .pet-eye { opacity: .25; }
.scene-pet.away { opacity: 0; pointer-events: none; }
.fireflies { position: absolute; inset: 0; pointer-events: none; }
.fireflies i { position: absolute; left: 35%; top: 30%; width: 5px; height: 5px; background: #f3c45d; border-radius: 50%; animation: firefly 7s ease-in-out infinite; }
.fireflies i:nth-child(2) { left: 51%; top: 20%; animation-delay: -3s; }
.fireflies i:nth-child(3) { left: 19%; top: 38%; animation-delay: -6s; }
.fireflies i:nth-child(4) { left: 67%; top: 32%; animation-delay: -4s; }
.motion-paused .flame, .motion-paused .ember, .motion-paused .hearth-glow, .motion-paused .fire-coal, .motion-paused .scene-pet, .motion-paused .pet-body, .motion-paused .pet-tail, .motion-paused .fireflies i { animation-play-state: paused; }
@keyframes fire-rise { 0% { transform: scaleX(.85) scaleY(.82) rotate(-9deg); opacity: .7; border-radius: 70% 10% 65% 35%; } 50% { transform: scaleX(1.1) scaleY(1) rotate(5deg); opacity: .95; } 100% { transform: scaleX(.8) scaleY(1.13) rotate(11deg); opacity: .8; border-radius: 15% 75% 35% 65%; } }
@keyframes coal-glow { from { opacity: .65; } to { opacity: 1; } }
@keyframes ember-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 70% { opacity: .5; } 100% { transform: translate(17px, -70px); opacity: 0; } }
@keyframes pet-breathe { 50% { transform: scaleY(1.025); } }
@keyframes tail-sway { 50% { transform: rotate(-8deg); } }
@keyframes pet-wander { 0%, 100% { translate: 0 0; } 45%, 60% { translate: 5px -3px; } }
@keyframes firefly { 0%, 100% { opacity: 0; transform: translate(0, 0); } 45% { opacity: .65; transform: translate(12px, -8px); } 70% { opacity: .2; transform: translate(18px, 3px); } }
@keyframes puppy-float { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-7px) rotate(.5deg); } }

@media (min-width: 1600px) {
  .workspace main { padding: 38px 44px 0; }
  .living-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .camp-scene { aspect-ratio: 16/9.6; }
  .companion { padding: 24px; }
  .pet-monogram img { width: 112px; height: 106px; }
  .pet-description { margin: 18px 0; }
}
@media (max-width: 1150px) {
  :root { --sidebar: 194px; }
  .sidebar { padding: 28px 15px 17px; }
  .sidebar .wordmark { font-size: 21px; margin-left: 4px; }
  .brand-glyph { width: 41px; height: 41px; }
  .brand-glyph img { width: 38px; height: 36px; }
  .workspace main { padding: 27px 24px 0; }
  .topbar { padding: 0 24px; }
  .living-grid { grid-template-columns: minmax(0, 1fr) 224px; gap: 15px; }
  .camp-scene { aspect-ratio: 1.25; }
  .camp-scene>img { object-fit: cover; }
  .companion { padding: 17px; }
  .pet-monogram img { width: 79px; height: 75px; }
  .pet-monogram strong { font-size: 20px; }
  .pet-description { margin: 10px 0; font-size: 9px; }
  .habit { padding-top: 10px; margin-top: 11px; }
  .habit p { margin-bottom: 10px; }
  .home-bottom-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .memory-teaser { grid-column: 1/-1; display: grid; grid-template-columns: auto 1fr auto; column-gap: 20px; align-items: center; }
  .memory-teaser .section-mini { grid-column: 1/-1; margin-bottom: 12px; }
  .paper-mark { grid-row: 2/4; margin: 0; }
  .memory-teaser h3 { margin: 0; }
  .memory-teaser p { margin: 5px 0 0; grid-column: 2; }
  .memory-teaser p br { display: none; }
  .memory-teaser .text-link { grid-column: 3; grid-row: 2/4; gap: 20px; margin: 0; }
  .scene-hint { display: none; }
  .room-controls { padding: 11px 8px; flex-wrap: wrap; }
  .room-controls>span { display: none; }
  .page-heading h1 { font-size: 25px; }
  .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routes { gap: 14px; }
  .route-content { padding: 18px; }
  .route-content h3 { font-size: 18px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-panel { padding-left: 35px; padding-right: 35px; }
  .login-illustration { width: 66%; right: 1%; top: 15%; }
}
@media (max-width: 900px) {
  :root { --sidebar: 174px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar nav a { font-size: 11px; padding: 13px 10px; gap: 9px; }
  .sidebar .wordmark { font-size: 19px; gap: 7px; }
  .wordmark small { font-size: 6px; letter-spacing: 2px; }
  .living-grid { grid-template-columns: 1fr; }
  .camp-scene { aspect-ratio: 16/10; }
  .companion { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 25px; }
  .companion .section-mini { grid-column: 1/-1; margin-bottom: 4px; }
  .pet-monogram { grid-column: 1; grid-row: 2/5; margin: 0; }
  .pet-monogram img { width: 85px; height: 80px; }
  .mood-chip { grid-column: 1; grid-row: 5; justify-self: center; margin-top: 2px; }
  .pet-description { display: none; }
  .pet-stats { grid-column: 2; grid-row: 2/4; align-self: center; }
  .habit { grid-column: 2; grid-row: 4/6; border: 0; margin: 0; padding-top: 5px; }
  .habit p { margin-bottom: 0; }
  .companion .button { grid-column: 1/-1; align-self: end; margin-top: 5px; }
  .camp-clock { display: none; }
  .header-actions { gap: 10px; }
  .topbar-label, .topbar-divider { display: none; }
  .scene-caption { font-size: 7px; }
  .routes { grid-template-columns: 1fr; }
  .route-card { display: grid; grid-template-columns: 140px 1fr; }
  .route-art { height: 100%; min-height: 210px; }
  .route-art svg { top: calc(50% - 32px); }
  .route-content p { min-height: 0; }
  .route-content .button { width: auto; margin: 12px 0 0; display: flex; }
  .split-section { grid-template-columns: 1fr; }
  .exploration-banner { padding: 23px; gap: 22px; }
  .banner-moon { width: 70px; height: 70px; font-size: 37px; }
  .page-heading { align-items: flex-start; }
  .search-box { width: 100%; max-width: 280px; }
  .page-heading:has(.search-box) { flex-direction: column; }
  footer>span:last-child { display: none; }
  .login-screen { grid-template-columns: 1fr 1fr; }
  .login-illustration { width: 84%; right: -2%; top: 19%; }
  .login-story h1 { font-size: 32px; }
  .login-form-wrap h2 { font-size: 25px; }
}
@media (max-width: 650px) {
  .login-screen { display: block; min-height: 100svh; }
  .login-landscape { min-height: 0; height: 38svh; border-right: 0; border-bottom: 2px solid var(--ink); }
  .login-brand { top: 18px; left: 22px; font-size: 20px; gap: 8px; }
  .login-brand .brand-glyph { width: 40px; height: 40px; }
  .login-brand .brand-glyph img { width: 37px; height: 35px; }
  .login-illustration { width: 245px; right: 4%; top: 44px; }
  .puppy-bubble { font-size: 10px; padding: 7px 11px; top: 0; right: 0; }
  .login-story { left: 23px; bottom: 22px; }
  .login-story .eyebrow { display: none; }
  .login-story h1 { font-size: 23px; letter-spacing: 1px; margin: 0; line-height: 1.5; }
  .login-story>p:last-child, .login-caption { display: none; }
  .doodle-one { top: 25%; }
  .login-panel { padding: 26px 27px 55px; min-height: 62svh; align-items: flex-start; }
  .login-emblem { display: none; }
  .login-form-wrap { max-width: 390px; }
  .login-form-wrap>.eyebrow { font-size: 8px; }
  .login-form-wrap h2 { font-size: 25px; margin: 9px 0; }
  .login-form-wrap>.muted { font-size: 11px; margin-bottom: 21px; }
  .login-footer { bottom: 17px; font-size: 7px; }
  .login-private { margin-top: 17px; }
  .sidebar { position: static; width: auto; padding: 17px 17px 0; border-right: 0; border-bottom: 1px solid #eadfd2; display: block; }
  .sidebar .wordmark { font-size: 21px; margin: 0 0 17px; gap: 8px; }
  .sidebar .brand-glyph { width: 39px; height: 39px; }
  .sidebar .brand-glyph img { width: 36px; height: 34px; }
  .nav-eyebrow, .sidebar-note, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; justify-content: space-between; gap: 3px; padding-bottom: 13px; }
  .sidebar nav a { padding: 9px 8px; font-size: 10px; gap: 5px; white-space: nowrap; }
  .sidebar nav a svg { width: 13px; height: 13px; }
  .nav-dot { display: none !important; }
  .workspace { margin-left: 0; }
  .topbar { height: 49px; padding: 0 18px; font-size: 9px; }
  .header-actions { gap: 12px; }
  .quiet-button { font-size: 9px; gap: 5px; }
  .quiet-button svg { width: 12px; height: 12px; }
  .profile-button { width: 28px; height: 28px; font-size: 9px; }
  .workspace main { padding: 23px 17px 0; }
  .page-heading { gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
  .page-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 8px; }
  .page-heading h1 { font-size: 22px; letter-spacing: .5px; margin-bottom: 8px; }
  .page-heading>div>p:last-child { font-size: 10px; }
  .living-grid { gap: 14px; }
  .scene-panel { border-radius: 20px; }
  .camp-scene { aspect-ratio: 1.3; }
  .scene-top { top: 12px; left: 11px; right: 11px; }
  .scene-label { font-size: 8px; padding: 6px 8px; }
  .scene-caption { font-size: 6px; letter-spacing: 1px; }
  .scene-bottom { bottom: 10px; left: 10px; right: 10px; font-size: 8px; }
  .scene-bottom>div { padding: 6px 8px; }
  .room-controls { padding: 10px 6px; justify-content: space-between; gap: 2px; flex-wrap: nowrap; }
  .room-controls button { font-size: 9px; gap: 4px; padding: 4px 2px; }
  .room-controls button i { margin-left: 0; width: 23px; }
  .room-controls button.active i:after { left: 11px; }
  .panel { padding: 18px; border-radius: 19px; }
  .companion { gap: 5px 19px; }
  .companion .section-mini { font-size: 11px; }
  .pet-monogram img { width: 75px; height: 71px; }
  .pet-monogram strong { font-size: 19px; }
  .pet-monogram>span { font-size: 6px; letter-spacing: 1.3px; }
  .pet-stats label { font-size: 9px; }
  .habit { font-size: 8px; }
  .habit p { font-size: 9px; }
  .companion .button { font-size: 10px; padding: 9px; }
  .home-bottom-grid { grid-template-columns: 1fr; margin-top: 15px; gap: 15px; }
  .memory-teaser { grid-column: auto; column-gap: 15px; }
  .memory-teaser h3 { font-size: 14px; }
  .memory-teaser p { font-size: 9px; }
  .memory-teaser .text-link { font-size: 9px; gap: 9px; }
  .section-mini { font-size: 11px; margin-bottom: 17px; }
  .mini-event h4 { font-size: 11px; }
  .mini-event p { font-size: 10px; }
  .decision-panel h3 { font-size: 17px; }
  .decision-panel p { font-size: 11px; }
  .decision-actions .button { font-size: 11px; }
  .exploration-banner { gap: 16px; padding: 20px 17px; }
  .banner-moon { width: 55px; height: 55px; font-size: 30px; }
  .exploration-banner h3 { font-size: 18px; }
  .exploration-banner .eyebrow { font-size: 7px; }
  .routes { gap: 15px; }
  .route-card { grid-template-columns: 100px 1fr; }
  .route-art { min-height: 240px; }
  .route-art svg { width: 54px; height: 54px; left: calc(50% - 27px); top: calc(50% - 27px); padding: 11px; }
  .route-content { padding: 17px; }
  .route-content h3 { font-size: 18px; }
  .route-content p { font-size: 10px; }
  .route-time { font-size: 8px; }
  .route-content .button { font-size: 10px; padding: 10px 12px; }
  .memory-tabs { gap: 4px; margin-bottom: 20px; }
  .memory-tabs button { font-size: 10px; padding: 9px 11px; }
  .memory-grid { grid-template-columns: 1fr; }
  .memory-card { padding: 23px; min-height: 180px; }
  .service-grid { gap: 12px; }
  .service-card>a, .service-card>div { padding: 17px 13px; }
  .service-card h3 { font-size: 12px; }
  .service-card p { font-size: 9px; min-height: 50px; }
  .service-bottom { font-size: 8px; }
  .service-icon { width: 35px; height: 35px; border-radius: 12px; }
  .service-icon svg { width: 17px; height: 17px; }
  .service-star { top: 7px; right: 6px; padding: 5px; }
  .service-star svg { width: 14px; height: 14px; }
  .search-box { max-width: none; }
  .services-note { font-size: 8px; line-height: 1.8; }
  .memory-grid>.empty-state { padding: 50px 20px; }
  dialog { padding: 23px; }
  dialog h2 { font-size: 22px; }
  footer { margin-top: 27px; padding: 21px 0; font-size: 8px; }
  .scene-pet { width: 27%; left: 40%; bottom: 11%; }
  .scene-pet:before { width: 22px; height: 22px; font-size: 14px; }
}
@media (max-width: 370px) {
  .sidebar nav a { padding-left: 6px; padding-right: 6px; font-size: 9px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .header-actions { gap: 8px; }
  .login-illustration { width: 220px; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
