/* ===================================================================================================================
   pack19 2026-11-11 (owner): the framed game, shared by every game page (Mines first, then Plinko, ...).
   One card: controls (.mg-panel, 310 px) | the game (.mg-game), a slim toolbar under both (.mg-toolbar: tools left,
   "Provably fair" right), then a collapsible info card (.mg-info: Description / My games / Game limits).
   Neutral greys and quiet 1 px lines. Depth is tiny and black: a raised control (chip, grey button, the tab that is on)
   has `inset 0 1px #2a2a31, 0 2px 2px rgba(0,0,0,.25)`; fields and cards have the 1 px edge only. The only accent is the site's gold on the main action.
   Selectors start with .mg-frame / .mg-info so they win over the older site-wide rules without !important.
   Game-specific parts (the board, tiles, slots) stay in each page's own scoped style.
   =================================================================================================================== */
.mg-frame { /* DESIGN-1204 (owner) */
  --mg-line: #131a26; --mg-panel: #111520; --mg-game: #0e111a; --mg-bar: #0e111a; --mg-field: rgb(26, 31, 45);
  --mg-chip: #131a27; --mg-grey: #aec2d4;
  position: relative; width: 100%; margin: 20px 0 0; border: 1px solid var(--mg-line); border-radius: 10px;
  font-family: 'Sora', sans-serif;
}
.mg-frame .mg-body { display: flex; align-items: stretch; }
.mg-frame .mg-panel {
  flex: 0 0 310px; max-width: 310px; display: flex; flex-direction: column; gap: 20px; padding: 20px;
  background: var(--mg-panel); border-right: 1px solid var(--mg-line); border-radius: 10px 0 0 0; min-height: 560px;
}
.mg-frame .mg-game {
  position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 32px;
  background: var(--mg-game); border-radius: 0 10px 0 0;
}

/* Manual / Auto: the segmented control (same shape as .mg-seg and the info tabs) */
.mg-frame .mg-mode { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--mg-field); }
.mg-frame .mg-mode-btn {
  flex: 1; height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--mg-grey);
  font-family: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.mg-frame .mg-mode-btn:hover:not(:disabled) { color: #fff; }
.mg-frame .mg-mode-btn.is-on { color: #fff; background: #181c29; box-shadow: inset 0 1px #2a3249, 0 2px 2px rgba(0, 0, 0, 0.25); } /*DESIGN-1204B:d67e9238*/
.mg-frame .mg-mode-btn:disabled { cursor: not-allowed; opacity: 0.5; }

/* fields */
.mg-frame .mg-field { display: flex; flex-direction: column; min-width: 0; }
.mg-frame .mg-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mg-frame .mg-labels { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--mg-grey); font-size: 13px; font-weight: 500; white-space: nowrap; }
.mg-frame .mg-labels label { margin: 0; font-weight: 500; }
.mg-frame .mg-label-r { opacity: 0.6; overflow: hidden; text-overflow: ellipsis; }
.mg-frame .mg-input {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 5px 5px 5px 14px; border: 1px solid var(--mg-line);
  border-radius: 8px; background: var(--mg-field); transition: border-color 0.15s ease;
}
.mg-frame .mg-input:focus-within { border-color: #3a3a43; }
.mg-frame .mg-input.is-disabled { opacity: 0.55; }
.mg-frame .mg-input-cur { color: var(--mg-grey); font-size: 14px; font-weight: 600; }
.mg-frame .mg-input-el { flex: 1; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; outline: none; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; }
.mg-frame .mg-input-el::placeholder { color: var(--mg-grey); font-weight: 500; opacity: 0.6; }
.mg-frame .mg-input-el::-webkit-inner-spin-button, .mg-frame .mg-input-el::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mg-frame .mg-input-el[type=number] { -moz-appearance: textfield; }
.mg-frame .mg-input-el:disabled { cursor: not-allowed; }
.mg-frame .mg-input-btns { display: flex; gap: 4px; height: 32px; }
.mg-frame .mg-chip {
  min-width: 34px; height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--mg-chip); color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 1px #2a3249, 0 2px 2px rgba(0, 0, 0, 0.25); transition: background-color 0.12s ease, color 0.12s ease, transform 0.12s ease; /*DESIGN-1204B:aea7a9db*/
}
.mg-frame .mg-chip:hover:not(:disabled) { background: #242836; } /*DESIGN-1204B:81b8b50e*/
.mg-frame .mg-chip:active:not(:disabled) { transform: scale(0.97); }
.mg-frame .mg-chip:disabled { opacity: 0.5; cursor: not-allowed; }
/* the chosen chip: gold label on the raised grey with a grey edge (no gold edge, no glow) */
.mg-frame .mg-chip.is-on, .mg-frame .mg-chip.is-on:hover:not(:disabled) { background: #242836; box-shadow: inset 0 0 0 1px rgba(169, 169, 169, 0.32), 0 2px 2px rgba(0, 0, 0, 0.25); color: #FFCE00; } /*DESIGN-1204B:3c399db3*/
/* a row of equal choice chips (e.g. number of auto drops) */
.mg-frame .mg-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mg-frame .mg-choices .mg-chip { height: 38px; font-size: 13px; }
/* selects */
.mg-frame .mg-select { position: relative; border: 1px solid var(--mg-line); border-radius: 8px; background: var(--mg-field); transition: border-color 0.15s ease; }
.mg-frame .mg-select:hover:not(.is-disabled), .mg-frame .mg-select:focus-within { border-color: #3a3a43; }
.mg-frame .mg-select.is-disabled { opacity: 0.55; }
.mg-frame .mg-select select {
  width: 100%; height: 44px; padding: 0 40px 0 14px; border: 0; outline: none; background: transparent; color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.mg-frame .mg-select select:disabled { cursor: not-allowed; }
.mg-frame .mg-select select option { background: #0e111a; color: #fff; } /*DESIGN-1204B:502f38e7*/
.mg-frame .mg-select-chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--mg-grey); pointer-events: none; }
/* a fixed value shown like a field (e.g. Plinko's risk and rows) */
.mg-frame .mg-fixed { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--mg-line); border-radius: 8px; background: var(--mg-field); color: #fff; font-size: 14px; font-weight: 600; }
.mg-frame .mg-fixed svg { flex: none; color: var(--mg-grey); opacity: 0.7; }
/* a read-out (the running round, auto progress) */
.mg-frame .mg-readout { padding-right: 14px; }
/* the read-out is an amount: white like every money figure (its sign says which way it went) */
.mg-frame .mg-readout-v { flex: 1; min-width: 0; color: #fff; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.mg-frame .mg-readout-s { color: var(--mg-grey); font-size: 12px; font-weight: 500; white-space: nowrap; }
.mg-frame .mg-progress { height: 4px; margin-top: 8px; border-radius: 4px; background: #181c29; overflow: hidden; } /*DESIGN-1204B:4cedfd7a*/
.mg-frame .mg-progress > span { display: block; height: 100%; border-radius: 4px; background: #FFCE00; transition: width 0.3s ease; }
.mg-frame .mg-note { margin: 0; color: var(--mg-grey); font-size: 12px; line-height: 1.45; }
.mg-frame .mg-note kbd { padding: 1px 6px; border-radius: 4px; background: #181c29; color: #fff; font-family: inherit; font-size: 11px; box-shadow: inset 0 -1px #090c13; } /*DESIGN-1204B:2f0f01fd*/
/* actions */
.mg-frame .mg-actions { display: flex; flex-direction: column; gap: 8px; position: relative; }
.mg-frame .mg-actions .kd-btn-primary { width: 100%; height: 46px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #000; }
.mg-frame .mg-actions .kd-btn-primary::before { border-radius: 8px; }
.mg-frame .mg-actions .kd-btn-primary:active:not(:disabled) { transform: scale(0.97); }
.mg-frame .mg-actions .kd-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.mg-frame .mg-guest-note { margin: 0; text-align: center; color: var(--mg-grey); font-size: 12px; }
.mg-frame .mg-btn-secondary {
  width: 100%; height: 44px; border: 0; border-radius: 8px; background: #181c29; color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; /*DESIGN-1204B:fad0d2e2*/
  cursor: pointer; box-shadow: inset 0 1px #2a3249, 0 2px 2px rgba(0, 0, 0, 0.25); transition: background-color 0.12s ease, transform 0.12s ease; /*DESIGN-1204B:ceb2ed91*/
}
.mg-frame .mg-btn-secondary:hover:not(:disabled) { background: #242836; } /*DESIGN-1204B:e8fe599e*/
.mg-frame .mg-btn-secondary:active:not(:disabled) { transform: scale(0.97); }
.mg-frame .mg-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.mg-frame .mg-btn-stop { color: #FF8A8A; }
/* toolbar */
.mg-frame .mg-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 22px;
  background: var(--mg-bar); border-top: 1px solid var(--mg-line); border-radius: 0 0 10px 10px;
}
.mg-frame .mg-tools { display: flex; align-items: center; gap: 6px; }
.mg-frame .mg-tool {
  position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0;
  border-radius: 8px; background: transparent; color: var(--mg-grey); cursor: pointer; transition: color 0.12s ease, background-color 0.12s ease;
}
.mg-frame .mg-tool:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.mg-frame .mg-tool.is-on { color: #fff; }
.mg-frame .mg-tool:active, .mg-frame .mg-fair:active { background: rgba(255, 255, 255, 0.07); }
.mg-frame .mg-tool[aria-pressed="true"] { color: #FF8A8A; }
.mg-frame .mg-fair {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--mg-grey); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: color 0.12s ease, background-color 0.12s ease;
}
.mg-frame .mg-fair svg { color: #4AF65B; }
.mg-frame .mg-fair:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.mg-frame .mg-tool:focus-visible, .mg-frame .mg-fair:focus-visible, .mg-frame .mg-chip:focus-visible, .mg-frame .mg-btn-secondary:focus-visible,
.mg-frame .mg-mode-btn:focus-visible, .mg-info .mg-tab:focus-visible, .mg-info .mg-info-head:focus-visible { outline: 2px solid #FFCE00; outline-offset: 2px; }

/* info card */
.mg-info { margin: 24px 0 20px; border: 1px solid #131a26; border-radius: 10px; background: #0e111a; font-family: 'Sora', sans-serif; } /* DESIGN-1204 (owner) */
.mg-info .mg-info-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 20px; border: 0; background: transparent;
  color: #fff; text-align: left; cursor: pointer; border-radius: 10px;
}
.mg-info .mg-info-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.mg-info .mg-info-sub { display: block; margin-top: 2px; color: #8ba4ba; font-size: 13px; font-weight: 500; } /*DESIGN-1204B:5c9e0e46*/
.mg-info .mg-info-chev { flex: none; color: #8ba4ba; transform: rotate(180deg); transition: transform 0.2s ease; } /*DESIGN-1204B:357ca295*/
.mg-info.is-open .mg-info-chev { transform: none; }
.mg-info .mg-info-body { padding: 0 20px 20px; }
.mg-info .mg-sep { height: 1px; margin: 0 0 16px; border: 0; background: #131a26; opacity: 1; } /* DESIGN-1204 */
.mg-info .mg-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 10px; background: #0e1018; max-width: 100%; overflow-x: auto; scrollbar-width: none; } /*DESIGN-1204B:417857d2*/
.mg-info .mg-tabs::-webkit-scrollbar { display: none; }
.mg-info .mg-tab {
  height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: #8ba4ba; font-family: inherit; font-size: 14px; font-weight: 600; /*DESIGN-1204B:19deb78e*/
  white-space: nowrap; cursor: pointer; transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.mg-info .mg-tab:hover { color: #fff; }
.mg-info .mg-tab.is-on { color: #fff; background: #181c29; box-shadow: inset 0 1px #2a3249, 0 2px 2px rgba(0, 0, 0, 0.25); } /*DESIGN-1204B:bff3574c*/
.mg-info .mg-about { display: flex; gap: 20px; align-items: flex-start; }
.mg-info .mg-about-img { flex: none; width: 116px; height: 154px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px #131a26; } /*DESIGN-1204B:22ffea71*/
.mg-info .mg-about-text { min-width: 0; max-width: 760px; }
.mg-info .mg-about-text p { margin: 0 0 10px; color: #b9c9d6; font-size: 14px; line-height: 1.6; text-wrap: pretty; } /*DESIGN-1204B:ca378b54*/
.mg-info .mg-about-text p:last-child { margin-bottom: 0; }
.mg-info .mg-history { margin: 0 -20px -20px; border-top: 1px solid #131a26; } /*DESIGN-1204B:3eb8811a*/
.mg-info .mg-empty { margin: 0; padding: 28px 20px; color: #8ba4ba; font-size: 13px; text-align: center; } /*DESIGN-1204B:6b3fa7be*/
.mg-info .mg-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 760px; }
.mg-info .mg-limit { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(9, 12, 19, 0.5); border: 1px solid #131a26; } /*DESIGN-1204B:d0f3cd01*/
.mg-info .mg-limit span { color: #8ba4ba; font-size: 13px; } /*DESIGN-1204B:3ac0d208*/
.mg-info .mg-limit b { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* 2026-11-11 speed + touch: no double-tap-zoom delay and no grey tap flash on any control of a framed game; the info card
   (below the fold) is not laid out or painted until it nears the viewport */
.mg-frame button, .mg-frame a, .mg-frame select, .mg-info button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mg-info { content-visibility: auto; contain-intrinsic-size: auto 480px; }

@media (prefers-reduced-motion: reduce) {
  .mg-frame .mg-chip:active:not(:disabled), .mg-frame .mg-btn-secondary:active:not(:disabled), .mg-frame .mg-actions .kd-btn-primary:active:not(:disabled) { transform: none; }
  .mg-info .mg-info-chev, .mg-frame .mg-progress > span { transition: none; }
}
/* tablets and phones: the game first, the controls under it (each page keeps its main action in the AA sticky bar) */
@media (max-width: 1024px) {
  .mg-frame { margin-top: 12px; }
  .mg-frame .mg-body { flex-direction: column; }
  .mg-frame .mg-game { order: 1; padding: 14px; border-radius: 10px 10px 0 0; }
  .mg-frame .mg-panel { order: 2; flex: none; max-width: none; min-height: 0; gap: 16px; padding: 16px; border-right: 0; border-top: 1px solid var(--mg-line); border-radius: 0; }
  .mg-frame .mg-input, .mg-frame .mg-select select, .mg-frame .mg-fixed { height: 48px; }
  .mg-frame .mg-input-btns { height: 38px; }
  .mg-frame .mg-chip { min-width: 40px; height: 38px; font-size: 13px; }
  .mg-frame .mg-choices .mg-chip { height: 44px; }
  .mg-frame .mg-select select, .mg-frame .mg-input-el { font-size: 16px; } /* 16 px: iOS does not zoom into the field */
  .mg-frame .mg-btn-secondary { height: 48px; }
  .mg-frame .mg-mode-btn { height: 42px; }
  .mg-frame .mg-toolbar { padding: 8px 12px; }
  .mg-frame .mg-tool { width: 44px; height: 44px; }
  .mg-frame .mg-fair { height: 44px; }
  .mg-info { margin-top: 16px; }
  .mg-info .mg-info-head { padding: 16px; }
  .mg-info .mg-info-body { padding: 0 16px 16px; }
  .mg-info .mg-history { margin: 0 -16px -16px; }
  .mg-info .mg-limits { grid-template-columns: 1fr; }
}
/* 2026-11-11 mobile audit: Bootstrap modals (z 1050: login, deposit, provably fair, win cards) open UNDER the fixed sticky
   action bars (z 1100). While one is open every framed game's bar steps aside (Keno, Upgrader, Bundle, Double already did
   it per page; Mines, Plinko, Tower, Crash and Scratch did not) */
@media (max-width: 1024px) {
  /* the sticky bar is fixed on every framed game: `.mg-frame .mg-actions { position: relative }` above (0,2,0) would
     otherwise beat mobile.css's `.m-sticky-bar { position: fixed }` (0,1,0); the pages restate it too, this makes it
     independent of stylesheet order */
  .mg-frame .mg-actions.m-sticky-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--m-tabbar, 64px) + var(--m-safe-b, 0px)); z-index: 1100; }
  body.modal-open .mg-frame .mg-actions.m-sticky-bar { display: none !important; }
}
/* touch screens: a tapped control must not keep its hover look (sticky :hover) */
@media (hover: none) {
  .mg-frame .mg-chip:hover:not(:disabled):not(.is-on) { background: var(--mg-chip); }
  .mg-frame .mg-btn-secondary:hover:not(:disabled) { background: #181c29; } /*DESIGN-1204B:8fa04584*/
  .mg-frame .mg-tool:hover, .mg-frame .mg-fair:hover { background: transparent; }
  .mg-frame .mg-tool:not(.is-on):not([aria-pressed="true"]):hover, .mg-frame .mg-fair:hover { color: var(--mg-grey); }
  .mg-frame .mg-mode-btn:not(.is-on):hover:not(:disabled) { color: var(--mg-grey); }
}
@media (max-width: 1024px) and (hover: none) {
  .mg-frame .mg-note-keys { display: none; } /* keyboard hints mean nothing on a touch screen */
}
@media (max-width: 575px) {
  .mg-frame .mg-game { padding: 10px; }
  .mg-info .mg-about { flex-direction: column; }
  .mg-info .mg-about-img { width: 100%; height: 160px; }
}

/* 2026-11-12 i18n: longer translations in the framed game panel (layout review g1-g6). Other languages only; English keeps
   its one-line rows. The right-hand note drops under its label instead of being cut; a long read-out note takes two lines
   and never squeezes the amount; two half-width fields take two-line labels with level inputs; limit values wrap. */
html:not([lang="en"]) .mg-frame .mg-labels { flex-wrap: wrap; row-gap: 2px; }
html:not([lang="en"]) .mg-frame .mg-label-r { margin-left: auto; min-width: 0; max-width: 100%; white-space: normal; overflow: visible; text-align: right; }
html:not([lang="en"]) .mg-frame .mg-readout-v { flex: 1 0 auto; }
html:not([lang="en"]) .mg-frame .mg-readout-s { flex: 0 1 auto; min-width: 0; white-space: normal; text-align: right; line-height: 1.2; }
html:not([lang="en"]) .mg-frame .mg-row2 .mg-labels { white-space: normal; line-height: 1.3; }
html:not([lang="en"]) .mg-frame .mg-row2 > .mg-field { justify-content: flex-end; }
html:not([lang="en"]) .mg-frame .mg-row2 > .mg-btn-secondary { height: auto; min-height: 44px; padding: 4px 8px; line-height: 1.2; }
html:not([lang="en"]) .mg-info .mg-limit b { white-space: normal; text-align: right; }
@media (max-width: 1024px) {
  html:not([lang="en"]) .mg-frame .mg-row2 > .mg-btn-secondary { min-height: 48px; }
  html:lang(tr) .mg-frame .mg-toolbar { flex-wrap: wrap; row-gap: 4px; }
  html:lang(tr) .mg-frame .mg-fair { margin-left: auto; }
}

/* ===================================================================================================================
   2026-11-13 games UI audit, shared part (C3 C5 C6 C7 C8 C11 C12 C16 C17). Additive: every class above keeps working.
   Pages switch to these and delete their own copies (usage guide for the page engineers: games-shared-guide.txt).
   The system has 4 radii: 6 (chips, tags, pills), 8 (buttons, tiles), 9 (fields), 10 (cards, the frame); plus 14 for
   the phone sticky-bar buttons only. Text: 11 px minimum, 12 for meta lines, whole pixels, no negative tracking < 12 px.
   =================================================================================================================== */

/* C8: one palette. THE gold is #FFCE00 (the gold button's gradient start, the focus ring, every framed game). The old
   #FFCE00 (mobile.css --m-gold until 2026-11-13, and old page code) is retired: replace #FFCE00 / rgba(255,206,0, with
   var(--mg-gold) / rgba(var(--mg-gold-rgb), .x). Red = #FF6B6B (#FF8A8A stays for the Stop button text only). */
:root {
  --mg-gold: #FFCE00; --mg-gold-rgb: 255, 206, 0;
  --mg-red: #FF6B6B; --mg-red-rgb: 255, 107, 107;
  --mg-green: #4AF65B; --mg-green-rgb: 74, 246, 91;
  --mg-grey: #8ba4ba; --mg-ink2: #b9c9d6; /*DESIGN-1204B:03460faa*/
  --mg-line: #131a26; --mg-panel: #0e111a; --mg-game: #0e111a; --mg-bar: #0e1018; --mg-field: rgba(9, 12, 19, 0.5); /*DESIGN-1204B:bbeb16dc*/
  --mg-chip: #212127; --mg-raise: #131a26; --mg-raise-hover: #2c2c33; /* DESIGN-1204 (owner): --mg-raise */
}
.mg-t-gold { color: var(--mg-gold); } .mg-t-win { color: var(--mg-green); } .mg-t-loss { color: var(--mg-red); } .mg-t-grey { color: var(--mg-grey); }

/* C3: the gold button. main.css gives it 8 px at every width (its ::before follows with border-radius: inherit). In a
   phone sticky bar it is the 14 px, 52 px-tall CTA, the same shape on every page; a grey button next to it matches. */
@media (max-width: 1024px) {
  .mg-frame .mg-actions.m-sticky-bar .kd-btn-primary, .mg-frame .mg-actions.m-sticky-bar .mg-btn-secondary {
    min-height: var(--m-cta, 52px); border-radius: 12px;
  }
  .mg-frame .mg-actions.m-sticky-bar .kd-btn-primary::before { border-radius: inherit; }
}

/* C5: the sticky bar, once. Same tint as mobile.css .m-sticky-bar and the tab bar (8,9,11), one row, and the page
   reserves its height through mobile.css's #app padding hook (--m-sticky), so pages need no padding-bottom of their own. */
@media (max-width: 1024px) {
  .mg-frame .mg-actions.m-sticky-bar {
    flex-direction: row; align-items: center; gap: 10px; padding: 10px var(--m-gutter, 16px);
    background: linear-gradient(180deg, rgba(6, 8, 14, 0), rgba(6, 8, 14, 0.96) 30%); /*DESIGN-1204B:71ee32fd*/
  }
  .mg-frame .mg-actions.m-sticky-bar > .kd-btn-primary, .mg-frame .mg-actions.m-sticky-bar > .mg-btn-secondary { flex: 1 1 0; min-width: 0; width: auto; }
  #app:has(.mg-frame .mg-actions.m-sticky-bar) { --m-sticky: calc(var(--m-cta, 52px) + 28px); }
}
/* F7 H2 (2026-11-17, older devices): without :has() (Chrome < 105, Safari < 15.4, Firefox < 121) the page never reserved
   the sticky bar's height, so the end of every game page stayed under the bar. There every page reserves it (an empty
   80 px at the end of a page without a bar is the price). */
@supports not selector(:has(a)) {
  @media (max-width: 1024px) {
    #app { --m-sticky: calc(var(--m-cta, 52px) + 28px); }
  }
}

/* the grey secondary button outside the frame (info card, lobbies, result cards); inside .mg-frame the rules above apply */
.mg-btn-secondary:not(.mg-frame *) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border: 0;
  border-radius: 8px; background: var(--mg-raise); color: #fff; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600;
  line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px #2a3249, 0 2px 2px rgba(0, 0, 0, 0.25); transition: background-color 0.12s ease, transform 0.12s ease; /*DESIGN-1204B:229b7098*/
}
.mg-btn-secondary:not(.mg-frame *):hover:not(:disabled) { background: var(--mg-raise-hover); color: #fff; text-decoration: none; }
.mg-btn-secondary:not(.mg-frame *):active:not(:disabled) { transform: scale(0.97); }
.mg-btn-secondary:not(.mg-frame *):disabled { opacity: 0.5; cursor: not-allowed; }
/* .is-sm: the small row button (every history "Verify", "Show", "Copy"): 32 px, a 44 px touch area on phones */
.mg-btn-secondary.is-sm, .mg-frame .mg-btn-secondary.is-sm { width: auto; height: 32px; min-height: 0; padding: 0 12px; font-size: 12px; }
@media (max-width: 1024px) {
  .mg-btn-secondary:not(.mg-frame *) { min-height: 48px; }
  .mg-btn-secondary.is-sm, .mg-frame .mg-btn-secondary.is-sm { position: relative; height: 36px; min-height: 36px; }
  .mg-btn-secondary.is-sm::after { content: ''; position: absolute; inset: -4px; }
}

/* C6: the result / win card over the game (replaces .gr-result* in Mines, Tower, Double, Bundle and .kn-result* in Keno).
   Same parts, same names with mg-: layer > card > close, top (big number + caption | multiplier), item well or amount, CTA. */
.mg-result-layer {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: rgba(12, 11, 15, 0.35); border-radius: inherit; pointer-events: none;
}
.mg-result {
  pointer-events: auto; position: relative; width: 280px; max-width: calc(100% - 24px); padding: 18px 18px 16px;
  border: 1px solid var(--mg-line); border-radius: 10px; background: var(--mg-panel);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8); font-family: 'Sora', sans-serif; text-align: left; color: #fff;
}
/* a win is told by the card's edge (gold), a big win by a full gold edge: no glow around the card */
.mg-result.is-win { border-color: rgba(var(--mg-gold-rgb), 0.35); }
.mg-result.is-big { border-color: var(--mg-gold); }
.mg-result-close {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent;
  color: var(--mg-grey); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color 0.12s ease, background-color 0.12s ease;
}
.mg-result-close:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.mg-result-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-right: 30px; }
.mg-result-hits { display: flex; flex-direction: column; min-width: 0; }
.mg-result-big { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.05; }
.mg-result-cap { margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--mg-grey); text-transform: none; letter-spacing: 0; }
.mg-result-x { flex: none; font-size: 24px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.mg-result-x.is-mid { color: var(--mg-green); }
.mg-result-x.is-high { color: var(--mg-gold); }
.mg-result-x.is-loss { color: var(--mg-grey); }
.mg-result-item { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px; border: 1px solid var(--mg-line); border-radius: 8px; background: var(--mg-field); }
.mg-result-img { flex: none; width: 48px; height: 48px; border-radius: 6px; object-fit: contain; }
.mg-result-iinfo { flex: 1; min-width: 0; }
.mg-result-iname { margin: 0; font-size: 12px; font-weight: 600; color: var(--mg-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* amounts on the card are money: white (never green) */
.mg-result-ival { margin: 3px 0 0; font-size: 14px; font-weight: 600; color: #fff; }
.mg-result-none { margin: 14px 0 0; font-size: 18px; font-weight: 600; color: #fff; }
.mg-result-none.is-loss { font-size: 14px; font-weight: 600; color: var(--mg-grey); }
.mg-result-note { margin: 8px 0 0; font-size: 12px; font-weight: 500; color: var(--mg-grey); line-height: 1.4; }
.mg-result .kd-btn-primary, .mg-result-cta { width: 100%; height: 46px; margin-top: 14px; }
.mg-result .mg-btn-secondary { width: 100%; margin-top: 8px; }
.mg-pop-in-enter-active { transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.mg-pop-in-leave-active { transition: opacity 0.15s ease-in; }
.mg-pop-in-enter-from { opacity: 0; transform: scale(0.97); }
.mg-pop-in-leave-to { opacity: 0; }
@media (max-width: 1024px) {
  /* the card sits above the sticky bar; the board stays visible */
  .mg-result-layer {
    position: fixed; inset: auto var(--m-gutter, 16px) calc(var(--m-tabbar, 64px) + var(--m-safe-b, 0px) + 76px) var(--m-gutter, 16px);
    z-index: 1090; display: block; background: transparent; border-radius: 0;
  }
  .mg-result { width: 100%; max-width: 520px; margin: 0 auto; padding: 14px 14px 12px; }
  .mg-result-big { font-size: 24px; }
  .mg-result-x { font-size: 22px; }
  .mg-result-item { margin-top: 10px; padding: 8px; }
  .mg-result-img { width: 40px; height: 40px; }
  .mg-result-none { margin-top: 10px; }
  .mg-result .kd-btn-primary, .mg-result-cta { height: var(--m-cta, 52px); margin-top: 10px; border-radius: 12px; }
  .mg-result-close { top: 2px; right: 2px; width: 44px; height: 44px; }
  html.m-kb .mg-result-layer, body.modal-open .mg-result-layer { display: none !important; }
}

/* C7: "My games" / history rows, one design for every game. A row is a grid; the page sets its columns with --mg-cols
   (default: when | what | amount | action). The head row is the same grid plus .mg-th. */
.mg-hlist { max-height: 440px; overflow-y: auto; overscroll-behavior: contain; }
.mg-hrow {
  display: grid; grid-template-columns: var(--mg-cols, auto minmax(0, 1fr) auto auto); align-items: center; gap: 12px;
  min-height: 52px; padding: 10px 20px; border-bottom: 1px solid var(--mg-line); color: #fff; font-family: 'Sora', sans-serif; font-size: 13px;
}
.mg-hrow:last-child { border-bottom: 0; }
.mg-hrow > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-hrow:not(.mg-th):hover { background: rgba(255, 255, 255, 0.02); }
.mg-th, .mg-hrow.mg-th { min-height: 0; padding-top: 10px; padding-bottom: 10px; color: var(--mg-grey); font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.mg-hcell { display: flex; align-items: center; gap: 8px; }  /* a cell with a thumb or a pill next to text */
.mg-hcell > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mg-hnum { text-align: right; font-weight: 600; }             /* amounts, multipliers */
.mg-hmeta { color: var(--mg-grey); font-size: 12px; }          /* time, round id, "Refunded", "In play" */
.mg-hthumb { flex: none; width: 28px; height: 28px; border-radius: 6px; object-fit: contain; }
.mg-hrow > .mg-hact { display: flex; justify-content: flex-end; overflow: visible; }
.mg-pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; flex: none;
  background: var(--mg-raise); color: #fff; font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.mg-pill.is-win { color: var(--mg-green); background: rgba(var(--mg-green-rgb), 0.1); }
.mg-pill.is-loss { color: var(--mg-red); background: rgba(var(--mg-red-rgb), 0.1); }
.mg-pill.is-big { color: var(--mg-gold); background: rgba(var(--mg-gold-rgb), 0.12); }
/* empty state: one look everywhere (the .mg-info .mg-empty above, now also outside the info card); text only, no icon */
.mg-empty { margin: 0; padding: 28px 20px; color: var(--mg-grey); font-family: 'Sora', sans-serif; font-size: 13px; line-height: 1.5; text-align: center; }
@media (max-width: 1024px) {
  .mg-hlist { max-height: none; }
  .mg-hrow { gap: 10px; padding: 10px 16px; }
  .mg-hrow .mg-hide-sm { display: none; } /* a column the page drops on phones (put it on the head cell too) */
}

/* C11: the "last results" strip (Crash, Double, Plinko; Mines / Tower / Keno may add one). Newest first; the right end
   fades as a hint that it scrolls. Items may be <button> (opens the round) or <span>. */
.mg-strip {
  display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.mg-strip::-webkit-scrollbar { display: none; }
.mg-strip > * {
  flex: none; display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 52px; padding: 0 10px; border: 0;
  border-radius: 6px; background: var(--mg-raise); color: var(--mg-grey); font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.mg-strip > button { cursor: pointer; transition: background-color 0.12s ease; }
.mg-strip > button:hover { background: var(--mg-raise-hover); }
.mg-strip > .is-win { color: var(--mg-green); }
.mg-strip > .is-big { color: var(--mg-gold); }
.mg-strip > .is-loss { color: var(--mg-grey); }
.mg-strip > .is-new { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* C12: small controls */
/* back link (Scratch, Oripa, Multipack, BattleCreate, the rooms): <router-link class="mg-back"><svg/>{{ $t('All cards') }}</router-link> */
.mg-back {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 7px; border-radius: 8px;
  background: var(--mg-raise); color: #fff; font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; box-shadow: inset 0 1px #2a3249; transition: background-color 0.12s ease; /*DESIGN-1204B:afa0a4ce*/
}
.mg-back svg { flex: none; width: 14px; height: 14px; color: var(--mg-grey); }
.mg-back:hover { background: var(--mg-raise-hover); color: #fff; text-decoration: none; }
/* segmented control (switches a view: Active | History, filters, categories): the .mg-tabs look, usable anywhere */
.mg-seg { display: inline-flex; gap: 4px; max-width: 100%; padding: 4px; border-radius: 10px; background: var(--mg-bar); overflow-x: auto; scrollbar-width: none; }
.mg-seg::-webkit-scrollbar { display: none; }
.mg-seg.is-full { display: flex; }
.mg-seg.is-full > .mg-seg-btn { flex: 1 1 0; min-width: 0; }
.mg-seg-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border: 0; border-radius: 8px;
  background: transparent; color: var(--mg-grey); font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
  cursor: pointer; transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.mg-seg-btn:hover { color: #fff; text-decoration: none; }
.mg-seg-btn.is-on, .mg-seg-btn[aria-selected="true"], .mg-seg-btn[aria-pressed="true"] { color: #fff; background: var(--mg-raise); box-shadow: inset 0 1px #2a3249, 0 2px 2px rgba(0, 0, 0, 0.25); } /*DESIGN-1204B:af1d45de*/
.mg-seg-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* switch: <button type="button" role="switch" class="mg-switch" :aria-checked="on ? 'true' : 'false'"></button> (no inner knob) */
.mg-switch {
  position: relative; flex: none; width: 44px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: var(--mg-chip);
  box-shadow: inset 0 1px #2a3249; cursor: pointer; transition: background-color 0.18s ease; /*DESIGN-1204B:2644abf5*/
}
.mg-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c9c9cf;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); transition: transform 0.18s ease, background-color 0.18s ease;
}
.mg-switch[aria-checked="true"], .mg-switch.is-on { background: var(--mg-gold); box-shadow: none; }
.mg-switch[aria-checked="true"]::after, .mg-switch.is-on::after { transform: translateX(20px); background: #000; }
.mg-switch:disabled { opacity: 0.5; cursor: not-allowed; }
.mg-switch::before { content: ''; position: absolute; inset: -10px 0; } /* 44 px touch target */
@media (max-width: 1024px) {
  .mg-back { height: 36px; padding: 0 12px 0 9px; font-size: 13px; }
  .mg-back::after { content: ''; position: absolute; inset: -4px 0; } /* 44 px touch target */
  .mg-seg-btn { height: 44px; }
}

/* C16: loading, error and switched-off. Loading keeps the frame on screen (aria-busy on the page root, as TwentyOne does)
   with .mg-skel blocks where content will land; never swap a <loader> for the frame. Error and off use one card. */
.mg-state {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; border: 1px solid var(--mg-line);
  border-radius: 10px; background: var(--mg-panel); font-family: 'Sora', sans-serif; text-align: center;
}
.mg-state-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--mg-raise); color: var(--mg-grey); }
.mg-state h3, .mg-state-title { margin: 4px 0 0; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.mg-state p, .mg-state-text { max-width: 420px; margin: 0; color: var(--mg-grey); font-size: 13px; line-height: 1.5; text-wrap: pretty; }
.mg-state-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.mg-state-acts > .kd-btn-primary { min-width: 180px; height: 46px; padding: 0 20px; text-decoration: none; }
.mg-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--mg-panel) 0%, var(--mg-raise) 50%, var(--mg-panel) 100%); background-size: 200% 100%; animation: mg-skel 1.4s ease-in-out infinite; }
@keyframes mg-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* C17: tags (mode, rapid fire, N balls, "You", counts, categories). One shape: 22 px, radius 6, 11 px / 600. */
.mg-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; flex: none; vertical-align: middle;
  background: var(--mg-raise); color: var(--mg-grey); font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 600; line-height: 1;
  white-space: nowrap; text-transform: none; letter-spacing: 0;
}
.mg-tag.is-gold { color: var(--mg-gold); background: rgba(var(--mg-gold-rgb), 0.12); }
.mg-tag.is-win { color: var(--mg-green); background: rgba(var(--mg-green-rgb), 0.1); }
.mg-tag.is-loss { color: var(--mg-red); background: rgba(var(--mg-red-rgb), 0.1); }
.mg-tag.is-you { height: 18px; padding: 0 6px; background: var(--mg-gold); color: #000; }   /* the "You" badge (Double's version) */
.mg-tag.is-count { min-width: 18px; height: 18px; padding: 0 5px; justify-content: center; border-radius: 8px; background: var(--mg-gold); color: #000; } /* a count in a switch / tab */
/* one category colour map (csgo / rwi / rust / dota2 / tf2) for every game */
.mg-tag.is-cat-csgo { color: #E6A53C; background: rgba(230, 165, 60, 0.15); }
.mg-tag.is-cat-rwi { color: #4AF65B; background: rgba(74, 246, 91, 0.1); }
.mg-tag.is-cat-rust { color: #E0703F; background: rgba(205, 92, 52, 0.15); }
.mg-tag.is-cat-dota2 { color: #F05050; background: rgba(220, 50, 50, 0.15); }
.mg-tag.is-cat-tf2 { color: #E08A3C; background: rgba(207, 126, 52, 0.15); }

/* focus ring for everything above: 2 px gold, 2 px offset (C8); inside the scrollers it is drawn inside so it is not clipped */
.mg-btn-secondary:focus-visible, .mg-back:focus-visible, .mg-switch:focus-visible, .mg-result-close:focus-visible, .mg-result .kd-btn-primary:focus-visible { outline: 2px solid var(--mg-gold); outline-offset: 2px; }
.mg-strip > button:focus-visible, .mg-seg-btn:focus-visible { outline: 2px solid var(--mg-gold); outline-offset: -2px; }

.mg-back, .mg-seg-btn, .mg-switch, .mg-strip > button, .mg-result button, .mg-btn-secondary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* touch screens: no sticky hover look */
@media (hover: none) {
  .mg-btn-secondary:not(.mg-frame *):hover:not(:disabled) { background: var(--mg-raise); }
  .mg-back:hover, .mg-strip > button:hover { background: var(--mg-raise); }
  .mg-seg-btn:not(.is-on):not([aria-selected="true"]):not([aria-pressed="true"]):hover { color: var(--mg-grey); }
  .mg-result-close:hover { background: transparent; color: var(--mg-grey); }
}
@media (prefers-reduced-motion: reduce) {
  .mg-pop-in-enter-active, .mg-pop-in-leave-active { transition: opacity 0.1s linear; }
  .mg-pop-in-enter-from { transform: none; }
  .mg-switch, .mg-switch::after, .mg-seg-btn { transition: none; }
  .mg-btn-secondary:not(.mg-frame *):active:not(:disabled) { transform: none; }
  .mg-skel { animation: none; background: var(--mg-raise); }
}
/* translations up to 1.6x: equal-width seg buttons and grey buttons take two lines instead of being cut; tags never wrap */
html:not([lang="en"]) .mg-seg.is-full > .mg-seg-btn { white-space: normal; line-height: 1.15; height: auto; min-height: 38px; padding-top: 4px; padding-bottom: 4px; text-align: center; }
html:not([lang="en"]) .mg-btn-secondary:not(.mg-frame *):not(.is-sm) { white-space: normal; height: auto; min-height: 44px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
html:not([lang="en"]) .mg-state-acts > .kd-btn-primary { height: auto; min-height: 46px; }
@media (max-width: 1024px) {
  html:not([lang="en"]) .mg-seg.is-full > .mg-seg-btn { min-height: 44px; }
  html:not([lang="en"]) .mg-btn-secondary:not(.mg-frame *):not(.is-sm) { min-height: 48px; }
}

/* ===================================================================================================================
   2026-11-13 squeeze fixes (layout audit #4 #13 #27 #28). Additive: nothing above changes, every page keeps working.
   =================================================================================================================== */

/* #13 the frame stacks by its OWN width, not only the window's. The two columns cost 310 (controls) + 64 (board padding),
   so with the side menu and the chat open (1025-1250 px windows) the board got 140-300 px and its 4-up stat rows 20-40 px
   a cell. Below a 680 px frame the controls go on top and the board gets the full width (at 1280 px with the chat the
   frame is ~730 px: unchanged). Desktop only: a size container is a containing block for position:fixed, which would trap
   the phones' sticky bar. Lobby intros (free-pack, multipacks, oripa, scratch lists), Battle create and Pack Royale
   size their own panels and are left out. Tower's _initPixi writes the board height as the panel's inline min-height. */
@media (min-width: 1025px) {
  .mg-frame:has(.mg-body > .mg-panel):not(:has(.fp-intro, .mpl-intro, .ol-intro, .sl-intro, .bc-panel, .rx-panel)) { container: mg-frame / inline-size; }
  @container mg-frame (max-width: 680px) {
    .mg-frame .mg-body { flex-direction: column; }
    .mg-frame .mg-body > .mg-panel {
      flex: none; max-width: none; min-height: 0 !important; border-right: 0; border-bottom: 1px solid var(--mg-line); border-radius: 10px 10px 0 0;
    }
    .mg-frame .mg-body > .mg-game { border-radius: 0; }
  }
}

/* #27 game limits: two columns only while each tile has room for its label beside the amount (280 px tile = ~158 px of
   label beside a ~80 px amount). The card body is 435-690 px at 1025-1280 px windows with the chat open, so below ~570 px
   (about 1025-1150 px) it is one column; at 1280 px and wider nothing changes. Phones keep their one column. */
@media (min-width: 1025px) {
  .mg-info .mg-limits { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
}

/* #28 toolbar on phones: 5 tools (5 x 44 + 4 x 6 = 244 px) + 12 + "Provably fair" (~143 px) = 399 px in a 302 px bar at
   360, so the fair button was squeezed to ~104 px and the 44 px tools shrank. It now drops to a second row on the right
   (was Turkish only); with 3 tools (299 px) it still fits on one row. The lobby bars with their own content (promises,
   tickers) keep their own rules. */
@media (max-width: 1024px) {
  .mg-frame .mg-toolbar:not(.fp-bar, .mpl-bar, .ol-tickerbar, .sl-tickerbar) { flex-wrap: wrap; row-gap: 4px; }
  .mg-frame .mg-tools > .mg-tool { flex: none; }
  .mg-frame .mg-toolbar:not(.fp-bar, .mpl-bar, .ol-tickerbar, .sl-tickerbar) > .mg-fair { margin-left: auto; white-space: nowrap; }
}

/* #4 "My games" rows, two lines when the LIST is narrow (<= 560 px: phones up to ~590 px, and 1025-1150 px desktops
   with the chat open, where the list is 473-560 px with every column shown): what + amount on top, time (+ a meta line)
   + the action under it. One grid row had 294 px at 360 for 4-5 cells (Keno: Hits and the pill ~17 px each, Plinko's
   item name ~15 px, Scratch "Ce..."), and at 1025 px Keno's 7 columns left Bet / Risk ~53 px and the won amount ~33 px.
   The head row hides (each value reads on its own, as in Crash and Twenty One).
   A page opts in with .is-2l on .mg-hlist and role classes on the cells: .mg-h-main (what), .mg-h-val (amount / result),
   .mg-h-time, .mg-h-meta (a .mg-hide-sm cell that is useful again on the second line) and .mg-h-act; other
   .mg-hide-sm cells stay hidden. A page with other cells sets --mg-areas-2l (and --mg-cols-2l) and places them in
   @container mg-hlist (max-width: 560px). Width at 360: main = 294 - 12 - amount (~100) = ~180 px. */
/* tablets (list wider than 560 px, window <= 1024): .mg-hide-sm hides a cell but kept its column, so the amount sat in a
   narrow middle column next to an empty one. A page lists its visible columns in --mg-cols-sm (no value: unchanged). */
@media (max-width: 1024px) {
  .mg-hrow { grid-template-columns: var(--mg-cols-sm, var(--mg-cols, auto minmax(0, 1fr) auto auto)); }
}
.mg-hlist.is-2l { container: mg-hlist / inline-size; }
@container mg-hlist (max-width: 560px) {
  .mg-hlist.is-2l > .mg-th { display: none; }
  .mg-hlist.is-2l > .mg-hrow {
    grid-template-columns: var(--mg-cols-2l, auto minmax(0, 1fr) auto);
    grid-template-areas: var(--mg-areas-2l, "main main val" "time meta act");
    row-gap: 6px; column-gap: 12px; padding-left: 16px; padding-right: 16px;
  }
  .mg-hlist.is-2l .mg-h-main { grid-area: main; }
  .mg-hlist.is-2l .mg-h-val { grid-area: val; justify-content: flex-end; text-align: right; }
  .mg-hlist.is-2l .mg-h-time { grid-area: time; }
  .mg-hlist.is-2l .mg-h-meta { grid-area: meta; }
  .mg-hlist.is-2l .mg-h-act { grid-area: act; }
  .mg-hlist.is-2l .mg-hrow > .mg-hide-sm { display: none; }
  .mg-hlist.is-2l .mg-hrow > .mg-h-meta.mg-hide-sm { display: block; }
  .mg-hlist.is-2l .mg-hrow > .mg-h-meta.mg-hcell.mg-hide-sm { display: flex; }
}
/* F7 H2 (2026-11-17, older devices): without container queries (Chrome < 105, Safari < 16, Firefox < 110) the two-line
   rows by the viewport instead: a list is never wider than the window, so up to 560 px it is two lines there too */
@supports not (container-type: inline-size) {
  @media (max-width: 560px) {
    .mg-hlist.is-2l > .mg-th { display: none; }
    .mg-hlist.is-2l > .mg-hrow {
      grid-template-columns: var(--mg-cols-2l, auto minmax(0, 1fr) auto);
      grid-template-areas: var(--mg-areas-2l, "main main val" "time meta act");
      row-gap: 6px; column-gap: 12px; padding-left: 16px; padding-right: 16px;
    }
    .mg-hlist.is-2l .mg-h-main { grid-area: main; }
    .mg-hlist.is-2l .mg-h-val { grid-area: val; justify-content: flex-end; text-align: right; }
    .mg-hlist.is-2l .mg-h-time { grid-area: time; }
    .mg-hlist.is-2l .mg-h-meta { grid-area: meta; }
    .mg-hlist.is-2l .mg-h-act { grid-area: act; }
    .mg-hlist.is-2l .mg-hrow > .mg-hide-sm { display: none; }
    .mg-hlist.is-2l .mg-hrow > .mg-h-meta.mg-hide-sm { display: block; }
    .mg-hlist.is-2l .mg-hrow > .mg-h-meta.mg-hcell.mg-hide-sm { display: flex; }
  }
}
