.games-grid, .discover-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.65rem, 1.5vw, 1.2rem);
}
.game-card {
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  border-radius: var(--radius);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.game-card:hover { border-color: var(--accent); }
.game-card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; }
.tile-card, .discover-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
}
.game-cover { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--raised); }
.tile-card .game-cover, .discover-card .game-cover { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.card-copy { display: flex; justify-content: space-between; align-items: center; gap: .35rem; min-width: 0; padding: .55rem .65rem; }
.card-name { font-size: .96rem; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.card-arrow { color: var(--accent); font-size: .95rem; }
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.page-heading p, .page-status, .game-help { color: var(--muted); }
.back-link { margin-bottom: 1.1rem; font-weight: 650; }
.profile-cover {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--raised);
  border-radius: var(--radius);
}
.profile-copy { max-width: 66ch; }
.profile-copy h1 { font-size: clamp(1.8rem, 4vw, 3.25rem); }
.recommendations { margin-top: clamp(1.9rem, 5vw, 3.4rem); }
.recommendations h2 { margin-bottom: 1rem; }
.play-main h1 { margin-bottom: 1.25rem; }
.game-frame { max-width: 1050px; margin-inline: auto; border-radius: var(--radius); background: #0c0b15; overflow: hidden; }
.game-frame iframe { display: block; border: 0; width: 100%; min-height: 390px; height: min(74svh, 770px) !important; }
.game-help { margin-top: 1rem; }
@media (max-width: 950px) {
  .games-grid, .discover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .games-grid, .discover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-cover { max-width: 148px; }
}
@media (max-width: 410px) {
  .games-grid, .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .game-card { transition: none; }
}

.channel-list { display: grid; align-items: start; gap: 1rem; }
.channel-list .page-heading { margin-bottom: 0; }
.channel-list .category-results { min-width: 0; }
.game-profile { padding: 0; display: block; border: 0; background: transparent; }
.profile-summary {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(100px, 220px) minmax(0, 1fr);
  gap: clamp(.9rem, 4vw, 2.65rem);
  padding: clamp(.85rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.profile-summary .primary-button { margin-top: .9rem; }
.profile-notes { margin-top: 1.3rem; padding: clamp(.8rem, 3vw, 1.4rem); }
.profile-notes p { max-width: 71ch; margin-top: .55rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .profile-summary { grid-template-columns: minmax(78px, .55fr) minmax(0, 1fr); }
  .profile-summary .profile-cover { width: min(148px, 100%); }
}
@media (max-width: 360px) {
  .profile-summary { grid-template-columns: minmax(70px, .5fr) minmax(0, 1fr); }
  .profile-summary .primary-button { padding-inline: .7rem; }
}

.channel-list .page-heading { flex-direction: column; align-items: start; padding: 1.1rem 1.4rem; background: var(--raised); border-radius: 2rem .6rem 2rem .6rem; }
.category-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-results .compact-card { min-height: 68px; grid-template-columns: 58px minmax(0, 1fr); }
.game-profile .profile-summary { background: #eae2f6; }
.game-profile .profile-notes { background: #fff7f1; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 750px) { .category-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 425px) { .category-results { grid-template-columns: minmax(0, 1fr); } }
