:root{--ink:#244b40;--muted:#768174;--paper:#f4f0e4;--line:#d9ddcf;--coral:#a95e49;--white:#fffdf7;font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #c7a451;outline-offset:4px}[hidden]{display:none!important}a{color:inherit}.site-header{max-width:1000px;margin:auto;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.brand{display:flex;gap:10px;align-items:center;font-weight:750;text-decoration:none}.brand-mark{border:1.5px solid var(--ink);width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:24px;font-family:serif}.brand small{display:block;font-weight:400;font-size:10px;margin-top:4px;letter-spacing:1px}.version{font-size:11px;color:var(--muted)}main{max-width:960px;margin:auto;padding:34px 24px 28px}h1,h2,p{margin-top:0}h1{font-size:clamp(29px,5vw,44px);letter-spacing:-1px;line-height:1.4;margin-bottom:16px;font-weight:700}h2{font-size:22px;line-height:1.5}p{line-height:1.85}.eyebrow{color:var(--coral);font-size:11px;letter-spacing:2px;font-weight:700;margin-bottom:12px}.muted,.small{color:var(--muted)}.small{font-size:12px;line-height:1.8}.card{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:0 12px 40px #293e2210}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}.primary,.secondary{padding:14px 22px;min-height:48px;border-radius:12px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.primary{background:var(--ink);color:white}.primary:hover{background:#345f4e}.secondary{border:1px solid var(--line);color:var(--ink);background:transparent}.text-button{background:transparent;color:var(--muted);padding:10px 0;font-size:12px;text-decoration:underline;text-underline-offset:4px}.home{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center;min-height:525px}.home .muted{font-size:15px}.parcel{height:340px;position:relative;perspective:900px;filter:drop-shadow(0 22px 18px #5a4e3620);margin:20px auto;width:100%;max-width:370px}.parcel-paper{position:absolute;inset:25px 8px 10px;background:#e5d6b9;border:1px solid #bcae91;border-radius:5px;transform:rotate(-5deg);background-image:repeating-linear-gradient(0deg,#fff5dc08 0 2px,transparent 2px 5px)}.parcel-flap{position:absolute;inset:25px 8px 10px;background:linear-gradient(33deg,transparent 49.5%,#b9a88b 50%,transparent 50.5%),linear-gradient(-33deg,transparent 49.5%,#b9a88b 50%,transparent 50.5%);transform:rotate(-5deg)}.parcel-string{position:absolute;top:0;bottom:0;left:58%;border-left:3px double #948166;transform:rotate(-5deg)}.parcel-string:after{content:"";position:absolute;width:340px;border-top:3px double #948166;left:-195px;top:58%}.parcel-address{position:absolute;left:45px;right:70px;top:72px;background:#fffbef;padding:17px 20px;border:1px solid #d2c7ad;transform:rotate(-7deg);font-family:serif}.parcel-address small{font-size:12px;color:#8c8878;display:block;letter-spacing:2px}.parcel-address strong{display:block;font-size:28px;font-weight:400;margin-top:9px;overflow-wrap:anywhere}.parcel-address span{font-size:12px;display:block;margin-top:10px;color:#817b68}.wax{position:absolute;left:calc(58% - 24px);top:52%;background:#ab604a;color:#f9dcc1;border:3px double #cd9072;border-radius:48%;width:52px;height:52px;display:grid;place-items:center;font-family:serif;font-size:25px;transform:rotate(-5deg);box-shadow:2px 3px 1px #6f49354d}.parcel-ticket{position:absolute;right:0;bottom:10px;background:#f9f4df;padding:10px 18px;border:1px dashed #b1b39b;transform:rotate(8deg);font-size:11px;letter-spacing:1px}.preview-tag{padding:9px 14px;background:#efe4c8;border:1px solid #ddd0ae;border-radius:10px;margin-bottom:16px;font-size:11px;line-height:1.7}.trial-note{margin-top:22px;border-top:1px solid var(--line);padding-top:12px}.editor-header{max-width:660px;margin:0 auto 24px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px;align-items:start}.editor{display:grid;gap:20px}.field{display:grid;gap:8px;font-size:14px;font-weight:600}.field small{font-weight:400;font-size:12px;line-height:1.7;color:var(--muted)}input,textarea{width:100%;min-height:46px;border:1px solid #cdd5c7;border-radius:10px;padding:12px 13px;background:#fff;color:var(--ink)}textarea{resize:vertical;line-height:1.8;min-height:180px}input:focus,textarea:focus{outline:2px solid #71917c;outline-offset:1px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.two-fields .field{display:block}.two-fields input{display:block;margin-top:8px}.two-fields small{font-size:10px;margin-left:4px}details{border-top:1px solid var(--line);padding-top:16px}summary{cursor:pointer;font-weight:600;font-size:14px}details .field{margin-top:18px}.editor-aside{position:sticky;top:20px}.editor-aside .parcel{height:280px}.notice{border:1px solid #d2dccb;background:#eef3e8;border-radius:12px;padding:16px;font-size:13px;line-height:1.8;margin-top:14px;overflow-wrap:anywhere}.notice.error{border-color:#d4a290;background:#fff0e9;color:#8a3e29}.check-row{display:flex;align-items:start;gap:8px;font-size:12px;line-height:1.8;color:var(--muted)}.check-row input{width:18px;height:18px;min-height:18px;margin:2px 0 0;flex-shrink:0}.form-tools{border-top:1px solid var(--line);padding-top:20px}.photo-tools{display:flex;align-items:center;gap:14px;margin-top:12px}.photo-thumb{width:100%;aspect-ratio:4/3;object-fit:contain;background:#eee6d4;border:1px solid var(--line);border-radius:8px}.photo-mini{width:100px}.inline-status{min-height:22px;color:var(--coral);font-size:12px;margin:8px 0 0}.privacy-note{font-size:11px;color:var(--muted);line-height:1.8}.danger{color:#a34c35}.result-links label{display:grid;gap:8px;margin:10px 0}.result-links input{font-size:12px}.result-links a{display:inline-block;margin:6px}.puzzle-page{max-width:550px;margin:auto}.puzzle-title{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:16px}.puzzle-title h1{font-size:26px;letter-spacing:-.5px;margin:0 0 6px}.puzzle-title p{font-size:12px;margin:0;color:var(--muted)}.steps{display:flex;align-items:center;gap:8px;font-size:10px;color:#8b9283;letter-spacing:1px;margin-bottom:14px}.steps span{height:1px;flex:1;background:var(--line)}.steps .active{color:var(--coral)}.puzzle-frame{background:#fffaf0;border:1px solid #c9c6b2;border-radius:5px;padding:11px 11px 20px;box-shadow:0 12px 28px #6858361a;transform:rotate(-.6deg)}.board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;aspect-ratio:4/3;position:relative}.tile{position:relative;min-width:0;padding:0;border:0;border-radius:2px;background-color:#e4d4b6;background-size:300% 300%;background-repeat:no-repeat;touch-action:manipulation;transition:transform .18s,box-shadow .18s;isolation:isolate}.tile:after{content:"";position:absolute;inset:0;border:1px solid #fff4d02e;pointer-events:none}.tile.selected{z-index:2;transform:translateY(-4px) rotate(2deg);box-shadow:0 4px 0 #b46e4a,0 0 0 3px #b46e4a}.tile.locked:after{border:1px solid #70927b80}.tile.locked .tile-pin{display:block}.tile-pin{position:absolute;right:4px;bottom:4px;background:#284b3dd9;color:#fff5da;width:17px;height:17px;border-radius:50%;display:none;font-size:10px;line-height:17px;text-align:center}.piece-label{position:absolute;inset:0;overflow:hidden;border:0;clip-path:inset(50%);white-space:nowrap;opacity:0}.board-caption{display:flex;align-items:center;justify-content:space-between;margin-top:12px;font-family:serif;color:#7d7a66;font-size:12px;padding:0 4px}.progress{height:4px;background:#dedfcd;border-radius:5px;overflow:hidden;min-width:80px;width:100px}.progress div{height:100%;background:#9d6c4c;transition:width .2s}.puzzle-help{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:10px 0 2px}.puzzle-help p{margin:0;font-size:12px;line-height:1.6;flex:1}.whispers{margin-top:20px;display:grid;gap:10px}.whisper{padding:15px 18px;background:#ebe4d1;border-radius:2px 14px 14px 14px;border-left:2px solid #b78360}.whisper small{font-size:10px;color:#8c795f;letter-spacing:1px;display:block;margin-bottom:6px}.whisper p{font-size:15px;line-height:1.8;margin:0;font-family:serif;white-space:pre-wrap;overflow-wrap:anywhere}.whisper.new{animation:appear .45s ease-out}.locked-note{font-size:12px;color:#89917e;text-align:center;padding:10px 8px;margin:0}.puzzle-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px}.completed-photo{display:block;width:100%;border-radius:2px;aspect-ratio:4/3;object-fit:contain;background:#e8dfc9}.restored{max-width:550px;margin:auto}.restored h1{font-size:30px}.restored .puzzle-frame{transform:rotate(-1.5deg);margin:24px 0 30px}.restored .primary{width:100%}.photo-back{position:relative;background:#fffdf4;border:1px solid #d7d7c8;border-radius:5px;padding:32px 26px;box-shadow:0 12px 35px #5f583b15}.photo-back:before{content:"";position:absolute;right:20px;top:20px;width:44px;height:55px;background:#dfe6d3;border:1px dashed #7a9078;transform:rotate(6deg)}.postmark{position:relative;color:#a46c4b;font-family:serif;text-transform:uppercase;font-size:11px;letter-spacing:2px;margin-bottom:34px}.letter-page{max-width:640px;margin:auto}.letter-heading{font-family:serif;font-weight:400;font-size:30px;margin-bottom:26px}.letter{font-size:17px;line-height:2.05;white-space:pre-wrap;overflow-wrap:anywhere}.letter-signature{text-align:right;font-family:serif;font-size:22px;margin:30px 0 0;color:var(--coral)}.reveal{margin-top:28px;padding:22px 20px;background:#e7eddf;border:1px dashed #b4bea4;border-radius:3px;animation:appear .6s ease-out}.reveal h2{font-size:21px;overflow-wrap:anywhere;margin-bottom:0}.final-photo{margin:0 auto 26px;max-width:300px;background:#fffdf4;padding:8px 8px 23px;border:1px solid var(--line);transform:rotate(2deg);box-shadow:0 5px 15px #68583614}.final-photo img{width:100%;display:block}.final-note{font-size:12px;text-align:center;margin-top:10px;color:#8c8069}footer{text-align:center;color:#87907d;font-size:11px;padding:20px 20px 28px}dialog{border:1px solid var(--line);border-radius:18px;padding:26px;max-width:420px;width:calc(100% - 36px);color:var(--ink);background:var(--white)}dialog::backdrop{background:#18372a88}dialog p{font-size:14px}.hint-target{outline:3px dashed #aa6144;outline-offset:2px;z-index:3}.hint-number{position:absolute;left:5px;top:5px;border-radius:4px;background:#fff9e1f0;font-size:13px;padding:2px 6px;color:#794b32}.editor .picture-choice{display:flex;gap:14px;align-items:start}.editor .picture-choice input{width:18px;min-height:18px;margin-top:3px}.teaser-preview{font-size:12px;line-height:1.8;padding:12px;background:#f4efdf;border-radius:8px;margin-top:10px}.teaser-preview p{margin-bottom:8px}.teaser-preview p:last-child{margin-bottom:0}.flip-in{animation:turn .55s ease-out}.flow-note{font-size:11px;color:#819078;margin:6px 0 0}.sr-only{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes turn{from{opacity:.3;transform:perspective(800px) rotateY(-25deg)}to{opacity:1;transform:perspective(800px) rotateY(0)}}
@media(max-width:680px){.site-header{padding:14px 18px}.brand{font-size:15px}.brand-mark{width:34px;height:34px;font-size:22px}.brand small{font-size:9px}.version{font-size:10px}main{padding:26px 18px 18px}.home{grid-template-columns:1fr;gap:0;min-height:0}.home h1{font-size:32px;margin-bottom:12px}.home .muted{font-size:14px}.home .parcel{height:270px;max-width:330px;order:-1;margin:0 auto 22px}.parcel-address{top:65px;left:37px;right:69px;padding:12px 17px}.parcel-address strong{font-size:25px}.home .actions{margin-top:15px}.home .primary{flex:1}.home .secondary{font-size:12px;padding:14px}.parcel-ticket{right:4px;bottom:1px}.parcel-string:after{width:285px;left:-165px}.parcel-paper,.parcel-flap{inset:15px 10px 8px}.home-copy .eyebrow{margin-bottom:8px}.editor-layout{grid-template-columns:1fr}.editor-aside{display:none}.editor-header h1{font-size:28px}.editor-header p{font-size:14px}.card{padding:22px 18px}.puzzle-title h1{font-size:23px}.puzzle-title{margin-bottom:13px}.puzzle-title p{font-size:12px}.whispers{margin-top:14px}.whisper{padding:13px 15px}.whisper p{font-size:14px}.photo-back{padding:28px 20px}.letter{font-size:16px}.restored h1{font-size:28px}.preview-tag{font-size:10px}.letter-heading{font-size:28px}.editor-header{margin-bottom:20px}.puzzle-frame{padding:9px 9px 17px}.board{gap:3px}.puzzle-bottom .text-button{font-size:11px}.steps{font-size:9px;gap:6px}.home .text-button{font-size:11px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.letter-signature small{font-family:system-ui,sans-serif;font-size:12px;color:var(--muted);letter-spacing:1px}.letter-signature{overflow-wrap:anywhere}

.header-tools{display:flex;align-items:center;gap:12px}.music-button{background:#e8e9db;color:var(--ink);padding:9px 12px;border:1px solid #d2d9c7;border-radius:20px;min-height:36px;white-space:nowrap;font-size:11px}.music-button[aria-pressed="true"]{background:#e8ddc9;border-color:#bd9974;color:#87583f}.music-credit{border:0;padding:0;margin:12px auto 0;max-width:520px;font-size:10px}.music-credit summary{font-size:10px;font-weight:400;color:#7b846f}.music-credit p{font-size:10px;margin-top:8px;line-height:1.8}.music-credit a{text-underline-offset:3px}@media(max-width:680px){.header-tools{gap:7px}.header-tools .version{display:none}.music-button{font-size:10px;padding:8px 10px}}

.photo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px}.photo-heading h2{font-size:18px;margin:0}.photo-upload{display:flex;width:100%;align-items:center;gap:14px;text-align:left;padding:18px;border:1px dashed #91a58d;border-radius:14px;background:#eef1e5;color:var(--ink);min-height:84px}.photo-upload>span:nth-child(2){flex:1}.photo-upload strong{display:block;font-size:16px}.photo-upload small{display:block;font-size:10px;color:#7e8875;margin-top:7px}.photo-upload .upload-plus{font-size:32px;font-weight:300;line-height:1}.photo-upload:hover{background:#e4ebdc}.photo-section #photo-guidance{font-size:11px;margin:12px 0 16px}.photo-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-comparison figure{margin:0;min-width:0}.photo-comparison figcaption{font-size:11px;color:#7d876f;margin-bottom:7px}.photo-comparison .photo-thumb{border-radius:5px;display:block}.mini-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;aspect-ratio:4/3;border:1px solid var(--line);background:#f5efdb;border-radius:5px;overflow:hidden}.mini-piece{background-size:300% 300%;background-repeat:no-repeat;min-width:0}.photo-preview-note{font-size:10px;color:#808b73;line-height:1.7;margin:9px 0 0}.share-heading{font-weight:650;font-size:16px;margin-bottom:8px}.share-actions{margin:14px 0 18px;gap:8px}.share-actions .primary,.share-actions .secondary{font-size:12px;padding:12px 15px}.result-links .share-actions a{margin:0}.result-links input{background:#fffdf5} @media(max-width:680px){.photo-heading h2{font-size:17px}.photo-upload{padding:15px;gap:12px}.photo-comparison{gap:9px}.share-actions .primary{width:100%}.share-actions .secondary{width:100%}}

#photo-status:empty{display:none}

.writing-help{background:#f1eddf;border:1px solid #e0decd;border-radius:12px;padding:17px;margin:0 0 20px}.writing-help h2{font-size:16px;margin:0 0 8px}.writing-help>.small{font-size:11px;margin-bottom:12px}.writing-prompts{display:flex;gap:7px;flex-wrap:wrap}.writing-prompts button{font:inherit;font-size:11px;background:#fffdf5;color:#416051;border:1px solid #ccd1bc;border-radius:20px;padding:9px 12px;min-height:40px}.writing-prompts button[aria-expanded="true"]{background:#dfe7d6;border-color:#7d967b}.writing-thought{margin-top:14px;padding-top:14px;border-top:1px solid #d5d7c7}.writing-thought strong{display:block;font-size:14px;line-height:1.8;font-family:serif}.writing-thought p{font-size:11px;line-height:1.8;color:#7d876f;margin:7px 0 0}.board.completing{gap:0;transition:gap .4s ease}.board.completing .tile{border-radius:0;box-shadow:none;outline:none;transform:none}.board.completing .tile:after,.board.completing .tile-pin{opacity:0;transition:opacity .25s}.just-restored .puzzle-frame{animation:photo-settle .65s ease-out}.back-invitation{min-height:100px}.back-invitation .muted{font-family:serif}.back-invitation[hidden]{display:none}.invitation-in{animation:appear .5s ease-out}.restored .puzzle-frame{transition:transform .5s}.keepsake-dialog{width:min(560px,calc(100% - 28px));max-width:560px;max-height:calc(100dvh - 36px);overflow-y:auto;padding:25px;overscroll-behavior:contain}.keepsake-header{display:flex;justify-content:space-between;align-items:start;gap:12px}.keepsake-header .eyebrow{font-size:10px;margin:0 0 8px}.keepsake-header h2{font-size:25px;margin:0 0 14px;font-family:serif}.keepsake-header button{background:transparent;color:var(--ink);font-size:25px;padding:0;width:40px;height:40px;flex:none}.keepsake-dialog .field{margin:16px 0}.keepsake-dialog textarea{min-height:95px}.keepsake-dialog input[type="date"]{min-width:0;max-width:100%;font-family:inherit}.keepsake-dialog .check-row{font-size:13px;line-height:1.6}.keepsake-dialog form>.small{font-size:11px}.keepsake-preview{display:block;width:100%;height:auto;margin:18px 0;border:1px solid #d7d7c8;border-radius:4px}.keepsake-preview[hidden],.keepsake-download[hidden],.keepsake-save-note[hidden]{display:none}.keepsake-download{display:block;text-align:center;text-decoration:none;margin:15px 0}.keepsake-dialog #keepsake-status{margin-top:14px;line-height:1.8}.keepsake-save-note{line-height:1.8;font-size:11px}@keyframes photo-settle{from{opacity:.55;transform:rotate(0deg) scale(.98)}to{opacity:1;transform:rotate(-1.5deg) scale(1)}}@media(max-width:680px){.keepsake-dialog{padding:22px 18px}.writing-help{padding:15px 13px}.writing-prompts{gap:6px}.writing-prompts button{padding:9px 10px}.letter-page>.actions{align-items:stretch}.letter-page>.actions>.primary{width:100%;text-align:center}}@media(prefers-reduced-motion:reduce){.board.completing{transition:none}.just-restored .puzzle-frame,.invitation-in{animation:none}}

.keepsake-instruction{padding:12px 14px;background:#e5ecdd;border-radius:10px;font-size:14px;color:#315447;margin-bottom:12px}.keepsake-options{margin:0 0 14px;padding:10px 0}.keepsake-options summary{font-size:12px}.keepsake-preview{-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}.keepsake-dialog{max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px)}
main>.card+.card{margin-top:20px}.site-header nav{font-size:12px;line-height:1.8}.site-header nav a{display:inline-block}
