/* VA Games side panel. Added by the Games Side Panel add-on. */
.site-shell {
  gap: clamp(16px, 2vw, 30px);
}

.games-panel {
  width: min(430px, 100%);
  height: min(720px, calc(100vh - 40px));
  padding: 23px 22px 20px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(11px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.games-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.games-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
}

.games-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #17212e;
  box-shadow: 0 8px 16px rgba(23, 33, 46, 0.16);
  color: #fff;
  font-size: 1.2rem;
}

.games-grid {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 24px 0 16px;
}

.game-card {
  display: block;
  border-radius: 20px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
}

.game-card:focus-visible,
.games-primary-button:focus-visible {
  outline: 3px solid rgba(91, 130, 163, 0.58);
  outline-offset: 3px;
}

.featured-game {
  padding: 20px;
  color: #fff;
  background: linear-gradient(145deg, #17212e 0%, #2d4b68 100%);
  box-shadow: 0 12px 25px rgba(19, 29, 40, 0.22);
}

.featured-game:hover {
  box-shadow: 0 16px 30px rgba(19, 29, 40, 0.28);
}

.game-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.game-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.game-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.featured-game strong,
.catalog-game strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1.2;
}

.featured-game span:not(.game-arrow),
.catalog-game span {
  display: block;
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.featured-game span:not(.game-arrow) {
  color: rgba(255, 255, 255, 0.8);
}

.catalog-game {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(37, 42, 48, 0.1);
  box-shadow: 0 7px 16px rgba(30, 35, 41, 0.08);
}

.catalog-game:hover {
  border-color: rgba(69, 105, 133, 0.38);
  box-shadow: 0 10px 20px rgba(30, 35, 41, 0.11);
}

.catalog-game-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(69, 105, 133, 0.12);
  color: #2d4b68;
  font-size: 1.15rem;
}

.catalog-game span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.games-panel-note {
  margin: 2px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.games-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 17px;
  background: #171c25;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(23, 28, 37, 0.16);
  transition: transform .15s ease, background .15s ease;
}

.games-primary-button:hover {
  background: #2b4b68;
  transform: translateY(-1px);
}

@media (max-width: 1080px) and (min-width: 841px) {
  .site-shell {
    padding-left: 20px;
    padding-right: 20px;
    gap: 14px;
  }

  .games-panel,
  .chat-panel {
    width: min(430px, calc(50vw - 27px));
  }

  .games-panel {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 840px) {
  .site-shell {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px;
  }

  .games-panel,
  .chat-panel {
    width: min(430px, 100%);
  }

  .games-panel {
    height: auto;
    min-height: 515px;
    border-radius: 26px;
  }
}
