
*{box-sizing:border-box}body{margin:0;color:#555;font:12px '돋움',Dotum,monospace;background:#cfdfdd}button,input,textarea,select{font:12px '돋움',Dotum,monospace;color:#555}button,select{cursor:pointer}button{border:1px solid #aaa;background:linear-gradient(#fff,#e5e5e5);padding:3px 7px}button:hover{color:#147e9b;border-color:#147e9b}button:focus-visible,a:focus-visible{outline:2px solid #ef8eaa}a{color:#178aaa}header.toolbar{position:sticky;top:0;z-index:5;background:#fbfaf3;border-bottom:1px solid #b7c3bd;padding:10px 18px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toolbar strong{color:#36829a}.toolbar span{font-size:11px;color:#888}.viewport{overflow:auto;padding:44px 26px 65px;min-height:calc(100vh - 55px);background-color:var(--bg);background-image:radial-gradient(#ffffff85 1px,transparent 1px);background-size:9px 9px;--bg:#d9e7dd;--accent:#3395a9;--soft:#eaf5eb;--flower:#ed9faf}.stage{width:1050px;margin:auto;transform-origin:top left}.skin{position:relative;padding:39px 30px 32px;border:3px solid #fff;outline:1px solid #8eaca3;border-radius:22px;background:linear-gradient(120deg,#ffffff88,transparent),var(--soft);box-shadow:0 7px 22px #45645b33}.skin:before{content:'✿　 ·　✿　　　　　　　　　　　　　　　　　　　　　　　　　✿　 ·　✿';position:absolute;top:10px;left:20px;right:20px;text-align:center;color:var(--flower);font-weight:bold;letter-spacing:2px}.layout{display:grid;grid-template-columns:205px 516px 69px 167px;gap:0}.left,.main{background:#fafafa;border:1px solid #b7b9b9;padding:14px 12px;box-shadow:inset 0 0 0 5px #eee}.left{border-radius:14px 7px 7px 14px}.main{border-radius:7px 14px 14px 7px;padding:14px 18px;min-height:530px}.counter{text-align:center;font-size:10px;margin:2px 0 16px}.counter b{color:#ee725b}.profile{background:white;border:1px solid #ccc;border-radius:8px;padding:12px;min-height:437px}.portrait{height:145px;background:#f2f6f1;border-bottom:1px dotted #bbb;display:flex;align-items:center;justify-content:center;gap:3px}.pixel{image-rendering:pixelated;image-rendering:crisp-edges}.mood{margin:12px 0 8px;border:1px dotted #aaa;padding:6px;color:#398da6;font-size:10px}.mood b{color:#e58fab}.intro{line-height:1.8;min-height:83px}.profile small{display:block;color:#aaa;margin:7px 0 18px}.name{border-top:1px dotted #bbb;padding-top:10px;color:#3b879d;font-weight:bold}.hop{margin-top:14px;width:100%;background:#d6eef4}.titlebar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ccc;padding:3px 0 12px;margin-bottom:12px}.titlebar h1{font-size:17px;color:var(--flower);margin:0;letter-spacing:1px}.url{font-size:9px;color:#888;margin-bottom:8px;text-align:right}.sectiontitle{font-size:12px;color:#298caa;border-bottom:1px solid #bbb;margin:0 0 8px;padding-bottom:5px}.news{display:grid;grid-template-columns:1.25fr 1fr;gap:13px;margin-bottom:17px}.news ul{list-style:none;padding:0;margin:0;line-height:1.9;font-size:11px}.news li:before{content:'· ';color:#ea9eac}.counts{display:grid;grid-template-columns:1fr 1fr;font-size:11px;color:#326685}.counts div{padding:5px 2px;border-bottom:1px dotted #ccc}.roomtabs{display:flex;gap:2px;align-items:end}.roomtabs span{border:1px solid #ccc;padding:4px 12px;background:#fff;color:#298caa}.roomtabs .muted{background:#eee;color:#aaa}.roomtabs b{margin-left:auto;font-size:11px;color:#298caa;padding:4px}.room{width:478px;height:270px;border:1px solid #b7c5ba;background:#e9f4ef;display:block}.roomfoot{font-size:10px;padding:6px 0;color:#888}.friends{border-top:1px solid #ccc;margin-top:11px;padding-top:8px;line-height:1.9}.friends b{color:#298caa}.nav{padding-top:48px;position:relative;left:-1px}.nav button{display:block;width:64px;height:32px;margin-bottom:3px;background:var(--accent);color:white;border:1px solid #1e6e82;border-radius:0 5px 5px 0;text-align:center}.nav button.active{background:#fff;color:#555;border-left-color:#fff}.side{padding-left:10px}.status{border:1px solid #aaa;background:#fffffff0;padding:11px 9px;font-size:10px}.status h3{font-size:10px;background:#68645c;color:white;margin:-11px -9px 10px;padding:7px;text-align:center}.meter{display:grid;grid-template-columns:45px 1fr 25px;align-items:center;gap:4px;margin:7px 0}.bar{height:5px;background:#ddd}.bar i{display:block;height:100%;background:#a0bf8a}.acorn{border-top:1px dotted #bbb;margin-top:10px;padding-top:9px;color:#a47729}.bgm{margin-top:15px;background:#fff9e9;border:1px solid #cfc3a3;padding:10px;font-size:11px}.bgm p{font-size:10px;line-height:1.8}.themeart{text-align:center;margin-top:20px;color:#759e80;line-height:2}.themeart .large{font-size:39px;color:var(--flower)}footer{text-align:center;color:#799287;font-size:10px;margin-top:22px;letter-spacing:2px}.page{display:none}.page.active{display:block}textarea,input[type=text]{width:100%;border:1px solid #bbb;padding:7px;background:#fff}textarea{height:72px;resize:vertical}.formrow{display:flex;gap:5px;margin-top:5px;align-items:center}.formrow input{flex:1}.entry{background:#fff;border:1px solid #ddd;margin:10px 0;padding:11px;line-height:1.8;overflow-wrap:anywhere}.entry .meta{font-size:10px;color:#969696;border-bottom:1px dotted #ccc;margin-bottom:6px;padding-bottom:4px}.entry button{float:right;font-size:10px}.photos{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo{border:1px solid #ccc;background:white;padding:7px}.photo img{width:100%;height:143px;object-fit:cover;image-rendering:pixelated}.photo p{font-size:11px;margin:7px 0}.note{font-size:10px;color:#999;line-height:1.6}.tools{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#45685e;color:#fff;padding:12px 22px;z-index:20;display:none}.winter{--bg:#cedfe9;--soft:#edf5fc;--accent:#5c94b5;--flower:#86adce}.summer{--bg:#b6dfe6;--soft:#e6f8f3;--accent:#238eaf;--flower:#49acbd}.autumn{--bg:#e5d9c5;--soft:#fcf2df;--accent:#ac8055;--flower:#d38d58}.newyear{--bg:#e1dfcb;--soft:#fff9e9;--accent:#458c9b;--flower:#e39aaf}@media(max-width:700px){header.toolbar{padding:8px;font-size:11px;gap:7px}.viewport{padding:20px 12px 40px}.stage{margin:0}.toolbar span{width:100%}} 

.portrait{height:164px;gap:0;background:linear-gradient(#f1f0e7,#fffdf5)}.profile{position:relative}.intro{white-space:pre-line;min-height:115px}.left{position:relative}.left:after{content:'';position:absolute;right:-15px;top:128px;width:27px;height:7px;border:1px solid #969992;border-radius:5px;background:linear-gradient(#eee,#aaa,#eee);z-index:2;box-shadow:0 32px 0 -1px #aaa,0 267px 0 -1px #aaa,0 299px 0 -1px #aaa}.skin{border-radius:12px;outline:2px solid #aabdb1;box-shadow:inset 0 0 0 7px #d5e4df,0 7px 20px #45645b33}.skin:after{content:'';position:absolute;inset:13px;border:1px dashed #fff;border-radius:8px;pointer-events:none}.titlebar h1{font-size:18px}.room{height:274px}.status{background:#fffdf5}.themeart{background:repeating-linear-gradient(90deg,transparent 0 11px,#fff5 11px 12px);border-bottom:1px dotted #a3b6a5;padding-bottom:10px}.skin .nav button{height:33px}.empty{padding:32px 14px;text-align:center;border:1px dashed #c9c9bc;background:#fffdf5;line-height:1.9;margin-top:12px;color:#959083}.photo img{image-rendering:auto}.entry .meta{display:flex;align-items:center;justify-content:space-between}.entry .text{white-space:pre-wrap}.auth{margin-left:auto}.auth a{font-size:11px}.owner-only{display:none}.is-owner .owner-only{display:revert}.guest-form{background:#f5f5ef;padding:10px;border:1px solid #deded1}.toolbar .save-status{font-size:10px;color:#63826e}.private-label{margin-left:auto;font-size:11px}.busy{opacity:.6;pointer-events:none}.news ul button{border:0;background:transparent;text-align:left;padding:0;font-size:11px}.photo small{color:#999}.photo .delete{font-size:10px}.room-label{position:relative;font-size:10px;text-align:center;color:#8c9c83;margin-top:0}.cloudnote{font-size:10px;color:#999;line-height:1.8}.toast{max-width:90vw;line-height:1.5;white-space:normal}.portrait canvas{width:88px!important;height:132px!important}.themeart canvas{width:80px!important;height:120px!important}.stage{width:1050px}.main{min-height:610px}.photos{margin-top:13px}.diary-editor{padding:10px;background:#f8f8ef;border:1px solid #ddd}.diary-editor textarea{height:140px}.tip{border-bottom:1px dotted #ccc;padding-bottom:9px;color:#888;font-size:11px;line-height:1.8}.preview-badge{color:#a38665;font-size:10px}.ornamental{font:12px monospace;letter-spacing:2px;color:#999}.settings-row{margin:15px 0;border-bottom:1px dotted #ccc;padding-bottom:12px}.settings-row label{display:block;margin-bottom:6px}.settings-row input{width:100%}.accent{color:var(--accent)}.onload-error{padding:10px;background:#fff0e6;border:1px solid #dfba9d;line-height:1.8}.subnav{border-bottom:1px solid #ddd;margin:4px 0 12px;padding:4px 0;color:#888;font-size:10px}.photo-caption{height:45px}.newyear .skin:before{content:'福　 ·　✿　　　　　　　　　　　　　　　　　　　　　　　　　✿　 ·　福'}.winter .skin:before{content:'❄　 ·　❄　　　　　　　　　　　　　　　　　　　　　　　　　❄　 ·　❄'}.autumn .skin:before{content:'❧　 ·　❧　　　　　　　　　　　　　　　　　　　　　　　　　❧　 ·　❧'}.summer .skin:before{content:'≈　 ·　☀　　　　　　　　　　　　　　　　　　　　　　　　　☀　 ·　≈'}

.music-panel{position:fixed;bottom:16px;right:16px;width:322px;background:#fffdf4;border:1px solid #aaa;box-shadow:0 4px 20px #0003;z-index:12}.music-panel[hidden]{display:none}.music-heading{padding:6px 7px;background:#d7e8e2;display:flex;justify-content:space-between;align-items:center;font-size:11px}.music-panel iframe{display:block;width:320px;height:200px;border:0}.music-panel p{margin:7px;font-size:10px;line-height:1.5}.music-note{font-size:10px;color:#999;line-height:1.6;margin:6px 0}.music-link{font-size:10px;display:block;margin-top:5px}.bgm #bgmMode{width:100%;font-size:10px;margin-bottom:6px}.bgm #play{margin-top:3px}

/* Sprites retain detail at the final display size; furniture keeps its pixel grid. */
.room.pixel{image-rendering:auto}
.mood{position:relative;display:flex;align-items:center;gap:5px;white-space:nowrap;padding:5px 4px}
#moodToggle{border:0;background:transparent;padding:2px 0;font-size:10px;white-space:nowrap}
#moodToggle:disabled{cursor:default;opacity:1}
#moodPanel{position:absolute;left:-1px;top:100%;width:176px;z-index:4;padding:7px;background:#fffdf6;border:1px solid #b9b5a8;box-shadow:2px 3px 0 #0002;white-space:normal}
#moodPanel[hidden]{display:none}.mood-heading{font-size:10px;color:#8c8172;border-bottom:1px dotted #bbb;padding-bottom:6px;margin-bottom:6px}
#moodOptions{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
#moodOptions button{padding:6px 2px;font-size:10px;white-space:nowrap}
#moodOptions button[aria-pressed=true]{background:#f9e2e9;color:#ac526e;border-color:#d594aa;box-shadow:inset 1px 1px 0 #d5a7b4}

.mobile-controls{display:none}
.main:focus,.left:focus,.side:focus{outline:none}
@media(max-width:760px){
 header.toolbar{padding:10px 12px;gap:8px;background:#fffdf7;box-shadow:0 2px 0 #8a9e8d22}
 .toolbar strong{font-size:15px;flex:1;white-space:nowrap}.toolbar .auth{margin:0;font-size:11px}.toolbar .auth span{font-size:10px}
 .toolbar .view-hint{display:none}.mobile-controls{display:flex;width:100%;gap:6px}
 .mobile-controls button{flex:1;min-height:38px;font-size:12px;background:#f6f5ed;border-color:#b7b9aa;border-radius:3px}
 .mobile-controls button[aria-pressed=true]{background:#e1eee8;color:#42736b;border-color:#7b9a8e}
 .mobile-easy{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 .mobile-easy .theme-control,.mobile-easy .zoom-control{display:none}
 .mobile-easy[data-current-page=settings]:not([data-mobile-panel]) .theme-control{display:block;width:100%}
 .mobile-easy .theme-control select{min-height:40px;max-width:85%;font-size:14px}
 .mobile-easy .viewport{overflow:visible;padding:14px 10px 26px;min-height:calc(100dvh - 160px)}
 .mobile-easy .stage{width:100%;margin:0;zoom:1!important}
 .mobile-easy .skin{padding:24px 9px 12px;border-radius:10px;box-shadow:inset 0 0 0 4px #d5e4df,0 3px 10px #45645b22}
 .mobile-easy .skin:before{font-size:10px;left:6px;right:6px;top:6px;overflow:hidden;white-space:nowrap;letter-spacing:0}
 .mobile-easy .skin:after{inset:6px;pointer-events:none}.mobile-easy .layout{display:block;min-width:0}
 .mobile-easy .left,.mobile-easy .side{display:none}.mobile-easy .left:after{display:none}
 .mobile-easy .main{width:100%;padding:16px 12px;min-height:360px;border-radius:7px;min-width:0;box-shadow:inset 0 0 0 4px #eee}
 .mobile-easy .titlebar{padding-bottom:10px;margin-bottom:8px;gap:6px}.mobile-easy .titlebar h1{font-size:17px;line-height:1.5;letter-spacing:0;overflow-wrap:anywhere}
 .mobile-easy .url{font-size:10px;margin-bottom:14px}.mobile-easy .sectiontitle{font-size:13px;line-height:1.7}
 .mobile-easy #home.active{display:flex;flex-direction:column}.mobile-easy #connection{order:-6}.mobile-easy .roomtabs{order:-5;gap:1px;align-items:center}
 .mobile-easy .roomtabs span{padding:6px 7px;font-size:11px}.mobile-easy .roomtabs b{font-size:11px;padding:4px 0}
 .mobile-easy .room{order:-4;width:100%;height:auto;aspect-ratio:360 / 205}
 .mobile-easy .roomfoot{order:-3;line-height:2;font-size:11px}.mobile-easy .friends{order:-2;margin:8px 0 0;padding-top:12px;font-size:13px}
 .mobile-easy #home>.formrow{order:-1;margin:6px 0 20px}.mobile-easy #home>.sectiontitle{margin-top:18px}
 .mobile-easy .news{display:block;margin-bottom:0}.mobile-easy .news ul{font-size:13px;line-height:2}.mobile-easy .news ul button{font-size:13px;min-height:38px}
 .mobile-easy .counts{margin-top:10px;font-size:12px}.mobile-easy .counts div{padding:9px 3px}
 .mobile-easy .nav{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));background:#fffdf7;border-top:1px solid #b0b8a7;box-shadow:0 -3px 10px #45645b15}
 .mobile-easy .skin .nav button{width:100%;height:48px;margin:0;border-radius:4px;border:1px solid #adbaa9;font-size:12px;padding:3px;background:var(--soft);color:#657b72}
 .mobile-easy .skin .nav button.active{background:var(--accent);color:white;border-color:var(--accent);font-weight:bold;box-shadow:inset 0 1px 0 #ffffff55}
 .mobile-easy button{min-height:42px;touch-action:manipulation}.mobile-easy input:not([type=checkbox]):not([type=range]):not([type=file]),.mobile-easy textarea{font-size:16px;min-width:0;max-width:100%}
 .mobile-easy textarea{min-height:140px;line-height:1.7}.mobile-easy input[type=text]{padding:11px 9px}.mobile-easy input[type=date]{padding:8px 4px;flex:1 1 130px;width:130px}
 .mobile-easy .formrow{flex-wrap:wrap;gap:8px}.mobile-easy .formrow input[type=text]{flex:1 1 130px}.mobile-easy .formrow button{font-size:13px;padding:7px 12px}
 .mobile-easy .diary-editor{padding:9px}.mobile-easy .private-label{font-size:12px;white-space:nowrap;margin-left:0}.mobile-easy #diarySave{flex:1 1 100%}
 .mobile-easy .entry{font-size:14px;line-height:1.9;padding:12px 10px}.mobile-easy .entry .meta{font-size:11px;gap:6px;align-items:start}.mobile-easy .entry .meta span{min-width:0;overflow-wrap:anywhere}.mobile-easy .entry button{min-height:36px;flex-shrink:0}
 .mobile-easy .photos{grid-template-columns:1fr}.mobile-easy .photo img{height:auto;max-height:420px;object-fit:contain;cursor:zoom-in}.mobile-easy .photo p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}
 .mobile-easy .tip,.mobile-easy .note,.mobile-easy .empty{font-size:12px;line-height:1.9}.mobile-easy #settings p{font-size:13px;line-height:1.9}.mobile-easy .tools button{flex:1}
 .mobile-easy[data-mobile-panel] .main{display:none}.mobile-easy[data-mobile-panel=profile] .left{display:block;width:100%;padding:14px;border-radius:7px}
 .mobile-easy .profile{min-height:0;padding:14px}.mobile-easy .counter{font-size:12px;margin:4px 0 16px}.mobile-easy .portrait{height:158px}
 .mobile-easy .mood{font-size:12px;justify-content:center;margin:14px 0}.mobile-easy #moodToggle{font-size:13px;padding:4px;min-height:36px}
 .mobile-easy #moodPanel{left:50%;transform:translateX(-50%);width:min(264px,100%)}.mobile-easy #moodOptions button{font-size:12px;min-height:42px}
 .mobile-easy .intro{font-size:14px;line-height:1.9;min-height:0;margin:16px 0}.mobile-easy .name{font-size:14px}.mobile-easy .hop{height:42px;font-size:13px}
 .mobile-easy[data-mobile-panel=music] .side{display:block;padding:14px;background:#fafafa;border:1px solid #b7b9b9;border-radius:7px}.mobile-easy .status{font-size:12px;line-height:1.8}.mobile-easy .status h3{font-size:12px}
 .mobile-easy .meter{grid-template-columns:65px 1fr 25px}.mobile-easy .bgm{padding:14px;font-size:14px}.mobile-easy .bgm p{font-size:13px}.mobile-easy .bgm #bgmMode{font-size:14px;min-height:42px}
 .mobile-easy .themeart{margin-top:16px}.mobile-easy .themeart .large{font-size:30px}.mobile-easy .music-link,.mobile-easy .music-note{font-size:12px;line-height:1.8}
 .mobile-easy .music-panel{bottom:calc(80px + env(safe-area-inset-bottom,0px));right:50%;transform:translateX(50%);max-width:calc(100vw - 20px)}
 .mobile-easy .music-panel iframe{max-width:100%}
 .mobile-easy .toast{bottom:calc(90px + env(safe-area-inset-bottom,0px));font-size:13px}.mobile-easy footer{font-size:8px;letter-spacing:0;line-height:1.8;margin-top:16px}
}
