/* The inline preview sits in its own card above the latest game on team dashboards. */
html:has(.game-stats-dialog[open]) { overflow:hidden; }
.game-stats-share-control { margin:0 0 12px; padding:22px; display:flex; flex-direction:column; gap:10px; background:#161c23; border:1px solid var(--pb-rule); border-radius:4px; box-sizing:border-box; }
.game-stats-card-title { margin:0; color:#aebfd0; font:700 .74rem/1 var(--display); letter-spacing:.14em; text-transform:uppercase; }
.game-stats-card-title::after { content:''; display:block; width:44px; height:2px; margin-top:8px; background:#65caff55; }
.game-stats-preview { border:1px solid #2a4051; border-radius:6px; overflow:hidden; background:#0b1018; }
.game-stats-preview img { display:block; width:100%; height:auto; }
.game-stats-availability { margin:0; color:#aebfd0; font:500 .73rem/1.5 var(--font); }
.game-stats-retry { min-height:44px; padding:8px 12px; border:1px solid #34485b; color:#c0eaff; background:#172535; border-radius:5px; cursor:pointer; }
@media (max-width: 700px) {
  .game-stats-share-control { padding: 14px; }
}
.game-stats-dialog { width:min(920px,calc(100% - 24px)); max-width:calc(100% - 24px); box-sizing:border-box; padding:20px; background:#101720; border:1px solid #314455; border-radius:12px; max-height:calc(100dvh - 24px); overflow:auto; overscroll-behavior:contain; }
.game-stats-dialog::backdrop { background:#03080edb; backdrop-filter:blur(5px); }
.game-stats-dialog .game-share-header { max-width:none; margin-bottom:12px; }
.game-stats-kicker { display:block; color:#65caff; font:700 .62rem/1.3 var(--font); letter-spacing:.15em; margin-bottom:5px; }
.game-stats-dialog .game-share-header h2 { font-size:1.65rem; }
.game-stats-dialog .game-share-header [data-close] { font:400 1.7rem/1 var(--font); }
.game-stats-dialog .share-preview { max-width:none; padding:0; background:#0b1018; border:1px solid #2a4051; border-radius:7px; overflow:hidden; }
.game-stats-dialog .share-preview img { width:100%; max-width:none; max-height:none; display:block; object-fit:contain; border:0; }
.game-stats-dialog .share-status { margin:0 0 10px; font-size:.8rem; }
.game-stats-dialog .share-status:empty { display:none; }
.game-stats-context { margin:10px 0; font:500 .7rem/1.4 var(--font); color:#aebfd0; }
.game-stats-dialog footer { grid-template-columns:repeat(6,minmax(0,1fr)); max-width:none; gap:8px; margin:14px 0 0; }
.game-stats-dialog footer>.btn { grid-column:span 2; min-height:46px; padding:10px 8px; border:1px solid #34485b; background:#172535; color:#dceeff; font:800 1rem/1.1 var(--display); text-decoration:none; cursor:pointer; }
.game-stats-dialog footer>[data-caption],.game-stats-dialog footer>[data-link] { grid-column:span 3; }
.game-stats-dialog footer>[data-download] { background:#ffd84d; color:#101720; border-color:#ffd84d; }
.game-stats-dialog [aria-disabled=true] { pointer-events:none; opacity:.45; }
.game-stats-note { color:#aebfd0; font:400 .72rem/1.55 var(--font); margin:12px 0 0; }
.game-stats-copy { box-sizing:border-box; width:100%; min-height:130px; padding:12px; background:#0c1520; color:#e3f2ff; border:1px solid #65caff77; border-radius:6px; margin-top:12px; font:400 .85rem/1.5 var(--font); }
.game-stats-dialog [data-retry] { margin-top:12px; min-height:44px; }
.game-stats-dialog :focus-visible,.game-stats-share-control :focus-visible { outline:2px solid #65caff; outline-offset:3px; }
.game-stats-share-control [hidden],.game-stats-dialog [hidden] { display:none !important; }
@media(max-width:550px) {
  .game-stats-dialog { padding:12px; width:calc(100% - 16px); max-width:calc(100% - 16px); }
  .game-stats-dialog footer { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .game-stats-dialog footer>.btn { grid-column:span 1; font-size:.9rem; }
  .game-stats-dialog footer>[data-download] { grid-column:1/-1; }
}
