/* 青绿米白视觉。游戏场景填满动态视口中的可用空间。 */
:root{--ink:#244640;--muted:#7a8e80;--paper:#f3f0e8;--line:#dedfd2;--gold:#e7b77e;--ui-font:system-ui,-apple-system,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;--serif:'Noto Serif SC','Songti SC',SimSun,'Times New Roman',serif}
*{box-sizing:border-box}html{height:100%;overflow:hidden}body{margin:0;height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:var(--paper);color:var(--ink);font:14px var(--ui-font);font-variant-numeric:lining-nums}button,a,input{font:inherit}button{cursor:pointer;transition:background .2s,transform .2s;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.5;cursor:default}button:active:not(:disabled){transform:translateY(2px)}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #bd8649;outline-offset:3px}p{line-height:1.8;color:var(--muted);margin:8px 0}.hidden{display:none!important}.eyebrow{font-size:9px;letter-spacing:2.5px;color:#a47e4d;font-weight:650}
/* 高度链采用 min-height:0，使极窄横屏也由池塘缩放，而非撑开页面。 */
header{width:100%;max-width:1500px;margin:0 auto;padding:16px 30px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex:none;border-bottom:1px solid var(--line)}.tag{font-size:11px;color:#89917f;letter-spacing:4px}.header-stats{display:flex;gap:25px;font-size:10px;color:var(--muted);white-space:nowrap}.header-stats>span{border-left:1px solid var(--line);padding-left:20px}.header-stats strong{font:25px var(--ui-font);margin:0 5px;color:var(--ink)}.energy-stat strong{color:#ac7a42}
main{width:100%;max-width:1500px;margin:0 auto;padding:18px 30px 12px;display:flex;flex-direction:column;gap:14px;flex:1;min-height:0}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none}.intro h1{font:500 33px var(--serif);letter-spacing:-1px;margin:5px 0 0}.intro p{font-size:11px;margin:0}.pond{flex:1;min-height:0;position:relative;isolation:isolate;overflow:hidden;border-radius:20px;background:#245f5a;box-shadow:0 10px 30px #24464010}canvas{display:block;width:100%;height:100%;cursor:crosshair;touch-action:manipulation}.pond-top{pointer-events:none;position:absolute;inset:20px 24px auto;display:flex;justify-content:space-between;color:#d8e8cf;font-size:11px;letter-spacing:1px}.pond-top small{font-size:9px;margin-left:8px;color:#afc5ac}.pond-top i{display:inline-block;width:5px;height:5px;background:#c7ddaa;border-radius:50%;margin-right:7px}.pond-top>span+span{font-size:10px;color:#c4d8bd}.phase-label{position:absolute;top:52px;left:24px;padding:6px 9px;border:1px solid #c3dec333;border-radius:5px;color:#d7e7ce;font-size:10px;pointer-events:none}.phase-label.biting{border-color:#f5c98b70;color:#ffe2ad}.pond-bottom{position:absolute;bottom:19px;left:22px;right:22px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.pond-bottom button{pointer-events:auto}.water-button{background:#164b4ccc;border:1px solid #bbd3af40;padding:10px 12px;border-radius:9px;color:#dfebd4;font-size:11px;min-height:40px}.cast-button,.primary{border:0;border-radius:10px;padding:14px 25px;background:var(--gold);color:#2b443a;font-size:14px;font-weight:700;box-shadow:0 4px 0 #092c3320}.cast-button{min-width:165px}.cast-button:hover,.primary:hover{background:#f0c48d}.cast-button:disabled{opacity:.8}.center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#103d3d5c;backdrop-filter:blur(2px);padding:20px;color:#f7f2d9}.overline{font-size:11px;letter-spacing:4px;color:#d3ddc1}.center h2{font:500 38px var(--serif);margin:15px 0 8px}.center p{color:#d0dfca;line-height:1.9;font-size:13px;margin:0 0 22px;max-width:320px}.center small{font-size:11px;color:#d7d9be;margin-top:15px}
.game-dock{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:none}.game-dock button{display:flex;gap:14px;align-items:center;justify-content:center;padding:12px 8px;border:1px solid var(--line);background:#fbf9f1;border-radius:11px;color:var(--ink);font-size:12px}.game-dock button:hover{background:#e7ebda;border-color:#c7d1b8}.dock-icon{font:24px var(--serif);color:#a38659}.game-dock small{display:block;color:#899480;font-size:9px;margin-top:4px}.text-button{border:0;background:none;color:#5f7668;padding:8px 0;font-size:12px}.text-button:hover{color:#a27540}.secondary{border:1px solid #cdd3c0;border-radius:9px;background:#e9eddc;color:var(--ink);padding:12px 14px;font-size:12px}.secondary:hover{background:#dfe7ce}.tiny{font-size:10px;line-height:1.9;text-align:center;color:#8a9784;padding-top:13px}.warning{position:fixed;bottom:90px;left:20px;right:20px;z-index:15;border:1px solid #cfa56e;background:#fff1d8;padding:12px;border-radius:10px;color:#846236;font-size:12px}.save-actions{display:flex;gap:14px;margin-top:25px}
/* 仅弹窗内部允许滚动，主界面始终留在屏幕内；原生 dialog 管理焦点与 Escape。 */
dialog{border:1px solid #e4e3d4;border-radius:22px;background:#f8f5ec;color:var(--ink);width:min(820px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:30px;box-shadow:0 30px 90px #113a3950;overflow-y:auto;overscroll-behavior:contain}dialog::backdrop{background:#123b3b8a;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:18px;margin-bottom:22px}.dialog-heading h2{font:500 29px var(--serif);margin:8px 0}.dialog-heading h2>span{font:12px system-ui;color:var(--muted)}.dialog-heading p{font-size:12px;margin:0}.close{width:44px;height:44px;padding:0;color:var(--ink);font-size:24px;line-height:1;flex:none}.small-dialog{max-width:540px}.help-list{padding-left:20px;line-height:1.9;color:#728271;font-size:12px}.help-list li{margin-bottom:12px}.basket{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}.empty-state{grid-column:1/-1;text-align:center;border:1px dashed #d7ddcc;border-radius:13px;padding:26px;color:#939e8a;font-size:12px;line-height:2;background:#f9f7ee}.empty-state span{display:block;font-size:26px;color:#b4bda8;margin-bottom:5px}.fishchip{border:1px solid #dedfd0;background:#fcfaf2;border-radius:13px;display:flex;align-items:center;gap:9px;padding:10px;text-align:left;color:var(--ink);min-width:0}.fishchip:hover{border-color:#aebd9c;background:#edf0e1}.fish-icon{display:inline-block;width:52px;height:52px;flex:none;background-image:url("https://www.dejai.site/xiaoyu-pond/objects/909a73a8a0f3c4839c92410653684dd20b86d5fc1d7f3eeacdf0e7e4f82fe270/assets/fish-atlas-v2.png");background-size:500% 400%;border-radius:8px}.fishchip-label{display:flex;flex-direction:column;gap:4px}.fishchip-label strong{font-size:12px;font-weight:600}.fishchip-label small{font-size:9px;color:var(--muted)}.fishchip-count{margin-left:auto;font:17px var(--ui-font);font-variant-numeric:lining-nums tabular-nums;padding-right:4px}
.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.recipe-card{background:#fffdf6;border:1px solid #e2e1d1;border-radius:14px;overflow:hidden}.recipe-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;background:#e8e3d4}.recipe-card img[data-thumbnail]{color:transparent}.recipe-info{padding:14px}.recipe-info h3{font:500 18px var(--serif);margin:0 0 6px}.recipe-info p{font-size:10px;margin:0 0 10px}.recipe-info button{width:100%;padding:10px;border:1px solid #d0d9be;background:#eaf0de;border-radius:7px;color:var(--ink);font-size:11px}.recipe-info button:hover{background:#dee8cc}.recipe-info small{display:block;color:#a6814d;font-size:10px;margin-bottom:8px}.kitchen-choose{margin-bottom:18px;color:#7b8d75;font-size:12px}.kitchen-fishes{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}.cooking-stage{min-height:330px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}.cooking-stage h3{font:500 27px var(--serif);margin:22px 0 5px}.cooking-stage p{font-size:12px}.cooking-track{margin:17px auto 5px;width:190px;height:4px;border-radius:8px;background:#e1e2d1;overflow:hidden}.cooking-track span{display:block;width:100%;height:100%;background:#b58e52;transform:scaleX(0);transform-origin:left}.finished-dish{width:210px;aspect-ratio:1;object-fit:cover;border-radius:18px;box-shadow:0 12px 30px #45573f24}.result-actions{display:flex;gap:12px;margin-top:16px}.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);padding:13px 22px;background:#244b42;color:#f4efd8;border-radius:10px;box-shadow:0 8px 30px #132d2940;font-size:12px;z-index:20;text-align:center;pointer-events:none}
@media(max-width:700px){header{padding:12px 16px;gap:8px}.tag{display:none}.header-stats{gap:12px;font-size:9px}.header-stats>span{padding-left:10px}.header-stats strong{font-size:21px;margin:0 3px}main{padding:12px 12px max(8px,env(safe-area-inset-bottom));gap:11px}.intro{gap:8px}.intro h1{font-size:26px;margin-top:4px}.intro .eyebrow{font-size:7px;letter-spacing:2px}.intro p{display:none}.pond{border-radius:16px}.pond-top{inset:18px 15px auto;font-size:10px}.pond-top>span+span{font-size:9px}.pond-top small{font-size:8px;margin-left:5px}.pond-bottom{left:13px;right:13px;bottom:16px;gap:5px}.water-button{font-size:10px;padding:10px;min-height:38px}.cast-button{min-width:130px;font-size:12px;padding:13px 15px}.phase-label{left:15px;top:48px;font-size:9px}.center h2{font-size:32px}.center p{font-size:12px;max-width:260px}.overline{font-size:10px;letter-spacing:3px}.primary{font-size:12px;padding:13px 20px}.game-dock{gap:5px}.game-dock button{flex-direction:column;gap:4px;font-size:10px;padding:8px 2px;border-radius:9px}.game-dock small{display:none}.dock-icon{font-size:20px;line-height:21px}.warning{bottom:78px;left:12px;right:12px}.toast{bottom:78px}dialog{padding:22px 18px;border-radius:17px}.dialog-heading h2{font-size:25px}.dialog-heading p{font-size:11px}.recipe-grid{grid-template-columns:1fr;gap:12px}.recipe-card{display:grid;grid-template-columns:115px minmax(0,1fr)}.recipe-card img{height:100%;min-height:155px;aspect-ratio:auto}.recipe-info{padding:13px}.recipe-info h3{font-size:19px}.recipe-info small{margin-bottom:6px}.kitchen-fishes,.basket{grid-template-columns:repeat(2,minmax(0,1fr))}.fishchip{padding:8px;gap:4px}.fish-icon{width:42px;height:42px}.fishchip-label strong{font-size:11px}.fishchip-count{font-size:15px}.cooking-stage{min-height:310px}.result-actions{flex-wrap:wrap;justify-content:center}.finished-dish{width:190px}}
/* 横屏或矮窗口缩减装饰，仍为水面和主操作保留完整可见区域。 */
@media(max-height:600px){header{padding-top:8px;padding-bottom:8px}main{padding-top:9px;gap:9px}.intro .eyebrow{display:none}.intro h1{font-size:23px;margin:0}.game-dock button{padding-top:7px;padding-bottom:7px}.game-dock small{display:none}.game-dock .dock-icon{font-size:19px}.center h2{font-size:28px;margin:8px 0}.center p{font-size:11px;margin-bottom:12px}.center small{margin-top:9px}.overline{font-size:9px}.center .primary{padding:11px 22px}}
@media(max-height:420px){header{padding:6px 16px}.header-stats strong{font-size:20px}.tag,.intro{display:none}main{padding:8px 12px;gap:7px}.game-dock button{flex-direction:row;gap:8px;padding:6px 4px;font-size:10px}.game-dock .dock-icon{font-size:17px}.pond-top{inset:12px 16px auto;font-size:9px}.phase-label{top:34px;left:16px;font-size:8px;padding:4px 6px}.pond-bottom{bottom:11px;left:14px;right:14px}.water-button{min-height:32px;padding:7px 10px;font-size:9px}.cast-button{padding:9px 16px;min-width:130px;font-size:11px}.center{padding:10px}.center .overline{display:none}.center h2{font-size:25px;margin:5px 0}.center p{font-size:10px;line-height:1.6;margin-bottom:8px;max-width:380px}.center .primary{font-size:11px;padding:9px 20px}.center small{margin-top:7px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important}}


/* 顶部提示采用轻薄半透明底，仅用字色区分状态，避免大色块占据水面。 */
.message{position:absolute;top:18px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 150px);margin:0;padding:5px 12px;min-height:29px;display:flex;align-items:center;justify-content:center;color:#2e5146;background:#f8f4e875;border:1px solid #fff9e32b;border-radius:18px;font-size:13px;font-weight:500;line-height:1.5;text-align:center;box-shadow:0 2px 8px #284d3e10;pointer-events:none;z-index:2;backdrop-filter:blur(3px)}
.message:empty{display:none}.message[data-kind='bite']{color:#655028;font-weight:650}.message[data-kind='hit']{color:#315b36;font-weight:650;font-size:14px}.message[data-kind='large']{color:#835923;font-weight:650;font-size:14px}.message[data-kind='escape'],.message[data-kind='miss']{color:#855b4c;font-weight:600;font-size:14px}.phase-label{display:none}.pond-top{color:#f6f1d9;text-shadow:0 1px 5px #17463c}
.cooking-art{width:250px;max-width:75%;aspect-ratio:1;background-size:200% 200%;background-repeat:no-repeat;animation:cookware-frames .8s steps(1) infinite alternate;filter:drop-shadow(0 10px 12px #5e6d4820)}
.cooking-art[data-method='steamed']{background-image:url("https://www.dejai.site/xiaoyu-pond/objects/dc3348316215d101dfa5db8be188f8e595d39a2486ece0c820a3a040e86cae15/assets/cooking-v2/steamed.webp")}
.cooking-art[data-method='braised']{background-image:url("https://www.dejai.site/xiaoyu-pond/objects/6bb15635953a0476143bcb8ea2bba662447093f1639ca7b70a81c3a230acf1e6/assets/cooking-v2/braised.webp")}
.cooking-art[data-method='fried']{background-image:url("https://www.dejai.site/xiaoyu-pond/objects/c79edbe93569cc2a58b3cbcbd1c8ea002a0be6f1d4f9cf3a2f693622570f9593/assets/cooking-v2/fried.webp")}
@keyframes cookware-frames{0%{background-position:0 0}25%{background-position:100% 0}50%{background-position:0 100%}75%,100%{background-position:100% 100%}}
@keyframes cooking-frames{0%{background-position:0 0}12.5%{background-position:33.333333% 0}25%{background-position:66.666667% 0}37.5%{background-position:100% 0}50%{background-position:0 100%}62.5%{background-position:33.333333% 100%}75%{background-position:66.666667% 100%}87.5%,100%{background-position:100% 100%}}
.eating-stage{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:340px;text-align:center}.eating-stage h3{font:500 23px var(--serif);margin:12px 0 3px}.eating-stage p{font-size:14px;color:#8a733c;margin:4px 0}.eating-art{width:260px;max-width:80%;aspect-ratio:1;background-size:400% 200%;background-repeat:no-repeat;animation:cooking-frames .98s steps(1) infinite}
@media(max-width:700px){.message{top:15px;max-width:calc(100% - 104px);min-height:27px;padding:4px 9px;font-size:11px}.message[data-kind='hit'],.message[data-kind='large'],.message[data-kind='escape'],.message[data-kind='miss']{font-size:12px}.cooking-art{width:210px}.eating-art{width:225px}.eating-stage{min-height:310px}.eating-stage h3{font-size:20px}}
@media(max-height:420px){.message{top:11px;min-height:24px;padding:3px 9px;font-size:10px}.message[data-kind='hit'],.message[data-kind='large'],.message[data-kind='escape'],.message[data-kind='miss']{font-size:11px}.cooking-art{width:150px}.cooking-stage h3{margin-top:9px}.cooking-stage{min-height:230px}.eating-art{width:145px}.eating-stage{min-height:210px}.eating-stage h3{font-size:17px;margin-top:5px}}
@media(prefers-reduced-motion:reduce){.cooking-art,.eating-art{animation:none;background-position:0 0}}

/* 钓点入口和云舟过渡 */
.pond-top{z-index:3}
.scene-label{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:31px;padding:4px 9px;border:1px solid var(--ui-edge);border-radius:8px;background:var(--ui-glass);color:var(--ink);font:650 12px/1.25 var(--ui-font);letter-spacing:.035em;box-shadow:var(--ui-lift);text-shadow:none;white-space:nowrap;backdrop-filter:blur(3px)}
button.scene-label:hover,.home-map-zone:hover .scene-label {background:var(--ui-action)}
.pond-selector{pointer-events:auto;min-height:32px}
.pond-selector i{margin:0;background:var(--ui-accent)}
#pondGear {min-width:64px}
.pond:has(#pondGear[aria-expanded='true']) #pond {pointer-events:none}
.pond-caret{width:6px;height:6px;border:solid currentColor;border-width:0 1px 1px 0;transform:translateY(-2px) rotate(45deg)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pond-dialog {
    width:min(780px,calc(100% - 20px));
    padding:0;
    overflow:hidden;
    border-color:var(--ui-edge);
    background:var(--ui-glass);
}
.pond-dialog[open] {display:flex;flex-direction:column}
.pond-dialog-heading {
    flex:none;
    align-items:center;
    margin:0;
    padding:12px clamp(14px,3vw,24px);
    border-bottom:1px solid #d1d8c4;
    background:linear-gradient(115deg,#f5efdd,#e7eddf);
}
.pond-dialog-heading h2 {margin:0;color:#264b3d;font-size:clamp(24px,4vw,30px)}
.pond-dialog-heading .pond-switch-note {margin-top:4px;color:#536654;line-height:1.5}
.pond-picker-body {min-height:0;padding:clamp(10px,3vw,20px);overflow:auto;overscroll-behavior:contain}
.pond-picker-body:focus-visible {outline:2px solid #607e68;outline-offset:-3px}
.pond-choices {display:grid;grid-auto-rows:1fr;gap:11px}
.pond-choice {
    display:grid;
    grid-template-columns:minmax(0,42%) minmax(0,1fr);
    min-height:132px;
    padding:0;
    overflow:hidden;
    border:1px solid #cdd3bd;
    border-radius:13px;
    background:#fffbef;
    color:var(--ink);
    box-shadow:0 3px 9px #364e3510;
    text-align:left;
}
.pond-choice:not(:disabled):hover {border-color:#6c917d;background:#f3f7e9}
.pond-choice:focus-visible {outline:2px solid #3d715b;outline-offset:2px}
.pond-choice[aria-current=true] {border-color:#809c87;background:#eff3e7;opacity:1;cursor:default}
.pond-choice-art {position:relative;overflow:hidden;background:#d3e1cf}
.pond-choice-art img {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.pond-choice-content {display:grid;align-content:center;gap:8px;padding:12px clamp(10px,2.6vw,19px)}
.pond-choice-summary {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:3px 10px}
.pond-choice-title {display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px}
.pond-choice-title strong {font:650 clamp(18px,4.8vw,26px)/1.18 var(--serif);color:#264c3c}
.pond-choice-current {padding:2px 6px;border:1px solid #b9cbb4;border-radius:10px;background:#e1ebdb;color:#315d48;font-size:10px;line-height:1.25}
.pond-choice-summary small {color:#765730;font-size:12px;font-weight:650}
.pond-pools {display:grid;gap:4px;padding-top:7px;border-top:1px solid #dce1d2;color:#455d51;font-size:12px;line-height:1.55}
.pond-pool {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px}
.pond-pool b {font-weight:700;color:#325b52}
.pond-pool-names {display:flex;flex-wrap:wrap;gap:1px 6px}
.pond-pool-names > span {display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
.pond-pool-names .fish-icon {width:16px;height:16px;border-radius:0}
.pond-travel[hidden]{display:none}
.pond-travel{position:absolute;inset:0;z-index:6;display:grid;justify-items:center;align-items:start;overflow:hidden;isolation:isolate;color:#28544e;background:linear-gradient(165deg,#e9e6d8,#94b4ae);animation:pond-cover .28s ease both}
.pond-travel-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 56%;opacity:0;transition:opacity .24s ease}
.pond-travel-art.loaded{opacity:1}
.pond-travel p{position:relative;z-index:1;margin:clamp(22px,7vh,70px) 0 0;padding:9px 28px 12px;text-align:center;color:inherit;text-shadow:0 1px 3px #fff5dc;background:linear-gradient(90deg,#f5eed500,#fbf4e5da 27%,#fbf4e5da 73%,#f5eed500);line-height:1.55}
.pond-travel p span{display:block;color:#38635c;font-size:11px;letter-spacing:.3em}
.pond-travel p strong{display:block;margin-top:3px;font:600 clamp(22px,4.6vw,37px)/1.25 var(--serif);letter-spacing:.15em;text-indent:.15em}
.pond-travel[data-stage='reveal']{animation:pond-reveal .33s ease both}
@keyframes pond-cover{from{opacity:0}to{opacity:1}}
@keyframes pond-reveal{from{opacity:1}to{opacity:0}}
.fish-icon{background-image:none}
.fishchip-label .fishchip-source{color:#57766b;font-weight:650}
.fishchip-label .fishchip-energy{color:#85592f;font-weight:650;line-height:1.35}
@media(max-width:600px){
    .pond-choices {gap:9px}
    .pond-choice {grid-template-columns:minmax(0,37%) minmax(0,1fr)}
    .pond-choice-summary {display:grid}
    .pond-choice-content {gap:6px;padding:10px}
    .pond-pools {gap:4px;padding-top:6px}
    .pond-pool {gap:4px}
}
@media(max-width:700px){.pond-selector{font-size:11px}.message{top:54px}}
@media(max-width:700px) and (max-height:420px){.pond-selector{min-height:27px}.message{top:44px}}
@media(max-height:460px){.pond-dialog-heading{padding-block:7px}.pond-choice{min-height:114px}}

.catch-reveal {
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    margin:0;
    padding:clamp(10px,3vw,24px);
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    overflow:hidden;
    cursor:pointer;
}
.catch-reveal[open] {display:grid;place-items:center}
.catch-reveal::backdrop {background:#382e2466;backdrop-filter:blur(3px);animation:catch-backdrop .52s ease-out both}
.catch-paper {
    display:grid;
    grid-template-columns:minmax(230px,1fr) minmax(0,1.13fr);
    width:min(100%,690px);
    max-height:100%;
    overflow:auto;
    overscroll-behavior:contain;
    border:1px solid #fff4d9;
    border-radius:22px;
    background:var(--ui-glass);
    box-shadow:var(--ui-shadow);
    animation:catch-enter .64s cubic-bezier(.22,.65,.3,1) both;
}
@keyframes catch-backdrop {from{opacity:0}to{opacity:1}}
@keyframes catch-enter {from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.catch-paper:has(.catch-dismiss:focus-visible) {outline:2px solid #dceac4;outline-offset:4px}
.catch-art {
    display:grid;
    place-items:center;
    position:relative;
    min-height:270px;
    background:#c6dfc8 url("https://www.dejai.site/xiaoyu-pond/20261119-immersive-v20/assets/dialog-rooms/catch-water.webp") center/cover no-repeat;
}
.catch-art::after {content:'';position:absolute;inset:9px;border:1px solid #fff6df9c;border-radius:13px;pointer-events:none}
.catch-art .fish-icon {width:min(87%,300px);height:auto;aspect-ratio:1;filter:drop-shadow(0 12px 10px #28463e36)}
.catch-info {padding:clamp(19px,4vw,32px)}
.catch-saved {margin:0 0 6px;color:#486b4e;font-size:12px;font-weight:700}
.catch-info h2 {margin:0;font:650 clamp(27px,5vw,41px)/1.16 var(--serif);color:#244539}
.catch-origin {margin:8px 0 0;color:#695f44;font-size:12px}
.catch-description {margin:15px 0;color:#3f5147;font-size:14px;line-height:1.75}
.catch-details {display:flex;flex-wrap:wrap;gap:8px 26px;margin:0;padding:11px 0 0;border-top:1px solid #ded2b6}
.catch-details dt {margin-bottom:3px;color:#625c49;font-size:11px}
.catch-details dd {margin:0;color:#355f48;font-size:14px;font-weight:700}

.room-kitchen .fishchip,.room-kitchen .recipe-card {background:var(--ui-soft);border-color:var(--line)}
.room-kitchen .fishchip:hover {background:var(--ui-action);border-color:var(--ui-action-edge)}

.game-dock {grid-template-columns:repeat(4,minmax(0,1fr))}
.game-dock button {justify-content:center;gap:5px}
.game-dock .nav-art {width:34px;height:30px;display:block;background-position:center;background-repeat:no-repeat;background-size:contain}
#pondOpen .nav-art {background-image:url("https://www.dejai.site/xiaoyu-pond/20261119-immersive-v20/assets/home/nav-pond.webp")}
#homeOpen .nav-art {background-image:url("https://www.dejai.site/xiaoyu-pond/20261119-immersive-v20/assets/home/nav-home.webp")}
#shopOpen .nav-art {background-image:url("https://www.dejai.site/xiaoyu-pond/20261119-immersive-v20/assets/home/nav-shop.webp")}
#socialOpen .nav-art {background-image:url("https://www.dejai.site/xiaoyu-pond/20261119-immersive-v20/assets/home/nav-save.webp")}
.game-dock button[aria-current='page'] {background:#e5ebd8;color:#244d3b;border-color:#88a289}
.gold-stat {color:#785a2c}
.life-dialog {width:min(560px,calc(100% - 20px))}
.life-body {display:grid;align-content:start;gap:12px}
.life-body p {margin:0;line-height:1.55}
.life-body h3 {margin:0;font:600 20px/1.25 var(--serif)}
.life-body .primary,.life-body .secondary {min-height:42px}
.life-body .home-empty {padding:18px 10px;color:#526a57;text-align:center}
.life-body .life-note {color:#536655;font-size:12px}
.home-hero {position:relative;margin:0;overflow:hidden;border-radius:13px;background:#e0e9d9}
.home-hero > img:first-child {display:block;width:100%;aspect-ratio:1.5;object-fit:cover}
.home-links {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.home-links small {color:#526955}
.home-field {display:grid;gap:5px;color:#345342;font-weight:650;font-size:13px}
.home-field :is(select,input) {width:100%;min-height:44px;padding:8px 10px;border:1px solid #c3cbb5;border-radius:8px;background:#fffdf3;color:var(--ink);font:inherit;font-size:16px}
.sale-preview,.life-timer {padding:9px 12px;border:1px solid #d6d0ad;border-radius:9px;background:#fff6df;color:#71552e;font-weight:700}
@media(max-width:700px){
    .header-stats {gap:6px}
    .header-stats>span {padding-left:6px;white-space:nowrap}
    .header-stats strong {font-size:18px;margin:0 1px}
    .game-dock button {min-height:46px}
}

[hidden] {display:none!important}
.world-page {flex:1;min-height:0;width:100%;max-width:680px;margin-inline:auto;overflow:auto;overscroll-behavior:contain;border:1px solid #d5dcc9;border-radius:17px;background:#f7f4e7}
.world-page .page-heading {padding:12px clamp(13px,4vw,24px);background:#ebefdf;border-bottom:1px solid #d7dfca}
.world-page .page-heading h2 {margin:0;font:650 25px/1.3 var(--serif);color:#28513f}
.world-page .life-body {padding:clamp(10px,3vw,20px)}
#homePage {display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(165deg,#f0f2e3,#e2ebd8 65%,#edf0e1)}
#homePage .life-body {flex:1;min-height:0}
.map-portrait > img:first-child {aspect-ratio:2/3}
.life-tabs {flex:none;display:flex;gap:5px;overflow-x:auto;padding:9px 10px;background:#edf0e2;border-bottom:1px solid #d6dfcb}
.life-tabs button {flex:1 0 auto;padding:6px 9px;min-height:36px;border:1px solid transparent;border-radius:8px;background:transparent;color:#4c6150;font-weight:650;font-size:13px;white-space:nowrap}
.life-tabs button[aria-pressed=true] {border-color:#93ac8d;background:#dce8d5;color:#264c38}
.pet-preview {grid-column:1/-1;border-top:1px solid #dfe3d4;padding:6px 0 0;color:#496552;font-size:12px}
.pet-preview summary {cursor:pointer;padding:4px 2px}
.pet-stage-preview {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));text-align:center;gap:5px;margin-top:6px}
.pet-stage-preview figure {margin:0}
.pet-stage-preview img {height:auto}
#fishStock > .home-links,#mealsStock > p {margin-bottom:10px}
.home-map-zones {position:absolute;inset:0}
.home-map-zone {position:absolute;transform:translate(-50%,-50%);width:20%;min-width:44px;height:23%;min-height:44px;display:flex;align-items:flex-end;justify-content:center;padding:0 0 3px;border:0;border-radius:8px;background:transparent}
.home-map-zone:focus-visible {outline:none}
.home-map-zone:focus-visible .scene-label {outline:2px solid var(--ui-focus);outline-offset:2px}
.home-map-zone:active:not(:disabled) {transform:translate(-50%,-50%)}
.home-map-zone .scene-label {min-height:27px}
.yard-edit {position:absolute;top:3%;right:4%;min-height:34px}
#warehouseBody {flex:1}
#fridgeContent {grid-auto-rows:max-content}
.decoration-ground {position:absolute;inset:0;pointer-events:none}
.decoration-floor {position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:crosshair;pointer-events:auto}
.decoration-floor:active:not(:disabled) {transform:none}
.decoration-piece,.decoration-piece:active:not(:disabled) {position:absolute;display:block;width:clamp(54px,20%,125px);aspect-ratio:1;transform-origin:50% 90.625%;transform:translate(-50%,-90.625%) scale(var(--size));padding:0;border:0;background:transparent}
button.decoration-piece {pointer-events:auto;touch-action:none;cursor:grab}
button.decoration-piece:active {cursor:grabbing}
.decoration-sprite,.decoration-frame {position:absolute;inset:0;pointer-events:none}
.decoration-sprite {isolation:isolate;filter:drop-shadow(1px 2px 2px #4c371850)}
.decoration-frame {overflow:hidden;mix-blend-mode:plus-lighter}
.decoration-frame img {position:absolute;left:var(--frame-left);top:var(--frame-top);width:400%;height:200%;max-width:none;pointer-events:none}
.decoration-piece.is-selected::after {content:'';position:absolute;left:50%;top:90.625%;width:48%;height:14%;transform:translate(-50%,-45%);border:1px solid #fff4c9b5;border-radius:50%;pointer-events:none}
.decoration-inventory {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-height:min(33dvh,224px);overflow:auto;overscroll-behavior:contain;gap:5px;padding:3px}
.decoration-pick {position:relative;min-width:0;display:grid;justify-items:center;gap:3px;padding:4px 2px;background:var(--ui-soft);border:1px solid var(--ui-edge);border-radius:7px;color:var(--ink);font:650 11px var(--ui-font);touch-action:none;cursor:grab}
.decoration-pick img {width:42px;height:38px;object-fit:contain;pointer-events:none}
.decoration-pick-name {max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.decoration-pick-count {position:absolute;top:3px;right:4px;color:var(--ui-accent);font-variant-numeric:lining-nums tabular-nums}
.garden-map {position:relative;overflow:hidden;isolation:isolate;border-radius:13px;background:#dfcca6;width:100%;aspect-ratio:1.52}
.garden-backdrop {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}
.garden-plots {position:absolute;inset:10% 7%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:5px}
.garden-plot {position:relative;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;padding:12px 2px 15px;border:1px solid #957b53;border-radius:9px;background:#d5aa6e91;color:#382d20;overflow:hidden}
.garden-plot[aria-pressed=true] {outline:2px solid #45674a;outline-offset:-2px;background:#f0d295b8}
.plot-plant {width:100%;height:100%;object-fit:contain;min-height:0;filter:drop-shadow(0 2px 2px #5c493757)}
.plot-number {position:absolute;top:3px;left:4px;background:#fff1d5e0;border-radius:4px;padding:0 3px;font-size:9px;z-index:1}
.plot-label {position:absolute;bottom:2px;left:2px;right:2px;text-align:center;z-index:1}
@media(max-width:430px){.game-dock button{min-height:52px}.life-tabs button{padding-inline:6px;font-size:12px}}
@media(max-height:440px) and (orientation:landscape){.game-dock .nav-art{width:26px;height:22px}.game-dock button{min-height:35px}}

@media(max-width:600px) and (min-height:461px) {
    .catch-paper {grid-template-columns:minmax(0,1fr);width:min(100%,440px)}
    .catch-art {min-height:0;height:clamp(155px,30dvh,255px)}
    .catch-art .fish-icon {width:min(73%,27dvh,235px)}
    .catch-info {padding:17px 20px}
    .catch-description {margin:10px 0}
}
@media(max-height:460px) {
    .catch-paper {grid-template-columns:minmax(110px,.66fr) minmax(0,1fr)}
    .catch-art {min-height:0}
    .catch-art .fish-icon {width:min(85%,47dvh,250px)}
    .catch-info {padding:15px 18px}
    .catch-description {margin:8px 0;font-size:13px;line-height:1.55}
    .catch-origin {margin-top:4px}
    .catch-details {padding:7px 0}
    .room-surface {padding:10px 12px}
    .room-surface :is(.cooking-stage,.eating-stage) {min-height:0}
    .room-surface :is(.cooking-art,.eating-art,.finished-dish) {width:clamp(80px,29dvh,138px)}
    .room-surface .cooking-stage h3 {font-size:19px}
    .room-surface .result-actions {margin-top:8px}
}
@media(max-width:430px) {
    .room-kitchen .kitchen-fishes {grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))}
    .room-surface .fishchip {padding:8px 5px;gap:4px}
    .room-surface .fishchip .fish-icon {width:34px;height:34px}
    .room-surface .fishchip-count {padding-right:2px;font-size:14px}
}

/* 画面接到屏幕边缘，底栏占用自己的安全区。 */
main {max-width:none;padding:0;gap:0}
.pond,.world-page {max-width:none;margin:0;border:0;border-radius:0;box-shadow:none}
.game-dock {gap:0;background:#f7f3e6;border-top:1px solid #bccab6;padding-bottom:env(safe-area-inset-bottom)}
.game-dock button {min-height:52px;border:0;border-radius:0;background:#f7f3e6;box-shadow:inset -1px 0 #e3e3d2}
.game-dock button[aria-current='page'] {background:#e0e9d6;box-shadow:inset 0 3px #809c79}
#homePage {position:relative}
#homePage .life-body {display:block;padding:0;container-type:normal}
#homePage .home-hero {width:100%;height:100%;border-radius:0;box-shadow:none}
#homePage .home-hero > img:first-child {width:100%;height:100%;object-fit:fill}
#shopPage .page-heading {position:sticky;top:0;z-index:2}
.kitchen-choose {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ingredient-back {min-height:46px;min-width:95px;font-size:14px;padding:10px 14px}
.cropchip img {width:44px;height:44px;object-fit:contain}
.stock-item-art {display:grid;justify-items:center}
.stock-item-art :is(img,.fish-icon) {width:72px;height:72px;object-fit:contain}
#stockDialog .life-note {text-align:center}

#petPage {position:relative;isolation:isolate;overflow:hidden;background:#d9c39b}
#petYard,.pet-yard-art {position:absolute;inset:0;width:100%;height:100%}
.pet-yard-art {object-fit:cover;pointer-events:none}
.yard-toolbar {position:absolute;top:12px;z-index:120;min-height:34px;padding-inline:10px}
#petBack {left:max(12px,env(safe-area-inset-left))}
#petRosterOpen {right:max(12px,env(safe-area-inset-right))}
.pet-nest {position:absolute;z-index:100;display:grid;justify-items:center;align-content:end;min-width:68px;height:52px;padding:0 4px;transform:translate(-50%,-50%);border:0;border-radius:50%;background:none}
.pet-nest:active:not(:disabled),.yard-pet:active:not(:disabled) {transform:translate(-50%,-50%)}
.pet-nest img {position:absolute;left:50%;bottom:23px;translate:-50%;width:42px;height:42px;object-fit:contain;pointer-events:none}
.nest-label.scene-label {min-height:18px;padding:2px 5px;font-size:10px;line-height:1.1;font-family:var(--ui-font);font-variant-numeric:lining-nums tabular-nums}
.pet-nest.ready {outline:2px solid #eed69a;outline-offset:3px}
.pet-nest.ready img {animation:egg-wiggle 2.8s ease-in-out infinite}
@keyframes egg-wiggle {0%,70%,100%{rotate:0deg}77%{rotate:-10deg}84%{rotate:9deg}91%{rotate:-5deg}}
.yard-pet {position:absolute;min-width:52px;min-height:52px;width:clamp(72px,23vw,136px);aspect-ratio:1;transform:translate(-50%,-100%);background:none;border:0;border-radius:40%;padding:0;touch-action:none;user-select:none;-webkit-user-select:none;transition:left var(--travel,1.65s) linear,top var(--travel,1.65s) linear}
.yard-pet:active:not(:disabled) {transform:translate(-50%,-100%)}
.yard-pet img {display:block;width:100%;height:100%;object-fit:contain;scale:var(--face,1) 1;pointer-events:none;transform-origin:50% 75%;filter:drop-shadow(1px 4px 2px #624b4466)}
.yard-pet[data-facing='right'] {--face:-1}
.yard-pet {width:calc(clamp(72px,23vw,136px) * var(--pet-body-scale,1))}
.yard-pet[data-growth='0'] {width:calc(clamp(62px,18vw,108px) * var(--pet-body-scale,1))}
.yard-pet[data-growth='1'] {width:calc(clamp(67px,20vw,120px) * var(--pet-body-scale,1))}
.yard-pet.dragging {z-index:110!important;transition:none;cursor:grabbing}
.yard-pet.dragging img {filter:drop-shadow(2px 10px 4px #3b342988);translate:0 -8px;animation:none}
.yard-pet[data-motion='walk'] img {animation:pet-walk .38s ease-in-out 6}
@keyframes pet-walk {0%,100%{transform:translateY(1px) rotate(-3deg)}50%{transform:translateY(-4px) rotate(3deg)}}
.pet-actions {display:flex;gap:6px;flex-wrap:wrap}
.pet-actions button {flex:1 0 auto;min-height:44px}
@media(max-height:440px) and (orientation:landscape) {
    .game-dock button {min-height:39px}
    #petYard .yard-pet {width:clamp(48px,12dvh,100px)}
}
@media(prefers-reduced-motion:reduce) {
}

/* 場景气泡在画面上方的原生顶层显示，仍保留地图的可见性。 */
.scene-bubble,.game-tip {position:fixed;z-index:135;inset:auto;margin:0;box-sizing:border-box}
.game-tip {z-index:138}
.scene-bubble {--bubble-paper:#f7f0dbd1;width:min(235px,calc(100dvw - 18px));max-height:min(320px,calc(100dvh - 18px));padding:0;overflow:visible;border:1px solid #e8d9bdb5;border-radius:10px;background:var(--bubble-paper);color:#28473d;box-shadow:0 7px 19px #31423240;backdrop-filter:blur(8px)}
.scene-bubble.bubble-wide {width:min(284px,calc(100dvw - 18px))}
.scene-bubble::before {content:'';position:absolute;left:var(--arrow-x,50%);width:9px;height:9px;background:var(--bubble-paper);border:1px solid #e8d9bdb5;transform:translateX(-50%) rotate(45deg);z-index:-1}
.scene-bubble[data-edge='top']::before {top:-5px}
.scene-bubble[data-edge='bottom']::before {bottom:-5px}
.bubble-heading {display:flex;justify-content:space-between;align-items:center;gap:5px;padding:1px 4px 1px 9px;border-bottom:1px solid #a18e5940}
.bubble-heading h3 {margin:0;font:700 14px/1.3 var(--ui-font);color:#315644}
.bubble-close {width:44px;height:44px;padding:0;color:var(--ink);font-size:20px;flex:none}
.bubble-body {display:grid;gap:5px;padding:7px 8px 8px;max-height:min(272px,calc(100dvh - 66px));overflow:auto;overscroll-behavior:contain}
.bubble-body .life-note {margin:0;color:#52674e;font-size:12px;line-height:1.5}
.bubble-body progress {width:100%;height:10px;accent-color:#698758}
.bubble-body :is(.primary,.secondary) {min-height:36px;padding:4px 7px;font-size:12px;box-shadow:none}
.bubble-buttons {display:flex;gap:5px;flex-wrap:wrap}
.bubble-buttons button {flex:1 1 auto}
.bubble-item {display:flex;gap:6px;min-height:39px;align-items:center;text-align:left;padding:2px 5px;border:1px solid #cfc4a390;border-radius:6px;color:#305644;background:#fff8e88a;font-size:12px}
.bubble-item:hover {background:#fbefd2}
.bubble-item img {width:32px;height:32px;object-fit:contain;flex:none;border-radius:5px}
.bubble-item small {display:block;color:#6c7353;font-size:11px;margin-top:1px}
.pet-summary {display:flex;gap:6px;justify-content:space-between;color:#687753;font-size:12px}
.egg-care button {font-size:11px;padding-inline:5px}
.sale-banner {min-height:44px;display:flex;align-items:flex-end;padding:5px;border-radius:6px;background:#f9efd8 url("https://www.dejai.site/xiaoyu-pond/20261119-immersive-v20/assets/home/sale-counter.webp") center/cover no-repeat}
.sale-banner p {padding:2px 4px;border-radius:5px;background:#fff5ded0}
.sale-stepper {display:grid;align-items:end;grid-template-columns:35px minmax(0,1fr) 35px auto;gap:5px}
.sale-stepper label {font-size:11px}
.sale-stepper input {text-align:center;min-width:0;min-height:36px;padding:5px 4px;-moz-appearance:textfield}
.sale-stepper input::-webkit-inner-spin-button {appearance:none}
.bubble-body .sale-preview {margin:0;padding:6px 9px;font-size:12px}
.game-tip {top:calc(var(--game-header-height,50px) + 8px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(310px,calc(100dvw - 24px));padding:5px 10px;border:1px solid #e9ddb282;border-radius:7px;background:#244e47c4;color:#fff7df;box-shadow:0 3px 11px #183b3644;backdrop-filter:blur(6px);font-size:12px;line-height:1.35;font-weight:650;text-align:center;pointer-events:none;animation:tip-reveal .18s ease-out both}
.game-tip[data-kind='error'] {background:#744338d6}
@keyframes tip-reveal {from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}

#shopPage,#gardenPage {position:relative;isolation:isolate;overflow:hidden;background:#d8daba}
#gardenBack {left:max(12px,env(safe-area-inset-left));z-index:4}
.garden-actions {right:max(12px,env(safe-area-inset-right));z-index:4;display:flex;gap:6px;padding:0}
.garden-actions .scene-label {min-height:38px}
.market-scene,.market-art,.market-stalls,.garden-scene {position:absolute;inset:0;width:100%;height:100%}
.market-art {object-fit:fill;pointer-events:none}
.market-stall {width:43%;height:26%}
.market-stall .scene-label,.market-commission .scene-label {font-size:13px;padding:4px 9px}
.market-stall[data-stall='eggs'] {left:24%;top:32.3%}
.market-stall[data-stall='seeds'] {left:76%;top:32.3%}
.market-stall[data-stall='decorations'] {left:25%;top:60.2%}
.market-stall[data-stall='tackle'] {left:76%;top:60%}
.market-commission {left:50%;top:81.5%;width:28%;height:15%}
.market-rack {position:absolute;inset:19% 5% 3%;max-width:680px;margin-inline:auto;display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid #bc9768;border-bottom:6px solid #a77b52;border-radius:15px;background:#fbf2dfeb;box-shadow:0 13px 40px #3e331966,inset 0 0 0 3px #fff7db;backdrop-filter:blur(6px);overflow:hidden}
.market-rack-top {display:flex;gap:13px;align-items:center;padding:9px 13px;border-bottom:1px solid #d9c7a4;background:linear-gradient(130deg,#e6e9ce,#eadabd)}
.market-rack-top h3 {margin:0;color:#3d5d46;font:700 21px var(--serif)}
.market-shelf {min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px}
.market-stage-button {position:relative;display:block;width:100%;padding:0;border:1px solid transparent;border-radius:9px;background:none}
.market-stage-button[aria-pressed='true'] {border-color:#839d71;background:#e3ead4}
.market-stage-button>img {display:block;width:100%;aspect-ratio:1;object-fit:contain}
.market-stage-button>.pet-frames {position:absolute;inset:0;pointer-events:none;background-size:300% 300%;background-repeat:no-repeat}
.market-stage-button:has(.pet-frames:not([hidden]))>img {opacity:0}
.market-motion-actions {margin-top:7px}
.market-motion-actions button {min-height:40px;padding:5px 7px;font-size:11px}
.recipe-info button {min-height:44px;font-size:13px}
.ingredient-back {min-height:46px;min-width:110px}
#gardenPage .garden-map {width:100%;height:100%;aspect-ratio:auto;border-radius:0}
#gardenPage .garden-backdrop {object-fit:fill}
#gardenPage .garden-plots {inset:18.6% 7.5% 19.6%;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));column-gap:6.4%;row-gap:2.5%}
#gardenPage .garden-plot {background:none;border:0;padding:1px 2px 16px;overflow:visible}
#gardenPage .garden-plot.plot-locked {background:#49382840;border-radius:9px}
#gardenPage .garden-plot[aria-expanded='true'] {outline:2px solid #f6efd5;outline-offset:-2px;box-shadow:inset 0 0 24px #f5e0ae7f}
#gardenPage .plot-label {left:50%;right:auto;bottom:3%;width:max-content;max-width:100%;min-height:20px;padding:2px 6px;transform:translateX(-50%);font-size:11px}
#gardenPage .plot-plant {height:100%;max-width:min(100%,115px)}
#gardenPage .plot-plant[data-stage='0'] {width:33%;height:41%;max-width:48px}
.yard-pet>.pet-frames {position:absolute;inset:0;pointer-events:none;background-size:300% 300%;background-repeat:no-repeat;scale:var(--face,1) 1;filter:drop-shadow(1px 4px 2px #624b4466)}
.pet-nest>.pet-frames {position:absolute;bottom:23px;left:50%;transform:translateX(-50%);width:42px;height:42px;padding:0;background-size:300% 300%;background-color:transparent;pointer-events:none}
.yard-pet:has(.pet-frames:not([hidden]))>img,.pet-nest:has(.pet-frames:not([hidden]))>img {opacity:0}
.yard-renderer {position:absolute;z-index:1;inset:0;pointer-events:none}
.yard-renderer canvas {width:100%!important;height:100%!important;pointer-events:none}
.yard-pet.engine-actor {transition:none}
.yard-pet.phaser-art :is(img,.pet-frames) {opacity:0}
@media(max-height:440px) and (orientation:landscape) {
    .market-rack {inset:6% 4%}
    .market-rack-top {padding:4px 9px}
    .market-rack-top h3 {font-size:17px}
}

/* 连续点按保持原比例，页内滚动和双指缩放由浏览器处理。 */
html,body,button,a,input {touch-action:manipulation}
.game-header {padding:6px max(10px,env(safe-area-inset-right)) 6px max(13px,env(safe-area-inset-left));padding-top:calc(6px + env(safe-area-inset-top));gap:8px}
.game-header .header-stats {align-items:center;gap:clamp(6px,2vw,13px);min-width:0}
.game-header .header-stats>span {display:flex;align-items:center;gap:4px;padding:0;border:0}
.game-header .header-stats strong {margin:0;font-size:clamp(15px,4.5vw,21px);line-height:1.2}
.game-header .stat-icon {display:block;width:16px;height:16px;flex:none;position:relative}
.profile-trigger {position:relative;display:grid;place-items:center;flex:none;width:40px;height:38px;padding:2px;border:0;border-left:1px solid #bbaa8b68;border-radius:8px;background:transparent}
.profile-trigger > .social-avatar-frame {width:31px;height:31px}
.profile-trigger:focus-visible {outline:2px solid var(--ui-jade);outline-offset:1px}

.room-scene {position:relative;isolation:isolate;overflow:hidden;background-color:#d2c29c}
.room-art {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 26%;pointer-events:none}
.room-back {left:max(12px,env(safe-area-inset-left))}
.room-surface {position:absolute;inset:clamp(85px,31%,247px) 0 0;display:flex;flex-direction:column;min-height:0;margin:0;border:0;border-radius:0;background:linear-gradient(#f6eed0bc,#f8f1e1e5);box-shadow:0 -6px 24px #3e331920}
.scene-scroll {min-height:0;overflow:auto;overscroll-behavior:contain}
:is(#warehouseTabs,.social-gift-tabs) {background:#f9f3e4aa;border-bottom:1px solid #d9cfb4a9}
#warehouseBody {flex:1;padding:10px clamp(10px,4vw,23px);scrollbar-gutter:stable}
#kitchenContent.room-surface {display:block;padding:12px clamp(10px,4vw,23px);scrollbar-gutter:stable}
#kitchenContent .cooking-stage,#warehouseBody .eating-stage {min-height:0;padding:7px 0}
#kitchenContent .cooking-art,#warehouseBody .eating-art {width:min(36dvh,220px);max-width:64%}
#kitchenContent .finished-dish {width:min(34dvh,200px);max-width:62%}
#kitchenContent .cooking-stage h3,#warehouseBody .eating-stage h3 {font-size:19px;margin:9px 0 2px}
#kitchenContent .cooking-track,#warehouseBody .cooking-track {margin:8px auto 5px}
.market-scene .market-rack {display:flex;max-width:none;inset:clamp(85px,31%,247px) 0 0;margin:0;border:0;border-radius:0;background:linear-gradient(#f6eed0bc,#f8f1e1e5)}
.market-shelf {flex:1;padding:10px clamp(10px,4vw,23px)}
@media(min-width:701px) {
    .room-surface :is(.item-grid,.recipe-grid,.kitchen-fishes),.market-shelf .item-grid {max-width:880px;margin-inline:auto}
}
@media(max-height:460px) and (orientation:landscape){
    .room-surface,.market-scene .market-rack {inset:59px 0 0}
}

#decoratePage {position:relative;isolation:isolate;overflow:hidden;background:#e6dfbd}
.decorate-layout,.decorate-layout .home-hero {position:absolute;inset:0;width:100%;height:100%;border-radius:0}
.decorate-layout .home-hero > img:first-child {width:100%;height:100%;object-fit:fill}
.decorate-layout .pet-decor-map > img:first-child {object-fit:cover}
.pet-decor-plane {
    inset:50% auto auto 50%;
    width:max(100%,66.6667dvh);
    height:max(100%,150dvw);
    translate:-50% -50%;
}
#petYard .pet-decor-plane {z-index:2}
#petYard .pet-decor-plane .decoration-piece {pointer-events:none}
.decoration-sprite > img {width:100%;height:100%;object-fit:contain}
.decoration-shelf-toggle {right:max(12px,env(safe-area-inset-right));width:auto}
.decoration-tray {position:absolute;top:57px;right:max(12px,env(safe-area-inset-right));display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:4px;width:max-content;max-width:calc(100% - 24px);padding:5px;border:1px solid var(--ui-edge);border-radius:9px;background:var(--ui-glass);backdrop-filter:blur(5px);box-shadow:var(--ui-lift)}
.decoration-tray.decoration-shelf:has(.decoration-inventory) {width:min(316px,calc(100vw - 28px))}
.decoration-tray .decoration-pick {min-height:60px}
.decoration-editor {width:min(94%,238px);padding:7px 8px}
.decoration-sliders {width:100%;display:grid;gap:4px}
.decoration-slider {display:grid;grid-template-columns:2em minmax(0,1fr) 3em;align-items:center;gap:6px;min-height:27px;color:var(--ink);font:650 12px var(--ui-font);font-variant-numeric:tabular-nums lining-nums}
.decoration-slider input {width:100%;margin:0;min-height:24px;accent-color:#6c7d56;touch-action:pan-x}
.decoration-slider span:last-child {text-align:right}
.decoration-yaw-control {grid-template-columns:2em 26px minmax(0,1fr) 26px 3em;gap:4px}
.decoration-turn {height:32px;padding:0;border:1px solid var(--ui-edge);border-radius:6px;background:var(--ui-soft);color:var(--ink);font:700 15px var(--ui-font);touch-action:manipulation}
.decoration-actions {display:flex;gap:5px;justify-content:center}
.decoration-actions .scene-label {min-height:32px;padding-inline:8px;font-family:var(--ui-font);font-variant-numeric:lining-nums}
.decoration-actions .decorate-confirm {background:var(--ui-action);border-color:var(--ui-action-edge)}
.decoration-hint {margin:0 3px 2px;color:#3b5846;font-size:11px;line-height:1.35}
@media (orientation:landscape) and (max-height:500px){.decoration-tray {top:12px;right:78px;max-width:calc(100% - 170px)}}

/* 浅纸承载界面，青与赭用于区分操作和状态。 */
:root {
    --ink:#253b31;
    --muted:#4d5b4f;
    --paper:#f8f2e5;
    --line:#d9cdb4;
    --ui-jade:#426858;
    --ui-glass:#fff8e9eb;
    --ui-edge:#b9a581;
    --ui-soft:#fffaf0ae;
    --ui-action:#e5ede0df;
    --ui-action-hover:#d9e6d7f0;
    --ui-action-edge:#8da08a;
    --ui-accent:#72502d;
    --ui-focus:#8c6029;
    --ui-warm:#faecd1ee;
    --ui-alert:#f9eae1f2;
    --ui-alert-ink:#713a31;
    --ui-alert-edge:#bd9587;
    --ui-lift:0 2px 6px #392d161f;
    --ui-shadow:0 6px 18px #33271b2b;
}
.game-header {
    background:#fcf6ebe9;
    border-bottom-color:var(--line);
    min-height:52px;
}
.scene-name {
    flex:1;
    min-width:0;
    margin:0;
    color:var(--ink);
    font:650 clamp(18px,5vw,24px)/1.2 var(--serif);
    letter-spacing:.055em;
}
.game-header .header-stats {flex:none;gap:clamp(6px,2vw,12px)}
.game-header .header-stats>span {
    gap:3px;
    padding:2px 6px 2px 4px;
    border:1px solid var(--line);
    border-radius:7px;
    background:var(--ui-soft);
}
.game-header .header-stats strong {color:var(--ink);font:650 clamp(13px,4vw,17px)/1.2 var(--ui-font);font-variant-numeric:lining-nums tabular-nums}
.game-header .gold-stat strong {color:var(--ui-accent)}
.game-header .stat-icon {width:24px;height:24px;background:center/contain no-repeat}
.game-header .stamina-icon {background-image:url("https://www.dejai.site/xiaoyu-pond/objects/763324cde5addbdec37d6fb131f939766f52cbfe1cc72078fbca4abcbbef15ca/assets/ui/stamina.webp")}
.game-header .coin-icon {background-image:url("https://www.dejai.site/xiaoyu-pond/objects/62187eb9693b8f498d1899d45e413c31b60b921dfc43beca4b32d34efdf81066/assets/ui/coin.webp")}
.yard-toolbar {min-height:38px}
.pond-top {top:12px;left:12px}
#gardenPage .plot-label,.nest-label.scene-label {
    background:var(--ui-glass);
    color:var(--ink);
    border-color:var(--ui-edge);
    border-radius:5px;
    font-weight:700;
    font-size:12px;
    padding:3px 8px;
    line-height:1.2;
}
#gardenPage .plot-label[data-ripe='true'],#gardenPage .plot-locked .plot-label {background:var(--ui-warm);color:var(--ui-accent)}
#gardenPage .plot-locked .plot-label {font-variant-numeric:lining-nums}

.game-dock {background:var(--paper);border-top-color:var(--line)}
.game-dock button {
    color:var(--ink);
    background:var(--paper);
    font-weight:650;
    font-size:12px;
    letter-spacing:.035em;
}
.game-dock button[aria-current='page'] {background:var(--ui-action);box-shadow:inset 0 2px var(--ui-action-edge)}
:is(button,input):focus-visible {outline:2px solid var(--ui-focus);outline-offset:2px}
:is(.primary,.recipe-info button,.market-buy) {
    background:var(--ui-action);
    border:1px solid var(--ui-action-edge);
    border-radius:8px;
    color:var(--ink);
    font-size:13px;
    font-weight:650;
    box-shadow:none;
}
:is(.primary,.recipe-info button,.market-buy):hover:not(:disabled) {
    background:var(--ui-action-hover);
}
.secondary,.bubble-item {
    background:var(--ui-soft);
    color:var(--ink);
    border-color:var(--ui-edge);
    font-weight:650;
}
.secondary:hover:not(:disabled),.bubble-item:hover:not(:disabled) {background:var(--ui-action)}
.life-tabs button {background:transparent;color:var(--ink);border-color:transparent;transition:transform .15s}
.life-tabs button[aria-pressed='true'] {background:var(--ui-action);border-color:var(--ui-action-edge);color:var(--ink)}
.room-surface,.market-scene .market-rack {
    background:linear-gradient(180deg,#faf2e2e3,#faf4e8f0);
    border-top:1px solid var(--ui-edge);
    box-shadow:0 -3px 11px #45382116;
}
:is(#warehouseTabs,.social-gift-tabs) {background:#fff8eb95;border-color:var(--line)}
.fishchip,.recipe-card,.market-rack .home-shop-card,.empty-state {
    background:var(--ui-soft);
    border-color:var(--line);
    color:var(--ink);
}
.fishchip-label strong,.recipe-info h3,.market-rack .home-shop-card h3 {color:var(--ink);font-weight:700}
.fishchip-label small,.home-shop-card p,.life-body .life-note,.bubble-body .life-note,.kitchen-choose {color:var(--muted)}
.fishchip .fishchip-energy,.recipe-info small {color:var(--ui-accent)}
.fishchip-label small {font-size:11px;line-height:1.25}
.item-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}
@media(min-width:590px){.item-grid {grid-template-columns:repeat(auto-fill,minmax(154px,1fr))}}
.item-card {
    --item-art-size:clamp(34px,10vw,50px);
    display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:5px;min-width:0;
    padding:7px;border:1px solid var(--line);border-radius:10px;background:var(--ui-soft);color:var(--ink);
    box-shadow:0 1px 3px #51412c0e;text-align:left;
}
button.item-card:hover {background:var(--ui-action);border-color:var(--ui-action-edge)}
.item-card-face {display:grid;grid-template-columns:var(--item-art-size) minmax(0,1fr);align-items:center;gap:6px;min-height:46px}
.item-card .item-card-art {display:block;width:var(--item-art-size);height:var(--item-art-size);object-fit:contain;border-radius:6px}
.item-card-art[data-thumbnail] {visibility:hidden}
.item-card .item-card-copy {display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.item-card-title {display:flex;align-items:baseline;justify-content:space-between;gap:2px 4px;flex-wrap:wrap}
.item-card .item-card-title :is(h3,strong) {margin:0;color:var(--ink);font:700 13px/1.25 var(--ui-font)}
.item-card .fishchip-count {margin:0;padding:0;color:#634724;font-size:11px;font-weight:700}
.item-card .fishchip-energy {color:var(--ui-accent);font-weight:650}
.item-card > .item-card-action {margin-top:auto;width:100%;min-height:36px;padding:4px 5px;font-size:12px;line-height:1.25}
.market-card-footer {display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:auto;padding-top:3px;border-top:1px solid var(--line)}
.market-price {display:inline-flex;align-items:center;gap:3px;color:var(--ui-accent);font-weight:700;font-variant-numeric:lining-nums tabular-nums}
.market-price::before {content:'';width:15px;height:15px;flex:none;background:url("https://www.dejai.site/xiaoyu-pond/objects/62187eb9693b8f498d1899d45e413c31b60b921dfc43beca4b32d34efdf81066/assets/ui/coin.webp") center/contain no-repeat}
.market-buy {min-height:35px;min-width:48px;padding:3px 7px;font-size:12px;background:#edf1e3ae}
.market-buy:disabled {opacity:1;color:#6c6956;background:#f3efe4a1;border-color:var(--line)}
.item-card .pet-preview {margin:0;padding:3px 0 0}
.item-card .pet-preview summary {padding:4px 2px;font-size:11px}
.item-grid > .home-shop-card:has(.pet-preview[open]) {grid-column:1/-1}
.item-grid .eating-stage {grid-column:1/-1}
.empty-state,.bubble-body .life-note,.market-rack .home-shop-card p {line-height:1.5}
.market-scene .market-rack:has(.tackle-grid) {
    inset:auto 12px max(12px,7%);max-width:530px;max-height:calc(100% - 62px);margin-inline:auto;
    border:1px solid var(--ui-edge);border-radius:12px;background:var(--ui-glass);box-shadow:var(--ui-lift);
}
.market-rack:has(.tackle-grid) .market-shelf {width:100%;padding:7px}
.tackle-grid > .home-shop-card:last-child:nth-child(odd) {grid-column:1/-1}
.tackle-grid .item-card-face {grid-template-columns:37px minmax(0,1fr);min-height:68px}
.tackle-grid .item-card-art {height:65px;width:36px;max-height:none;transform:rotate(18deg)}
.tackle-grid .item-card-copy small {white-space:normal}
.method-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:460px;margin-inline:auto}
#kitchenContent .method-card {display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;align-content:start;gap:4px;padding:6px 4px;border-radius:9px}
#kitchenContent .method-card img {width:min(64px,100%);height:auto;min-height:0;aspect-ratio:1;object-fit:contain;background:none}
.method-card h3 {margin:0;color:var(--ink);font:700 13px var(--ui-font)}
.method-card button {width:100%;min-height:36px;padding:4px 2px;white-space:nowrap}
.eating-art[data-method='steamed'] {background-image:url("https://www.dejai.site/xiaoyu-pond/objects/e3f1fabad198972b4e8f8ecf73e6906b76581c89dcf7d545a2b9ef249cf4c6e2/assets/eating-v4/steamed.webp")}
.eating-art[data-method='braised'] {background-image:url("https://www.dejai.site/xiaoyu-pond/objects/1618d73af60384c6cef1b5bb827e2fae0de867773d8faf115d0cf039f23f41e5/assets/eating-v4/braised.webp")}
.eating-art[data-method='fried'] {background-image:url("https://www.dejai.site/xiaoyu-pond/objects/79b40450cf523c83c4b5746dbafe3e44ebdc7579e12a7778a1fcd16de45d0484/assets/eating-v4/fried.webp")}
.gear-group {display:grid;gap:4px}
.gear-group h4 {margin:0 0 1px;font:650 11px var(--ui-font);color:var(--muted)}
.gear-group + .gear-group {margin-top:8px}
.gear-option {display:grid;grid-template-columns:29px minmax(0,1fr) auto;width:100%;padding-inline:5px 8px}
.gear-option-name {font-weight:650}
.gear-option[aria-pressed='true'] {background:var(--ui-action);border-color:var(--ui-focus)}
.gear-preview {display:grid;place-items:center;width:29px;height:33px}
.gear-preview img {width:23px;height:31px;transform:rotate(19deg)}
.gear-float-marks {display:flex;flex-direction:column;overflow:hidden;width:3px;height:24px;border-radius:2px;box-shadow:0 0 0 1px #4b5545}
.gear-float-marks i {flex-basis:0;border-bottom:1px solid #26362d}

.scene-bubble {
    --bubble-paper:var(--ui-glass);
    border-color:var(--ui-edge);
    box-shadow:var(--ui-shadow);
}
.scene-bubble::before {border-color:var(--ui-edge)}
.bubble-heading {margin-inline:8px;padding-inline:3px 0;border-bottom-color:var(--line)}
.bubble-heading h3,.bubble-close {color:var(--ink)}
.bubble-heading h3 {font-size:14px;overflow-wrap:anywhere}
.bubble-body {gap:7px;font-size:13px}
.scene-bubble:is(.bubble-has-footer,.bubble-has-tools):not([hidden]) {
    display:flex;flex-direction:column;max-height:min(320px,var(--bubble-space,calc(100dvh - 18px)));
}
.scene-bubble .bubble-heading,.bubble-tools,.bubble-footer {flex:none}
.scene-bubble:is(.bubble-has-footer,.bubble-has-tools) .bubble-body {flex:0 1 auto;min-height:0;max-height:none;align-content:start}
.bubble-tools {padding:6px 8px 0}
.bubble-footer {display:grid;gap:4px;margin-inline:8px;padding:6px 0 8px;border-top:1px solid var(--line)}
.bubble-body :is(.primary,.secondary) {min-height:38px}
.sale-banner {border:1px solid var(--line)}
.sale-banner p,.bubble-body .sale-preview,.life-timer {background:var(--ui-warm);color:var(--ui-accent);border-color:var(--line)}
.sale-stepper input,.home-field :is(select,input) {background:var(--ui-soft);color:var(--ink);border-color:var(--ui-edge)}
dialog {background:var(--ui-glass);border:1px solid var(--ui-edge);color:var(--ink);border-radius:15px;box-shadow:var(--ui-shadow)}
dialog::backdrop {background:#382e2450;backdrop-filter:blur(3px)}
.small-dialog .dialog-heading {padding-bottom:9px;border-bottom:1px solid var(--line)}
.dialog-heading h2 {color:var(--ink)}
.pond-dialog-heading {background:var(--ui-soft);border-bottom-color:var(--line)}
dialog :is(.help-list,#saveStatus,#importDetails) {color:var(--muted)}
.pond-choice {background:var(--ui-soft);border-color:var(--line);box-shadow:none}
.pond-choice[aria-current=true],.pond-choice:not(:disabled):hover {background:var(--ui-action);border-color:var(--ui-action-edge)}
.pond-choice-current {background:var(--ui-action);border-color:var(--ui-action-edge);color:var(--ink)}
.center {background:#1c392c28;backdrop-filter:blur(2px)}
.pond-intro-card {
    display:grid;justify-items:center;gap:10px;width:min(290px,100%);padding:clamp(14px,4vw,22px);
    border:1px solid var(--ui-edge);border-radius:13px;background:var(--ui-glass);box-shadow:var(--ui-shadow);color:var(--ink);
}
.pond-intro-card h2 {margin:0;font:650 clamp(23px,6vw,32px)/1.2 var(--serif)}
.pond-intro-card p {margin:0;color:var(--muted);max-width:24em;line-height:1.55}
.pond-intro-card small {margin:0;color:var(--ui-accent)}
.pond-intro-card small:empty {display:none}
#start {min-height:42px}
.message,.game-tip {
    --notice-dot:#6d876b;
    display:flex;align-items:center;justify-content:center;gap:6px;
    background:var(--ui-glass);color:var(--ink);border:1px solid var(--ui-edge);
    border-radius:8px;box-shadow:var(--ui-lift);
    font-weight:650;
}
.message::before,.game-tip::before {content:'';width:5px;height:5px;flex:none;border-radius:50%;background:var(--notice-dot)}
.message:is([data-kind='bite'],[data-kind='large']) {--notice-dot:#a87738;background:var(--ui-warm);color:var(--ui-accent)}
.message[data-kind='hit'] {background:var(--ui-action);color:var(--ink)}
.message:is([data-kind='escape'],[data-kind='miss']),.game-tip[data-kind='error'] {
    --notice-dot:#a96753;background:var(--ui-alert);color:var(--ui-alert-ink);border-color:var(--ui-alert-edge);
}
@media (max-width:340px) {
    .game-header {gap:5px}
    .game-header .header-stats>span {padding-inline:3px}
    .game-header .stat-icon {width:21px;height:21px}
}

/* 宠物手册与学堂沿用家园的宣纸和墨绿。 */
.pet-meters {display:grid;gap:5px;padding:6px 7px;background:var(--ui-soft);border:1px solid var(--line);border-radius:7px}
.pet-stage-heading {font:700 13px var(--serif);color:var(--ui-accent)}
.pet-meter {display:grid;grid-template-columns:1fr auto;gap:3px 8px;align-items:center;color:var(--ink);font-size:12px}
.pet-meter strong {font-size:11px;font-variant-numeric:lining-nums tabular-nums}
.pet-meter progress,.school-progress progress {
    --meter-fill:#42765a;
    grid-column:1/-1;display:block;width:100%;height:8px;appearance:none;
    overflow:hidden;border:0;border-radius:999px;background:#e9dec6;
}
.pet-meter[data-meter='bond'] progress {--meter-fill:#956747}
.pet-meter[data-meter='satiety'] progress {--meter-fill:#8d712f}
.pet-meter progress::-webkit-progress-bar,.school-progress progress::-webkit-progress-bar {background:#e9dec6}
.pet-meter progress::-webkit-progress-value,.school-progress progress::-webkit-progress-value {border-radius:999px;background:var(--meter-fill)}
.pet-meter progress::-moz-progress-bar,.school-progress progress::-moz-progress-bar {border-radius:999px;background:var(--meter-fill)}
.scene-bubble:has(.pet-meters) {max-height:min(410px,calc(100dvh - 18px))}
.scene-bubble:has(.pet-meters) .bubble-body {max-height:min(365px,calc(100dvh - 66px))}
.pet-stage-note {color:#455c4c;line-height:1.35;font-size:11px}
.pet-care-help {padding:4px 6px;border-top:1px solid var(--line);font-size:12px;color:var(--ink)}
.pet-care-help summary {cursor:pointer;font-weight:650}
.pet-care-help p {margin-top:5px!important}
.pet-name-form {display:grid;gap:9px}
.pet-primary-actions button {flex:1 1 0;min-width:0}
#outingLogOpen {right:calc(max(12px,env(safe-area-inset-right)) + 58px)}
#outingLogOpen.has-outing::after {content:'';width:5px;height:5px;border-radius:50%;background:var(--ui-jade)}
.expedition-destinations {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.expedition-destinations button {display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:4px}
.expedition-destinations img {display:block;width:38px;height:30px;object-fit:cover;border-radius:5px}
.expedition-reward {margin:0;padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:var(--ui-warm);color:var(--ui-accent);font-size:12px;font-weight:650}
.outing-log-row,.outing-gift {display:flex;align-items:center;gap:6px;padding:4px 5px;border-bottom:1px solid var(--line);font-size:12px}
:is(.outing-log-row,.outing-gift) :is(img,.fish-icon) {width:32px;height:32px;object-fit:contain;flex:none;border-radius:5px}
.outing-countdown {margin-left:auto;white-space:nowrap;color:var(--ui-accent);font-variant-numeric:tabular-nums}
.daily-dot {
    display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#af473b;box-shadow:0 0 0 2px #fff4df;
}
.daily-dot[hidden] {display:none}
#shopOpen {position:relative}
.daily-dock-dot {position:absolute;z-index:1;top:4px;left:calc(50% + 11px);width:8px;height:8px}
.daily-tasks-dialog {
    --popup-paper:#fff7e5d9;
    --popup-blur:blur(12px);
    width:min(460px,calc(100% - 22px));height:min(680px,calc(100dvh - 28px));padding:0;
    overflow:hidden;border:1px solid var(--ui-edge);border-radius:18px;background:var(--ui-glass);
    backdrop-filter:blur(12px);box-shadow:var(--ui-shadow);font-family:var(--ui-font);
}
.daily-tasks-dialog::backdrop {background:#382e2446;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.daily-tasks-dialog[open] {display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}
.daily-tasks-dialog .daily-tasks-heading {
    margin:0;padding:11px 14px;align-items:center;background:#f9f1df8c;border-bottom:1px solid var(--line);
}
.daily-tasks-heading h2 {margin:0 0 3px;font-size:clamp(20px,5.5vw,26px)}
.daily-tasks-heading h2:focus {outline:none}
.daily-tasks-heading p {color:var(--muted)}
.daily-tasks-progress {
    display:flex;align-items:center;gap:9px;padding:9px 13px;color:var(--ui-accent);font-size:12px;
}
.daily-tasks-progress progress {
    flex:1;min-width:0;height:8px;appearance:none;border:0;border-radius:5px;background:#dfd2b8;
    overflow:hidden;accent-color:var(--ui-jade);
}
.daily-tasks-progress progress::-webkit-progress-bar {background:#dfd2b8}
.daily-tasks-progress progress::-webkit-progress-value {background:#749883;border-radius:5px}
.daily-tasks-progress progress::-moz-progress-bar {background:#749883;border-radius:5px}
.daily-tasks-progress strong {font-variant-numeric:tabular-nums;white-space:nowrap}
.daily-tasks-list {
    display:grid;align-content:start;gap:7px;padding:1px 12px 9px;overflow:auto;overscroll-behavior:contain;
    scrollbar-color:#b5ab90 transparent;scrollbar-width:thin;
}
.daily-tasks-dialog .daily-task {
    display:grid;gap:4px;width:100%;min-width:0;padding:6px 9px;
    text-align:left;color:var(--ink);background:#fffbef9e;border:1px solid var(--line);border-radius:10px;
}
.daily-tasks-dialog .daily-task[aria-pressed='true'] {background:#e1e8d9df;border-color:#819a7d}
.daily-task-heading {display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:13px}
.daily-complete {color:#405d48;font-size:11px}
.daily-task.is-complete:not([aria-pressed='true']) {background:#f5f2e68f}
.daily-task-items {display:flex;flex-wrap:wrap;gap:3px 9px}
.daily-task-item {
    display:flex;align-items:center;gap:5px;min-width:0;color:#46564d;font-size:12px;line-height:1.2;
}
.daily-task-item :is(img,.fish-icon) {width:29px;height:26px;object-fit:contain;flex:none}
.daily-task-item .game-action-sprite {--game-icon-size:24px}
.daily-task-item small {font-weight:600;color:#735a3a;font-variant-numeric:tabular-nums}
.daily-tasks-footer {
    display:flex;align-items:center;justify-content:space-between;gap:9px;padding:8px 13px;
    background:#f8efdbcf;border-top:1px solid var(--line);
}
.daily-tasks-footer strong {font-size:14px}
.daily-tasks-footer p {margin:2px 0 0;color:#735a3a;font-size:12px;font-variant-numeric:tabular-nums}
.daily-tasks-footer button {min-width:90px;min-height:40px}
.outing-log-row .outing-countdown {flex:none}
.outing-report-summary {display:grid;justify-items:center;gap:4px;text-align:center}
.outing-report-summary img {width:90px;height:80px;object-fit:contain;filter:drop-shadow(0 3px 3px #49372438)}
.outing-report-summary small {color:var(--muted)}
.outing-visitors {position:absolute;inset:0;z-index:4;pointer-events:none}
.visiting-pet {position:absolute;transform:translate(-50%,-90%);width:clamp(52px,15vw,84px);height:clamp(52px,15vw,84px);border:0;padding:0;background:transparent;pointer-events:auto;animation:outing-walk 7s ease-in-out infinite alternate}
.visiting-pet:active:not(:disabled) {transform:translate(-50%,-90%)}
.visiting-pet[aria-expanded='true'],.visiting-pet:focus-visible {animation-play-state:paused}
.visiting-pet img {width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #49302066);pointer-events:none}
.outing-frames {position:absolute;inset:0;background-size:300% 300%;pointer-events:none}
.visiting-pet:has(.outing-frames:not([hidden])) img {opacity:0}
@keyframes outing-walk {0%,14% {translate:-5px 0}55% {translate:4px -2px}86%,100% {translate:10px 0}}
@media(prefers-reduced-motion:reduce){.visiting-pet {animation:none}}
#schoolPage .room-art {object-position:center 46%}
#schoolContent.room-surface {
    display:block;inset:clamp(62px,15%,132px) 0 0;padding:10px clamp(12px,4vw,28px) 20px;
    background:transparent;border:0;box-shadow:none;
}
.school-sheet {
    max-width:560px;display:grid;gap:9px;margin:0 auto;color:var(--ink);
    border:1px solid var(--ui-edge);border-radius:13px;padding:clamp(12px,3vw,19px);
    background:var(--ui-glass);box-shadow:var(--ui-shadow);backdrop-filter:blur(3px);
    font-family:var(--ui-font);font-variant-numeric:lining-nums;
}
.school-roster {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;max-height:min(36dvh,295px);overflow:auto;padding:2px;overscroll-behavior:contain}
.school-pet-card {
    width:100%;min-width:0;display:grid;justify-items:center;align-content:start;gap:3px;
    padding:5px;border:1px solid var(--line);border-radius:9px;
    background:var(--ui-soft);color:var(--ink);
}
.school-pet-card[aria-pressed=true] {background:var(--ui-action);border-color:var(--ui-action-edge);box-shadow:inset 0 0 0 1px var(--ui-action-edge)}
.school-pet-art {display:block;width:50px;height:42px;object-fit:contain;filter:drop-shadow(0 3px 2px #71543538)}
.school-pet-name {min-width:0;display:grid;gap:2px;color:var(--ink);line-height:1.3;overflow-wrap:anywhere}
.school-pet-name strong {font-size:14px}
.school-pet-name small {font-size:11px;color:#4e6653}
.school-student {display:flex;align-items:center;gap:7px;padding:2px 0 6px;border-bottom:1px solid var(--line)}
.school-student-art {display:block;width:34px;height:34px;object-fit:contain}
.school-student .school-pet-name {display:flex;flex-wrap:wrap;align-items:baseline;gap:6px}
.school-sheet :is(h3,p) {margin:0}
.school-sheet h3 {font-size:19px;font-weight:700}
.school-sheet :is(.primary,input.school-answer) {min-height:44px}
.school-sheet input.school-answer {color:var(--ink);background:var(--ui-soft);border:1px solid var(--ui-edge);border-radius:8px;padding:8px 10px;font-size:16px;width:100%}
.school-form,.school-question {display:grid;gap:8px;min-width:0;margin:0}
.school-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.school-actions button {min-height:44px;padding-inline:8px}
.school-question {padding:0;border:0}
.school-question legend {padding:0;margin-bottom:4px;color:#596950;font-size:12px}
.school-sheet .school-prompt {color:var(--ink);font-size:17px;font-weight:700;line-height:1.6;overflow-wrap:anywhere;white-space:pre-line}
.school-option {display:flex;align-items:center;gap:8px;padding:6px 9px;min-height:43px;border:1px solid var(--line);border-radius:7px;background:var(--ui-soft);cursor:pointer}
.school-option:has(input:checked) {background:var(--ui-action);border-color:var(--ui-action-edge)}
.school-option input {accent-color:var(--ui-jade);width:17px;height:17px;flex:none}
.school-progress {display:grid;grid-template-columns:1fr auto;gap:5px;color:#365b45;font-size:13px;font-weight:700}
.school-feedback {display:grid;gap:3px;padding:6px 8px;border-left:2px solid var(--ui-action-edge);background:var(--ui-action);color:var(--ink)}
.school-feedback.retry,.school-sheet .school-error {color:var(--ui-alert-ink);background:var(--ui-alert);border-color:var(--ui-alert-edge)}
.school-feedback small {line-height:1.4}
.school-sheet .school-error {padding:6px 8px;border-radius:5px}
.school-sheet .school-result {font-weight:700;font-size:18px;color:#295643}
@media(max-height:460px) and (orientation:landscape) {
    #schoolContent.room-surface {inset:58px 0 0}
}

.save-actions {flex-wrap:wrap;gap:8px}
.save-reset {margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.save-reset .secondary {min-height:44px}
.save-reset .secondary,#resetDialog .save-danger {background:var(--ui-alert);border-color:var(--ui-alert-edge);color:var(--ui-alert-ink)}
.save-reset .secondary:hover,#resetDialog .save-danger:hover {background:#f1dcd1ed}
#resetDialog .save-actions {justify-content:flex-end}
#resetDialog .save-actions button {min-height:44px}

.watering-effect {
    --water-start:180ms;
    --water-duration:940ms;
    position:absolute;z-index:2;left:50%;top:57%;width:0;height:0;
    pointer-events:none;font-size:clamp(11px,3.7vw,17px);
}
.watering-nozzle {position:absolute;left:-.7em;top:-2.23em;width:0;height:0}
.watering-can {
    position:absolute;right:0;top:0;width:4.9em;height:auto;max-width:none;
    transform-origin:100% 34%;filter:drop-shadow(0 2px 2px #55402358);
    animation:watering-tilt 1380ms ease both;
}
.watering-flow {
    position:absolute;left:0;top:0;width:0;height:0;opacity:0;
    animation:watering-flow var(--water-duration) linear var(--water-start) forwards;
}
.watering-drop {
    position:absolute;left:0;top:0;width:.13em;height:.54em;border-radius:999px;
    background:#e8fdff;box-shadow:0 0 0 .025em #428d91;opacity:0;
    animation:watering-drop 250ms linear calc(var(--water-start) + var(--drop-delay)) infinite;
}
@keyframes watering-tilt {
    0% {opacity:0;transform:translate(-.3em,-67%) rotate(-13deg)}
    13%,81% {opacity:1;transform:translateY(-34%) rotate(24deg)}
    100% {opacity:0;transform:translate(-.28em,-60%) rotate(0)}
}
@keyframes watering-flow {0%,84% {opacity:1}100% {opacity:0}}
@keyframes watering-drop {
    0% {opacity:.96;transform:translate(0,0) rotate(-17deg)}
    76% {opacity:.95}
    100% {opacity:0;transform:translate(var(--drop-x),var(--drop-y)) rotate(-25deg)}
}
@media(prefers-reduced-motion:reduce) {
    .watering-can {animation:none;transform:translateY(-34%) rotate(24deg)}
    .watering-flow {animation-duration:var(--water-duration)!important}
    .watering-drop {animation:none;opacity:.7;transform:translate(calc(var(--drop-x)*.58),calc(var(--drop-y)*.58)) rotate(-25deg)}
}


.pond-explore-layer,.pond-explore-light,.pond-explore-landmarks {
    position:absolute;
    inset:0;
    pointer-events:none;
}
.pond-explore-layer {z-index:2}
.pond-explore-layer [hidden],.pond-explore-layer[hidden] {display:none}
#pondExplore[aria-pressed="true"] {background:var(--ui-action);border-color:var(--ui-action-edge)}
.pond[data-exploring="true"] > #overlay {visibility:hidden}
.pond[data-exploring="true"] > #pond[data-phase="ready"] ~ #msg {visibility:hidden}
.pond-explore-light {transition:background-color .32s ease}
.pond-explore-layer[data-period="Morning"] .pond-explore-light {
    background:radial-gradient(ellipse 80% 30% at 24% 27%,#fff9de37,transparent 85%),
        linear-gradient(180deg,#fff9e624,transparent 62%);
    animation:pond-explore-show .5s ease both;
}
.pond-explore-layer[data-period="Evening"] .pond-explore-light {
    background:radial-gradient(ellipse 85% 39% at 75% 20%,#f9a88346,transparent 80%),
        linear-gradient(180deg,#4c3a6730,#24356630 68%,#233b5636);
    animation:pond-explore-show .5s ease both;
}
@keyframes pond-explore-show {from {opacity:0} to {opacity:1}}
.pond-explore-weather {
    pointer-events:auto;
    position:absolute;
    top:54px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:2px;
    padding:3px;
    border:1px solid #fff6da70;
    border-radius:18px;
    color:var(--ink);
    background:#f7f1dfb9;
    backdrop-filter:blur(6px);
    box-shadow:0 4px 13px #203a3a2a;
}
.pond-explore-weather button {
    border:1px solid transparent;
    border-radius:14px;
    padding:4px 11px;
    min-height:31px;
    background:transparent;
    color:inherit;
    white-space:nowrap;
    font-weight:650;
    font-size:11px;
}
.pond-explore-weather button[aria-pressed="true"] {
    background:#fff8e5;
    border-color:#d2bb8a9c;
    color:#654811;
}
.pond-explore-weather .pond-explore-repeat[hidden] {display:none}
.pond-explore-mark {
    --ripple:#ecfbc8;
    --spark:#fff4c7;
    pointer-events:auto;
    display:grid;
    place-items:center;
    position:absolute;
    width:76px;
    min-height:52px;
    padding:0;
    color:#244640;
    transform:translate(-50%,-50%);
    border:0;
    background:none;
    touch-action:manipulation;
}
.pond-explore-mark[data-color="stone"] {--ripple:#d3f7f4;--spark:#efffff}
.pond-explore-mark[data-color="star"] {--ripple:#f2d6ff;--spark:#fff0b1}
.pond-explore-mark[data-color="keepsake"] {--ripple:#ffd183;--spark:#ffedac}
.pond-explore-mark:active:not(:disabled) {transform:translate(-50%,-50%) scale(.96)}
.pond-explore-ripple {
    position:relative;
    width:36px;
    height:13px;
    display:block;
    border:1px solid color-mix(in srgb,var(--ripple) 78%,transparent);
    border-radius:50%;
    background:radial-gradient(ellipse,var(--spark) 0%,transparent 29%);
    box-shadow:0 0 12px color-mix(in srgb,var(--ripple) 38%,transparent);
}
.pond-explore-ripple::before,.pond-explore-ripple::after {
    content:'';
    position:absolute;
    inset:-1px;
    border:1px solid var(--ripple);
    border-radius:50%;
    animation:pond-explore-ring 3.8s ease-out infinite;
}
.pond-explore-ripple::after {animation-delay:-1.9s}
.pond-explore-mark[data-spot]:nth-child(2) .pond-explore-ripple::before {animation-delay:-.9s}
.pond-explore-mark[data-spot]:nth-child(2) .pond-explore-ripple::after {animation-delay:-2.8s}
.pond-explore-mark[data-keepsake] .pond-explore-ripple {
    width:20px;
    height:20px;
    border-color:#ffe49c;
    background:radial-gradient(circle,var(--spark) 0%,#e8b95a60 29%,transparent 62%);
}
.pond-explore-name {
    position:absolute;
    top:calc(50% + 12px);
    left:50%;
    transform:translateX(-50%);
    border:1px solid #e9d5a67d;
    border-radius:10px;
    padding:2px 7px;
    background:#fcf5e5c7;
    color:#254b3f;
    font-weight:650;
    font-size:10px;
    white-space:nowrap;
    opacity:0;
    transition:opacity .25s ease;
}
.pond-explore-mark[data-seen="true"] .pond-explore-name,
.pond-explore-mark[data-keepsake] .pond-explore-name,
.pond-explore-mark:focus-visible .pond-explore-name {opacity:1}
.pond-explore-mark[data-target="true"] .pond-explore-name {
    border-color:transparent;
    background:#e2ebcfe8;
    box-shadow:0 0 0 2px #e2ebcf38;
}
.pond-explore-mark[data-target="true"] .pond-explore-ripple {
    border-color:#f8db8d;
    box-shadow:0 0 10px #f8db8d88;
}
.pond-explore-mark[data-keepsake][data-seen="true"] .pond-explore-ripple {opacity:.65}
@keyframes pond-explore-ring {
    0% {transform:scale(.72);opacity:.78}
    89%,100% {transform:scale(2.04);opacity:0}
}
.pond-observation-text {margin:0;color:#3c5b4c;font-size:12px}
.pond-observation-fish {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
    font-size:11px;
    color:var(--ink);
}
.pond-observation-fish div,.pond-discovery-item {
    display:grid;
    justify-items:center;
    gap:1px;
    border-radius:7px;
    background:#f8f3e2ac;
    border:1px solid #e8d9bdc7;
    padding:2px 5px 5px;
}
.pond-observation-fish .fish-icon {width:48px;height:48px}
.pond-discovery-item img {width:61px;height:61px;object-fit:contain}
.pond-discovery-scene {
    display:block;
    width:100%;
    max-height:min(104px,21dvh);
    aspect-ratio:2 / 1;
    object-fit:cover;
    border:1px solid #d8c09d90;
    border-radius:7px;
    background:#e6e0cf;
}
@media (max-height:420px) {
    .pond-explore-weather {top:43px}
    .pond-explore-weather button {min-height:25px;padding-block:2px}
    .pond-explore-mark {min-height:42px}
}
@media (prefers-reduced-motion:reduce) {
    .pond-explore-light,.pond-explore-name,.pond-explore-ripple::before,.pond-explore-ripple::after {
        animation:none!important;
        transition:none;
    }
}


.restaurant-scene {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:#71664c;
    --tavern-cream:#fff6e4;
    --tavern-char:#3b3325;
    --tavern-gold:#d6b27a;
    --tavern-panel:#fff6e7e8;
}
#restaurantContent,.restaurant-art,.restaurant-light,.restaurant-seats {
    position:absolute;
    inset:0;
}
.restaurant-art {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 56%;
}
.restaurant-light {
    pointer-events:none;
    background:linear-gradient(180deg,#302c231c,transparent 17%,transparent 82%,#221a1338);
}
#restaurantBack,.restaurant-toolbar {
    position:absolute;
    z-index:2;
    top:12px;
}
#restaurantBack {left:12px}
.restaurant-toolbar {right:12px}
.restaurant-toolbar .scene-label,#restaurantBack,.restaurant-host {
    color:var(--tavern-char);
    background:var(--tavern-panel);
    border-color:var(--tavern-gold);
}
.restaurant-seats {
    pointer-events:none;
}
.restaurant-guest,.restaurant-tray {
    position:absolute;
    top:var(--seat-y);
    left:var(--seat-x);
    transform:translate(-50%,-100%);
}
.restaurant-guest[data-restaurant-seat='0'] {--seat-x:var(--seat-0-x,32%);--seat-y:var(--seat-0-y,59%)}
.restaurant-guest[data-restaurant-seat='1'] {--seat-x:var(--seat-1-x,73%);--seat-y:var(--seat-1-y,78%)}
.restaurant-guest {
    display:grid;
    justify-items:center;
    place-content:end center;
    gap:3px;
    pointer-events:auto;
    width:clamp(65px,24vw,126px);
    height:clamp(92px,24dvh,178px);
    padding:0;
    background:none;
    border:0;
    transform-origin:bottom center;
    -webkit-tap-highlight-color:transparent;
}
.restaurant-guest[hidden],.restaurant-tray[hidden] {display:none}
.restaurant-guest:active:not(:disabled) {transform:translate(-50%,-100%) scale(.975)}
.restaurant-villager {
    display:block;
    width:100%;
    height:100%;
    min-height:0;
    object-fit:contain;
    object-position:center bottom;
    filter:drop-shadow(0 4px 4px #331e1b40);
}
.restaurant-guest-name {
    position:absolute;
    bottom:-6px;
    padding:3px 7px;
    color:var(--tavern-char);
    background:#fff6e6ed;
    border:1px solid #b39060bd;
    border-radius:7px;
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
    box-shadow:0 2px 5px #23150943;
}
.restaurant-guest[data-status='eating'] .restaurant-guest-name {
    background:#eef0dedf;
    border-color:#849474b0;
}
.restaurant-arrival {animation:restaurant-arrive .58s ease-out both}
@keyframes restaurant-arrive {
    from {opacity:0;transform:translate(-60%,-90%) scale(.92)}
    to {opacity:1;transform:translate(-50%,-100%)}
}
.restaurant-guest[data-status='leaving'] {
    pointer-events:none;
    animation:restaurant-depart var(--restaurant-departure-time) ease-in both;
}
.restaurant-guest[data-status='leaving'] .restaurant-guest-name {visibility:hidden}
@keyframes restaurant-depart {
    from {opacity:1;transform:translate(-50%,-100%)}
    to {opacity:0;transform:translate(-25%,-84%) scale(.94)}
}
.restaurant-footer {
    position:absolute;
    display:grid;
    justify-items:center;
    gap:5px;
    inset:auto 12px max(14px,env(safe-area-inset-bottom)) 12px;
    pointer-events:none;
}
.restaurant-host {
    min-width:118px;
    min-height:40px;
    padding:6px 15px;
    pointer-events:auto;
}
.restaurant-total {
    padding:3px 9px;
    margin:0;
    color:var(--tavern-char);
    background:#fff6e9e9;
    border:1px solid #b69b73bc;
    border-radius:7px;
    font-size:12px;
    font-variant-numeric:tabular-nums;
}
.restaurant-order {
    display:grid;
    grid-template-columns:46px minmax(0,1fr) auto;
    align-items:center;
    gap:7px;
    padding:4px;
    border-bottom:1px solid var(--line);
}
.restaurant-order-copy {
    display:grid;
    gap:3px;
    min-width:0;
}
.restaurant-order-copy small,.restaurant-order-paid {color:var(--muted)}
.restaurant-order-paid {white-space:nowrap}
.restaurant-order button {white-space:nowrap}
.restaurant-dish {
    display:block;
    width:44px;
    height:44px;
    object-fit:contain;
    border-radius:6px;
}
.restaurant-quote,.restaurant-rank {
    color:var(--ink);
    font-family:var(--serif);
    font-weight:650;
    margin:0;
}
.restaurant-dismiss {justify-self:end}
.restaurant-tray {
    z-index:1;
    pointer-events:none;
    width:67px;
    height:58px;
    animation:restaurant-serve 1.3s ease-out both;
    filter:drop-shadow(0 4px 8px #30190a53);
}
.restaurant-tray[data-seat='0'] {--seat-x:var(--tray-0-x,28%);--seat-y:var(--tray-0-y,53%)}
.restaurant-tray[data-seat='1'] {--seat-x:var(--tray-1-x,72%);--seat-y:var(--tray-1-y,68%)}
.restaurant-tray img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:50%;
}
@keyframes restaurant-serve {
    0% {opacity:0;transform:translate(-50%,-59%) scale(.78)}
    20%,72% {opacity:1;transform:translate(-50%,-100%)}
    100% {opacity:0;transform:translate(-50%,-115%)}
}
@media (max-width:359px) {
    .restaurant-order {grid-template-columns:38px minmax(0,1fr) auto;gap:5px}
    .restaurant-dish {width:36px;height:36px}
    .restaurant-order button {font-size:11px}
}
@media (prefers-reduced-motion:reduce) {
    .restaurant-arrival,.restaurant-tray,.restaurant-guest[data-status='leaving'] {animation:none}
}
.restaurant-neighbors {position:absolute;z-index:3;top:calc(var(--game-header-height,52px) + 12px);right:12px}


.aquarium-page {
    position:relative;
    overflow:hidden;
    isolation:isolate;
    background:#668e7a;
}
.aquarium-content,
.aquarium-art,
.aquarium-water,
.aquarium-fish-canvas,
.aquarium-ripples,
.aquarium-fish-layer,
.aquarium-props {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}
.aquarium-art {
    object-fit:cover;
    object-position:center;
}
.aquarium-back,
.aquarium-toolbar {
    position:absolute;
    z-index:4;
    top:12px;
}
.aquarium-back {left:12px}
.aquarium-toolbar {right:12px;display:flex;gap:6px}
.aquarium-toolbar .scene-label,.aquarium-back {min-height:36px}
.aquarium-water {
    z-index:1;
    border:0;
    background:none;
    cursor:default;
}
.aquarium-water:active:not(:disabled),
.aquarium-fish:active:not(:disabled),
.aquarium-prop:active:not(:disabled) {translate:none}
.aquarium-water:active:not(:disabled) {transform:none}
.aquarium-water:focus-visible {outline-offset:-4px}
.aquarium-fish-canvas,.aquarium-ripples,.aquarium-fish-layer,.aquarium-props {pointer-events:none}
.aquarium-fish-canvas,.aquarium-ripples {z-index:1}
.aquarium-fish-layer {z-index:2}
.aquarium-props {z-index:3}
.aquarium-fish,.aquarium-prop {
    position:absolute;
    width:clamp(44px,15vw,82px);
    aspect-ratio:1;
    padding:0;
    border:0;
    background:none;
    display:grid;
    place-items:center;
    border-radius:50%;
    pointer-events:auto;
    transition:none;
}
.aquarium-fish {
    left:0;top:0;
    will-change:transform;
}
.aquarium-fish.is-large {width:clamp(55px,19vw,110px)}
.aquarium-prop,.aquarium-prop:active:not(:disabled) {
    --anchor:53%;
    transform:translate(-50%,calc(-1 * var(--anchor))) scale(var(--size,1));
    transform-origin:50% var(--anchor);
    width:clamp(53px,18vw,112px);
    touch-action:none;
    filter:drop-shadow(0 4px 3px #18403751);
}
.aquarium-prop[data-aquarium-prop='lantern'] {--anchor:72%}
.aquarium-prop.aquarium-jade {--anchor:86%;width:clamp(35px,13vw,75px)}
.aquarium-prop.is-selected::after {content:'';position:absolute;top:var(--anchor);width:57%;height:15%;border:1px solid #f2f7d9b5;border-radius:50%;transform:translateY(-50%);pointer-events:none}
.aquarium-prop:not(button) {pointer-events:none}
.aquarium-prop img {width:100%;height:100%;object-fit:contain;pointer-events:none}
.aquarium-companion {
    position:absolute;
    transform:translate(-50%,-72%);
    width:clamp(44px,14vw,75px);
    aspect-ratio:1;
    display:block;
    border:0;
    padding:0;
    border-radius:50%;
    background:none;
    pointer-events:auto;
    filter:drop-shadow(0 3px 2px #40352463);
}
.aquarium-companion:active:not(:disabled) {transform:translate(-50%,-72%)}
.aquarium-companion img {width:100%;height:100%;object-fit:contain}
.aquarium-companion:has(.aquarium-pet-motion:not([hidden])) img {visibility:hidden}
.aquarium-pet-motion {position:absolute;inset:0;background-size:300% 300%;background-repeat:no-repeat}
.aquarium-note {
    position:absolute;
    z-index:4;
    left:50%;
    bottom:12px;
    transform:translateX(-50%);
    width:max-content;
    max-width:calc(100% - 24px);
    margin:0;
    padding:5px 12px;
    border-radius:8px;
    border:1px solid var(--ui-edge);
    background:var(--ui-glass);
    color:var(--ink);
    backdrop-filter:blur(4px);
    font:650 12px/1.45 var(--ui-font);
    text-align:center;
    pointer-events:none;
}
.aquarium-decoration-tools {position:absolute;inset:0;z-index:5;pointer-events:none}
.aquarium-decoration-tools .decoration-tray {pointer-events:auto}
.aquarium-ripple {
    position:absolute;
    width:64px;
    height:28px;
    border:1px solid #f7fbdfb8;
    border-radius:50%;
    box-shadow:0 0 0 6px #f3f8df56,0 0 15px #e0f2c855;
    opacity:0;
    animation:aquarium-ripple 1.2s ease-out both;
}
@keyframes aquarium-ripple {
    0%{transform:translate(-50%,-50%) scale(.17);opacity:0}
    16%{opacity:.86}
    100%{transform:translate(-50%,-50%) scale(1.45);opacity:0}
}
.aquarium-inventory {display:grid;gap:5px}
.aquarium-item {width:100%;min-height:41px}
.aquarium-item :is(img,.fish-icon) {width:40px;height:40px;object-fit:contain}
.aquarium-item small {margin-left:auto;white-space:nowrap}
.aquarium-fish-detail {display:grid;place-items:center}
.aquarium-fish-detail .fish-icon {width:96px;height:96px}
.aquarium-name {display:grid;gap:6px}
.aquarium-name input {
    width:100%;
    min-height:36px;
    padding:4px 8px;
    border:1px solid var(--ui-edge);
    border-radius:7px;
    background:var(--ui-soft);
    color:var(--ink);
    font-size:16px;
}
.aquarium-bubble-note {margin:0;color:var(--ink);line-height:1.5;font-size:12px}
@media(max-height:440px){
    .aquarium-back,.aquarium-toolbar {top:8px}
    .aquarium-fish-detail .fish-icon {width:58px;height:58px}
}
@media(prefers-reduced-motion:reduce){
    .aquarium-ripple {animation:none}
}


:root {
    --action-ink:#37342e;
    --action-red:#713832;
    --action-bamboo-art:url("https://www.dejai.site/xiaoyu-pond/objects/34d820ff1d9fc8ba6af19dc145cb842fec8a6f73d2ddb9c010842991b801dcba/assets/ui/bamboo-corner.webp");
    --action-lotus-art:url("https://www.dejai.site/xiaoyu-pond/objects/be24ffe415f35c735508bc43aa5e7e8bbbe8265a33bbc1e7ef478f2f04de7fa4/assets/ui/lotus-corner.webp");
    --wash-parchment:url("https://www.dejai.site/xiaoyu-pond/objects/082354ed791c1175acb74232a0c3877a254127397344e9d913bc048d14f5d614/assets/ui/action-paper.webp");
    --wash-jade:url("https://www.dejai.site/xiaoyu-pond/objects/0c9481df61731c981495143bf71b0b713106a133ae613de700353da2723c7bb8/assets/ui/action-jade.webp");
    --wash-river:url("https://www.dejai.site/xiaoyu-pond/objects/91a98e9f947036e988f6a5c5546abd0e14094e686274ca91783ff3f6da4b012f/assets/ui/action-river.webp");
    --wash-honey:url("https://www.dejai.site/xiaoyu-pond/objects/c480964ba7fcfd30c99e193fb8152e0b1b34351c12b0a33f904964de11f8c777/assets/ui/action-honey.webp");
    --wash-mist:url("https://www.dejai.site/xiaoyu-pond/objects/df742bf449ff65ce9553d932549da93ae1e56ce84dc8e9891b523d42a3a78ae2/assets/ui/action-mist.webp");
    --wash-rose:url("https://www.dejai.site/xiaoyu-pond/objects/aa8f6716d50969c4edcb38f4b5a51b01c25aabfcd942048480ea9238bf7b59e1/assets/ui/action-rose.webp");
    --chrome-margin:clamp(8px,2.8vw,12px);
    --game-header-height:calc(env(safe-area-inset-top) + var(--chrome-margin) + 44px);
    --game-dock-height:56px;
    --game-dock-bottom:calc(env(safe-area-inset-bottom) + var(--chrome-margin));
    --game-dock-clearance:calc(var(--game-dock-height) + var(--game-dock-bottom));
    --chrome-paper:#fbf4e4a8;
    --chrome-blur:blur(7px);
    --popup-paper:#fff5df99;
    --popup-blur:blur(5px);
    --ui-glass:var(--chrome-paper);
    --chrome-edge:#bbaa8b;
}

.game-action-sprite {
    display:none;
    width:var(--game-icon-size,21px);
    height:var(--game-icon-size,21px);
    flex:none;
}

.action-icons-ready button[data-game-icon]::before,
.action-icons-ready .game-action-sprite {
    content:'';
    display:inline-block;
    width:var(--game-icon-size,25px);
    height:var(--game-icon-size,25px);
    flex:none;
    pointer-events:none;
    background-image:var(--game-icon-art,var(--game-action-atlas));
    background-size:600% 600%;
    background-position:var(--game-icon-x) var(--game-icon-y);
    background-repeat:no-repeat;
    vertical-align:middle;
}
.action-icons-ready button:is([data-game-icon='pan'],[data-game-icon='pot'],[data-game-icon='steam'])::before,
.action-icons-ready .game-action-sprite:is([data-game-icon='pan'],[data-game-icon='pot'],[data-game-icon='steam']) {
    background-size:contain;
    background-position:center;
}
.action-icons-ready button[data-game-icon='rotate-right']::before,
.action-icons-ready .game-action-sprite[data-game-icon='rotate-right'] {
    transform:scaleX(-1);
}
.action-icons-ready button:is([data-game-icon='plus'],[data-game-icon='minus'])::before {
    width:16px;
    height:3px;
    border-radius:3px;
    background:currentColor;
}
.action-icons-ready button[data-game-icon='plus'] {
    position:relative;
}
.action-icons-ready button[data-game-icon='plus']::after {
    content:'';
    position:absolute;
    left:calc(50% - 1.5px);
    top:calc(50% - 8px);
    width:3px;
    height:16px;
    border-radius:3px;
    background:currentColor;
    pointer-events:none;
}

.action-icons-ready button[data-game-icon] {
    align-items:center;
    justify-content:center;
    gap:5px;
    touch-action:manipulation;
}
.action-icons-ready button[data-action-mode='label'] {
    display:inline-flex;
    --game-icon-size:22px;
    min-height:44px;
    min-width:44px;
    max-width:100%;
    padding:3px 9px;
    font:700 13px/1.2 var(--ui-font);
    letter-spacing:0;
}
.action-icons-ready button[data-action-mode='icon'] {
    display:inline-flex;
    flex:none;
    box-sizing:border-box;
    width:44px;
    min-width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    gap:0;
    font:0/0 var(--ui-font);
    letter-spacing:0;
}
.action-icons-ready button:is([data-action-mode='label'],[data-action-mode='tab'])[data-action-caption] {
    font-size:0;
}
.action-icons-ready button:is([data-action-mode='label'],[data-action-mode='tab'])[data-action-caption]::after {
    content:attr(data-action-caption);
    font:700 13px/1.2 var(--ui-font);
    white-space:nowrap;
    pointer-events:none;
}
.action-icons-ready button[data-game-icon]:focus-visible {outline-offset:3px}

.pond-top {
    left:auto;
    right:max(var(--chrome-margin),env(safe-area-inset-right));
    width:max-content;
    max-width:calc(100% - 2 * var(--chrome-margin));
    gap:1px;
    padding:1px 4px;
    pointer-events:auto;
    text-shadow:none;
}
.action-icons-ready .pond-top button[data-game-icon] {padding-inline:8px}
:root #pondPanel .pond-top button:not([aria-pressed='true'],[aria-expanded='true']) {
    background-image:none;
    color:#3f382b;
}
#pondPanel .message {top:calc(var(--game-header-height) + 62px)}
.action-icons-ready body:has(:is(#pondPanel,#petPage):not([hidden])) .game-tip {top:calc(var(--game-header-height,50px) + 62px)}
.action-icons-ready body:has(#pondPanel[data-exploring='true']:not([hidden])) .game-tip {
    top:calc(var(--game-header-height,50px) + 112px);
}
.action-icons-ready #outingLogOpen.has-outing::after {
    position:absolute;
    right:6px;
    top:7px;
    background:#a57739;
}
.action-icons-ready #start[data-action-mode='label'] {
    --game-icon-size:25px;
    min-height:44px;
    padding-inline:20px;
}
.action-icons-ready :is(#warehouseTabs,.social-gift-tabs) {
    justify-content:space-between;gap:0;padding:0 8px;
    background:#f5ecd948;border:0;border-bottom:1px solid #af98764d;
}
.action-icons-ready :is(#warehouseTabs,.social-gift-tabs) button[data-game-icon] {
    display:inline-flex;
    flex:1 1 0;
    flex-direction:column;
    min-width:0;
    min-height:48px;
    padding:2px 3px 4px;
    gap:1px;
    font:650 11px/1.2 var(--ui-font);
}
.action-icons-ready :is(#warehouseTabs,.social-gift-tabs) button[data-action-caption] {font-size:0}
.action-icons-ready :is(#warehouseTabs,.social-gift-tabs) button[data-action-caption]::after {font-size:11px}
.action-icons-ready :is(.home-map-zone .scene-label,.nest-label,.plot-label,.gear-option small) .game-action-sprite {
    --game-icon-size:17px;
}
.home-map-zone .scene-label {
    gap:3px;
    padding-inline:5px;
}
.action-icons-ready .gear-option small {display:inline-flex;align-items:center}
.action-icons-ready .pet-preview summary .game-action-sprite {--game-icon-size:16px;margin-inline:2px}
.action-icons-ready .nest-label:has(.game-action-sprite) {padding-inline:3px}
.pet-yard-actions {right:max(12px,env(safe-area-inset-right));display:flex;gap:6px;padding:0}
.pet-yard-actions :is(#petRosterOpen,#outingLogOpen) {position:relative;inset:auto}
:is(.pet-actions,.pet-primary-actions,.market-motion-actions) {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:3px;
}
.action-icons-ready :is(.pet-primary-actions,.egg-care) button[data-action-mode='label'] {
    flex:1 1 auto;
    padding-inline:3px;
}
:is(.pet-actions,.market-motion-actions) button.secondary {
    --game-icon-size:20px;
    --action-height:28px;
    min-width:0;
    min-height:44px;
    padding:2px 3px;
    font:650 11px/1.2 var(--ui-font);
}
.action-icons-ready :is(.pet-primary-actions,.egg-care) button[data-action-caption]::after {
    font-size:11px;
}
.nest-empty {display:inline-flex;align-items:center;gap:2px}
.action-icons-ready .sale-stepper {grid-template-columns:44px minmax(0,1fr) 44px auto}
.action-icons-ready .sale-stepper input {min-height:44px;background:transparent;border:0;border-bottom:1px solid #977c5166}
.action-icons-ready .decoration-yaw-control {grid-template-columns:2em 44px minmax(0,1fr) 44px 3em}
.action-icons-ready .decoration-editor {width:min(94%,264px)}
.action-icons-ready .decoration-actions {gap:8px}
.action-icons-ready .method-card button[data-action-mode='label'] {
    width:auto;
    min-width:60px;
    padding-inline:4px;
    --game-icon-size:19px;
}
.action-icons-ready .item-card > .item-card-action[data-action-mode='label'] {align-self:end;width:auto}
.action-icons-ready .market-buy[data-action-mode='label'] {
    --game-icon-size:18px;
    gap:3px;
    padding-inline:6px;
    font-size:12px;
}
.action-icons-ready .pond-explore-weather {gap:4px;padding:0 3px;border:0;background:transparent;box-shadow:none;backdrop-filter:none}
.action-icons-ready .pond-explore-weather button[data-game-icon] {min-height:44px}
.action-icons-ready .restaurant-dismiss[data-game-icon] {justify-self:end;color:var(--action-red)}
.action-icons-ready .school-actions button[data-action-mode='icon'] {justify-self:center}
.action-icons-ready .bubble-heading {min-height:47px}
.action-icons-ready .bubble-close[data-game-icon] {--game-icon-size:20px}
.scene-bubble .bubble-body {max-height:min(272px,max(60px,calc(var(--bubble-space,100dvh) - 49px)))}
.scene-bubble:has(.pet-meters) .bubble-body {max-height:min(358px,max(60px,calc(var(--bubble-space,100dvh) - 49px)))}

/* 标题、状态和导航悬浮在场景上方。 */
main {position:relative}
.game-header {
    position:absolute;
    z-index:125;
    inset:0 0 auto;
    min-height:0;
    max-width:none;
    padding:calc(env(safe-area-inset-top) + var(--chrome-margin))
        max(var(--chrome-margin),env(safe-area-inset-right)) 0
        max(var(--chrome-margin),env(safe-area-inset-left));
    gap:8px;
    background:none;
    border:0;
    pointer-events:none;
}
.scene-name {
    flex:0 1 auto;
    min-width:0;
    padding:9px 12px;
    color:#31463a;
    font:650 clamp(17px,4.75vw,21px)/1.2 var(--serif);
    letter-spacing:.06em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    pointer-events:auto;
}
.game-header .header-stats {
    flex:0 0 auto;
    min-width:0;
    min-height:44px;
    gap:5px;
    padding:2px 4px 2px 7px;
    pointer-events:auto;
}
.game-header .header-stats .stat-icon {
    width:clamp(17px,5vw,22px);
    height:clamp(17px,5vw,22px);
}
.game-header .header-stats :is(.energy-stat,.gold-stat) {
    min-width:0;
    padding-inline:2px;
    background:none;
    border:0;
}
.game-header .header-stats .gold-stat strong {color:#4f3824}
.game-header .header-stats .gold-stat {
    padding-inline-start:6px;
    border-inline-start:1px solid #bbaa8b68;
}
.game-header .header-stats .level-stat {
    display:grid;align-content:center;gap:3px;flex:none;width:44px;min-height:40px;padding:0 5px 0 0;
    border:0;border-inline-end:1px solid #bbaa8b68;border-radius:0;background:none;
    box-shadow:none;cursor:pointer;touch-action:manipulation;
}
.game-header .header-stats .level-stat:focus-visible {outline:2px solid #537a58;outline-offset:-3px;border-radius:7px}
.level-stat-number {display:flex;align-items:baseline;justify-content:center;gap:2px;color:#526650;font:650 10px/1 var(--ui-font)}
.game-header .level-stat strong {font-size:14px;color:#304b38}
.level-stat progress {
    display:block;width:100%;height:4px;appearance:none;border:0;
    background:#dac9a7;border-radius:9px;overflow:hidden;
}
.level-stat progress::-webkit-progress-bar {background:#dac9a7}
.level-stat progress::-webkit-progress-value {background:#537a58;border-radius:9px}
.level-stat progress::-moz-progress-bar {background:#537a58;border-radius:9px}
@media(max-width:350px) {
    .game-header .header-stats {gap:3px;padding-inline-start:5px}
    .game-header .header-stats .stat-icon {width:16px;height:16px}
    .game-header .header-stats .level-stat {width:43px;padding-inline-end:3px}
    .game-header .scene-name {font-size:16px;padding-inline:8px}
}
.game-dock {
    position:absolute;
    z-index:125;
    inset:auto max(var(--chrome-margin),env(safe-area-inset-right)) var(--game-dock-bottom)
        max(var(--chrome-margin),env(safe-area-inset-left));
    max-width:420px;
    height:var(--game-dock-height);
    margin-inline:auto;
    padding:4px;
    gap:3px;
}
.game-header :is(.scene-name,.header-stats),.game-dock,.pond-top {
    background:var(--chrome-paper);
    border:1px solid var(--chrome-edge);
    border-radius:12px;
    box-shadow:inset 0 0 0 2px #fffdf4a8,0 2px 7px #3d352629;
    -webkit-backdrop-filter:var(--chrome-blur);
    backdrop-filter:var(--chrome-blur);
}
.game-dock {border-radius:15px}
.game-dock button {
    flex-direction:column;
    gap:0;
    min-height:44px;
    min-width:0;
    padding:1px 2px;
    font-size:11px;
    line-height:1.2;
    white-space:nowrap;
}
.game-dock .nav-art {width:29px;height:25px}
.game-dock button[aria-current='page'] > span:last-child {border-bottom:2px solid currentColor;padding-inline:3px}
.game-dock button:not([aria-current='page']) > span:last-child {padding-bottom:2px}

/* 有内容的纸笺才保留一道细框，笺上的小动作随文字排版。 */
.scene-bubble,dialog,.school-sheet,.pond-intro-card {
    border:1px solid #a89270a3;
    border-radius:5px 13px;
    box-shadow:inset 0 0 0 2px #fffdf5a8,0 4px 12px #3d342729;
}
.scene-bubble {
    --bubble-paper:var(--popup-paper);
    background-image:var(--action-lotus-art);
    background-position:right 4px bottom 4px;
    background-size:39px auto;
    background-repeat:no-repeat;
}
:is(dialog:not(.catch-reveal,.hero-postcard),.catch-paper,.pond-intro-card,.aquarium-note,.restaurant-total,.decoration-tray) {
    background-color:var(--popup-paper);
}
dialog::backdrop {background:#382e2429;backdrop-filter:none}
dialog.catch-reveal::backdrop {background:#382e2436;backdrop-filter:none}
:is(dialog:not(.catch-reveal,.hero-postcard),.catch-paper,.pond-intro-card,.aquarium-note,.restaurant-total,.game-tip,.message,
    .scene-bubble,.decoration-tray) {
    -webkit-backdrop-filter:var(--popup-blur);
    backdrop-filter:var(--popup-blur);
}
.decoration-hint {color:var(--action-ink)}
.pond-dialog-heading {background-color:#fff7e625;backdrop-filter:none}
.small-dialog,.school-sheet,.pond-intro-card {
    background-image:var(--action-lotus-art),var(--action-bamboo-art);
    background-position:left 4px bottom 4px,right 3px top 3px;
    background-size:52px auto,52px auto;
    background-repeat:no-repeat;
}
.bubble-heading {
    border-color:#a8916c5c;
    padding-inline-start:5px;
}
.bubble-heading h3,.dialog-heading h2,.school-sheet h3 {
    color:var(--action-ink);
    font-family:var(--serif);
    letter-spacing:.035em;
}
.bubble-heading h3 {font-size:16px}
.action-icons-ready :is(.bubble-close,.close)[data-game-icon] {color:var(--action-red)}
.action-icons-ready .scene-bubble .bubble-item {
    border:0;
    border-bottom:1px solid #b69e7652;
    border-radius:0;
    background:transparent;
}
.action-icons-ready .scene-bubble .bubble-item:hover {background:#e0ead3ab}
.pet-meters {
    background:transparent;
    padding-inline:3px;
    border:0;
    border-bottom:1px solid #b6a07966;
    border-radius:0;
}
.market-rack .home-shop-card,.item-card,#kitchenContent .method-card {
    border:0;
    border-radius:4px 11px;
    background:#fffaf274;
    box-shadow:inset 0 -1px #cfbd9b99;
}
.market-card-footer {padding-top:0;border-color:#b59c7160}
.school-option {
    border:0;
    border-bottom:1px solid #b8a18066;
    border-radius:0;
    background:transparent;
}
.school-option:has(input:checked) {background-color:#d4e4ccd9;border-color:#81977e}
.school-filters {display:grid;gap:6px}
.school-filter {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
    margin:0;
    padding:0;
    min-width:0;
    border:0;
}
.school-filter legend {margin-bottom:3px;color:var(--action-ink);font-weight:700}
.school-filter label {position:relative;min-width:0;cursor:pointer}
.school-filter label span {
    display:grid;
    place-items:center;
    min-height:44px;
    padding:2px;
    border:1px solid transparent;
    border-radius:7px;
    font-size:12px;
    white-space:nowrap;
}
.school-filter input:checked + span {background:#f9eed1b0;border-color:#a9895e;color:#433322;font-weight:700}
.school-filter input:focus-visible + span {outline:2px solid var(--ui-focus);outline-offset:1px}
.message,.game-tip {
    background:#fff2d69c;
    color:#2c3428;
    border:0;
    border-radius:4px 12px;
    box-shadow:0 2px 7px #3d341e29;
}
.message:is([data-kind='bite'],[data-kind='large']) {color:#42371f}
.message:is([data-kind='hit'],[data-kind='large']),.game-tip[data-kind='success'] {background:#e5edda9e;color:#263722}
.game-tip[data-kind='error'],.message:is([data-kind='escape'],[data-kind='miss']) {background:#f8e2d8a4;color:#442c27}
.game-tip::before {
    background:#688c65;
    border-radius:1px;
    rotate:45deg;
}
.game-tip[data-kind='error']::before {
    content:'!';
    width:auto;height:auto;
    color:#8c473d;
    background:none;
    rotate:none;
    font:900 13px/1 var(--ui-font);
}

/* 用同一层水彩承托操作文字和场景标签，留白仍属于可点击区域。 */
:root :is(button[data-game-icon],button.primary,button.secondary,button.text-button,button.market-buy,
    .game-dock button,.scene-label,#gardenPage .plot-label,.pond-explore-name,.restaurant-guest-name,.pond-choice-current):where(
    :not(.close,.bubble-close,.jade-reward-close,.hero-postcard-close)) {
    background-color:transparent;
    background-image:var(--wash-art,var(--wash-parchment));
    background-size:var(--action-width,min(100%,144px)) var(--action-height,34px);
    background-position:center;
    background-repeat:no-repeat;
    border:0;
    border-radius:0;
    box-shadow:none;
    backdrop-filter:none;
    text-shadow:none;
    color:var(--wash-ink,var(--action-ink));
    transition-property:color,opacity,filter,transform;
}
:root :is(.home-map-zone .scene-label,.nest-label,#gardenPage .plot-label,.pond-explore-name,.restaurant-guest-name,.pond-choice-current) {
    --action-height:25px;
    padding-inline:8px;
}
button[data-action-mode='icon'] {
    --action-width:32px;
    --action-height:30px;
}
.game-dock button {--action-width:94%;--action-height:43px}
:is(#warehouseTabs,.social-gift-tabs) button[data-game-icon] {--action-width:90%;--action-height:38px}
:root :is(.game-dock button:not([aria-current='page']),:is(#warehouseTabs,.social-gift-tabs) button:not([aria-pressed='true'])) {
    background-image:none;
}

:root :is(button.close,button.bubble-close,button.jade-reward-close,button.hero-postcard-close) {
    min-width:44px;min-height:44px;background:none;border:0;border-radius:99px;box-shadow:none;
}
:root :is(button.close,button.bubble-close,button.jade-reward-close,button.hero-postcard-close):focus-visible {
    outline:2px solid var(--close-focus,#4b6e5b);
    outline-offset:-3px;
}

/* 各用途使用同一材质的独立色底。 */
:is(#start,#restaurantOpen,button[data-game-icon='harvest'],.plot-label[data-ripe='true']) {--wash-art:var(--wash-jade)}
:is(#pondOpen,#pondExplore,#pondPanel button[data-game-icon='rod'],.pond-explore-weather button,
    .pond-explore-name,button[data-game-icon='water'],button[data-game-icon='fish'],:is(#warehouseTabs,.social-gift-tabs) [data-stock='fish']) {
    --wash-art:var(--wash-river);
    --wash-ink:#2a4853;
}
:is(#shopOpen,button.market-buy,button[data-game-icon='sell'],button[data-game-icon='buy'],#pondGear) {
    --wash-art:var(--wash-honey);
    --wash-ink:#584326;
}
:is(button[data-game-icon='book'],button[data-game-icon='journal']) {
    --wash-art:var(--wash-mist);
    --wash-ink:#4a3959;
}
:is(button[data-action-tone='warn'],.restaurant-dismiss) {
    --wash-art:var(--wash-rose);
    --wash-ink:var(--action-red);
}
:is(.home-map-zone .scene-label,button[data-game-icon='back']) {
    --wash-art:var(--wash-parchment);
    --wash-ink:#4c402e;
}
.action-icons-ready button[data-game-icon='back'] {
    --action-height:34px;
    --game-icon-size:26px;
    min-width:66px;
    min-height:46px;
    padding-inline:8px;
}
.action-icons-ready button[data-game-icon='back']::before {
    filter:grayscale(1) sepia(.84) brightness(.82);
}
:root :is(button[data-game-icon],.game-dock button):is([aria-pressed='true'],[aria-expanded='true'],[aria-current='page']) {
    filter:saturate(1.18) brightness(.93);
}
:root :is(#warehouseTabs,.social-gift-tabs) button[aria-pressed='true'] {text-decoration:underline;text-underline-offset:3px}
:root :is(button[data-game-icon],button.primary,button.secondary,button.market-buy):disabled {opacity:.55}
:root :is(button[data-game-icon],button.primary,button.secondary,.game-dock button):active:not(:disabled) {
    filter:brightness(.89);
}
@media(hover:hover) {
    :root :is(button[data-game-icon],button.primary,button.secondary,.game-dock button):hover:not(:disabled),
    :root .home-map-zone:hover .scene-label {filter:brightness(.94)}
}
@media(max-width:360px) {
    .action-icons-ready .pond-top button[data-game-icon] {--game-icon-size:19px;padding-inline:6px}
    .action-icons-ready .pond-top button[data-action-caption]::after {font-size:12px}
    .action-icons-ready .home-map-zone .scene-label {gap:2px;padding-inline:4px}
}

/* 场景画面铺满屏，原有操作仍排在悬浮栏之间。 */
:is(.pond-top,.yard-toolbar,#restaurantBack,.restaurant-toolbar,.aquarium-back,.aquarium-toolbar) {
    top:calc(var(--game-header-height) + 10px);
}
#homePage .yard-edit {top:calc(var(--game-header-height) + 10px)}
#petDecorOpen {top:calc(var(--game-header-height) + 57px);right:max(12px,env(safe-area-inset-right))}
.pond-explore-weather {top:calc(var(--game-header-height) + 60px)}
.decoration-tray {top:calc(var(--game-header-height) + 57px)}
.restaurant-footer,.aquarium-note {bottom:calc(var(--game-dock-clearance) + 12px)}
:is(#warehousePage > .room-surface,#kitchenContent.room-surface,.market-scene .market-rack) {
    --content-top:max(calc(var(--game-header-height) + 62px),clamp(85px,31%,247px));
    --content-bottom:calc(var(--game-dock-clearance) + var(--chrome-margin));
    inset:var(--content-top) max(var(--chrome-margin),env(safe-area-inset-right)) auto
        max(var(--chrome-margin),env(safe-area-inset-left));
    max-height:calc(100% - var(--content-top) - var(--content-bottom));
}
:is(#warehousePage > .room-surface,#kitchenContent.room-surface,.market-scene .market-rack,.school-sheet) {
    background:var(--popup-paper);
    border:1px solid var(--chrome-edge);
    border-radius:14px;
    box-shadow:0 3px 10px #3d352629;
    -webkit-backdrop-filter:var(--popup-blur);
    backdrop-filter:var(--popup-blur);
}
#warehousePage > .room-surface {overflow:hidden}
#schoolContent.room-surface {
    top:max(calc(var(--game-header-height) + 58px),15%);
    bottom:var(--game-dock-clearance);
}
#shopPage .market-rack:has(.tackle-grid) {
    top:auto;
    bottom:var(--content-bottom);
    max-height:calc(100% - var(--game-header-height) - var(--game-dock-clearance) - 64px);
    background:var(--popup-paper);
    border-color:var(--chrome-edge);
    border-radius:14px;
}


#heroPage.hero-scene {
    position:absolute;inset:0;max-width:none;border:0;border-radius:0;overflow:hidden;background:#68533f;
}
#heroRoom {
    --hero-tools-top:calc(65px + env(safe-area-inset-top));
    --hero-dock-space:calc(77px + env(safe-area-inset-bottom));
    position:absolute;inset:0;isolation:isolate;color:#283b31;
    display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;
    padding-block:var(--hero-tools-top) var(--hero-dock-space);
}
.hero-room-art {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
/* Keep the floor line under the model when the item tray takes more screen height. */
#heroRoom:has(.hero-tray) .hero-room-art {
    --hero-art-rise:clamp(56px,11.3dvh,104px);
    top:calc(-1 * var(--hero-art-rise));height:calc(100% + var(--hero-art-rise));
}
.hero-tools {
    grid-area:1 / 1;position:relative;margin-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right));
    display:flex;align-items:center;justify-content:space-between;gap:7px;z-index:2;pointer-events:none
}
.hero-tools button {pointer-events:auto;min-height:37px}
.hero-tool-group {
    display:flex;align-items:center;padding-inline:3px;border:1px solid var(--chrome-edge);border-radius:12px;
    background:var(--chrome-paper);box-shadow:var(--ui-lift);-webkit-backdrop-filter:var(--chrome-blur);backdrop-filter:var(--chrome-blur)
}
.hero-tool-group .scene-label {padding-inline:10px;border:0;box-shadow:none;background:none;backdrop-filter:none}
.hero-tool-group .scene-label + .scene-label {position:relative}
.hero-tool-group .scene-label + .scene-label::before {
    content:"";position:absolute;left:0;top:28%;height:44%;border-left:1px solid var(--chrome-edge)
}
.hero-portrait {
    grid-area:2 / 1;position:relative;min-height:0;margin-block:3px 8px;
}
.hero-portrait::before {
    content:"";position:absolute;bottom:1%;left:50%;width:clamp(38px,13vw,68px);height:8px;
    transform:translateX(-50%);border-radius:50%;background:#432e2870;filter:blur(4px)
}
.hero-inspection::before {width:clamp(52px,18vw,93px);height:10px}
.hero-model {display:block;max-width:96%;width:auto;height:100%;min-height:0;max-height:100%;object-fit:contain}
.hero-stage {position:absolute;inset:0}
.hero-stage .hero-model {width:100%;height:100%;max-width:100%}
.hero-stage[data-ready=true] .hero-model {opacity:0}
.hero-engine {position:absolute;inset:0;pointer-events:none}
.hero-engine canvas {display:block;width:100%!important;height:100%!important;object-fit:contain}
.hero-portrait:not([data-close=true]) :is(.hero-model,.hero-engine canvas) {object-position:center bottom}
.hero-portrait[data-close=true]::before {display:none}
.hero-postcard[open] {
    display:grid;place-items:center;position:fixed;inset:0;margin:0;width:100%;height:100%;
    max-width:none;max-height:none;padding:0;overflow:hidden;
    background:transparent;border:0;border-radius:0;box-shadow:none;
}
.hero-postcard-frame {
    display:grid;gap:8px;justify-items:center;padding:8px;background:var(--popup-paper);
    border:1px solid var(--ui-edge);border-radius:13px;box-shadow:var(--ui-shadow);
    -webkit-backdrop-filter:var(--popup-blur);backdrop-filter:var(--popup-blur);
}
.hero-postcard .hero-photo {
    display:block;width:auto;height:auto;max-width:calc(100dvw - 38px);max-height:min(610px,calc(100dvh - 82px));
    object-fit:contain;border-radius:7px;cursor:default;
}
.hero-postcard-actions {display:flex;justify-content:center;gap:7px}
.hero-postcard-actions button {min-height:42px;white-space:nowrap}
.hero-level {
    grid-area:2 / 1;position:relative;align-self:end;justify-self:start;
    margin:0 0 12px max(13px,env(safe-area-inset-left));
    display:grid;justify-items:start;gap:2px;max-width:min(26%,132px);min-width:0;padding:5px 8px;
    border:1px solid #cdb78b;border-radius:9px;color:#354d3e;background:#fff5dfc9;
    backdrop-filter:blur(5px);box-shadow:0 1px 4px #57442b2b;
    font:700 14px/1.2 var(--serif);z-index:2
}
.hero-level-name {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero-level small {color:#785438;font:650 11px/1.2 var(--ui-font);white-space:nowrap}
.hero-tray {
    grid-area:3 / 1;position:relative;
    margin-inline:max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right));
    height:clamp(248px,40.1dvh,370px);min-height:0;display:flex;flex-direction:column;
    border:1px solid #d2b989;border-radius:14px;
    background:linear-gradient(140deg,#fff9e9a8,var(--popup-paper));
    -webkit-backdrop-filter:var(--popup-blur);backdrop-filter:var(--popup-blur);
    box-shadow:0 4px 20px #2d241858,inset 0 0 0 3px #fff8e65e;
    overflow:hidden
}
.hero-tabs {display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:5px 6px 1px;gap:3px;border-bottom:1px solid #9f845141}
.hero-tab,.hero-chip,.hero-confirm,.hero-card,.hero-set {
    min-width:0;min-height:34px;padding:5px 9px;border:1px solid transparent;border-radius:7px;
    background:transparent;color:#345145;font-family:var(--ui-font);font-size:13px;font-weight:650;touch-action:manipulation
}
.hero-tab[aria-pressed=true],.hero-chip[aria-pressed=true] {
    background:#d4decbcc;border-color:#869c7570;color:#233e32
}
.hero-tab {padding-inline:3px}
.hero-chips {display:flex;position:relative;overflow-x:auto;scrollbar-width:none;gap:4px;padding:4px 0}
.hero-chips .hero-chip {white-space:nowrap;flex:0 0 auto}
.hero-items {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 8px 6px}
.hero-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:3px 0}
.hero-card {
    min-height:82px;display:grid;justify-items:center;align-content:start;gap:2px;padding:5px 2px;
    border-color:#bda67572;background:#fffae658;color:#344638
}
.hero-card img {width:52px;height:42px;object-fit:contain}
.hero-feature-preview {width:70px;height:46px;max-width:100%;object-fit:contain}
.hero-card strong,.hero-card small {font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.hero-card small,.hero-set small {color:#785736}
.hero-card[aria-pressed=true],.hero-set[aria-pressed=true] {background:#deead6bd;border-color:#869c75}
.hero-set-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-top:4px}
.hero-set {display:grid;gap:3px;background:#fff9e467;border-color:#bda67572;text-align:left}
.hero-set-images {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-bottom:3px}
.hero-set-images img {width:100%;height:32px;object-fit:contain}
.hero-outfit-tabs {flex:none;justify-content:flex-start;padding:4px 8px;border-bottom:1px solid #9f845132}
.hero-walk-note {padding:2px 2px 4px;line-height:1.4}
.hero-walk-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-bottom:3px}
.hero-walk-set {
    display:grid;grid-template-rows:1fr auto;min-width:0;padding:4px;
    border:1px solid #bda67572;border-radius:8px;background:#fff9e467;
}
.hero-walk-set.hero-walk-selected {background:#deead6bd;border-color:#869c75}
.hero-walk-preview {
    display:flex;align-items:center;gap:clamp(2px,1.7vw,7px);width:100%;min-width:0;
    padding:0;border:0;background:none;color:#344638;text-align:left;touch-action:manipulation;
}
.hero-walk-thumbnail {flex:none;width:37px;aspect-ratio:240 / 390;overflow:hidden;display:block}
.hero-walk-thumbnail img {display:block;width:400%;height:auto;max-width:none}
.hero-walk-caption {display:grid;gap:3px;min-width:0;padding-block:2px}
.hero-walk-caption strong {font-size:13px;line-height:1.15;overflow-wrap:anywhere}
.hero-walk-caption small {color:#52604a;font-size:11px;line-height:1.15}
.hero-walk-apply {width:100%;min-height:38px;padding-inline:3px;font-size:12px;line-height:1.2}
.hero-mirror-actions .hero-walk-apply {width:auto;padding-inline:12px}
.hero-create,.hero-footer,.hero-row {display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.hero-create {padding:4px 8px 2px}
.hero-footer:not(:empty) {padding:5px 8px;border-top:1px solid #9f845146;justify-content:space-between}
.hero-footer .hero-confirm {margin-left:auto}
.hero-row {padding:5px 0}
.hero-input {
    border:1px solid #b39b6f8c;border-radius:7px;background:#fff9eab4;color:#253c32;min-width:9ch;max-width:100%;
    padding:6px 8px;font:14px/1.35 var(--ui-font);flex:1
}
.hero-input::placeholder {color:#695b48}
.hero-confirm {
    background:linear-gradient(#ecdeb5ed,#e2cc96df);border-color:#a88b567e;
    color:#4a3d29;box-shadow:inset 0 1px #fff8ddb3;min-height:36px
}
.hero-confirm:disabled {opacity:.65;color:#625546}
.hero-hint,.hero-empty {font-size:12px;color:#4a503e;margin:3px 0;line-height:1.4}
.hero-footer .hero-hint {min-width:0;flex:1;max-height:34px;overflow:hidden}
.hero-skin {width:29px;height:29px;border-radius:50%;border:1px solid #7c675980;margin:4px 0;box-shadow:inset 0 0 0 2px #fff8e5a3}
.hero-theme {padding:6px 3px;display:grid;gap:3px;border-bottom:1px solid #9f845139;font-size:13px}
.hero-theme p {margin:0;color:#455c4d;font-size:12px}
.hero-theme button {justify-self:start;background:#d4decb9e}
.hero-rank {display:grid;gap:5px;padding:6px 3px;font-size:14px}
.hero-rank progress {width:100%;height:10px;accent-color:#689174}
.hero-experience-dialog {width:min(420px,calc(100% - 26px));max-height:min(480px,calc(100dvh - 32px));overflow:hidden}
.hero-experience-dialog[open] {display:grid;grid-template-rows:auto minmax(0,1fr)}
.hero-experience-dialog .dialog-heading {margin-bottom:8px}
.hero-experience-body {min-height:0;overflow:auto;overscroll-behavior:contain}
.hero-milestone {display:flex;gap:10px;margin:4px 0;padding:5px 4px;border-bottom:1px solid #9f845139;font-size:13px}
.hero-milestone span:first-child {font-weight:700;color:#6a5034;min-width:51px}
.hero-milestone[data-ready=true] {color:#235e3f}
.home-map-zone[data-zone=wardrobe],.market-tailor {z-index:2}
.home-map-zone[data-zone=wardrobe] > img,.market-tailor > img {position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.home-map-zone[data-zone=wardrobe] > .scene-label,.market-tailor > .scene-label {position:relative}
.market-tailor {left:80%;top:83%;width:26%;height:15%}
.hero-world-actor {
    position:absolute;pointer-events:none;width:auto;height:var(--world-hero-height);aspect-ratio:420 / 625;z-index:1;
    left:var(--world-hero-x);top:var(--world-hero-y);transform:translate(-50%,-98%);
}
.hero-world-actor::before {
    content:"";position:absolute;left:36%;right:36%;bottom:1%;height:4%;border-radius:50%;
    background:#3b302757;filter:blur(2px)
}
.hero-world-model {position:relative;width:100%;height:100%}
#homePage .hero-world-actor {
    --world-hero-x:47.5%;--world-hero-y:87.5%;--world-hero-height:11.5%;
}
#restaurantContent .hero-world-actor {z-index:0}
#restaurantContent .restaurant-seats {z-index:1}
@media(max-height:690px) {
    #heroRoom {--hero-tools-top:calc(58px + env(safe-area-inset-top));--hero-dock-space:calc(66px + env(safe-area-inset-bottom))}
    .hero-tray {height:clamp(192px,38dvh,262px)}
    .hero-tabs {padding-top:3px}
    .hero-tab {min-height:31px}
    .hero-footer:not(:empty) {padding-block:4px}
    .hero-card {min-height:66px;padding-block:3px}
    .hero-card img {height:32px}
    .hero-feature-preview {height:38px}
    .hero-outfit-tabs {padding-block:2px}
    .hero-outfit-tabs .hero-chip {min-height:30px}
    .hero-walk-note {padding-block:0 2px}
    .hero-walk-thumbnail {width:32px}
    .hero-walk-apply {min-height:36px}
}
#residencePage.hero-scene,#residenceRoom {position:absolute;inset:0;max-width:none;border:0;border-radius:0;overflow:hidden}
#residenceRoom,.residence-map {isolation:isolate}
.residence-map.home-hero {width:100%;height:100%;position:absolute;inset:0;margin:0}
.residence-map.home-hero>img:first-child {display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}
.residence-tools {position:absolute;top:calc(var(--game-header-height,52px) + 10px);left:12px;right:12px;z-index:2;display:flex;gap:6px}
.residence-tools button:first-child {margin-right:auto}
.residence-walk-floor {position:absolute;inset:49% 0 5%;width:100%;border:0;background:none;touch-action:manipulation;cursor:pointer;pointer-events:auto}
.residence-actor {position:absolute;width:clamp(104px,42%,230px);aspect-ratio:420/625;pointer-events:none;transform:translate(-50%,-96%) scale(var(--depth,1));transform-origin:50% 96%}
.residence-create {position:absolute;left:50%;top:72%;transform:translateX(-50%);white-space:nowrap}
.market-tailor {left:69%;top:82%;width:41%;height:16%}
#shopPage .market-commission {left:20%;top:82%;width:29%;height:15%}
#shopPage .market-stall[data-stall=eggs] {top:27.6%;height:19%}
#shopPage .market-stall[data-stall=seeds] {top:28%;height:19%}
#shopPage .market-stall[data-stall=decorations] {top:53%;height:20%}
#shopPage .market-stall[data-stall=tackle] {top:52%;height:19%}
.residence-profile {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.residence-actor[data-pose=profile] .hero-stage {visibility:hidden}
.residence-actor::after {content:"";position:absolute;bottom:2%;left:50%;width:28%;height:3%;transform:translateX(-50%);background:#53412d44;filter:blur(3px);border-radius:100%;z-index:-1}

.hero-slots {
    position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px 4px;
    padding:4px 8px;border-bottom:1px solid #9f845132;flex:none;
}
.hero-slots .hero-chip {min-height:31px;padding:2px 0;white-space:nowrap}
.hero-mirror-controls {
    grid-area:3 / 1;position:relative;z-index:2;justify-self:center;margin-bottom:6px;
    width:max-content;max-width:calc(100% - 24px);
    display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 10px;
    padding:5px 8px;border:1px solid #cdb78b;border-radius:12px;
    background:var(--popup-paper);backdrop-filter:var(--popup-blur);box-shadow:0 3px 12px #3b2a1d35;
}
.hero-mirror-choices {display:flex;gap:3px}
.hero-mirror-choices .hero-chip {min-width:54px}
.hero-mirror-reset {color:#735437}
.hero-mirror-actions:not(:empty) {width:100%;justify-content:center;padding:5px 0 0}
.hero-mirror-actions .hero-confirm {margin:0}
.hero-mirror-actions .hero-hint {max-width:190px}
@media(max-height:690px){
    .hero-slots {display:flex;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding-block:2px}
    .hero-slots .hero-chip {flex:none;min-height:31px;padding-inline:7px}
}


/* 玉作台保持场景铺满，工具和记录用宣纸悬浮层。 */
.jade-scene.world-page {position:absolute;inset:0;isolation:isolate;overflow:hidden;background:#675948}
.jade-room-art,.jade-content {position:absolute;inset:0;width:100%;height:100%}
.jade-room-art {object-fit:fill;pointer-events:none}
.jade-content {--jade-silk:var(--popup-paper);--jade-edge:#cdb78d9c;--jade-ink:#274e42}
.jade-shell {
    position:absolute;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;
    padding:calc(var(--game-header-height,52px) + 9px) max(12px,env(safe-area-inset-right)) calc(77px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
}
.jade-toolbar {position:relative;grid-row:1;z-index:2;display:flex;justify-content:space-between;align-items:start;gap:7px}
.jade-actions {display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.jade-toolbar .jade-actions {justify-content:flex-end}
.jade-toolbar button,.jade-paper button.scene-label {min-height:38px}
.jade-stage {grid-row:2;position:relative;align-self:stretch;min-height:0;margin:0 -7px}
.jade-workshop .jade-stage {height:min(100%,50dvh);align-self:end}
.jade-workshop .jade-stage::before {
    content:"";position:absolute;left:26%;right:26%;bottom:18%;height:7%;
    background:radial-gradient(ellipse,#3c29233b,transparent 70%);pointer-events:none;
}
:is(.jade-stage[data-view=show],.jade-reward) {
    --jade-halo:#b4b4a485;--jade-shade:#292f2ccb;--jade-ray:#e6e3cd37;--jade-rim:#c5c6b29e;
}
:is(.jade-stage[data-view=show],.jade-reward)[data-jade-grade=良作] {
    --jade-halo:#70c5b59c;--jade-shade:#103f3ee0;--jade-ray:#beeddb4e;--jade-rim:#99c9b7ad;
}
:is(.jade-stage[data-view=show],.jade-reward)[data-jade-grade=珍品] {
    --jade-halo:#bc99daa6;--jade-shade:#342346e6;--jade-ray:#efd6f861;--jade-rim:#c5addcac;
}
:is(.jade-stage[data-view=show],.jade-reward)[data-jade-grade=传世] {
    --jade-halo:#ffd380b8;--jade-shade:#542e15eb;--jade-ray:#ffe4a773;--jade-rim:#f0d18bc4;
}
.jade-scene .jade-stage[data-view=show]::before,.jade-reward-stage {
    background:
        linear-gradient(131deg,var(--jade-ray),transparent 54%),
        radial-gradient(ellipse at 49% 44%,var(--jade-halo),var(--jade-shade) 82%),
        #43493d url("https://www.dejai.site/xiaoyu-pond/objects/905a9f22ebb4cccca1d1182c16037ab47689ff7528234b6285d45d007e07b52a/assets/jade/showcase.webp") 40% 45%/cover;
    border:1px solid var(--jade-rim);
}
.jade-scene .jade-stage[data-view=show]::before {
    content:"";position:absolute;inset:8% 1% 9%;pointer-events:none;
    border-radius:18px;
    box-shadow:0 6px 19px #2d241b50,inset 0 0 0 3px #fff5e213,inset 0 0 34px #19152755;
}
.jade-canvas {position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}
.jade-canvas:active {cursor:grabbing}
.jade-stage[data-view=layout] .jade-canvas {cursor:move}
.jade-stage[data-view=carve] .jade-canvas,.jade-stage[data-view=polish] .jade-canvas {cursor:crosshair}
.jade-loading {
    position:absolute;left:50%;top:53%;translate:-50% -50%;max-width:80%;width:max-content;
    color:var(--jade-ink);background:var(--jade-silk);padding:7px 12px;border-radius:12px;
    box-shadow:0 5px 15px #372d2624;font-weight:650;
}
.jade-stage[data-model-state=fallback] .jade-model-status {top:auto;bottom:3%;translate:-50% 0}
.jade-model-status button {margin-inline-start:7px}
.jade-paper {
    position:relative;grid-row:3;z-index:2;display:grid;gap:8px;padding:10px 11px;
    width:min(100%,550px);justify-self:center;max-height:min(44dvh,340px);overflow:auto;overscroll-behavior:contain;
    background:linear-gradient(135deg,#fff6e8a3,var(--jade-silk));
    border:1px solid var(--jade-edge);border-radius:14px;color:var(--jade-ink);
    -webkit-backdrop-filter:var(--popup-blur);backdrop-filter:var(--popup-blur);
    box-shadow:0 3px 18px #33281b47;
}
.jade-paper:has(> .jade-actions:empty) {gap:5px}
.jade-note,.jade-empty {margin:0;color:#465c4b;font-size:12px;line-height:1.45}
.jade-empty {grid-column:1 / -1;padding:5px 0}
.jade-heading {margin:0;color:#304f40;font:700 18px/1.2 var(--serif)}
#otherStock[data-stock=jade] .jade-heading {margin-block:7px 9px}
.jade-paper .scene-label[aria-pressed=true],.scene-bubble .scene-label[aria-pressed=true] {
    color:#284738;background:#d6e5cec9;border-color:#7b9c7799;
}
.jade-actions button[data-jade-buy],.jade-actions button[data-jade-next],
.jade-actions button[data-jade-exhibit],.jade-actions button[data-jade-claim] {
    background:#e3e8cde0;border-color:#8e9c78ad;color:#2c4938;
}
.jade-actions button[data-jade-buy] {flex:1}
.jade-materials {flex-wrap:nowrap}
.jade-materials button {
    flex:1;min-width:0;flex-direction:column;gap:1px;padding:3px 4px;
    border-radius:11px;letter-spacing:0;
}
.jade-materials .jade-item-art {width:30px;height:26px}
.jade-meter {
    display:grid;grid-template-columns:auto minmax(0,1fr) 36px;align-items:center;gap:8px;
    color:#3c5244;font-size:12px;font-weight:650;
}
.jade-meter progress {width:100%;height:8px;accent-color:#5d9576;appearance:none;border:none;border-radius:8px;background:#d8cfb8}
.jade-meter progress::-webkit-progress-bar {background:#d8cfb8;border-radius:8px}
.jade-meter progress::-webkit-progress-value {background:linear-gradient(90deg,#52826e,#94ad75);border-radius:8px}
.jade-meter progress::-moz-progress-bar {background:#74a380;border-radius:8px}
.jade-meter-number {text-align:right;font-variant-numeric:tabular-nums}
.jade-workbench-title {display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:38px}
.jade-workbench-title .jade-heading {min-width:0}
.jade-tool-rail {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.jade-tool-rail .jade-meter {
    grid-template-columns:minmax(0,1fr) auto;gap:4px 3px;padding:5px 6px 6px;
    --jade-step-track:#d9d6cd;--jade-step-fill:#9e9c94;
    background:#dedcd26b;border:1px solid transparent;border-radius:7px;color:#655f56;font:650 11px/1.2 var(--ui-font);
    min-height:37px;align-content:center;text-align:start;
}
.jade-tool-rail .jade-meter:disabled {opacity:1;cursor:default}
.jade-tool-rail .jade-meter progress {grid-column:1 / -1;grid-row:2;height:5px;background:var(--jade-step-track)}
.jade-tool-rail .jade-meter progress::-webkit-progress-bar {background:var(--jade-step-track)}
.jade-tool-rail .jade-meter progress::-webkit-progress-value {background:var(--jade-step-fill)}
.jade-tool-rail .jade-meter progress::-moz-progress-bar {background:var(--jade-step-fill)}
.jade-tool-rail .jade-meter[data-step-state=active] {
    --jade-step-track:#b8cdb4;--jade-step-fill:#56856d;
    background:#daead3dc;border-color:#6f917dab;color:#294c40;
}
.jade-tool-rail .jade-meter[data-step-state=ready] {
    background:#f2f0e6b8;border-color:#9b968a;color:#504c43;cursor:pointer;
}
.jade-range {
    display:grid;grid-template-columns:34px minmax(65px,1fr) 38px;align-items:center;gap:6px;
    min-height:37px;color:#384c3d;font-weight:650;
}
.jade-range input {width:100%;margin:0;accent-color:#668c70}
.jade-range output {font-size:11px;text-align:right;font-variant-numeric:tabular-nums}
.jade-layout-range {margin-block:-3px;min-height:33px}
.jade-layout-hint.is-blocked,.jade-cut-estimate.is-blocked {color:#803c33}
.jade-cut-estimate,.jade-form-summary {font-weight:650}
.jade-name {width:100%;min-width:0;min-height:42px;border-radius:8px;padding:5px 8px;border:1px solid #c6b989;background:#fff8e8;color:#2b493c;font-size:16px}
.jade-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.jade-form-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
.jade-shelf {max-height:min(22dvh,186px);overflow:auto}
.jade-card {
    display:grid;justify-items:center;align-content:start;gap:2px;min-width:0;text-align:center;
    padding:4px 4px 6px;border:1px solid #c1a67160;border-radius:9px;
    background:linear-gradient(#fff9eeaa,#ece3c785);color:#304b3d;
    font-size:12px;line-height:1.24;
}
.jade-card strong {overflow-wrap:anywhere}
.jade-card small {font-size:10px;color:#59634f;line-height:1.27}
.jade-card:disabled {opacity:.62}
.jade-card:hover:not(:disabled),.jade-card:focus-visible {background:#f4f5dfdc}
.jade-item-art {display:block;object-fit:contain;width:100%;height:clamp(38px,9vh,70px);filter:drop-shadow(0 3px 2px #3044342c)}
.jade-form-sketch {pointer-events:none;filter:none}
.jade-seat-option {
    display:flex;align-items:center;gap:6px;min-height:39px;padding:4px 9px;border:1px solid transparent;border-radius:8px;
    font:650 12px/1.35 var(--ui-font);text-align:start;
}
.jade-seat-option .jade-item-art {width:32px;height:32px;flex:none}
[data-jade-grade=凡品] {--jade-card-light:#f2eee2;--jade-card-shade:#e2d8c6;--jade-card-rim:#b6a48b;--jade-card-ink:#4f4639}
[data-jade-grade=良作] {--jade-card-light:#e4f1e9;--jade-card-shade:#bbdbce;--jade-card-rim:#779d8e;--jade-card-ink:#234f42}
[data-jade-grade=珍品] {--jade-card-light:#f2e8f6;--jade-card-shade:#d7c2e3;--jade-card-rim:#aa89b6;--jade-card-ink:#54355e}
[data-jade-grade=传世] {--jade-card-light:#fff2ce;--jade-card-shade:#efcc82;--jade-card-rim:#bd904e;--jade-card-ink:#694816}
:is(.jade-card,.jade-seat-option,.decoration-pick,.jade-warehouse-preview)[data-jade-grade],.jade-pedestal[data-jade-grade] .jade-pedestal-caption {
    background:linear-gradient(145deg,var(--jade-card-light),var(--jade-card-shade));
    border-color:var(--jade-card-rim);color:var(--jade-card-ink);
}
.jade-warehouse-preview {
    display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;
    padding:6px 8px;border:1px solid transparent;border-radius:9px;
}
.jade-warehouse-preview .jade-item-art {height:clamp(52px,12dvh,100px)}
.jade-warehouse-sell {width:100%;min-height:40px;justify-content:center;white-space:nowrap}
.jade-sale-hint {margin:0;color:var(--ui-accent);font-size:12px;line-height:1.35}
.jade-card[data-jade-grade] small,.decoration-pick[data-jade-grade] .decoration-pick-count {color:var(--jade-card-ink)}
:is(.jade-card,.jade-seat-option,.decoration-pick)[data-jade-grade]:is(:hover,:focus-visible) {filter:brightness(1.04)}
.jade-display-board {position:absolute;inset:0;pointer-events:none}
.jade-pedestal,.jade-pedestal:active:not(:disabled) {
    position:absolute;transform:translate(-50%,calc(-100% + 23px));translate:none;
    display:flex;align-items:flex-end;justify-content:center;width:24%;height:clamp(52px,10dvh,88px);
    padding:0 3px;border:0;background:none;box-shadow:none;pointer-events:auto;z-index:1;
}
.jade-pedestal .jade-item-art {position:absolute;inset:auto 0 9px;height:calc(100% - 9px)}
.jade-pedestal-caption {
    position:relative;display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    padding:2px 7px;border-radius:5px;background:#f8ecd4dc;color:#3e5144;
    border:1px solid #e4d2aab3;font:650 11px/1.35 var(--ui-font);box-shadow:0 2px 5px #4636263a;
}
.jade-pedestal.is-empty .jade-pedestal-caption {background:#f6ead1bf}
.jade-pedestal.is-locked .jade-pedestal-caption {background:#584839d9;border-color:#c3a16b91;color:#fff0cf}
.jade-pedestal-lock {
    position:absolute;bottom:22px;display:grid;place-items:center;width:26px;height:25px;
    border:1px solid #dfb57c;border-radius:4px;background:#804736e6;color:#fff1ce;
    box-shadow:0 2px 5px #48302262;font:700 14px/1 var(--serif);transform:rotate(-6deg);
}
.jade-visitors {position:absolute;inset:0;pointer-events:none;z-index:2}
.jade-guest {
    position:absolute;transform:translate(-50%,-100%);width:clamp(40px,17%,96px);z-index:var(--depth);
}
.jade-guest img {
    display:block;width:100%;height:clamp(58px,13dvh,113px);object-fit:contain;object-position:bottom;
    filter:drop-shadow(2px 4px 3px #49332361);animation:jade-welcome .9s var(--arrival) ease-out both;
}
.jade-remark {
    position:absolute;left:50%;bottom:92%;transform:translateX(-50%);
    padding:5px 8px;min-width:6em;max-width:122px;width:max-content;background:#fff2dce8;color:#374c3e;
    border:1px solid #d8be91;border-radius:9px 9px 9px 3px;
    font:650 11px/1.45 var(--ui-font);box-shadow:0 3px 8px #382d2944;
}
.jade-remark::after {
    content:"";position:absolute;top:100%;left:48%;border:4px solid transparent;border-top-color:#fff2dce8;
}
.jade-guest:first-child .jade-remark,.jade-guest:last-child .jade-remark {left:60%}
.jade-guest:is(:nth-child(2),:nth-child(5)) .jade-remark {left:35%}
@keyframes jade-welcome {
    0% {opacity:0;transform:translateX(var(--direction))}
    100% {opacity:1;transform:translateX(0)}
}
.jade-gallery .jade-content[data-jade-theme=lotus] .jade-paper {--jade-silk:#f4e2d999;--jade-edge:#b59a8b}
.jade-gallery .jade-content[data-jade-theme=mist] .jade-paper {--jade-silk:#e1e8dc99;--jade-edge:#86a797}
.jade-gallery .jade-content[data-jade-theme=moon] .jade-paper {--jade-silk:#dce7f19c;--jade-edge:#93a7ab}
.jade-gallery-ledger {
    grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:9px;row-gap:3px;
}
.jade-gallery-ledger .jade-heading {grid-area:1 / 1}
.jade-gallery-ledger .jade-actions {grid-area:1 / 2 / span 2;justify-content:flex-end}
.jade-gallery-ledger .jade-gallery-clock {grid-area:2 / 1}
.jade-gallery-clock {font-variant-numeric:tabular-nums}
.jade-theme-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
.jade-theme-option {flex-direction:column;gap:3px;min-height:39px;overflow:hidden}
.jade-theme-art {display:block;width:100%;height:48px;object-fit:cover;object-position:50% 48%;border-radius:5px}
.scene-bubble .jade-theme-option[aria-pressed=true] {background:#d6e5ceaa}
.jade-gallery-price {font-size:11px;color:#6e522b}
.jade-stage[data-presentation=painted] .jade-canvas {cursor:crosshair}
.jade-stage[data-presentation=painted][data-view=show] .jade-canvas {cursor:grab}
.jade-grade-token {
    padding:3px 8px;border-radius:6px;border:1px solid #9c907769;background:#f7eed5b8;
    font:700 11px/1.35 var(--ui-font);color:#534733;white-space:nowrap
}
.jade-grade-token[data-jade-grade=良作] {color:#284f42;background:#d7e9d2ba;border-color:#829e7f85}
.jade-grade-token[data-jade-grade=珍品] {color:#574477;background:#e9def4cc;border-color:#a98eb982}
.jade-grade-token[data-jade-grade=传世] {color:#794b25;background:#f5deb0cf;border-color:#b9985f9c}
.jade-reward {
    position:fixed;inset:0;margin:auto;width:min(360px,calc(100vw - 28px));max-height:calc(100dvh - 32px);
    padding:10px 13px 13px;border:1px solid #e9d5aac9;border-radius:21px;color:#304b3f;
    background:#fff1dce5;box-shadow:0 16px 44px #191c1c76;backdrop-filter:blur(14px);
    overflow:auto;overscroll-behavior:contain;text-align:center;
}
.jade-reward[open] {display:grid;gap:8px;animation:jade-award-in .3s ease-out both}
.jade-reward::backdrop {background:#221e1a73;backdrop-filter:blur(3px)}
.jade-reward[data-jade-grade=传世] {border-color:#ffdea0}
.jade-reward-stage {
    display:grid;place-items:center;overflow:hidden;position:relative;isolation:isolate;
    height:min(42dvh,295px);border-radius:14px;
}
.jade-reward-stage img {
    width:100%;height:100%;max-height:100%;object-fit:contain;
    translate:0 var(--jade-art-offset,0);
    filter:drop-shadow(1px 9px 14px #261f2360);animation:jade-award-in .48s .05s ease-out both;
}
.jade-reward[data-jade-grade=传世] .jade-reward-stage::after,
.jade-reward[data-jade-grade=珍品] .jade-reward-stage::after {
    content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(112deg,transparent 31%,#fff8df65 49%,transparent 64%);
    mix-blend-mode:screen;animation:jade-award-sweep .95s .2s ease-out both;
}
.jade-reward-close {
    position:absolute;z-index:1;top:16px;right:21px;display:flex;align-items:center;gap:4px;
    padding:5px 8px;color:#fff4df;font:650 11px var(--ui-font);--close-focus:#f9ebce;
}
:root button.jade-reward-close[data-game-icon] {color:#fff4df;text-shadow:0 1px 3px #221c16}
.action-icons-ready .jade-reward-close[data-game-icon]::before {
    filter:brightness(0) invert(1) sepia(.19) drop-shadow(0 1px 2px #221c16);
}
.jade-reward-title {margin:2px 0 0;font:700 23px/1.16 var(--serif);color:#385444}
.jade-reward .jade-actions {justify-content:center}
.jade-reward-grade {font-size:15px;padding:4px 11px}
.jade-reward-material {font-size:12px;font-weight:600;color:#596652}
.jade-signature {display:grid;gap:8px;padding-top:8px;border-top:1px solid #bda98163}
.jade-reward[open] .jade-signature {animation:jade-award-in .23s .24s ease-out both}
.jade-signature label {display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:9px;text-align:start;font-size:13px;font-weight:650}
.jade-signature button {justify-self:center;min-height:42px}
@keyframes jade-award-in {
    from {opacity:0;transform:translateY(9px) scale(.96)}
    to {opacity:1;transform:translateY(0) scale(1)}
}
@keyframes jade-award-sweep {
    from {opacity:0;transform:translateX(-65%)}
    32% {opacity:.8}
    to {opacity:0;transform:translateX(70%)}
}
#shopPage .market-commission {left:17%;top:79%;width:27%;height:17%}
#shopPage .market-jade {left:50%;top:79%;width:29%;height:18%}
#shopPage .market-tailor {left:83%;top:79%;width:29%;height:18%}
@media (max-height:665px){
    .jade-shell {padding-top:calc(var(--game-header-height,45px) + 6px);padding-bottom:calc(67px + env(safe-area-inset-bottom))}
    .jade-paper {max-height:min(43dvh,220px);gap:5px;padding:8px}
    .jade-toolbar button,.jade-paper button.scene-label {min-height:33px}
    .jade-toolbar .scene-label {padding-inline:7px}
    .jade-heading {font-size:16px}
}
@media (prefers-reduced-motion:reduce) {
    .jade-guest img,.jade-reward[open],.jade-reward-stage img,.jade-reward[open] .jade-signature {animation:none}
    .jade-reward .jade-reward-stage::after {display:none}
}
.jade-tickets-spent {
    position:absolute;left:50%;top:calc(100% + 3px);transform:translateX(-50%);white-space:nowrap;
    font:650 9px/1.2 var(--ui-font);padding:2px 5px;border-radius:6px;
    color:#633f26;background:#ffefcff2;
}


.homestead-map {
    position:relative;isolation:isolate;container-type:inline-size;width:100%;height:100%;border-radius:0;
    background:#d8b47b;overflow:hidden
}
.homestead-map > .homestead-ground-art:first-child {
    position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;
    object-fit:fill;pointer-events:none
}
.homestead-buildings {position:absolute;inset:0;z-index:1}
.homestead-map > .decoration-ground {z-index:2}
.homestead-map .yard-edit {top:calc(var(--game-header-height,50px) + 10px);z-index:4}
.homestead-unit,.homestead-unit:active:not(:disabled) {
    --homestead-art-width:min(var(--homestead-unit-width),calc(22.5vh * var(--homestead-scale,1)));
    --homestead-sign-font:clamp(9px,calc(2.9cqw * var(--homestead-scale,1)),14px);
    --homestead-sign-width:calc(var(--homestead-sign-font) * (var(--homestead-sign-length,4) + 1.1) + 2px);
    position:absolute;display:grid;justify-items:center;align-content:end;
    width:max(44px,var(--homestead-art-width),var(--homestead-sign-width));
    min-height:44px;background:transparent;
    transform:translate(clamp(calc(3px - var(--homestead-left-clearance)),-50%,
        calc(var(--homestead-right-clearance) - 100% - 3px)),-100%);
    border:0;padding:0 0 7px;gap:0;box-shadow:none;-webkit-tap-highlight-color:transparent
}
.homestead-unit:is(:hover,:focus-visible) {background:transparent}
.homestead-building-art {
    display:block;width:var(--homestead-art-width);height:auto;max-height:calc(17vh * var(--homestead-scale,1));object-fit:contain;object-position:bottom;
    pointer-events:none;user-select:none;filter:drop-shadow(1px 3px 2px #724f2f36)
}
.homestead-unit.is-draggable {touch-action:none;cursor:grab}
.homestead-unit[data-facing="mirrored"] .homestead-building-art {transform:scaleX(-1)}
.homestead-unit.is-draggable:active {cursor:grabbing}
.homestead-unit.is-selected .homestead-building-art {filter:drop-shadow(0 0 2px #fff4bf) drop-shadow(0 0 5px #146153)}
.homestead-sign {
    position:absolute;z-index:1;bottom:0;left:50%;white-space:nowrap;width:max-content;
    max-width:calc(100cqw - 6px);overflow:hidden;text-overflow:ellipsis;
    transform:translateX(-50%);
    padding:.2em .55em;color:#3f4d32;background:#fff3d9ec;
    border:1px solid #9674479c;border-radius:5px;
    box-shadow:0 2px 4px #4d361b36;font:700 var(--homestead-sign-font)/1.25 var(--serif);
    pointer-events:none
}
.homestead-editor-close {
    position:absolute;right:max(12px,env(safe-area-inset-right));
    top:calc(var(--game-header-height,50px) + 10px);z-index:4;min-height:36px
}
.homestead-renovation::after {
    content:'';width:5px;height:5px;margin:0 1px 3px 2px;transform:rotate(45deg);
    border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
}
#sceneBubble:has(.homestead-renovation-list) {width:min(152px,calc(100dvw - 18px));border-radius:12px}
#sceneBubble:has(.homestead-renovation-list) .bubble-heading {display:none}
#sceneBubble:has(.homestead-renovation-list) .bubble-body {padding:4px 8px}
.homestead-renovation-list {display:grid}
#sceneBubble .homestead-renovation-list .bubble-item {
    justify-content:flex-start;min-height:41px;padding-inline:8px;background:none;border-radius:0;
}
#sceneBubble .homestead-renovation-list .bubble-item:last-child {border-bottom:0}
#sceneBubble .homestead-renovation-list .bubble-item:is(:active,:focus-visible) {background:#e1e9d5a8}
.homestead-palette {
    position:absolute;z-index:5;left:50%;bottom:calc(var(--game-dock-clearance,65px) + 5px);
    width:min(92%,372px);transform:translateX(-50%);
    display:grid;gap:5px;padding:8px;color:#3e533d;border:1px solid #b99b6d;
    border-radius:12px;background:#fbf2dbf3;box-shadow:0 5px 14px #5639244a
}
.homestead-palette-top {top:calc(var(--game-header-height,50px) + 51px);bottom:auto}
.homestead-palette-head {display:flex;justify-content:space-between;align-items:center}
.homestead-palette-head h3 {margin:0;padding-left:4px;font:700 16px/1.4 var(--serif)}
.homestead-palette .scene-label {min-height:31px;font-size:12px}
.homestead-styles {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.homestead-style {
    display:grid;justify-items:center;line-height:1.2;gap:3px;padding:4px 2px;text-align:center;
    border:1px solid #a793644f;border-radius:7px;background:#efdfbd8c;color:#4f533a
}
.homestead-style img {width:100%;height:42px;object-fit:contain}
.homestead-style small {font-size:10px}
.homestead-style strong {font-size:11px;font-weight:650}
.homestead-style[aria-pressed='true'] {border-color:#648367;background:#e3ecd8;color:#35573b}
.homestead-hint {font-size:12px;margin:0;text-align:center}
.homestead-hint.is-blocked {color:#914e31}
.homestead-transform {display:grid;grid-template-columns:auto minmax(32px,1fr) auto auto;align-items:center;gap:6px;font-size:12px}
.homestead-transform input {min-width:0;width:100%;accent-color:#65846c}
.homestead-size {font-variant-numeric:tabular-nums}
.homestead-map>:is(.homestead-road-layer,.homestead-road-preview) {
    position:absolute;inset:0;width:100%;height:100%;pointer-events:none
}
.homestead-map.is-road-editing .homestead-buildings,
.homestead-map.is-road-editing .decoration-ground {opacity:.78}
.homestead-road-input {
    position:absolute;inset:0;z-index:3;touch-action:none;cursor:crosshair
}
.homestead-road-palette {
    max-width:345px;background:#f9eed8ee;color:#344f3c;gap:4px
}
.homestead-road-head,.homestead-road-actions {
    display:flex;align-items:center;justify-content:space-between;gap:5px
}
.homestead-road-head strong {padding-inline:5px;font:700 15px/1.35 var(--serif)}
.homestead-road-head button {padding-inline:6px;min-height:27px;font-size:11px;color:#4a6954}
.homestead-road-materials {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.homestead-road-material {
    display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;
    align-items:center;justify-items:start;column-gap:3px;min-height:36px;padding:3px 5px;
    border:1px solid #aa8d653f;border-radius:7px;background:#fff9e793;color:#384c38;
    text-align:left;line-height:1.1
}
.homestead-road-material strong {font-size:12px}
.homestead-road-material small {font-size:9px;white-space:nowrap;color:#6d532e}
.homestead-road-material[aria-pressed='true'],.homestead-road-actions [aria-pressed='true'] {
    background:#d9e7ce;color:#2f5a42;border:1px solid #91a582
}
.homestead-road-swatch {grid-row:span 2;display:block;width:24px;height:24px}
.homestead-road-widths {
    display:grid;grid-template-columns:auto repeat(3,minmax(0,1fr));align-items:center;gap:4px;
}
.homestead-road-width-label {padding-inline:4px;font:600 11px var(--ui-font);color:#4c5c45}
.homestead-road-width {
    display:flex;align-items:center;justify-content:center;gap:4px;min-height:31px;padding:2px 4px;
    border:1px solid #a8906d38;border-radius:6px;background:#fff9e790;color:#47614c;
    white-space:nowrap;font:600 11px var(--ui-font);
}
.homestead-road-width[aria-pressed='true'] {border-color:#8ba184;background:#dce7d2;color:#314f3e}
.homestead-road-width-line {
    width:12px;height:var(--road-width-sample);border-radius:5px;background:currentColor;opacity:.72;
}
.homestead-road-quote {min-height:15px;padding-inline:5px;font-size:11px;color:#4c5c45}
.homestead-road-quote.is-blocked {color:#8f3f2f}
.homestead-road-actions .homestead-road-save {margin-left:auto;padding-inline:9px}
@media(max-height:630px) {
    .homestead-building-art {max-height:calc(15.2vh * var(--homestead-scale,1))}
    .homestead-palette {padding:6px}
    .homestead-style img {height:35px}
    .homestead-road-palette {gap:3px}
}


.merchant-entrance {
    position:absolute;z-index:4;display:grid;justify-items:center;align-items:end;
    width:clamp(65px,25%,112px);height:clamp(108px,22dvh,182px);padding:0;
    inset:clamp(86px,15dvh,136px) 3.6% auto auto;border:0;background:none;color:#385346;
    cursor:pointer;touch-action:manipulation;
}
.market-scene .merchant-entrance {height:clamp(82px,13.6dvh,125px)}
#heroRoom .merchant-entrance {
    inset:calc(var(--hero-tools-top,65px) + 45px) 2% auto auto;
    width:clamp(54px,19%,92px);height:clamp(96px,19dvh,160px);
}
.merchant-entrance[data-merchant="jade"] {
    inset:clamp(114px,21dvh,192px) 2% auto auto;
    width:clamp(48px,17%,76px);height:clamp(94px,16dvh,150px);
}
.merchant-scene-portrait {
    width:100%;height:100%;object-fit:contain;object-position:center bottom;grid-area:1/1;
    filter:drop-shadow(0 3px 3px #3222184a);pointer-events:none;
}
.merchant-name {
    min-width:45px;max-width:100%;grid-area:1/1;z-index:1;
    padding:3px 8px;border:1px solid #c9b58caa;border-radius:11px;
    background:#f9f1dcf0;box-shadow:0 2px 6px #3f35252c;
    text-align:center;font-size:11px;font-weight:700;white-space:nowrap;pointer-events:none;
}
.merchant-entrance:focus-visible {outline:2px solid #658374;outline-offset:2px;border-radius:9px}
.merchant-entrance:active .merchant-scene-portrait {transform:translateY(1px)}
.merchant-panel {
    --merchant-ink:#315749;--merchant-tint:#9cad87;--merchant-wash:#e2e7ce;
    color:var(--merchant-ink);display:grid;gap:6px;min-width:0;
}
.merchant-panel[data-tone="rose"] {--merchant-tint:#c08e7b;--merchant-wash:#f0ded1}
.merchant-panel[data-tone="indigo"] {--merchant-tint:#829ca4;--merchant-wash:#dce7e6}
.merchant-panel[data-tone="water"] {--merchant-tint:#83a5a0;--merchant-wash:#d8e9df}
.merchant-panel[data-tone="plum"] {--merchant-tint:#ad889e;--merchant-wash:#ecdae4}
.merchant-panel[data-tone="jade"] {--merchant-tint:#6b9c89;--merchant-wash:#d7e7d6}
.merchant-summary {
    display:grid;grid-template-columns:50px minmax(0,1fr);gap:5px;align-items:center;
    padding:5px 5px 3px;border-radius:8px;
    background:linear-gradient(105deg,var(--merchant-wash),#fdf7e8a1);
}
.merchant-portrait {width:50px;height:74px;object-fit:contain;object-position:center bottom}
.merchant-affinity {padding-right:3px}
.merchant-affinity-title {
    display:flex;justify-content:space-between;align-items:baseline;gap:4px;font-size:.8rem;
}
.merchant-number {font-size:.67rem;font-variant-numeric:tabular-nums}
.merchant-progress {
    appearance:none;display:block;width:100%;height:5px;margin:4px 0;border:0;border-radius:8px;
    background:#f7f2e5;overflow:hidden;
}
.merchant-progress::-webkit-progress-bar {background:#f7f2e5}
.merchant-progress::-webkit-progress-value {background:var(--merchant-tint)}
.merchant-progress::-moz-progress-bar {background:var(--merchant-tint)}
.merchant-rate,.merchant-next,.merchant-note,.merchant-dialog {margin:0;font-size:.72rem;line-height:1.55}
.merchant-next,.merchant-note {color:#526657;font-size:.69rem}
.merchant-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.merchant-tab {
    border:0;padding:0 3px;min-height:31px;border-radius:6px;color:var(--merchant-ink);
    background:#fffaf04d;font:inherit;font-size:.74rem;
}
.merchant-tab[aria-pressed="true"] {background:var(--merchant-wash);font-weight:700}
.merchant-page {display:grid;justify-items:start;gap:5px}
.merchant-dialog {color:#334d3e}
.merchant-action {justify-self:end}
.merchant-saving {font-size:.7rem;color:#4e714e;font-weight:700}
.merchant-quantity {
    width:2.7rem;min-height:30px;padding:1px 3px;
    border-radius:7px;border:1px solid #cfbd9d;background:#fcf5e4;color:#385346;font:inherit;font-size:.72rem;
}
.market-card-footer:has(.merchant-quantity) .market-buy {white-space:nowrap}
@media (max-width:355px) {
    .market-card-footer:has(.merchant-quantity) {
        display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 4px;
    }
    .market-card-footer:has(.merchant-quantity) .market-buy {grid-column:1 / -1;justify-self:end}
}
.merchant-gift {
    width:100%;gap:5px;
}
.merchant-gift .item-card {--item-art-size:28px;min-height:48px;padding:4px}
.merchant-gift .item-card-face {min-height:38px;gap:4px}
.merchant-gift .item-card[aria-pressed='true'] {
    background:var(--merchant-wash);border-color:var(--merchant-tint);
}


/* 好友往来、名帖与家园拜访的纸面和场景工具。 */
.social-page.world-page {position:absolute;inset:0;overflow:hidden;isolation:isolate;background:#627565}
.social-scene,.social-background {position:absolute;inset:0;width:100%;height:100%}
.social-background {object-fit:cover;pointer-events:none}
.social-gallery-scene>.social-background {object-fit:fill}
.social-gallery-scene .jade-pedestal:not(button) {pointer-events:none}
.social-toolbar {
    position:absolute;top:calc(var(--game-header-height,52px) + 8px);left:12px;right:12px;z-index:3;
    display:flex;align-items:center;gap:6px;pointer-events:none
}
.social-toolbar>* {pointer-events:auto}
.social-title {
    flex:0 1 auto;min-width:0;margin:0 auto 0 0;padding:6px 10px;border-radius:8px;
    background:#fff4dce5;color:#234439;font:700 clamp(15px,4.3vw,20px)/1.2 var(--serif);
    box-shadow:0 1px 5px #293d2c33;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.social-toolbar button {flex:none;white-space:nowrap}
.social-panel {
    position:absolute;z-index:2;top:calc(var(--game-header-height,52px) + 55px);
    left:50%;transform:translateX(-50%);width:min(450px,calc(100% - 24px));
    max-height:calc(100% - var(--game-header-height,52px) - max(130px,calc(env(safe-area-inset-bottom) + 130px)));
    padding:12px;overflow:auto;overscroll-behavior:contain;
    border:1px solid #b8ae84aa;border-radius:15px;
    background:linear-gradient(135deg,#fff9e9f5,#e9eddaee);color:var(--ink,#24463a);
    box-shadow:0 8px 25px #27362854;backdrop-filter:blur(7px)
}
.social-panel p {margin:0}
.social-panel>*+* {margin-top:9px}
.social-panel-directory {display:flex;flex-direction:column;overflow:hidden}
.social-panel-directory>:not(.social-directory-body) {flex:none}
.social-directory-body {min-height:0;overflow:auto;overscroll-behavior:contain}
.social-directory-body>*+* {margin-top:9px}
.social-panel-directory .social-find-form {grid-template-columns:minmax(0,1fr) auto;align-items:end}
.social-note {font:500 13px/1.5 var(--ui-font);color:#43584a}
.social-tabs {
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:3px;
    border-radius:9px;background:#687b5e24
}
.social-tab,.social-button {
    min-height:36px;padding:5px 8px;font:650 13px/1.25 var(--ui-font);color:#284a3e;
    border:1px solid #7b957847;border-radius:7px;background:#edf2dd;cursor:pointer
}
.social-tab {position:relative;border-color:transparent;background:transparent;color:#43584a;white-space:nowrap}
.social-tab[aria-pressed='true'],.social-submit {background:#355e4b;color:#fbf6e6;border-color:#355e4b}
.social-button:disabled {cursor:default;opacity:.58}
.social-button:focus-visible,.social-tab:focus-visible,.social-page input:focus-visible,.social-page select:focus-visible,
.social-page textarea:focus-visible {outline:2px solid #3d7a62;outline-offset:1px}
.social-form {display:grid;gap:9px}
.social-field {
    display:grid;grid-template-columns:minmax(0,1fr);gap:4px;font:600 13px/1.4 var(--ui-font)
}
.social-field:has([data-social-sms]) {grid-template-columns:minmax(0,1fr) auto;align-items:center}
.social-field:has([data-social-sms])>span {grid-column:1/-1}
:is(.social-page,#namecardDialog) :is(input:not([type='checkbox']),textarea,select) {
    min-width:0;width:100%;border:1px solid #a6ab84;border-radius:7px;padding:7px 9px;
    min-height:39px;background:#fffbef;color:#234237;font:500 16px/1.3 var(--ui-font);
}
.social-form .social-submit {justify-self:start;min-width:82px}
.social-menu-items .item-card[aria-pressed='true'] {background:#e3ead6;border-color:#789471}
.social-panel-menu {display:flex;flex-direction:column;overflow:hidden}
.social-menu-form {display:flex;flex-direction:column;min-height:0}
.social-menu-controls {display:grid;gap:5px;flex:none}
.social-menu-status {display:flex;justify-content:space-between;align-items:center;gap:7px}
.social-menu-count,.social-menu-card-state {font-size:11px;color:#4d674d}
.social-menu-card-state {display:block;text-align:right;padding:2px 3px 0}
.social-menu-scroll {min-height:0;overflow:auto;overscroll-behavior:contain}
.social-menu-footer {display:flex;justify-content:flex-end;flex:none}
.social-code,.social-person,.social-room-card,.social-item {
    padding:8px;border:1px solid #acab844e;border-radius:8px;background:#fffdf38c
}
.social-code {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.social-code strong {font:700 19px/1.2 var(--ui-font);font-variant-numeric:tabular-nums;letter-spacing:.12em}
.social-person-name {display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap}
.social-person-head {display:flex;align-items:center;gap:7px;min-width:0}
.social-avatar-frame {
    position:relative;display:grid;place-items:center;width:36px;height:36px;overflow:hidden;flex:none;
    border:1px solid #b7ab80;border-radius:48%;background:#e5ebd4;color:#385449;
    font:700 16px/1 var(--serif)
}
.social-avatar {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:#e5ebd4}
.social-avatar-card {display:flex;align-items:center;gap:11px}
.social-avatar-card .social-avatar-frame {width:62px;height:62px;font-size:25px}
.social-residence-owner {
    position:absolute;left:49%;top:73%;width:23%;height:auto;max-height:37%;object-fit:contain;
    transform:translate(-50%,-100%);filter:drop-shadow(0 3px 4px #3c34275c)
}
.social-person-name strong,.social-room-card strong {overflow-wrap:anywhere}
.social-person small,.social-item small,.social-room-card small {font-size:12px;color:#556758}
.social-person-name small {white-space:nowrap}
.social-person-name .social-person-level {font-weight:700;color:#735730}
.social-discovery {display:grid;gap:7px}
.social-discovery-head {display:flex;justify-content:space-between;align-items:center;gap:8px}
.social-stranger-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.social-stranger {
    display:flex;align-items:center;gap:7px;min-width:0;min-height:48px;padding:5px 7px;text-align:left;
    border:1px solid #a6976c54;border-radius:8px;background:#fffaf0a6;color:#2d483e;
}
.social-stranger:active {background:#d7e2c9cb}
.social-stranger-name {display:grid;min-width:0;gap:1px;font:600 12px/1.25 var(--ui-font)}
.social-stranger-name strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.social-stranger-name small {color:#735730;font-weight:700}
.social-actions {display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.social-person>.social-actions,.social-room-card>.social-actions {margin-top:5px}
.social-actions button {min-width:0}
.social-muted-button {background:#f4f0dd;color:#5a6755}
.social-item {display:flex;flex-wrap:wrap;gap:5px 7px;align-items:center}
.social-item :is(img,.fish-icon),.social-room-card-title img {width:43px;height:43px;object-fit:contain;flex:none}
.social-item small {flex:1 0 42%;line-height:1.4}
.social-toggle {
    min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 7px;
    border-bottom:1px solid #b3b39160;font:550 14px/1.3 var(--ui-font);cursor:pointer
}
.social-toggle input {width:18px;height:18px;flex:none;accent-color:#457052}
.social-panel-chat {display:flex;flex-direction:column;height:100%;overflow:hidden;background:linear-gradient(160deg,#f9f3e0eb,#e4e9ddea)}
.social-chat-list {
    flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 1px 5px;
    display:flex;flex-direction:column;gap:9px
}
.social-chat-row {position:relative;display:flex;flex:none;align-items:flex-start;gap:7px}
.social-chat-row.is-own {flex-direction:row-reverse}
.social-chat-row .social-avatar-frame {width:32px;height:32px;border-radius:9px}
.social-chat-time {align-self:center;color:#536458;font:500 11px/1.3 var(--ui-font);padding:3px 6px}
.social-message {
    max-width:calc(100% - 76px);min-width:0;padding:6px 9px;border-radius:3px 12px 12px 12px;
    background:#fffaf1;color:#284339;overflow-wrap:anywhere;white-space:pre-wrap;
    box-shadow:0 1px 2px #4a654524
}
.social-chat-row.is-own .social-message {max-width:calc(100% - 46px);background:#d5e8d5;border-radius:12px 3px 12px 12px}
.social-message p {font-size:14px;line-height:1.45}
.social-compose {
    position:relative;flex:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;
    gap:5px;align-items:end;padding-top:5px;border-top:1px solid #778a6242
}
.social-report {
    flex:none;display:grid;place-items:center;width:25px;min-height:30px;border:0;background:none;color:#526550;
    font:600 15px/1 var(--ui-font);cursor:pointer
}
.social-emoji-trigger {
    min-width:40px;min-height:40px;padding:0 7px;border-radius:9px;
    font-size:22px;line-height:1;color:#315446
}
.social-emoji-panel {
    position:absolute;bottom:calc(100% + 5px);left:0;right:0;display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:5px;max-height:218px;overflow:auto;
    background:#fbf8eefd;border:1px solid #c7ccaf;border-radius:10px;box-shadow:0 4px 13px #5f726542
}
.social-emoji {
    display:grid;place-items:center;min-height:36px;padding:2px;border:0;border-radius:6px;
    background:none;font-size:21px;line-height:1;cursor:pointer
}
.social-emoji:hover,.social-emoji:focus-visible {background:#e3ecd5}
.social-count {
    display:inline-grid;min-width:16px;height:16px;place-items:center;padding:0 4px;
    border-radius:100px;background:#af3638;color:#fff7e9;border:1px solid #fff4d5;
    font:700 10px/1 var(--ui-font);font-variant-numeric:tabular-nums;pointer-events:none
}
.social-count[hidden],.social-emoji-panel[hidden],.social-avatar[hidden] {display:none}
.social-tab>.social-count,.social-chat-button>.social-count {
    position:absolute;z-index:1;top:-3px;right:-1px
}
.social-chat-button,#socialOpen {position:relative}
.social-dock-count {position:absolute;z-index:1;top:1px;left:calc(50% + 6px)}
.social-history {display:grid;gap:6px}
.social-section-title {margin:5px 0;color:#2a4a3e;font:700 17px/1.3 var(--serif)}
.social-history-card {
    display:flex;align-items:center;gap:8px;min-height:51px;padding:6px 8px;
    border:1px solid #acb18b66;border-radius:9px;background:#fffdf090
}
.social-history-copy,.social-history-meta {display:grid;gap:3px;min-width:0}
.social-history-copy {flex:1;overflow-wrap:anywhere}
.social-history-copy span,.social-history-card small {font:500 11px/1.3 var(--ui-font);color:#536757}
.social-history-meta {text-align:right;white-space:nowrap}
.social-history-meta .social-visit-direction {font-weight:650;color:#39594a}
#profileOpen .social-avatar-frame {width:32px;height:32px;border-radius:45%;font-size:15px}
#namecardDialog[open] {
    width:min(365px,calc(100% - 24px));max-height:82dvh;padding:13px;overflow:hidden;
    display:flex;flex-direction:column;gap:8px;color:#234237;
    background:linear-gradient(152deg,#fff8e9f6,#eef1def2);border:1px solid #b5ae83cc;
    box-shadow:0 13px 42px #2f503251
}
#namecardDialog::backdrop {background:#25443769;backdrop-filter:blur(3px)}
#namecardDialog .dialog-heading {align-items:center;flex:none;margin:0;padding-bottom:6px}
#namecardDialog .dialog-heading h2 {margin:0;font:700 22px/1.2 var(--serif)}
#namecardDialog #namecardContent {min-height:0;overflow:auto;padding:1px;overscroll-behavior:contain}
#namecardContent>*+* {margin-top:9px}
#namecardContent .namecard-return {margin-bottom:4px}
#namecardContent .social-form {padding-top:2px}
.social-gender {
    min-inline-size:0;margin-inline:0;padding:0;border:0;display:flex;gap:8px;align-items:center
}
.social-gender legend {padding:0;margin:0 0 5px;color:#42564c;font-size:.82rem;font-weight:700}
.social-gender button {min-inline-size:78px;min-block-size:38px}
.social-gender button[aria-pressed="true"] {background:#dce5d4c4;box-shadow:inset 0 0 0 1px #789475;color:#2c4539}
.social-room-card-title {display:flex;align-items:center;gap:7px}
.social-room-card-title small {display:block;margin-top:2px}
.social-room-card[data-jade-grade] {background:linear-gradient(145deg,var(--jade-card-light),var(--jade-card-shade));border-color:var(--jade-card-rim)}
.social-visit-ground,.social-scenery,.social-props {position:absolute;inset:0}
.social-visit-ground>.homestead-map {width:100%;height:100%}
.social-props,.social-scenery {pointer-events:none}
.social-prop {position:absolute;transform:translate(-50%,-90%);height:auto;max-height:22%;object-fit:contain}
.social-room-links {
    position:absolute;top:calc(var(--game-header-height,52px) + 60px);left:12px;right:12px;
    display:flex;gap:5px;flex-wrap:wrap
}
.social-visit-note {
    position:absolute;bottom:max(76px,calc(env(safe-area-inset-bottom) + 74px));left:12px;right:12px;
    padding:7px;background:#fff6e1e8;color:#324e3e;border-radius:7px;text-align:center
}
.social-swimmer {
    position:absolute;width:34px;height:34px;opacity:.82;
    animation:social-swim 6.8s ease-in-out infinite alternate
}
.social-garden-scene>.social-background {object-fit:fill}
.social-garden-plots {inset:18.6% 7.5% 19.6%;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));column-gap:6.4%;row-gap:2.5%}
.social-garden-plots .social-plot {background:none;border:0;overflow:visible;padding:1px 2px 16px}
.social-garden-plots .social-plot:disabled {visibility:hidden}
.social-garden-plots .plot-plant {height:100%;max-width:min(100%,115px)}
.social-garden-plots .plot-plant[data-stage='0'] {width:33%;height:41%;max-width:48px}
.social-garden-plots .plot-label {
    position:absolute;bottom:0;left:50%;transform:translateX(-50%);max-width:100%;white-space:nowrap;
    padding:2px 7px;border-radius:5px;background:#fff5dedb;color:#43513d;font:600 12px/1.15 var(--ui-font);
    text-overflow:ellipsis;overflow:hidden
}
.social-garden-plots .plot-label[data-ripe='true'] {background:#efe0a4;color:#4a4227}
@keyframes social-swim {to {transform:translate(var(--social-drift,25px),-9px)}}
@media (max-width:350px) {
    .social-panel {padding:8px}
    .social-button,.social-tab {padding-inline:6px;font-size:12px}
}
@media (prefers-reduced-motion:reduce) {.social-swimmer {animation:none}}
.account-required .game-header .header-stats {display:none}
.social-pending-message {display:block;margin-top:2px;color:#546a52;font-size:10px;text-align:right}


.social-panel:has(.social-gift-stock) {
    padding:0;overflow:hidden;display:flex;flex-direction:column;
}
.social-gift-stock {
    display:flex;flex-direction:column;min-height:0;flex:1;
}
.social-gift-stock>.social-gift-tabs {flex:none}
.social-gift-shelf {
    padding:9px;overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;
}
.social-gift-shelf .jade-grid + .jade-heading {margin-top:9px}
.social-gift-shelf button[aria-pressed='true'] {
    outline:2px solid #3e715a;outline-offset:-2px;border-color:transparent;
}
.social-gift-shelf button:disabled {opacity:.78}
.social-gift-shelf .social-gift-unavailable {color:#82523b}
.social-gift-footer {
    display:flex;align-items:center;flex:none;gap:7px;padding:7px 9px;
    border-top:1px solid var(--line);background:var(--paper);
}
.social-gift-selection {
    flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    font:650 13px/1.3 var(--ui-font);
}
.social-gift-stepper {
    display:flex;align-items:center;justify-content:center;flex:none;gap:2px;
    border:1px solid var(--line);border-radius:8px;background:#fffcf0ae;
}
.social-gift-stepper button {
    padding:0;min-width:34px;min-height:38px;border:0;background:transparent;
    font-size:17px;font-variant-numeric:tabular-nums;
}
.social-gift-stepper output {
    min-width:18px;text-align:center;font:650 14px/1 var(--ui-font);font-variant-numeric:tabular-nums;
}
.social-gift-footer>.social-submit {
    flex:none;min-height:41px;white-space:nowrap;
}
.social-mail-grid {display:grid;gap:8px}
.social-mail-card {
    display:grid;gap:6px;padding:7px;border:1px solid var(--line);border-radius:10px;
    background:linear-gradient(145deg,#fffaf0dd,#f8f2dabb);box-shadow:0 1px 4px #6b53361b;
}
.social-mail-label {
    display:flex;align-items:center;justify-content:space-between;gap:5px;
    width:100%;margin:0;padding:0;border:0;font:600 12px/1.3 var(--ui-font);
}
.social-mail-label strong {overflow-wrap:anywhere}
.social-mail-card>.item-card {box-shadow:none}
.social-mail-card>.jade-card {
    grid-template-columns:60px minmax(0,1fr);align-content:center;align-items:center;
    justify-items:start;text-align:left;gap:0 8px;padding:5px;
}
.social-mail-card>.jade-card .jade-item-art {grid-row:span 2;height:52px}
.social-mail-card>.jade-card strong {align-self:end}
.social-mail-card>.jade-card small {align-self:start}
.social-mail-actions {justify-content:flex-end}
.social-mail-actions button {min-height:38px}
@media(min-width:590px) {
    .social-mail-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
