/* Playground styles. Shared navigation and theme live in branding.css.
   Keep page-specific layout here; retired pre-Playground selectors are removed. */
body.homepage-body {
  margin: 0px;
  padding: 0px;
  color-scheme: light;
  background: var(--site-page);
}
body.homepage-body.dark-mode {
  color-scheme: dark;
}
#maxbarbu-home {
  min-height: 100vh;
  text-align: left;
  color: var(--site-ink);
  background: var(--site-page);
}
#maxbarbu-home * {
  box-sizing: border-box;
}
#maxbarbu-home [hidden] {
  display: none !important;
}
#maxbarbu-home a {
  color: inherit;
  text-decoration: none;
}
#maxbarbu-home button {
  cursor: pointer;
  font: inherit;
}
#maxbarbu-home :is(a, button, summary):focus-visible {
  outline: 3px solid var(--site-gold);
  outline-offset: 3px;
}
#maxbarbu-home :is(h1, h2, h3, p) {
  margin: 0px;
}
body #maxbarbu-home h1 {
  font: 400 40px / 1.14 Georgia, serif;
  letter-spacing: -1.2px;
  max-width: 570px;
  margin: 10px 0px 13px;
}
body #maxbarbu-home h2 {
  font: 400 24px / 1.17 Georgia, serif;
  letter-spacing: -0.6px;
}
body #maxbarbu-home .home-card-title h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
#maxbarbu-home .home-main {
  max-width: 1200px;
  margin: auto;
  padding: 26px 22px 55px;
}
#maxbarbu-home .home-welcome-panel {
  padding: 16px 10px 17px 0px;
}
body #maxbarbu-home .home-intro {
  font: 15px / 1.48 Arial, Helvetica, sans-serif;
}
#maxbarbu-home .home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
#maxbarbu-home .home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--site-line);
  border-radius: 7px;
  background: var(--site-panel);
  color: var(--site-ink);
  font-size: 13px;
  font-weight: 650;
}
html body #maxbarbu-home .home-button.primary {
  background: rgb(40, 88, 63);
  border-color: rgb(40, 88, 63);
  color: rgb(255, 255, 255);
}
#maxbarbu-home .home-button:hover {
  border-color: var(--site-gold);
}

#maxbarbu-home .home-daily {
  background: var(--site-tint);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
  justify-content: center;
}
#maxbarbu-home .home-daily .home-button {
  align-self: flex-start;
}
#maxbarbu-home .home-small {
  font-size: 12px;
  color: var(--site-muted);
}
#maxbarbu-home .home-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
#maxbarbu-home .home-textlink {
  color: var(--site-action);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12px;
  font-weight: 600;
}
#maxbarbu-home .home-card-title .home-textlink {
  white-space: nowrap;
}
#maxbarbu-home .home-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
#maxbarbu-home .home-segment {
  display: flex;
  border: 1px solid var(--site-line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--site-panel);
  max-width: 100%;
  width: max-content;
}
#maxbarbu-home .home-segment button {
  border-top: 0px;
  border-bottom: 0px;
  border-left: 0px;
  border-image: none;
  border-right: 1px solid var(--site-line);
  background: transparent;
  color: var(--site-muted);
  padding: 7px 12px;
  min-height: 40px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 0px;
}
#maxbarbu-home .home-segment button:last-child {
  border-right: 0px;
}
#maxbarbu-home .home-segment button[aria-pressed="true"] {
  background: rgb(40, 88, 63);
  color: rgb(255, 255, 255);
  font-weight: 700;
}
#maxbarbu-home .home-month-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid var(--site-line);
  border-radius: 7px;
  padding: 0px 3px;
  font-size: 12px;
}
#maxbarbu-home .home-month-stepper button {
  border: 0px;
  background: transparent;
  color: var(--site-ink);
  font-size: 21px;
  min-width: 34px;
  min-height: 40px;
  padding: 0px;
}
#maxbarbu-home .home-month-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
#maxbarbu-home .home-month-stepper span {
  min-width: 98px;
  text-align: center;
}
#maxbarbu-home .home-circle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--site-soft);
  color: var(--site-action);
  font-weight: 600;
  font-size: 13px;
}
#maxbarbu-home .home-message {
  font-size: 13px;
  color: var(--site-muted);
  line-height: 1.6;
}
#maxbarbu-home .home-message {
  padding: 18px 0px;
}
#maxbarbu-home .home-leader {
  display: grid;
  grid-template-columns: 18px 30px minmax(0px, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 14px 0px;
  border-bottom: 1px solid var(--site-line);
}
#maxbarbu-home .home-leader:last-child {
  border: 0px;
}
#maxbarbu-home .home-rank {
  font-size: 12px;
  color: var(--site-gold);
}
#maxbarbu-home .home-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--site-soft);
  color: var(--site-action);
  font-size: 12px;
}
#maxbarbu-home .home-leader-name {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 0px;
}
#maxbarbu-home .home-leader-name a:hover {
  text-decoration: underline;
}
#maxbarbu-home .home-leader-name small {
  display: block;
  font-weight: 400;
  color: var(--site-muted);
}
#maxbarbu-home .home-leader-score {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 650;
  color: var(--site-action);
}
#maxbarbu-home .home-daily-winner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-top: 1px solid var(--site-line);
  padding-top: 12px;
  margin-top: 2px;
  font-size: 12px;
}
#maxbarbu-home .home-star {
  color: var(--site-gold);
  font-size: 19px;
  line-height: 1.2;
}
#maxbarbu-home .home-daily-winner > div {
  display: grid;
  gap: 4px;
  min-width: 0px;
  overflow-wrap: anywhere;
}
#maxbarbu-home .home-daily-winner strong {
  font-size: 11px;
  color: var(--site-muted);
  font-weight: 500;
}
#maxbarbu-home .home-daily-winner a {
  color: var(--site-action);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#maxbarbu-home .home-resume {
  display: grid;
  gap: 8px;
  border-left: 3px solid var(--site-gold);
  padding-left: 12px;
  margin-top: 16px;
}
#maxbarbu-home .home-resume > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
#maxbarbu-home .home-error {
  font-size: 13px;
  color: var(--site-negative);
  padding: 8px 0px;
}
#maxbarbu-home .home-footer {
  border-top: 1px solid var(--site-line);
  max-width: 1156px;
  margin: auto;
  padding: 16px 0px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--site-muted);
}
@media (max-width: 760px) {
  #maxbarbu-home .home-main {
    padding: 20px 16px 35px;
  }
  body #maxbarbu-home h1 {
    font-size: 34px;
    max-width: 470px;
  }
  #maxbarbu-home .home-card {
    padding: 16px;
  }
  #maxbarbu-home .home-welcome-panel {
    padding: 4px 0px 6px;
  }
  #maxbarbu-home .home-footer {
    margin: 0px 16px;
  }
}
@media (pointer: coarse) {
  #maxbarbu-home .home-segment button, #maxbarbu-home .home-month-stepper button {
    min-height: 44px;
  }
  #maxbarbu-home .home-textlink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
#maxbarbu-home .home-leaders-toggle {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--site-panel);
  color: var(--site-action);
  border: 1px solid var(--site-line);
  border-radius: 7px;
  font: 600 12px / 1.4 Arial, sans-serif;
  cursor: pointer;
}
#maxbarbu-home .home-leaders-toggle[hidden] {
  display: none;
}
#maxbarbu-home .home-leaders-toggle:hover {
  background: var(--site-soft);
}
#maxbarbu-home {
  max-width: 1600px;
  margin: auto;
}
body #maxbarbu-home .home-main.playground-hub {
  display: grid;
  grid-template-columns: minmax(0px, 2fr) minmax(300px, 1fr);
  gap: 14px;
  padding: 14px 24px 22px;
  max-width: none;
}
body #maxbarbu-home .hub-left, body #maxbarbu-home .hub-sidebar, body #maxbarbu-home .home-tables, body #maxbarbu-home .home-chat {
  min-width: 0px;
}
body #maxbarbu-home .home-welcome-panel {
  background: linear-gradient(115deg, rgb(32, 61, 48), rgb(54, 84, 64));
  color: rgb(255, 255, 255);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  padding: 30px 32px;
  min-height: 215px;
  box-sizing: border-box;
}
body #maxbarbu-home .home-welcome-panel h1 {
  font-size: clamp(32px, 3.1vw, 47px);
  line-height: 1.12;
  max-width: 70%;
  margin: 0px 0px 8px;
}
body #maxbarbu-home .home-intro {
  color: rgb(225, 233, 231);
  font-family: Georgia, serif;
  font-size: 16px;
  max-width: 66%;
  margin: 0px;
  line-height: 1.4;
}
body #maxbarbu-home .home-activity {
  font-size: 14px;
  margin: 25px 0px 0px;
  position: relative;
  z-index: 1;
}
body #maxbarbu-home .home-cards {
  position: absolute;
  right: 16px;
  bottom: -39px;
  width: 285px;
  height: 208px;
  pointer-events: none;
}
body #maxbarbu-home .home-cards img {
  position: absolute;
  width: 126px;
  height: auto;
  bottom: 0px;
  border: 0px;
  box-shadow: #041b2418 0px 4px 8px;
  border-radius: 6px;
}
body #maxbarbu-home .home-cards img:nth-child(1) {
  left: 4px;
  transform: rotate(-24deg);
}
body #maxbarbu-home .home-cards img:nth-child(2) {
  left: 80px;
  bottom: 18px;
  transform: rotate(-8deg);
}
body #maxbarbu-home .home-cards img:nth-child(3) {
  left: 154px;
  bottom: 8px;
  transform: rotate(15deg);
}
body #maxbarbu-home .hub-play-area {
  display: grid;
  grid-template-columns: minmax(0px, 1.9fr) minmax(240px, 1fr);
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}
body #maxbarbu-home .hub-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body #maxbarbu-home .home-card {
  padding: 18px 16px;
  border-radius: 10px;
}
body #maxbarbu-home .home-card h2 {
  font-size: 28px;
  line-height: 1.1;
  white-space: normal;
}
body #maxbarbu-home .home-card-title {
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
body #maxbarbu-home .home-tables .home-card-title h2 {
  font-size: 30px;
}
body #maxbarbu-home .home-tables .home-segment {
  margin-left: auto;
}
body #maxbarbu-home .home-segment button {
  font-size: 13px;
  padding: 7px 12px;
}
body #maxbarbu-home .home-small {
  font-size: 13px;
}
body #maxbarbu-home .home-table-toolbar {
  justify-content: space-between;
  margin: 17px 0px 8px;
}
body #maxbarbu-home .home-textlink {
  font-size: 13px;
}
body #maxbarbu-home .home-table-toolbar button, body #maxbarbu-home .home-chat-settings button {
  border: 0px;
  padding: 0px;
  background: none;
  border-radius: 0px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--site-ink);
  cursor: pointer;
}
body #maxbarbu-home .home-button {
  font-size: 13px;
  min-height: 38px;
  padding: 7px 13px;
}
body #maxbarbu-home .home-resume:not([hidden]) {
  margin: 9px 0px 0px;
  padding: 10px 15px;
  background: var(--site-soft);
  border-radius: 7px;
  font-size: 14px;
}
body #maxbarbu-home .home-resume > div {
  display: flex;
  gap: 14px;
  align-items: center;
}
body #maxbarbu-home .hub-table-row {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) 102px 74px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--site-line);
  background: var(--site-tint);
  padding: 9px 8px;
  margin: 0px 0px 5px;
  border-radius: 5px;
}
body #maxbarbu-home .hub-places {
  display: flex;
  gap: 7px;
  align-items: start;
  min-width: 0px;
}
body #maxbarbu-home .hub-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  min-width: 0px;
  max-width: 65px;
  flex: 1 1 0%;
}
body #maxbarbu-home .hub-person > span:not(.home-circle) {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
  text-align: center;
}
body #maxbarbu-home .hub-person small {
  font-size: 10px;
  white-space: nowrap;
  color: var(--site-muted);
}
body #maxbarbu-home .home-circle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 13px;
}
/* Mark the existing seat avatar without changing the row's dimensions. */
body #maxbarbu-home .hub-person.is-you .home-circle {
  position: relative;
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
body #maxbarbu-home .home-seat-check {
  position: absolute;
  right: -5px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 2px var(--site-panel);
  font: 700 10px/1 Arial, sans-serif;
}
body #maxbarbu-home .hub-person.is-you > span:not(.home-circle) {
  color: var(--site-ink);
  font-weight: 700;
}
body #maxbarbu-home .vacant .home-circle {
  background: transparent;
  border: 1px dashed var(--site-muted);
}
body #maxbarbu-home .hub-table-policy {
  font-size: 12px;
  line-height: 1.4;
}
body #maxbarbu-home .hub-table-policy small {
  display: block;
  color: var(--site-muted);
  font-size: 11px;
  margin-top: 3px;
}
body #maxbarbu-home .hub-table-row .home-button {
  padding: 6px 8px;
  min-width: 0px;
}
body #maxbarbu-home .hub-new-seats {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
body #maxbarbu-home .hub-new-seats > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--site-muted);
  border-radius: 50%;
  font-size: 14px;
}
body #maxbarbu-home .hub-new-seats strong {
  font-size: 12px;
}
body #maxbarbu-home .hub-waiting-controls {
  padding: 6px 8px 8px;
  background: var(--site-soft);
  border: 1px solid var(--site-line);
  border-top: 0px;
  margin: -5px 0px 6px;
  border-radius: 0px 0px 5px 5px;
  font-size: 14px;
}
body #maxbarbu-home .hub-waiting-controls p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--site-muted);
  margin: 0 0 6px;
}
body #maxbarbu-home .table-readiness { display:flex; gap:4px 10px; flex-wrap:wrap; }
body #maxbarbu-home .table-readiness strong { color:var(--site-ink); white-space:nowrap; }
body #maxbarbu-home .hub-waiting-toolbar { display:flex; gap:6px 12px; align-items:center; flex-wrap:wrap; }
body #maxbarbu-home .hub-votes, body #maxbarbu-home .hub-table-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
}
body #maxbarbu-home .hub-votes button, body #maxbarbu-home .hub-table-actions button {
  font-size: 12px;
  min-height: 30px;
  padding: 4px 7px;
}
body #maxbarbu-home .hub-votes button[aria-pressed="true"] {
  border-color: var(--site-action);
  background: var(--site-panel);
  color: var(--site-action);
}
body #maxbarbu-home .hub-table-actions {
  margin-top: 0;
}
body #maxbarbu-home .hub-invite-result { margin-top:6px; font-size:11px; color:var(--site-muted); }
body #maxbarbu-home .hub-invite-result label { display:flex; align-items:center; gap:6px; white-space:nowrap; }
body #maxbarbu-home .hub-invite-result input { width:100%; min-width:0; font-size:12px; padding:5px 6px; }
@media (pointer:coarse) { body #maxbarbu-home .hub-votes button, body #maxbarbu-home .hub-table-actions button { min-height:44px; } }
body #maxbarbu-home .home-progress-title {
  margin: 17px 0px 7px;
}
body #maxbarbu-home .home-progress-title h3 {
  font: 700 12px Arial, sans-serif;
  margin: 0px;
}
body #maxbarbu-home .hub-playing-row {
  display: grid;
  grid-template-columns: 48px minmax(0px, 1fr) 65px 65px;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  border: 1px solid var(--site-line);
  background: var(--site-tint);
  border-radius: 5px;
  padding: 8px;
  margin: 5px 0px;
}
body #maxbarbu-home .hub-playing-row small {
  font-size: 11px;
}
body #maxbarbu-home .home-chat h2 {
  font-size: 22px;
}
body #maxbarbu-home .home-chat .home-card-title {
  margin-bottom: 16px;
}
body #maxbarbu-home .home-chat-log {
  border: 1px solid var(--site-line);
  background: var(--site-tint);
  border-radius: 6px;
  padding: 10px;
  height: 220px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body #maxbarbu-home .home-chat-log p {
  margin: 0px 0px 10px;
}
body #maxbarbu-home .home-chat-log time {
  font-size: 11px;
  color: var(--site-muted);
  white-space: nowrap;
  margin-left: 4px;
}
body #maxbarbu-home .hub-delete {
  font-size: 11px;
  background: transparent;
  border: 0px;
  padding: 0px 3px;
  color: var(--site-muted);
  cursor: pointer;
}
body #maxbarbu-home .home-chat-settings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin: 12px 0px;
}
body #maxbarbu-home .home-chat-form {
  display: flex;
  gap: 7px;
}
body #maxbarbu-home .home-chat-form input {
  width: 0px;
  flex: 1 1 0%;
  min-width: 0px;
  padding: 8px;
  font-size: 14px;
  background: var(--site-panel);
  color: var(--site-ink);
  border: 1px solid var(--site-line);
  border-radius: 4px;
}
body #maxbarbu-home #home-chat-status:empty {
  display: none;
}
body #maxbarbu-home .home-solo > p {
  margin: 6px 0px 14px;
}
/* Daily uses one gap between sections rather than stacking gaps and margins. */
body #maxbarbu-home .home-daily > p,
body #maxbarbu-home .home-daily .home-card-title {
  margin: 0;
}
body #maxbarbu-home .home-solo .home-segment {
  display: flex;
  margin: 12px 20px;
}
body #maxbarbu-home .home-solo .home-segment button {
  flex: 1 1 0%;
}
body #maxbarbu-home .home-actions {
  margin-top: 12px;
  gap: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
body #maxbarbu-home .home-solo .home-actions > .home-button {
  flex: 1 1 0%;
}
body #maxbarbu-home .home-daily h2 a {
  color: inherit;
  text-decoration: none;
}
body #maxbarbu-home .home-daily-action {
  background: var(--site-gold-soft);
  border-radius: 6px;
  padding: 10px;
  color: var(--site-ink);
  font-size: 14px;
}
body #maxbarbu-home .home-daily-action > strong {
  color: var(--site-gold);
}
body #maxbarbu-home .home-daily-action .home-actions {
  margin-top: 8px;
}
body #maxbarbu-home .home-daily-winner {
  margin-top: 0;
  background: var(--site-gold-soft);
  padding: 10px;
  border-radius: 6px;
  border: 0px;
  font-size: 13px;
  gap: 8px;
}
body #maxbarbu-home .home-daily-winner > div {
  gap: 2px;
}
body #maxbarbu-home .home-leaders .home-card-title h2 {
  font-size: 26px;
}
body #maxbarbu-home .home-month-stepper {
  margin-left: auto;
  font-size: 13px;
}
body #maxbarbu-home .home-month-stepper button {
  min-width: 23px;
  padding: 4px 6px;
}
body #maxbarbu-home .home-leader-competition {
  margin: 13px 0px 4px;
}
body #maxbarbu-home .home-leader-competition button {
  padding: 5px 8px;
  font-size: 12px;
}
body #maxbarbu-home .home-leader {
  grid-template-columns: 22px minmax(0px, 1fr) auto;
  gap: 8px;
  padding: 8px 3px;
}
body #maxbarbu-home .home-leader .home-avatar {
  display: none;
}
body #maxbarbu-home .home-leader-name {
  font-size: 14px;
}
body #maxbarbu-home .home-leader-score {
  font-size: 14px;
}
body #maxbarbu-home .home-leaders-toggle {
  margin: 5px 0px;
}
body #maxbarbu-home .home-leaders > #home-standings-link {
  display: block;
  margin-top: 12px;
}
body #maxbarbu-home .home-footer {
  font-size: 12px;
}
body.dark-mode #maxbarbu-home .home-welcome-panel {
  background: linear-gradient(115deg, rgb(23, 44, 53), rgb(37, 61, 59));
}
@media (max-width: 1200px) {
  body #maxbarbu-home .home-main.playground-hub {
    grid-template-columns: minmax(0px, 1.8fr) minmax(285px, 1fr);
    padding: 12px;
  }
  body #maxbarbu-home .hub-play-area {
    grid-template-columns: minmax(0px, 1.6fr) minmax(215px, 1fr);
  }
  body #maxbarbu-home .home-card {
    padding: 15px 12px;
  }
  body #maxbarbu-home .hub-table-row {
    grid-template-columns: minmax(0px, 1fr) 74px;
  }
  body #maxbarbu-home .hub-table-policy {
    grid-area: 2 / 1;
  }
  body #maxbarbu-home .hub-table-row > .home-button {
    grid-area: 1 / 2 / 3;
  }
  body #maxbarbu-home .home-cards {
    right: -40px;
    width: 235px;
  }
  body #maxbarbu-home .home-welcome-panel {
    padding: 24px;
  }
  body #maxbarbu-home .home-welcome-panel h1 {
    max-width: 70%;
    font-size: 37px;
  }
  body #maxbarbu-home .home-intro {
    font-size: 15px;
  }
}
@media (max-width: 960px) {
  body #maxbarbu-home .home-main.playground-hub {
    grid-template-columns: 1fr;
  }
  body #maxbarbu-home .hub-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body #maxbarbu-home .home-leaders {
    grid-column: 1 / -1;
  }
  body #maxbarbu-home .hub-play-area {
    grid-template-columns: minmax(0px, 1.7fr) minmax(240px, 1fr);
  }
  body #maxbarbu-home .home-welcome-panel h1 {
    font-size: 42px;
  }
  body #maxbarbu-home .home-cards {
    right: 8px;
  }
}
@media (max-width: 620px) {
  body #maxbarbu-home .home-main.playground-hub {
    padding: 10px;
    gap: 10px;
  }
  body #maxbarbu-home .hub-play-area {
    grid-template-columns: 1fr;
  }
  body #maxbarbu-home .hub-sidebar {
    display: flex;
  }
  body #maxbarbu-home .home-welcome-panel {
    padding: 22px 20px;
  }
  body #maxbarbu-home .home-welcome-panel h1 {
    font-size: 32px;
    max-width: 100%;
  }
  body #maxbarbu-home .home-intro {
    font-size: 14px;
    position: relative;
    z-index: 1;
  }
  body #maxbarbu-home .home-activity {
    max-width: 44%;
    margin-top: 20px;
    line-height: 1.7;
  }
  body #maxbarbu-home .home-cards {
    transform-origin: right bottom;
  }
  body #maxbarbu-home .home-card h2 {
    font-size: 26px;
  }
  body #maxbarbu-home .home-tables .home-card-title {
    align-items: start;
  }
  body #maxbarbu-home .home-tables .home-segment {
    margin-left: 0px;
  }
  body #maxbarbu-home .home-chat-log {
    height: 200px;
  }
  body #maxbarbu-home .home-chat-form input {
    font-size: 16px;
  }
  body #maxbarbu-home .hub-table-row {
    grid-template-columns: minmax(0px, 1fr) 74px;
  }
  body #maxbarbu-home .hub-person {
    max-width: none;
  }
  body #maxbarbu-home .home-footer {
    padding: 12px;
  }
  body #maxbarbu-home .home-chat h2 {
    font-size: 24px;
  }
  body #maxbarbu-home .home-month-stepper {
    margin-left: 0px;
  }
  body #maxbarbu-home .home-solo .home-actions .home-button {
    min-height: 40px;
  }
}
@media (max-width: 620px) {
  body #maxbarbu-home .home-welcome-panel {
    min-height: 265px;
  }
  body #maxbarbu-home .home-intro {
    max-width: 53%;
  }
  body #maxbarbu-home .home-cards {
    right: 2px;
    bottom: -22px;
    width: 285px;
    transform: scale(0.64);
  }
}
body #maxbarbu-home .home-footer {
  max-width: none;
  margin: 0px 24px;
  padding: 12px 0px;
}
body.site-redesign #maxbarbu-home .home-main.playground-hub {
  padding: 20px var(--site-gutter) 28px;
}
body.site-redesign #maxbarbu-home .home-card {
  padding: var(--site-card-padding);
}
body.site-redesign #maxbarbu-home .home-card h2 {
  font-size: 24px;
}
body.site-redesign #maxbarbu-home .home-footer {
  margin: 0 var(--site-gutter);
  padding: 14px 0px;
}
body.site-redesign #maxbarbu-home .home-segment button {
  min-height: 36px;
}
body.site-redesign #maxbarbu-home .home-chat-log {
  font-size: 14px;
}
body.site-redesign #maxbarbu-home .home-chat-settings {
  gap: 10px;
  flex-wrap: wrap;
}
@media (min-width: 621px) and (max-width: 1200px) {
  body #maxbarbu-home .home-cards {
    right: 14px;
    bottom: -30px;
    width: 285px;
    transform: scale(0.82);
    transform-origin: right bottom;
  }
}
@media (max-width: 760px) {
  body.site-redesign #maxbarbu-home .home-main.playground-hub {
    padding-top: 16px;
  }
}
body #maxbarbu-home .home-duplicates > p {
  margin: 8px 0px 12px;
}
body #maxbarbu-home .home-duplicate-record {
  padding: 12px;
  margin: 12px 0px;
  background: var(--site-tint);
  border-radius: 6px;
}
body #maxbarbu-home .home-duplicate-record > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
body #maxbarbu-home .home-duplicate-record strong {
  font: 28px/1.2 var(--site-heading);
  color: var(--site-gold);
}
body #maxbarbu-home .home-duplicate-record span {
  font-size: 12px;
  color: var(--site-muted);
}
body #maxbarbu-home .home-duplicate-record p {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0px 5px;
}
body #maxbarbu-home .home-leader-competition {
  flex-wrap: wrap;
}
@media (min-width: 621px) and (max-width: 960px) {
  body #maxbarbu-home .home-duplicates {
    grid-column: 1 / -1;
  }
}
.hub-current-table {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 0;
  margin-bottom: 8px;
}
.hub-current-table .home-button {
  margin-left: auto;
}

/* First-visit actions and balanced columns. */
body #maxbarbu-home .hub-table-column{min-width:0;display:flex;flex-direction:column;gap:12px}
body #maxbarbu-home .home-welcome-panel :is(h1,.home-intro,.home-slogan,.home-activity,.hero-actions){max-width:calc(100% - 250px)}
body #maxbarbu-home .home-slogan{font:14px/1.5 var(--site-body);margin-top:16px}
body #maxbarbu-home .home-activity{margin-top:8px;font-size:12px}
body #maxbarbu-home .hero-actions{margin-top:16px;align-items:center;position:relative;z-index:1}
body #maxbarbu-home .hero-actions .home-textlink{color:#fff}
body #maxbarbu-home .hero-actions .home-button.primary{background:#fff;border-color:#fff;color:#244b37}
body #maxbarbu-home .home-solo .home-segment{margin:12px 0}
body #maxbarbu-home .home-tables>.home-card-title:first-child{display:block}
body #maxbarbu-home .home-tables .home-segment{margin:12px 0 0}
body #maxbarbu-home .home-chat-log{height:440px;line-height:1.4;padding:8px}
body #maxbarbu-home .home-chat-log p{margin:0 0 3px}
body #maxbarbu-home .home-chat-date{font-size:11px;color:var(--site-muted);border-bottom:1px solid var(--site-line);padding:6px 0 3px;margin:4px 0 5px}
@media(max-width:960px){
 body #maxbarbu-home .home-main.playground-hub{display:flex;flex-direction:column}
 body #maxbarbu-home :is(.hub-left,.hub-sidebar,.hub-play-area,.hub-table-column){display:contents}
 body #maxbarbu-home .home-welcome-panel{order:0}
 body #maxbarbu-home .home-resume{order:1}
 body #maxbarbu-home .home-solo{order:2}
 body #maxbarbu-home .home-daily{order:3}
 body #maxbarbu-home .home-duplicates{order:4}
 body #maxbarbu-home .home-tables{order:5}
 body #maxbarbu-home .home-chat{order:6}
 body #maxbarbu-home .home-leaders{order:7}
}
@media(max-width:620px){
 body #maxbarbu-home .home-welcome-panel{padding:20px;min-height:0}
 body #maxbarbu-home .home-welcome-panel h1{max-width:none;font-size:30px}
 body #maxbarbu-home .home-welcome-panel :is(.home-intro,.home-slogan,.home-activity){max-width:calc(100% - 125px)}
 body #maxbarbu-home .home-welcome-panel .hero-actions{max-width:none}
 body #maxbarbu-home .home-cards{top:80px;bottom:auto;right:4px;transform:scale(.48);transform-origin:right top}
 body #maxbarbu-home .home-chat-log{height:360px}
}

@media(max-width:760px){
 body #maxbarbu-home .home-daily .home-card-title>a,body #maxbarbu-home .home-leader-name>a,body #maxbarbu-home .home-daily-winner a{display:inline-flex;align-items:center;min-width:44px;min-height:44px}
 body #maxbarbu-home .home-segment button,body #maxbarbu-home .home-month-stepper button,body #maxbarbu-home .home-button{min-height:44px}
 body #maxbarbu-home .home-month-stepper button{min-width:44px}
}
body #maxbarbu-home .home-welcome-panel #home-welcome{max-width:none}
html body #maxbarbu-home .hero-actions .home-button.primary{background:#fff;border-color:#fff;color:#244b37}
@media(max-width:620px){body #maxbarbu-home .home-welcome-panel :is(.home-intro,.home-slogan,.home-activity){max-width:calc(100% - 140px)}}

/* Keep spectator entry visible before the mobile game panels. */
body #maxbarbu-home #home-kibitz{border-color:var(--site-action);color:var(--site-action);background:var(--site-panel)}
body #maxbarbu-home #home-kibitz-games{scroll-margin-top:24px}
body #maxbarbu-home .home-progress-title h3{font:500 18px Georgia,serif}
body #maxbarbu-home .home-kibitz-help{margin:0 0 8px}
body #maxbarbu-home .hub-playing-row{grid-template-columns:48px minmax(0,1fr) 92px 84px}
body #maxbarbu-home .hub-playing-row>span{overflow-wrap:anywhere}
body #maxbarbu-home .hub-playing-row .kibitz-action{min-height:44px;border-color:var(--site-action);color:var(--site-action)}
@media(max-width:600px){
 body #maxbarbu-home .hub-playing-row{grid-template-columns:minmax(0,1fr) 84px;gap:5px 8px}
 body #maxbarbu-home .hub-playing-row>b{grid-column:1;grid-row:1}
 body #maxbarbu-home .hub-playing-row>span{grid-column:1;grid-row:2}
 body #maxbarbu-home .hub-playing-row>small{grid-column:1;grid-row:3}
 body #maxbarbu-home .hub-playing-row>.kibitz-action{grid-column:2;grid-row:1 / span 3}
}

/* The saved Old school desktop choice has four plain, functional game boxes. */
#maxbarbu-home .old-school-home-only { display:none; }
body.old-school-home { background:#fff; }
body.old-school-home.dark-mode { background:#202223; }
body.old-school-home #maxbarbu-home {
  --site-page:#fff;--site-panel:#fff;--site-ink:#111;--site-muted:#444;
  --site-line:#aaa;--site-soft:#eee;--site-tint:#fff;--site-action:#244fa2;
  --site-gold:#244fa2;--site-gold-soft:#eee;
  max-width:none;font:16px/1.4 Georgia,'Times New Roman',serif;
}
body.old-school-home.dark-mode #maxbarbu-home {
  --site-page:#202223;--site-panel:#202223;--site-ink:#f2f2f2;--site-muted:#ccc;
  --site-line:#777;--site-soft:#343638;--site-tint:#202223;--site-action:#a9c4ff;
  --site-gold:#a9c4ff;--site-gold-soft:#343638;
}
body.old-school-home #maxbarbu-home .old-school-home-only { display:block; }
body.old-school-home #maxbarbu-home :is(.home-welcome-panel,#home-resume,.home-leaders,
 .home-solo>.home-small,.home-solo>.home-segment,.home-solo>.home-actions,
 .home-daily>.home-small,.home-daily .home-card-title>a,#home-daily-state,
 #home-daily-winner,[data-daily-browse],.home-duplicates>.home-small,
 #home-duplicate-record,#home-duplicate-month,#home-duplicate-enter,
 .home-duplicates .home-textlink,.home-tables .home-card-title .home-small,
 .site-brand-icon,.site-play-desktop) { display:none!important; }
body.old-school-home #maxbarbu-home :is(.hub-left,.hub-play-area,.hub-table-column,.hub-sidebar) { display:contents; }
body.old-school-home #maxbarbu-home .home-main.playground-hub {
  max-width:1000px;margin:30px auto 45px;padding:0 24px;
  display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);
  grid-template-rows:auto auto auto 1fr;gap:18px;align-items:start;
}
body.old-school-home #maxbarbu-home h1.simple-home-title {
  grid-column:1/-1;max-width:none;margin:0 0 8px;text-align:center;
  font:bold 30px/1.3 Georgia,'Times New Roman',serif;letter-spacing:0;
}
body.old-school-home #maxbarbu-home .home-card {
  padding:20px;border:1px solid var(--site-line);border-radius:0;
  box-shadow:none;background:var(--site-panel);margin:0;
}
body.old-school-home #maxbarbu-home .home-tables { grid-column:1;grid-row:2/5; }
body.old-school-home #maxbarbu-home .home-solo { grid-column:2;grid-row:2; }
body.old-school-home #maxbarbu-home .home-daily { grid-column:2;grid-row:3;display:block; }
body.old-school-home #maxbarbu-home .home-duplicates { grid-column:2;grid-row:4; }
body.old-school-home #maxbarbu-home .home-card h2 {
  font:bold 22px/1.25 Georgia,'Times New Roman',serif;letter-spacing:0;margin:0;
}
body.old-school-home #maxbarbu-home .home-card-title { margin:0 0 16px;gap:14px; }
body.old-school-home #maxbarbu-home :is(.home-button,.home-button.primary,.home-segment button) {
  background:var(--site-soft);color:var(--site-ink);border:1px solid var(--site-line);
  border-radius:3px;box-shadow:none;font:16px/1.25 Arial,Helvetica,sans-serif;
  font-weight:400;min-height:36px;padding:7px 12px;
}
body.old-school-home #maxbarbu-home :is(.home-button,.home-segment button):hover:not(:disabled) { border-color:var(--site-ink); }
body.old-school-home #maxbarbu-home button:disabled { opacity:.6;cursor:default; }
body.old-school-home #maxbarbu-home .home-segment { border:0;border-radius:0;background:none;gap:6px; }
body.old-school-home #maxbarbu-home .home-segment button[aria-pressed=true] {
  background:var(--site-panel);color:var(--site-ink);border-color:var(--site-ink);font-weight:bold;
}
body.old-school-home #maxbarbu-home .home-tables .home-segment { margin:0; }
body.old-school-home #maxbarbu-home .home-table-toolbar { margin:0 0 12px; }
body.old-school-home #maxbarbu-home :is(.home-small,.home-message,.home-textlink) { font-size:14px;font-weight:400; }
body.old-school-home #maxbarbu-home .simple-home-actions { display:flex;flex-wrap:wrap;gap:10px;margin-top:16px; }
body.old-school-home #maxbarbu-home .simple-home-legacy:not([hidden]) { display:grid;gap:8px;margin-top:12px; }
body.old-school-home #maxbarbu-home .home-daily-action { padding:0;background:none;border-radius:0; }
body.old-school-home #maxbarbu-home .home-actions { margin:0;gap:10px; }
body.old-school-home #maxbarbu-home .home-duplicates .home-actions { margin-top:16px; }
body.old-school-home #maxbarbu-home :is(.hub-table-row,.hub-playing-row) {
  background:none;border:0;border-bottom:1px solid var(--site-line);border-radius:0;
  padding:10px 0;margin:0;gap:10px;
}
body.old-school-home #maxbarbu-home .hub-table-row { grid-template-columns:minmax(0,1fr) 90px auto; }
body.old-school-home #maxbarbu-home .hub-places { gap:6px;flex-wrap:wrap; }
body.old-school-home #maxbarbu-home .hub-person { display:block;flex:initial;max-width:none;font-size:14px; }
body.old-school-home #maxbarbu-home .hub-person>span:not(.home-circle) { text-align:left; }
body.old-school-home #maxbarbu-home .hub-person:not(:last-child)::after { content:', '; }
body.old-school-home #maxbarbu-home :is(.home-circle,.hub-new-seats>span) { display:none; }
body.old-school-home #maxbarbu-home .hub-table-policy { font-size:13px; }
body.old-school-home #maxbarbu-home .hub-new-seats strong { font-size:15px;font-weight:400; }
body.old-school-home #maxbarbu-home .hub-waiting-controls { background:none;border-radius:0;margin:0;padding:10px 0; }
body.old-school-home #maxbarbu-home .hub-playing-row { grid-template-columns:55px minmax(0,1fr) 65px auto; }
body.old-school-home #maxbarbu-home .home-progress-title { margin-top:22px; }
body.old-school-home #maxbarbu-home .home-progress-title h3 { font:bold 16px/1.3 Georgia,serif; }
body.old-school-home #maxbarbu-home .site-header { border-bottom:1px solid var(--site-line);box-shadow:none;background:var(--site-panel); }
body.old-school-home #maxbarbu-home .brand-name { font:bold 24px/1.2 Georgia,serif;letter-spacing:0;color:var(--site-ink); }
body.old-school-home #maxbarbu-home .brand-max { color:inherit; }
body.old-school-home #maxbarbu-home :is(.site-nav a,.site-account button,.site-account summary,.site-play-menu summary) { font:15px/1.3 Georgia,serif;color:var(--site-ink); }
body.old-school-home #maxbarbu-home .home-footer { max-width:952px;margin:0 auto;padding:16px 0; }
body.old-school-home #maxbarbu-home .home-footer>span:first-child { display:none; }
html body.old-school-home.site-redesign #maxbarbu-home .home-button.primary {
  background:var(--site-soft);color:var(--site-ink);border-color:var(--site-line);
}
body.old-school-home #maxbarbu-home .simple-ladders-link {
  grid-column:2;grid-row:5;margin:0;text-align:left;font:16px/1.4 Georgia,'Times New Roman',serif;
}
body.old-school-home #maxbarbu-home .simple-ladders-link a { text-decoration:underline;text-underline-offset:3px; }
/* The desktop appearance switch remains reachable in both appearances. */
#maxbarbu-home .home-account { position:relative; }
#maxbarbu-home [data-table-style-toggle] { white-space:nowrap; }
#maxbarbu-home [data-table-style-status] {
 position:absolute;right:0;top:calc(100% + 7px);z-index:35;max-width:min(360px,85vw);
 padding:8px 10px;border:1px solid var(--site-line);border-radius:3px;background:var(--site-panel);color:var(--site-ink);
 font:13px/1.4 Arial,Helvetica,sans-serif;text-align:left;box-shadow:0 2px 8px #0002;
}

/* Saved Retro Home retains its simple desktop boxes in a narrow window. */
body.old-school-home #maxbarbu-home { min-width:760px; }

/* Retro shares the real public lobby chat, including its ordinary account gate. */
body.old-school-home #maxbarbu-home .home-chat { grid-column:1/-1;grid-row:6;min-width:0; }
body.old-school-home #maxbarbu-home .home-chat-log { height:240px;background:var(--site-panel);font:15px/1.5 Georgia,serif; }
body.old-school-home #maxbarbu-home .home-chat-form { display:flex;gap:8px; }
body.old-school-home #maxbarbu-home .home-chat-form input { flex:1;min-width:0; }
.hub-own-tables { display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px; }
.hub-own-tables a { padding:6px;border:1px solid var(--site-line); }
@media(max-width:700px){body.old-school-home #maxbarbu-home .home-chat{grid-column:1;grid-row:auto}}

/* Compact Play home. The ordinary table service and saved Retro layout remain. */
body.compact-play-home:not(.old-school-home) #maxbarbu-home { max-width:1380px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.playground-hub {
  display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px 22px;
  padding:22px 24px 28px;align-items:start;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-welcome-panel {
  grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding:0 0 4px;min-height:0;overflow:visible;
  border:0;border-radius:0;background:none;color:var(--site-ink);
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-welcome-panel #home-welcome {
  margin:0 0 6px;font:400 31px/1.1 var(--site-heading,Georgia,serif);letter-spacing:-.7px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-welcome-panel :is(.home-intro,.home-activity,.hero-actions) {
  max-width:none;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-intro {
  font:14px/1.5 var(--site-body,Arial,sans-serif);color:var(--site-muted);
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-heading-actions {
  flex-shrink:0;text-align:right;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-activity {
  margin:0 0 3px;color:var(--site-muted);font-size:12px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hero-actions {
  margin:0;justify-content:flex-end;gap:18px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hero-actions .home-textlink {
  padding:3px 0;min-height:30px;border:0;background:none;color:var(--site-action);
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-resume:not([hidden]) {
  grid-column:1/-1;display:flex;align-items:center;gap:12px 22px;flex-wrap:wrap;
  margin:0;padding:11px 14px;border:1px solid var(--site-line);border-left:3px solid var(--site-gold);
  background:var(--site-panel);border-radius:6px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-resume-label {
  color:var(--site-ink);font-size:12px;font-weight:700;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-resume>div { gap:8px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-left { grid-column:1;min-width:0; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-play-area {
  display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0;width:100%;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-table-column { display:contents; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-sidebar {
  grid-column:2;display:flex;flex-direction:column;gap:10px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-card {
  padding:16px;border-radius:7px;box-shadow:none;background:var(--site-panel);
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-card :is(h2,.home-disclosure-title) {
  font:400 22px/1.2 var(--site-heading,Georgia,serif);letter-spacing:-.35px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-tables { order:0; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-tables>.home-card-title:first-child {
  display:flex;align-items:center;gap:12px;margin:0 0 12px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-tables .home-card-title .home-small { margin-top:5px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-tables .home-segment { margin:0 0 0 auto; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-table-toolbar { margin:0 0 8px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-table-row {
  grid-template-columns:minmax(0,1fr) 145px 74px;padding:10px 0;margin:0;
  border:0;border-bottom:1px solid var(--site-line);border-radius:0;background:none;gap:16px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-places { align-items:flex-start;gap:12px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-person {
  flex:1;max-width:none;align-items:center;font-size:12px;gap:5px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-person > span:not(.home-circle) {
  width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-circle {
  width:27px;height:27px;font-size:11px;border-radius:50%;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-table-policy { font-size:12px;line-height:1.4; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-table-policy small { font-size:11px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-new-table { border-bottom:0;padding-bottom:2px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-new-seats { gap:10px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-new-seats>span { width:24px;height:24px;font-size:16px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-new-seats strong { font-size:13px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-button {
  min-height:36px;font-size:12px;padding:7px 12px;border-radius:5px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-progress-title {
  margin-top:20px;padding-top:15px;border-top:1px solid var(--site-line);margin-bottom:6px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-progress-title h3 { font:600 13px/1.4 var(--site-body,Arial,sans-serif); }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-playing-row {
  grid-template-columns:62px minmax(0,1fr) 105px 74px;gap:10px;
  padding:9px 0;border:0;border-bottom:1px solid var(--site-line);background:none;border-radius:0;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-playing-row:last-child { border-bottom:0; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-playing-row .kibitz-action { min-height:36px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat { order:1; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-leaders { order:2; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home :is(.home-tables,.home-chat,.home-leaders) { align-self:stretch;width:100%; }
#maxbarbu-home .home-disclosure>summary {
  display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:30px;
}
#maxbarbu-home .home-disclosure>summary::-webkit-details-marker { display:none; }
#maxbarbu-home .home-disclosure>summary::after {
  content:'+';margin-left:auto;font:400 20px/1 Arial,sans-serif;color:var(--site-action);
}
#maxbarbu-home .home-disclosure[open]>summary::after { content:'−'; }
#maxbarbu-home .home-disclosure-meta { font-size:12px;color:var(--site-muted); }
#maxbarbu-home .home-disclosure-body { margin-top:14px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-disclosure .home-disclosure-title { font-size:17px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat-log {
  height:210px;background:var(--site-page);font-size:13px;padding:10px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-mode-heading {
  display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-mode-length {
  font:12px/1.3 var(--site-body,Arial,sans-serif);color:var(--site-muted);
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-solo .home-segment { margin:12px 0 0;width:100%; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-solo .home-segment button { flex:1; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-sidebar .home-card-title { margin-bottom:6px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-sidebar .home-card { padding:14px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-sidebar .home-actions { gap:9px;margin-top:10px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-daily { display:block;background:var(--site-panel); }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-daily-action { padding:0;background:none;margin-top:12px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-daily-action>strong { color:var(--site-muted);font-size:12px;font-weight:400; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-daily-action .home-actions { margin-top:8px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-daily-winner { display:block;padding:6px 0 0;margin-top:8px;border-top:1px solid var(--site-line);background:none;font-size:11px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-daily-winner>summary { min-height:28px;cursor:pointer;color:var(--site-muted);font:12px/1.5 var(--site-body,Arial,sans-serif); }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-daily-winner>div { margin-top:5px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-daily-winner .home-star { font-size:15px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-duplicates>.home-small { margin:0 0 9px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-duplicates .home-card-title { display:block; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home #home-duplicate-month { display:block;margin-top:6px;font-size:11px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-duplicate-record { padding:9px;margin:10px 0;background:var(--site-soft); }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-duplicate-record strong { font-size:20px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-duplicate-record p { font-size:12px;line-height:1.4;margin:5px 0; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-duplicate-status { font-size:11px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-footer { margin:0 24px;padding:12px 0;font-size:11px; }
body.old-school-home #maxbarbu-home .home-mode-length,
body.old-school-home #maxbarbu-home .site-nav a[href='/games'] { display:none!important; }
body.old-school-home #maxbarbu-home .home-disclosure-title { font:bold 22px/1.25 Georgia,serif; }
body.old-school-home #maxbarbu-home .home-disclosure-meta { display:none; }
@media (min-width:1101px) {
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-nav { margin-right:auto; }
}
@media (max-width:1100px) {
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.playground-hub { grid-template-columns:minmax(0,1fr) 290px;gap:14px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-table-row { grid-template-columns:minmax(0,1fr) 108px 64px;gap:10px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-playing-row { grid-template-columns:58px minmax(0,1fr) 64px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-playing-row>small { grid-column:2; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-playing-row>.kibitz-action { grid-column:3;grid-row:1/3; }
}
@media (max-width:800px) {
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.playground-hub { display:flex;flex-direction:column;padding:18px 14px;gap:14px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-welcome-panel { order:0;align-items:flex-start;width:100%; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-welcome-copy { flex:1; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-heading-actions { max-width:40%; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hero-actions { gap:8px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-resume { order:1;width:100%; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-left { order:2;display:block;width:100%; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-play-area { display:flex; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-sidebar { order:3;display:flex;width:100%; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-tables>.home-card-title:first-child { flex-wrap:wrap; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-tables .home-segment { margin-left:0; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-button,
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-segment button,
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-playing-row .kibitz-action { min-height:44px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-disclosure>summary { min-height:44px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-footer { margin:0 14px; }
}
@media (max-width:500px) {
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-welcome-panel { display:block; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-heading-actions { max-width:none;text-align:left;margin-top:8px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hero-actions { justify-content:flex-start;gap:18px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-table-row { grid-template-columns:minmax(0,1fr) 64px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-table-policy { grid-column:1;grid-row:2; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-table-row>.home-button { grid-column:2;grid-row:1/3; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-disclosure-meta { display:none; }
}

/* Keep the public conversation beside the tables, open on first arrival. */
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.playground-hub {
  grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  grid-template-areas:"welcome welcome" "resume resume" "tables chat" "modes modes" "leaders leaders";
  gap:16px 20px;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home :is(.hub-left,.hub-play-area,.hub-table-column) { display:contents; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-welcome-panel { grid-area:welcome; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-resume { grid-area:resume; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-tables { grid-area:tables;align-self:start; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat { grid-area:chat;align-self:start;border-top:3px solid var(--site-action); }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat .home-disclosure-title { font-size:23px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat>summary { flex-wrap:wrap;gap:5px 12px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat .home-disclosure-meta { font-size:12px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat .home-card-title { flex-wrap:wrap;gap:4px 10px;margin-bottom:10px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat .home-card-title p { margin:0; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat-log { height:clamp(180px,calc(100dvh - 530px),300px);font-size:14px;line-height:1.5; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat-form { display:flex;gap:8px;margin-top:10px; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat-form input { flex:1;min-width:0; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat-settings { margin:10px 0; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home #home-chat-status:empty { display:none; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-sidebar {
  grid-area:modes;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-sidebar>.home-card { height:100%;box-sizing:border-box; }
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-leaders { grid-area:leaders; }
@media(min-width:801px) and (max-width:1100px) {
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.playground-hub { grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:14px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-tables>.home-card-title:first-child { flex-wrap:wrap; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-tables .home-segment { margin-left:0; }
}
@media(max-width:800px) {
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.playground-hub {
    display:grid;grid-template-columns:minmax(0,1fr);
    grid-template-areas:"welcome" "resume" "chat" "tables" "modes" "leaders";
  }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat-log { height:180px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat-form :is(input,button) { min-height:44px; }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .hub-sidebar { grid-template-columns:minmax(0,1fr); }
}
/* Retro keeps its plain desktop treatment while giving chat the same priority. */
body.old-school-home #maxbarbu-home .home-main.playground-hub {
  max-width:1160px;grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr);grid-template-rows:auto auto auto;
}
body.old-school-home #maxbarbu-home .home-tables { grid-column:1;grid-row:2; }
body.old-school-home #maxbarbu-home .home-chat { grid-column:2;grid-row:2; }
body.old-school-home #maxbarbu-home .home-chat-log { height:210px; }
body.old-school-home #maxbarbu-home .hub-sidebar { display:grid;grid-column:1/-1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px; }
body.old-school-home #maxbarbu-home .hub-sidebar>.home-card { grid-column:auto;grid-row:auto;align-self:stretch; }
body.old-school-home #maxbarbu-home .simple-ladders-link { grid-column:1/-1;grid-row:auto; }

@media(max-height:650px) {
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-chat-log { height:140px; }
}

/* Closed-month winners: preserve the existing Home layout while hidden. */
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.has-monthly-winners {
  grid-template-areas:"welcome winners" "resume winners" "tables chat" "modes modes" "leaders leaders";
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.has-monthly-winners:has(.home-resume[hidden]) {
  grid-template-areas:"welcome winners" "tables chat" "modes modes" "leaders leaders";
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.has-monthly-winners .home-monthly-winners { grid-area:winners; }
#maxbarbu-home .home-monthly-winners {
  min-width:0;padding:12px 16px 14px;
  border:1px solid var(--site-line);border-top:3px solid var(--site-gold);
  border-radius:8px;background:var(--site-panel);align-self:start;
}
#maxbarbu-home .monthly-winners-heading { display:flex;align-items:center;gap:10px;margin-bottom:10px; }
#maxbarbu-home .monthly-winners-crown {
  display:flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;
  color:var(--site-gold);background:var(--site-gold-soft);border-radius:50%;font:25px/1 Georgia,serif;
}
body #maxbarbu-home .home-monthly-winners h2 { font:400 24px/1.15 var(--site-heading,Georgia,serif);letter-spacing:-.4px; }
#maxbarbu-home .monthly-winners-grid { display:grid;grid-template-columns:repeat(4,minmax(0,auto)); }
#maxbarbu-home .monthly-winner { min-width:0;padding:0 13px;border-left:1px solid var(--site-line); }
#maxbarbu-home .monthly-winner:first-child { padding-left:0;border-left:0; }
#maxbarbu-home .monthly-winner:last-child { padding-right:0; }
#maxbarbu-home a.monthly-winner-mode {
  display:flex;align-items:center;gap:6px;width:max-content;max-width:100%;min-height:22px;
  color:var(--site-action);font:600 11px/1.3 var(--site-body,Arial,sans-serif);text-decoration:none;
}
#maxbarbu-home a.monthly-winner-mode:hover { text-decoration:underline;text-underline-offset:3px; }
#maxbarbu-home .monthly-winner-mode span { font-weight:400; }
#maxbarbu-home .monthly-winner strong { display:block;margin-top:2px;overflow-wrap:anywhere;font:400 20px/1.3 var(--site-heading,Georgia,serif); }
#maxbarbu-home .monthly-winner .monthly-winner-empty { color:var(--site-muted);font:400 13px/1.5 var(--site-body,Arial,sans-serif); }
body.old-school-home #maxbarbu-home .home-main.has-monthly-winners .home-monthly-winners { grid-column:1/-1;grid-row:2;border-radius:0; }
body.old-school-home #maxbarbu-home .home-main.has-monthly-winners .home-tables,
body.old-school-home #maxbarbu-home .home-main.has-monthly-winners .home-chat { grid-row:3; }
body.old-school-home #maxbarbu-home .home-main.has-monthly-winners .hub-sidebar { grid-row:4; }
@media(min-width:801px) and (max-width:1100px) {
  #maxbarbu-home .monthly-winners-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 0; }
  #maxbarbu-home .monthly-winner:nth-child(3) { padding-left:0;border-left:0; }
}
@media(max-width:800px) {
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.has-monthly-winners {
    grid-template-areas:"welcome" "resume" "winners" "chat" "tables" "modes" "leaders";
  }
  body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.has-monthly-winners:has(.home-resume[hidden]) {
    grid-template-areas:"welcome" "winners" "chat" "tables" "modes" "leaders";
  }
  #maxbarbu-home .home-monthly-winners { width:100%; }
  #maxbarbu-home a.monthly-winner-mode { min-height:32px; }
}
@media(max-width:540px) {
  #maxbarbu-home .monthly-winners-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 0; }
  #maxbarbu-home .monthly-winner:nth-child(3) { padding-left:0;border-left:0; }
}
@media(pointer:coarse) {
  #maxbarbu-home a.monthly-winner-mode { min-height:44px; }
}

/* Keep every resume action inside its named column beside monthly winners. */
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.has-monthly-winners .home-resume:not([hidden]) {
  grid-area:resume;min-width:0;
}
body.compact-play-home:not(.old-school-home) #maxbarbu-home .home-main.has-monthly-winners .home-resume > * {
  min-width:0;max-width:100%;overflow-wrap:anywhere;
}
