*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100dvh;overflow:hidden}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none;background:#12173d;font-family:"Baloo 2",Segoe UI,system-ui,sans-serif}.app canvas{touch-action:none}.app{width:100%;height:100%;position:relative}.app canvas{display:block}.icon{vertical-align:middle;object-fit:contain;-webkit-user-drag:none;flex:none;width:1.3em;height:1.3em;display:inline-block}.hud{pointer-events:none;color:#3a2c1a;position:absolute;inset:0}.hud>*{pointer-events:auto}.topbar{flex-wrap:wrap;gap:8px;display:flex;position:absolute;top:14px;left:14px}.chip{background:#fffcf0eb;border:2px solid #7a523059;border-radius:999px;padding:5px 14px;font-size:16px;font-weight:700;box-shadow:0 2px 6px #1e14052e}.chip.small{padding:3px 10px;font-size:14px}.btn{cursor:pointer;font-family:inherit;transition:transform .1s,filter .1s}.btn:hover{filter:brightness(1.05);transform:translateY(-1px)}.btn:active{transform:translateY(1px)}.level-chip{align-items:center;gap:6px;display:flex}.xp-bar{background:#7a523033;border-radius:999px;width:64px;height:10px;overflow:hidden}.xp-bar>span{border-radius:inherit;background:#f2b428;height:100%;transition:width .3s;display:block}.level-up{text-align:center;flex-direction:column;align-items:center;gap:8px;width:min(340px,92vw);animation:.25s ease-out tile-menu-pop;display:flex}.level-up-star{width:84px;height:84px;margin-top:-58px}.level-up h2{font-size:28px}.level-up-reward{font-size:18px;font-weight:800}.level-up-unlocks{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.level-up .btn.buy{min-height:44px;margin-top:6px;padding:0 28px}.chip.locked{opacity:.7}.action-bar{bottom:max(18px, env(safe-area-inset-bottom,0px) + 10px);right:max(18px, env(safe-area-inset-right,0px) + 10px);gap:8px;display:flex;position:absolute}.slot{cursor:pointer;background:#fffcf0eb;border:3px solid #7a523066;border-radius:16px;width:62px;height:62px;font-family:inherit;transition:transform .15s,border-color .15s;position:relative;box-shadow:0 3px 8px #1e140538}.slot:hover{transform:translateY(-3px)}.slot.selected{background:#fff6d8;border-color:#f2b428}.slot:focus-visible,.tile-menu-btn:focus-visible,.active-seed-close:focus-visible{outline-offset:2px;outline:3px solid #f2b428}.slot-icon{width:44px;height:44px;margin:auto;display:block}.slot.alert{border-color:#e05548}.slot-badge{color:#fff6d8;white-space:nowrap;background:#3a2c1a;border-radius:999px;padding:0 7px;font-size:12px;font-weight:800;position:absolute;bottom:-8px;left:50%;transform:translate(-50%)}.muted-bubble{opacity:.85;animation:none}.slot-dot{color:#fff;background:#7cb653;border-radius:999px;min-width:22px;height:22px;padding:0 5px;font-size:13px;font-weight:800;line-height:22px;position:absolute;top:-6px;right:-6px;box-shadow:0 2px 4px #1e14054d}.slot.glow{border-color:#f2b428;box-shadow:0 0 0 4px #f2b42873,0 3px 8px #1e140538}.quest-list{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.quest{background:#fff6d8;border:2px solid #7a523033;border-radius:14px;align-items:center;gap:10px;padding:8px 12px;display:flex}.quest.done{background:#f1f8e6;border-color:#7cb653}.quest-body{flex-direction:column;flex:1;gap:6px;display:flex}.quest-body .capacity-bar{flex:none}.quest-count{text-align:right;min-width:48px;font-weight:800}.chest-box{border:2px dashed #7a523059;border-radius:16px;align-items:center;gap:12px;padding:10px 12px;display:flex}.chest-box.ready{background:#fff3c4;border-style:solid;border-color:#f2b428}.chest-icon{width:56px;height:56px}.crate-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.crate-card{text-align:center;background:#fff6d8;border:2px solid #7a523040;border-radius:14px;flex-direction:column;align-items:center;gap:4px;padding:8px 6px;display:flex}.crate-card.asked{border-color:#4a86c8}.crate-card.done{background:#f1f8e6;border-color:#7cb653;justify-content:center}.crate-card .btn.buy{width:100%;min-height:44px}.crate-card .btn.ghost{min-height:44px}.crate-icon{width:44px;height:44px}.crate-note{font-size:13px;font-weight:700}.boat-away{align-items:center;gap:12px;padding:10px 0;font-weight:700;display:flex}.tabs{flex-wrap:wrap;gap:6px;margin-bottom:12px;display:flex}.tab{min-height:44px;font:inherit;color:inherit;cursor:pointer;background:0 0;border:2px solid #7a52304d;border-radius:999px;padding:0 14px;font-weight:700;transition:background .15s}.tab.active{color:#3a2c1a;background:#f2b428;border-color:#f2b428}.tab:focus-visible,.text-input:focus-visible{outline-offset:2px;outline:3px solid #f2b428}.text-input{width:100%;min-height:44px;font:inherit;background:#fff;border:1px solid #0003;border-radius:12px;margin-bottom:10px;padding:8px 12px;font-size:15px}.hamlet .market-form{flex-direction:column;align-items:stretch}.hamlet .market-form input:not([type=checkbox]){width:100%;min-height:44px}.hamlet .neighbor-row{flex-wrap:wrap}.hamlet .neighbor-row .btn{min-height:44px}.check-row{align-items:center;gap:8px;font-size:14px!important;display:flex!important}.check-row input{width:20px;height:20px}.role-badge{color:#3a2c1a;background:#f2b428;border-radius:999px;margin-left:6px;padding:1px 8px;font-size:12px;font-weight:800}.role-badge.deputy{background:#cfe3f5}.chat-log{background:#fff9;border-radius:12px;flex-direction:column;gap:4px;height:min(46vh,340px);margin-bottom:8px;padding:8px;display:flex;overflow-y:auto}.chat-msg{overflow-wrap:anywhere;background:#fff6d8;border-radius:12px;align-self:flex-start;max-width:85%;padding:4px 10px;font-size:15px}.chat-msg.mine{background:#eef7df;align-self:flex-end}.chat-system{text-align:center;color:#3a2c1abf;font-size:13px}.chat-input{gap:6px;display:flex}.chat-input .text-input{margin-bottom:0}.chat-input .btn{min-height:44px;padding:0 18px}.order-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;display:grid}.order-card{background:#fff6d8;border:2px solid #7a523040;border-radius:14px;flex-direction:column;gap:8px;min-height:150px;padding:10px;display:flex}.order-card.ready{background:#f1f8e6;border-color:#7cb653}.order-card.waiting{opacity:.75;background:0 0;border-style:dashed;justify-content:center;align-items:center;font-weight:700}.order-items{flex-wrap:wrap;gap:6px 10px;font-weight:800;display:flex}.order-item{align-items:center;gap:2px;display:inline-flex}.order-item .icon{width:30px;height:30px}.order-item.short{color:#c0392b}.order-reward{gap:14px;margin-top:auto;font-size:17px;font-weight:800;display:flex}.order-actions{gap:6px;display:flex}.order-actions .btn{min-height:44px}.order-actions .btn.buy{flex:1}.capacity{align-items:center;gap:10px;margin:4px 0 12px;font-size:16px;display:flex}.capacity-bar{background:#7a52302e;border-radius:999px;flex:1;height:14px;overflow:hidden}.capacity-bar>span{border-radius:inherit;background:#7cb653;height:100%;transition:width .3s;display:block}.capacity-bar.full>span{background:#e05548}.barn-grid{grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;margin-bottom:12px;display:grid}.barn-item{aspect-ratio:1;background:#fff6d8;border:2px solid #7a523040;border-radius:14px;justify-content:center;align-items:center;display:flex;position:relative}.barn-item .icon{width:70%;height:70%}.barn-qty{font-size:14px;font-weight:800;position:absolute;bottom:2px;right:6px}.queue{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.queue-slot{background:#fff6d8;border:2px solid #7a52304d;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;width:64px;height:64px;font-size:12px;font-weight:800;display:flex}.queue-slot .icon{width:34px;height:34px}.queue-slot.empty{background:0 0;border-style:dashed}.queue-slot.done{background:#eef7df;border-color:#7cb653}.queue-time .icon{width:16px;height:16px}.recipe-inputs{flex-wrap:wrap;gap:8px;display:flex}.recipe-inputs .short{color:#c0392b;font-weight:800}.active-seed{bottom:max(22px, env(safe-area-inset-bottom,0px) + 14px);color:#fff6d8;white-space:nowrap;background:#3a2c1ae0;border-radius:999px;align-items:center;gap:8px;padding:4px 6px 4px 14px;font-size:15px;font-weight:700;display:flex;position:absolute;left:50%;transform:translate(-50%)}.active-seed .icon{width:1.6em;height:1.6em}.active-seed-close{width:44px;height:44px;color:inherit;background:#fff6d82e;border:none;border-radius:50%;font-size:16px;font-weight:800}.toast .icon{width:1.5em;height:1.5em;margin:-.2em .3em -.2em -.4em}.toast{color:#fff6d8;white-space:nowrap;background:#3a2c1ae0;border-radius:999px;padding:9px 22px;font-size:17px;font-weight:700;animation:.25s toast-pop;position:absolute;top:72px;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #1e14054d}@keyframes toast-pop{0%{opacity:0;transform:translate(-50%)translateY(-8px)scale(.9)}to{opacity:1;transform:translate(-50%)translateY(0)scale(1)}}.card{background:#fffbef;border:3px solid #7a523066;border-radius:18px;padding:18px;box-shadow:0 10px 30px #1e140559}.help{z-index:5;max-width:380px;font-size:14.5px;position:absolute;top:64px;left:14px}.help h3{margin-bottom:8px}.help ul{gap:5px;margin-bottom:12px;padding-left:18px;display:grid}.btn.danger{color:#fff;background:#e05548;border:none;border-radius:10px;padding:7px 14px;font-size:14px;font-weight:700}.modal-backdrop{z-index:10;background:#140e0573;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.shop{width:min(560px,92vw);max-height:86vh;overflow-y:auto}.shop-header{align-items:center;gap:12px;margin-bottom:12px;display:flex}.shop-header h2{flex:1;font-size:22px}.btn.close{background:#7a523026;border:none;border-radius:10px;width:34px;height:34px;font-size:16px;font-weight:800}.shop h4{margin:10px 0 8px;font-size:16px}.shop-grid{gap:8px;display:grid}.shop-item{background:#7a523014;border-radius:12px;align-items:center;gap:12px;padding:8px 12px;display:flex}.shop-item-icon{width:44px;height:44px}.shop-item-info{flex:1;font-size:13px;line-height:1.35;display:grid}.shop-item-info b{font-size:15px}.owned{opacity:.65}.profit{color:#4f9a2e}.btn.buy{color:#fff;white-space:nowrap;background:#6fae4e;border:none;border-radius:10px;padding:8px 12px;font-size:14px;font-weight:800}.btn.buy:disabled{cursor:not-allowed;background:#b8b2a4}.sell-list{flex-wrap:wrap;gap:6px;margin-bottom:10px;display:flex}.btn.sell{color:#4a3312;background:#f2b428;border:none;border-radius:12px;width:100%;padding:11px;font-size:16px;font-weight:800}.muted{opacity:.6;font-size:14px}.bubble{color:#3a2c1a;white-space:nowrap;background:#fffcf0f2;border:2px solid #7a523066;border-radius:999px;align-items:center;gap:4px;padding:4px 12px;font-family:"Baloo 2",system-ui,sans-serif;font-size:15px;font-weight:800;animation:1.6s ease-in-out infinite bubble-bob;display:flex;box-shadow:0 3px 8px #1e140540}.bubble .icon{width:1.7em;height:1.7em}@keyframes bubble-bob{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.world-layer{pointer-events:none;position:absolute;inset:0;overflow:hidden}.tile-menu{color:#3a2c1a;white-space:nowrap;pointer-events:auto;background:#fffcf0f5;border:3px solid #7a523073;border-radius:18px;align-items:center;gap:6px;padding:6px;font-family:"Baloo 2",system-ui,sans-serif;animation:.18s ease-out tile-menu-pop;display:flex;transform:translateY(-34px);box-shadow:0 6px 16px #1e14054d}@keyframes tile-menu-pop{0%{opacity:0;transform:translateY(-26px)scale(.85)}}.tile-menu-btn{cursor:pointer;background:#fff6d8;border:2px solid #7a52304d;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;width:52px;height:52px;font-family:inherit;transition:transform .15s,background .15s;display:flex;position:relative}.tile-menu-btn:hover{background:#ffefc0;transform:translateY(-2px)}.tile-menu-btn .icon{width:36px;height:36px}.tile-menu-count{color:#4a3312;background:#f2b428;border-radius:999px;min-width:22px;padding:0 6px;font-size:12px;font-weight:800;position:absolute;bottom:-6px;right:-6px}.tile-menu-count.empty{color:#fff;background:#7cb653}.tile-menu-label{font-size:11px;font-weight:800;line-height:1}.tile-menu-info{align-items:center;gap:6px;padding:0 8px 0 4px;font-size:14px;line-height:1.2;display:flex}.tile-menu-info .icon{width:32px;height:32px}@media (prefers-reduced-motion:reduce){.level-up,.tile-menu,.bubble,.toast{animation:none}}@media (width<=700px),(height<=500px){.topbar{top:max(8px, env(safe-area-inset-top,0px));gap:5px;left:8px}.chip{padding:3px 10px;font-size:13px}.slot{border-radius:13px;width:54px;height:54px}.slot-icon{width:38px;height:38px}.active-seed{font-size:13px;top:116px;bottom:auto}.toast{white-space:normal;text-align:center;max-width:92vw;font-size:14px;top:78px}.help{max-width:none;max-height:60vh;font-size:13px;top:48px;left:8px;right:8px;overflow-y:auto}}.visiting-banner{color:#ffe9c4;pointer-events:auto;z-index:20;white-space:nowrap;background:#281808d1;border:1px solid #ffdc9659;border-radius:12px;align-items:center;gap:10px;padding:8px 14px;font-size:14px;display:flex;position:absolute;top:46px;left:50%;transform:translate(-50%)}.neighbor-list{flex-direction:column;gap:6px;max-height:40vh;display:flex;overflow-y:auto}.revenge-box{background:#ffd6a58c;border:1px solid #d67a3473;border-radius:12px;flex-direction:column;gap:6px;margin-bottom:10px;padding:10px;display:flex}.section-title{margin:14px 0 8px;font-size:15px}.neighbor-row{background:#ffffff8c;border-radius:10px;align-items:center;gap:10px;padding:6px 10px;display:flex}.neighbor-rank{text-align:center;min-width:28px}.neighbor-name{text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:600;overflow:hidden}.name-edit{flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 10px;display:flex}.name-edit input{min-width:120px;font:inherit;border:1px solid #0003;border-radius:10px;flex:1;padding:7px 10px}.welcome,.account{text-align:center;width:min(420px,92vw)}.welcome h2,.account h2{margin:0 0 6px}.welcome input,.account input{width:100%;font:inherit;text-align:center;border:1px solid #0003;border-radius:12px;margin:12px 0 10px;padding:10px 12px}.welcome-suggestions{flex-wrap:wrap;justify-content:center;gap:6px;margin-bottom:14px;display:flex}.welcome-actions{flex-direction:column;align-items:center;gap:10px;display:flex}.welcome-actions .btn.buy{border-radius:12px;width:100%;padding:11px 16px;font-size:15px}.btn.ghost{color:#4e3820b3;text-underline-offset:3px;background:0 0;border:none;padding:4px 8px;font-size:13px;font-weight:600;text-decoration:underline}.btn.ghost:hover{color:#4e3820}.market-form{flex-wrap:wrap;align-items:flex-end;gap:8px;margin-bottom:10px;display:flex}.market-form label{opacity:.85;gap:2px;font-size:12px;font-weight:700;display:grid}.market-form select,.market-form input{font:inherit;background:#fff;border:1px solid #0003;border-radius:10px;padding:7px 10px;font-size:14px}.market-form input{width:84px}.market-form select{max-width:210px}.coin-flights{pointer-events:none;z-index:30;position:fixed;inset:0}.coin-flight{filter:drop-shadow(0 2px 2px #1e140559);width:28px;height:28px;margin:-14px 0 0 -14px;position:absolute;top:0;left:0}
