.mobile-shell.is-select-game .cg-clone.cg-spaced {
  grid-template-rows: 64px minmax(0, 1fr) 46px 58px;
  gap: 7px;
  padding: 5px 7px max(4px, env(safe-area-inset-bottom));
  background-color: #f2ead3 !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(245,239,214,.7)),
    url("cg/lobby-spaced-8bbf8dccd572.webp") !important;
  background-position: center, center !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat !important;
  box-shadow: inset 0 0 24px rgba(255,255,255,.85);
}

.cg-spaced .cg-compact-header {
  position: relative;
  isolation: isolate;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-width: 0;
  padding: 4px 4px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px 18px 12px 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -40%, #fff0a3 0 12%, transparent 38%),
    linear-gradient(120deg, #d99b19 0 4%, #087e70 12% 88%, #d99b19 96% 100%) !important;
  box-shadow: 0 3px 7px rgba(44,37,4,.38), inset 0 1px rgba(255,255,255,.7);
}

.cg-spaced .cg-compact-header::before {
  content: '♠  ♦        ♣  ♥';
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: rgba(255,224,103,.72);
  font: 900 18px/1 Georgia, serif;
  letter-spacing: 4px;
  text-shadow: 0 1px 1px #4f3100;
}

.cg-spaced .cg-compact-header::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,68,55,.2), transparent 28%, transparent 72%, rgba(0,68,55,.2));
  pointer-events: none;
}

.cg-spaced .cg-compact-header > div {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 3px 8px 2px;
  border: 2px solid #ffd85b;
  border-radius: 50% / 42%;
  background: linear-gradient(180deg, rgba(7,105,71,.97), rgba(0,66,48,.98));
  box-shadow: 0 1px 0 #fff2a2 inset, 0 2px 5px rgba(55,31,0,.55);
}

.cg-spaced .cg-compact-header > span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffe57a;
  font-size: 22px;
  text-shadow: 0 2px 2px #684200;
}

.cg-spaced .cg-compact-header > span::before { content: '♛'; }

.cg-spaced .cg-compact-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 20px;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  overflow-wrap: normal;
  color: #fff4b5;
  font: 900 clamp(12px, 4cqw, 18px)/20px Arial, sans-serif;
  letter-spacing: -.025em;
  text-shadow: 0 2px 1px #4e2600, 0 0 3px #a75d00;
}

.cg-spaced .cg-compact-header p {
  margin: 2px 0 0;
  color: #fff;
  font: 700 9px/1.05 Arial, sans-serif;
  text-shadow: 0 1px 2px #00382f;
}

.cg-spaced .cg-compact-back {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 2px solid #d6fff5;
  background: radial-gradient(circle at 35% 28%, #22c5bb, #00695f 62%, #003f39);
  box-shadow: 0 2px 5px #002f2b99, inset 0 1px 2px #fff;
}

.cg-spaced .cg-separated-games {
  gap: 7px;
}

.cg-spaced .cg-sprite-card {
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 2px 5px rgba(50,30,0,.42), 0 0 0 1px rgba(0,124,107,.16);
}

.cg-spaced .cg-compact-sangam {
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 2px 6px rgba(84,44,0,.5);
}

.mobile-shell.is-select-game .cg-spaced .cg-lobby-footer {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 2px 8px rgba(0,65,57,.3);
}

@media (max-height: 680px) {
  .mobile-shell.is-select-game .cg-clone.cg-spaced {
    grid-template-rows: 54px minmax(0, 1fr) 41px 50px;
    gap: 6px;
    padding-top: 4px;
  }
  .cg-spaced .cg-compact-header { border-radius: 15px 15px 10px 10px; padding-block: 2px; }
  .cg-spaced .cg-compact-header > div { padding-block: 2px 1px; }
  .cg-spaced .cg-compact-header h1 { font-size: clamp(12px, 4cqw, 18px); }
  .cg-spaced .cg-compact-header p { font-size: 8px; }
  .cg-spaced .cg-compact-back { width: 32px; height: 32px; }
  .cg-spaced .cg-separated-games { gap: 6px; }
}
