/* Four equal columns retain the status/action/time rhythm at every screen size. */
.scoreboard-card .scoreboard-card-head{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;align-items:center}
.scoreboard-card .scoreboard-card-head>*{min-width:0;text-align:center;justify-content:center}
.scoreboard-card .scoreboard-card-head>span:last-child{text-align:center;font-size:11px;white-space:nowrap}
.scoreboard-card .scoreboard-card-head .pill{display:inline-block;max-width:100%;font-size:10px;line-height:1.3;padding:5px 4px;white-space:normal;text-align:center}
.scoreboard-share{border:0;cursor:pointer;background:var(--green,#187965);color:#fff;font-family:inherit}
.scoreboard-share:disabled{cursor:default;opacity:.5}
.game-share-dialog{width:min(640px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line,#dee4df);border-radius:12px;padding:20px;background:var(--paper,#f5f6f2);color:var(--ink,#142f37)}
.game-share-dialog::backdrop{background:#142f37aa}
.game-share-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.game-share-heading h2{font-size:22px;margin:0}
.game-share-dialog button{font:inherit;padding:9px 12px;border:1px solid var(--line,#dee4df);border-radius:6px;background:#fff;color:var(--ink,#142f37);cursor:pointer}
.game-share-dialog button:disabled{opacity:.5;cursor:default}
.game-share-dialog button:focus-visible{outline:3px solid var(--green,#187965);outline-offset:3px}
.game-share-dialog .share-status{font-size:14px;line-height:1.5}
.game-share-dialog .share-preview{display:block;width:100%;height:auto;border-radius:8px}
.game-share-dialog .share-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.game-share-dialog [hidden]{display:none!important}

body .scoreboard-card button.scoreboard-share{background:var(--green);color:#eef4ef;border:0;text-decoration:none;font-family:inherit;font-weight:600;transition:background .18s,color .18s}
body.girls .scoreboard-card button.scoreboard-share{background:#6650a3;color:#eee9f7}
body .scoreboard-card button.scoreboard-share:is(:hover,:focus-visible){background:#126250!important;color:#fff!important}
body.girls .scoreboard-card button.scoreboard-share:is(:hover,:focus-visible){background:#44316f!important;color:#fff!important}
.game-share-dialog .share-actions a{font:inherit;padding:9px 12px;border:1px solid var(--line,#dee4df);border-radius:6px;background:#fff;color:var(--ink,#142f37);text-decoration:none}
.game-share-dialog .share-help{font-size:12px;color:var(--muted);line-height:1.5}
/* Keep the three share actions together and shrink the preview to fit the viewport. */
.game-share-dialog{box-sizing:border-box;max-height:94dvh;padding:16px}
.game-share-dialog .share-preview{width:100%;height:auto;max-height:calc(94dvh - 190px);object-fit:contain}
.game-share-dialog .share-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.game-share-dialog .share-actions :is(button,a){display:flex;align-items:center;justify-content:center;min-width:0;font-size:12px;padding:8px 4px;white-space:nowrap}
.game-share-dialog .share-help{font-size:11px;margin:8px 0 0}
.game-share-dialog .share-status{font-size:12px;margin:8px 0;overflow-wrap:anywhere}
@media(max-width:380px){.game-share-dialog .share-actions :is(button,a){font-size:11px}.game-share-dialog .share-preview{max-height:calc(94dvh - 210px)}}
