:root{--deep:#100d19;--panel:#160f23;--border:#6e398f;--violet:#a13cf6;--white:#f8f3ff;--muted:#aaa2b9;--green:#50d89b;--yellow:#e9b824}
*{box-sizing:border-box}html,body{height:100%;margin:0;background:transparent;color:var(--white);font-family:Tahoma,'Segoe UI',Arial,sans-serif}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.47;cursor:not-allowed}.hidden{display:none!important}.app-shell{height:100vh;width:100vw;position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:5vh;overflow:hidden}.farm-window{position:relative;width:min(1150px,calc(100vw - 30px));height:405px;background:linear-gradient(145deg,rgba(21,13,33,.985),rgba(18,14,30,.975));border:1.6px solid #8049ac;border-radius:26px;box-shadow:0 3px 0 #7d38b5,0 0 18px #9b36ed50,0 25px 45px #08020b9f;display:flex;flex-direction:column;overflow:hidden}.head{height:61px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 19px 0 27px;border-bottom:1px solid #4b2a66;background:linear-gradient(180deg,#20132d,#191023)}.head-brand{display:flex;align-items:center;gap:14px;font-size:23px;font-weight:900;letter-spacing:.2px;white-space:nowrap}.head-brand em{font-style:normal;color:#b044f5}.head-brand .sprout{color:#b455ed;margin:0 0 12px 2px;font-size:18px}.head-brand i{height:29px;border-left:1px solid #77538a;margin:0 4px 0 2px}.head-brand strong{font-size:24px}.cow-mark{width:40px;height:40px;display:grid;place-items:center;font-size:30px}.head-actions{display:flex;align-items:center;gap:10px}.slot-pill{font-size:13px;font-weight:600;color:#f2e4ff;border-radius:19px;padding:7px 13px;background:#261936;border:1px solid #5d4275;box-shadow:inset 0 0 8px #51377066}.slot-pill b{font-size:15px}.vip-pill{font-size:15px;font-weight:900;background:linear-gradient(#bb62f8,#7e26bc);border:1px solid #c07cee;border-radius:19px;padding:7px 16px}.head-btn{border:1px solid #4c385b;border-radius:11px;background:linear-gradient(#30203f,#24172f);font-size:25px;width:34px;height:34px;display:grid;place-items:center;line-height:1}.head-btn:hover,.round-btn:hover{background:#54336e}.tools{height:71px;flex-shrink:0;display:flex;align-items:center;gap:13px;padding:0 18px;border-bottom:1px solid #3e2957}.tabs{display:flex;flex-shrink:0;border:1px solid #644578;background:#2b1d3e;border-radius:15px;overflow:hidden;height:43px}.tab{border:0;background:transparent;padding:0 21px;font-weight:900;font-size:13px;color:#eee7fb;min-width:125px}.tab span{font-size:19px;vertical-align:-2px;margin-right:6px}.tab.active{background:linear-gradient(180deg,#b04dff 0%,#7624c1 100%);box-shadow:0 0 15px #9625fd64;border-radius:14px}.summary{min-width:0;flex:1;margin:0;text-align:center;font-size:11px;white-space:nowrap;color:#e4ddeb;overflow:hidden;text-overflow:ellipsis}.tools-right{display:flex;flex-shrink:0;align-items:center;gap:8px}.auto-btn{width:186px;height:43px;border-radius:13px;border:1.5px solid #b75df3;background:linear-gradient(180deg,#442255,#2a153e);display:flex;align-items:center;justify-content:space-around;gap:6px;font-size:11px;font-weight:900}.auto-btn.on{background:linear-gradient(180deg,#8843c5,#5d2396);box-shadow:0 0 11px #8d34db77}.auto-btn:not(:disabled):hover{filter:brightness(1.15)}.auto-btn small{display:block;font-size:9px;font-weight:500;color:#c7b5d5}.auto-icon{font-size:21px}.auto-btn strong{font-size:19px;font-weight:600}.round-btn{width:37px;height:37px;border-radius:50%;border:1px solid #534168;background:linear-gradient(#362449,#241a34);font-size:19px}.farm-view{flex:1;min-height:0;padding:10px 18px 7px}.pet-grid{height:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.pet-card{min-width:0;position:relative;background:linear-gradient(165deg,#271c32 0%,#20172c 100%);border:1px solid #69448a;border-radius:15px;display:flex;flex-direction:column;align-items:center;padding:10px 10px 10px;box-shadow:inset 0 1px 0 #ad87bb19}.pet-card.ready{border-color:#b87bed;box-shadow:inset 0 0 11px #7139b222}.pet-card.dead{border-color:#6f4156}.status{align-self:flex-start;max-width:75%;font-weight:900;font-size:10px;padding:4px 9px;border:1px solid #237d4f;border-radius:100px;color:#7df3a9;background:#0d382b;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status.warn{color:#f8d25e;background:#4a3812;border-color:#9a711b}.status.error{color:#ed9cac;background:#3e2028;border-color:#834452}.card-no{position:absolute;top:13px;right:12px;font-size:13px;font-weight:900}.animal-picture{display:block;width:112px;max-width:100%;height:72px;flex:0 0 72px;object-fit:contain;object-position:center center;margin:3px auto 0;overflow:visible;filter:drop-shadow(0 3px 2px #05050b75)}.emoji-picture{font-size:52px;height:72px;line-height:68px;margin:3px auto 0}.animal-name{font-size:13px;font-weight:900;margin:0 auto 9px;text-align:center;white-space:nowrap}.progress-row{display:flex;align-items:center;gap:8px;width:100%}.progress-track{height:9px;flex:1;background:#3c2b50;border-radius:50px;overflow:hidden}.progress-track i{height:100%;display:block;border-radius:50px;background:linear-gradient(90deg,#7930e8,#cf70ff);box-shadow:0 0 8px #b649fb55}.percent{font-size:11px;min-width:29px;font-weight:800}.timing{height:28px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;color:#efe4f5;white-space:nowrap}.timing .symbol{font-size:14px}.card-btn{margin-top:auto;width:100%;min-height:37px;border:1px solid #a253d4;border-radius:10px;background:linear-gradient(#9550c6,#762ab0);box-shadow:inset 0 1px #dba3ff55;font-size:12px;font-weight:900}.card-btn:hover:not(:disabled){filter:brightness(1.15)}.card-btn.claim{background:linear-gradient(#bd50ff,#8a24d3);border-color:#eea4ff;box-shadow:0 0 9px #a729e47a}.card-btn.danger{background:#553141}.empty-illustration{font-size:43px;margin:15px 0 5px;color:#b078e2;line-height:1}.empty-note{font-size:11px;color:#b9a6cb;text-align:center;margin:4px 0 15px}.pet-card.empty,.pet-card.locked{justify-content:center;border-style:dashed}.pet-card.locked .empty-illustration{filter:grayscale(.5)}.guide-view{flex:1;min-height:0;overflow:auto;padding:13px 22px}.guide-view h2{margin:0 0 12px;font-size:18px}.guide-view h2 span{font-size:10px;color:#c397fa;margin-left:12px}.guide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.guide-grid article{display:flex;gap:10px;padding:11px 14px;border:1px solid #583773;border-radius:10px;background:#25192f;min-height:65px}.guide-grid b{color:#b35ef5;font-size:21px}.guide-grid strong{font-size:12px}.guide-grid p{margin:4px 0;color:#cfc3d7;font-size:10px;line-height:1.5}.guide-banner{margin-top:9px;padding:8px 13px;border-radius:9px;background:#402351;color:#f0d5fa;font-size:11px}.foot{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 21px 2px;flex-shrink:0}.foot>span:first-child{font-size:10px;color:#c5b5cf;white-space:nowrap}.foot i{display:inline-block;border-left:1px solid #745280;height:10px;margin:0 10px}.foot kbd{font-family:inherit;font-weight:900;color:white;font-size:11px}.pagination{display:flex;gap:8px;align-items:center;font-size:11px}.pagination button{background:#302039;border:1px solid #503564;border-radius:7px;width:27px;height:25px;font-size:22px;line-height:15px}.leaf{color:#9d48d1;font-size:28px;margin-left:7px}.dialog-layer{position:absolute;inset:0;background:#090812bb;z-index:10;display:grid;place-items:center;padding:18px}.dialog{width:450px;max-width:100%;background:#23182e;border:1.5px solid #ad62e0;border-radius:18px;padding:20px;box-shadow:0 15px 45px #000b}.dialog-head{display:flex;align-items:center;justify-content:space-between;font-size:18px}.dialog-head button{border:0;background:#49345b;font-size:24px;width:31px;height:31px;border-radius:7px}.dialog-sub{font-size:12px;color:#cfb8de;margin:5px 0 12px}.animal-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.animal-picker button{border:1px solid #75468b;border-radius:10px;background:#342141;display:flex;flex-direction:column;align-items:center;padding:11px;font-size:13px;font-weight:800;gap:4px}.animal-picker img{width:90px;height:70px;object-fit:contain;object-position:center center}.animal-picker button strong{color:#e2bbff}.animal-picker button:disabled{opacity:.4}.toast-area{position:absolute;bottom:48px;right:25px;display:flex;flex-direction:column;gap:7px;z-index:20;pointer-events:none}.toast{background:#3a2250;color:white;font-size:12px;border:1px solid #9e5fc4;padding:9px 12px;border-radius:7px;box-shadow:0 6px 20px #0009}.toast.error{background:#5e2b3a;border-color:#a76672}.demo-controls{position:absolute;bottom:0;display:flex;gap:6px;align-items:center;background:#21122cf0;color:#d2b8e7;padding:5px 9px;border-radius:9px 9px 0 0;font-size:10px}.demo-controls button,.open-again{border:1px solid #7c4ca3;border-radius:5px;background:#553270;font-size:10px;padding:5px 9px}.open-again{margin-bottom:150px;font-size:14px;padding:13px}.farm-window.compact{height:61px}.farm-window.compact .tools,.farm-window.compact .farm-view,.farm-window.compact .guide-view,.farm-window.compact .foot{display:none}
@media(max-width:1170px){.farm-window{width:calc(100vw - 20px)}.summary{font-size:10px}.tab{min-width:103px;padding:0 10px;font-size:11px}.tools{gap:7px;padding:0 12px}.auto-btn{width:152px}.round-btn{width:31px;height:31px}.pet-grid{gap:6px}.pet-card{padding:8px}.head-brand{font-size:20px;gap:8px}.head-brand strong{font-size:20px}}
@media(max-width:840px){.summary{display:none}.tools{justify-content:space-between}.pet-grid{grid-template-columns:repeat(5,minmax(130px,1fr));overflow:auto}.farm-window{height:425px}.farm-view{overflow:auto}.head-brand{font-size:16px}.head-brand strong{font-size:17px}.cow-mark{width:28px}.head-actions{gap:4px}.foot>span:first-child{font-size:9px}}
