.community-content{color:#415243}.community-content h3{font-size:17px;margin:22px 0 12px}.community-summary{font-weight:700;color:#57734c;margin:0 0 16px}.community-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,1fr);gap:20px}.community-scene{height:390px;min-width:0;border-radius:24px;overflow:hidden;background:#f3ecd7;position:relative;touch-action:none}.community-scene canvas{display:block;width:100%;height:100%;border-radius:24px;touch-action:none}.community-status{font-size:14px;line-height:1.8;margin:0 0 14px}.community-needs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.community-need{font-size:12px;color:#7b806c}.community-need progress{display:block;width:100%;height:7px;accent-color:#d28c62;margin:7px 0 15px}.community-care{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 12px}.community-care-action{background:#eef1e4!important;color:#43573d!important;border:1px solid #d4dcc9!important;border-radius:14px!important;padding:11px!important}.community-care-action small{display:block;font-size:10px;font-weight:400;line-height:1.5;margin-top:4px}.community-care-action:disabled{opacity:.55;cursor:default}.community-houses{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.community-house-card{background:#f9f6ed;border:1px solid #e2dece;border-radius:17px;padding:10px;display:flex;flex-direction:column;gap:8px;min-width:0}.community-house-card.selected{outline:2px solid #8fa476;outline-offset:1px}.community-house-card small{font-size:11px;color:#828575;line-height:1.5;min-height:32px}.community-house-card button{white-space:normal;line-height:1.5;font-size:12px}.community-house-preview{background:var(--house-color)!important;color:#344239!important;min-height:65px;border-radius:12px!important}.community-house-card:nth-child(4) .community-house-preview{color:#fff7e8!important}.feature-dialog:has(.community-content){width:min(1030px,94vw)}@media(max-width:700px){.community-layout{grid-template-columns:1fr;gap:14px}.community-scene{height:300px}.community-houses{grid-template-columns:repeat(2,minmax(0,1fr))}.community-status{margin:0 0 8px}.feature-dialog:has(.community-content){width:94vw}.community-panel .feature-note{font-size:11px}}
.community-visit .community-status{margin:0}.community-visitor-note{margin:0}
.community-outing-links{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.community-outing-links button{flex:1;min-width:170px}
.feature-dialog:has(.community-game-content,.community-plaza-content){width:min(1050px,95vw)}.community-game-header{display:flex;justify-content:space-between;align-items:center;color:#627258;font-size:13px;margin:0 0 13px}.community-game-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(230px,1fr);gap:18px;align-items:start}.community-game-scene{position:relative;height:390px;min-width:0;border-radius:22px;overflow:hidden;background:#eee8d9;touch-action:none}.community-game-scene canvas{display:block;width:100%;height:100%}.community-game-panel{min-width:0}.community-game-prompt{font-size:16px;font-weight:600;line-height:1.7;color:#4b6651;min-height:56px}.community-game-controls{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.community-game-choice{padding:10px 13px!important;border-radius:14px!important;background:#eef0e3!important;border:1px solid #d2dac6!important;min-height:44px;font-size:13px!important}.community-game-choice.target{background:#ffe5ac!important;border-color:#dbb171!important}.community-game-choice:disabled{opacity:.45}.community-game-panel>.feature-note{font-size:12px;line-height:1.7}.community-games-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.community-game-card{border:1px solid #e1dccd;background:#f8f4e9;border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px}.community-game-card h3{margin:0;font-size:18px;color:#586c51}.community-game-card p{font-size:12px;line-height:1.65;flex:1}.community-game-card small{font-size:11px;color:#87846c}.community-game-card button{font-size:13px}.community-stack-meter{position:relative;background:#e4eadb;width:100%;height:36px;border-radius:18px;text-align:center;overflow:hidden}.community-stack-meter span{position:absolute;left:40%;width:20%;height:100%;font-size:10px;line-height:36px;background:#ebc896}.community-stack-meter i{position:absolute;top:5px;width:8px;height:26px;background:#b26d83;border-radius:4px;transform:translateX(-50%)}
.community-plaza-labels{position:absolute;inset:0;pointer-events:none;z-index:2}.community-neighbor-label{position:absolute;transform:translate(-50%,-100%);background:#fff9e2d9;border:1px solid #ced6c4;color:#486046;font-size:10px;border-radius:10px;padding:4px 7px;white-space:nowrap}.community-plaza-roster{display:flex;gap:7px;flex-wrap:wrap;font-size:12px}.community-plaza-roster span{background:#edf0e3;border-radius:13px;padding:5px 9px}.community-plaza-pad{position:relative;width:115px;height:115px;border-radius:50%;margin:18px auto;background:#e2e9d2c9;border:1px solid #c6d3b7;touch-action:none;user-select:none}.community-plaza-pad i{position:absolute;left:36px;top:36px;width:43px;height:43px;border-radius:50%;background:#91a78099;border:2px solid #fff9d2;pointer-events:none}.community-plaza-pad>span{position:absolute;bottom:9px;left:0;right:0;text-align:center;font-size:10px;color:#71876a}
.adventure-active .feature-dialog:has(.community-game-content,.community-plaza-content){max-width:1050px;width:min(1050px,95vw)}.feature-dialog:has(.community-game-content,.community-plaza-content) #feature-message:empty{display:none}
@media(orientation:landscape) and (max-height:500px){.adventure-active .feature-dialog:has(.community-game-content,.community-plaza-content){padding:12px 16px;max-height:96dvh}.feature-dialog:has(.community-game-content,.community-plaza-content) .feature-header{margin-bottom:9px;padding-bottom:6px}.feature-dialog:has(.community-game-content,.community-plaza-content) .feature-header h2{font-size:16px;margin:2px 0}.feature-dialog:has(.community-game-content,.community-plaza-content) #feature-close{min-height:30px;padding:6px 9px}.community-plaza-content .community-summary{font-size:11px;margin:0 0 5px}.community-plaza-content .community-game-panel>.feature-note{margin:0 0 5px}.community-plaza-roster{font-size:10px}.community-plaza-roster span{padding:3px 6px}.community-plaza-content .community-plaza-pad{margin:5px auto;height:70px;width:70px}.community-plaza-content .community-plaza-pad i{top:20px;left:20px}}
@media(max-width:700px) and (orientation:portrait){.community-game-layout{grid-template-columns:1fr}.community-game-scene{height:290px}.community-games-grid{grid-template-columns:1fr 1fr;gap:9px}.community-game-card{padding:12px}.community-game-card h3{font-size:16px}.community-game-panel .community-game-prompt{min-height:0}.community-plaza-pad{margin:12px auto}}
@media(orientation:landscape) and (max-height:500px){.community-game-layout{grid-template-columns:minmax(0,1.4fr) minmax(210px,1fr);gap:12px}.community-game-scene{height:215px}.community-game-header{margin-bottom:6px;font-size:11px}.community-game-prompt{font-size:13px;margin:0;min-height:35px;line-height:1.5}.community-game-choice{min-height:32px;font-size:11px!important;padding:7px 9px!important}.community-game-controls{margin:8px 0;gap:5px}.community-game-panel>.feature-note{font-size:10px;margin:7px 0}.community-game-panel>button{min-height:32px;font-size:11px}.community-games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.community-game-card{padding:11px}.community-game-card h3{font-size:15px}.community-game-card p{font-size:10px;margin:0}.community-plaza-pad{height:80px;width:80px;margin:8px auto}.community-plaza-pad i{left:25px;top:25px;width:30px;height:30px}.community-plaza-pad>span{bottom:4px;font-size:8px}}
@media(orientation:landscape) and (max-height:500px){
 .community-scene{height:210px}
 .community-visit{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:auto auto auto auto;grid-template-areas:"scene title" "scene status" "scene note" "scene join";gap:7px 14px!important;align-items:center}
 .community-visit .community-scene{grid-area:scene;height:210px}
 .community-visit .community-summary{grid-area:title;font-size:12px;margin:0}
 .community-visit .community-status{grid-area:status;font-size:12px;line-height:1.5}
 .community-visit .community-visitor-note{grid-area:note;font-size:11px;line-height:1.5}
 .community-visit #community-join-race{grid-area:join;min-height:38px}
}

.community-decor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.community-decor-card{border:1px solid #e0decf;border-radius:17px;background:#f8f4ea;padding:13px;display:flex;align-items:center;flex-direction:column;gap:8px;text-align:center;font-size:12px}.community-decor-icon{font-size:33px;color:#a08a70}.community-decor-card small{font-size:10px;color:#88856d}.community-decor-card button{font-size:11px!important}.community-decor-card b{font-weight:600}@media(max-width:700px){.community-decor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Native swipe, center focus and small neighboring cards, shared by room choices. */
.community-decor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}.community-choice-group{min-width:0;overflow:hidden}.community-choice-group h4{margin:8px;text-align:center;font-size:13px;color:#776752}.community-choice-strip{position:relative;display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:none;padding-block:18px;min-height:214px;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)}.community-choice-strip::-webkit-scrollbar{display:none}.community-choice-strip .community-decor-card,.community-choice-strip .community-house-card{flex:0 0 150px;box-sizing:border-box;scroll-snap-align:center;transform:scale(.8);opacity:.66;transition:transform .18s,opacity .18s}.community-choice-strip .focused{transform:scale(1);opacity:1;background:#fff9ee;box-shadow:0 8px 24px #ab987329}.community-choice-strip .community-decor-icon{font-size:32px!important;background:transparent;border:0;min-height:42px}.community-houses{display:block}.community-growth{background:#f6eedb;border-radius:16px;padding:12px;margin-bottom:8px;font-size:12px;line-height:1.7}.community-growth progress{display:block;width:100%;height:7px;accent-color:#a9bf8a}.community-share-reward{background:#fff0cd;border-radius:14px;padding:12px;line-height:1.7;color:#8a632e}.community-toy-status{font-size:11px;color:#88775d}
@media(max-width:600px){.community-decor-grid{grid-template-columns:1fr}.community-choice-strip .community-decor-card{flex-basis:155px}}
.adventure-active .feature-dialog:has(.community-content){width:min(1030px,94vw)}.community-content,.community-content>*{min-width:0;max-width:100%;box-sizing:border-box}.community-panel{min-width:0}.community-decor-grid>.community-choice-group{width:100%;box-sizing:border-box}.community-choice-strip{max-width:100%}
.party-members{display:flex;gap:8px;flex-wrap:wrap}.party-member{font-size:11px;background:#edf0e2;padding:7px 10px;border-radius:12px;max-width:100%;overflow-wrap:anywhere}.party-member.active{background:#fbe2a7;color:#79512b;box-shadow:0 3px 12px #d9b77c35}.party-turn{color:#657b56;background:#f7eed7;padding:10px 14px;border-radius:12px;font-size:13px}.party-invite{max-width:100%}.community-party-content{min-width:0}.community-party-content>*{min-width:0}.community-game-card [data-party-create]{margin-top:7px;background:transparent;color:#677f54;border:1px solid #ccd6bd;border-radius:12px;font-size:12px}.feature-dialog:has(.community-party-content){width:min(1050px,95vw)}
@media(orientation:landscape) and (max-height:500px){.community-party-content{gap:5px!important}.community-party-content .community-summary{font-size:11px;margin:0}.community-party-content .party-member{font-size:9px;padding:4px 7px}.community-party-content .party-turn{font-size:10px;margin:0;padding:5px 9px}.community-party-content .community-game-scene{height:165px}.community-party-content .community-game-header{font-size:10px;margin:0}.community-party-content .community-game-layout{gap:10px}.community-party-content .community-game-panel .feature-note{font-size:9px;line-height:1.4;margin:4px 0}.community-party-content #party-leave{min-height:27px;font-size:10px;padding:4px 8px}.adventure-active .feature-dialog:has(.community-party-content){padding:12px 16px}.community-party-content .party-members{gap:4px}}

.community-food .food-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
.community-food .food-icon{grid-column:1;grid-row:1;align-self:center;width:30px}
.community-food .food-copy{grid-column:1/span 2;grid-row:1;padding-left:34px;min-width:0;white-space:normal;overflow-wrap:normal}
.community-food .food-card button{grid-column:span 1;min-width:0;font-size:12px;padding:9px 6px}
