:root{color:#70442d;font-synthesis:none;background:#f7e9d2;font-family:Malgun Gothic,Apple SD Gothic Neo,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 50% 0,#fff8e9,#f1d9b8);min-width:320px;margin:0}button{font:inherit;cursor:pointer}#root{min-height:100vh}.game-shell{width:min(1100px,96%);margin:24px auto}.topbar{background:#fff3d6;border:4px solid #b57c4d;border-radius:22px;justify-content:space-between;align-items:center;gap:16px;padding:14px 22px;display:flex;box-shadow:0 6px #d7aa76}.brand{align-items:center;gap:12px;display:flex}.brand-flower{font-size:42px}.brand h1{color:#754322;text-shadow:1px 2px #f6d2a6;margin:0;font-size:clamp(23px,3vw,34px);line-height:1.3}.brand small{color:#b17d5c;font-size:12px}.top-stats{flex-wrap:wrap;gap:10px;display:flex}.coin-pill,.level-pill{white-space:nowrap;background:#fffaf0;border:2px solid #c38c59;border-radius:14px;padding:10px 14px;font-size:15px}.farm-frame{background:#b6db87;border:9px solid #a87547;border-radius:20px;margin-top:20px;overflow:hidden;box-shadow:0 7px #d4a46d,0 12px 30px #70442d22}.farm-scene{aspect-ratio:1.64;image-rendering:pixelated;background-image:url(/assets/background/farm.png);background-position:50%;background-size:100% 100%;position:relative}.scene-label{z-index:1;background:#fff3d8e8;border:2px solid #b78555;border-radius:30px;padding:8px 15px;font-size:13px;position:absolute;top:3%;right:3%}.farm-animal{filter:drop-shadow(0 4px 1px #3d6c3840);background:0 0;border:0;flex-direction:column;align-items:center;padding:0;animation:2.3s ease-in-out infinite bob;display:flex;position:absolute;transform:translate(-50%,-50%)}.farm-animal:nth-of-type(3){animation-delay:.5s}.farm-animal:nth-of-type(4){animation-delay:1s}.farm-animal img{object-fit:contain;width:clamp(55px,8vw,105px);height:clamp(55px,8vw,105px);image-rendering:pixelated;transition:transform .15s}.farm-animal:hover img{transform:scale(1.12)}.nameplate{background:#fff0cd;border:2px solid #a76e48;border-radius:20px;padding:3px 16px;font-size:14px;font-weight:800}.heart-bubble{color:#f66f91;background:#fff7e9;border:2px solid #b67d55;border-radius:12px;margin-bottom:-2px;padding:1px 8px;font-size:16px}.bottom-nav{grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px;display:grid}.bottom-nav button{color:#78482a;background:linear-gradient(#ffe9b7,#f6c98a);border:3px solid #ae7447;border-radius:16px;justify-content:center;align-items:center;gap:10px;padding:15px 8px;font-size:17px;font-weight:800;display:flex;box-shadow:0 5px #c8915d}.bottom-nav button span{font-size:24px}.bottom-nav button.active,.bottom-nav button:hover{background:linear-gradient(#fff2bd,#ffd16d);transform:translateY(-2px)}.modal-overlay{z-index:10;background:#3424168a;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.animal-modal{background:#fff7e9;border:5px solid #b77d55;border-radius:24px;width:min(440px,100%);overflow:hidden;box-shadow:0 12px #6c402f60}.modal-heading{background:#f9b4b7;justify-content:space-between;align-items:center;padding:12px 20px;font-size:22px;font-weight:900;display:flex}.modal-heading button{color:#865438;background:#fff4dc;border:2px solid #a66c4a;border-radius:10px;width:36px;height:36px;font-size:26px;line-height:1}.modal-content{align-items:center;gap:20px;padding:16px 24px 8px;display:flex}.modal-content img{object-fit:contain;width:125px;height:125px;image-rendering:pixelated;background:#ffeacb;border-radius:22px}.animal-info{gap:10px;font-size:14px;display:grid}.animal-info span{gap:16px;display:flex}.animal-info b{color:#a65f45}.stat-line{padding:6px 24px}.stat-line>div:first-child{justify-content:space-between;margin-bottom:6px;font-size:14px;font-weight:700;display:flex}.meter{background:#e9cdbb;border-radius:20px;height:16px;overflow:hidden}.meter span{border-radius:20px;height:100%;transition:width .2s;display:block}.hunger-meter{background:#94ca73}.love-meter{background:#f58ca7}.feedback{text-align:center;background:#fff0d3;border-radius:12px;margin:12px 24px;padding:10px;font-size:13px}.modal-actions{gap:10px;padding:8px 24px 24px;display:flex}.modal-actions button{color:#754322;background:#ffe0a1;border:2px solid #b67c50;border-radius:12px;flex:1;padding:12px 4px;font-weight:800}.modal-actions small{margin-top:4px;font-weight:400;display:block}.placeholder-page{background:#e5f1c6;flex-direction:column;justify-content:center;align-items:center;min-height:400px;display:flex}.placeholder-icon{font-size:70px}.placeholder-page button{background:#ffe1a0;border:2px solid #ae7447;border-radius:12px;padding:12px 18px}@keyframes bob{0%,to{transform:translate(-50%,-50%)}50%{transform:translate(-50%,calc(-50% - 7px))}}@media (width<=640px){.topbar{flex-direction:column;align-items:stretch;padding:12px}.top-stats{justify-content:space-between}.brand-flower{font-size:28px}.farm-scene{aspect-ratio:1.1;background-size:auto 100%}.scene-label{font-size:10px}.farm-animal img{width:60px;height:60px}.nameplate{padding:2px 8px;font-size:11px}.bottom-nav{gap:6px}.bottom-nav button{flex-direction:column;gap:3px;padding:10px 2px;font-size:12px}.bottom-nav button span{font-size:22px}}.carrot-game{text-align:center;color:#714829;background:#fff4db;border:5px solid #b7864c;border-radius:22px;width:min(680px,100%);margin:20px auto;padding:25px}.carrot-game h2{color:#714829;margin-bottom:20px}.carrot-status{background:#ffe2a8;border-radius:12px;justify-content:space-around;margin-bottom:20px;padding:12px;font-weight:700;display:flex}.carrot-field{background:#a7cf78;border-radius:16px;grid-template-columns:repeat(3,1fr);gap:12px;padding:20px;display:grid}.carrot-plot{cursor:pointer;background:#b77a49;border:5px solid #87502e;border-radius:15px;min-height:100px;font-size:46px;transition:transform .12s}.carrot-plot:hover:not(:disabled){transform:scale(1.05)}.carrot-plot:disabled{opacity:.5;cursor:default}.carrot-intro,.carrot-result{padding:35px 15px}.carrot-game button:not(.carrot-plot){color:#714829;cursor:pointer;background:#ffda91;border:3px solid #b7864c;border-radius:12px;margin:8px;padding:12px 22px;font-weight:700}.carrot-game button:hover:not(:disabled){filter:brightness(1.05)}.carrot-exit{margin-top:20px!important}.minigame-menu{text-align:center;color:#714829;padding:35px 25px}.minigame-menu h2{color:#714829;margin-bottom:12px}.minigame-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px;display:grid}.minigame-card{color:#714829;cursor:pointer;background:#fff3d5;border:4px solid #b7864c;border-radius:18px;flex-direction:column;align-items:center;gap:12px;padding:25px 12px;display:flex}.minigame-card:hover:not(:disabled){background:#ffe8b4;transform:translateY(-4px)}.minigame-card:disabled{opacity:.55;cursor:not-allowed}.minigame-icon{font-size:60px}.minigame-card strong{font-size:17px}.minigame-card small{font-weight:700}@media (width<=650px){.minigame-cards{grid-template-columns:1fr}}.fish-game{box-sizing:border-box;text-align:center;color:#714829;background:#fff4df;border:5px solid #b7864c;border-radius:22px;width:min(680px,100%);margin:20px auto;padding:24px}.fish-game h2{color:#714829;margin:0 0 18px}.fish-status{background:#ffe2a8;border-radius:12px;justify-content:space-around;margin-bottom:16px;padding:12px;font-weight:700;display:flex}.fish-field{background:linear-gradient(#bce9ff 0%,#e4f8ff 75%,#b3dc8c 76%,#91c777 100%);border:5px solid #8ab6cb;border-radius:18px;height:380px;position:relative;overflow:hidden}.fish-cloud{opacity:.65;pointer-events:none;font-size:55px;position:absolute}.cloud-one{top:10%;left:12%}.cloud-two{top:25%;right:15%}.falling-item{-webkit-user-select:none;user-select:none;pointer-events:none;z-index:2;font-size:35px;position:absolute;transform:translate(-50%,-50%)}.fish-player{z-index:3;pointer-events:none;flex-direction:column;align-items:center;width:18%;display:flex;position:absolute;bottom:6%;transform:translate(-50%)}.fish-player img{object-fit:contain;width:85px;height:85px;image-rendering:pixelated}.fish-player span{margin-top:-20px;font-size:35px}.fish-ground{background:#80b96c;width:100%;height:9%;position:absolute;bottom:0}.fish-intro,.fish-result{padding:45px 15px}.fish-intro-icons{margin-bottom:15px;font-size:65px}.fish-intro p,.fish-result p{margin:12px 0}.fish-game button{color:#714829;cursor:pointer;background:#ffda91;border:3px solid #b7864c;border-radius:12px;margin:8px;padding:12px 22px;font-weight:700}.fish-game button:hover:not(:disabled){background:#ffd07c}.fish-controls{justify-content:center;gap:15px;margin-top:12px;display:flex}.fish-controls button{touch-action:manipulation;min-width:125px}.fish-exit{margin-top:18px!important}@media (width<=600px){.fish-field{height:320px}.fish-player img{width:65px;height:65px}.falling-item{font-size:28px}}.egg-game{box-sizing:border-box;text-align:center;color:#714829;background:#fff4df;border:5px solid #b7864c;border-radius:22px;width:min(680px,100%);margin:20px auto;padding:24px}.egg-game h2{color:#714829;margin:0 0 20px}.egg-status{background:#ffe2a8;border-radius:12px;justify-content:space-around;gap:8px;margin-bottom:20px;padding:14px;font-weight:700;display:flex}.egg-intro,.egg-result{padding:40px 15px}.egg-intro-icon,.egg-result-icon{margin-bottom:20px;font-size:60px}.egg-intro p,.egg-result p{margin:12px 0}.egg-character{justify-content:center;align-items:center;gap:15px;font-size:48px;display:flex}.egg-character span{color:#714829;background:#fff;border:2px solid #e7c79a;border-radius:16px;padding:12px 16px;font-size:14px;font-weight:700}.egg-display{flex-direction:column;align-items:center;gap:14px;padding:25px;display:flex}.egg-shape{border:4px solid #c89c83;border-radius:50% 50% 45% 45%/60% 60% 40% 40%;width:100px;height:135px;animation:.7s ease-in-out infinite alternate eggBounce;box-shadow:inset -12px -8px #0000000f,inset 12px 10px #ffffff59,0 8px #d9b78e}.egg-display p{font-size:18px;font-weight:700}.egg-feedback{color:#a56a3e;min-height:25px;margin:12px 0;font-weight:700}.egg-baskets{grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px;display:grid}.egg-basket{color:#714829;cursor:pointer;border:4px solid #b7864c;border-radius:16px;flex-direction:column;align-items:center;gap:8px;padding:18px 8px;transition:transform .15s;display:flex}.egg-basket:hover{filter:brightness(1.04);transform:translateY(-5px)}.basket-icon{font-size:48px}.egg-basket small{font-size:12px}.egg-game button:not(.egg-basket){color:#714829;cursor:pointer;background:#ffda91;border:3px solid #b7864c;border-radius:12px;margin:8px;padding:12px 22px;font-weight:700}.egg-game button:hover:not(:disabled){filter:brightness(1.05)}.egg-exit{margin-top:20px!important}@keyframes eggBounce{0%{transform:translateY(0)rotate(-4deg)}to{transform:translateY(-8px)rotate(4deg)}}@media (width<=600px){.egg-game{padding:14px}.egg-baskets{gap:6px}.egg-basket{padding:12px 4px}.basket-icon{font-size:34px}.egg-character span{font-size:12px}}@media (width<=850px){.shop-items{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=520px){.shop-page{padding:16px}.shop-items{grid-template-columns:1fr}.shop-title h2{font-size:21px}.shop-greeting{padding:12px}.shopkeeper{font-size:40px}.shop-speech{font-size:12px}}.shop-page{box-sizing:border-box;color:#78563d;background:#fff9ef;width:100%;min-height:100%;padding:28px;font-family:inherit}.shop-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.shop-title{align-items:center;gap:14px;display:flex}.shop-title-icon{font-size:48px}.shop-title h2{color:#80573b;margin:0 0 6px;font-size:26px}.shop-title p{color:#ad866a;margin:0;font-size:14px}.shop-wallet{background:#ffedb6;border:3px solid #e7c47a;border-radius:30px;padding:12px 20px;font-size:18px;font-weight:700}.shop-greeting{background:#fff0d7;border:3px solid #e9cda7;border-radius:18px;align-items:center;gap:18px;margin-bottom:24px;padding:20px;display:flex}.shopkeeper{font-size:58px}.shop-speech{background:#fffdfa;border:2px solid #e9cda7;border-radius:18px;padding:14px 20px;font-size:15px;font-weight:700}.shop-tabs{flex-wrap:wrap;gap:10px;margin-bottom:24px;display:flex}.shop-tabs button{color:#906d52;cursor:pointer;background:#fff;border:2px solid #e5c9ac;border-radius:30px;padding:11px 22px;font-size:14px;font-weight:700;transition:all .2s}.shop-tabs button:hover{background:#fff0d9}.shop-tabs button.active{color:#70472b;background:#f6d8a9;border-color:#c99a63}.shop-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.shop-item{text-align:center;background:#fff;border:3px solid #edd9bf;border-radius:20px;flex-direction:column;align-items:center;padding:22px 16px;transition:transform .2s;display:flex;box-shadow:0 5px #f2e4d2}.shop-item:hover{transform:translateY(-4px)}.shop-item-icon{background:#fff4e6;border-radius:20px;justify-content:center;align-items:center;width:100px;height:100px;margin-bottom:14px;font-size:56px;display:flex}.shop-item h3{color:#80573b;margin:0 0 10px;font-size:18px}.shop-item-description{color:#a28772;min-height:38px;margin:0 0 12px;font-size:13px;line-height:1.5}.shop-item-effect{box-sizing:border-box;color:#73905a;background:#f0f8e8;border-radius:10px;width:100%;margin-bottom:10px;padding:8px;font-size:13px;font-weight:700}.shop-item-owned{color:#aa8b70;margin-bottom:14px;font-size:12px}.shop-item-bottom{justify-content:space-between;align-items:center;gap:8px;width:100%;margin-top:auto;display:flex}.shop-item-price{white-space:nowrap;color:#ae7a2e;font-size:15px;font-weight:700}.shop-buy-button{color:#795037;cursor:pointer;background:#ffd7a8;border:2px solid #d9a575;border-radius:12px;padding:10px 13px;font-size:12px;font-weight:700;transition:all .2s}.shop-buy-button:hover:not(:disabled){background:#ffc78e}.shop-buy-button:disabled{color:#aaa;cursor:not-allowed;background:#eee9e3;border-color:#d6d0c8}.shop-message{text-align:center;color:#a67650;min-height:24px;margin-top:26px;font-size:14px;font-weight:700}@media (width<=850px){.shop-items{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=520px){.shop-page{padding:16px}.shop-items{grid-template-columns:1fr}.shop-title h2{font-size:21px}.shop-greeting{padding:12px}.shopkeeper{font-size:40px}.shop-speech{font-size:12px}}.bag-page{box-sizing:border-box;color:#78563d;background:#fff9ef;width:100%;min-height:100%;padding:28px;font-family:inherit}.bag-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.bag-title{align-items:center;gap:14px;display:flex}.bag-title-icon{font-size:48px}.bag-title h2{color:#80573b;margin:0 0 6px;font-size:26px}.bag-title p{color:#ad866a;margin:0;font-size:14px}.bag-count{background:#ffedb6;border:3px solid #e7c47a;border-radius:30px;padding:12px 20px;font-weight:700}.bag-tabs{flex-wrap:wrap;gap:10px;margin-bottom:24px;display:flex}.bag-tabs button{color:#906d52;cursor:pointer;background:#fff;border:2px solid #e5c9ac;border-radius:30px;padding:11px 22px;font-weight:700}.bag-tabs button.active{background:#f6d8a9;border-color:#c99a63}.bag-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.bag-item{color:#78563d;text-align:center;cursor:pointer;background:#fff;border:3px solid #edd9bf;border-radius:20px;flex-direction:column;align-items:center;gap:12px;padding:24px 16px;transition:transform .2s;display:flex;box-shadow:0 5px #f2e4d2}.bag-item:hover{transform:translateY(-4px)}.bag-item-icon{background:#fff4e6;border-radius:20px;justify-content:center;align-items:center;width:90px;height:90px;font-size:52px;display:flex}.bag-item-effect{color:#73905a;background:#f0f8e8;border-radius:10px;padding:8px 12px;font-size:13px}.bag-item-quantity{color:#a28772;font-size:13px}.bag-item-action{background:#ffd7a8;border:2px solid #d9a575;border-radius:12px;padding:10px 22px;font-weight:700}.bag-empty{text-align:center;background:#fff;border:3px dashed #e9cda7;border-radius:20px;padding:70px 20px}.bag-empty span{font-size:65px}.bag-empty h3{margin:18px 0 10px}.bag-empty p{color:#ad866a}.bag-message{text-align:center;color:#a67650;min-height:24px;margin-top:26px;font-weight:700}.bag-modal-overlay{z-index:1000;background:#412b1d8c;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.bag-modal{box-sizing:border-box;background:#fff9ef;border:5px solid #b7864c;border-radius:22px;width:min(460px,100%);max-height:90vh;padding:24px;overflow-y:auto;box-shadow:0 12px 35px #0000002e}.bag-modal-header{justify-content:space-between;align-items:center;display:flex}.bag-modal-header h3{margin:0}.bag-modal-header button{color:#78563d;cursor:pointer;background:0 0;border:none;font-size:22px}.bag-selected-item{background:#fff0d7;border-radius:16px;flex-direction:column;align-items:center;gap:8px;margin:20px 0;padding:18px;display:flex}.bag-selected-item span{font-size:54px}.bag-selected-item p{color:#73905a;margin:0}.bag-modal h4{text-align:center}.bag-animal-list{grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0;display:grid}.bag-animal{color:#78563d;cursor:pointer;background:#fff;border:3px solid #e9cda7;border-radius:14px;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;display:flex}.bag-animal.active{background:#ffe8ef;border-color:#ed9db8}.bag-animal img{object-fit:contain;width:65px;height:65px;image-rendering:pixelated}.bag-animal small{color:#a28772}.bag-use-button{color:#78563d;cursor:pointer;background:#ffd7a8;border:3px solid #d9a575;border-radius:14px;width:100%;padding:14px;font-weight:700}.bag-use-button:disabled{opacity:.5;cursor:not-allowed}@media (width<=850px){.bag-items{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=520px){.bag-page{padding:16px}.bag-items{grid-template-columns:1fr}.bag-title h2{font-size:21px}.bag-modal{padding:16px}.bag-animal img{width:50px;height:50px}}
