/* Gaming launcher: shared library and site-wide community. */
:root {
  --g-bg: #151515;
  --g-header: #111111;
  --g-panel: #222220;
  --g-raised: #292927;
  --g-line: #363633;
  --g-line-strong: #55534e;
  --g-muted: #d3cec6;
  --g-subtle: #a8a39c;
}

body.gaming-shell {
  font-size: 16px;
}

.library-topbar {
  height: 82px;
  padding-inline: clamp(22px, 3vw, 52px);
  gap: clamp(24px, 4vw, 70px);
  background: #101010;
}

.gaming-brand {
  min-width: 0;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
}

.gaming-brand-mark {
  display: block;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  object-fit: contain;
  mix-blend-mode: screen;
}

.gaming-brand span {
  color: #f6f3ef;
}

.global-nav {
  gap: 32px;
}

.global-nav a {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
}

.global-nav a.selected::after {
  height: 4px;
}

.library-frame {
  grid-template-columns: clamp(230px, 19vw, 294px) minmax(0, 1fr);
}

.library-sidebar {
  padding: 29px 19px 24px;
  gap: 12px;
  background: #191918;
}

.sidebar-search {
  height: 52px;
  margin-bottom: 12px;
  border-radius: 7px;
}

.sidebar-search input {
  font-size: 15px;
}

.sidebar-section-heading,
.sidebar-subhead {
  font-size: 13px;
  letter-spacing: .04em;
}

.sidebar-filter {
  min-height: 45px;
  font-size: 15px;
}

.library-game-row {
  min-height: 63px;
  font-size: 15px;
  border-radius: 7px;
}

.library-game-row img {
  width: 44px;
  height: 44px;
  border-radius: 5px;
}

.library-game-row>svg {
  opacity: 1;
}

.sidebar-bottom a {
  font-size: 15px;
}

.library-main {
  padding: 0 clamp(22px, 3.4vw, 64px) 48px;
  background: #171716;
}

.launcher-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 24px;
}

.launcher-heading .eyebrow {
  margin: 0 0 4px;
}

.launcher-heading h1 {
  margin: 0;
  font-size: clamp(34px, 3.3vw, 52px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.launcher-heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--g-muted);
  font-size: 17px;
}

.launcher-heading>span {
  color: var(--g-subtle);
  white-space: nowrap;
  font-size: 14px;
}

.launcher-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 470px;
  height: 50px;
  margin-bottom: 20px;
  padding: 0 15px;
  border: 1px solid #5b5750;
  border-radius: 7px;
  background: #222220;
  color: var(--g-muted);
}

.launcher-search:focus-within {
  border-color: #ff6b2c;
}

.launcher-search svg {
  width: 20px;
  height: 20px;
}

.launcher-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-size: 16px;
}

.launcher-search-empty {
  padding: 15px 0;
  color: var(--g-muted);
}

.launcher-empty {
  padding: 70px 0;
}

.launcher-empty h1 {
  font-size: clamp(30px, 4vw, 50px);
}

.launcher-empty p {
  color: var(--g-muted);
}

.launcher-empty a {
  color: #ff9a69;
}

.launcher-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.launcher-game-card {
  display: flex;
  align-items: center;
  min-height: 96px;
  gap: 14px;
  padding: 13px;
  border: 1px solid #45433f;
  border-radius: 10px;
  background: #222220;
  transition: background .18s, border-color .18s, transform .18s;
}

.launcher-game-card:hover {
  background: #2c2a27;
  border-color: #9a5c3d;
  transform: translateY(-2px);
}

.launcher-game-card.is-current {
  border-color: #ff6b2c;
  background: #30241e;
}

.launcher-game-card img {
  display: block;
  width: 65px;
  height: 65px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
  background: #101010;
}

.launcher-game-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.launcher-game-card strong {
  font-size: 17px;
  line-height: 1.2;
}

.launcher-game-card small {
  color: var(--g-muted);
  font-size: 13px;
}

.launcher-game-card svg {
  width: 18px;
  height: 18px;
  align-self: flex-start;
  color: #ff8d5c;
}

.selected-game {
  min-height: 310px;
  gap: 30px;
  margin-bottom: 0;
  padding: clamp(24px, 3.4vw, 50px);
  border-radius: 11px 11px 0 0;
}

.selected-game::after {
  background: linear-gradient(90deg, rgba(14, 14, 14, .55), rgba(14, 14, 14, .8) 48%, rgba(14, 14, 14, .93));
}

.selected-game-cover {
  width: clamp(150px, 17vw, 230px);
  height: clamp(150px, 17vw, 230px);
  border-radius: 10px;
  background: #111;
}

.selected-game-copy h1 {
  font-size: clamp(36px, 4.2vw, 62px);
}

.launcher-game-description {
  max-width: 58ch;
  margin: 0 0 15px;
  color: #e8e3dc;
  font-size: 17px;
  line-height: 1.5;
}

.game-stat-row {
  font-size: 14px;
}

.selected-game-actions {
  margin-top: 24px;
}

.play-button {
  min-height: 52px;
  padding-inline: 22px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 6px;
}

.game-tabs {
  height: auto;
  min-height: 62px;
  gap: 30px;
  margin: 0 0 22px;
  padding: 0 22px;
  border: 1px solid var(--g-line);
  border-top: 0;
  background: #20201e;
}

.game-tabs a {
  font-size: 15px;
}

.game-tab-panel {
  padding-top: 0;
}

.game-tab-panel.simple-panel {
  padding: clamp(24px, 3vw, 36px);
}

.simple-panel .game-news-list {
  max-width: 100%;
}

.simple-panel .game-news-item {
  background: var(--g-raised);
  border-color: var(--g-line);
  border-radius: 7px;
}

.overview-grid {
  gap: 20px;
}

.feature-panel {
  min-height: 360px;
  border-radius: 9px;
}

.feature-overlay h2 {
  font-size: clamp(31px, 3vw, 45px);
}

.feature-overlay p {
  font-size: 16px;
}

.activity-panel,
.rail-panel,
.community-card {
  border-radius: 9px;
}

.activity-panel h2,
.rail-panel h2 {
  font-size: 20px;
}

.activity-panel p,
.rail-panel p,
.community-card p {
  font-size: 15px;
}

@media (max-width: 620px) {
  .game-tab-panel.simple-panel {
    padding: 22px 18px;
  }

  .simple-panel dl {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .activity-panel .panel-heading {
    flex-wrap: wrap;
  }

  .activity-panel > p,
  .rail-panel > p {
    font-size: 14px;
  }
}

.library-footer {
  font-size: 13px;
}

.launcher-ad-placement {
  display: grid;
  gap: 9px;
  width: min(100%, 500px);
  max-width: 500px;
  min-width: 0;
  margin: 32px 0 36px;
}

.launcher-catalog .launcher-ad-placement {
  grid-column: span 2;
  align-self: start;
  justify-self: start;
  margin: 0;
}

.launcher-ad-label {
  color: var(--g-subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.gaming-ad.launcher-ad {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--g-line);
  border-radius: 9px;
  background: #111;
}

.launcher-ad > a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.gaming-ad.launcher-ad img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.launcher-ad .gaming-ad-pagination {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 20px;
  background: #111c;
  transform: translateX(-50%);
  pointer-events: none;
}

.launcher-ad .gaming-ad-pagination span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4b8af;
}

.launcher-ad .gaming-ad-pagination span.is-active {
  width: 20px;
  border-radius: 5px;
  background: var(--g-orange);
}

@media (max-width: 980px) {
  .launcher-catalog .launcher-ad-placement {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

.community-page {
  padding: 34px 0 70px;
}

.community-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--g-line);
}

.community-page-head h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  letter-spacing: -.055em;
  line-height: 1.08;
}

.community-page-head p:last-child {
  margin: 10px 0 0;
  color: var(--g-muted);
  font-size: 17px;
}

.community-back,
.community-thread-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff9a69;
  font-weight: 700;
  white-space: nowrap;
}

.community-back svg,
.community-thread-back svg {
  width: 18px;
  height: 18px;
}

.community-compose,
.community-signin {
  display: grid;
  gap: 11px;
  max-width: 820px;
  margin: 28px 0 34px;
  padding: 24px;
  border: 1px solid var(--g-line);
  border-radius: 10px;
  background: #222220;
}

.community-compose h2 {
  margin: 0 0 7px;
  font-size: 24px;
}

.community-compose label,
.community-thread form label {
  font-size: 14px;
  font-weight: 700;
}

.community-compose input,
.community-compose textarea,
.community-thread textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #5d5951;
  border-radius: 6px;
  outline: 0;
  background: #151515;
  color: #f6f3ef;
  font-size: 15px;
  resize: vertical;
}

.community-compose input:focus,
.community-compose textarea:focus,
.community-thread textarea:focus {
  border-color: #ff6b2c;
}

.community-compose-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: var(--g-subtle);
  font-size: 13px;
}

.community-compose [role=status],
.community-thread [role=status] {
  min-height: 5px;
  margin: 0;
  color: #ffc09d;
}

.community-signin {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.community-signin p {
  margin: 0;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: 24px;
  align-items: start;
}

.community-layout:has(.community-thread[hidden]) {
  grid-template-columns: 1fr;
}

.community-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 9px;
}

.community-list-head h2 {
  margin: 0;
  font-size: 25px;
}

.community-list-head button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 0;
  background: none;
  color: #ff9a69;
  cursor: pointer;
}

.community-list-head svg {
  width: 17px;
  height: 17px;
}

.community-post-list {
  display: grid;
  gap: 10px;
}

.community-post,
.community-thread {
  padding: 19px 22px;
  border: 1px solid var(--g-line);
  border-radius: 8px;
  background: #222220;
}

.community-post-title {
  display: block;
  width: 100%;
  margin: 12px 0 5px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
  font-size: 21px;
  font-weight: 750;
  cursor: pointer;
}

.community-post-title:hover {
  color: #ff9a69;
}

.community-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--g-muted);
  font-size: 13px;
}

.community-author strong {
  color: #f6f3ef;
}

.community-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #513020;
  color: #ffc19f;
  font-weight: 800;
}

.community-post-preview {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--g-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.community-reply-count {
  color: #ff9a69;
  font-size: 13px;
}

.community-thread {
  position: sticky;
  top: 15px;
  max-height: calc(100dvh - 125px);
  overflow: auto;
}

.community-thread-post {
  padding: 18px 0;
  border-bottom: 1px solid var(--g-line);
}

.community-thread-post h2 {
  margin: 12px 0;
  font-size: 26px;
}

.community-thread-post p,
.community-reply p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.community-replies-title {
  font-size: 17px;
}

.community-reply {
  padding: 14px 0;
  border-bottom: 1px solid var(--g-line);
}

.community-thread form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.community-thread form button {
  justify-self: start;
}

.community-thread-back,
.community-delete {
  border: 0;
  background: none;
  cursor: pointer;
}

.community-delete {
  padding: 4px 0;
  color: #ff9a69;
}

.community-empty,
.community-loading,
.community-error {
  padding: 20px;
  color: var(--g-muted);
}

.community-error {
  color: #ffb19c;
}

@media(max-width:1100px) {
  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-thread {
    position: static;
    max-height: none;
  }
}

@media(max-width:820px) {
  .library-frame {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .library-main {
    padding-inline: 20px;
  }

  .gaming-brand {
    font-size: 19px;
  }

  .gaming-brand-mark {
    width: 51px;
    height: 51px;
  }

  .selected-game {
    min-height: 265px;
  }
}

@media(max-width:620px) {
  .library-topbar {
    height: 66px;
    padding-inline: 12px;
    gap: 11px;
  }

  .gaming-brand {
    flex: 1;
    font-size: 17px;
  }

  .gaming-brand-mark {
    width: 48px;
    height: 48px;
  }

  .global-nav {
    display: none;
  }

  .library-frame {
    height: calc(100dvh - 66px);
  }

  .library-main {
    padding-inline: 14px;
  }

  .launcher-heading {
    padding: 24px 0 19px;
  }

  .launcher-heading h1 {
    font-size: 38px;
  }

  .launcher-heading p:not(.eyebrow) {
    font-size: 15px;
  }

  .launcher-catalog {
    grid-template-columns: 1fr;
  }

  .selected-game {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 18px;
  }

  .selected-game-cover {
    width: 105px;
    height: 105px;
  }

  .selected-game-copy h1 {
    font-size: 30px;
  }

  .launcher-game-description {
    grid-column: 1/-1;
    font-size: 14px;
  }

  .game-stat-row {
    font-size: 12px;
  }

  .selected-game-actions {
    margin-top: 13px;
  }

  .game-tabs {
    gap: 20px;
    overflow-x: auto;
    padding-inline: 14px;
  }

  .game-tabs a {
    font-size: 14px;
    white-space: nowrap;
  }

  .community-page {
    padding-top: 23px;
  }

  .community-page-head {
    align-items: start;
  }

  .community-page-head h1 {
    font-size: 40px;
  }

  .community-page-head p:last-child {
    font-size: 15px;
  }

  .community-back {
    font-size: 0;
  }

  .community-compose,
  .community-signin {
    padding: 17px;
  }

  .community-compose-foot,
  .community-signin {
    align-items: start;
    flex-direction: column;
  }
}

/* Library cover wall. Art, ambient color and details belong to each game card. */
.launcher-catalog {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.launcher-game-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 355px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #4b4843;
  border-radius: 11px;
  background: #20201e;
  transform: none;
}

.launcher-game-card:hover {
  transform: translateY(-4px);
  border-color: #ff8a50;
  background: #20201e;
}
.launcher-game-card:focus-visible,
.community-filters button:focus-visible,
.community-compose-scope button:focus-visible {
  outline: 3px solid #ff9a69;
  outline-offset: 3px;
}

.launcher-game-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, .03) 5%, rgba(12, 12, 12, .35) 45%, #171716 78%);
  pointer-events: none;
}

.launcher-game-card>.launcher-game-ambience {
  position: absolute;
  z-index: 0;
  inset: -35px;
  width: calc(100% + 70px);
  height: calc(100% + 70px);
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  filter: blur(100px) saturate(1.4);
  opacity: .9;
}

.launcher-game-card .launcher-game-art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: none;
  width: 100%;
  height: 240px;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
}

.launcher-game-art img {
  width: 100%;
  height: 60%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 7px;
  background: transparent;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .42));
}

.launcher-game-card .launcher-game-card-info {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 1;
  align-content: end;
  gap: 5px;
  width: 100%;
  min-height: 115px;
  padding: 12px 18px 18px;
}

.launcher-game-card-info strong {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.launcher-game-card-info small {
  color: #d8d3cc;
  font-size: 14px;
}

.launcher-game-card .launcher-card-meta {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: #ffa071;
  font-size: 13px;
  font-weight: 700;
}

.launcher-card-meta svg {
  width: 18px;
  height: 18px;
}

.launcher-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 16px;
  color: var(--g-muted);
  font-size: 14px;
}

.launcher-detail-top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffa071;
  font-weight: 700;
}

.launcher-detail-top svg {
  width: 18px;
  height: 18px;
}

.selected-game .game-backdrop {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(160px) saturate(61.4);
  transform: scale(1.12);
}

.community-filters,
.community-compose-scope>div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-filters {
  margin: 24px 0 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--g-line);
}

.community-filters button,
.community-compose-scope button {
  min-height: 39px;
  padding: 7px 14px;
  border: 1px solid #5b5750;
  border-radius: 6px;
  background: #222220;
  color: #e8e3dc;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.community-filters button:hover,
.community-compose-scope button:hover {
  border-color: #ff8d5c;
}

.community-filters button.is-active,
.community-compose-scope button.is-active {
  border-color: #ff6b2c;
  background: #573323;
  color: #fff;
}

.community-compose-scope {
  display: grid;
  gap: 9px;
  margin-bottom: 8px;
}

.community-compose-scope>span {
  font-size: 14px;
  font-weight: 700;
}

.community-scope-tag {
  display: inline-block;
  margin: 11px 0 0;
  padding: 4px 8px;
  border-radius: 4px;
  background: #3a2a21;
  color: #ffb28a;
  font-size: 12px;
  font-weight: 700;
}

@media(max-width:620px) {
  .launcher-catalog {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 15px;
  }

  .launcher-game-card {
    min-height: 310px;
  }

  .launcher-game-card .launcher-game-art {
    height: 202px;
  }

  .launcher-game-card .launcher-game-card-info {
    min-height: 108px;
  }

  .community-filters,
  .community-compose-scope>div {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .community-filters button,
  .community-compose-scope button {
    flex: none;
  }
}
