.games-page-main {
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
  padding: 84px 24px 90px;
}

.games-container,
.room-view {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.games-header {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 32px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.games-header h1 {
  position: static;
  display: block;
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  text-align: left;
}

.games-header p,
.games-status,
.room-status,
.room-meta,
.room-information p {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 800;
}

.games-header p {
  position: static;
  display: block;
  margin: 0;
  line-height: 1.5;
  text-align: left;
}

.games-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.games-search {
  width: 100%;
  max-width: 380px;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-surface);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 14px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.games-search::placeholder {
  color: var(--text-muted);
}

.games-search:focus {
  outline: none;
  background: var(--bg-raised);
}

.games-status {
  display: none;
}

.games-status.error,
.room-status.error {
  color: var(--danger);
}

.retry-button {
  margin-top: 16px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--rr-blue);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.retry-button:hover {
  background: var(--rr-blue-hover);
}

.games-grid {
  position: static;
  clear: both;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 0;
  background: var(--bg-surface);
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.game-card:hover,
.game-card:focus {
  outline: none;
  background: var(--bg-raised);
  transform: translateY(-4px);
}

.game-card-media {
  position: relative;
  width: 100%;
  height: 170px;
  background: var(--bg-raised);
}

.game-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-icon {
  position: absolute;
  right: 14px;
  bottom: -28px;
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 3px solid var(--bg-surface);
  border-radius: var(--radius);
  background: var(--bg-surface);
  object-fit: cover;
}

.game-card-content {
  display: flex;
  min-height: 130px;
  padding: 34px 20px 20px;
  flex-direction: column;
}

.game-card h2 {
  margin: 0 0 18px;
  font-size: 23px;
  line-height: 1.2;
}

.game-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.game-tag {
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: rgba(157, 185, 255, 0.16);
  color: var(--rr-blue-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
}

.room-view {
  width: 100%;
  padding-bottom: 30px;
}

.back-to-rooms {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--rr-blue-text);
  font-family: var(--font-body);
  font-weight: 800;
  text-decoration: none;
}

.back-to-rooms:hover {
  color: var(--text-light);
}

.room-content {
  width: 100%;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.room-hero {
  position: relative;
  width: 100%;
  height: min(48vw, 560px);
  min-height: 300px;
  background: var(--bg-raised);
}

.room-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-icon {
  position: absolute;
  bottom: -65px;
  left: 60px;
  width: 140px;
  height: 140px;
  padding: 5px;
  border: 5px solid var(--bg-dark);
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  object-fit: cover;
}

.room-information {
  width: 100%;
  padding: 105px 60px 70px;
  background: var(--bg-surface);
}

.room-information h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}

.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 15px;
}

.room-divider {
  height: 1px;
  margin: 35px 0;
  background: var(--border-color);
}

.room-information h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.room-information p {
  width: 100%;
  max-width: 1100px;
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .games-page-main {
    width: 100%;
    padding: 40px 16px 90px;
  }

  .games-header {
    margin-bottom: 24px;
  }

  .games-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .games-search {
    max-width: none;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .room-hero {
    height: 300px;
  }

  .room-icon {
    bottom: -45px;
    left: 24px;
    width: 95px;
    height: 95px;
    border-width: 4px;
    border-radius: var(--radius);
  }

  .room-information {
    padding: 70px 24px 40px;
  }

  .room-information h1 {
    font-size: 40px;
  }

  .room-information h2 {
    font-size: 20px;
  }
}
