:root { color-scheme:light; font:16px/1.45 "PingFang SC","Microsoft YaHei",system-ui,sans-serif; color:#413b29; background:#a5cd88; }
* { box-sizing:border-box }
body,h1,h2,h3,p { margin:0 }
button,input,textarea { font:inherit }
button { color:inherit; cursor:pointer; border:0 }
button:disabled { cursor:default; opacity:.58 }
button:focus-visible,input:focus-visible,textarea:focus-visible { outline:3px solid #196d65; outline-offset:3px }
button:active:enabled { translate:0 2px }
.garden { min-height:570px; height:100svh; position:relative; isolation:isolate; display:flex; flex-direction:column; background:#b6dca1 url('/garden/scenery.jpg') center center / cover; padding:clamp(12px,2.4vw,34px) clamp(12px,3vw,52px) 9px }
.garden-header,.dock,.sheet-head { display:flex; align-items:center; justify-content:space-between; gap:12px }
.garden-header { align-items:flex-start; gap:10px; flex-wrap:wrap }
.class-sign { display:flex; gap:12px; align-items:center; background:#fff7dfee; border:2px solid #97744f; border-radius:15px 23px 18px 22px; padding:8px 19px 10px 12px; box-shadow:0 4px #97744f80 }
.sunflower { font-size:clamp(28px,4vw,49px); line-height:1.15 }
h1 { font-size:clamp(21px,2.5vw,36px); line-height:1.15; letter-spacing:.02em }
.class-meta,.dock-label { font-size:.78rem; font-weight:700; color:#656b42; letter-spacing:.04em }
nav { display:flex; gap:7px; flex-wrap:wrap }
.cream,.choice,.submit,.actions button { border:1.5px solid #ac905c; background:#fff6da; font-weight:700; border-radius:14px; box-shadow:0 3px #8d744d60 }
.cream { padding:8px 13px; min-height:40px }
.meadow { position:relative; flex:1; min-height:250px }
.hint { display:table; margin:12px auto 0; background:#fffae5ed; color:#435e3b; font-size:.82rem; font-weight:600; border-radius:40px; padding:4px 16px; box-shadow:0 1px 3px #74765155 }
#classmates { position:absolute; inset:clamp(22px,5vh,45px) 0 0 }
.plot { position:absolute; transform:translate(-50%,-50%); background:transparent; padding:0; display:grid; justify-items:center; gap:0; width:clamp(104px,15vw,230px); --height:clamp(60px,min(11vw,17vh),162px) }
.plot:nth-child(1) { left:17%; top:36% }.plot:nth-child(2) { left:49%; top:28% }.plot:nth-child(3) { left:80%; top:32% }
.plot:nth-child(4) { left:29%; top:76% }.plot:nth-child(5) { left:60%; top:69% }.plot:nth-child(6) { left:87%; top:74% }
.platform { position:relative; width:100%; height:var(--height); display:flex; justify-content:center; align-items:flex-end }
.platform::before { content:""; position:absolute; bottom:0; width:66%; height:14%; border-radius:50%; background:radial-gradient(ellipse,#4b654468,transparent 72%) }
.animal { position:relative; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 3px 3px #40533240); transition:transform .2s }
.plot:hover .animal { transform:translateY(-4px) rotate(-2deg) }
.pet-home { position:absolute; width:67%; height:82%; object-fit:contain; bottom:1%; right:-1%; filter:drop-shadow(0 3px 2px #42613840) }
.pet-home + .animal { width:72%; margin-right:26% }
.visiting-pet { position:absolute; right:29%; bottom:0; height:42%; width:32%; object-fit:contain; filter:drop-shadow(0 2px 2px #41522e70) }
.garden-asleep .visiting-pet { display:none }
.visit-row { display:flex; align-items:center; gap:8px; border-block-end:1px dashed #c9b68b; padding:5px 0; margin-bottom:7px; }
.visit-row img { width:42px; height:42px; object-fit:contain }.visit-row button { margin-left:auto }
.visit-list + button,.visit-list + h3,#sheet-body > button + h3 { margin-top:10px }
.nameplate { position:relative; display:inline-flex; align-items:center; line-height:1.2; gap:.35em; min-height:33px; padding:5px 11px; border:2px solid #aa8457; border-radius:14px; background:#fff7dd; font-size:clamp(11px,1.1vw,16px); white-space:nowrap; box-shadow:0 3px #8f704951 }
.nameplate strong { color:#524331 }.nameplate small { color:#6d684a }
.plot[aria-pressed=true] .nameplate { background:#f3f9d5; border-color:#356f48; box-shadow:0 3px #4f6c3e75 }
.plot[aria-pressed=true] .nameplate::before { content:"●"; color:#47804f; font-size:.7em }
.dock { position:relative; margin:5px auto 0; width:min(100%,1050px); border:2px solid #a07d52; border-radius:22px; padding:12px clamp(12px,2vw,27px); background:#fff6dff5; box-shadow:0 5px #8a6d4b8c,0 13px 30px #384e3a28 }
.identity h2 { font-size:clamp(18px,2vw,29px); margin:1px 0; line-height:1.2 }
.wallet { font-size:.85rem; color:#5b6441 }
.actions { display:flex; gap:8px }
.actions button { display:grid; align-content:center; justify-items:center; min-width:clamp(49px,5.4vw,83px); min-height:62px; padding:5px 7px; font-size:.86rem }
.actions button:nth-child(3n+1) { background:#ffe7be }.actions button:nth-child(3n+2) { background:#e3eec7 }
.actions button span { font-size:1.4rem; line-height:1.3 }
.local-note { align-self:center; margin:9px 0 0; padding:1px 8px; color:#33472f; background:#f5f8dfd9; border-radius:10px; font-size:.7rem }
#feedback { position:fixed; z-index:4; left:50%; bottom:clamp(108px,18vh,160px); transform:translateX(-50%); padding:7px 16px; border-radius:20px; background:#284636; color:#fffde9; box-shadow:0 4px 15px #33472f33; max-width:90%; text-align:center; pointer-events:none }
#feedback:empty { display:none }
dialog { position:fixed; width:min(520px,94vw); max-height:90svh; padding:0; border:2px solid #99764e; background:#fff9e9; color:inherit; border-radius:22px; box-shadow:0 6px #6c5a3c8c,0 30px 90px #273e3440; overflow:auto }
dialog::backdrop { background:#203e3680 }
.sheet-head { position:sticky; top:0; z-index:1; padding:14px 20px; background:#f8ebc8; border-bottom:1px solid #ddcda1 }
.sheet-head h2 { font-size:1.25rem }
#close { width:38px; height:38px; border-radius:50%; background:#fff6da; border:1px solid #b69868; font-size:1.45rem }
#sheet-body { padding:18px 20px 22px }
#sheet-message:not(:empty) { margin:0 20px 18px; padding:8px 12px; border-radius:9px; color:#6a4630; background:#f8e6ba }
#sheet-body p { margin:0 0 13px }
.choices { display:flex; flex-wrap:wrap; gap:8px }
.choice,.submit { padding:8px 14px; min-height:42px }
.snack-button small { display:block; margin-top:2px; font-size:.85em; font-weight:normal }
.choice img { width:65px; height:65px; display:block; margin:auto; object-fit:contain }
.choice[aria-pressed=true] { background:#deedbe; border-color:#5f874e }
.submit { margin-top:14px; color:#fff; border-color:#416945; background:#527d4c }
.preview { display:grid; justify-items:center; border-radius:16px; background:radial-gradient(#fff9d9,#e0eac2); padding:10px 16px; margin-bottom:12px }
.preview img { height:min(17vh,125px); object-fit:contain }.preview small { color:#47583f }
.prize { border:1px solid #deca95; background:#fff1ca; border-radius:14px; padding:12px 15px; margin-top:14px; overflow-wrap:anywhere }
.prize p { white-space:pre-line }.prize p:last-child { margin-bottom:0!important }
.prize { display:flow-root; }
.prize-art { float:left; width:62px; height:62px; object-fit:contain; margin:0 12px 6px 0; }
.gift-shelf { display:grid; gap:8px; margin-top:12px; }
.shop-gift { display:flex; align-items:center; gap:10px; border-radius:12px; border:1px solid #deca95; padding:8px; background:#fffdf2; }
.shop-gift strong,.shop-gift small { display:block; }.shop-gift small { color:#656b42; }
.shop-gift button { margin-left:auto; padding:6px 9px; }
.form-field { display:grid; gap:5px; margin:10px 0; font-weight:650 }
input,textarea { width:100%; min-width:0; border:1.5px solid #bcab83; border-radius:10px; padding:8px 10px; background:#fffdf5; color:#3e4532 }
textarea { resize:vertical; min-height:78px }
.ranks { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.ranks ol { padding-left:24px }.ranks li { padding:3px 0 }
@media(max-width:720px) { .garden { padding:10px 10px 7px }.cream { font-size:.79rem; padding:5px 8px; min-height:35px }.dock { gap:8px;padding:9px }.actions { gap:4px }.actions button { min-width:42px;min-height:49px;font-size:.75rem;padding:4px }.actions button span { font-size:1.1rem }.nameplate { gap:3px;padding:4px 7px } }
@media(max-width:560px) and (orientation:portrait) { .garden { min-height:615px }.garden-header { align-items:center; justify-content:center }.class-sign { padding:5px 13px }.meadow { min-height:290px }.plot { width:40%; --height:clamp(53px,8.8vh,93px) }.plot:nth-child(odd) { left:26% }.plot:nth-child(even) { left:74% }.plot:nth-child(1),.plot:nth-child(2) { top:16% }.plot:nth-child(3),.plot:nth-child(4) { top:49% }.plot:nth-child(5),.plot:nth-child(6) { top:82% }.dock { flex-direction:column;align-items:stretch }.identity { display:flex;gap:7px;flex-wrap:wrap;align-items:center }.actions button { flex:1;padding:4px 1px }.hint { margin-top:6px }.wallet { margin-left:auto } }
@media(max-height:540px) and (orientation:landscape) { .garden { min-height:355px; padding:6px 14px 3px }.class-sign { padding:3px 10px }.sunflower { font-size:29px }.class-sign h1 { font-size:21px }.class-meta,.dock-label {font-size:.66rem}.meadow { min-height:170px }.hint {margin-top:0}.plot { --height:clamp(48px,12vh,72px) }.nameplate { min-height:22px;font-size:11px;padding:2px 7px }.dock { padding:5px 12px }.actions button { min-height:41px }.local-note { margin-top:4px }.actions button span { font-size:1rem } }
@media(prefers-reduced-motion:reduce) { * { transition:none!important;animation:none!important } }
