:root{--blue: #0477bd;--blue-d: #0c5d8c;--sky: #299bde;--sky-soft: #dceefb;--green: #389975;--green-d: #23704f;--green-soft: #ddf0e7;--orange: #f7914e;--orange-soft: #ffe3cf;--yellow: #ffc500;--yellow-d: #c99a00;--yellow-soft: #fff4cc;--pink: #fc94aa;--pink-d: #d46a82;--pink-soft: #ffe1e8;--red: #e5644d;--dark: #2d2d2d;--ink2: #4a4a4a;--milk: #fffdf9;--line: #cfe0ec;--mist: #eef3f7;--c-william: #f7914e;--c-est: #299bde;--c-wesley: #389975;--f-zh: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC";--f-title: "Baloo 2", var(--f-zh), sans-serif;--f-text: "Plus Jakarta Sans", var(--f-zh), sans-serif;--f-hand: "Walter Turncoat", "ZCOOL KuaiLe", cursive;--f-hand-zh: "ZCOOL KuaiLe", var(--f-zh), cursive;--shadow: 0 6px 0 var(--line)}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#e4f1fb;color:var(--dark);font-family:var(--f-text);-webkit-font-smoothing:antialiased}button{font-family:inherit;cursor:pointer;border:0;color:inherit}input{font-family:inherit}.hidden{display:none!important}.sr{position:absolute;left:-9999px}.hand{font-family:var(--f-hand);color:var(--blue-d)}#canvas-wrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1}#canvas-wrap canvas{display:block}.capsule{display:flex;align-items:center;gap:8px;background:var(--milk);border-radius:999px;padding:0 8px;height:52px;box-shadow:0 5px 0 var(--line)}.seg-group{display:flex;gap:2px}.seg{background:transparent;height:36px;padding:0 12px;border-radius:999px;font-family:var(--f-title);font-weight:800;font-size:15px;color:var(--dark);display:inline-flex;align-items:center;gap:4px;transition:transform .12s}.seg:hover{background:var(--mist)}.seg.on{background:var(--yellow);box-shadow:0 3px 0 var(--yellow-d)}.seg.on:hover{background:var(--yellow)}.seg svg{width:20px;height:20px}.seg-divider{width:2px;height:26px;background:var(--mist);border-radius:1px}.round-btn{width:52px;height:52px;border-radius:50%;background:var(--milk);color:var(--dark);display:inline-flex;align-items:center;justify-content:center;box-shadow:0 5px 0 var(--line);transition:transform .12s,box-shadow .12s;position:relative}.round-btn svg{width:22px;height:22px}.round-btn:active,.pill-btn:active,.big-btn:active,.chip:active,.seg:active{transform:translateY(3px);box-shadow:none}.round-btn.pink{background:var(--pink);box-shadow:0 5px 0 var(--pink-d)}.round-btn.on{background:var(--green);color:var(--milk);box-shadow:0 5px 0 var(--green-d)}.round-btn[data-tip]:hover:after{content:attr(data-tip);position:absolute;top:60px;left:50%;transform:translate(-50%);background:var(--dark);color:var(--milk);font-size:12px;font-weight:700;padding:5px 10px;border-radius:8px;white-space:nowrap;pointer-events:none}.pill-btn{height:46px;padding:0 18px;border-radius:999px;font-weight:800;font-size:14px;background:var(--milk);box-shadow:inset 0 0 0 2px var(--line),0 4px 0 var(--line)}.pill-btn.yellow{background:var(--yellow);box-shadow:0 4px 0 var(--yellow-d)}.pill-btn.blue{background:var(--blue);color:var(--milk);box-shadow:0 4px 0 var(--blue-d)}.big-btn{height:56px;padding:0 28px;border-radius:999px;background:var(--blue);color:var(--milk);font-family:var(--f-title);font-weight:800;font-size:20px;box-shadow:0 6px 0 var(--blue-d);flex:none}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{background:var(--milk);color:var(--dark);font-weight:700;font-size:13px;height:34px;padding:0 14px;border-radius:999px;box-shadow:0 3px #d6e4ee;white-space:nowrap}.chip.on{background:var(--dark);color:var(--milk);box-shadow:0 3px #000}.chip.c-yellow{background:var(--yellow-soft);box-shadow:0 3px #ebd58a}.chip.c-pink{background:var(--pink-soft);box-shadow:0 3px #f0b7c4}.chip.c-green{background:var(--green-soft);box-shadow:0 3px #a9d6c1}.chip.c-blue{background:var(--sky-soft);box-shadow:0 3px #a9cfea}.chip.c-orange{background:var(--orange-soft);box-shadow:0 3px #f2c3a0}.panel{background:var(--milk);border-radius:28px;box-shadow:0 7px 0 var(--line)}.boot{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(180deg,#cfe6f8 0%,var(--milk) 75%);transition:opacity .6s}.boot.done{opacity:0;pointer-events:none}.boot-sub{font-family:var(--f-hand);color:var(--blue-d);font-size:18px}.boot-title{font-family:var(--f-title);font-weight:800;font-size:72px;line-height:1;margin:6px 0 28px}.boot-bar{width:min(360px,70vw);height:18px;border-radius:9px;background:var(--milk);box-shadow:inset 0 0 0 3px var(--line);overflow:hidden}.boot-bar span{display:block;height:100%;width:0;background:var(--yellow);border-radius:9px;transition:width .3s}.boot-msg{margin-top:14px;font-family:var(--f-hand-zh);font-size:18px;color:var(--ink2)}.topbar{position:fixed;left:24px;right:24px;top:18px;z-index:20;display:flex;align-items:center;gap:18px;pointer-events:none}.topbar>*{pointer-events:auto}.brand{flex:none;text-shadow:0 2px 0 rgba(255,255,255,.6)}.brand-sub{font-family:var(--f-hand);font-size:14px;color:var(--blue-d)}.brand-title{font-family:var(--f-title);font-weight:800;font-size:36px;line-height:1}.time-capsule{padding-left:18px}.clock{font-family:var(--f-title);font-weight:800;font-size:28px;line-height:1;min-width:74px}.top-right{margin-left:auto;display:flex;align-items:center;gap:10px}.speed-capsule .seg{padding:0 11px}.money-pill{border:0;cursor:pointer;position:relative;color:inherit;height:52px;padding:0 18px;border-radius:999px;background:var(--green-soft);box-shadow:0 5px #a9d6c1;display:flex;align-items:center;gap:4px;font-family:var(--f-title);font-weight:800;font-size:19px}.money-pill .baht{color:var(--green-d)}.cam-nav{position:fixed;left:50%;transform:translate(-50%);top:86px;z-index:19;display:flex;align-items:center;gap:8px;max-width:calc(100vw / var(--ui, 1) - 760px)}.cam-toggle{display:flex;background:var(--milk);border-radius:999px;padding:4px;box-shadow:0 4px 0 var(--line);flex:none}.cam-toggle button{height:30px;padding:0 12px;border-radius:999px;background:transparent;font-weight:800;font-size:13px}.cam-toggle button.on{background:var(--dark);color:var(--milk)}.cam-chips{display:flex;gap:6px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none}.cam-chips::-webkit-scrollbar{display:none}.cam-chip{background:var(--milk);font-weight:700;font-size:13px;height:36px;padding:0 14px;border-radius:999px;box-shadow:0 4px 0 var(--line);white-space:nowrap;flex:none}.cam-chip.on{background:var(--green);color:var(--milk);box-shadow:0 4px 0 var(--green-d)}.char-panel{position:fixed;left:24px;top:96px;width:300px;z-index:18;padding:16px 18px;background:var(--milk);border-radius:28px;box-shadow:0 7px 0 var(--line);max-height:calc(100vh / var(--ui, 1) - 290px);overflow-y:auto;scrollbar-width:thin}.tokens{display:flex;justify-content:space-between}.token{background:transparent;display:flex;flex-direction:column;align-items:center;gap:4px;width:78px;padding:0}.token .ring{width:66px;height:66px;border-radius:50%;padding:4px;transition:opacity .2s,transform .2s}.token .face{width:58px;height:58px;border-radius:50%;overflow:hidden;display:block}.token .face img{width:100%;height:100%;object-fit:cover;display:block}.token .nm{font-family:var(--f-title);font-weight:800;font-size:14px}.token .loc{font-size:10.5px;color:var(--ink2);font-weight:600;max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.token:not(.on) .ring,.token:not(.on) .nm{opacity:.55}.token.on .ring{transform:scale(1.06)}.char-divider{height:2px;background:var(--mist);border-radius:1px;margin:12px 0}.sel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.sel-name{font-family:var(--f-title);font-weight:800;font-size:28px;line-height:1}.sel-mood{font-family:var(--f-hand-zh);font-size:15px;margin-top:4px}.outfit-chip{font-size:12px;font-weight:700;padding:5px 12px;border-radius:999px;background:var(--mist);white-space:nowrap}.sel-status{font-family:var(--f-hand-zh);font-size:16px;margin-top:8px;color:var(--ink2);line-height:1.35;min-height:22px}.sel-place{font-size:12px;font-weight:700;color:var(--blue-d);margin-top:2px}.needs{display:flex;flex-direction:column;gap:9px;margin-top:12px}.need{display:grid;grid-template-columns:38px 1fr 28px;align-items:center;gap:8px}.need .lb{font-size:12.5px;font-weight:700}.need .bar{height:12px;border-radius:6px;background:var(--mist);overflow:hidden}.need .bar i{display:block;height:100%;border-radius:6px;transition:width .4s}.need .v{font-family:var(--f-title);font-weight:800;font-size:14px;text-align:right}.need.low .lb{color:var(--red)}.moodlets{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}.moodlet{font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--pink-soft)}.moodlet.neg{background:var(--mist)}.rels{display:flex;flex-direction:column;gap:4px;margin-top:10px}.rel{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700}.rel .bar{flex:1;height:8px;border-radius:4px;background:var(--mist);overflow:hidden}.rel .bar i{display:block;height:100%;background:var(--pink);border-radius:4px}.sel-actions{display:flex;gap:8px;margin-top:14px}.sel-actions .pill-btn{flex:1;padding:0 8px;font-size:13px}.hint{font-size:11.5px;color:var(--ink2);margin:10px 2px 0;line-height:1.45}.diary{position:fixed;right:24px;top:96px;bottom:206px;width:336px;z-index:18;display:flex;flex-direction:column;background:var(--milk);border-radius:28px;box-shadow:0 7px 0 var(--line);transition:transform .3s,opacity .3s}.diary.closed{transform:translate(calc(100% + 40px));opacity:0;pointer-events:none}.diary-head{display:flex;align-items:baseline;justify-content:space-between;padding:16px 18px 0}.diary-head h2{margin:0;font-family:var(--f-title);font-weight:800;font-size:24px}.auto{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700}.auto input{accent-color:var(--green);width:16px;height:16px}.diary-sub{padding:2px 18px 0;font-size:12px;color:var(--ink2)}.diary .chips{padding:10px 16px}.diary .chip{height:30px;font-size:12px;padding:0 11px}.diary-list{flex:1;overflow-y:auto;padding:0 14px 14px;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin}.entry{display:flex;gap:10px;border-radius:16px;padding:10px 12px;background:var(--mist)}.entry .t{font-family:var(--f-title);font-weight:800;font-size:15px;line-height:1.25;flex:none;width:44px}.entry .t small{display:block;font-family:var(--f-text);font-size:10.5px;font-weight:600;color:var(--ink2)}.entry .ti{font-weight:800;font-size:13.5px}.entry .tx{font-size:12px;line-height:1.5;color:#3f3f3f;margin-top:2px}.entry .pl{font-size:10.5px;font-weight:700;color:var(--blue-d);margin-top:3px}.entry.cat-couple{background:var(--pink-soft)}.entry.fun{box-shadow:inset 0 0 0 2px #f3d7a6;background:#fff8e8}.entry.fun .ti:before{content:"趣事";font-family:var(--f-hand-zh);font-weight:400;font-size:11px;color:#b4572f;background:#ffe3cf;border-radius:999px;padding:1px 7px;margin-right:6px;vertical-align:1px}.entry.ai .ti:after{content:"AI";font-family:var(--f-title);font-size:10px;color:#fff;background:#0477bd;border-radius:999px;padding:0 6px;margin-left:6px;vertical-align:1px}.entry.cat-trio{background:var(--green-soft)}.entry.cat-parent{background:var(--sky-soft)}.entry.cat-actor,.entry.cat-career{background:var(--yellow-soft)}.entry.cat-random{background:#fde3d9}.entry.manual{box-shadow:inset 0 0 0 2px var(--blue)}.entry.auto{background:transparent;box-shadow:inset 0 0 0 2px var(--mist);padding:7px 12px}.entry.auto .ti{font-weight:700;font-size:12.5px}.diary-toggle{position:fixed;right:24px;bottom:206px;z-index:19;display:none}.director{position:fixed;left:24px;right:24px;bottom:22px;z-index:20;min-height:150px;display:flex;gap:22px;background:var(--milk);border-radius:32px;padding:18px 20px 18px 26px;box-shadow:0 8px 0 var(--line)}.director-left{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:12px}.story-row{display:flex;align-items:center;gap:12px;min-width:0}.live-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:var(--milk);background:var(--green);padding:6px 12px;border-radius:999px;flex:none}.live-badge i{width:7px;height:7px;border-radius:50%;background:var(--milk);animation:pulse 1.4s infinite}.live-badge.event{background:var(--orange)}.live-badge.paused{background:var(--ink2)}@keyframes pulse{50%{opacity:.3}}.story{font-family:var(--f-hand-zh);font-size:19px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.director-right{width:min(600px,46vw / var(--ui, 1));flex:none;display:flex;flex-direction:column;justify-content:center;gap:10px}.input-row{display:flex;gap:12px;align-items:center}.input-row input{flex:1;min-width:0;height:56px;border-radius:999px;border:0;background:var(--mist);padding:0 22px;font-size:15px;color:var(--dark);outline:none}.input-row input:focus{box-shadow:inset 0 0 0 3px var(--sky)}#bubbles{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:15}.bubble{position:absolute;max-width:240px;background:var(--milk);border-radius:20px;padding:10px 14px;transform:translate(-50%,-100%);font-size:14px;font-weight:600;line-height:1.45;box-shadow:0 5px 0 var(--c, var(--line));transition:opacity .25s;animation:pop .25s ease-out}.bubble .who{display:block;font-family:var(--f-hand);font-size:12px;color:var(--c);margin-bottom:1px}.bubble:after{content:"";position:absolute;left:50%;bottom:-13px;transform:translate(-50%);border:8px solid transparent;border-top:9px solid var(--c, var(--line))}@keyframes pop{0%{transform:translate(-50%,-90%) scale(.85);opacity:0}}.hover-tip{position:fixed;z-index:30;pointer-events:none;background:#2d2d2deb;color:var(--milk);font-size:12.5px;font-weight:600;padding:7px 12px;border-radius:12px;max-width:240px;line-height:1.4;white-space:pre-line}.toast-stack{position:fixed;left:50%;top:140px;transform:translate(-50%);z-index:40;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}.toast{background:var(--dark);color:var(--milk);padding:10px 18px;border-radius:999px;font-size:14px;font-weight:700;box-shadow:0 6px #000;animation:pop .25s ease-out;max-width:80vw}.toast.event{background:var(--yellow);color:var(--dark);box-shadow:0 6px 0 var(--yellow-d)}.pie{position:fixed;z-index:35;background:var(--milk);border-radius:22px;padding:10px;min-width:210px;box-shadow:0 6px 0 var(--line),0 12px 30px #0000001f;display:flex;flex-direction:column;gap:6px}.pie .pie-title{font-family:var(--f-title);font-weight:800;font-size:15px;padding:2px 6px 4px;display:flex;align-items:center;gap:8px}.pie .pie-title img{width:26px;height:26px;border-radius:50%}.pie button{text-align:left;padding:9px 12px;border-radius:14px;background:var(--mist);font-weight:700;font-size:13px;display:flex;justify-content:space-between;gap:10px}.pie button:hover{background:var(--yellow-soft)}.pie button small{color:var(--ink2);font-weight:600}.pie{width:300px;max-height:min(70vh,560px);overflow-y:auto}.pie .pie-group{display:flex;flex-direction:column;gap:6px;padding:4px 0 6px;border-top:2px dashed var(--line)}.pie .pie-group:first-of-type{border-top:0}.pie .pie-who{display:flex;align-items:center;gap:8px;padding:4px 6px;font-family:var(--f-title);font-weight:800;font-size:14px;color:var(--blue-d)}.pie .pie-who img{width:24px;height:24px;border-radius:50%}.pie .together .pie-who{color:#c8402f}.pie .pie-empty{font-size:12.5px;color:var(--ink2);padding:4px 8px 6px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:linear-gradient(180deg,#cfe6f8 0%,var(--milk) 70%);overflow:hidden;animation:fade .25s}@keyframes fade{0%{opacity:0}}.modal-sky{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;background:radial-gradient(ellipse 120px 34px at 10% 16%,#fff 98%,transparent 100%),radial-gradient(ellipse 150px 40px at 88% 86%,#fff 98%,transparent 100%),radial-gradient(ellipse 90px 26px at 80% 12%,#c9def0 98%,transparent 100%)}.modal-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 40px 0}.modal-title-wrap{text-align:center}.modal-title-wrap.left{text-align:left}.modal-title-wrap h1{margin:4px 0 0;font-family:var(--f-title);font-weight:800;font-size:50px;line-height:1}.back{flex:none}.close svg{width:22px;height:22px}.wd-body{position:relative;display:grid;grid-template-columns:240px 380px 1fr;gap:36px;padding:26px 40px 30px;height:calc(100% - 120px)}.wd-tabs{display:flex;flex-direction:column;gap:14px}.wd-tab{display:flex;align-items:center;gap:12px;height:72px;padding:0 14px;border-radius:24px;background:var(--milk);box-shadow:0 5px 0 var(--line);font-family:var(--f-title);font-weight:800;font-size:20px;text-align:left}.wd-tab img{width:50px;height:50px;border-radius:50%;background:var(--mist)}.wd-tab small{display:block;font-family:var(--f-text);font-weight:600;font-size:12px;opacity:.7}.wd-tab.on{background:var(--dark);color:var(--milk);box-shadow:0 5px #000}.wd-tab.on img{box-shadow:0 0 0 3px var(--yellow)}.wd-stage{position:relative;display:flex;align-items:flex-end;justify-content:center}.stage-disc{position:absolute;bottom:56px;width:340px;height:84px;border-radius:50%;background:var(--yellow);box-shadow:0 10px #0c5d8c2e,inset 0 -10px #0000000f}#wd-preview{position:absolute;top:0;left:50%;transform:translate(-50%);height:calc(100% - 56px);max-width:100%;aspect-ratio:2 / 3;cursor:grab;touch-action:none}#wd-preview.grabbing{cursor:grabbing}.stage-hint{position:absolute;top:6px;left:50%;transform:translate(-50%);white-space:nowrap;font-family:var(--f-hand-zh);font-size:14px;color:var(--blue-d);opacity:.75;pointer-events:none}.stage-label{position:absolute;bottom:4px;left:50%;transform:translate(-50%);white-space:nowrap;background:var(--dark);color:var(--milk);font-family:var(--f-title);font-weight:800;font-size:17px;padding:8px 20px;border-radius:999px}.wd-right{display:flex;flex-direction:column;gap:16px;min-height:0}.seg-group.big{background:var(--milk);border-radius:999px;padding:6px;box-shadow:0 5px 0 var(--line);align-self:flex-start}.seg-group.big .seg{height:42px;padding:0 20px;font-size:16px}.wd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px;overflow-y:auto;padding:4px 4px 12px;align-content:start}.wd-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:24px;background:var(--milk);box-shadow:0 6px 0 var(--line);text-align:left}.wd-card.on{box-shadow:inset 0 0 0 4px var(--blue),0 6px 0 var(--blue-d)}.wd-card .sw{height:90px;border-radius:16px;display:flex;align-items:flex-end;justify-content:center;gap:6px;padding-bottom:12px}.wd-card .sw b{display:block;border-radius:18px 18px 12px 12px}.wd-card .sw.photo{height:150px;padding-bottom:0;overflow:hidden}.wd-card .sw.photo img{height:100%;width:auto;object-fit:contain}.wd-card .nm{font-family:var(--f-title);font-weight:800;font-size:16px;line-height:1.25}.wd-card .ds{font-size:12px;line-height:1.5;color:var(--ink2)}.wd-card .tick{position:absolute;right:10px;top:10px;width:30px;height:30px;border-radius:50%;background:var(--blue);display:none;align-items:center;justify-content:center}.wd-card.on .tick{display:flex}.lib-body{position:relative;padding:24px 40px 30px;height:calc(100% - 120px);overflow-y:auto}.profiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.profile{background:var(--milk);border-radius:32px;box-shadow:0 8px 0 var(--line);overflow:hidden}.profile .ph{display:flex;align-items:center;gap:16px;padding:22px 24px 18px}.profile .ph img{width:84px;height:84px;border-radius:50%;background:var(--milk);flex:none}.profile h2{margin:0;font-family:var(--f-title);font-weight:800;font-size:32px;line-height:1}.profile .nick{font-family:var(--f-hand-zh);font-size:16px;margin-top:6px}.profile .pb{padding:16px 24px 24px;display:flex;flex-direction:column;gap:14px}.profile .role{font-weight:700;font-size:14px}.profile h3{margin:0 0 6px;font-family:var(--f-title);font-weight:800;font-size:16px}.profile ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}.profile li{font-size:13px;line-height:1.55;display:flex;gap:8px}.profile li:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--c);margin-top:6px;flex:none}.profile .work{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;background:#f6f9fc;border-radius:12px;padding:7px 12px}.stat-chips{display:flex;flex-wrap:wrap;gap:6px}.stat-chips span{font-size:12px;font-weight:700;background:var(--mist);padding:5px 11px;border-radius:999px}.lib-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.lib-tools input{height:40px;border-radius:999px;border:0;background:var(--milk);box-shadow:inset 0 0 0 2px var(--line);padding:0 16px;font-size:14px;min-width:220px;outline:none}.lib-count{margin-left:auto;font-family:var(--f-hand-zh);font-size:17px;color:var(--blue-d)}.ev-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.ev-card{background:var(--milk);border-radius:24px;box-shadow:0 6px 0 var(--line);padding:14px;display:flex;flex-direction:column;gap:8px}.ev-card .top{height:64px;border-radius:16px;display:flex;align-items:flex-end;justify-content:space-between;padding:10px 12px}.ev-card .top span{font-size:11px;font-weight:800;background:var(--milk);padding:3px 9px;border-radius:999px}.ev-card .top b{font-family:var(--f-title);font-size:13px}.ev-card h4{margin:0;font-family:var(--f-title);font-weight:800;font-size:16px;line-height:1.3}.ev-card p{margin:0;font-size:12px;line-height:1.5;color:var(--ink2);flex:1}.ev-card .row{display:flex;align-items:center;justify-content:space-between;gap:8px}.ev-card .seen{font-size:11px;font-weight:700;color:var(--green-d)}.ev-card .play{height:38px;padding:0 16px;border-radius:999px;background:var(--blue);color:var(--milk);font-weight:800;font-size:13px;box-shadow:0 4px 0 var(--blue-d)}.load-more{margin:22px auto 0;display:block}.topbar,.cam-nav,.char-panel,.diary,.diary-toggle,.director{zoom:var(--ui, 1)}.m-only,.m-rail,.m-scrim,.m-more{display:none}@media(max-width:1100px){.diary{top:auto;bottom:206px;height:calc(52vh / var(--ui, 1))}.diary-toggle{display:inline-flex}.time-capsule .seg{padding:0 8px;font-size:13px}.brand-title{font-size:28px}}html.L-mobile{--safe-t: env(safe-area-inset-top, 0px);--safe-b: env(safe-area-inset-bottom, 0px)}html.L-mobile .brand,html.L-mobile .speed-capsule,html.L-mobile .seg-divider,html.L-mobile .hint,html.L-mobile .diary-toggle,html.L-mobile .diary-sub{display:none!important}html.L-mobile .m-only{display:inline-flex}.m-pause,.m-speed{height:32px;border-radius:999px;background:var(--mist);align-items:center;justify-content:center;font-family:var(--f-title);font-weight:800;font-size:13.5px;flex:none}.m-pause{width:32px}.m-pause svg{width:13px;height:13px}.m-pause.on{background:var(--yellow);box-shadow:0 3px 0 var(--yellow-d)}.m-speed{padding:0 10px;min-width:40px}html.L-mobile .topbar{left:12px;right:12px;top:calc(10px + var(--safe-t));gap:8px}html.L-mobile .time-capsule{height:46px;padding:0 7px 0 14px;gap:6px;box-shadow:0 4px 0 var(--line)}html.L-mobile .clock{font-size:22px;min-width:0}html.L-mobile #period-seg .seg:not(.on){display:none}html.L-mobile #period-seg .seg{height:32px;font-size:13px;padding:0 10px}html.L-mobile .top-right{gap:8px}html.L-mobile .money-pill{height:40px;padding:0 12px;font-size:15px;box-shadow:0 4px #a9d6c1}html.L-mobile .m-rail{display:flex;flex-direction:column;gap:10px;position:fixed;z-index:21;right:12px;bottom:calc(110px + var(--safe-b))}html.L-mobile .m-rail .round-btn{width:48px;height:48px;box-shadow:0 4px 0 var(--line)}html.L-mobile .m-rail .round-btn.pink{box-shadow:0 4px 0 var(--pink-d)}html.L-mobile .m-rail .round-btn svg{width:21px;height:21px}.round-btn.yellow{background:var(--yellow-soft);box-shadow:0 4px #ebd58a}.round-btn.blue{background:var(--blue);color:var(--milk);box-shadow:0 4px 0 var(--blue-d)}html.L-mobile .m-rail .round-btn.on{box-shadow:0 0 0 3px var(--dark),0 4px 0 var(--line)}html.L-mobile .round-btn[data-tip]:hover:after{display:none}html.L-mobile:not([data-sheet=""]) .m-scrim{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:24;background:#1c28345c;animation:fade .2s}html.L-phone .char-panel{left:12px;right:12px;top:auto;bottom:calc(12px + var(--safe-b));width:auto;margin:0 auto;max-width:560px;padding:9px 12px;border-radius:26px;max-height:none;overflow:visible;z-index:26;box-shadow:0 5px 0 var(--line)}html.L-mobile:not([data-sheet=char]) .char-panel>:not(.tokens){display:none}html.L-phone .tokens{gap:6px}html.L-phone .token{flex:1;min-width:0;width:auto;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:7px;row-gap:0;align-items:center;justify-items:start;text-align:left;padding:3px;border-radius:999px}html.L-phone .token.on{background:var(--mist)}html.L-phone .token .ring{grid-row:1 / 3;width:46px;height:46px;padding:3px}html.L-phone .token .face{width:40px;height:40px}html.L-phone .token .nm{font-size:13.5px;align-self:end;line-height:1.1}html.L-phone .token .loc{font-size:10px;align-self:start;max-width:100%}html.L-phone .token.on .ring{transform:none}html.L-phone[data-sheet=char] .char-panel{max-height:76vh;overflow-y:auto;padding:12px 16px 16px;box-shadow:0 -8px 30px #00000024,0 5px 0 var(--line)}html.L-mobile :is(.diary,.director,.cam-nav,.m-more){display:flex;flex-direction:column;position:fixed;z-index:27;min-height:0;max-width:none;background:var(--milk);box-shadow:0 -8px 30px #00000026;opacity:1;pointer-events:auto;transition:transform .28s cubic-bezier(.2,.8,.3,1),visibility 0s .28s;visibility:hidden}html.L-phone :is(.diary,.director,.cam-nav,.m-more){left:0;right:0;bottom:0;top:auto;width:auto;margin:0 auto;max-width:600px;border-radius:28px 28px 0 0;transform:translateY(105%);padding:18px 16px calc(18px + var(--safe-b));gap:12px}html.L-mobile[data-sheet=diary] .diary,html.L-mobile[data-sheet=think] .director,html.L-mobile[data-sheet=cam] .cam-nav,html.L-mobile[data-sheet=more] .m-more{transform:none;visibility:visible;transition:transform .28s cubic-bezier(.2,.8,.3,1)}html.L-mobile :is(.director,.cam-nav,.m-more):before{font-family:var(--f-title);font-weight:800;font-size:20px;line-height:1}html.L-mobile .director:before{content:"植入想法"}html.L-mobile .cam-nav:before{content:"镜头"}html.L-phone .diary{height:74vh;padding:4px 0 var(--safe-b);gap:0}html.L-mobile .diary-head{padding-top:14px}html.L-mobile .director{flex-direction:column;min-height:0}html.L-mobile .director-left{gap:10px}html.L-mobile .director-right{width:100%}html.L-mobile .story{font-size:15px}html.L-mobile .chips.quick{display:flex}html.L-mobile .input-row input{height:48px;padding:0 16px;font-size:16px}html.L-mobile .big-btn{height:48px;padding:0 20px;font-size:17px;box-shadow:0 4px 0 var(--blue-d)}html.L-mobile .cam-nav{align-items:stretch;transform-origin:bottom}html.L-mobile .cam-toggle{align-self:flex-start}html.L-mobile .cam-chips{flex-wrap:wrap;overflow:visible;padding:0 0 4px}.m-sheet-title{font-family:var(--f-title);font-weight:800;font-size:20px;line-height:1}.m-more-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;justify-items:center;padding:6px 0 22px}html.L-mobile .m-more .round-btn{width:56px;height:56px}html.L-mobile .m-more .round-btn:after,html.L-mobile .m-more .round-btn[data-tip]:hover:after{content:attr(data-tip);display:block;position:absolute;top:64px;left:50%;transform:translate(-50%);white-space:nowrap;font-size:12px;font-weight:700;color:var(--dark);background:none;padding:0}.m-more-row{display:flex;align-items:center;gap:10px;font-weight:800;font-size:14px}.m-more-row .seg-group{background:var(--mist);border-radius:999px;padding:4px}html.L-phone .pie{left:8px!important;right:8px;top:auto!important;bottom:calc(8px + var(--safe-b));width:auto;max-width:560px;margin:0 auto;max-height:62vh}html.L-mobile .toast-stack{top:calc(68px + var(--safe-t));width:calc(100vw - 24px)}html.L-mobile .toast{font-size:13px;text-align:center;padding:9px 14px}html.L-mobile .bubble{max-width:180px;font-size:12.5px;padding:8px 11px}html.L-land .topbar{top:calc(8px + var(--safe-t));left:calc(12px + env(safe-area-inset-left,0px));right:calc(12px + env(safe-area-inset-right,0px))}html.L-land .char-panel{left:calc(12px + env(safe-area-inset-left,0px));top:66px;bottom:auto;width:auto;padding:7px;border-radius:26px;max-height:calc(100vh - 78px);overflow:visible;z-index:26;box-shadow:0 4px 0 var(--line)}html.L-land:not([data-sheet=char]) .tokens{flex-direction:column;gap:6px}html.L-land:not([data-sheet=char]) .token{width:auto}html.L-land:not([data-sheet=char]) .token :is(.nm,.loc){display:none}html.L-land .token .ring{width:48px;height:48px;padding:3px}html.L-land .token .face{width:42px;height:42px}html.L-land[data-sheet=char] .char-panel{width:320px;bottom:12px;overflow-y:auto;padding:12px 14px}html.L-land .m-rail{top:66px;bottom:calc(12px + var(--safe-b));right:calc(12px + env(safe-area-inset-right,0px));justify-content:flex-end;gap:8px}html.L-land .m-rail .round-btn{width:44px;height:44px}html.L-land :is(.diary,.director,.cam-nav,.m-more){right:calc(70px + env(safe-area-inset-right,0px));left:auto;top:66px;bottom:12px;width:320px;height:auto;border-radius:22px;padding:14px;gap:10px;overflow-y:auto;transform:translate(calc(100% + 100px))}html.L-land .diary{padding:0}html.L-land .diary .chips{padding:8px 14px}html.L-land .diary .chip{height:26px;font-size:11.5px;padding:0 9px}html.L-land .director .chips.quick{display:flex}html.L-land .director .input-row{flex-direction:column;align-items:stretch}html.L-land .pie{left:auto!important;right:70px;top:66px!important;bottom:12px;width:320px;max-height:none}html.L-mobile .modal-head{padding:calc(12px + var(--safe-t)) 16px 0;gap:10px}html.L-mobile .modal-title-wrap h1{font-size:28px}html.L-mobile .modal-title-wrap .hand{font-size:13px}html.L-mobile .modal-head .back{height:40px;padding:0 14px;font-size:13px}html.L-mobile .modal-head .round-btn{width:44px;height:44px}html.L-mobile #lib-tabs{order:3;flex-basis:100%;height:44px;overflow-x:auto}html.L-mobile .modal-head:has(#lib-tabs){flex-wrap:wrap}html.L-mobile .lib-body{padding:16px 14px calc(24px + var(--safe-b));height:calc(100% - 130px)}html.L-mobile .profiles{grid-template-columns:1fr;gap:16px}html.L-mobile .ev-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}html.L-mobile .lib-tools input{min-width:0;flex:1}html.L-mobile .ai-tiers{grid-template-columns:1fr}html.L-mobile .ai-body{padding:12px 16px calc(30px + var(--safe-b));height:calc(100% - 80px)}html.L-phone .wd-body{grid-template-columns:1fr;grid-template-rows:auto 40vh auto;gap:14px;padding:12px 14px calc(30px + var(--safe-b));height:calc(100% - 76px);overflow-y:auto}html.L-mobile .wd-tabs{flex-direction:row;gap:8px;overflow-x:auto;scrollbar-width:none}html.L-mobile .wd-tab{height:52px;padding:0 12px 0 6px;font-size:15px;border-radius:999px;flex:none;gap:8px}html.L-mobile .wd-tab img{width:40px;height:40px}html.L-mobile .wd-tab small{display:none}html.L-mobile .stage-disc{width:220px;height:56px;bottom:44px}html.L-mobile .stage-label{font-size:14px;padding:6px 14px}html.L-mobile #wd-preview{height:calc(100% - 44px)}html.L-mobile .stage-hint{font-size:12px}html.L-mobile .wd-right{gap:12px}html.L-mobile .seg-group.big .seg{height:36px;padding:0 14px;font-size:14px}html.L-mobile .wd-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;overflow:visible}html.L-mobile .wd-card .sw.photo{height:120px}html.L-land .wd-body{grid-template-columns:38% 1fr;grid-template-rows:auto 1fr;gap:10px 18px;padding:8px 16px 12px;height:calc(100% - 64px)}html.L-land .wd-stage{grid-column:1;grid-row:1 / 3}html.L-land .wd-tabs{grid-column:2;grid-row:1}html.L-land .wd-right{grid-column:2;grid-row:2;min-height:0}html.L-land .wd-grid{overflow-y:auto}html.L-land .modal-head{padding-top:calc(8px + var(--safe-t))}html.L-land .modal-title-wrap h1{font-size:22px}html.L-land .modal-title-wrap .hand{display:none}.ai-btn{position:relative;font-family:var(--f-title);font-weight:800;font-size:15px}.ai-btn span{line-height:1}.ai-dot{position:absolute;right:4px;top:4px;width:10px;height:10px;border-radius:50%;background:#c9ced3;box-shadow:0 0 0 2px var(--milk)}.ai-dot.loading{background:var(--yellow);animation:aiPulse 1s infinite}.ai-dot.ready{background:#2fbf71}.ai-dot.ready.busy{background:#0477bd;animation:aiPulse .7s infinite}.ai-dot.error{background:#e5644d}@keyframes aiPulse{50%{transform:scale(1.35)}}.ai-body{position:relative;max-width:920px;margin:0 auto;padding:18px 40px 40px;height:calc(100% - 130px);overflow-y:auto;display:flex;flex-direction:column;gap:16px}.ai-lead{margin:0;font-size:15px;line-height:1.7;color:var(--ink2)}.ai-device{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline;background:var(--milk);border-radius:20px;padding:14px 18px;box-shadow:0 5px 0 var(--line);font-size:14px}.ai-device .rec{flex-basis:100%;color:var(--blue-d);font-weight:700}.ai-tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ai-tier{text-align:left;display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:22px;background:var(--milk);box-shadow:0 6px 0 var(--line)}.ai-tier.on{box-shadow:inset 0 0 0 4px var(--blue),0 6px 0 var(--blue-d)}.ai-tier:disabled{opacity:.45;cursor:not-allowed}.ai-tier .nm{font-family:var(--f-title);font-weight:800;font-size:19px;display:flex;align-items:center;gap:8px}.ai-tier .nm em{font-style:normal;font-size:12px;background:var(--yellow);border-radius:999px;padding:1px 9px}.ai-tier .ds{font-size:13px;line-height:1.6}.ai-tier .meta{font-size:12px;color:var(--ink2)}.ai-progress .bar{height:14px;border-radius:999px;background:var(--milk);box-shadow:inset 0 0 0 3px var(--line);overflow:hidden}.ai-progress .bar span{display:block;height:100%;width:0;background:var(--yellow);transition:width .3s}.ai-progress .txt{margin-top:6px;font-size:12.5px;color:var(--ink2)}.ai-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ai-toggle{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px}.ai-toggle input{width:20px;height:20px;accent-color:#2fbf71}.ai-memory{display:flex;flex-direction:column;gap:8px;background:var(--milk);border-radius:20px;padding:14px 18px;box-shadow:0 5px 0 var(--line);font-size:13px}.ai-memory .mem{display:flex;flex-direction:column;gap:2px}.ai-memory .who{font-family:var(--f-title);font-weight:800;color:var(--blue-d)}.ai-memory .none{color:var(--ink2)}.gfx{display:flex;flex-direction:column;gap:10px;background:var(--milk);border-radius:20px;padding:14px 18px;box-shadow:0 5px 0 var(--line);font-size:14px}.gfx .seg-group.big{background:var(--mist);box-shadow:none;padding:4px;flex-wrap:wrap}.gfx-note{font-size:13px;line-height:1.6;color:var(--ink2)}.save-row{display:flex;flex-wrap:wrap;gap:10px}.pill-btn.danger{color:#c8402f}.sel-role{font-size:12px;font-weight:700;color:var(--ink2);margin-top:5px}.rel>span:first-child{min-width:96px;display:inline-flex;align-items:center;gap:5px}.rel em{font-style:normal;font-size:10.5px;font-weight:800;padding:1px 7px;border-radius:999px;background:var(--pink-soft);color:#a8445c}.profile .fam{align-self:flex-start;font-size:12.5px;font-weight:800;padding:4px 12px;border-radius:999px;background:var(--pink-soft);color:#a8445c}.diary-bar{display:flex;flex-direction:column;gap:8px;padding:8px 16px 0}.diary-tabs{align-self:flex-start;background:var(--mist);border-radius:999px;padding:3px}.diary-tabs .seg{height:30px;padding:0 16px;font-size:13.5px}.diary-today{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:12px;color:var(--ink2)}.diary-today b{font-family:var(--f-title);font-size:15px;color:var(--dark)}.diary-today em,.cal-sp em{font-style:normal;font-weight:800;font-size:11px;padding:2px 9px;border-radius:999px;background:var(--yellow-soft);color:#7a5a00}.diary-today .next{color:var(--blue-d);font-weight:700}.k-birthday em,em.k-birthday{background:var(--pink-soft);color:#a8445c}.k-anniv em,em.k-anniv{background:#ffe3cf;color:#a4501c}.k-stage em,em.k-stage{background:var(--sky-soft);color:var(--blue-d)}.k-festival em,em.k-festival{background:var(--green-soft);color:var(--green-d)}.day-sep{font-family:var(--f-title);font-weight:800;font-size:13px;color:var(--blue-d);padding:6px 4px 0}.day-sep:first-child{padding-top:0}.cal{flex:1;min-height:0;overflow-y:auto;padding:8px 14px 14px;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin}.cal-head{display:flex;align-items:center;justify-content:space-between;font-family:var(--f-title);font-size:17px}.cal-nav{width:34px;height:34px;border-radius:50%;background:var(--mist);font-size:20px;font-weight:800;line-height:1}.cal-week,.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.cal-week span{text-align:center;font-size:11px;font-weight:700;color:var(--ink2)}.cal-grid .c{position:relative;min-height:46px;border-radius:12px;background:var(--mist);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:3px 0}.cal-grid .c.pad{background:none}.cal-grid .c b{font-family:var(--f-title);font-size:15px;line-height:1.1}.cal-grid .c small{font-size:9px;font-weight:700;color:var(--ink2);line-height:1.1}.cal-grid .c.before{opacity:.38}.cal-grid .c.future{background:transparent;box-shadow:inset 0 0 0 2px var(--mist)}.cal-grid .c.today{background:var(--yellow);box-shadow:0 3px 0 var(--yellow-d)}.cal-grid .c.sel{outline:3px solid var(--blue);outline-offset:-1px}.cal-grid .c.has:after{content:"";position:absolute;right:5px;top:5px;width:8px;height:8px;border-radius:50%;background:var(--yellow-d)}.cal-grid .c.k-birthday:after{background:var(--pink-d)}.cal-grid .c.k-anniv:after{background:var(--orange)}.cal-grid .c.k-stage:after{background:var(--sky)}.cal-grid .c.k-festival:after{background:var(--green)}.cal-grid .dots{display:flex;gap:2px;height:4px}.cal-grid .dots i{width:4px;height:4px;border-radius:50%;background:var(--blue-d)}.cal-detail{display:flex;flex-direction:column;gap:6px;padding-top:4px;border-top:2px dashed var(--line)}.cal-date{display:flex;align-items:baseline;gap:8px}.cal-date b{font-family:var(--f-title);font-size:16px}.cal-date span,.cal-note{font-size:12px;color:var(--ink2)}.cal-sp{display:flex;gap:8px;align-items:flex-start;background:var(--mist);border-radius:14px;padding:8px 10px}.cal-sp em{flex:none;margin-top:1px}.cal-sp b{display:block;font-size:13.5px}.cal-sp span{font-size:12px;color:var(--ink2);line-height:1.5}.cal-it{font-size:12.5px;font-weight:700;background:var(--mist);border-radius:10px;padding:6px 10px;display:flex;gap:8px}.cal-it span{font-family:var(--f-title);color:var(--blue-d);flex:none}html.L-mobile .diary-bar{padding:4px 16px 0}html.L-mobile .cal-grid .c{min-height:44px}.badge-users{font-size:13px;font-weight:700;color:var(--ink2)}.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}.badge-card{display:flex;gap:14px;align-items:center;background:var(--milk);border-radius:24px;padding:14px 16px;box-shadow:0 6px 0 var(--line);--mc: #c9ced3;--md: #a9afb6}.badge-card.got.t-yellow{--mc: var(--yellow);--md: var(--yellow-d)}.badge-card.got.t-gold{--mc: #f0b429;--md: #b9831a}.badge-card.got.t-pink{--mc: var(--pink);--md: var(--pink-d)}.badge-card.got.t-blue{--mc: var(--sky);--md: var(--blue-d)}.badge-card.got.t-green{--mc: #5db88f;--md: var(--green-d)}.badge-card.got.t-orange{--mc: var(--orange);--md: #c8662a}.badge-card:not(.got){opacity:.78}.medal{position:relative;width:62px;height:72px;flex:none}.medal i{position:absolute;left:50%;top:0;width:26px;height:30px;transform:translate(-50%);background:var(--md);clip-path:polygon(0 0,100% 0,100% 100%,50% 72%,0 100%)}.medal b{position:absolute;left:5px;bottom:0;width:52px;height:52px;border-radius:50%;background:var(--mc);box-shadow:inset 0 0 0 5px #ffffff8c,0 4px 0 var(--md);display:flex;align-items:center;justify-content:center;font-size:22px;color:var(--milk)}.badge-card .bi{min-width:0;display:flex;flex-direction:column;gap:3px}.badge-card h4{margin:0;font-family:var(--f-title);font-weight:800;font-size:16px}.badge-card p{margin:0;font-size:12.5px;line-height:1.45;color:var(--ink2)}.badge-card .when{font-size:11.5px;font-weight:700;color:var(--blue-d)}.badge-card:not(.got) .when{color:var(--ink2)}.badge-card .prog{height:8px;border-radius:4px;background:var(--mist);overflow:hidden;margin-top:2px}.badge-card .prog i{display:block;height:100%;background:var(--green);border-radius:4px}.badge-card .pct{font-size:11px;font-weight:700;color:#a4501c}html.L-mobile .badge-grid{grid-template-columns:1fr;gap:10px}.shop-ico{width:18px;height:18px;margin-left:4px;background:var(--green-d);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8Z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8Z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat}.money-pill[data-tip]:hover:after{content:attr(data-tip);position:absolute;top:60px;left:50%;transform:translate(-50%);background:var(--dark);color:var(--milk);font-family:var(--f-text);font-size:12px;font-weight:700;padding:5px 10px;border-radius:8px;white-space:nowrap;pointer-events:none}.shop-money{height:52px;padding:0 20px;border-radius:999px;background:var(--green-soft);box-shadow:0 5px #a9d6c1;display:flex;align-items:center;gap:4px;font-family:var(--f-title);font-weight:800;font-size:21px;flex:none}.shop-money .baht{color:var(--green-d)}#shop-tabs .seg{position:relative}#shop-tabs .seg:disabled{opacity:.5;cursor:default}#shop-tabs .seg small{font-size:10px;font-weight:700;margin-left:4px;color:var(--ink2)}.shop-body{position:relative;padding:20px 40px 30px;height:calc(100% - 120px);overflow-y:auto}.shop-tools{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;margin-bottom:16px}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.shop-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:24px;background:var(--milk);box-shadow:0 6px 0 var(--line)}.shop-card .sw{height:150px;border-radius:16px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}.shop-card .sw img{height:100%;width:auto;object-fit:contain}.shop-card .who{font-size:11px;font-weight:800;color:var(--blue-d)}.shop-card .nm{font-family:var(--f-title);font-weight:800;font-size:16px;line-height:1.25}.shop-card .ds{font-size:12px;line-height:1.5;color:var(--ink2);flex:1}.shop-card .foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px;min-height:42px}.shop-card .buy{flex:1;height:42px;border-radius:999px;background:var(--yellow);box-shadow:0 4px 0 var(--yellow-d);font-family:var(--f-title);font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center;gap:6px}.shop-card .buy:active{transform:translateY(3px);box-shadow:none}.shop-card .buy.poor{background:var(--mist);box-shadow:0 4px 0 var(--line);color:var(--ink2)}.shop-card .buy small{font-family:var(--f-text);font-size:11px;font-weight:700}.shop-card .have{font-size:13px;font-weight:800;color:var(--green-d)}.shop-card .try{height:36px;padding:0 14px;font-size:12.5px}.shop-card .cond{font-size:12px;font-weight:700;color:var(--ink2);line-height:1.45}.shop-card .tag{position:absolute;left:10px;top:10px;z-index:1;font-style:normal;font-size:11px;font-weight:800;padding:3px 10px;border-radius:999px;background:var(--mist);color:var(--ink2)}.shop-card .tag.new{background:var(--orange);color:var(--milk)}.shop-card .tag.lock{background:var(--dark);color:var(--milk)}.shop-card.locked .sw img{filter:grayscale(1) opacity(.55)}.shop-card.owned{box-shadow:inset 0 0 0 3px var(--green-soft),0 6px 0 var(--line)}.shop-empty{grid-column:1 / -1;padding:40px 0;text-align:center;color:var(--ink2);font-weight:700}.wd-card.locked .sw img{filter:grayscale(1) opacity(.5)}.wd-card .lock{position:absolute;left:10px;top:10px;z-index:1;font-size:11px;font-weight:800;padding:3px 10px;border-radius:999px;background:var(--dark);color:var(--milk)}html.L-mobile .shop-body{padding:12px 14px calc(24px + var(--safe-b));height:calc(100% - 150px)}html.L-mobile .shop-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}html.L-mobile .shop-card .sw{height:120px}html.L-mobile .shop-money{height:44px;padding:0 14px;font-size:17px}html.L-mobile #shop-tabs{order:3;flex-basis:100%;height:44px;overflow-x:auto}html.L-mobile .modal-head:has(#shop-tabs){flex-wrap:wrap}html.L-mobile .shop-ico{display:none}.shop-card .sw.item{align-items:center}.shop-card .sw.item img{height:100%;width:100%;object-fit:contain}.shop-card .sw.item img:not([src]){visibility:hidden}.shop-card .tag.on{background:var(--green-d);color:var(--milk)}.shop-card.placed{box-shadow:inset 0 0 0 3px var(--green-d),0 6px 0 var(--line)}.shop-card .try.put{background:var(--yellow);box-shadow:0 4px 0 var(--yellow-d)}.shop-card .foot .try{flex:1;padding:0 8px;white-space:nowrap}.shop-card .foot .have+.try{flex:none;padding:0 14px}.shop-tools .chips{flex-wrap:wrap}html.L-mobile #shop-tabs .seg{flex:none;white-space:nowrap;padding:0 14px}html.L-mobile .shop-tools{gap:8px}html.L-mobile .shop-tools .chips{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:6px;scrollbar-width:none}html.L-mobile .shop-tools .chips::-webkit-scrollbar{display:none}html.L-mobile .shop-tools .chips .chip{flex:none}.shop-card .ds .acts{display:block;margin-top:4px;font-weight:700;color:var(--green-d)}
