/*! Card Battle Lab. Copyright (c) 2026 Dave Skilton. All rights reserved. See /LICENSE. https://cardbattlelab.com/ */
html.home-r5 #mainMenuModal {
  --col-w: 220px;
  --d-cols: 4;
  --grp-gap: 22px;
  --tile-gap: 10px;
  --r5-logo-h: 220px;
  --r5-util-gap: clamp(10px, 1.4vh, 16px);
  --r5-tick-gap: clamp(14px, 1.8vh, 22px);
  --block-cols: calc(var(--col-w) * var(--d-cols) + var(--grp-gap) * (var(--d-cols) - 1));
}
html.home-r5 #mainMenuModal .menu-box {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: 0;
  padding: 62px clamp(18px, 2.4vw, 46px);
  overflow-x: hidden;
  overflow-y: auto;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.home-r5 #mainMenuModal .menu-box {
  position: relative;
  z-index: 1;
}
html.home-r5 #mainMenuModal .menu-sections,
html.home-r5 #mainMenuModal .menu-head-right {
  display: none;
}
html.home-r5 #mainMenuModal .menu-head {
  position: static;
  z-index: auto;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--r5-util-gap);
  width: 100%;
  max-width: var(--block-cols);
  min-height: 0;
  margin: 0 auto var(--r5-tick-gap);
  padding: 0;
  background: none;
  border: 0;
}
html.home-r5 #mainMenuModal .menu-head-left,
html.home-r5 #mainMenuModal .menu-brand-copy {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
html.home-r5 #mainMenuModal .menu-brand-title {
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--r5-logo-h);
  margin: 0;
  object-position: center;
  filter: drop-shadow(0 3px 14px color-mix(in srgb, var(--c-ink-dark) 85%, transparent));
}
html.home-r5 #mainMenuModal .r5-util-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--block-cols);
  margin: 0 auto;
  container: utilrow / inline-size;
}
html.home-r5 #mainMenuModal .r5-util {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  gap: var(--grp-gap);
}
html.home-r5 #mainMenuModal :is(.r5-util > .r5-util-btn, .r5-util-wrap > .r5-online, .hd-bugs-row > .r5-util-btn, .hd-recent > .r5-util-btn) {
  position: relative;
  min-width: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  background: var(--surface-haze);
  border: 1px solid color-mix(in srgb, var(--c-white) 16%, transparent);
  border-radius: 7px;
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  color: var(--c-text);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: calc(10px * var(--fs-display, 1));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 1px 3px color-mix(in srgb, var(--c-ink-dark) 90%, transparent);
  transition:
    background .12s ease,
    border-color .12s ease,
    color .12s ease;
}
html.home-r5 #mainMenuModal :is(.r5-util > .r5-util-btn, .r5-util-wrap > .r5-online, .hd-bugs-row > .r5-util-btn, .hd-recent > .r5-util-btn):hover,
html.home-r5 #mainMenuModal :is(.r5-util > .r5-util-btn, .r5-util-wrap > .r5-online, .hd-bugs-row > .r5-util-btn, .hd-recent > .r5-util-btn):focus-visible {
  background: var(--glass-bg-raised);
  border-color: var(--c-text-muted);
  color: var(--c-text-hi);
  outline: none;
}
html.home-r5 #mainMenuModal :is(.r5-util > .r5-util-btn, .r5-util-wrap > .r5-online, .hd-bugs-row > .r5-util-btn, .hd-recent > .r5-util-btn) > strong {
  display: block;
  min-width: 0;
  line-height: 1;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-shadow: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}
html.home-r5 #mainMenuModal :is(.r5-util > .r5-util-btn, .r5-util-wrap > .r5-online, .hd-bugs-row > .r5-util-btn, .hd-recent > .r5-util-btn) > .menu-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: inherit;
  text-shadow: none;
}
html.home-r5 #mainMenuModal :is(.r5-util > .r5-util-btn, .r5-util-wrap > .r5-online, .hd-bugs-row > .r5-util-btn, .hd-recent > .r5-util-btn) > .menu-btn-icon .gcg-tbi {
  display: block;
  width: 16px;
  height: 16px;
}
html.home-r5 #mainMenuModal .r5-util > .r5-util-btn > .menu-btn-icon .tcg-buy-ico {
  display: block;
  width: 16px;
  height: 16px;
}
html.home-r5 #mainMenuModal .r5-util > .r5-util-btn > .r5-desc {
  display: none;
}
html.home-r5 #mainMenuModal .r5-util > .r5-util-btn .ext {
  top: 3px;
  right: 4px;
}
html.home-r5 #mainMenuModal .r5-util > .r5-util-btn .ext .gcg-tbi {
  width: 11px;
  height: 11px;
}
html.home-r5 #mainMenuModal .r5-util-wrap > .r5-online {
  flex: 0 0 auto;
  align-self: center;
  margin-left: var(--grp-gap);
  gap: 5px;
  padding: 8px 10px;
  color: var(--p1);
}
html.home-r5 #mainMenuModal .r5-util-wrap > .r5-online[hidden] {
  display: none;
}
html.home-r5 #mainMenuModal .r5-util-wrap > .r5-online > strong {
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: calc(11px * var(--fs-mono, 1));
  letter-spacing: 0;
  text-transform: none;
}
html.home-r5 #mainMenuModal .r5-util-tight > .r5-online {
  align-self: stretch;
  margin-left: clamp(6px, 1.6cqi, 14px);
  flex-direction: column;
  justify-content: center;
  padding: 8px 6px;
}
html.home-r5 #mainMenuModal .r5-util-tight > .r5-util {
  flex: 1 1 auto;
  grid-auto-columns: minmax(0, 1fr);
  gap: clamp(6px, 1.6cqi, 14px);
  align-items: stretch;
}
html.home-r5 #mainMenuModal .r5-util-tight > .r5-util > .r5-util-btn {
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  padding: 8px 2px;
}
html.home-r5 #mainMenuModal .r5-util-tight > .r5-util > .r5-util-btn > strong {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-align: center;
  line-height: 1.15;
  font-size: clamp(7px, 2cqi, 10px);
  letter-spacing: 0.01em;
}
html.home-r5:not(.chp-info-docked) body:where(.st-menu-active):is(#st.st, *) #serverBuildChip {
  z-index: 13001;
}
html.home-r5 #mainMenuModal #mainMenuCloseBtn {
  position: fixed;
  top: 14px;
  right: clamp(14px, 1.6vw, 28px);
  z-index: 8;
  width: 34px;
  height: 34px;
  padding: 0;
  background: var(--c-panel);
  border: 1px solid color-mix(in srgb, var(--c-white) 16%, transparent);
  border-radius: 7px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: var(--c-text);
  font-size: calc(20px * var(--fs-body, 1));
  line-height: 1;
}
html.home-r5 #mainMenuModal #mainMenuCloseBtn:hover,
html.home-r5 #mainMenuModal #mainMenuCloseBtn:focus-visible {
  background: var(--c-panel);
  border-color: var(--c-text-muted);
  color: var(--c-text-hi);
  box-shadow: none;
  filter: none;
  outline: none;
}
html.home-r5 #mainMenuModal .system-message {
  width: 100%;
  max-width: var(--block-cols);
  margin: calc(var(--r5-util-gap) - var(--r5-tick-gap)) auto var(--r5-tick-gap);
  background: var(--surface-haze);
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
}
html.home-r5 #mainMenuModal .r5-grid {
  display: block;
  position: relative;
  flex: none;
  width: 100%;
  max-width: var(--block-cols);
  margin: 0 auto;
  --tile-w: var(--col-w);
  --tile-h: calc(var(--tile-w) * 0.3);
  --tile-colgap: var(--grp-gap);
  --tu: calc(var(--tile-w) / 220);
  --tile-icon: calc(var(--tu) * 28);
  --tile-fs: calc(var(--tu) * 14 * 1.08);
  --tile-desc-fs: calc(var(--tu) * 10.5 * 1.08);
}
html.home-r5 #mainMenuModal .r5-grp {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  background: none;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.home-r5 #mainMenuModal .r5-grp > .group-title {
  font-size: calc(15px * var(--fs-display, 1));
  padding-bottom: 8px;
  margin: 0 0 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--c-white) 22%, transparent);
}
html.home-r5 #mainMenuModal .r5-grp > .group-grid {
  display: flex;
  flex-direction: column;
  gap: var(--tile-gap);
  flex: none;
}
html.home-r5 #mainMenuModal .r5-grp.grp-span2 > .group-grid {
  display: grid;
  grid-template-columns: repeat(var(--grp-cols, 2), var(--tile-w));
  grid-auto-rows: var(--tile-h);
  column-gap: var(--tile-colgap);
  row-gap: var(--tile-gap);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: calc(var(--tu) * 9);
  row-gap: var(--tu);
  flex: none;
  height: var(--tile-h);
  min-width: 0;
  padding: 0 calc(var(--tu) * 10);
  border-radius: calc(var(--tu) * 7);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn .soon {
  top: calc(var(--tu) * 7);
  right: calc(var(--tu) * 8);
  font-size: calc(var(--tu) * 8 * 1.08);
  letter-spacing: calc(var(--tu) * 0.5);
  padding: calc(var(--tu) * 2) calc(var(--tu) * 5);
  border-radius: calc(var(--tu) * 8);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn > .gcg-notif-dot {
  top: calc(var(--tu) * 6);
  right: calc(var(--tu) * 6);
  width: calc(var(--tu) * 9);
  height: calc(var(--tu) * 9);
}
html.home-r5 #mainMenuModal .r5-util > .r5-util-btn > .gcg-notif-dot {
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
}
:where(html.home-r5 #mainMenuModal .r5-grid) .mode-btn {
  color: var(--c-text-hi);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn[hidden],
html.home-r5 #mainMenuModal .r5-util > .r5-util-btn[hidden],
html.home-r5 #mainMenuModal .r5-grp.r5-grp-empty {
  display: none;
}
html.home-r5.batch-disabled #mainMenuModal #menuBatchBtn,
html.home-r5.optimizer-disabled #mainMenuModal #menuOptimizerBtn {
  display: grid !important;
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn:is(.locked, :disabled) {
  color: color-mix(in srgb, var(--c-text-faint) 78%, var(--c-ink-dark));
  opacity: 1;
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn.menu-continue:not(:disabled) {
  color: var(--c-white);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn:focus-visible {
  background: var(--glass-bg-raised);
  border-color: var(--c-text-muted);
  outline: none;
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn > .menu-btn-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: var(--tile-icon);
  height: var(--tile-icon);
  flex: 0 0 var(--tile-icon);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn > .menu-btn-icon .gcg-tbi {
  width: var(--tile-icon);
  height: var(--tile-icon);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn > strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  font-size: var(--tile-fs);
  letter-spacing: 0.03em;
  line-height: 1.1;
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn.locked > strong {
  padding-right: calc(var(--tu) * 44);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn > :is(.r5-desc, .menu-continue-copy) {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  font-size: var(--tile-desc-fs);
  line-height: 1.3;
}
:where(html.home-r5 #mainMenuModal .r5-grid) .mode-btn > .r5-desc {
  color: var(--c-text-dim);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn > .r5-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  text-overflow: clip;
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn:has(> .mode-presence:not([hidden])) {
  grid-template-columns: auto minmax(min-content, 1fr) max-content;
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn:has(> .mode-presence:not([hidden])) > .r5-desc {
  grid-column: 2 / -1;
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn > .mode-presence {
  position: static;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  font-size: calc(var(--tu) * 11);
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn:has(> .mode-presence:not([hidden])) > strong {
  padding-right: 0;
}
html.home-r5 #mainMenuModal .r5-grid .mode-btn .gm-continue-mark {
  display: none;
}
html.home-r5 #mainMenuModal .r5-grid .menu-continue-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.home-r5 #mainMenuModal .r5-banner-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--tile-h);
  min-width: 0;
  overflow: hidden;
  flex: none;
  container: r5-banner / inline-size;
}
html.home-r5 #mainMenuModal .r5-banner-slot > .menu-acct {
  width: 100%;
  height: 100%;
  gap: 0;
  align-self: stretch;
  box-sizing: border-box;
}
html.home-r5 #mainMenuModal .r5-banner-slot > .menu-acct:has(> #menuAccountBtn:not([hidden])) {
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  background: var(--glass-modal-bg);
}
html.home-r5 #mainMenuModal .r5-banner-slot .menu-acct-meta {
  display: none;
}
html.home-r5 #mainMenuModal .r5-banner-slot .player-chip-host.player-banner-host {
  width: 100%;
  height: 100%;
  max-width: 100%;
}
html.home-r5 #mainMenuModal .r5-banner-slot .acct-pill[data-account=out] {
  font-size: calc(var(--tu) * 9.5 * 1.08);
  padding: calc(var(--tu) * 4) calc(var(--tu) * 8);
}
html.home-r5 #mainMenuModal .r5-banner-slot .acct-pill-tail {
  display: inline;
}
html.home-r5 .r5-lb {
  flex: none;
  box-sizing: border-box;
  min-width: 0;
  padding: 2px 10px 10px;
  background: var(--surface-haze);
  border: 1px solid color-mix(in srgb, var(--c-white) 16%, transparent);
  border-radius: 7px;
  backdrop-filter: blur(7px) saturate(120%);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
}
html.home-r5 .r5-lb[hidden] {
  display: none;
}
html.home-r5 .r5-lb.r5-lb-veiled {
  visibility: hidden;
}
html.home-r5 #mainMenuModal .r5-lb.r5-lb-side {
  position: absolute;
  margin: 0;
}
html.home-r5 #setupModal > .r5-lb.r5-lb-lobby {
  position: absolute;
  margin: 0;
}
html.home-r5 #mainMenuModal .r5-lb.r5-lb-below {
  position: relative;
  width: 100%;
  max-width: min(var(--block-cols), 532px);
  height: clamp(320px, 62vh, 520px);
  margin: var(--r5-tick-gap) auto 0;
}
html.home-r5 .r5-lb .lb-tabs {
  padding-left: 0;
  padding-right: 0;
}
html.home-r5 .r5-lb .lb-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}
html.home-r5 .r5-lb.lb--split .lb-body {
  overflow: hidden;
}
html.home-r5 .r5-lb .lb-pane {
  overscroll-behavior: contain;
}
html.home-r5 #mainMenuModal .r5-lb.r5-lb-below .lb-body,
html.home-r5 #mainMenuModal .r5-lb.r5-lb-below .lb-pane {
  overscroll-behavior: auto;
}
html.home-r5 .r5-lb .lb-list.gcg-list {
  background: none;
  border-color: transparent;
}
@media (max-width: 1100px) {
  html.home-r5 #mainMenuModal .menu-box {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}
@media (max-width: 860px) {
  html.home-r5 #mainMenuModal {
    --r5-edge: 16px;
    --grp-gap: var(--r5-edge);
  }
  html.home-r5 #mainMenuModal .menu-box {
    padding: 14px var(--r5-edge) max(64px, var(--chp-home-clear, 0px));
    gap: 14px;
  }
  html.home-r5 #mainMenuModal .menu-box.r5-fits {
    padding-top: 64px;
  }
  html.home-r5 #mainMenuModal .menu-head {
    max-width: none;
    margin: 0 0 var(--r5-tick-gap);
  }
  html.home-r5 #mainMenuModal .menu-brand-title {
    max-width: calc(100% - 80px);
    max-height: min(var(--r5-logo-h), clamp(56px, 17vw, 96px));
  }
  html.home-r5 #mainMenuModal .system-message {
    max-width: none;
  }
  html.home-r5 #mainMenuModal .r5-lb.r5-lb-below {
    margin-top: 0;
  }
  html.home-r5 #mainMenuModal .r5-grp {
    gap: calc(8px * var(--gcg-ui-density, 1));
  }
  html.home-r5 #mainMenuModal .r5-grp > .group-title {
    margin-bottom: 0;
  }
}
