:root{--ink:#40372a;--muted:#776e59;--moss:#526638;--dark:#38482d;--border:#82785d;--cream:#fffbee;--paper:#f8f5e9;--line:#d7cfb8;--serif:STKaiti,KaiTi,"Songti SC",SimSun,"Noto Serif CJK SC",serif;--sans:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);font:16px/1.6 var(--sans);background-color:var(--paper);background-image:radial-gradient(#a8986430 .65px,transparent .85px);background-size:5px 5px}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button{background:none;border:0}button:focus-visible,a:focus-visible{outline:3px solid #ac6638;outline-offset:3px}button:disabled{opacity:.55;cursor:wait}button:active:not(:disabled){transform:translateY(1px)}button:hover{filter:brightness(.98)}i[data-art]{display:inline-flex;align-items:center;justify-content:center;font-style:normal;flex:none}canvas.sprite{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:var(--serif)}.mast{background:#fcf9eefa;border-bottom:2px solid #bcb59e}.mastin,main,footer{width:min(1330px,92%);margin:auto}.mastin{min-height:80px;display:flex;align-items:center;gap:clamp(28px,6vw,96px)}.brand{font-size:25px;font-weight:900;letter-spacing:.08em;display:flex;align-items:center;gap:11px;white-space:nowrap;padding:0}.brand i{width:44px;height:44px}.mast nav{display:flex;gap:12px;align-self:stretch;align-items:center}.mast nav button{font-size:15px;font-weight:600;white-space:nowrap;padding:6px 17px;border:1px solid transparent;border-radius:3px;color:#69654e}.mast nav button.active{background:#e1e8ce;color:#425631;border-color:#b3bd96;box-shadow:inset 0 -2px #cad6b5}.tools{display:flex;gap:10px;margin-left:auto}.square{width:36px;height:36px;display:grid;place-items:center;border:1px solid #aea58b;border-radius:3px;background:#fffbed;box-shadow:0 2px #d9d2bf}.square i{width:19px;height:19px}.square.on{background:#dce8c9}
.intro{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:30px 0 22px}.intro h1{font-size:clamp(30px,3.1vw,46px);line-height:1.28;letter-spacing:.055em;color:#3f382b;font-weight:900;display:flex;align-items:center;gap:14px}.intro h1 i{width:24px;height:24px}.intro p{color:var(--muted);margin-top:7px;font-size:15px;letter-spacing:.045em}.datechip{display:flex;gap:10px;align-items:center;padding:7px 14px;background:#f6eed8;border:1px solid #c9bda0;border-radius:3px;font-size:14px;white-space:nowrap}.datechip i{width:25px;height:25px}.homegrid{display:grid;grid-template-columns:minmax(0,2.6fr) minmax(258px,1fr);gap:20px}.pixelbox{border:2px solid #76694e;box-shadow:3px 3px 0 #c6bda3;border-radius:3px;background:var(--cream)}.scene{display:flex;flex-direction:column;overflow:hidden;min-height:360px}.sceneart{position:relative;flex:1;min-height:270px;isolation:isolate;background:#bec79c;aspect-ratio:2.04}.sceneart>.land{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;image-rendering:pixelated}.scenehud{position:absolute;top:13px;left:13px;display:flex;align-items:center;gap:7px;padding:4px 10px;background:#fff8e7ed;border:1px solid #74664e;font-size:13px;font-weight:600;box-shadow:2px 2px #453c3045}.scenehud i{width:17px;height:17px}.spot{position:absolute;transform:translate(-50%,-100%);background:#fff9e9f5;color:#483c29;border:2px solid #64523e;border-radius:3px;padding:3px 9px;white-space:nowrap;font-size:13px;font-weight:700;box-shadow:2px 2px #4637225c;display:flex;align-items:center;gap:5px;line-height:1.55}.spot:before,.spot:after{content:"";position:absolute;left:calc(50% - 5px);bottom:-7px;border-style:solid;border-width:6px 5px 0;border-color:#64523e transparent transparent}.spot:after{bottom:-4px;border-top-color:#fff9e9}.spot:hover,.spot:focus-visible{transform:translate(-50%,-105%);background:#fff}.spot i{width:15px;height:15px}.spot.photo{left:30%;top:50%}.spot.diary{left:51%;top:74%}.spot.event{left:75%;top:49%}.wallphoto{position:absolute;object-fit:cover;left:26%;top:44%;width:8%;height:13%;border:3px ridge #b9874e;pointer-events:none}.scenefoot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 15px;border-top:2px solid #74664e;font-size:14px;color:#68624d;background:#f6f0db}.scenefoot span:first-child{display:flex;align-items:center;gap:7px;color:var(--dark);font-weight:700}.scenefoot i{width:18px;height:18px}.scenefoot small{font-size:13px}
.notebook{display:flex;flex-direction:column;background:#fcf7e6}.panelhead{display:flex;align-items:center;gap:10px;padding:10px 16px;background:#536842;color:#fffbea;border-bottom:2px solid #6f6b4f;box-shadow:inset 0 2px #83916e}.panelhead i{width:22px;height:22px}.panelhead h2{font-size:21px;letter-spacing:.09em}.panelhead em{font:15px monospace;color:#d2ddb8;margin-left:auto;letter-spacing:4px}.notebody{display:flex;flex-direction:column;gap:14px;padding:18px;flex:1}.note{background:repeating-linear-gradient(0deg,transparent,transparent 23px,#c0aa7433 24px),#f5e9c4;position:relative;min-height:87px;padding:14px 15px 12px;box-shadow:1px 2px #d6cba9;transform:rotate(-1deg);margin:3px 2px 0;border:1px solid #d6c79f}.note:before{content:"";position:absolute;background:#d1b887b5;width:54px;height:12px;left:calc(50% - 27px);top:-7px;transform:rotate(4deg)}.note small{font-size:12px;color:#897654;letter-spacing:.14em}.note p{font-family:var(--serif);font-weight:bold;font-size:19px;line-height:1.6;padding-right:24px}.note i{position:absolute;right:9px;bottom:10px;width:29px;height:34px}.counts{margin:auto 0;display:grid}.count{display:flex;align-items:center;gap:9px;text-align:left;padding:7px 2px;border-bottom:1px dashed #d4cbb0;font-size:14px}.count:last-child{border:0}.count i{width:20px;height:20px}.count span{margin-left:auto;color:#746d57}.count strong{font-family:Georgia,serif;font-size:18px;color:#554d39;margin-right:3px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;font-size:15px;min-height:39px;padding:7px 16px;border:1px solid #485636;border-radius:3px;background:#586f42;box-shadow:inset 0 1px #809368,0 2px #394830;color:#fffced}.secondary,.danger{background:#f6efd9;color:#544b39;box-shadow:0 2px #ccc1a4;border-color:#a79a79}.danger{color:#984d40}.primary i,.secondary i{width:18px;height:18px}.cornertitle{display:flex;align-items:center;gap:10px;margin:27px 0 13px}.cornertitle h2{font-size:24px;letter-spacing:.06em}.cornertitle i{width:24px;height:24px}.cornertitle:after{content:"";flex:1;border-top:2px dotted #ccc3a7;margin-left:5px}.corners{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.corner{display:flex;align-items:center;gap:16px;text-align:left;padding:17px 19px;border:1.5px solid #aa9c79;border-radius:3px;box-shadow:2px 3px #d0c5a8;background:#f7efd9;transition:translate .15s}.corner:nth-child(2){background:#eaf0df;border-color:#a2ab90}.corner:nth-child(3){background:#f6e8dc;border-color:#b8a08c}.corner:hover{translate:0 -2px}.corner>i{width:58px;height:58px}.corner strong{display:block;font-family:var(--serif);font-size:22px;letter-spacing:.07em}.corner small{color:#6d6455;font-size:14px}.corner b{margin-left:auto;font-size:20px;color:#94876d;font-weight:400}
footer{margin:34px auto 15px;display:flex;gap:9px;align-items:center;justify-content:center;color:#8b826e;font-size:12px;letter-spacing:.1em}footer i{width:15px;height:15px}footer b{font-size:9px}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:12px}.pagehead .intro{margin-bottom:24px}.empty{padding:60px 20px;text-align:center}.empty i{width:75px;height:75px;margin-bottom:10px}.empty h2{font-size:24px}.empty p{color:var(--muted);margin:8px auto 22px}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px}.polaroid{background:#fffcf1;padding:11px 11px 16px;border:1px solid #c1b59a;box-shadow:2px 3px #d3cbb5;text-align:left}.polaroid img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.polaroid strong,.item strong{display:block;font:700 21px/1.5 var(--serif);margin-top:8px}.gallery strong,.gallery p,.entries strong,.entries p{overflow-wrap:anywhere}.polaroid small,.item small,.tiny{font-size:13px;color:var(--muted)}.entries{display:grid;gap:12px}.item{position:relative;text-align:left;display:flex;align-items:flex-start;gap:16px;padding:17px 20px}.item>i{width:40px;height:40px;margin-top:4px}.item p,.memorytext{white-space:pre-wrap}.item strong{margin:2px 0}.item p{color:#6b624f}.tag{background:#e5ead5;border:1px solid #c0c7a6;padding:2px 6px;font-size:12px;color:#4c6140;border-radius:2px;margin-left:8px}
dialog{padding:0;border:2px solid #75684e;border-radius:4px;background:#fcf8e9;color:var(--ink);width:min(510px,calc(100% - 28px));max-height:87dvh;box-shadow:5px 6px 0 #3e362d55}dialog::backdrop{background:#312e2380}.dlghead{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:#f4eed9;border-bottom:1px solid #c7bda2}.dlghead h2{font-size:22px}.close{font:24px/1.1 system-ui;background:#fffbed;border:1px solid #b3a78b;border-radius:2px;width:32px;height:32px}.dlgcontent{padding:20px}.dlgcontent p{margin-bottom:14px}.form{display:grid;gap:15px}label.field{display:grid;gap:5px;font-size:14px;font-weight:650}input:not([type=checkbox]),textarea,select{width:100%;padding:9px 10px;border:1px solid #b4a88a;border-radius:3px;background:#fffdf4;font-size:16px}textarea{resize:vertical;min-height:95px}.actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}.actions .danger{margin-right:auto}.choose{display:grid;gap:10px}.choose button{width:100%}.choose .corner>i{width:38px;height:38px}.detailphoto{width:100%;max-height:45vh;object-fit:contain;display:block;margin-bottom:14px;background:#eee8d6}.filehint,.hint{color:var(--muted);font-size:14px}.error{color:#934b3e}.form .error:empty{display:none}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.previewstrip{display:flex;gap:7px;overflow:auto}.previewstrip img{width:64px;height:64px;object-fit:cover;border:3px solid white}.settinggroup{border-top:1px dashed var(--line);margin:20px 0 8px;padding-top:15px}.settinggroup h3{margin-bottom:4px}#toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);padding:9px 18px;color:#fff9e9;background:#414f34;border:1px solid #c2c7a6;border-radius:4px;font-size:14px;opacity:0;pointer-events:none;z-index:6}#toast.show{opacity:1}.check{display:flex;align-items:center;gap:7px}.recent{margin-top:24px}.recent h2{margin-bottom:10px}
@media(min-width:1550px){.intro{margin:42px 0 28px}.sceneart{aspect-ratio:2}.cornertitle{margin-top:32px}}
@media(max-width:980px){.mastin{gap:26px}.mast nav{gap:2px}.mast nav button{padding:5px 10px}.homegrid{grid-template-columns:minmax(0,1fr) 244px;gap:14px}.notebody{padding:13px;gap:11px}.corner{gap:10px;padding:12px}.corner>i{width:41px;height:41px}.corner small{font-size:13px}.corners{gap:10px}.sceneart{aspect-ratio:auto}.scenefoot small{font-size:12px}}
@media(max-width:720px){.mastin{flex-wrap:wrap;gap:0;padding:12px 0 7px}.brand{font-size:22px}.brand i{width:34px;height:34px}.mast nav{order:3;flex-basis:100%;justify-content:space-between;margin-top:10px}.mast nav button{padding:5px 12px;font-size:14px}.tools .square{height:32px;width:32px}.intro{margin:22px 0 16px;align-items:flex-start}.intro h1{font-size:29px;gap:8px}.intro h1 i{width:20px;height:20px}.intro p{font-size:14px;letter-spacing:0}.datechip{font-size:12px;padding:3px 6px;gap:3px}.datechip i{width:17px;height:17px}.homegrid{grid-template-columns:1fr}.scene{min-height:0}.sceneart{aspect-ratio:1.66;min-height:0}.scenefoot{padding:8px 10px}.scenefoot small{font-size:11px}.spot{font-size:11px;padding:2px 5px}.scenehud{top:8px;left:8px;font-size:11px}.notebody{display:grid;grid-template-columns:1fr 1fr;gap:14px}.note{align-self:center;margin:3px 0}.counts{margin:0}.notebody>.primary{grid-column:1/-1}.panelhead{padding:6px 13px}.panelhead h2{font-size:18px}.count{padding:3px 0}.corners{grid-template-columns:1fr}.corner{gap:15px}.corner strong{font-size:19px}.corner small{font-size:14px}.cornertitle{margin:20px 0 10px}.cornertitle h2{font-size:21px}.pagehead{align-items:flex-start}.pagehead>.primary{margin:24px 0 0;padding:6px 9px;font-size:13px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.polaroid{padding:7px}.polaroid strong{font-size:17px}.item{padding:12px}.note p{font-size:17px}.datechip .year{display:none}}
@media(max-width:420px){.intro.homeintro{flex-wrap:wrap;gap:8px}.datechip{border:0;background:none;padding:0}.intro.homeintro .datechip{display:none}.spot i{width:12px;height:12px}}
.sceneart{container-type:size;overflow:hidden}.world{position:absolute;left:50%;top:50%;width:max(100cqw,177.6833cqh);aspect-ratio:1672/941;transform:translate(-50%,-50%)}.world .land{width:100%;height:100%;display:block}.spot.photo{left:26.7%;top:35%}.spot.diary{left:48.4%;top:62%}.spot.event{left:79.5%;top:33%}.wallphoto{left:22.9%;top:36.15%;width:7.65%;height:10.25%;border:0}.note p{white-space:pre-line;overflow-wrap:anywhere}.intro h1{overflow-wrap:anywhere}.sceneart{min-height:clamp(290px,29vw,425px)}@media(max-width:720px){.sceneart{height:auto;min-height:0;flex:none;aspect-ratio:1.66}.note p{padding-right:15px}}
