/* v9: the room is the home screen; information opens at its point of use. */
#main[data-view="home"]{display:flex;flex-direction:column;gap:8px;padding:14px 22px 10px}
#main[data-view="home"]>.view-content{flex:1;min-height:0;display:flex;flex-direction:column}
.home-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;border-bottom:1px solid var(--line);padding-bottom:8px;font-size:.84rem}
.home-summary>button,.home-summary>span{display:flex;align-items:center;gap:8px}.home-summary>button{border:0;background:none;color:inherit;padding:4px 0;min-height:36px}.home-summary .icon{height:18px;width:18px}.home-summary b{font-size:1rem}
.home-desk{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.home-desk-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-desk-heading h1{font-size:1.1rem;line-height:1.4;margin:0}.home-desk-heading>span{flex-shrink:0;font-size:.72rem;color:#736854}
.home-notice{display:flex;align-items:center;gap:10px;width:100%;border:1px solid #d8cfb4;border-radius:10px;background:#fffaf0;text-align:left;padding:8px 12px;min-height:48px;flex:none}.home-notice>.staff-face{width:30px;height:30px;flex:0 0 30px}.home-notice>span:not(.staff-face){min-width:0;flex:1}.home-notice b{font-size:.8rem}.home-notice small{display:block;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-notice.required{border-left:4px solid #a86b39}.home-notice .mention-avatar{width:20px;height:20px;min-width:20px}.home-calm{font-size:.76rem;color:#766c5a;margin:0;min-height:28px;display:flex;align-items:center}
.home-room-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex:none}.home-room-toolbar .segmented>button{font-size:.8rem;padding:8px 16px;min-height:40px}.home-room-toolbar .text-button{font-size:.76rem;min-height:40px}
.room-viewport{display:grid;place-items:center;flex:1;min-height:0}
.clubhouse-room{position:relative;width:100%;max-width:min(980px,calc((var(--app-height) - 275px)*1.5));aspect-ratio:3/2;isolation:isolate;border-radius:14px;box-shadow:0 4px 20px #34281320;background:#efe8d4}
.clubhouse-room>.room-background{position:absolute;inset:0;width:100%;height:100%;max-width:none;aspect-ratio:3/2;border-radius:14px;background-size:200% 200%;background-repeat:no-repeat;margin:0}
.room-object,.room-staff{position:absolute;left:var(--x);top:var(--y);border:0;background:transparent;padding:0;transform:translate(-50%,-50%);isolation:isolate;color:#fffdf2;text-align:center;z-index:2}
.room-object{min-width:44px;min-height:44px;width:10%;display:grid;place-items:center}
.room-object-art{display:grid;place-items:center;width:34px;height:34px;border:2px solid #936c43;border-radius:3px;background:#f5e4bc;box-shadow:1px 3px 0 #523d35;color:#5f5039}.room-object-art>.icon{width:24px;height:24px}.object-schedule .room-object-art{border-top:7px solid #557b66}.object-news .room-object-art{background:#ac8559;color:#fff4d0}.object-table .room-object-art{background:#3f5548;color:#efd28c;border-color:#9f814b}
.room-label{display:block;white-space:nowrap;border-radius:5px;background:#263b35e8;padding:4px 7px;font-size:.7rem;font-weight:700;line-height:1.4;box-shadow:0 2px 4px #0003;width:max-content;max-width:96px;margin:5px auto 0}
.room-object:hover,.room-object:not(:disabled):active,.room-staff:hover,.room-staff:not(:disabled):active{background:transparent;transform:translate(-50%,-50%)}
.room-object:focus-visible,.room-staff:focus-visible{outline:3px solid #f2d88d;outline-offset:6px;border-radius:5px}
.room-staff{height:var(--person-height);width:calc(var(--person-height)*.5);transform:translate(-50%,-100%);min-width:0;min-height:0;z-index:3}
.room-staff:hover,.room-staff:not(:disabled):active{transform:translate(-50%,-100%)}
.room-person{display:block;width:100%;height:100%;position:relative;overflow:hidden;filter:drop-shadow(1px 3px 2px #0003);pointer-events:none}
.room-person img{position:absolute;top:0;width:400%;height:200%;max-width:none;object-fit:fill;pointer-events:none}
.room-staff>.room-label{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:0}
.room-bubble{position:absolute;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%);background:#fffbea;color:#344c3e;border:1px solid #ac996a;padding:7px 10px;border-radius:9px;box-shadow:0 3px 8px #1b261a26;white-space:nowrap;font-size:.75rem;font-weight:700;max-width:180px}
.room-bubble:after{content:'';position:absolute;top:100%;left:calc(50% - 5px);border:5px solid transparent;border-top-color:#fffbea}
.room-staff .room-bubble{bottom:92%;left:50%;transform:translateX(-100%)}.room-staff[data-id="finance"] .room-bubble{transform:none}.object-schedule .room-bubble{left:0;transform:none;font-size:.68rem}.room-stadium .room-bubble{font-size:.7rem}
.home-room-caption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px;font-size:.7rem;color:#726959;margin:2px 0}.home-room-caption>span{color:#857e6d}
.home-popup .people-stories{grid-template-columns:1fr}.home-popup .person-story{max-width:none}.home-popup .match-highlights p{font-size:.84rem}.home-popup .upcoming-match{gap:10px;flex-wrap:wrap}.home-popup .staff-plans{margin-top:16px}.home-popup .staff-plans .staff-plan{flex-direction:column;align-items:stretch}.home-popup .coach-notice{grid-template-columns:auto 1fr}.home-popup .coach-notice>.button{grid-column:1/-1}.home-popup .people-alerts{margin-top:12px}
.inbox-list{display:grid;gap:10px}.inbox-item{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left;padding:16px 12px;border:1px solid var(--line);border-radius:10px;background:#fffdf6;color:#364735;line-height:1.7}
.player-mention{max-width:100%;display:inline-flex;align-items:center;gap:4px;vertical-align:middle;white-space:nowrap;font-weight:600;font-size:inherit}
.player-mention>.mention-avatar{width:26px;height:26px;min-width:26px;aspect-ratio:1;display:inline-block;margin:0;border-radius:6px;border:1px solid #d9cfb8;flex-shrink:0;vertical-align:middle}
.player-mention>span{min-width:0}.player-mention>span:last-child{white-space:normal;overflow-wrap:anywhere}.speaker-card .player-mention>.mention-avatar{width:26px;height:26px;min-width:26px;aspect-ratio:1}.club-news-line{line-height:1.85;border-bottom:1px solid var(--line);padding:10px 0;font-size:.875rem}
.event-subject{display:flex;align-items:center;gap:8px;border:0;background:none;color:var(--forest);padding:4px 0 10px;text-align:left;font-weight:700}.event-subject>.avatar{width:32px;height:32px}
.team-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.team-tabs button{font-size:.875rem;min-height:44px}
.player-stat-table{width:100%;table-layout:fixed;min-width:0}.player-stat-table th:first-child{width:44%;min-width:0}.player-stat-table th,.player-stat-table td{padding:12px 7px;min-width:0;text-align:center}.player-stat-table th:first-child{text-align:left}.player-stat-table .table-player{width:100%;min-width:0;gap:8px;text-align:left}.player-stat-table .table-player>.avatar{width:30px;height:30px;min-width:30px;flex-shrink:0}.player-stat-table .table-player>span{min-width:0;white-space:normal;overflow-wrap:anywhere}.player-stat-table .table-player small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%;font-size:.67rem}.player-stat-table td small{display:block;font-size:.65rem;white-space:normal}.season-stats-toolbar{margin-top:12px}.team-season-summary{margin-bottom:16px}
.coach-opinion{border:1px solid #d9cfb7;border-left:4px solid #839763;border-radius:10px;padding:0 14px 12px;margin:16px 0;background:#f9f5e9}.coach-opinion.retain,.coach-opinion.hold{border-left-color:#ac714e}.coach-opinion .speaker-card{background:none;border:0;padding:12px 0;margin:0}.coach-opinion dl{margin:0}.coach-opinion dt{font-size:.72rem;color:#736b5a;font-weight:700;margin-top:9px}.coach-opinion dd{margin:5px 0 12px;font-size:.875rem;line-height:1.8}.coach-opinion>.small{font-size:.75rem;margin-bottom:0}.candidate-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.candidate-identity>span:last-child{font-size:.76rem;color:#6b745d}.market-section-title{font-size:1.15rem;margin:24px 0 8px}
.facility-painted{display:block;width:100%;height:100%;object-fit:contain;background:#fffdf0}.all-facilities .building-art{background:#fffdf0}.future-facilities .facility-painted{height:140px}.facility-preview .facility-painted{object-fit:contain}
@media(max-width:640px){
 #main[data-view="home"]{padding:8px 10px;gap:6px}.home-desk{gap:6px}.home-summary{padding-bottom:4px;font-size:.73rem}.home-summary b{font-size:.87rem}.home-summary>span{font-size:.7rem}.home-desk-heading h1{font-size:.94rem}.home-desk-heading>span{font-size:.65rem}.home-notice{padding:6px 8px;min-height:43px}.home-notice small{font-size:.66rem}.home-room-toolbar .segmented>button{font-size:.75rem;padding:7px 12px;min-height:36px}.home-room-toolbar .text-button{min-height:36px}.clubhouse-room{max-width:min(100%,max(280px,calc((var(--app-height) - 295px)*1.5)))}.room-label{font-size:.66rem;padding:4px 6px}.room-bubble{font-size:.64rem;padding:5px 7px}.room-object-art{width:28px;height:30px}.room-object-art>.icon{width:20px;height:20px}.object-schedule .room-bubble{font-size:.6rem}.home-room-caption{font-size:.65rem}.home-room-caption>span{display:none}.home-calm{font-size:.7rem;min-height:24px}.team-tabs button{font-size:.78rem;padding:10px 2px}.player-stat-table th,.player-stat-table td{padding:10px 4px;font-size:.76rem}.player-stat-table thead th{font-size:.68rem}.player-stat-table .table-player{gap:5px;font-size:.77rem}.player-stat-table .table-player>.avatar{width:26px;height:26px;min-width:26px}.team-season-summary strong{font-size:1.12rem}.future-facilities .facility-painted{height:100px}.home-popup .dialog-content{padding:10px 16px 18px}
}
@media(max-height:540px){#main[data-view="home"]{display:block}.home-desk{min-height:300px}.clubhouse-room{max-width:440px}.room-viewport{padding:8px 0}}
@media(prefers-reduced-motion:reduce){.room-person,.room-object{animation:none}}
