.constellation { grid-template-rows: auto minmax(0, 1fr); align-content: initial; gap: clamp(20px, 5vh, 64px); padding-block: clamp(12px, 3vh, 40px); }
.constellation > h1 { text-align: center; }
.world-grid { list-style: none; padding: 0; margin: 0; min-height: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; gap: clamp(14px, 2.5vw, 40px); }
.world-grid li { min-width: 0; }
.world-tile { display: grid; justify-items: center; gap: 24px; color: #c8d0dc; text-decoration: none; text-align: center; font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.world-window { display: block; width: 100%; max-width: 170px; aspect-ratio: .61; position: relative; border-radius: 50%; background: #03070a; box-shadow: 0 0 2px 1px var(--world-tint,#75c7ff), 0 0 17px -4px var(--world-tint,#75c7ff), inset 0 0 8px #a5d7ff; transform: perspective(800px) rotateY(-12deg) rotateZ(-3deg); transition: transform .45s, box-shadow .45s; }
.world-window img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: brightness(.7) saturate(.8); transition: filter .35s; }
.world-tile:hover .world-window, .world-tile:focus-visible .world-window { transform: perspective(800px) rotateY(0) translateY(-5px); box-shadow: 0 0 3px 1px var(--world-tint,#75c7ff), 0 0 28px -3px var(--world-tint,#75c7ff); }
.world-tile:hover img, .world-tile:focus-visible img { filter: brightness(1) saturate(1); }
.world-tile small { display: block; margin-top: 6px; font-size: .625rem; color: #85909d; }
.world-grid li:nth-child(even) .world-window { transform: perspective(800px) rotateY(12deg) rotateZ(3deg); }
.community-worlds .world-tile { font-size: .875rem; }
@media (max-width: 950px) {
  .world-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 24px 30px; }
  .world-tile { gap: 14px; }
  .world-window { width: min(100%, 100px); max-height: 23dvh; }
  .constellation { gap: 26px; padding-block: 12px; }
}
@media (max-width: 480px) {
  .world-grid { gap: 24px 18px; }
  .world-window { max-width: 78px; max-height: 20dvh; }
  .world-tile { font-size: .6875rem; gap: 14px; }
  .community-worlds .world-tile { font-size: .75rem; }
  .world-tile small { font-size: .5625rem; }
}
@media (max-height: 620px) {
  .constellation { gap: 14px; padding-block: 4px; }
  .world-grid { gap: 12px 16px; }
  .world-window { max-height: 17dvh; width: auto; height: 17dvh; }
  .world-tile { gap: 9px; }
}
@media (min-width: 640px) and (max-height: 620px) {
  .world-grid { grid-template-columns: repeat(6,minmax(0,1fr)); grid-template-rows: auto; }
  .world-window { max-height: 33dvh; height: 33dvh; }
}
/* Enlarged text gets the space normally occupied by decorative thumbnails. */
.quiet-large-type .world-window { height: 7dvh; width: auto; max-height: 60px; }
.quiet-large-type .world-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(3,minmax(0,1fr)); gap: 10px 20px; }
.quiet-large-type .world-tile { gap: 10px; }
