/* A shared page ceiling matching the approved profile. Existing smaller pages stay small. */
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > main,
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > .home-shell,
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > .admin-shell,
body.site-compact > .home-retro-footer {
  max-width: min(1100px, calc(100vw - 32px)) !important;
  min-width: 0;
  box-sizing: border-box;
  margin-inline: auto;
}
/* Query the available content width instead of the monitor width. */
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > main:not(.profile-shell) {
  container: site-content / inline-size;
}
/* Compact the whole content system together, including pixel-sized artwork,
   controls and spacing. Compensate the layout ceiling so the rendered page
   remains 1,100px wide instead of becoming an even narrower column.
   The approved profile and small-screen touch targets retain their sizing. */
@media (min-width: 900px) {
  body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > main:not(.profile-shell),
  body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > .home-shell,
  body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > .admin-shell,
  body.site-compact > .home-retro-footer {
    zoom: .88;
    max-width: min(1250px, calc((100vw - 32px) / .88)) !important;
  }
}
@container site-content (max-width: 1250px) {
  .buzz-page-grid { grid-template-areas: "buzz-left buzz-main buzz-right"; grid-template-columns: 170px minmax(0, 1.15fr) minmax(260px, .85fr); gap: 12px; }
  .community-design-content :is(.cards[data-voting], .cards.approved-cards) { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .home-hero.home-welcome { grid-template-columns: minmax(0, 1fr) minmax(260px, 290px); gap: 18px; }
  .krewe-directory-columns { grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; }
  .rankings-column .ranked-toolbar .search { width: 170px; }
  .rankings-column .krewe-ranking .membership-column { display: none; }
}
@container site-content (max-width: 1091px) {
  .buzz-page-grid { grid-template-areas: "buzz-left buzz-main" "buzz-right buzz-main"; grid-template-columns: 170px minmax(0, 1fr); }
  .buzz-right-column { position: static; }
}
@container site-content (max-width: 966px) {
  .community-design-content :is(.cards[data-voting], .cards.approved-cards) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-hero.home-welcome { grid-template-columns: minmax(0, 1fr); }
  .krewe-directory-columns { grid-template-columns: minmax(0, 1fr); }
  .your-krewe-panel { max-width: 360px; width: 100%; justify-self: center; }
}
@container site-content (max-width: 600px) {
  .buzz-page-grid { grid-template-areas: "buzz-main" "buzz-left" "buzz-right"; grid-template-columns: minmax(0, 1fr); }
  .buzz-left-column { position: static; }
  .community-design-content :is(.cards[data-voting], .cards.approved-cards) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > main,
  body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > .home-shell,
  body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) > .admin-shell,
  body.site-compact > .home-retro-footer { max-width: calc(100vw - 20px) !important; }
}

/* The footer follows the same content width and scale as the compact page. */
body.site-compact > .home-retro-footer {
  width: min(1500px, calc(100% - 28px));
  margin-bottom: 24px;
}
body.site-compact .home-footer-main {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 18px;
  padding: 14px 18px;
}
body.site-compact .home-footer-brand { gap: 6px; }
body.site-compact .home-footer-brand img { width: 80px; }
body.site-compact .home-footer-directory { gap: 10px; }
body.site-compact .home-footer-disclaimer { grid-column: auto; }
body.site-compact .home-footer-copyright { padding: 6px 12px; }
@media (max-width: 899px) {
  body.site-compact .home-footer-main { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  body.site-compact .home-footer-disclaimer { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body.site-compact .home-footer-main { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
}

/* Home windows need their own proportions within the compact page. */
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-left-zone {
  container: home-column / inline-size;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome:not(.is-logged-in) .home-welcome-row {
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  align-items: start;
  gap: 16px;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-guest-primary-panel {
  align-self: start;
  height: auto;
  min-height: 0;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-guest-discovery-body {
  min-height: 0;
  padding: 20px;
  gap: 12px;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-guest-discovery-body h1 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.08;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome:not(.is-logged-in) .home-welcome-copy {
  padding: 49px 18px 18px;
  align-content: start;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-welcome-copy h2 {
  font-size: 1.55rem;
  margin-top: 14px;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome-copy [data-home-guest-only] > p {
  margin: 12px 0 0;
  font: 500 .95rem/1.4 "Barlow Semi Condensed", Arial, sans-serif;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-local-readout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "time temp" "date date";
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-local-readout > div {
  min-height: 56px;
  padding: 10px 12px;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-local-readout > div:nth-child(1) { grid-area: time; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-local-readout > div:nth-child(3) { grid-area: temp; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-local-readout > div:nth-child(2) {
  grid-area: date;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 40px;
  border-right: 0;
  border-top: 1px solid #a8b7ad;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-local-readout dd {
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.25;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-local-readout > div:nth-child(2) dd { margin: 0; }
@container home-column (max-width: 640px) {
  body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome:not(.is-logged-in) .home-welcome-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A compact trading desk: auction rows beside two small discovery windows. */
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-commerce-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-design-row { display: contents; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-window { grid-column: 1; grid-row: 1 / 3; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-rating-window { grid-column: 2; grid-row: 1; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-commerce-row > .home-spotlight-window {
  grid-column: 2; grid-row: 2; width: 100%; justify-self: stretch;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-commerce-row .home-discovery-window {
  border: 1px solid #817398;
  border-radius: 7px 7px 3px 3px;
  box-shadow: 2px 3px 0 #b6a9cd80;
  background: #fbfaff;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-commerce-row .home-window-bar {
  min-height: 28px; padding: 5px 9px; border-bottom: 1px solid #9687ad;
  font-size: .72rem;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-commerce-row .home-discovery-body {
  flex: 0 0 auto; padding: 10px;
  background: linear-gradient(135deg, #fffafd, #f0f7fc);
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-toolbar { gap: 8px; margin-bottom: 9px; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-intro strong { font-size: .79rem; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-intro small { font-size: .67rem; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-live-badge {
  padding: 4px 6px; border-radius: 3px; box-shadow: 1px 1px 0 #b3a2c1; font-size: .56rem;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-list { grid-template-columns: minmax(0, 1fr); gap: 9px; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-card {
  grid-template-columns: 66px minmax(0, 1fr); grid-template-rows: auto;
  gap: 10px; padding: 8px; align-items: center;
  border: 1px solid #bcaccb; border-radius: 5px;
  background: linear-gradient(110deg, #fffafd, #f5f0fa);
  box-shadow: inset 0 1px 0 white, 1px 2px 0 #d1c8de;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-card:nth-child(even) { background: linear-gradient(110deg, #f4fffb, #eff6fc); }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-preview {
  width: 66px; height: 88px; min-height: 0; padding: 3px;
  border: 1px solid #ab96c2; border-radius: 3px;
  background: linear-gradient(135deg, #f6d9ee, #d9d9fa);
  box-shadow: inset 1px 1px 0 white;
  align-items: center;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-card .home-auction-preview img {
  width: 58px; height: 80px; max-height: 80px; max-width: 100%;
  border: 0; border-radius: 2px; box-shadow: none; object-fit: contain;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-preview-tag,
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-preview::after { display: none; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-copy { gap: 5px; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-name {
  flex: none; min-height: 0; padding: 0;
  font: 700 .95rem/1.2 "Barlow Semi Condensed", Arial, sans-serif;
  color: #49365e; overflow-wrap: anywhere;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-bid {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; padding: 0;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-bid small { font-size: .62rem; letter-spacing: .02em; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-bid b { font-size: .88rem; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-timer {
  justify-content: flex-start; gap: 4px; min-height: 0;
  margin: 0; padding: 0; border: 0; background: none; color: #6c607d;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-clock { font-size: .62rem; color: #6c607d; white-space: normal; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-action,
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-rating-action,
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-action {
  width: fit-content; max-width: 100%; padding: 5px 9px;
  border: 1px solid #a27cae; border-radius: 2px;
  background: linear-gradient(#fff0fb, #f2cce7);
  box-shadow: inset 1px 1px 0 white, 1px 2px 0 #bca4cc;
  color: #583d70; font: 400 .67rem/1.15 "Easy Pixel", monospace;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-card:hover {
  transform: translateY(-1px); box-shadow: inset 0 1px 0 white, 1px 3px 0 #b9a4ce;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-rating-window .home-auction-intro { display: none; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-auction-card.home-rating-card {
  flex: none; grid-template-columns: 48px minmax(0, 1fr);
  padding: 0; border: 0; background: none; box-shadow: none; gap: 12px;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-rating-card .home-auction-preview { width: 48px; height: 64px; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-rating-card .home-auction-preview img { width: 40px; height: 56px; max-height: 56px; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-rating-action {
  align-self: flex-end; margin: 0 10px 10px;
  background: linear-gradient(#f4edff, #dac9f4);
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-card {
  grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: auto auto;
  align-items: center; gap: 6px 10px; justify-items: stretch;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-preview {
  grid-column: 1; grid-row: 1 / 3; width: 60px; min-height: 0; height: 76px;
  padding: 4px; border: 1px solid #8fbeb9; border-radius: 3px;
  background: linear-gradient(135deg, #defff1, #d5edf5);
  box-shadow: inset 1px 1px 0 white;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-card .home-spotlight-preview img {
  width: 50px; height: 66px; max-height: 66px; border: 0; border-radius: 0;
  padding: 0; background: none; object-fit: contain; box-shadow: none;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-preview::before,
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-preview::after,
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-sticker { display: none; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-copy {
  grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); gap: 4px;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-details { gap: 3px; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-details > strong { font: 700 .95rem/1.15 "Barlow Semi Condensed", Arial, sans-serif; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-shop { font-size: .68rem; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-price {
  display: flex; gap: 5px; align-items: baseline; padding: 0; transform: none;
  border: 0; background: none; box-shadow: none;
}
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-price b { font-size: .78rem; }
body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-spotlight-action {
  grid-column: 2; grid-row: 2; justify-self: end;
  background: linear-gradient(#effff7, #c5e9dc); border-color: #7fa99e;
}
@container home-column (max-width: 560px) {
  body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-commerce-row { grid-template-columns: minmax(0, 1fr); }
  body.site-compact:where(:not(.is-palais-game-view):not(.is-spilled-game-view)) .home-welcome .home-commerce-row :is(.home-auction-window, .home-rating-window, .home-spotlight-window) { grid-column: 1; grid-row: auto; }
}

/* Buzz uses its approved unscaled stream layout. */
body.site-compact.buzz-stream-layout > main.buzz-shell { zoom: 1; max-width: 1100px !important; }
