/* MuckDialog (assets/muck-dialog.js): the site's alert / confirm window. Same look as the table's leave and
   sitting-out windows (game-palette.css .exit-confirm-card): a dark card, a gold icon, the main action gold, the other
   a quiet outline. Tokens only (assets/tokens.css), no !important. */
.md-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: color-mix(in srgb, var(--muck-bg) 72%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .15s ease;
}
.md-overlay.md-open { opacity: 1; }
.md-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 380px);
  padding: 30px 28px 26px;
  border: 1px solid var(--muck-line-strong);
  border-radius: 16px;
  background: var(--muck-surface-1);
  box-shadow: 0 24px 80px rgb(0 0 0 / .65);
  color: var(--muck-text);
  font-family: var(--muck-font);
  text-align: center;
  transform: translateY(6px) scale(.98);
  transition: transform .18s cubic-bezier(.34, 1.4, .64, 1);
}
.md-open .md-card { transform: none; }
.md-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muck-gold) 12%, transparent);
  color: var(--muck-gold);
  font-size: 28px;
}
.md-title { margin: 0; font: 800 22px/1.2 var(--muck-font); letter-spacing: -.02em; color: var(--muck-text); }
.md-message { margin: 8px 0 0; font: 500 14px/1.5 var(--muck-font); color: var(--muck-text-2); overflow-wrap: anywhere; }
.md-actions { display: flex; flex-wrap: wrap; gap: 10px; align-self: stretch; margin-top: 22px; }
/* Three or more choices stack, the main one on top, so no button ever runs out of its card (Shaun, 2026-10-15, the
   free game's end: "buttons need to be styled so they stay inside their cards") */
.md-actions:has(.md-btn:nth-child(3)) { flex-direction: column; }
.md-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 800 15px/1.2 var(--muck-font);
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: filter .12s, background .12s, border-color .12s, color .12s;
}
.md-btn--primary { background: var(--muck-gold-cta); color: var(--muck-gold-ink); }
.md-btn--primary:hover { filter: brightness(1.06); }
.md-btn--secondary { border-color: var(--muck-line-strong); background: var(--muck-surface-2); color: var(--muck-text); }
.md-btn--secondary:hover { border-color: var(--muck-gold-muted); color: var(--muck-gold); }
.md-btn--danger { background: color-mix(in srgb, var(--muck-red) 85%, black); color: #fff; }
.md-btn--danger:hover { filter: brightness(1.08); }
.md-btn:focus-visible { outline: 2px solid var(--muck-gold); outline-offset: 3px; }
.md-actions:has(.md-btn:nth-child(3)) .md-btn { flex: none; width: 100%; }
@media (max-width: 420px) { .md-card { padding: 26px 20px 20px; } .md-actions { flex-direction: column-reverse; } .md-actions:has(.md-btn:nth-child(3)) { flex-direction: column; } .md-btn { flex: none; width: 100%; } }

/* Try a game's table picker (assets/lobby.js _pickTryTable; Shaun, 2026-10-18: "before it shows the table, it should have
   a step where it lets you choose 2/4/6 handed"): the dialog's card, with the three tables as one ruled list. Each row:
   the seat count, who you're playing, and their faces. */
.tg-card { align-items: stretch; width: min(100%, 480px); padding: 26px 22px 22px; text-align: left; }
.tg-card .md-title { text-align: center; }
/* Cash or Tournament, above the tables (the style guide's tabs) */
.tg-tabs { display: flex; justify-content: center; gap: 24px; margin: 14px 0 0; border-bottom: 2px solid var(--muck-line); }
.tg-tab { min-height: 40px; margin: 0 0 -2px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muck-text-2); font: 700 14px var(--muck-font); cursor: pointer; }
.tg-tab:hover { color: var(--muck-text); }
.tg-tab[aria-selected="true"] { color: var(--muck-text); border-bottom-color: var(--muck-gold); }
.tg-tab:focus-visible { outline: 2px solid var(--muck-gold); outline-offset: 2px; border-radius: 4px; }
.tg-list { display: flex; flex-direction: column; margin: 14px 0 0; border: 1px solid var(--muck-line-strong); border-radius: 12px; overflow: hidden; }
.tg-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; margin: 0; padding: 12px 16px; border: 0; border-top: 1px solid var(--muck-line); background: var(--muck-surface-2); color: var(--muck-text); font-family: var(--muck-font); text-align: left; cursor: pointer; transition: background .12s, color .12s; }
.tg-opt:first-child { border-top: 0; }
.tg-opt:hover { background: var(--muck-surface-3); }
.tg-opt:focus-visible { outline: 2px solid var(--muck-gold); outline-offset: -2px; }
.tg-count { flex: none; width: 40px; font: 800 26px/1 var(--muck-font); letter-spacing: -.02em; color: var(--muck-gold); text-align: center; }
.tg-text { flex: 1 1 auto; min-width: 0; }
.tg-text b { display: block; font: 800 16px/1.25 var(--muck-font); }
/* The table and "· Intermediate" each stay whole: on a phone the line breaks between them, never inside either */
.tg-lvl { font-style: normal; white-space: nowrap; }
.tg-text span { display: block; margin-top: 2px; font: 500 13px/1.35 var(--muck-font); color: var(--muck-text-2); }
.tg-faces { display: flex; flex: none; }
.tg-faces img { width: 34px; height: 34px; margin-left: -10px; border: 2px solid var(--muck-surface-2); border-radius: 50%; object-fit: cover; background: var(--muck-surface-1); }
.tg-faces img:first-child { margin-left: 0; }
/* Fewer faces, bigger ones (Shaun, 2026-10-23: "should we make the 2 and 4 icons a bit bigger? bella is very small") */
.tg-faces[data-n="1"] img { width: 48px; height: 48px; }
.tg-faces[data-n="3"] img { width: 40px; height: 40px; }
/* five faces overlap more, so "6-Player Table · Advanced" stays on one line */
.tg-faces[data-n="5"] img { margin-left: -16px; }
.tg-faces[data-n="5"] img:first-child { margin-left: 0; }
.tg-opt:hover .tg-faces img { border-color: var(--muck-surface-3); }
.tg-cancel { align-self: center; min-height: 44px; margin: 12px 0 0; padding: 0 16px; border: 0; background: none; color: var(--muck-text-2); font: 700 14px var(--muck-font); cursor: pointer; }
.tg-cancel:hover { color: var(--muck-text); }
.tg-cancel:focus-visible { outline: 2px solid var(--muck-gold); outline-offset: 2px; border-radius: 8px; }
/* The Invitational's opponent picker (assets/lobby.js _pickExOpponent): Try a game's rows, a line under the title, the
   tag under the name, and one fine-print line under the list */
.ex-pick-sub { text-align: center; }
.ex-pick-tag { display: block; margin-top: 2px; font: 700 11px/1.3 var(--muck-font); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--muck-gold-muted); }
.ex-pick .tg-text span { margin-top: 6px; }
.ex-pick .tg-opt { align-items: flex-start; }
.ex-pick-best { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--muck-line); border-radius: 10px; font: 500 13px/1.4 var(--muck-font); color: var(--muck-text-2); text-align: center; }
.ex-pick-best b { color: var(--muck-text); font-weight: 700; white-space: nowrap; }
.ex-pick-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; }   /* one bot: Start match (gold), then Not now (ghost) */
.ex-pick-acts .mk-btn { width: 100%; margin: 0; }
.ex-pick-fine { margin: 12px 0 0; font: 500 12px/1.45 var(--muck-font); color: var(--muck-text-3); text-align: center; }
@media (max-width: 420px) { .tg-card { padding: 22px 16px 16px; } .tg-opt { gap: 12px; padding: 12px; } .tg-count { width: 28px; } .tg-faces img { width: 28px; height: 28px; margin-left: -14px; } .tg-faces[data-n="1"] img { width: 40px; height: 40px; } .tg-faces[data-n="3"] img { width: 34px; height: 34px; } }
/* Picked: that row says it's on its way, the others step back, until the table is up */
.tg-busy .tg-opt:disabled { opacity: .4; cursor: default; }
.tg-busy .tg-opt[aria-busy="true"] { background: var(--muck-surface-3); cursor: progress; }
.tg-busy .tg-opt[aria-busy="true"] .tg-text span { color: var(--muck-gold); }
.tg-busy .tg-cancel { visibility: hidden; }

/* A finished sit & go's standings in the lobby's result pop-up (lobby.js _showTableResult) */
.lby-result-list { align-self: stretch; width: 100%; box-sizing: border-box; list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--muck-line); border-radius: var(--muck-radius); overflow: hidden; text-align: left; }
.lby-result-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--muck-line); font: 600 14px var(--muck-font); color: var(--muck-text-2); }
.lby-result-list li:first-child { border-top: 0; }
.lby-result-list li.is-you { background: color-mix(in srgb, var(--muck-gold) 9%, transparent); color: var(--muck-text); }
.lby-result-place { color: var(--muck-text-3); font-variant-numeric: tabular-nums; }
.lby-result-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lby-result-prize { color: var(--muck-gold); font-variant-numeric: tabular-nums; }
/* How many hands (assets/lobby.js EX_LENGTHS): one segmented control above the opponents, like Settings' (settings-v2.css
   .chip-seg-toggle); and the rules on one screen before a first run (EX_PRIMER) */
.ex-len { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 16px 0 0; padding: 3px; border: 1px solid var(--muck-line); border-radius: 10px; background: var(--muck-bg); }
.ex-len-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; margin: 0; padding: 6px 4px; border: 0; border-radius: 7px; background: transparent; color: var(--muck-text-2); font-family: var(--muck-font); cursor: pointer; transition: background .15s, color .15s; }
.ex-len-opt b { font: 700 14px/1.1 var(--muck-font); font-variant-numeric: tabular-nums; }
.ex-len-opt span { font: 500 11px/1.2 var(--muck-font); color: var(--muck-text-3); }
.ex-len-opt:hover:not([aria-checked="true"]) { background: var(--muck-surface-2); color: var(--muck-text); }
.ex-len-opt[aria-checked="true"] { background: var(--muck-surface-3); color: var(--muck-gold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muck-gold) 38%, transparent); }
.ex-len-opt:focus-visible { outline: 2px solid var(--muck-gold); outline-offset: 1px; }
@media (max-width: 360px) { .ex-len-opt b { font-size: 13px; } .ex-len-opt span { font-size: 10px; } }
.ex-primer-list { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.ex-primer-list li { display: grid; gap: 3px; padding: 11px 0; border-top: 1px solid var(--muck-line); }
.ex-primer-list li:last-child { border-bottom: 1px solid var(--muck-line); }
.ex-primer-list b { font: 700 14px/1.3 var(--muck-font); color: var(--muck-text); }
.ex-primer-list span { font: 500 13px/1.45 var(--muck-font); color: var(--muck-text-2); }
.ex-pick-fine a { color: var(--muck-text-2); text-decoration: underline; text-underline-offset: 2px; }
.ex-pick-fine a:hover { color: var(--muck-text); }
.ex-primer-go { width: 100%; height: 48px; margin: 16px 0 0; }
.ex-pick:focus { outline: none; }   /* the window itself takes focus when it opens (lobby.js), so Tab starts inside it */
/* the icon's font on pages without the site's global icon rule (games.php's invite window showed the word "lock"; Shaun, 2026-11-04);
   the @font-face comes with every page's header (site-header.css, style.css) */
.md-overlay .md-icon.material-symbols-rounded{font-family:'Material Symbols Rounded';font-weight:normal;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;-webkit-font-smoothing:antialiased;font-feature-settings:'liga'}
