.mg {
  --mg-ink: #1c272c;
  --mg-muted: #565951;
  --mg-rule: #c9c4b2;
  --mg-strong: #79796b;
  --mg-paper: #f7f4e9;
  --mg-white: #fffdf4;
  --mg-blue: #263b98;
  --mg-red: #ae402c;
  --mg-butter: #ffe18a;
  --mg-display: 'Bricolage Grotesque', 'DM Sans', Arial, sans-serif;
  --mg-mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  min-width: 0;
  color: var(--mg-ink);
  font-variant-numeric: tabular-nums;
}
.mg *, .mg *::before, .mg *::after { box-sizing: border-box; }
.mg h2, .mg h3, .mg p, .mg dl, .mg dd, .mg figure { margin: 0; }
.mg h2, .mg h3 { font-family: var(--mg-display); text-wrap: balance; }
.mg h2 { font-size: 1.55rem; font-weight: 650; line-height: 1.1; letter-spacing: -.045em; }
.mg p { line-height: 1.5; text-wrap: pretty; }
.mg button, .mg select, .mg input, .mg textarea { font: inherit; }
.mg button, .mg select, .mg input:is([type=radio],[type=checkbox]) { cursor: pointer; }
.mg button:disabled { cursor: default; }
.mg a:not(.btn) { color: var(--mg-blue); text-decoration: underline; text-underline-offset: .2em; }
.mg :where(button, a, input, select, textarea):focus-visible { outline: 3px solid var(--mg-blue); outline-offset: 3px; }
.mg .btn { white-space: normal; text-align: center; }
.mg .mg-small-button { min-height: 42px; padding: 7px 13px; font-size: .875rem; }
.mg-sr { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.mg-toolbar, .mg-box-heading, .mg-detail-meta, .mg-slide-nav, .mg-actions, .mg-plan-top, .mg-plan-body {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.mg-toolbar { margin-bottom: 23px; padding-bottom: 12px; border-bottom: 1px solid var(--mg-ink); flex-wrap: wrap; }
.mg-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mg-tabs button {
  min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px;
  color: var(--mg-muted); background: transparent; border: 1px solid transparent;
  border-radius: 1px; font-size: .92rem; font-weight: 650;
}
.mg-tabs button span { font: .71rem/1 var(--mg-mono); }
.mg-tabs button[aria-pressed=true] { color: var(--mg-white); background: var(--mg-blue); }
.mg-search input, .mg-form input:not([type=radio]):not([type=checkbox]), .mg-form textarea, .mg-copy-label input, .mg select {
  border: 1px solid var(--mg-strong); border-radius: 2px; min-height: 44px; background: var(--mg-white); color: var(--mg-ink); font-size: 1rem;
}
.mg input::placeholder, .mg textarea::placeholder { color: #69695e; opacity: 1; }
.mg-search input { max-width: 100%; width: 220px; padding: .55rem .8rem; }
.mg select { padding: .55rem .75rem; max-width: 100%; }

.mg-campaign-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 20px 26px; align-items: stretch;
}
.mg-campaign-card {
  display: grid; grid-template-columns: minmax(0, .79fr) minmax(0, 1fr); width: 100%;
  min-width: 0; min-height: 172px; text-align: left; padding: 0; border: 1px solid var(--mg-rule);
  border-radius: 0; background: var(--mg-white); color: var(--mg-ink); transition: border-color 120ms;
}
.mg-campaign-art { display: block; min-width: 0; min-height: 0; overflow: hidden; background: #e6e1d0; position: relative; }
.mg-campaign-art img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 77% 50%; }
.mg-campaign-info { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: start; gap: 8px; padding: clamp(12px, 1.65vw, 22px); }
.mg-proof-dateline, .mg-proof-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; flex-wrap: wrap; }
.mg-campaign-category, .mg-game-price, .mg-plan-top > span:first-child {
  color: var(--mg-blue); font: 600 .72rem/1.35 var(--mg-mono); text-transform: uppercase; letter-spacing: .065em;
}
.mg-campaign-info > strong { font: 660 clamp(1.5rem, 2.8vw, 2.75rem)/.95 var(--mg-display); letter-spacing: -.024em; overflow-wrap: anywhere; margin: 4px 0; }
.mg-campaign-meta { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .85rem; color: var(--mg-muted); }
.mg-campaign-meta span + span::before { content: '·'; margin: 0 .45em; }
.mg-proof-footer { border-top: 1px solid var(--mg-rule); padding-top: 7px; margin-top: auto; color: var(--mg-muted); font-size: .78rem; }
.mg-proof-open { color: var(--mg-blue); font: 500 1.25rem/1 var(--mg-display); }
.mg-lead-proof { grid-row: span 2; grid-template-columns: 1fr; grid-template-rows: minmax(clamp(205px, 18vw, 270px), 1fr) auto; }
.mg-lead-proof .mg-campaign-art { min-height: 160px; }
.mg-lead-proof .mg-campaign-art img { object-position: 50% 51%; }
.mg-lead-proof .mg-campaign-info { padding: 18px 22px 13px; }
.mg-lead-proof .mg-campaign-info > strong { font-size: clamp(2.35rem, 4.1vw, 3.9rem); }
.mg-one-proof .mg-lead-proof { grid-row: auto; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: minmax(250px, auto); }
.mg-one-proof .mg-campaign-info { justify-content: center; padding: clamp(18px, 3vw, 36px); }
.mg-one-proof .mg-campaign-info > strong { margin-top: 15px; }
.mg-one-proof .mg-proof-footer { margin-top: 18px; }
.mg-pill {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  color: var(--mg-muted); font: 550 .76rem/1.35 var(--mg-mono); white-space: nowrap;
}
.mg-pill::before { content: ''; height: 7px; width: 7px; flex: none; border: 1.4px solid currentColor; border-radius: 50%; }
.mg-pill:is(.mg-pill-online,.mg-pill-live,.mg-pill-active) { color: var(--mg-blue); }
.mg-pill:is(.mg-pill-online,.mg-pill-live,.mg-pill-active)::before { background: currentColor; }
.mg-pill:is(.mg-pill-paused,.mg-pill-past_due,.mg-pill-canceled,.mg-pill-unpaid,.mg-pill-offline) { color: var(--mg-red); }
.mg-pill-paused::before { border-radius: 0; border-width: 0 2px; }
.mg-empty { padding: 25px 10px 28px; border-block: 1px dashed var(--mg-rule); }
.mg-campaign-grid > .mg-empty { grid-column: 1 / -1; }
.mg-empty h3 { font-size: 1.25rem; }
.mg-empty p, .mg-note, .mg-setup p, .mg-game-info p, .mg-body-copy { color: var(--mg-muted); }
.mg-empty p { margin-top: 4px; font-size: .95rem; }

.mg-form { display: grid; gap: 17px; }
.mg-form > label, .mg-slide-count > label, .mg-copy-label { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; }
.mg-form input:not([type=radio]):not([type=checkbox]), .mg-form textarea, .mg-copy-label input { width: 100%; padding: .64rem .8rem; font-weight: 400; }
.mg-form textarea { resize: vertical; line-height: 1.45; }
.mg-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mg-fieldset > legend { padding: 0; margin-bottom: 8px; font-weight: 650; font-size: .9rem; }
.mg-art-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mg-art-choice { position: relative; cursor: pointer; }
.mg-art-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; top: 50%; left: 50%; margin: 0; }
.mg-art-choice > span { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--mg-rule); overflow: hidden; background: var(--mg-white); }
.mg-auto-art { aspect-ratio: 2.5; display: grid; place-items: center; background: var(--mg-butter); color: var(--mg-blue); }
.mg-art-choice img { width: 100%; display: block; aspect-ratio: 2.5; object-fit: cover; }
.mg-art-choice > span > span { padding: 6px 8px; font-size: .82rem; line-height: 1.3; }
.mg-art-choice input:checked + span { border-color: var(--mg-blue); box-shadow: inset 0 -2px var(--mg-blue); }
.mg-art-choice input:focus-visible + span { outline: 2px solid var(--mg-blue); outline-offset: 3px; }
.mg-slide-count { display: flex; align-items: end; gap: 16px; }
.mg-slide-count > label { flex: none; }
.mg-slide-count > label > input { max-width: 8.4rem; }
.mg-slide-count p, .mg-note { font-size: .9rem; line-height: 1.45; }
.mg-slide-count p { max-width: 34ch; padding-bottom: 2px; color: var(--mg-muted); }
.mg-actions { justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mg-rule); }
.mg-form .mg-actions { margin-top: 0; }
.mg-feedback { color: var(--mg-red); font-size: .91rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.mg-feedback:empty { display: none; }
.mg-detail-meta { justify-content: space-between; flex-wrap: wrap; font: .8rem/1.4 var(--mg-mono); color: var(--mg-muted); margin-bottom: 10px; }
.mg-slide-stage { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); position: relative; min-height: 215px; background: #ffd7b8; color: #3e211a; }
.mg-slide-stage[data-plate=lunch] { background: #d8e3ac; color: #233322; }
.mg-slide-stage[data-plate=evening] { background: var(--mg-blue); color: #fff0bd; }
.mg-slide-stage > img { width: 100%; height: 100%; grid-area: 1/2; object-fit: cover; object-position: 77% center; position: absolute; }
.mg-slide-text { grid-area: 1/1; align-self: center; padding: clamp(13px, 3vw, 24px); min-width: 0; overflow-wrap: anywhere; }
.mg-slide-text > span { font: 600 .66rem/1.35 var(--mg-mono); letter-spacing: .085em; text-transform: uppercase; }
.mg-slide-text h3 { font: italic 400 clamp(1.65rem, 3.2vw, 2.5rem)/.99 'DM Serif Text', Georgia, serif; letter-spacing: -.045em; margin: 12px 0 9px; }
.mg-slide-text p { font-size: .88rem; line-height: 1.39; }
.mg-slide-nav { margin: 11px 0 0; flex-wrap: wrap; gap: 7px; }
.mg-slide-nav .btn, .mg-slide-pick select { min-height: 42px; }
.mg-slide-pick select { font-size: .88rem; }
.mg-screen-choices, .mg-plan-choices { border: 1px solid var(--mg-rule); }
.mg-screen-choices { max-height: 42vh; overflow-y: auto; }
.mg-screen-choices:empty { display: none; }
.mg-screen-choices > label, .mg-plan-choices > label { display: flex; align-items: center; gap: 11px; padding: 11px 13px; cursor: pointer; background: var(--mg-white); }
.mg-screen-choices > label + label, .mg-plan-choices > label + label { border-top: 1px solid var(--mg-rule); }
.mg-screen-choices > label:has(:checked), .mg-plan-choices > label:has(:checked) { background: #fff0ba; }
.mg-screen-choices input, .mg-plan-choices input { accent-color: var(--mg-blue); width: 17px; height: 17px; flex: 0 0 17px; margin: 0; }
.mg-screen-choices label > span:not(.mg-pill), .mg-plan-choices label > span { flex: 1; min-width: 0; }
.mg-screen-choices strong, .mg-screen-choices small, .mg-plan-choices strong, .mg-plan-choices small { display: block; overflow-wrap: anywhere; }
.mg-screen-choices small, .mg-plan-choices small { font-size: .82rem; color: var(--mg-muted); }
.mg-plan-choices b { font-size: 1.04rem; text-align: right; }
.mg-plan-choices b small { display: inline; font-weight: 400; }

.mg-box { min-width: 0; border-top: 2px solid var(--mg-ink); }
.mg-box + .mg-box, .mg-stat-cards + .mg-box, .mg-plan-card + .mg-box { margin-top: 29px; }
.mg-box-heading { min-height: 62px; flex-wrap: wrap; padding: 12px 0; }
.mg-box-heading > span { color: var(--mg-muted); font: .78rem/1.35 var(--mg-mono); }
.mg-table-scroll { overflow-x: auto; }
.mg-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; line-height: 1.36; }
.mg-table thead { color: var(--mg-muted); font: 550 .69rem/1.4 var(--mg-mono); text-transform: uppercase; letter-spacing: .065em; }
.mg-table thead th { font-weight: inherit; border-bottom: 1px solid var(--mg-ink); }
.mg-table th, .mg-table td { padding: 13px 10px; }
.mg-table th:first-child, .mg-table td:first-child { padding-left: 3px; }
.mg-table th:last-child, .mg-table td:last-child { padding-right: 3px; }
.mg-table tbody td, .mg-table tbody th { border-bottom: 1px solid var(--mg-rule); }
.mg-table tbody th { font-weight: 600; }
.mg-table .mg-trailing, .mg-transactions :is(td,th):last-child, .mg-report-table :is(td,th):not(:first-child) { text-align: right; }
.mg-devices-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(240px, .39fr); gap: clamp(20px, 3vw, 42px); }
.mg-device-table .mg-room-label th { color: var(--mg-blue); background: #ece8d7; padding: 7px 10px; font: 600 .72rem/1.4 var(--mg-mono); letter-spacing: .055em; text-transform: uppercase; }
.mg-device-table th:not([colspan]) { overflow-wrap: anywhere; }
.mg-device-table .mg-mobile-campaign { display: none; }
.mg-device-table tbody td, .mg-device-table tbody th { padding-top: 5px; padding-bottom: 5px; }
.mg-assignment > span { display: flex; gap: 8px; align-items: center; }
.mg-assignment img { width: 32px; height: 26px; object-fit: cover; object-position: 75% center; flex: none; }
.mg-register-link { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 0 3px; border: 0; background: transparent; color: var(--mg-blue); font-weight: 650; }
.mg-setup-grid { min-width: 0; border-top: 5px solid var(--mg-blue); background: #ffe8a8; }
.mg-setup { min-width: 0; color: var(--mg-ink); padding: clamp(17px, 2.2vw, 28px); }
.mg-setup + .mg-setup { border-top: 1px dashed #9b8455; }
.mg-setup > svg { color: var(--mg-blue); margin-bottom: 15px; }
.mg-setup h2, .mg-game-info h2 { font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.mg-setup p, .mg-game-info p { margin: 8px 0 17px; max-width: 46ch; }
.mg-setup p { color: #524a39; font-size: .92rem; }
.mg-setup .btn { background: var(--mg-white); }
.mg-setup .mg-feedback { margin: 8px 0 0; color: var(--mg-red); }
.mg-definition > div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--mg-rule); }
.mg-definition > div:last-child { border-bottom: none; }
.mg-definition dt { color: var(--mg-muted); }
.mg-definition dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.mg-device-program { padding: 14px 0 2px; border-top: 1px solid var(--mg-rule); }
.mg-device-program > div { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.mg-device-program label { flex: 1 1 14rem; min-width: 0; display: grid; gap: 5px; font-size: .9rem; font-weight: 650; }
.mg-device-program select { width: 100%; font-size: .88rem; font-weight: 400; }
.mg-device-program .mg-note { margin-top: 7px; }
.mg-device-program .mg-note:empty { display: none; }
.mg-pair-code { display: grid; place-items: center; gap: 6px; background: var(--mg-butter); padding: 20px 8px; margin-bottom: 16px; border-block: 1px dashed var(--mg-strong); }
.mg-pair-code span { color: var(--mg-muted); font-size: .84rem; }
.mg-pair-code strong { font: 600 clamp(1.8rem, 6vw, 2.7rem)/1.1 var(--mg-mono); letter-spacing: .085em; color: var(--mg-blue); }
.mg-origin { font-weight: 600; overflow-wrap: anywhere; }
.mg-body-copy + .mg-note { margin-top: 10px; }
.mg-copy-label { margin-top: 16px; }
.mg-phone-setup { display: flex; gap: 17px; align-items: center; }
.mg-qr { width: 153px; flex: none; }
.mg-qr canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }

.mg-game-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.mg-game { min-width: 0; display: flex; flex-direction: column; border-bottom: 1px solid var(--mg-ink); }
.mg-game-art { position: relative; height: clamp(165px, 19vw, 255px); overflow: hidden; display: grid; place-items: center; }
.mg-trivia-art { background: var(--mg-blue); }
.mg-coaster {
  width: 125px; height: 125px; display: grid; place-items: center; border-radius: 50%;
  color: var(--mg-blue); background: var(--mg-butter); border: 5px double var(--mg-blue);
  outline: 3px solid var(--mg-butter); box-shadow: 7px 8px 0 #131f5b; transform: rotate(-11deg);
}
.mg-coaster span { font: italic 5rem/.84 'DM Serif Text', Georgia, serif; }
.mg-memory-art { background: #e79977; }
.mg-playing-cards { display: grid; grid-template-columns: repeat(3, 39px); gap: 7px; transform: rotate(9deg); }
.mg-playing-cards i { display: grid; place-items: center; height: 50px; border: 3px solid #fff0c8; border-radius: 3px; background: repeating-linear-gradient(45deg, #a93b2c 0 2px, #d15c3c 2px 5px); box-shadow: 2px 3px 0 #904331; }
.mg-playing-cards i:has(span) { background: #fff0c8; color: #a93d2c; font: normal 1.65rem/1 Georgia, serif; }
.mg-game-info { padding: 17px 0; display: flex; align-items: flex-start; flex-direction: column; flex: 1; }
.mg-game-info h2 { margin-top: 7px; }
.mg-game-info .btn { margin-top: auto; }

.mg-stat-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--mg-ink); padding: 15px 0; }
.mg-stat-cards > div { padding: 0 22px; min-width: 0; }
.mg-stat-cards > div + div { border-left: 1px solid var(--mg-rule); }
.mg-stat-cards > div:first-child { padding-left: 0; }
.mg-stat-cards dt { font: .75rem/1.4 var(--mg-mono); color: var(--mg-muted); }
.mg-stat-cards dd { margin-top: 5px; color: var(--mg-blue); font: 650 clamp(1.7rem, 4.2vw, 3.55rem)/1 var(--mg-display); letter-spacing: -.025em; }
.mg-chart { padding: 5px 0 20px; }
.mg-bar-figure { --axis-width: 4.45rem; }
.mg-bar-plot { height: 200px; position: relative; display: flex; }
.mg-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-right: 10px; width: var(--axis-width); color: var(--mg-muted); font: .75rem/1 var(--mg-mono); }
.mg-bar-lines { position: absolute; top: 4px; bottom: 4px; right: 0; left: var(--axis-width); display: flex; flex-direction: column; justify-content: space-between; }
.mg-bar-lines i { border-top: 1px dashed var(--mg-rule); }
.mg-bars { position: relative; display: flex; align-items: end; gap: clamp(2px, 1%, 8px); flex: 1; padding: 4px 0; }
.mg-bars > span { flex: 1; height: 100%; display: flex; align-items: end; justify-content: center; }
.mg-bars i { display: block; width: min(100%, 62px); background: var(--mg-blue); }
.mg-bars > span:last-child i { background: var(--mg-red); }
.mg-bar-figure figcaption { display: flex; justify-content: space-between; margin: 8px 0 0 var(--axis-width); font: .74rem/1.3 var(--mg-mono); color: var(--mg-muted); }
.mg-expand { width: 100%; min-height: 44px; border: 0; border-block: 1px solid var(--mg-rule); color: var(--mg-blue); background: transparent; font-weight: 600; }
.mg-billing-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; padding: 13px 17px; border-left: 3px solid var(--mg-blue); background: #edead9; }
.mg-billing-notice p { margin-top: 3px; font-size: .9rem; color: var(--mg-muted); }
.mg-billing-notice .mg-feedback { width: 100%; color: var(--mg-red); }
.mg-plan-card { padding: clamp(18px, 2.8vw, 32px); border-top: 5px solid var(--mg-blue); border-bottom: 1px dashed #947d4d; background: var(--mg-butter); }
.mg-plan-body { margin-top: 20px; align-items: end; flex-wrap: wrap; }
.mg-plan-body h2 { font: 640 clamp(2.7rem, 5vw, 5.2rem)/.95 var(--mg-display); letter-spacing: -.025em; }
.mg-plan-body p { font-size: .95rem; margin-top: 9px; }
.mg-plan-body .btn { background: var(--mg-white); }

@media (hover: hover) {
  .mg-campaign-card:hover { border-color: var(--mg-blue); }
  .mg-campaign-card:hover .mg-campaign-info > strong, .mg-register-link:hover { color: var(--mg-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .11em; }
  .mg-tabs button:not([aria-pressed=true]):hover, .mg-expand:hover, .mg-screen-choices > label:hover, .mg-plan-choices > label:hover { background: #ece8d9; }
}
@media (max-width: 900px) {
  .mg-devices-layout { grid-template-columns: minmax(0,1fr); }
  .mg-setup-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); }
  .mg-setup + .mg-setup { border-top: 0; border-left: 1px dashed #9b8455; }
  .mg-campaign-grid { gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mg-campaign-card:not(.mg-lead-proof) { grid-template-columns: minmax(0,.57fr) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .mg-campaign-grid { grid-template-columns: 1fr; gap: 15px; }
  .mg-lead-proof { grid-row: auto; }
  .mg-lead-proof .mg-campaign-art { min-height: 0; aspect-ratio: 2.35; }
  .mg-campaign-card:not(.mg-lead-proof) { min-height: 145px; grid-template-columns: minmax(0,.64fr) minmax(0,1fr); }
  .mg-lead-proof, .mg-one-proof .mg-lead-proof { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .mg-campaign-info, .mg-lead-proof .mg-campaign-info, .mg-one-proof .mg-campaign-info { padding: 14px; }
  .mg-lead-proof .mg-campaign-info > strong, .mg-one-proof .mg-campaign-info > strong { margin: 4px 0; }
  .mg-one-proof .mg-proof-footer { margin-top: auto; }
  .mg-game-grid { gap: 15px; }
  .mg-toolbar { gap: 8px; margin-bottom: 15px; }
  .mg-tabs { gap: 1px; }
  .mg-tabs button { padding: 0 10px; }
}
@media (max-width: 540px) {
  .mg-toolbar { display: grid; grid-template-columns: 1fr; }
  .mg-search, .mg-search input { width: 100%; }
  .mg-tabs { justify-content: space-between; }
  .mg-tabs button { gap: 5px; }
  .mg-table { font-size: .84rem; }
  .mg-table th, .mg-table td { padding: 10px 5px; }
  .mg-table thead { font-size: .62rem; letter-spacing: .025em; }
  .mg-box-heading { min-height: 58px; gap: 8px; }
  .mg-box-heading h2 { font-size: 1.35rem; }
  .mg-device-table tr:not(.mg-room-label) > :nth-child(2) { display: none; }
  .mg-device-table .mg-mobile-campaign { display: block; color: var(--mg-muted); font-size: .73rem; font-weight: 400; }
  .mg-setup-grid, .mg-game-grid { grid-template-columns: 1fr; }
  .mg-setup + .mg-setup { border-left: 0; border-top: 1px dashed #9b8455; }
  .mg-game-art { height: 170px; }
  .mg-stat-cards { padding: 10px 0; }
  .mg-stat-cards > div { padding: 0 9px; }
  .mg-stat-cards dd { font-size: clamp(1.25rem, 5vw, 1.65rem); }
  .mg-stat-cards dt { font-size: .66rem; }
  .mg-bar-figure { --axis-width: 3.6rem; }
  .mg-bar-plot { height: 160px; }
  .mg-phone-setup { flex-wrap: wrap; gap: 10px; }
  .mg-qr { width: 140px; }
  .mg-device-actions { justify-content: start; }
  .mg-slide-count { align-items: center; gap: 10px; }
  .mg-slide-stage { min-height: 190px; grid-template-columns: minmax(0,1.47fr) minmax(0,1fr); }
  .mg-slide-text { padding: 12px; }
  .mg-slide-text p { font-size: .82rem; }
  .mg-art-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mg-art-choice img, .mg-auto-art { aspect-ratio: 3.5; }
}
@media (max-width: 365px) {
  .mg-slide-nav .btn { padding: 7px; }
  .mg-detail-meta { gap: 7px; }
  .mg-screen-choices > label { padding: 8px; }
  .mg-tabs button { padding: 0 7px; }
}
@media (pointer: coarse) {
  .mg .mg-small-button, .mg-slide-nav .btn, .mg-slide-pick select, .mg .btn, .mg-expand { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .mg *, .mg *::before, .mg *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
