/* Fit the closed three-tile landing page to the usable browser/PWA viewport. */
html:has(body.player-home-landing){height:100%;overflow:hidden}
body.player-home-landing{height:100vh;height:100dvh;min-height:0!important;overflow:hidden!important;overscroll-behavior:none}
body.player-home-landing main.app{display:flex!important;flex-direction:column!important;gap:0!important;width:100%;max-width:1220px;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important;margin:0 auto!important;padding:10px max(10px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important;box-sizing:border-box}
body.player-home-landing main.app>header{display:none!important}
body.player-home-landing #setupScreen.player-home{display:flex!important;flex-direction:column;flex:1;min-height:0;max-height:none;overflow:visible;gap:0}
body.player-home-landing #setupScreen .dashboard-heading{flex:none;margin-bottom:8px!important;padding-bottom:8px!important;row-gap:6px!important}
body.player-home-landing #setupScreen .dashboard-heading .dashboard-brand .dartiq-wordmark{width:190px;max-height:48px}
body.player-home-landing #setupScreen.player-home>.home-board-setting{flex:none;margin-bottom:10px;padding:9px 12px;gap:5px}
body.player-home-landing #setupScreen.player-home>.home-board-setting label{font-size:11px;gap:5px}
body.player-home-landing #setupScreen.player-home>.home-board-setting select{min-height:40px;padding:7px 9px;font-size:13px}
body.player-home-landing #setupScreen.player-home>.home-board-setting small{font-size:10px;line-height:1.3}
body.player-home-landing .player-home-content{display:flex;flex-direction:column;flex:1;min-height:0;gap:0}
body.player-home-landing #setupScreen.player-home .player-home-tiles{flex:1;min-height:0;grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:9px}
body.player-home-landing #setupScreen.player-home .player-home-tile{grid-column:auto;min-height:0!important;padding:clamp(12px,2.5vh,22px);gap:5px;border-radius:17px;overflow:hidden}
body.player-home-landing .player-tile-top{margin-bottom:auto}
body.player-home-landing .player-tile-top svg{width:28px;height:28px;flex:none}
body.player-home-landing .player-tile-arrow{font-size:23px}
body.player-home-landing .player-tile-title{font-size:clamp(19px,3.2vh,29px);line-height:1.12;letter-spacing:-.4px}
body.player-home-landing #setupScreen.player-home .player-home-tile small{font-size:clamp(10px,1.5vh,13px);line-height:1.3}
body.player-home-landing main.app>.dartiq-credit{flex:none;padding:6px 0 0;margin-top:7px;font-size:9px;line-height:1.3}
@media(min-width:701px) and (orientation:landscape){
 body.player-home-landing #setupScreen.player-home .player-home-tiles{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:15px}
 body.player-home-landing #setupScreen.player-home>.home-board-setting label{flex:1 1 65%;flex-direction:row}
 body.player-home-landing #setupScreen.player-home>.home-board-setting small{flex:1 1 25%}
 body.player-home-landing #setupScreen.player-home .player-home-tile{padding:clamp(16px,3vw,30px)}
 body.player-home-landing .player-tile-top svg{width:44px;height:44px}
 body.player-home-landing .player-tile-title{font-size:clamp(22px,2.6vw,32px)}
}
@media(max-height:570px) and (orientation:portrait){
 body.player-home-landing #setupScreen .dashboard-heading .dashboard-brand .dartiq-wordmark{width:150px;max-height:38px}
 body.player-home-landing #setupScreen.player-home>.home-board-setting small{display:none}
 body.player-home-landing #setupScreen.player-home .player-home-tile{padding:10px 13px;gap:3px}
 body.player-home-landing .player-tile-top svg{width:21px;height:21px}
 body.player-home-landing .player-tile-title{font-size:18px}
 body.player-home-landing #setupScreen.player-home .player-home-tile small{font-size:10px}
}
@media(max-height:450px) and (orientation:landscape){
 body.player-home-landing #setupScreen .dashboard-heading .dashboard-brand .dartiq-wordmark{width:145px;max-height:36px}
 body.player-home-landing #setupScreen .dashboard-heading{grid-template-columns:minmax(0,1fr) repeat(3,minmax(0,1fr));margin-bottom:6px!important;padding-bottom:6px!important}
 body.player-home-landing #setupScreen .dashboard-heading>.dashboard-brand{grid-row:1;grid-column:1;justify-content:flex-start;padding:0}
 body.player-home-landing #setupScreen .dashboard-heading>.page-back-button{grid-column:2}
 body.player-home-landing #setupScreen .dashboard-heading>.profile-return-button{grid-column:3}
 body.player-home-landing #setupScreen .dashboard-heading>.dashboard-refresh{grid-column:4}
 body.player-home-landing #setupScreen.player-home>.home-board-setting{padding:6px 10px;margin-bottom:7px}
 body.player-home-landing #setupScreen.player-home>.home-board-setting label{flex:1 1 100%;flex-direction:row}
 body.player-home-landing #setupScreen.player-home>.home-board-setting select{width:60%;min-height:36px}
 body.player-home-landing #setupScreen.player-home>.home-board-setting small{display:none}
 body.player-home-landing #setupScreen.player-home .player-home-tiles{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:8px}
 body.player-home-landing #setupScreen.player-home .player-home-tile{padding:13px;gap:4px}
 body.player-home-landing .player-tile-top svg{width:26px;height:26px}
 body.player-home-landing .player-tile-title{font-size:clamp(16px,2.5vw,23px)}
 body.player-home-landing #setupScreen.player-home .player-home-tile small{font-size:10px}
}

/* Preserve access with unusually large system text or very small viewports. */
html:has(body.player-home-needs-scroll){height:auto;overflow:auto}
body.player-home-landing.player-home-needs-scroll{height:auto;min-height:100dvh!important;overflow:auto!important}
body.player-home-landing.player-home-needs-scroll main.app{height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important}
body.player-home-landing.player-home-needs-scroll #setupScreen.player-home{flex:none;overflow:visible}
body.player-home-landing.player-home-needs-scroll #setupScreen.player-home .player-home-tiles{grid-auto-rows:auto;grid-template-rows:none}
body.player-home-landing.player-home-needs-scroll #setupScreen.player-home .player-home-tile{min-height:140px!important;overflow:visible}
