html.game-open, body.is-playing { overflow:hidden; overscroll-behavior:none; }
body.is-playing {
 position:fixed; inset:0; width:100%; height:var(--game-height,100vh); margin:0;
 background:#f2f1e3; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none;
}
.is-playing .top,.is-playing .site-footer { display:none; }
body.is-playing #app { width:100%; height:100%; max-width:none; margin:0; padding:0;
 padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
#phaser-stage { width:100%; height:100%; overflow:hidden; touch-action:none; }
#phaser-stage canvas { display:block; width:100% !important; height:100% !important; touch-action:none; }

#app:fullscreen { background:#f2f1e3; }
#app:-webkit-full-screen { background:#f2f1e3; }

.share-home {color:#345d47;font-weight:650;text-decoration:underline;text-underline-offset:4px;margin-inline-start:10px}
#garden-share {box-sizing:border-box;width:min(440px,calc(100% - 24px));max-height:88vh;max-height:88dvh;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;user-select:text;-webkit-user-select:text;-webkit-touch-callout:default;padding:24px;color:#314d3c}
#garden-share .close {position:absolute;right:8px;top:6px;width:44px;height:44px}
#garden-share h2 {padding-right:34px;margin:0;font-size:23px}
#garden-share label,.support-content label {display:block;font-weight:650}
#garden-share input,.support-content input {display:block;box-sizing:border-box;width:100%;margin-top:5px;background:#fffdf7;border:1px solid #d2d9c8;color:#304638;border-radius:9px;padding:9px;font-size:16px}
.share-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.share-actions button,.invite-save,.support-content button {background:#365f49;color:white;border-radius:10px;padding:10px 16px;font-weight:650}
#garden-share [hidden] {display:none}
.share-status:empty,.support-content [role=status]:empty {display:none}
.invite-details,.support-details {margin:16px 0 8px;border-top:1px solid #d8dfcf}
.invite-details summary,.support-details summary {cursor:pointer;padding:12px 0;color:#345e47;font-weight:700;min-height:44px;box-sizing:border-box}
.invite-image,.support-content img {display:block;width:min(100%,235px);height:auto;margin:4px auto 12px;-webkit-touch-callout:default}
.invite-save {display:inline-block;text-decoration:none}
.wechat-help,.invite-details p,.support-content p {font-size:14px;line-height:1.6}
.support-content img {max-width:180px}
.support-content button {margin-top:8px}
