.interests-section{--chest-accent:var(--t-accent,#ed1c73);--chest-soft:var(--t-soft,#ffd6e9);--chest-paper:var(--t-paper,#fff8fc);--chest-ink:var(--t-ink,#40213d);--chest-line:var(--t-line,#f3bdd5)}.chest-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:35px;align-items:start}.chest-scene{text-align:center;padding:45px 10px}.love-chest{display:block;position:relative;width:270px;max-width:100%;height:220px;border:0;background:none;margin:auto;perspective:800px;cursor:pointer}.chest-body{position:absolute;inset:65px 0 0;background:linear-gradient(135deg,var(--chest-soft),color-mix(in srgb,var(--chest-accent) 45%,var(--chest-paper)));border:3px solid var(--chest-accent);border-radius:12px 12px 25px 25px;box-shadow:0 16px 28px color-mix(in srgb,var(--chest-accent) 20%,transparent)}.chest-body:before,.chest-body:after{content:'';position:absolute;top:0;bottom:0;width:16px;background:var(--chest-accent);opacity:.6}.chest-body:before{left:32px}.chest-body:after{right:32px}.chest-lid{position:absolute;left:-5px;right:-5px;top:25px;height:65px;background:linear-gradient(135deg,var(--chest-paper),var(--chest-soft));border:3px solid var(--chest-accent);border-radius:70px 70px 10px 10px;transform-origin:50% 100%;transition:transform 1s cubic-bezier(.2,.8,.3,1);z-index:2}.chest-lock{position:absolute;left:calc(50% - 26px);top:78px;width:52px;height:58px;border-radius:12px;background:var(--chest-accent);color:var(--t-on-accent,#fff);display:grid;place-items:center;font-size:30px;z-index:3;transition:transform .6s}.chest-spark{position:absolute;left:calc(50% - 22px);top:20px;color:var(--chest-accent);font-size:50px;opacity:0;transition:transform 1s,opacity .7s}.chest-open .chest-lid{transform:rotateX(-115deg)}.chest-open .chest-lock{transform:translateY(20px) rotate(12deg)}.chest-open .chest-spark{opacity:1;transform:translateY(-60px)}.chest-hint{font-size:14px}.chest-shared{display:grid;gap:8px;color:var(--chest-accent);padding:12px}.chest-shared strong{font:600 24px var(--serif)}.chest-shared span{font-size:13px}.chest-sheet{padding:24px;background:var(--chest-paper);border:1px solid var(--chest-line);border-radius:20px;box-shadow:7px 9px 0 var(--chest-soft);color:var(--chest-ink);animation:chest-sheet-in .7s ease both}.chest-sheet-top,.chest-actors{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap}.chest-turn{margin:18px 0;padding:12px;border-radius:12px;background:var(--chest-soft);color:var(--chest-ink);font-weight:800;font-size:14px}.chest-actors{justify-content:flex-start;margin-bottom:16px}.chest-actors [aria-pressed=true]{background:var(--chest-accent);color:var(--t-on-accent,#fff)}.chest-form{display:grid;gap:14px}.chest-form label{font-size:13px;font-weight:800}.chest-form input,.chest-form select,.chest-category-form input{display:block;width:100%;min-width:0;padding:12px;border-radius:12px;background:var(--chest-paper);color:var(--chest-ink);border:1px solid var(--chest-line);margin-top:6px;font:inherit}.chest-category-form{display:flex;gap:8px;margin-top:18px;align-items:center}.chest-category-form button{flex-shrink:0}.chest-status{font-size:13px;line-height:1.5}.chest-notes{display:grid;gap:12px;margin-top:20px;max-height:450px;overflow:auto}.chest-note{display:grid;gap:6px;padding:15px;background:var(--chest-soft);border:1px solid var(--chest-line);border-radius:13px;overflow-wrap:anywhere}.chest-note small,.chest-note span{font-size:11px}.chest-note strong{font:600 22px var(--serif);color:var(--chest-ink)}.chest-note button{justify-self:end}.chest-sheet[hidden],.chest-form[hidden],.chest-category-form[hidden],.chest-actors[hidden]{display:none}@keyframes chest-sheet-in{from{opacity:0;transform:translateY(35px) rotate(2deg)}to{opacity:1;transform:translateY(0)}}@media(max-width:760px){.chest-layout{grid-template-columns:minmax(0,1fr)}.chest-scene{padding:20px 0}.chest-sheet{padding:18px}.chest-category-form{flex-wrap:wrap}.chest-category-form input{flex:1 1 180px}.interests-section{padding-inline:20px}}@media(prefers-reduced-motion:reduce){.chest-sheet{animation:none}.love-chest span{transition:none}}
html[data-theme]:not([data-theme=midnight]) #story #memories .memory-copy{background:transparent;box-shadow:none;border:0}
html[data-theme=midnight] #story #memories .memory-copy{background:var(--t-paper);padding:22px 26px;border-radius:20px;color:var(--t-ink)}

.chest-scene{grid-column:1/-1;min-width:0}.interests-section:not(.chest-open) .love-chest{transform:scale(1.55);margin:70px auto 80px}.chest-open .chest-scene{grid-column:auto}.chest-category[hidden]{display:none}.chest-category-picker{margin-top:-8px;border:1px solid var(--chest-line);border-radius:12px;background:var(--chest-paper);min-width:0}.chest-category-picker summary{padding:12px;cursor:pointer;font-size:13px;font-weight:700;overflow-wrap:anywhere}.chest-category-list{display:grid;gap:4px;padding:8px;max-height:260px;overflow:auto}.chest-category-row{display:flex;gap:6px;min-width:0}.chest-category-select{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere}.chest-category-select,.chest-category-delete{border:0;border-radius:8px;background:var(--chest-soft);color:var(--chest-ink);padding:10px;font:inherit;cursor:pointer}.chest-category-delete{flex:0 0 42px;font-size:22px}.chest-category-delete:disabled{opacity:.35;cursor:default}.chest-category-row button:hover{background:var(--chest-accent);color:var(--t-on-accent)}.chest-notes-accordion{border-top:1px solid var(--chest-line);padding-top:14px;margin-top:18px}.chest-notes-accordion summary{cursor:pointer;font-weight:700;font-size:14px;color:var(--chest-ink)}.chest-different{max-width:460px;margin:20px auto 0;text-align:left;display:grid;gap:10px;--different:#466b83}.chest-different h3{font:600 21px var(--serif);color:var(--different);text-align:center}.chest-different-note{padding:14px 18px;border:1px dashed color-mix(in srgb,var(--different) 45%,var(--chest-line));border-radius:14px;background:color-mix(in srgb,var(--different) 8%,var(--chest-paper));color:var(--chest-ink);overflow-wrap:anywhere}.chest-different-note strong{color:var(--different);font-size:13px}.chest-different-note p{font-size:13px;margin:7px 0 0}.chest-open .chest-different{max-width:100%}html[data-theme=midnight] .chest-different{--different:#a8cfdf}.chest-layout>*{min-width:0}.chest-sheet input{box-sizing:border-box}.love-chest:focus-visible,.chest-category-picker summary:focus-visible,.chest-notes-accordion summary:focus-visible{outline:3px solid var(--chest-accent);outline-offset:5px}@media(max-width:760px){.interests-section:not(.chest-open) .love-chest{transform:scale(1.12);margin:35px auto 35px}.chest-open .chest-scene{grid-column:1}.chest-category-form input{font-size:16px}.chest-form input{font-size:16px}.chest-sheet{box-shadow:3px 5px 0 var(--chest-soft)}}

.chest-lid{transform-origin:50% 0%;backface-visibility:visible}.chest-different[hidden]{display:none}.chest-different summary{cursor:pointer;padding:12px 16px;border:1px solid var(--chest-line);border-radius:14px;background:var(--chest-soft);font-weight:700;color:var(--chest-accent);font-size:15px}.chest-different-list{display:grid;gap:10px;margin-top:12px}.chest-different{--different:var(--chest-accent)}html[data-theme=midnight] .chest-different{--different:var(--chest-accent)}.chest-different-note{background:var(--chest-paper);border-color:var(--chest-line)}html[data-theme] #interests .chest-different-note strong{color:var(--chest-accent)}

/* A rigid lid, rear hinge and a separate front edge stay attached to the chest. */
.love-chest{perspective:900px;perspective-origin:50% 30%}.chest-body{inset:98px 0 0}.chest-lid{top:50px;left:0;right:0;height:85px;border:0;border-radius:0;background:none;box-shadow:none;transform-origin:50% 0;transform:rotateX(55deg);transform-style:preserve-3d;z-index:4;transition:transform 1s cubic-bezier(.22,.75,.25,1)}.chest-lid-top{position:absolute;inset:0;border:3px solid var(--chest-accent);border-radius:12px 12px 4px 4px;background:linear-gradient(135deg,var(--chest-paper),var(--chest-soft));box-shadow:inset 0 0 0 8px color-mix(in srgb,var(--chest-accent) 12%,transparent);backface-visibility:visible}.chest-lid-front{position:absolute;top:82px;left:0;right:0;height:27px;transform-origin:50% 0;transform:rotateX(-55deg);background:var(--chest-soft);border:3px solid var(--chest-accent);border-radius:0 0 8px 8px;backface-visibility:visible}.chest-inside{position:absolute;left:3px;right:3px;top:52px;height:84px;transform:rotateX(55deg);transform-origin:50% 0;border:5px solid var(--chest-accent);border-radius:12px;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--chest-ink) 70%,var(--chest-accent)),var(--chest-ink));opacity:0;transition:opacity .35s}.chest-open .chest-lid{transform:rotateX(-105deg)}.chest-open .chest-inside{opacity:1}.chest-lock{top:117px;z-index:3}.chest-open .chest-lock{transform:none}.chest-spark{top:65px;z-index:5}.chest-different-note{position:relative;padding-right:42px}.chest-different-delete{position:absolute;top:9px;right:9px;width:28px;height:28px;padding:0;border:1px solid var(--chest-line);border-radius:50%;background:var(--chest-soft);color:var(--chest-accent);font-size:19px;cursor:pointer}.chest-different-delete:disabled{opacity:.5}.chest-different-delete:focus-visible{outline:3px solid var(--chest-accent);outline-offset:2px}#heart-letter>.live-wrench{margin-left:auto}.chest-different-note strong{display:block;padding-right:3px}@media(prefers-reduced-motion:reduce){.chest-lid,.chest-inside{transition:none}}
