.player-app-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:16px 18px;border:1px solid var(--darts-line,#d8c8a7);border-radius:18px;background:var(--darts-paper,#fffdf7);color:var(--darts-ink,#181713)}
.player-app-card p{margin:4px 0 0;max-width:660px;font-size:14px;line-height:1.45;color:var(--darts-muted,#6b6254)}
.player-app-card button,.player-app-dialog button{min-height:44px}
.player-app-dialog{width:min(520px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid var(--darts-line,#d8c8a7);border-radius:22px;background:var(--darts-paper,#fffdf7);color:var(--darts-ink,#181713);box-shadow:0 20px 65px #18171335}
.player-app-dialog::backdrop{background:#18171377}.player-app-dialog h2{margin:0 0 14px;font-size:25px}.player-app-dialog p,.player-app-dialog li{line-height:1.6}.player-app-dialog li+li{margin-top:12px}.player-app-dialog ol{padding-left:22px}.player-app-dialog .player-app-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:20px}.player-app-dialog small{display:block;color:var(--darts-muted,#6b6254);line-height:1.5}
@media(max-width:620px){.player-app-card{align-items:stretch;flex-direction:column}.player-app-card button{width:100%}.player-app-dialog{padding:20px}}
@media(display-mode:standalone){body.player-space .player-portal{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:calc(92px + env(safe-area-inset-bottom))}}
/* Avoid automatic form zoom on phones without disabling accessibility zoom.
   Player dialogs live directly under body, outside .player-portal. */
@media (max-width:900px), (any-pointer:coarse){
  body.player-space :is(.player-portal,.player-team-modal) :is(input,select,textarea),
  #authOverlay #authForm input{font-size:16px}
  body.player-space :is(button,a,input,select,textarea),
  #authOverlay :is(button,a,input,select,textarea){touch-action:manipulation}
}
/* Keep the established cream/red/green identity; fit real phone widths. */
body.player-space .player-portal .player-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
body.player-space .player-main{min-width:0}
body.player-space .player-main h1,body.player-space .player-main h2,body.player-space .player-main strong{overflow-wrap:anywhere}
body.player-space .player-portal button{min-height:44px}
body.player-space .player-live-groups>section{min-width:0}
body.player-space .player-live-table{table-layout:fixed}
body.player-space .player-live-table th:nth-child(2){width:34%}
body.player-space .player-live-table td:nth-child(2){overflow-wrap:anywhere}
body.player-space .player-live-table th:first-child{width:12%}
body.player-space .player-live-table th abbr{text-decoration:none}
body.player-space .player-standing-legend{color:var(--darts-muted);font-size:12px;line-height:1.5}
body.player-space .player-live-head .eyebrow{color:var(--darts-paper,#fffdf7)}
body.player-space .player-notification-panel{max-height:calc(100dvh - 170px);overflow:auto;overscroll-behavior:contain}
@media(max-width:620px){
  body.player-space .player-portal .player-live-grid,body.player-space .player-portal .player-live-groups{grid-template-columns:minmax(0,1fr)}
  body.player-space .player-portal .player-live-head{align-items:stretch;flex-direction:column;padding:18px}
  body.player-space .player-portal .player-live-card{padding:12px}
  body.player-space .player-portal .player-live-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.player-space .player-portal .player-live-table th,body.player-space .player-portal .player-live-table td{padding:10px 3px;font-size:12px}
  body.player-space .player-portal .player-live-match-list li{align-items:flex-start;flex-direction:column}
  body.player-space .player-portal .player-live-match-list li span{text-align:left;font-size:14px}
  body.player-space .player-portal .player-nav button{font-size:9px}
  body.player-space .player-portal .player-ranking-table{table-layout:fixed;width:100%}
  body.player-space .player-portal .player-ranking-table th,body.player-space .player-portal .player-ranking-table td{padding:10px 3px;font-size:12px;overflow-wrap:anywhere}
  body.player-space .player-portal .player-notification-panel{position:fixed;top:80px;left:10px;right:10px;width:auto;max-width:none}
}
