/* Generated from Designs/design-assets (selected A2 direction) with mockup-only rules removed. */

.shell {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}

.side-bottom {
  font-size: var(--fs-sm);
  color: #606b56;
  line-height: 1.8;
  margin-top: auto;
  padding-top: 35px;
}

.workspace {
  min-width: 0;
  padding: 0 36px;
}

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar .search {
  background: #232721;
  border: 1px solid #34382f;
  border-radius: 11px;
  padding: 11px 14px;
  min-height: 44px;
  width: 350px;
  color: #939b89;
}

.header-right {
  font-size: var(--fs-sm);
  color: var(--muted);
  gap: 19px;
}

.mobile-brand {
  display: none;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.chips .chip {
  color: #929b8c;
  padding: 8px 14px;
}

.chips .chip.active {
  color: #202c14;
  background: var(--accent);
}

.chips .chip:hover:not(.active) {
  color: #edf5e6;
  background: #2c3327;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 17px;
}

.game-card .game-title {
  font-size: var(--fs-base);
}

.game-card .game-meta {
  font-size: var(--fs-sm);
  color: #8b9580;
}

.game-card .badge {
  font-size: var(--fs-xs);
  background: #ecf4dc;
}

.game-card .art {
  aspect-ratio: 1.36;
}

.page-footer {
  font-size: var(--fs-sm);
}

.page-footer strong {
  font-weight: 800;
  color: #adb6a4;
}

@media (min-width: 1440px) {
  .workspace {
      padding: 0 44px;
    }

  .game-grid {
      gap: 28px 20px;
    }
}

@media (max-width: 1100px) {
  .shell {
      grid-template-columns: 196px minmax(0, 1fr);
    }

  .workspace {
      padding: 0 25px;
    }

  .game-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Phones stack the shell: topbar, the site menu as a strip, then the page. The page padding
   moves to the shell so the menu can span the full width. */
@media (max-width: 760px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .workspace {
    display: contents;
  }

  .topbar {
    order: 1;
    height: 76px;
    gap: 14px;
  }

  .site-nav {
    order: 2;
  }

  .workspace > main {
    order: 3;
  }

  .page-footer {
    order: 4;
  }

  .side-bottom {
    display: none; /* the copyright belongs to the wide sidebar only */
  }

  .mobile-brand {
      display: flex;
      font-size: var(--fs-xl);
      gap: 6px;
    }

  .mobile-brand .brand-mark {
      width: 27px;
      height: 27px;
    }

  .topbar .search {
      width: auto;
      flex: 1;
      max-width: 300px;
      padding: 10px;
    }

  .header-right {
      display: none;
    }

  .filter-bar {
      overflow: auto;
      margin-right: -19px;
      padding-right: 19px;
    }

  .chips {
      flex-wrap: nowrap;
    }

  .chips .chip {
      padding: 8px 13px;
    }

  .game-grid {
      gap: 23px 13px;
    }

  .game-card .art {
      aspect-ratio: 1.13;
    }

  .game-card .game-meta {
      line-height: 1.5;
    }

  .page-footer nav {
      gap: 15px;
    }
}

@media (max-width: 480px) {
  .topbar .search {
      max-width: 185px;
    }

  .game-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

  .game-card .art {
      aspect-ratio: 1.25;
    }

  .filter-bar {
      margin-right: -16px;
      padding-right: 16px;
    }
}

.variant-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
  color: var(--muted);
}

.game-card .game-meta {
  line-height: 1.6;
}

.game-page .workspace {
  padding: 0 34px;
}

.game-page .side-bottom {
  color: #788aa9;
}

.game-page .topbar {
  height: 88px;
}

.game-page .topbar .search {
  background: #202a40;
  border-color: #303f58;
  color: #9aaccd;
  border-radius: 12px;
  width: 390px;
}

.game-page .search-shortcut {
  border-color: #526382;
}

.game-page .chip {
  color: #96a7c5;
}

.game-page .chips .chip.active {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 12px #365ed52a;
}

.game-page .chips .chip:hover:not(.active) {
  background: #253551;
  color: #dfe8ff;
}

.game-page .filter-hint {
  color: #7d8da9;
}

.game-page .game-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 17px;
}

.game-page .game-card {
  background: #202b40;
  border: 1px solid #303d56;
  border-radius: 16px;
  padding: 8px 8px 15px;
  transition: background 0.2s;
}

.game-page .game-card:hover {
  background: #26344d;
}

.game-page .game-card .art {
  border-radius: 10px;
  aspect-ratio: 1.3;
}

.game-page .game-card .game-title {
  font-size: var(--fs-base);
  margin: 12px 6px 0;
}

.game-page .game-card .game-meta {
  font-size: var(--fs-sm);
  margin: 6px 6px 0;
  color: #96a8c5;
}

.game-page .game-card .favorite {
  right: 16px;
  top: 16px;
}

.game-page .game-card .badge {
  font-size: var(--fs-xs);
  background: #e2ebff;
  color: #476081;
}

.game-page .page-footer strong {
  color: #a8bddb;
}

@media (max-width: 1150px) {
  .game-page .workspace {
      padding: 0 25px;
    }

  .game-page .game-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
  .game-page .topbar {
      height: 76px;
    }

  .game-page .topbar .search {
      width: auto;
      max-width: 290px;
    }

  .game-page .filter-bar {
      margin-right: -21px;
      padding-right: 21px;
    }

  .game-page .game-grid {
      gap: 17px 13px;
    }
}

@media (max-width: 480px) {
  .game-page .topbar .search {
      max-width: 190px;
      padding: 10px 12px;
    }

  .game-page .topbar {
      gap: 12px;
      height: 73px;
    }

  .game-page .game-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

  .game-page .filter-bar {
      margin-right: -16px;
      padding-right: 16px;
    }

  .game-page .chip {
      padding: 8px 13px;
    }

  .game-page .game-card {
      padding: 6px 6px 13px;
      border-radius: 12px;
    }

  .game-page .game-card .art {
      aspect-ratio: 1.12;
      border-radius: 8px;
    }

  .game-page .game-card .game-title {
      font-size: var(--fs-md);
      margin: 11px 5px 0;
    }

  .game-page .game-card .game-meta {
      margin: 6px 5px 0;
    }

  .game-page .game-card .favorite {
      top: 13px;
      right: 13px;
    }
}

.game-page .workspace {
  padding: 0 31px;
}

.game-page .side-bottom {
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.game-page .topbar {
  height: 82px;
  border-bottom: 1px solid #263147;
  margin-bottom: 22px;
}

.game-page .topbar .search {
  background: #1d283d;
  border-color: #303e58;
  width: 350px;
  padding: 10px 13px;
}

.back-catalog {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #99abc8;
  font-size: var(--fs-sm);
}

.back-catalog .icon {
  width: 14px;
  height: 14px;
}

.game-page .header-right {
  gap: 17px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-sm);
  color: #647b9d;
  margin: 0 0 23px;
}

.breadcrumbs > a {
  color: #7e95b7;
}

.breadcrumbs a:hover {
  color: #cfddfb;
}

.breadcrumbs > [aria-current] {
  color: #a9bbd7;
}

.breadcrumbs .icon {
  height: 10px;
  width: 10px;
  color: #526786;
}

.game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.game-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.game-avatar {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  border: 3px solid #31445b;
  flex-shrink: 0;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 15px;
}

.title-line h1 {
  font-size: var(--fs-2xl);
  line-height: 1.2;
  letter-spacing: -1px;
}

.editor-pick {
  font-size: var(--fs-xs);
  letter-spacing: 0.2px;
  color: #edc77f;
  background: #3b3540;
  border: 1px solid #51464a;
  border-radius: 5px;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.editor-pick .icon {
  width: 11px;
  height: 11px;
}

.game-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: #8399bc;
  margin-top: 8px;
}

.game-byline i {
  height: 3px;
  width: 3px;
  background: #455d7e;
  border-radius: 50%;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.subtle-button,
.square-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #202c41;
  border: 1px solid #33425c;
  color: #a7b9d7;
  border-radius: 9px;
  font-size: var(--fs-base);
  min-height: 44px;
  padding: 10px 16px;
}

.square-button {
  padding: 10px;
  min-width: 44px;
}

.subtle-button .icon,
.square-button .icon {
  height: 15px;
  width: 15px;
}

.subtle-button[aria-pressed="true"] {
  background: #334465;
  color: #d1deff;
  border-color: #5275a8;
}

.subtle-button[aria-pressed="true"] .icon svg {
  fill: #99b1ee;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 214px;
  gap: 23px;
  align-items: start;
}

.play-column {
  min-width: 0;
}

.player {
  border: 1px solid #354760;
  border-radius: 17px;
  overflow: hidden;
  background: #172338;
  box-shadow: 0 10px 35px #090f201c;
  scroll-margin-top: 15px;
}

.game-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.7;
  min-height: 445px;
  overflow: hidden;
  background: #dce8c9;
  color: #35492d;
}

.launch-screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.launch-copy {
  padding: 44px 0 44px 40px;
  width: 58%;
}

.launch-kicker {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: var(--fs-xs);
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #98a77d;
  margin-bottom: 18px;
}

.tiny-line {
  display: block;
  width: 15px;
  height: 1px;
  background: #b3be98;
}

.launch-copy h2 {
  font-size: var(--fs-3xl);
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: #415534;
  font-weight: 800;
}

.launch-copy h2 > span {
  color: #7b9451;
}

.launch-copy p {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: #92a17b;
  margin-top: 17px;
}

.launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #456432;
  color: #f8ffe8;
  box-shadow: 0 4px 0 #304d2520;
  border-radius: 11px;
  padding: 14px 22px;
  min-height: 48px;
  font-size: var(--fs-lg);
  font-weight: 800;
  transition:
    transform 0.15s,
    background 0.15s;
}

.launch-button:hover {
  background: #365525;
  transform: translateY(-2px);
}

.launch-button .icon {
  height: 17px;
  width: 17px;
}

.launch-copy .launch-button {
  margin-top: 23px;
}

.launch-arrow {
  margin-left: 13px;
}

.player-toolbar {
  min-height: 56px;
  padding: 6px 12px 6px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #213047;
}

.toolbar-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: #90a4c2;
}

.connection-dot {
  display: block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #85b79a;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.control-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  height: 44px;
  min-width: 44px;
  padding: 8px;
  background: transparent;
  color: #9cb0cf;
  font-size: var(--fs-sm);
}

.control-button:hover {
  background: #344864;
  color: #e4eeff;
}

.control-button:disabled {
  color: #576c8c;
  opacity: 0.5;
}

.control-button:disabled:hover {
  background: transparent;
}

.control-button .icon {
  width: 16px;
  height: 16px;
}

.toolbar-divider {
  height: 18px;
  width: 1px;
  background: #3a4b64;
  margin: 0 5px;
}

.control-button[aria-pressed="true"] .muted-slash {
  display: none;
}

.control-button[aria-pressed="true"] {
  background: #314764;
  color: #d7e5ff;
}

.under-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 3px 0;
  color: #7089ad;
  font-size: var(--fs-sm);
}

.under-player > a {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: #91a6c7;
}

/* The first instruction paragraph can be long: keep it to two lines and let the links keep their width. */
.under-player > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.under-player .icon {
  width: 13px;
  height: 13px;
}

.under-player > span .icon {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 7px;
}

.under-player > a .icon {
  width: 10px;
  height: 10px;
}

.recommendation-rail {
  padding-top: 3px;
}

.rail-heading {
  margin-bottom: 15px;
}

.rail-heading h2 {
  font-size: var(--fs-lg);
  letter-spacing: -0.35px;
  margin-bottom: 6px;
}

.rail-heading > span {
  font-size: var(--fs-sm);
  color: #778eaf;
}

.rail-games {
  display: grid;
  gap: 15px;
}

.game-page .rail-games .game-card {
  padding: 6px 6px 11px;
  border-radius: 12px;
  background: #1c293d;
  border-color: #2b3b52;
}

.game-page .rail-games .art {
  aspect-ratio: 1.72;
  border-radius: 7px;
}

.game-page .rail-games .game-title {
  font-size: var(--fs-md);
  margin: 10px 6px 0;
}

.game-page .rail-games .game-meta {
  font-size: var(--fs-sm);
  line-height: 1.5;
  margin: 5px 6px 0;
}

.game-page .rail-games .favorite {
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
}

.rail-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  color: #7893ba;
  padding: 15px 3px;
}

.rail-link .icon {
  width: 14px;
  height: 14px;
}

.information-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: 45px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid #29394e;
}

.section-label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #7c96ba;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: var(--fs-xl);
  letter-spacing: -0.6px;
  margin-bottom: 17px;
  line-height: 1.35;
}

.about-game > p {
  font-size: var(--fs-base);
  color: #8d9fbc;
  line-height: 1.6;
  margin-bottom: 10px;
  max-width: 64ch;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}

.about-tags > span {
  background: #1e2b41;
  border: 1px solid #2b3d55;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: var(--fs-xs);
  color: #7f99bf;
}

.about-game details {
  margin-top: 22px;
  border-top: 1px solid #2b3b50;
  padding-top: 15px;
}

.about-game summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: var(--fs-md);
  min-height: 44px;
  color: #a1b2cf;
}

.about-game summary::-webkit-details-marker {
  display: none;
}

.about-game summary .icon {
  width: 12px;
  height: 12px;
  color: #607a9f;
  transition: transform 0.2s;
}

.about-game details[open] summary .icon {
  transform: rotate(90deg);
}

.about-game details p {
  font-size: var(--fs-base);
  line-height: 1.6;
  max-width: 64ch;
  color: #8298b9;
  margin-top: 12px;
}

.instructions {
  background: #1b283c;
  border: 1px solid #2d3c54;
  border-radius: 14px;
  padding: 23px 25px;
  align-self: start;
}

.instructions .section-label {
  margin-bottom: 9px;
}

.instructions .section-heading h2 {
  font-size: var(--fs-lg);
  margin-bottom: 21px;
}

.instruction-steps {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 17px;
}

.instruction-steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.step-number {
  height: 32px;
  width: 32px;
  border: 1px solid #354765;
  background: #293953;
  color: #93abd1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-weight: 800;
  flex-shrink: 0;
}

.instruction-steps h3 {
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.4;
  margin: 1px 0 5px;
  color: #c7d4eb;
}

.instruction-steps p {
  font-size: var(--fs-base);
  color: #9cb0d1;
  line-height: 1.6;
}

.input-hints {
  display: flex;
  gap: 17px;
  border-top: 1px solid #2e3d56;
  padding-top: 17px;
  margin-top: 21px;
}

.input-hints > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-sm);
  color: #7d94b7;
  white-space: nowrap;
}

.input-hints .icon {
  width: 13px;
  height: 13px;
}

.more-games {
  margin-top: 37px;
  padding-top: 28px;
  border-top: 1px solid #2a384e;
}

.more-games .section-label {
  margin-bottom: 10px;
}

.game-page .more-games .section-head h2 {
  font-size: var(--fs-xl);
  letter-spacing: -0.6px;
}

.more-games .section-head .text-link {
  font-size: var(--fs-sm);
  color: #92aacf;
}

.more-games .section-head .icon {
  width: 15px;
  height: 15px;
}

.game-page .more-games .filter-bar {
  margin-top: 20px;
  margin-bottom: 21px;
}

.game-page .more-games .game-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 21px 17px;
}

.game-page .more-games .game-card .art {
  aspect-ratio: 1.55;
}

.game-page .more-games .game-card .game-title {
  font-size: var(--fs-base);
}

.game-page .more-games .game-card .game-meta {
  font-size: var(--fs-sm);
}

.game-page .page-footer {
  padding-top: 23px;
  margin-top: 34px;
  font-size: var(--fs-sm);
}

.share-dialog {
  background: #1d2b42;
  border: 1px solid #41597d;
  border-radius: 19px;
  color: #e5edff;
  padding: 33px;
  max-width: 410px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 100px #04081566;
}

.share-dialog::backdrop {
  background: #0a1224bb;
  backdrop-filter: blur(5px);
}

.share-close {
  position: absolute;
  right: 13px;
  top: 13px;
  height: 28px;
  width: 28px;
  padding: 6px;
  border-radius: 7px;
  background: #2b3e5c;
  color: #b1c5e5;
}

.share-close .icon {
  width: 16px;
  height: 16px;
}

.share-dialog .section-label {
  margin-top: 9px;
}

.share-dialog h2 {
  font-size: var(--fs-xl);
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.share-dialog p {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: #98adcb;
  margin-bottom: 20px;
}

.share-dialog .primary {
  font-size: var(--fs-base);
  background: #6b8cf0;
  color: #fff;
  min-height: 48px;
  border-radius: 8px;
}

.share-dialog #copy-status {
  font-size: var(--fs-sm);
  margin: 14px 0 0;
  min-height: 20px;
}

.player:fullscreen,
.player.is-expanded {
  border-radius: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  background: #dce8c9;
  height: 100dvh;
  width: 100%;
  max-width: none;
}

.player.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.player:fullscreen .game-stage,
.player.is-expanded .game-stage {
  aspect-ratio: auto;
  min-height: 0;
  flex: 1;
  width: 100%;
}

.player:fullscreen .player-toolbar,
.player.is-expanded .player-toolbar {
  flex-shrink: 0;
}

.player:fullscreen .launch-copy,
.player.is-expanded .launch-copy {
  padding-left: 9%;
  width: 55%;
}

.player:fullscreen .launch-copy h2,
.player.is-expanded .launch-copy h2 {
  font-size: var(--fs-3xl);
}

.player:fullscreen .launch-button,
.player.is-expanded .launch-button {
  padding: 15px 23px;
}

@media (min-width: 1450px) {
  .game-page .workspace {
      padding: 0 38px;
    }

  .play-layout {
      grid-template-columns: minmax(0, 1fr) 226px;
      gap: 25px;
    }

  .game-stage {
      aspect-ratio: 1.72;
    }

  .launch-copy {
      padding-left: 46px;
    }

  .game-page .rail-games .art {
      aspect-ratio: 1.7;
    }
}

@media (max-width: 1200px) {
  .game-page .workspace {
      padding: 0 24px;
    }

  .game-page .topbar .search {
      width: 315px;
    }

  .game-page .header-right {
      gap: 12px;
    }

  .back-catalog {
      display: none;
    }

  .play-layout {
      grid-template-columns: minmax(0, 1fr) 180px;
      gap: 18px;
    }

  .game-stage {
      min-height: 440px;
      aspect-ratio: auto;
    }

  .launch-copy {
      padding-left: 29px;
      padding-top: 40px;
      padding-bottom: 40px;
      width: 62%;
    }

  .launch-kicker {
      margin-bottom: 16px;
    }

  .launch-arrow {
      margin-left: 5px;
    }

  .launch-copy .launch-button {
      margin-top: 21px;
    }

  .toolbar-caption {
      gap: 6px;
    }

  .player-toolbar {
      padding: 6px 8px 6px 12px;
      gap: 8px;
    }

  .fullscreen-label {
      display: none;
    }

  .player-controls {
      gap: 3px;
    }

  .toolbar-divider {
      margin: 0 3px;
    }

  .control-button {
      min-width: 44px;
      height: 44px;
      padding: 8px;
    }

  .control-button .icon {
      width: 15px;
      height: 15px;
    }

  .under-player {
      padding-top: 12px;
    }

  .under-player {
      flex-wrap: wrap;
    }

  .under-player > span {
      order: -1;
      flex-basis: 100%;
      -webkit-line-clamp: 3;
    }

  .rail-games {
      gap: 13px;
    }

  .game-page .rail-games .art {
      aspect-ratio: 1.55;
    }

  .information-layout {
      gap: 26px;
    }

  .instructions {
      padding: 22px 20px;
    }

  .input-hints {
      gap: 12px;
    }

  .game-page .more-games .game-grid {
      gap: 18px 14px;
    }
}

@media (max-width: 980px) {
  .play-layout {
      grid-template-columns: minmax(0, 1fr);
    }

  .recommendation-rail {
      display: none;
    }

  .game-stage {
      min-height: 440px;
      aspect-ratio: 1.62;
    }

  .launch-copy {
      width: 58%;
      padding-left: 35px;
    }

  .fullscreen-label {
      display: inline;
    }

  .control-button {
      width: auto;
      min-width: 44px;
      height: 44px;
    }

  .player-toolbar {
      padding: 6px 10px 6px 16px;
    }

  .game-page .game-heading {
      gap: 13px;
    }

  .game-heading .subtle-button {
      padding: 9px 11px;
    }

  .title-line {
      gap: 10px;
    }

  .information-layout {
      gap: 23px;
    }

  .instructions {
      padding: 21px 18px;
    }

  .instruction-steps {
      gap: 15px;
    }

  .instruction-steps li {
      gap: 10px;
    }

  .input-hints {
      gap: 8px;
    }

  .input-hints .icon {
      width: 11px;
      height: 11px;
    }

  .game-page .more-games .game-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

  .game-page .page-footer nav {
      gap: 13px;
    }
}

@media (max-width: 760px) {
  /* The shell carries the page padding here; the menu strip spans the full width. */
  .game-page {
      padding: 0 22px;
    }

  .game-page .site-nav {
      margin: 0 -22px;
    }

  .game-page .topbar {
      height: 76px;
      margin-bottom: 18px;
    }

  .game-page .mobile-brand {
      font-size: var(--fs-xl);
    }

  .game-page .topbar .search {
      max-width: 300px;
      width: auto;
      padding: 11px 13px;
    }

  .breadcrumbs {
      margin-bottom: 20px;
    }

  .game-heading {
      margin-bottom: 20px;
    }

  .game-avatar {
      width: 49px;
      height: 49px;
      border-radius: 13px;
    }

  .game-byline {
      gap: 7px;
    }

  .heading-actions {
      gap: 7px;
    }

  .square-button {
      min-width: 44px;
      min-height: 44px;
      padding: 8px;
    }

  .game-heading .subtle-button {
      min-height: 44px;
    }

  .launch-copy {
      padding-left: 34px;
    }

  .game-stage {
      min-height: 436px;
      aspect-ratio: 1.5;
    }

  .information-layout {
      grid-template-columns: 1.1fr 1fr;
      margin-top: 28px;
      padding-top: 26px;
    }

  .section-label {
      letter-spacing: 1.3px;
    }

  .about-tags {
      gap: 5px;
    }

  .about-tags > span {
      padding: 5px 6px;
    }

  .more-games {
      margin-top: 30px;
      padding-top: 26px;
    }

  .game-page .more-games .filter-bar {
      margin-right: -22px;
      padding-right: 22px;
      margin-top: 18px;
    }

  .game-page .page-footer nav {
      gap: 13px;
    }
}

@media (max-width: 600px) {
  .game-page {
      padding: 0 17px;
    }

  .game-page .site-nav {
      margin: 0 -17px;
    }

  .game-page .topbar {
      height: 72px;
      gap: 14px;
      margin-bottom: 16px;
    }

  .game-page .topbar .search {
      max-width: 228px;
      padding: 10px 11px;
    }

  .game-page .brand-mark {
      width: 27px;
      height: 27px;
    }

  .game-page .mobile-brand .brand-mark .icon {
      width: 20px;
      height: 20px;
    }

  .breadcrumbs {
      margin-bottom: 18px;
      gap: 7px;
    }

  .game-heading {
      gap: 8px;
      margin-bottom: 18px;
    }

  .game-identity {
      gap: 10px;
    }

  .game-avatar {
      width: 44px;
      height: 46px;
      border-radius: 11px;
      border-width: 2px;
    }

  .title-line {
      gap: 8px;
    }

  .title-line h1 {
      letter-spacing: -0.8px;
    }

  .editor-pick {
      display: none;
    }

  .game-byline {
      gap: 5px;
      margin-top: 6px;
    }

  .game-byline span:last-child,
  .game-byline i:last-of-type {
      display: none;
    }

  .heading-actions {
      gap: 7px;
    }

  .favorite-label {
      display: none;
    }

  .game-heading .subtle-button {
      padding: 8px;
      min-width: 44px;
      min-height: 44px;
      border-radius: 8px;
    }

  .square-button {
      min-width: 44px;
      min-height: 44px;
      border-radius: 8px;
    }

  .game-stage {
      aspect-ratio: auto;
      min-height: 480px;
    }

  .player {
      border-radius: 14px;
    }

  .launch-copy {
      padding: 75px 0 83px 25px;
      width: 78%;
      align-self: center;
      position: relative;
    }

  .launch-kicker {
      margin-bottom: 17px;
    }

  .launch-copy h2 {
      text-shadow: 0 1px #f2f2d820;
    }

  .launch-copy p {
      margin-top: 20px;
    }

  .launch-copy .launch-button {
      margin-top: 22px;
      min-height: 48px;
      padding: 14px 20px;
      gap: 8px;
    }

  .launch-arrow {
      margin-left: 9px;
    }

  .launch-screen:before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, #dce8c975 10%, #dce8c91a 75%);
      pointer-events: none;
    }

  .player-toolbar {
      min-height: 56px;
      padding: 6px 8px 6px 12px;
      gap: 8px;
    }

  .toolbar-caption {
      max-width: 137px;
      line-height: 1.5;
      gap: 6px;
    }

  .toolbar-caption .connection-dot {
      width: 4px;
      height: 4px;
    }

  .player-controls {
      gap: 2px;
    }

  .control-button {
      min-width: 44px;
      height: 44px;
      padding: 8px;
    }

  .control-button .icon {
      width: 15px;
      height: 15px;
    }

  .toolbar-divider {
      height: 16px;
      margin: 0 2px;
    }

  .fullscreen-label {
      display: none;
    }

  .under-player {
      padding: 13px 2px 0;
      gap: 12px;
    }

  .under-player > span {
      line-height: 1.6;
    }

  .under-player > a {
      gap: 4px;
    }

  .under-player > span > .icon {
      height: 14px;
      width: 14px;
    }

  .information-layout {
      grid-template-columns: 1fr;
      gap: 25px;
      margin-top: 28px;
      padding-top: 25px;
    }

  .section-heading h2 {
      line-height: 1.3;
      margin-bottom: 15px;
    }

  .section-label {
      letter-spacing: 1.6px;
      margin-bottom: 11px;
    }

  .about-tags {
      gap: 6px;
      margin-top: 18px;
    }

  .about-tags > span {
      padding: 6px 8px;
    }

  .about-game details {
      margin-top: 20px;
    }

  .instructions {
      padding: 24px;
    }

  .instructions .section-heading h2 {
      margin-bottom: 23px;
    }

  .instruction-steps {
      gap: 20px;
    }

  .instruction-steps li {
      gap: 13px;
    }

  .input-hints {
      gap: 19px;
      padding-top: 20px;
      margin-top: 24px;
    }

  .input-hints .icon {
      height: 14px;
      width: 14px;
    }

  .more-games .section-head .text-link {
      gap: 5px;
    }

  .more-games .section-head .icon {
      height: 13px;
      width: 13px;
    }

  .game-page .more-games .filter-bar {
      margin-right: -17px;
      padding-right: 17px;
    }

  .game-page .more-games .game-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 17px 12px;
    }

  .game-page .more-games .game-card .art {
      aspect-ratio: 1.15;
    }

  .game-page .more-games .game-card .game-title {
      font-size: var(--fs-md);
    }

  .game-page .page-footer {
      line-height: 1.7;
      gap: 12px;
    }

  .game-page .page-footer nav {
      flex-direction: column;
      gap: 5px;
    }

  .player:fullscreen .launch-copy,
  .player.is-expanded .launch-copy {
      padding-left: 7%;
      width: 78%;
    }

  .player:fullscreen .launch-button,
  .player.is-expanded .launch-button {
      padding: 13px 18px;
    }
}

@media (max-width: 360px) {
  .game-page {
      padding: 0 13px;
    }

  .game-page .site-nav {
      margin: 0 -13px;
    }

  .game-page .topbar .search {
      max-width: 171px;
      padding: 9px;
    }

  .game-page .topbar .search .icon {
      width: 17px;
      height: 17px;
    }

  .game-page .mobile-brand {
      gap: 5px;
    }

  .game-page .brand-mark {
      width: 25px;
      height: 25px;
    }

  .game-avatar {
      display: none;
    }

  .game-stage {
      min-height: 466px;
    }

  .launch-copy {
      padding-left: 21px;
    }

  .launch-copy .launch-button {
      padding: 12px 13px;
    }

  .launch-arrow {
      margin-left: 5px;
    }

  .toolbar-caption {
      max-width: 116px;
    }

  .player-toolbar {
      padding-left: 10px;
      padding-right: 7px;
    }

  .toolbar-divider {
      margin: 0 1px;
    }

  .instructions {
      padding: 21px;
    }

  .input-hints {
      gap: 13px;
    }

  .game-page .more-games .filter-bar {
      margin-right: -13px;
      padding-right: 13px;
    }
}

@media (max-height: 540px) and (orientation: landscape) {
  .player:fullscreen .launch-copy,
  .player.is-expanded .launch-copy {
      padding-top: 45px;
      padding-bottom: 15px;
    }

  .player:fullscreen .launch-copy h2,
  .player.is-expanded .launch-copy h2 {
      font-size: var(--fs-2xl);
    }

  .player:fullscreen .launch-copy p,
  .player.is-expanded .launch-copy p {
      font-size: var(--fs-md);
      margin-top: 9px;
    }

  .player:fullscreen .launch-kicker,
  .player.is-expanded .launch-kicker {
      display: none;
    }

  .player:fullscreen .launch-copy .launch-button,
  .player.is-expanded .launch-copy .launch-button {
      margin-top: 12px;
      min-height: 44px;
      padding: 10px 16px;
      font-size: var(--fs-base);
    }
}

/* ---------------------------------------------------------------------------
   PlayTree additions: the real player. The mockup drew a demo scene; the site
   shows the game's cover on a launch screen and then loads the build iframe.
   --------------------------------------------------------------------------- */

.game-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  min-width: 0; /* aspect-ratio would otherwise turn the min-height into a 640px minimum width and overflow narrow columns */
  overflow: hidden;
  background: #0f1626;
  color: #f0f4ff;
}

.launch-screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.launch-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

/* Darkens the cover so the copy stays legible on any artwork. */
.launch-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #0f1626f2 0%, #0f1626cc 42%, #0f162640 100%),
    linear-gradient(0deg, #0f1626b3 0%, transparent 45%);
}

.launch-copy {
  position: relative;
  z-index: 2;
}

.launch-kicker {
  color: #a9bbe0;
}

.tiny-line {
  background: #a9bbe0;
}

.launch-copy h2 {
  color: #fff;
  overflow-wrap: anywhere;
}

.launch-copy p {
  color: #c9d5ee;
  max-width: 64ch;
}

.launch-button {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 0 #3a55b3;
  text-decoration: none;
}

.launch-button:hover {
  background: #5c7ff0;
}

.game-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f1626;
}

.stage-message {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background: #101725e6;
}

.stage-message p {
  max-width: 380px;
  color: #c9d5ee;
  font-size: var(--fs-base);
  line-height: 1.6;
}

/* The portal's own loading screen. It covers the frame from the moment the build starts loading
   until the game reports that it is ready, so a game needs to ship no loader of its own. It sits
   above the launch screen (z-index 2) and below the error message (z-index 4), and stretches with
   the stage, which already fills the fullscreen and expanded player. */

.stage-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: #0f1626;
  transition: opacity 0.25s;
}

/* Fading out: the overlay must never swallow a click meant for the game underneath. */
.stage-loader.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.stage-loader-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.45);
  transform: scale(1.1); /* the blur would otherwise leave washed-out edges along the stage */
}

/* A scrim over the cover, like the launch screen's: it keeps the muted size line readable even on
   the brightest artwork. */
.stage-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0f1626b3;
}

.stage-loader-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  text-align: center;
}

.stage-loader-card .launch-kicker {
  margin-bottom: 0;
}

.stage-loader-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #fff;
  overflow-wrap: anywhere;
}

.stage-loader-bar {
  position: relative;
  width: 220px;
  max-width: 100%;
  height: 4px;
  margin-top: 8px; /* keeps the bar from reading as an underline below the title */
  border-radius: 999px;
  background: #24314b;
  overflow: hidden;
}

/* Indeterminate on purpose: the host cannot know how far a build has come, so the highlight only
   says that work is still going on. */
.stage-loader-bar > span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c8fff00, var(--accent), #6c8fff00);
  animation: stage-loader-slide 1.2s ease-in-out infinite;
}

@keyframes stage-loader-slide {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(350%);
  }
}

/* site.css already stops every animation here; the bar then reads as a quiet, full-width track. */
@media (prefers-reduced-motion: reduce) {
  .stage-loader-bar > span {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
  }
}

.stage-loader-status {
  font-size: var(--fs-base);
  line-height: 1.5;
  color: #c9d5ee;
}

.stage-loader-size {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* Advertising. Both surfaces are server-rendered and empty; the ad adapter only unhides them and
   fills in the countdown, so no markup or style is ever injected by a script. */

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 90px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px dashed #3a4c68;
  border-radius: 12px;
  background: #16223866;
  text-align: center;
}

/* The expanded or fullscreen player covers the page: the slot leaves the layout, and with it any chance
   of counting a display nobody can see. */
body:has(.player.is-expanded) .ad-slot,
body:has(.player:fullscreen) .ad-slot {
  display: none;
}

.ad-kicker {
  font-size: var(--fs-xs);
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #7089ad;
}

.ad-slot-text {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0b1120e6;
}

.ad-overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  padding: 26px 24px;
  border: 1px dashed #41597d;
  border-radius: 16px;
  background: #16223acc;
  text-align: center;
}

.ad-overlay-card h2 {
  font-size: var(--fs-xl);
  letter-spacing: -0.4px;
  color: #fff;
}

.ad-overlay-countdown {
  min-height: 36px;
  font-size: var(--fs-2xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #dce6fb;
}

.ad-overlay-close {
  margin-top: 4px;
}

.player.is-loading .connection-dot {
  background: #f4c16e;
}

.player.is-error .connection-dot {
  background: #f28d79;
}

.player:fullscreen,
.player.is-expanded {
  background: #0f1626;
}

body:has(.player.is-expanded) {
  overflow: hidden;
}

.instruction-steps li > p {
  margin-top: 6px;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: #c7d4eb;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.screenshots img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #2b3b52;
}

.share-link {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid #41597d;
  border-radius: 8px;
  background: #16223a;
  color: #dce6fb;
  font-size: var(--fs-base);
}

.share-dialog .primary {
  width: 100%;
}

.page-footer nav a {
  color: #92aacf;
}

@media (max-width: 760px) {
  .game-stage {
    aspect-ratio: auto;
    height: min(calc(100dvh - 150px), 640px);
    min-height: 380px;
  }

  .launch-copy {
    width: 82%;
    padding: 40px 0 40px 24px;
  }
}

@media (max-width: 600px) {
  .game-stage {
    min-height: 420px;
  }

  .ad-slot {
    min-height: 74px;
    margin-top: 12px;
    padding: 10px 12px;
  }

  .ad-overlay {
    padding: 16px;
  }

  .ad-overlay-card {
    padding: 20px 16px;
  }

  .stage-loader {
    padding: 24px 16px;
  }

  .stage-loader-title {
    font-size: var(--fs-xl);
  }
}

/* Phone touch targets: inline links inside text rows get a 44px hit area, and the launch
   description is clamped so the copy still fits the stage on a short screen. */
@media (max-width: 600px) {
  .breadcrumbs {
    margin-bottom: 12px;
  }

  .breadcrumbs > a,
  .breadcrumbs > [aria-current],
  .under-player > a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .launch-copy p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .player:fullscreen .launch-copy p,
  .player.is-expanded .launch-copy p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  .player:fullscreen .stage-loader-title,
  .player.is-expanded .stage-loader-title {
    font-size: var(--fs-xl);
  }
}
