/* Atmosphere and interaction layer on top of the lobby layout. */

body {
  background: var(--color-bg);
}

/* Carousel: neighbours peek in and the active slide steps forward */

.carousel {
  margin: 12px 0 0;
}

.slides {
  gap: 10px;
  padding-inline: var(--gutter);
  border: 0;
  box-shadow: none;
  scroll-padding-inline: var(--gutter);
}

.slide {
  flex: 0 0 calc(100% - 2 * var(--gutter) - 14px);
  height: 264px;
  border: 1px solid rgba(255, 113, 10, 0.45);
  border-radius: 20px;
  transition: transform 0.3s ease-out, opacity 0.3s ease, box-shadow 0.3s ease;
}

.slide:not(.is-active) {
  opacity: 0.6;
  transform: scale(0.94);
}

.slide.is-active {
  box-shadow: 0 16px 34px -14px rgba(255, 89, 0, 0.6);
}

/* Grid: large cards, each with its own way out */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tile {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-card);
}

.tile__card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
}

.tile__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.tile__card::after {
  content: "";
  position: absolute;
  inset: 58% 0 0;
  background: linear-gradient(transparent, rgba(9, 11, 18, 0.85));
}

.tile__card b {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  left: 12px;
  font-size: 16px;
  font-weight: 600;
}

.tile__visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  margin: 8px;
  border-radius: 13px;
  background-image: var(--grad);
  color: var(--color-on-accent);
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 140ms ease-out;
}

.tile__visit:active {
  transform: scale(0.97);
}

.tile__visit svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Dock button opens a fan of actions */

.dock .dock__main {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.dock__main svg {
  grid-area: 1 / 1;
  transition: transform 0.2s ease-out, opacity 0.15s ease;
}

.dock__main .ico-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.dock__main[aria-expanded="true"] .ico-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.dock__main[aria-expanded="true"] .ico-close {
  opacity: 1;
  transform: none;
}

.scrim {
  position: fixed;
  z-index: 17;
  inset: 0;
  background: rgba(5, 6, 10, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.scrim.is-on {
  opacity: 1;
  pointer-events: auto;
}

.fan {
  position: fixed;
  z-index: 19;
  bottom: calc(var(--dock-h) + var(--safe-bottom) + 6px);
  left: 50%;
}

.fan a {
  position: absolute;
  bottom: 0;
  left: -30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 113, 10, 0.55);
  border-radius: 50%;
  background: var(--color-bar);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  color: var(--color-accent-light);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.3);
  transition: transform 0.22s ease-out, opacity 0.16s ease;
  transition-delay: calc(var(--i) * 20ms);
}

.fan.is-on a {
  opacity: 1;
  pointer-events: auto;
  transform: translate(var(--x), var(--y));
}

.fan a:active {
  background: var(--color-chip);
}

.fan svg {
  width: 21px;
  height: 21px;
}

@media (prefers-reduced-motion: reduce) {
  .slide:not(.is-active) {
    opacity: 1;
    transform: none;
  }
}
