
.letters-world{min-height:720px;--ink:#51413b}.desk-backdrop{position:absolute;inset:0;z-index:-3;background:#76645c}.desk-backdrop img{width:100%;height:100%;object-fit:cover;object-position:58% center;filter:saturate(.68)}.desk-backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#38272320 10%,#37262438 27%,transparent 58%),linear-gradient(0deg,#392c2b35,transparent 40%)}.letters-world .sidebar{background:linear-gradient(90deg,#e8dcd2ed,#e2d5cbe0 85%,#e4d7cbb8)}.letters-world .nav-link{font-size:11px;gap:11px}.letters-world .nav-star{font-size:14px;margin-left:0}.letters-heading{position:absolute;left:calc(var(--side) + 4.3vw);top:10%;color:#f1e8df;max-width:37%;text-shadow:0 2px 18px #211b1860}.letters-heading h1{font-size:clamp(64px,5.8vw,112px);font-style:italic;font-weight:400;line-height:.83;letter-spacing:-.04em;text-transform:uppercase;margin:0}.letters-heading h1 span{margin-left:36px}.letters-heading .signature{font-size:clamp(68px,6.7vw,125px);margin-top:6px;margin-left:25px;color:#e0cfc2;line-height:.68;transform:rotate(-7deg)}.letters-motto{font-size:11px;letter-spacing:.19em;line-height:1.8;margin-top:35px}.letters-invitation{font-family:var(--chinese);font-size:12px;letter-spacing:.12em;margin-top:15px;color:#ede0d4}.envelope-scene{position:absolute;left:calc(var(--side) + 4vw);bottom:10%;width:clamp(270px,25vw,430px);perspective:1100px;z-index:3}.envelope{display:block;position:relative;width:100%;height:auto;aspect-ratio:1.65;isolation:isolate;transform:rotate(-5deg);filter:drop-shadow(4px 16px 15px #24171165);padding:0;perspective:1000px}.envelope-back{position:absolute;inset:0;background:#c8b5a6;border:1px solid #b69a88}.envelope-paper{position:absolute;bottom:12%;left:7%;width:86%;height:95%;padding:25px 15px 0;background:linear-gradient(115deg,#efe1d2,#e6d3bf);box-shadow:0 0 10px #6d504521;color:#6e554b;text-align:center;z-index:1}.envelope-paper>span{font-size:27px;font-style:italic;display:block}.envelope-paper i{font-family:var(--chinese);font-size:10px;font-style:normal;letter-spacing:.09em;display:block;margin-top:10px}.envelope-front{position:absolute;inset:0;clip-path:polygon(0 0,50% 54%,100% 0,100% 100%,0 100%);background:linear-gradient(32deg,transparent 49.7%,#c4ad9955 50%,transparent 50.4%),linear-gradient(-32deg,transparent 49.7%,#c4ad9980 50%,transparent 50.4%),linear-gradient(110deg,#dcc9b8,#ead9c9 55%,#d6bead);z-index:3;border:1px solid #c9b39f}.envelope-flap{position:absolute;inset:0 0 auto;height:57%;clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(170deg,#e6d5c5,#d1b9a6);transform-origin:50% 0;z-index:4;backface-visibility:visible}.wax-seal{position:absolute;z-index:5;top:44%;left:calc(50% - 26px);width:52px;height:52px;display:grid;place-items:center;background:radial-gradient(circle at 36% 28%,#ac8971,#80604d 72%);border:3px solid #96735b;box-shadow:0 3px 5px #6d4e4455,inset 0 0 0 2px #bd9a7a8a;border-radius:47% 53% 48% 45%;color:#d4b691;text-shadow:1px 2px 1px #574134;font-size:31px}.envelope:focus-visible{outline:2px solid #f7e8d6;outline-offset:15px}.write-caption{display:flex;align-items:center;justify-content:space-between;width:100%;padding:27px 8px 0;color:#f1e4d6;text-shadow:0 2px 9px #31221d;text-align:left}.write-caption>span:first-child{font-size:13px;letter-spacing:.2em}.write-caption>span:last-child{font-family:var(--chinese);font-size:12px;letter-spacing:.12em}.write-caption i{font-family:var(--serif);font-size:20px;font-style:normal;margin-left:8px}.write-caption:hover{color:#fff4e6!important}.letter-actions{position:absolute;right:30px;top:13%;z-index:4}.letter-actions>button{width:120px;min-height:143px;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:17px 10px;background:#e6d7c8df;border:1px solid #c8b29d;box-shadow:0 5px 25px #35241b20}.letter-actions svg{width:35px;height:35px;fill:none;stroke:#786351;stroke-width:1;margin-bottom:12px}.letter-actions span{font-size:12px;letter-spacing:.15em}.letter-actions small{font-family:var(--chinese);font-size:11px;margin-top:9px;letter-spacing:.08em}.letter-actions b{font-family:var(--serif);font-size:12px;font-weight:400;margin-left:5px}.letters-storage-note{position:absolute;left:calc(var(--side) + 4vw);bottom:24px;color:#e1d2c4;font-family:var(--chinese);font-size:10px;letter-spacing:.08em;text-shadow:0 1px 6px #33221c}.letters-world .music-dock{right:30px;bottom:26px}.letter-dialog{width:min(660px,calc(100% - 40px));max-height:calc(100svh - 40px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #c6ae97;padding:25px 42px 30px;background:linear-gradient(120deg,#f0e5d8,#e7d9ca);color:#5e4c42;box-shadow:0 18px 90px #20171270}.letter-dialog::backdrop{background:#271e1ab8;backdrop-filter:blur(5px)}.letter-dialog-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.2em}.letter-dialog-top>button{font-size:28px;width:40px;height:40px;margin-right:-10px;padding:0}.paper-crest{text-align:center;font-size:33px;color:#a1836b;margin:2px 0 12px}.compose-dialog h2{font-size:46px;font-weight:400;font-style:italic;letter-spacing:-.03em;margin:0 0 12px}.paper-subtitle{font-family:var(--chinese);font-size:12px;line-height:1.8;color:#8a7565;margin:0 0 20px}.compose-dialog textarea{display:block;resize:vertical;width:100%;min-height:210px;max-height:45svh;padding:0 2px;border:0;border-radius:0;background:repeating-linear-gradient(transparent 0 31px,#bba58c45 31px 32px);font-family:var(--chinese);font-size:14px;line-height:32px;color:#5b493e;letter-spacing:.05em}.compose-dialog textarea::placeholder,.letter-signature input::placeholder{color:#aa9482}.compose-dialog textarea:focus-visible,.letter-signature input:focus-visible{outline:1px solid #ad8a70;outline-offset:6px}.writing-meta{display:flex;justify-content:space-between;gap:16px;margin:13px 0 23px;font-family:var(--chinese);font-size:10px;color:#8c7767;line-height:1.6}.writing-meta span:last-child{flex-shrink:0;font-family:var(--serif);font-size:12px;letter-spacing:.1em}.letter-signature{display:flex;align-items:center;gap:14px;font-family:var(--chinese);font-size:12px}.letter-signature label{flex-shrink:0}.letter-signature input{min-width:0;width:180px;border:0;border-bottom:1px solid #baa28e;padding:8px 0;background:none;color:#654e40;font:inherit}.letter-signature time{margin-left:auto;font-family:var(--serif);font-size:14px;letter-spacing:.1em}.letter-submit-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid #bca58f66;padding-top:20px;margin-top:26px}.letter-submit-row p{font-family:var(--chinese);font-size:10px;line-height:1.9;color:#8b7564;margin:0}.seal-submit{display:flex;align-items:center;gap:13px;padding:0;font-family:var(--chinese);font-size:12px;white-space:nowrap}.seal-submit>span:first-child{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:#977760;color:#e4cdb2;font-size:28px;box-shadow:inset 0 0 0 3px #b1927566,0 2px 5px #74543d33}.letter-error{font-family:var(--chinese);font-size:12px;line-height:1.8;color:#963e35;padding:10px 0;margin:10px 0}.letter-error[hidden]{display:none}.collection-dialog{width:min(960px,calc(100% - 40px));padding:25px 35px}.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 24px}.collection-heading h2{font-size:49px;font-style:italic;font-weight:400;margin:0;line-height:1.2}.collection-heading p{font-family:var(--chinese);font-size:12px;color:#8c7767;margin:8px 0 0}.collection-heading>button,.collection-empty>button{font-family:var(--chinese);font-size:12px;padding:12px 0;border-bottom:1px solid #a88b72;white-space:nowrap}.collection-heading>button span,.collection-empty>button span{margin-left:18px}.collection-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:300px;padding:30px 15px}.collection-empty[hidden],.collection-content[hidden]{display:none}.collection-empty>span{font-size:42px;color:#aa8e76}.collection-empty h3{font-family:var(--chinese);font-weight:400;font-size:18px;margin:24px 0 4px;line-height:1.8;letter-spacing:.08em}.collection-empty p{font-family:var(--chinese);font-size:12px;color:#8c7767;line-height:1.9}.collection-empty>button{margin-top:15px}.collection-content{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:340px;max-height:52svh;border-top:1px solid #bca58f77;border-bottom:1px solid #bca58f77}.letter-list{overflow-y:auto;scrollbar-width:thin;border-right:1px solid #bca58f77;padding:15px 18px 15px 0}.letter-list>button{display:block;text-align:left;width:100%;padding:15px 13px;border-bottom:1px solid #baa38b44}.letter-list>button[aria-pressed=true]{background:#cdb7a43b;box-shadow:inset 2px 0 #a78970}.letter-list strong{display:block;font-family:var(--chinese);font-size:13px;font-weight:400;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.letter-list p{font-family:var(--chinese);font-size:11px;color:#8c7767;line-height:1.8;margin:8px 0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.letter-list time{font-size:11px;letter-spacing:.06em;color:#9b826e}.saved-letter{padding:24px 0 22px 30px;overflow:auto;scrollbar-width:thin}.saved-meta{display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.13em;color:#9b826e}.saved-letter h3{font-size:35px;font-style:italic;font-weight:400;margin:24px 0 20px}.saved-letter #saved-body{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--chinese);font-size:14px;line-height:2.1;letter-spacing:.04em;margin:0;min-height:100px}.saved-signature{text-align:right;font-family:var(--chinese);font-size:12px;margin-top:28px;color:#8a705a}.saved-signature span{font-size:15px;color:#66503e;margin-left:7px;overflow-wrap:anywhere}.saved-footer{margin-top:28px;font-family:var(--chinese);font-size:11px}.saved-footer button{padding:8px 0;font:inherit;color:#987c68}.saved-footer>button{border-bottom:1px solid #b69e8966}.saved-footer>div{line-height:2}.saved-footer>div button{margin-left:18px}.saved-footer #confirm-delete{color:#914d40}.collection-storage{font-family:var(--chinese);font-size:10px;line-height:1.8;color:#9b826e;margin:18px 0 0}body:has(.letter-dialog[open]){overflow:hidden}
@media(min-width:1700px){.letters-world .nav-link{font-size:13px}.envelope-scene{bottom:12%}.letters-motto{font-size:12px}.letter-actions{right:40px}.letter-actions>button{width:138px;min-height:160px}}
@media(max-width:1150px) and (min-width:851px){.letters-heading{left:calc(var(--side) + 30px);top:12%;max-width:42%}.letters-heading h1{font-size:6.7vw}.letters-heading .signature{font-size:8vw}.letters-motto{font-size:10px;margin-top:30px}.letters-invitation{font-size:11px}.letter-actions{right:20px;top:15%}.letter-actions>button{width:100px;min-height:130px}.envelope-scene{width:280px;left:calc(var(--side) + 25px);bottom:12%}.letters-storage-note{left:calc(var(--side) + 25px)}.desk-backdrop img{object-position:61% center}}
@media(max-width:850px){.letters-world{min-height:850px;height:100svh}.letters-world .sidebar{height:94px;background:linear-gradient(180deg,#e4d8cbf5,#e4d8cb94,transparent)}.letters-world .nav-link{font-size:10px}.letters-heading{left:7%;top:140px;max-width:60%}.letters-heading h1{font-size:10vw}.letters-heading .signature{font-size:11vw;margin-left:15px}.letters-motto{font-size:9px;margin-top:27px;letter-spacing:.15em}.letters-invitation{font-size:11px}.desk-backdrop img{object-position:64% center}.desk-backdrop:after{background:linear-gradient(90deg,#38272375,transparent 80%),linear-gradient(0deg,#392c2b60,transparent 60%)}.envelope-scene{left:8%;bottom:15%;width:43%;max-width:340px}.letter-actions{top:132px;right:25px}.letter-actions>button{width:105px;min-height:130px}.letters-storage-note{left:25px;bottom:24px;max-width:55%;font-size:9px;line-height:1.8}.letters-world .music-dock{right:24px;bottom:26px}.letters-world .music-panel{position:fixed;bottom:125px;z-index:20}.letters-world .toast{position:fixed;bottom:35px}.collection-content{grid-template-columns:200px minmax(0,1fr)}.saved-letter{padding-left:22px}.letter-dialog{padding:20px 28px}.collection-dialog{padding:20px 25px}.letter-list{padding-right:12px}.envelope-paper>span{font-size:25px}.envelope-paper i{font-size:9px}}
@media(max-width:520px){.letters-world{min-height:780px}.letters-world .sidebar{height:86px}.letters-world .nav-link{font-size:9px;gap:0}.letters-heading{left:7%;top:132px;max-width:78%}.letters-heading h1{font-size:14vw}.letters-heading h1 span{margin-left:23px}.letters-heading .signature{font-size:16vw;margin-left:18px}.letters-motto{font-size:8px;line-height:1.7;margin-top:30px}.letters-invitation{font-size:10px;margin-top:13px}.letter-actions{right:20px;top:auto;bottom:34%}.letter-actions>button{width:83px;min-height:107px;padding:12px 5px}.letter-actions svg{width:27px;height:27px;margin-bottom:8px}.letter-actions span{font-size:9px;letter-spacing:.1em}.letter-actions small{font-size:9px;margin-top:7px}.envelope-scene{left:8%;bottom:17%;width:62%;max-width:270px}.envelope-paper{padding-top:17px}.envelope-paper>span{font-size:23px}.envelope-paper i{font-size:8px}.wax-seal{width:42px;height:42px;left:calc(50% - 21px);font-size:25px}.write-caption{padding-top:22px;gap:8px}.write-caption>span:first-child{font-size:10px;letter-spacing:.13em}.write-caption>span:last-child{font-size:10px;letter-spacing:0}.write-caption i{font-size:16px;margin-left:3px}.letters-storage-note{bottom:27px;left:20px;max-width:52%}.letter-dialog{width:calc(100% - 24px);max-height:calc(100svh - 24px);padding:15px 20px 22px}.letter-dialog-top{font-size:8px}.paper-crest{font-size:27px}.compose-dialog h2{font-size:36px}.paper-subtitle{font-size:11px;margin-bottom:15px}.compose-dialog textarea{font-size:13px;min-height:185px;line-height:30px;background:repeating-linear-gradient(transparent 0 29px,#bba58c45 29px 30px)}.writing-meta{font-size:9px;margin-bottom:16px}.letter-signature{flex-wrap:wrap;gap:8px;font-size:11px}.letter-signature input{width:calc(100% - 35px)}.letter-signature time{margin-top:5px}.letter-submit-row{align-items:flex-start;gap:12px;margin-top:20px;padding-top:16px}.letter-submit-row p{font-size:9px;max-width:55%}.seal-submit{gap:7px;font-size:11px}.seal-submit>span:first-child{width:34px;height:34px;font-size:23px}.collection-heading h2{font-size:36px}.collection-heading p{font-size:10px}.collection-heading>button{font-size:11px}.collection-heading>button span{margin-left:5px}.collection-content{display:flex;flex-direction:column;max-height:none;min-height:0}.letter-list{display:flex;overflow-x:auto;overflow-y:hidden;max-height:130px;padding:10px 0;border-right:0;border-bottom:1px solid #bca58f77;flex-shrink:0}.letter-list>button{min-width:145px;width:145px;padding:10px 12px;border-bottom:0;border-right:1px solid #baa38b44}.letter-list strong{font-size:11px}.letter-list p{font-size:10px;margin:5px 0;-webkit-line-clamp:1}.saved-letter{padding:20px 0;max-height:48svh}.saved-letter #saved-body{font-size:13px}.saved-letter h3{margin:18px 0;font-size:29px}.collection-storage{font-size:9px}.collection-empty{min-height:280px;padding:20px 0}.collection-empty h3{font-size:16px}.collection-empty p{font-size:11px}}

#letter-login,#collection-login{display:inline-block;color:#735e56;text-underline-offset:5px;margin:12px 0}#letter-login[hidden],#collection-login[hidden]{display:none}#cloud-status{font-size:13px;color:#735e56}.seal-submit:disabled{opacity:.55;cursor:wait}
