.hp-player-row{position:relative}.hp-player-hit{position:absolute;inset:0;border:0;background:transparent;border-radius:12px;cursor:pointer}.hp-player-hit:focus-visible{outline:3px solid #fff164;outline-offset:2px}.hp-player-dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,480px);max-width:100%;max-height:85dvh;overflow:auto;border:1px solid #ffffff50;border-bottom:0;border-radius:26px 26px 0 0;background:#087cff;color:white;padding:0;box-shadow:0 -15px 50px #15336250;color-scheme:light}.hp-player-dialog::backdrop{background:#092c6655}.hp-player-pane{padding:14px 22px max(24px,env(safe-area-inset-bottom));font-family:Arial,Helvetica,sans-serif;color:white;background:#087cff}.hp-player-pane *{box-sizing:border-box}.hp-player-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.hp-player-back,.hp-player-close{border:0;color:white;background:none;min-height:44px;font:inherit}.hp-player-back:disabled{opacity:1;font-size:12px;letter-spacing:1px;text-transform:uppercase}.hp-player-close{width:44px;border-radius:50%;background:#ffffff20;font-size:26px}.hp-player-person{display:flex;gap:16px;align-items:center}.hp-player-person h2{font-size:27px;letter-spacing:-1px;overflow-wrap:anywhere;margin:0;font-weight:800}.hp-player-person .board-avatar{width:64px;height:72px}.hp-player-person .board-character .figure{transform:scale(.32);transform-origin:top left}.hp-player-label{margin:22px 0 12px;font-size:12px;color:#fff164;font-weight:700}.hp-player-stats{display:flex;border-block:1px solid #ffffff50;padding:16px 0}.hp-player-stats>div{flex:1;text-align:center}.hp-player-stats>div+div{border-left:1px solid #ffffff40}.hp-player-stats strong{display:block;color:#fff164;font-size:27px;font-weight:800}.hp-player-stats span{display:block;font-size:12px;margin-top:5px}.hp-player-action{border:0;background:#fff164;color:#153362;border-radius:14px;min-height:48px;padding:12px 16px;font:inherit;font-weight:800;cursor:pointer}.hp-player-pane>.hp-player-action{width:100%;margin-top:22px}.hp-player-action:disabled{opacity:.7;cursor:default}.hp-player-message{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.hp-player-message:empty{display:none}.hp-player-invites h3{font-size:15px}.hp-player-invite{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #ffffff40}.hp-player-identity{display:flex;flex:1;min-width:140px;align-items:center;gap:10px;text-align:left;border:0;background:none;color:inherit;padding:0;font:inherit;cursor:pointer}.hp-player-identity strong,.hp-player-identity small{display:block;overflow-wrap:anywhere}.hp-player-identity small{font-size:11px;margin-top:5px}.hp-player-invite-actions{display:flex;align-items:center;gap:8px}.hp-player-invite-actions .hp-player-action{font-size:13px}.hp-player-minor,.hp-player-inbox-error{border:0;background:transparent;color:inherit;min-height:44px;font:inherit;font-size:12px;text-decoration:underline}.hp-player-invite>.hp-player-message{flex-basis:100%;margin:0}.match-sheet>[hidden]{display:none!important}

.match-sheet-scroll:has(.hp-player-invite) .match-empty{display:none}

.hp-player-search{display:flex;gap:8px;margin:18px 0}.hp-player-search input{flex:1;min-width:0;border:1px solid #ffffff80;background:white;color:#153362;border-radius:12px;padding:12px;font:inherit;font-size:16px}.hp-player-search input::placeholder{color:#596e88}.hp-player-search .hp-player-action{padding:10px 14px}.hp-player-search-result{display:flex;align-items:center;gap:12px;width:100%;border:0;border-bottom:1px solid #ffffff40;background:none;color:white;text-align:left;padding:14px 0;font:inherit;cursor:pointer}.hp-player-search-result .board-avatar{flex:none;width:54px;height:64px}.hp-player-search-result .board-character .figure{transform:scale(.27);transform-origin:top left}.hp-player-search-result>span:not(.board-avatar){min-width:0}.hp-player-search-result strong{display:block;overflow-wrap:anywhere;font-size:17px}.hp-player-search-result small{display:block;font-size:12px;margin-top:5px}.hp-player-search-arrow{margin-left:auto}.hp-player-top h2{margin:0;font-size:23px}.hp-find-player{align-self:flex-start;margin:14px 0 0}.design-friend-heading{flex-wrap:wrap;column-gap:14px;row-gap:4px}.design-friend-heading h3{margin-right:auto}.hp-find-player-profile{white-space:nowrap}.hp-player-search-result:focus-visible,.hp-find-player:focus-visible{outline:3px solid #fff164;outline-offset:3px}.hp-player-new{margin:18px 0;font-size:17px;font-weight:700}

/* Game and mode are already selected above the friend rankings. */
.house-board.hp-friend-mode .board-caption,.house-board.hp-friend-mode .board-footnote,.house-board.hp-friend-mode .board-eyebrow{display:none}

.hp-player-invite>.hp-play-timing{flex-basis:100%;margin:0}.hp-player-pane>.hp-play-timing{margin:16px 0 0;font-weight:700}.hp-player-pane>.hp-play-timing+.hp-player-action{margin-top:8px}

/* Matches navigation: one header entry and two compact sheet actions. */
.house-header-actions .hp-matches-trigger{white-space:nowrap;flex-shrink:0;min-height:44px}
.hp-matches-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 0 18px}
.hp-matches-tools .hp-player-action{min-height:46px;margin:0;padding:12px 10px;font-size:15px}
.hp-matches-tools .hp-join-code{background:#edf4ff;color:#183763}
.match-sheet>.match-description{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.hp-search-game{display:flex;align-items:center;gap:12px;font-weight:700;margin:16px 0 8px}
.hp-search-game select{min-width:0;flex:1;background:#edf4ff;color:#183763;border:0;border-radius:12px;padding:12px;font:inherit;font-size:16px}
.hp-has-challenges .match-empty{display:none}
#player-closet .hp-profile-signout{order:7;width:100%;border-top:1px solid rgba(255,255,255,.25);padding:14px 0;margin-top:0;display:block}
#player-closet .hp-profile-signout button{background:none;border:0;color:inherit;font:inherit;font-weight:700;min-height:44px;padding:8px 0;cursor:pointer}
#player-closet .hp-profile-signout button:disabled{opacity:.55}
#player-closet .hp-profile-signout p{font-size:14px}

/* Use the rounded Houseparty type and quiet outlined navigation treatment. */
.house-header-actions .house-header-join.hp-matches-trigger{
 background:transparent;color:#fff;border:1.5px solid #ffffff70;
 border-radius:999px;box-shadow:none;font-family:inherit;
 font-size:15px;font-weight:800;line-height:1.2;
 min-height:44px;padding:10px 16px!important;
}
.house-header-actions .hp-matches-trigger:hover{background:#ffffff12;border-color:#ffffffb3}
.house-header-actions .hp-matches-trigger:active{background:#ffffff24}
.house-header-actions .hp-matches-trigger:focus-visible{outline:3px solid #fff164;outline-offset:4px}
.hp-player-pane{font-family:ui-rounded,"SF Pro Rounded",-apple-system,system-ui,"Segoe UI",sans-serif}
.hp-player-top{gap:12px}
.hp-player-back:not(:disabled){font-family:inherit;font-size:15px;font-weight:800;line-height:1.2;white-space:nowrap;padding:8px 0;cursor:pointer}
.hp-player-back:not(:disabled):hover{color:#fff164}
.hp-player-back:focus-visible{outline:3px solid #fff164;outline-offset:4px;border-radius:8px}
.hp-player-top h2{font-weight:850;letter-spacing:-.025em}
@media(min-width:768px){.house-header-actions .house-header-join.hp-matches-trigger{font-size:19px;padding:12px 18px!important;min-height:48px}}
@media(max-width:380px){.hp-player-top{gap:8px}.hp-player-top h2{font-size:20px}.hp-player-back:not(:disabled){font-size:14px}}

/* Keep Home badges close to gear after moving computer resumes to Matches. */
.game-home > .player-peek:has(+ .hp-pong-badges){margin-bottom:0}
.game-home > .player-peek + .hp-pong-badges{margin-top:0;padding-top:12px;border-top:0}
.hp-frat-progress{margin:16px 0 24px;color:#fff;text-align:left;border-top:1px solid #ffffff40;padding-top:16px;font:inherit}
.hp-frat-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 12px}.hp-frat-section-heading h2{font:800 20px/1.2 ui-rounded,system-ui,sans-serif!important;letter-spacing:0!important;margin:0!important}.hp-frat-section-heading>span{font-size:12px;color:#e0eeff}
.hp-frat-missions{display:grid;gap:12px}.hp-frat-missions>div{display:flex;justify-content:space-between;gap:12px;font-size:14px}.hp-frat-missions strong{color:#fff164;white-space:nowrap}.hp-frat-reward{margin:12px 0 24px;font-size:12px;color:#e0eeff}.hp-frat-reward summary{cursor:pointer;padding:6px 0}.hp-frat-reward p{font:inherit;line-height:1.5;margin:4px 0}
.hp-frat-badges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hp-frat-badges>div{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;border:1px solid #ffffff45;border-radius:16px;padding:14px 7px;min-width:0;background:#ffffff0c}.hp-frat-badges>div.earned{border-color:#fff164;background:#ffffff19}.hp-frat-badges>div>span{display:grid;place-items:center;border-radius:50%;background:#ffffff20;width:54px;height:54px;font-size:28px}.hp-frat-badges>.locked>span{filter:grayscale(1);opacity:.6}.hp-frat-badges strong{font-size:12px;line-height:1.3}.hp-frat-badges small{font-size:11px;line-height:1.4}.hp-frat-badges b{font-size:11px;color:#fff164;margin-top:auto}.hp-frat-device-note{display:block;margin-top:12px;color:#d9eaff;font-size:11px}.hp-frat-retry{font:inherit;background:none;color:#fff;border:1px solid #ffffff60;border-radius:12px;padding:12px;cursor:pointer}

.hp-frat-unlock{display:block;font-size:11px;line-height:1.4;margin-top:4px;color:#fff164}.hp-frat-badges .hp-frat-unlock{font-size:10px}.fs-shoe-grid button small{white-space:normal;line-height:1.4}

/* Contain profile hit targets even when React updates the row class. */
.house-board .board-list > li { position:relative; }
.house-board .hp-player-hit { touch-action:pan-y; }
/* The leaderboard is a document, not a game viewport. Avoid nested iOS scroll locks. */
@media(max-width:899px){
 :is(.shell,.hp-hoops,.fb-app):not(#mobile-nav-specificity):has(>main .house-board){height:auto!important;min-height:100dvh!important;overflow:visible!important}
 :is(.shell,.hp-hoops,.fb-app):not(#mobile-nav-specificity):has(>main .house-board)>main{flex:none!important;overflow:visible!important;min-height:0!important;touch-action:pan-y pinch-zoom}
}

.frat-board-switch{display:inline-flex;gap:4px;padding:4px;margin:8px 0 16px;border-radius:999px;background:rgba(0,52,130,.2)}.frat-board-switch button{border:0;border-radius:999px;padding:10px 18px;background:transparent;color:white;font:inherit;font-weight:800;cursor:pointer}.frat-board-switch button[aria-pressed="true"]{background:#fff164;color:#193763}.frat-board-switch button:focus-visible{outline:3px solid white;outline-offset:2px}@media(max-width:400px){.frat-board-switch button{padding:9px 14px}}

/* Highlight only the actionable count; zero stays quiet. */
.house-header-actions .house-header-join.hp-matches-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.hp-matches-trigger .hp-matches-count{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#fff164;color:#153362;font-size:13px;font-weight:850;line-height:1;font-variant-numeric:tabular-nums}

.hp-solo-badges{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;text-align:center}.hp-solo-badges img{display:block;width:60px;height:60px;margin:0 auto 8px}.hp-solo-badges strong,.hp-solo-badges small{display:block;font-size:11px;line-height:1.5}.hp-solo-badges small{color:#d9eaff}.hp-solo-badges .locked img{filter:grayscale(1);opacity:.45}.hp-solo-helper{text-align:center;color:#d9eaff}.hp-solo-other{width:100%;font-weight:700}.hp-solo-game{display:block;width:100%;border:1px solid #ffffff50;background:#ffffff12;border-radius:14px;color:white;text-align:left;padding:15px;margin-top:12px;font:inherit}.hp-solo-game small{display:block;margin-top:5px;font-size:12px;color:#e0eeff}

.hp-solo-target{position:relative;border:1px solid #ffffff60;background:#ffffff12;border-radius:16px;padding:14px 54px 14px 16px;margin:12px 0;color:white}.hp-solo-target strong,.hp-solo-target span{display:block}.hp-solo-target strong{color:#fff164}.hp-solo-target span{font-size:13px;margin-top:4px}.hp-solo-target button{position:absolute;right:8px;top:8px}

.hp-hoops-points-list{list-style:none;padding:0}.hp-hoops-points-list li{display:flex;gap:12px;align-items:center;padding:14px 8px;border-bottom:0}.hp-hoops-points-list .board-name{flex:1;overflow-wrap:anywhere}.hp-hoops-points-list .board-name small{display:block}.hp-hoops-personal{padding:14px;text-align:center}.hp-hoops-personal strong{font-size:24px}.hp-hoops-personal p{margin:8px 0}.hp-hoops-personal-target{text-align:center;padding:6px 10px;background:#fff16b;color:#17283e;font-size:13px;font-weight:800}

.hp-hoops-points-list li{border-bottom:0!important}

/* A count makes Matches an attention pill; empty state stays outlined. */
.house-header-actions .house-header-join.hp-matches-trigger:has(.hp-matches-count){background:#fff;color:#153362;border-color:#fff}
.house-header-actions .house-header-join.hp-matches-trigger:has(.hp-matches-count):hover{background:#edf4ff;border-color:#edf4ff}
.house-header-actions .house-header-join.hp-matches-trigger:has(.hp-matches-count):active{background:#e1ecff;border-color:#e1ecff}
