@media(max-width:600px)and (orientation:portrait){.reference-scene{--phone-logo:60px;--phone-resources:44px;--phone-cards:214px;--phone-dock:66px;--phone-notice:30px;--phone-top: calc(8px + env(safe-area-inset-top,0px)) ;--phone-bottom: calc(6px + env(safe-area-inset-bottom,0px)) ;--farm-top:calc(var(--phone-top) + var(--phone-logo) + var(--phone-resources) + 12px);--farm-bottom:calc(var(--phone-bottom) + var(--phone-cards) + var(--phone-dock) + var(--phone-notice) + 18px);position:fixed;inset:0;translate:none;width:100%;height:100vh;height:100dvh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:var(--phone-logo) var(--phone-resources) minmax(0,1fr) var(--phone-cards) var(--phone-dock) var(--phone-notice);gap:6px;padding:var(--phone-top) 8px var(--phone-bottom);overflow:hidden;background-size:0 0;background-color:#1a1a2e}.reference-scene:before{content:"";grid-column:1 / -1;grid-row:3;background-image:inherit;background-size:cover;background-position:center;border-radius:12px;min-height:0;pointer-events:none}.reference-scene .ref-logo{position:relative;left:auto;top:auto;grid-column:1 / -1;grid-row:1;justify-self:center;width:calc(100% - 110px);max-width:220px;height:100%;z-index:6}.reference-scene .ref-logo img{width:100%;height:100%;object-fit:contain}.reference-scene .ref-resources{position:relative;left:auto;right:auto;top:auto;grid-column:1 / -1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;min-height:0}.reference-scene .ref-resources>span,.reference-scene .ref-resources #refGoldTarget{min-width:0;padding:4px 6px;grid-template-columns:24px minmax(0,1fr);column-gap:5px;font-size:20px;border-radius:12px;line-height:1}.reference-scene .ref-resources small{font-size:10px;white-space:nowrap}.reference-scene .ref-resources b{font-size:16px;line-height:1.1;overflow:hidden;text-overflow:ellipsis}.reference-scene #refGoldTarget>.gold-coin{width:24px;height:24px;font-size:17px;border-width:2px;box-shadow:inset 0 0 0 2px #eca821}.reference-scene #refInventory,.reference-scene .ref-explore{position:absolute;top:var(--phone-top);bottom:auto;width:46px;height:54px;min-width:0;padding:3px;font-size:24px;line-height:1.1;border-radius:12px;touch-action:manipulation}.reference-scene #refInventory{right:8px}.reference-scene .ref-explore{left:8px;right:auto}.reference-scene #refInventory small,.reference-scene .ref-explore small{font-size:10px;line-height:1.3}.reference-scene .coop-grounds{inset:var(--farm-top) 8px var(--farm-bottom);height:auto}.reference-scene .coop-building,.reference-scene .coop-building.upgraded,.reference-scene.quest-active .coop-building{left:31%;top:5%;width:42%;height:52%}.reference-scene #coopLabel{left:0;top:10%;width:100%;font-size:11px;padding:4px;transform:rotate(5deg);border-width:2px}.reference-scene #coopChickens{top:68%;height:65%}.reference-scene .coop-cat-lane{position:relative;grid-column:1 / -1;grid-row:3;align-self:end;justify-self:start;left:auto;top:auto;width:46%;height:58%;margin:0 0 22px 4%;min-height:0}.reference-scene #islandCat{width:82%;height:110%;bottom:0}.reference-scene #coopBubble{font-size:10px;min-width:100px;max-width:155px;padding:4px;bottom:95%;line-height:1.3}.reference-scene .ref-truck{position:relative;grid-column:1 / -1;grid-row:3;align-self:end;justify-self:end;left:auto;top:auto;width:52%;height:65%;margin:0 0 8px;min-height:0}.reference-scene .ref-basket{position:relative;grid-column:1 / -1;grid-row:3;align-self:start;justify-self:center;left:auto;top:auto;width:16%;height:28%;margin-top:8%;margin-left:14%}.reference-scene .ref-board{position:relative;left:auto;right:auto;top:auto;width:auto;min-width:0;transform:none;margin:0;padding:7px;border-width:3px;border-radius:10px;box-shadow:0 3px #80552f;display:flex;flex-direction:column;justify-content:space-between;gap:2px}.reference-scene .ref-build{grid-column:1;grid-row:4}.reference-scene .ref-orders{grid-column:2;grid-row:4;border-top-width:8px}.reference-scene .ref-board h3{font-size:14px;line-height:1.3;margin:0 0 2px}.reference-scene .ref-board p,.reference-scene .ref-board div{font-size:11px;line-height:1.4;margin:0;overflow-wrap:break-word}.reference-scene .ref-board #refBuildCost{font-size:11px;min-height:28px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px}.reference-scene .ref-orders strong{font-size:13px}.reference-scene #refEggCount{font-size:11px}.reference-scene #refOrderReward{font-size:12px;white-space:normal}.reference-scene .ref-board button{font-size:14px;min-height:42px;padding:6px 4px;margin:0;border-radius:9px;touch-action:manipulation}.reference-scene .ref-build #coopFeed{font-size:11px;line-height:1.3;padding:4px;margin:0;min-height:54px;border-radius:8px}.reference-scene .ref-build #coopFeed small{font-size:10px;line-height:1.35}.reference-scene .ref-build #coopFeed span{font-size:9px;line-height:1.3}.reference-scene .ref-board button.ref-link{font-size:11px;min-height:30px;padding:3px 0}.reference-scene .ref-awning{top:-8px;left:-3px;right:-3px;height:7px;border-radius:7px 7px 0 0}.reference-scene .farm-actions{position:relative;grid-column:1 / -1;grid-row:3;align-self:end;justify-self:start;left:auto;top:auto;right:auto;width:auto;margin:0 0 6px 6px;z-index:7}.reference-scene .farm-actions button{font-size:11px;min-height:36px;padding:5px 8px;border-radius:10px}.reference-scene .coop-dock{position:relative;left:auto;bottom:auto;grid-column:1 / -1;grid-row:5;display:flex;align-items:center;justify-content:space-around;margin:0;gap:4px;width:100%}.reference-scene .coop-dock button{width:66px;height:66px;min-width:44px;min-height:44px;margin:0;touch-action:manipulation}.reference-scene #coopNotice{position:relative;left:auto;right:auto;bottom:auto;grid-column:1 / -1;grid-row:6;align-self:stretch;padding:3px 7px;font-size:10px;line-height:12px;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;border-radius:9px}.reference-scene .ref-shimmer{display:none}.reference-scene .farm-quest{position:absolute;left:8px;right:8px;bottom:calc(var(--phone-bottom) + var(--phone-notice) + var(--phone-dock) + 12px);max-height:calc(100% - var(--farm-top) - var(--phone-dock) - var(--phone-notice) - 28px);padding:12px;overflow:auto;overscroll-behavior:contain}.reference-scene .farm-quest-content .coop-quiz-word{font-size:26px;overflow-wrap:anywhere}.reference-scene .farm-quest-content .island-primary{font-size:14px;min-height:44px;padding:8px}.reference-scene .farm-answer-crates{flex-wrap:wrap;gap:6px}.island-dialog-card{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto}.island-dialog button{min-height:44px}.big-word-card{min-width:0;width:100%;padding:20px 12px}.big-word{overflow-wrap:anywhere}}@media(max-width:600px)and (orientation:portrait)and (max-height:620px){.reference-scene{--phone-logo:48px;--phone-resources:40px;--phone-cards:202px;--phone-dock:56px;--phone-notice:26px;gap:6px}.reference-scene .coop-dock button{width:56px;height:56px}.reference-scene .ref-board{padding:5px}.reference-scene .ref-board h3{font-size:13px}}@media(max-width:960px)and (max-height:500px)and (orientation:landscape),(max-height:499px)and (orientation:landscape){.reference-scene .ref-board button{min-height:30px;font-size:12px}.reference-scene .ref-board button.ref-link{min-height:24px;font-size:10px}.reference-scene .ref-build #coopFeed{font-size:10px;line-height:1.25;padding:3px}.reference-scene .ref-build #coopFeed span{font-size:9px}.reference-scene .ref-board h3{font-size:13px;margin-bottom:4px}.reference-scene .ref-board p,.reference-scene .ref-board div{font-size:10px;line-height:1.25}.reference-scene .ref-orders strong{font-size:12px}}
