
:root{
  --cream:#fff4d9;--cream2:#f5e3b8;--brown:#684426;--wood:#b87a42;
  --green:#6fbf57;--green2:#92cf72;--pink:#f3a1b9;--gold:#ffc850;
  --shadow:0 12px 28px rgba(93,63,32,.2)
}
*{box-sizing:border-box}
body{margin:0;background:#6d8b45;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#4a321d}
button,input,select{font:inherit}
button{cursor:pointer}
.app{min-height:100vh;background:linear-gradient(#698244 0 8%,#d6aa6b 8% 100%);padding:10px}
.card{background:linear-gradient(#fff7df,#f6e3b9);border:3px solid #f5d997;border-radius:22px;box-shadow:var(--shadow)}
.topbar{display:grid;grid-template-columns:190px 280px 1fr auto;gap:12px;align-items:center;margin-bottom:10px}
.logo{font-weight:1000;font-size:30px;line-height:.78;color:white;text-shadow:3px 3px 0 #456326,5px 5px 0 #31501c}
.logo span{color:#9ada51}
.profile{background:#fff0c9;border:2px solid #efd18a;border-radius:18px;padding:8px 12px;display:grid;grid-template-columns:50px 1fr;gap:8px;align-items:center}
.profile .avatar{font-size:34px}.profile small{display:block}.xp{grid-column:2;height:10px;background:#dcc494;border-radius:99px;overflow:hidden}.xp i{display:block;height:100%;background:#f5a623}
.currencies{display:flex;justify-content:center;gap:10px}.currencies div{background:#fff0c9;border:2px solid #efd18a;border-radius:16px;padding:10px 16px;font-size:18px}
.top-actions{display:flex;gap:8px}.top-actions button{border:0;background:#fff0c9;border-radius:14px;padding:11px;font-size:21px}
.layout{display:grid;grid-template-columns:260px 1fr 300px;gap:10px}
.left-panel,.quests,.life-tree{padding:14px}
h3{margin:0 0 12px}
.stat{margin:13px 0}.stat span{font-weight:800}.stat b{float:right}.stat>div{height:10px;background:#dcc9a4;border-radius:99px;overflow:hidden;clear:both;margin-top:7px}.stat i{display:block;height:100%;border-radius:99px}
#hungerBar{background:#e8583e}#energyBar{background:#f7a612}#happyBar{background:#ef6fa5}#cleanBar{background:#49aadb}#bondBar{background:#9b62d4}
.room{min-height:650px;position:relative;overflow:hidden;background:linear-gradient(#9fbf7c 0 54%,#a96e3e 54%);border-width:4px}
.sky-window{position:absolute;left:25%;right:25%;top:30px;height:265px;background:linear-gradient(#66c6f0,#dff6ff);border:15px solid #85552f;overflow:hidden}
.cloud{position:absolute;width:70px;height:24px;background:#fff;box-shadow:22px -10px 0 #fff,40px 2px 0 #fff}.c1{left:40px;top:45px}.c2{right:60px;top:80px}
.tree{position:absolute;bottom:0;width:60px;height:120px;background:#6bbd4b;box-shadow:18px -16px 0 #77c75a,-18px -5px 0 #5da944}.tree:after{content:"";position:absolute;left:23px;bottom:-30px;width:16px;height:55px;background:#79502e}.t1{left:80px}.t2{left:48%}.t3{right:70px}.tree.pink{background:#f58fb1;box-shadow:18px -16px 0 #ffadc7,-18px -5px 0 #ef78a1}
.curtain{position:absolute;top:28px;width:70px;height:275px;background:repeating-linear-gradient(90deg,#f3a5bd 0 16px,#ed92ad 16px 32px)}.curtain.left{left:18%}.curtain.right{right:18%}
.shelf{position:absolute;background:#865430;color:white;padding:14px;border-radius:5px}.shelf-left{left:18px;top:150px}.shelf-right{right:20px;top:120px}
.bed{position:absolute;right:80px;bottom:120px;font-size:120px}.chest{position:absolute;left:35px;bottom:100px;font-size:100px}.table{position:absolute;right:30px;bottom:20px;font-size:75px}
.rug{position:absolute;left:50%;bottom:40px;transform:translateX(-50%);width:430px;height:170px;background:#f2cf79;border:18px solid #ef9cb1;border-radius:50%}
.dragon-wrap{position:absolute;left:50%;bottom:85px;transform:translateX(-50%);width:210px;height:250px;transition:.3s}
.speech{position:absolute;right:-15px;top:-25px;background:white;border-radius:18px;padding:10px;font-size:30px;box-shadow:var(--shadow)}
.voxel{position:relative;width:180px;height:210px;margin:auto;filter:drop-shadow(0 12px 5px rgba(0,0,0,.25));animation:breathe 2.5s ease-in-out infinite}
.head{position:absolute;left:32px;top:28px;width:118px;height:90px;background:#53b747;box-shadow:inset -12px -12px 0 #3c9635;border-radius:8px}
.snout{position:absolute;left:10px;bottom:-19px;width:76px;height:32px;background:#62c257;border-radius:4px;box-shadow:inset -8px -7px 0 #449a3d}
.eye{position:absolute;top:30px;width:18px;height:26px;background:#fff;box-shadow:inset 0 -8px 0 #222}.e1{left:20px}.e2{right:20px}
.cheek{position:absolute;bottom:10px;width:18px;height:11px;background:#f29aad}.ch1{left:4px}.ch2{right:4px}
.horn{position:absolute;top:0;width:22px;height:34px;background:#f8d04e;box-shadow:inset -7px -5px 0 #d9a92d}.h1{left:47px}.h2{right:42px}
.body{position:absolute;left:52px;top:112px;width:92px;height:74px;background:#4dac42;box-shadow:inset -12px -10px 0 #368b32}
.belly{position:absolute;left:17px;top:4px;width:35px;height:66px;background:#ffd65a}
.wing{position:absolute;right:-30px;top:10px;width:45px;height:53px;background:#f3c34e;clip-path:polygon(0 0,100% 30%,70% 100%,20% 65%);box-shadow:inset -8px -8px 0 #d59d25}
.tail{position:absolute;right:-50px;bottom:5px;width:65px;height:25px;background:#47a63b;transform:rotate(-22deg);transform-origin:left}
.leg{position:absolute;bottom:-27px;width:28px;height:36px;background:#45a23a;box-shadow:inset -7px -8px 0 #347f2e}.l1{left:4px}.l2{right:3px}
@keyframes breathe{50%{transform:translateY(-5px) scale(1.02,.98)}}
.dragon-wrap.happy .voxel{animation:jump .5s ease 3}.dragon-wrap.sleep .voxel{animation:sleep 2s ease-in-out infinite}.dragon-wrap.play .tail{animation:wag .25s ease-in-out 6}
@keyframes jump{50%{transform:translateY(-25px)}}@keyframes sleep{50%{transform:scale(1.03,.97)}}@keyframes wag{50%{transform:rotate(20deg)}}
.right-panel{display:flex;flex-direction:column;gap:10px}.quests label{display:flex;justify-content:space-between;border-bottom:1px solid #d7bf94;padding:12px 0}.life-tree{text-align:center}.level{display:flex;gap:8px;align-items:center}.level span{height:13px;flex:1;background:#d9c6a1;border-radius:99px;overflow:hidden}.level i{display:block;height:100%;width:68%;background:#5fc489}.tree-art{font-size:130px}.life-tree button{border:0;background:#f3c771;border-radius:12px;padding:10px 24px}
.bottom-area{display:grid;grid-template-columns:260px 1fr 520px;gap:10px;margin-top:10px}
.save-card{display:flex;align-items:center;gap:10px;padding:12px}.save-card .sprout{font-size:35px}.save-card b{display:block;font-size:22px}.save-card button{margin-left:auto;border:0;background:#6fbd58;color:white;padding:9px;border-radius:10px}
.nav,.pet-actions{display:flex;gap:7px;justify-content:center}.nav button,.pet-actions button{flex:1;border:2px solid #efd39b;background:#fff0cc;border-radius:16px;padding:9px 6px;font-size:22px}.nav span,.pet-actions span{display:block;font-size:12px;font-weight:800}.nav button.active{background:#d9efb4}.pet-actions button{background:#ffd1c2}.pet-actions button:nth-child(4){background:#d7eff2}.pet-actions button:nth-child(5){background:#f5e2ba}
.modal{position:fixed;inset:0;background:#0008;display:none;align-items:center;justify-content:center;z-index:99}.modal.show{display:flex}.modal-box{width:min(420px,90vw);background:#fff4d9;border-radius:22px;padding:22px;position:relative}.modal-box label{display:block;margin:12px 0}.modal-box input,.modal-box select{width:100%;padding:11px;border:2px solid #e0c28b;border-radius:10px}.close{position:absolute;right:10px;top:8px;border:0;background:none;font-size:27px}.confirm{width:100%;border:0;background:#67b85c;color:#fff;padding:12px;border-radius:12px;font-weight:900}
.toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%,20px);background:#4a321d;color:white;padding:12px 18px;border-radius:999px;opacity:0;transition:.25s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.topbar{grid-template-columns:160px 1fr}.currencies{grid-column:1/3}.top-actions{position:absolute;right:10px;top:10px}.layout{grid-template-columns:220px 1fr}.right-panel{grid-column:1/3;display:grid;grid-template-columns:1fr 1fr}.bottom-area{grid-template-columns:1fr}.room{min-height:580px}}
@media(max-width:720px){.left-panel{display:none}.layout{grid-template-columns:1fr}.right-panel{grid-column:auto;grid-template-columns:1fr}.currencies{overflow:auto;justify-content:flex-start}.room{min-height:600px}.bed{font-size:80px;right:20px}.chest{font-size:70px}.sky-window{left:15%;right:15%}.curtain.left{left:7%}.curtain.right{right:7%}.nav,.pet-actions{overflow:auto;justify-content:flex-start}.nav button,.pet-actions button{min-width:78px}.bottom-area{display:block}.save-card{margin-bottom:8px}}
