/* New 390 x 844 lobby. Every selector is scoped to the lobby presentation. */
#playdown-hub[data-screen=lobby]{background:#201946 url('new-lobby-backdrop.9dd41.svg') center/100% 100% no-repeat;font-family:Arial,Helvetica,sans-serif;container-type:size;overflow:hidden}
#playdown-hub[data-screen=lobby] #hub-page{height:100%;min-height:0;padding:42px 14px 0;display:block;overflow:auto;scrollbar-width:none}
#playdown-hub[data-screen=lobby] #playdown-lobby-view{height:100%;min-height:797px;display:grid;grid-template-rows:64px 110px 75px minmax(306px,1fr) 88px 104px;gap:10px!important;position:relative}
#playdown-hub[data-screen=lobby] .hub-header{display:none}
#playdown-hub[data-screen=lobby] .hub-user{grid-row:1;display:grid;grid-template-columns:64px minmax(0,1fr) minmax(160px,184px);align-items:center;gap:10px;position:static;width:auto;height:auto}
#playdown-hub[data-screen=lobby] .hub-user-avatar{width:64px;height:64px;min-height:44px;position:static;border-radius:50%;padding:3px;background:linear-gradient(145deg,#ad82ee,#50367f);flex:none;overflow:hidden}
#playdown-hub[data-screen=lobby] .hub-user-avatar img{width:100%;height:100%;object-fit:contain;border-radius:50%}
#playdown-hub[data-screen=lobby] #hub-user-name{font-size:22px;line-height:1.2;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:static;display:block;text-align:center}
#playdown-hub[data-screen=lobby] .hub-balance{position:static;height:47px;padding:0 4px 0 14px;gap:8px;display:grid;grid-template-columns:30px minmax(0,1fr) 44px;align-items:center;background:transparent url('new-lobby-balance.bdb53.svg') center/100% 100% no-repeat;border:0;border-radius:24px;font-size:19px;margin:0;min-width:0}
#playdown-hub[data-screen=lobby] .hub-balance>img{position:static;width:30px;height:26px;object-fit:contain}
#playdown-hub[data-screen=lobby] #hub-balance{position:static;padding:0;width:100%;min-height:44px;min-width:0;text-align:right;font-size:19px;white-space:nowrap;overflow:hidden;color:white}
#playdown-hub[data-screen=lobby] .hub-add-balance{position:static;padding:0;width:44px;height:44px;min-height:44px;background:none}
#playdown-hub[data-screen=lobby] .hub-add-balance img{width:44px;height:44px;object-fit:contain}
#playdown-hub[data-screen=lobby] .hub-logout,#playdown-hub[data-screen=lobby] [data-hub-action=notifications]{position:absolute;top:-42px;right:0;left:auto;width:44px;height:44px;min-height:44px;padding:8px;border:0;border-radius:12px;background:#4d357a55;z-index:2}
#playdown-hub[data-screen=lobby] [data-hub-action=notifications]{right:48px}
#playdown-hub[data-screen=lobby] .hub-friends{grid-row:2;display:grid;grid-template-rows:44px 66px;gap:0;position:static;height:auto}
#playdown-hub[data-screen=lobby] .hub-friends>div{display:flex;justify-content:space-between;align-items:center}
#playdown-hub[data-screen=lobby] .hub-friends strong{font-size:20px}
#playdown-hub[data-screen=lobby] .hub-friends button{color:#c9b1ff;font-size:12px;min-height:44px;display:flex;flex-direction:row-reverse;align-items:center;gap:8px;padding:0 2px}
#playdown-hub[data-screen=lobby] .hub-see-chevron{width:12px;height:12px;object-fit:contain}
#playdown-hub[data-screen=lobby] .hub-friends>p{background:#34266355;color:#c5a8fa;border:1px solid #8068b966;border-radius:20px;font-size:14px;display:grid;place-items:center;padding:8px;text-align:center}
#playdown-hub[data-screen=lobby] .hub-banner{grid-row:3;display:flex;position:static;min-height:75px;gap:10px;padding:10px 12px;background:transparent url('new-lobby-banner.2b28c.svg') center/100% 100% no-repeat;border:0;border-radius:20px;width:auto;height:auto}
#playdown-hub[data-screen=lobby] .hub-banner>img{width:58px;height:44px;object-fit:contain;flex-shrink:0}
#playdown-hub[data-screen=lobby] .hub-banner>strong{font-size:9px;color:#c9b1ff}
#playdown-hub[data-screen=lobby] .hub-banner>div{min-width:0;display:flex;flex-direction:column;gap:3px;text-align:left;font-size:13px;font-weight:700}
#playdown-hub[data-screen=lobby] .hub-banner small{font-size:10px;font-weight:400;color:#c5a8fa}
#playdown-hub[data-screen=lobby] .hub-banner .hub-banner-sparkle{width:18px;height:18px;margin-left:auto}
#playdown-hub[data-screen=lobby] .hub-cards{grid-row:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(148px,1fr));gap:10px 8px;position:static;min-height:306px}
#playdown-hub[data-screen=lobby] .hub-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;min-height:148px;padding:12px 12px 16px;gap:10px;border:0;border-radius:22px;color:#fff;font-size:18px;text-align:left;background:transparent url('new-lobby-game.8274f.svg') center/100% 100% no-repeat!important}
#playdown-hub[data-screen=lobby] .hub-card:nth-child(2){background-image:url('new-lobby-room.7a3c4.svg')!important}
#playdown-hub[data-screen=lobby] .hub-card:nth-child(3){background-image:url('new-lobby-recharge.ec4ca.svg')!important}
#playdown-hub[data-screen=lobby] .hub-card:nth-child(4){background-image:url('new-lobby-avatar.e0c5f.svg')!important}
#playdown-hub[data-screen=lobby] .hub-card-motion{width:112px;max-width:90%;height:88px;max-height:none;min-height:88px;flex-shrink:0}
#playdown-hub[data-screen=lobby] .hub-card-motion img{width:100%;height:100%;object-fit:contain}
#playdown-hub[data-screen=lobby] .hub-card>span:last-of-type{width:100%;padding-right:20px;line-height:1.1;font-weight:700;min-height:22px;margin-top:auto}
#playdown-hub[data-screen=lobby] .hub-card-chevron{position:absolute;right:10px;bottom:12px;width:28px;height:28px;object-fit:contain}
#playdown-hub[data-screen=lobby] .hub-club{grid-row:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;position:static;height:auto;min-height:88px}
#playdown-hub[data-screen=lobby] .hub-club>button{position:relative;min-width:0;height:88px;min-height:88px;margin:0;padding:10px;display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto auto;gap:2px 6px;align-content:center;align-items:center;text-align:left;color:white;font-size:14px;background:transparent url('new-lobby-club.b72cc.svg') center/100% 100% no-repeat!important;border:0;border-radius:20px}
#playdown-hub[data-screen=lobby] .hub-club-mark{grid-column:1;grid-row:1/4;background:none;border:0;width:46px;height:52px;padding:0}
#playdown-hub[data-screen=lobby] .hub-club-mark img{width:100%;height:100%;object-fit:contain}
#playdown-hub[data-screen=lobby] .hub-my-club strong{grid-column:2;grid-row:1;min-width:0;font-size:16px}
#playdown-hub[data-screen=lobby] .hub-club p,#playdown-hub[data-screen=lobby] .hub-club-status{grid-column:2;position:static;margin:0;padding:0;background:none;color:#bfa8ff;font-size:10px;line-height:1.2;min-width:0;max-width:100%}
#playdown-hub[data-screen=lobby] .hub-club-chevron{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:14px;height:16px}
#playdown-hub[data-screen=lobby] .hub-club-chevron svg{width:100%;height:100%}
#playdown-hub[data-screen=lobby] .hub-club>[data-hub-action=createClub]{grid-template-rows:1fr 1fr;padding:10px 8px;grid-template-columns:48px minmax(0,1fr);font-size:14px}
#playdown-hub[data-screen=lobby] .hub-club>[data-hub-action=createClub]::before{content:'';grid-column:1;grid-row:1/3;width:48px;height:48px;background:transparent url('new-lobby-create-club.01d96.svg') center/contain no-repeat}
#playdown-hub[data-screen=lobby] [data-hub-action=createClub]>span{grid-column:2;align-self:end}
#playdown-hub[data-screen=lobby] [data-hub-action=createClub]>small{grid-column:2;align-self:start;font-size:9px;line-height:1.15;color:#bfa8ff;font-weight:400}
#playdown-hub[data-screen=lobby] #playdown-lobby-view nav{grid-row:6;position:sticky;bottom:0;height:104px;min-height:104px;margin:0 -14px;padding:12px 16px max(20px,env(safe-area-inset-bottom));border-radius:48px 48px 0 0;background:transparent url('new-lobby-nav.46d12.svg') center/100% 100% no-repeat;display:flex;gap:0;z-index:3}
#playdown-hub[data-screen=lobby] #playdown-lobby-view nav button{min-width:44px;min-height:44px;color:#c5a8fa;font-size:11px;position:relative;display:flex;flex-direction:column;gap:6px;padding:4px 0;justify-content:center}
#playdown-hub[data-screen=lobby] .hub-nav-icon{width:28px;height:28px;object-fit:contain}
#playdown-hub[data-screen=lobby] #playdown-lobby-view nav [data-hub-action=home]{color:#fff;background:transparent url('new-lobby-active.d329b.svg') center 0/48px 48px no-repeat}
#playdown-hub[data-screen=lobby] #hub-modal[data-kind=tips]{background:#100b32b8}
#playdown-hub[data-screen=lobby] #hub-modal[data-kind=tips] .hub-modal{background:#302354;color:white;border:1px solid #ab87e6;box-shadow:0 4px 24px #09061c66;border-radius:22px}
#playdown-hub[data-screen=lobby] #hub-modal[data-kind=tips] .hub-primary{background:linear-gradient(135deg,#bc83ff,#7540f2);color:white}
#playdown-hub[data-screen=lobby] .hub-tip-target{outline-color:#c9b1ff}
#playdown-hub[data-screen=lobby] #hub-status{bottom:110px}
@media(max-width:359px){#playdown-hub[data-screen=lobby] .hub-user{grid-template-columns:52px minmax(0,1fr) 160px;gap:6px}#playdown-hub[data-screen=lobby] .hub-user-avatar{width:52px;height:52px}#playdown-hub[data-screen=lobby] #hub-user-name{font-size:18px}#playdown-hub[data-screen=lobby] .hub-card{font-size:16px}}


#playdown-hub[data-screen=lobby] .hub-club-status{display:none}
#playdown-hub[data-screen=lobby] #hub-page{padding:8px 14px 0}
#playdown-hub[data-screen=lobby] #playdown-lobby-view{min-height:705px;grid-template-rows:64px 96px 64px minmax(300px,1fr) 88px 68px;gap:5px!important}
#playdown-hub[data-screen=lobby] .hub-friends{grid-template-rows:36px 60px}
#playdown-hub[data-screen=lobby] .hub-banner{min-height:64px;padding:8px 12px;align-items:center}
#playdown-hub[data-screen=lobby] .hub-banner button{margin-left:auto;min-width:44px;min-height:44px;padding:10px}
#playdown-hub[data-screen=lobby] .hub-banner button img{width:18px;height:18px}
#playdown-hub[data-screen=lobby] .hub-cards{min-height:300px;grid-template-rows:repeat(2,minmax(145px,1fr));gap:10px 8px}
#playdown-hub[data-screen=lobby] .hub-card{min-height:145px;gap:4px;padding:8px 12px 12px;font-size:18px}
#playdown-hub[data-screen=lobby] .hub-card-motion{height:76px;min-height:76px}
#playdown-hub[data-screen=lobby] .hub-card>span:last-of-type{flex-shrink:0;padding-right:30px}
#playdown-hub[data-screen=lobby] #playdown-lobby-view nav{height:68px;min-height:68px;padding:6px 16px;border-radius:32px 32px 0 0}
#playdown-hub[data-screen=lobby] #playdown-lobby-view nav button{gap:3px}
#playdown-hub[data-screen=lobby] #playdown-lobby-view nav button.hub-nav-selected{color:white;background:transparent url('new-lobby-active.d329b.svg') center 0/48px 48px no-repeat}
#playdown-hub[data-screen=lobby] .hub-tip-target{outline:none!important}
#hub-tip-ring{position:absolute;box-sizing:border-box;border:3px solid white;border-radius:22px;pointer-events:none;z-index:0}
#playdown-hub[data-screen=lobby] #hub-modal .hub-modal{z-index:1}
#playdown-hub[data-screen=lobby] #hub-status{bottom:70px}

#playdown-hub[data-screen=lobby] #playdown-lobby-view nav [data-hub-action=home]:not(.hub-nav-selected){color:#c5a8fa;background:none}

/* Bound card proportions by their width, not the remaining viewport height. */
#playdown-hub[data-screen=lobby] #playdown-lobby-view{min-height:735px;grid-template-rows:64px 96px 64px auto 106px 68px;gap:8px!important;align-content:space-between}
#playdown-hub[data-screen=lobby] .hub-cards{min-height:0;grid-template-rows:repeat(2,auto);align-content:start}
#playdown-hub[data-screen=lobby] .hub-card{aspect-ratio:177/164;height:auto;min-height:154px;max-height:188px;display:grid;grid-template-rows:minmax(0,1fr) 44px;align-items:center;justify-items:center;padding:10px 12px;gap:4px}
#playdown-hub[data-screen=lobby] .hub-card-art{width:100%;height:100%;display:grid;place-items:center;min-width:0;min-height:0}
#playdown-hub[data-screen=lobby] .hub-card-motion{width:112px;height:76px;min-height:76px;max-width:100%}
#playdown-hub[data-screen=lobby] .hub-card>span:last-of-type{margin:0;align-self:center;min-height:0;line-height:1.15}
#playdown-hub[data-screen=lobby] .hub-club{min-height:106px}
#playdown-hub[data-screen=lobby] .hub-club>button{height:106px;min-height:106px}
#playdown-hub[data-screen=lobby] .hub-club>.hub-my-club{grid-template-columns:42px minmax(0,1fr) 18px;grid-template-rows:1fr;padding:12px 10px;gap:6px}
#playdown-hub[data-screen=lobby] .hub-my-club .hub-club-mark{grid-column:1;grid-row:1;width:42px;height:52px}
#playdown-hub[data-screen=lobby] .hub-club-copy{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:6px;min-width:0}
#playdown-hub[data-screen=lobby] .hub-club-copy strong{font-size:13px;line-height:1.2;overflow-wrap:normal}
#playdown-hub[data-screen=lobby] .hub-club-members{display:flex;align-items:center;gap:3px;min-width:0;color:#bfa8ff;font-size:10px;line-height:1.2;font-weight:500}
#playdown-hub[data-screen=lobby] .hub-club-members img{width:13px;height:13px;object-fit:contain;flex-shrink:0}
#playdown-hub[data-screen=lobby] .hub-club-chevron{position:static;grid-column:3;grid-row:1;transform:none;width:18px;height:18px;justify-self:end;align-self:center}
#playdown-hub[data-screen=lobby] .hub-club-chevron img{width:100%;height:100%;object-fit:contain}
#playdown-hub #hub-modal[data-kind=userProfile] [data-hub-action=logout]{color:#a62232;background:#fff0f0;border:1px solid #d45a68;font-weight:800;letter-spacing:.02em;margin-top:12px;padding:12px 18px}
#playdown-hub #hub-modal[data-kind=userProfile] [data-hub-action=logout]:active{background:#f7d7dc;color:#7d1523}
#playdown-hub #hub-modal[data-kind=userProfile] [data-hub-action=logout]:focus-visible{outline:3px solid #a62232;outline-offset:3px}
#playdown-hub .hub-profile-portrait{display:block;width:88px;height:88px;object-fit:contain;border-radius:50%;margin:8px auto 12px}
#playdown-hub .hub-profile-name{display:block;text-align:center;font-size:1.3em;font-weight:800;overflow-wrap:anywhere;max-width:100%}
#playdown-hub .hub-profile-account{text-align:center;overflow-wrap:anywhere;margin:12px 0;font-size:.95em}
#playdown-hub.hub-external-avatar{background:transparent}
#playdown-hub.hub-external-avatar #hub-page{display:none}

/* Keep these action gaps local to the two requested dialogs. */
#hub-modal[data-kind=tips] #hub-modal-body{display:flex;flex-direction:column;gap:24px;padding-bottom:8px}
#hub-modal[data-kind=tips] #hub-modal-body>p{margin:0}
#playdown-hub #hub-modal[data-kind=tips] [data-hub-action=close]{color:#fff}
#hub-modal[data-kind=createClub] #hub-modal-body>[data-hub-action=clubSubmit]{display:block;margin-top:18px}

/* Intrinsic rows cannot shrink below their cards; short hosts scroll as one page. */
#playdown-hub[data-screen=lobby] #hub-page{overflow-y:auto;overflow-x:clip}
#playdown-hub[data-screen=lobby] #playdown-lobby-view{height:auto;min-height:100%;grid-template-rows:64px 80px 64px auto 100px 68px;align-content:space-between;row-gap:8px!important}
#playdown-hub[data-screen=lobby] .hub-friends{grid-template-rows:36px 44px}
#playdown-hub[data-screen=lobby] .hub-friends>p{min-height:44px}
#playdown-hub[data-screen=lobby] .hub-club,#playdown-hub[data-screen=lobby] .hub-club>button{height:100px;min-height:100px}
#playdown-hub[data-screen=lobby] #playdown-lobby-view nav{position:static;flex-shrink:0}
#playdown-hub[data-screen=lobby] .hub-banner>div{flex:1}
#playdown-hub[data-screen=lobby] .hub-banner .hub-banner-sparkle{width:18px;height:18px;flex-shrink:0;margin-left:0}
#playdown-hub[data-screen=lobby] .hub-banner button{margin-left:0;flex-shrink:0;min-width:32px;padding:7px}

/* Online summary is available before the full friends screen stylesheet loads. */
.hub-friends .friends-summary{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-top:4px}.hub-friends .friends-summary>button{background:none;border:0;min-width:47px;max-width:68px;padding:0;color:inherit;display:flex;flex-direction:column;align-items:center}.hub-friends .friends-summary .friends-avatar{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:42px;height:42px;flex:none;background:linear-gradient(#7755c4,#45326b);border:2px solid #bca1ff;font-size:25px;overflow:hidden}.hub-friends .friends-summary .friends-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hub-friends .friends-summary>button>span:last-child{max-width:65px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.hub-friends .friends-summary>small{font-size:12px;color:#cab6f0;padding:8px}
#playdown-hub[data-screen=lobby] .hub-club>.hub-my-club:only-child{grid-column:1/-1}

/* Keep action tile geometry unchanged; let the upper content scroll on short hosts. */
#playdown-hub[data-screen=lobby] #hub-page{overflow:hidden}
#playdown-hub[data-screen=lobby] #playdown-lobby-view{display:flex;flex-direction:column;height:100%;min-height:0;gap:12px!important}
#playdown-hub[data-screen=lobby] .hub-lobby-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
#playdown-hub[data-screen=lobby] .hub-lobby-content,#playdown-hub[data-screen=lobby] .hub-lobby-content>*{min-width:0}
#playdown-hub[data-screen=lobby] .hub-lobby-content .hub-card{width:100%;min-width:0}
#playdown-hub[data-screen=lobby] .hub-lobby-scroll::-webkit-scrollbar{display:none}
#playdown-hub[data-screen=lobby] .hub-lobby-content{display:grid;min-height:100%;grid-template-rows:64px auto 64px auto;gap:16px;align-content:start}
#playdown-hub[data-screen=lobby] .hub-lobby-content>.hub-friends{grid-template-rows:36px auto;min-height:0;align-content:start}
#playdown-hub[data-screen=lobby] .hub-lobby-content>.hub-friends>p{min-height:44px}
#playdown-hub[data-screen=lobby] .hub-lobby-content .friends-summary{align-items:flex-start;justify-content:flex-start;min-width:0;padding:4px 0 8px}
#playdown-hub[data-screen=lobby] .hub-lobby-content .friends-summary>button{flex:none;flex-direction:column;gap:4px;padding:0;min-width:47px}
#playdown-hub[data-screen=lobby] .hub-lobby-content>.hub-banner{height:64px;min-height:64px;max-height:64px;background-size:100% 100%}
#playdown-hub[data-screen=lobby] .hub-lobby-content>.hub-banner.club-notice-banner{height:64px;min-height:64px;max-height:64px;background-size:100% 100%}
#playdown-hub[data-screen=lobby] .hub-lobby-content>.hub-banner.club-notice-banner>.club-notice-viewport{height:44px;min-height:0;align-self:center}
#playdown-hub[data-screen=lobby] #playdown-lobby-view nav{flex:none;grid-row:auto}
#hub-modal[data-kind=tips] .hub-tip-actions{display:flex;flex-wrap:wrap;gap:12px}
#hub-modal[data-kind=tips] .hub-tip-actions>button{flex:1;min-height:44px;margin:0}
#playdown-hub #hub-modal[data-kind=tips] [data-hub-action=tipPrevious]{color:#fff;background:transparent;border:1px solid #ab87e6}
