#game-market-homepage-view {
  > header[purpose="toolbar"] {
    button[action="show"][action-target="game-market-login-view"] {
      @media (max-width: 560px) {
        padding: 0;


        span {
          display: none;
        }
      }
    }


    button.copyright {
      span {
        font-weight: 400;
      }
    }
  }


  > main {
    padding-block: 6.4rem;
    padding-inline: 1.6rem;
    display: grid;
    align-content: safe center;
    justify-content: center;
    justify-items: center;
    gap: 3.2rem;


    b {
      font-weight: 600;
    }


    > .intro-heading {
      display: grid;
      justify-items: center;
      gap: 2.4rem;
      text-align: center;
    }

    .game-progress-summary {
      display: grid;
      justify-items: center;
      gap: 1.8rem;
      min-width: 0;

      &[hidden] { display: none; }

      .deadline {
        min-width: 0;
        padding-block: 0.8rem;
        padding-inline: 1.6rem;
        border: 1px solid var(--toolbar-border-color);
        border-radius: 1.2rem;
        font-size: 1.6rem;
        line-height: 1.4;

        time { font-weight: 700; }
      }
    }

    .game-progress {
      --progress-color: var(--color-blue);
      display: grid;
      grid-template-columns: 0.8rem minmax(0, auto) 0.8rem;
      justify-content: center;
      width: fit-content;
      max-width: 100%;
      text-wrap: balance;
      font-variant-numeric: tabular-nums;

      &.full {
        .availability { color: inherit; font-weight: 500; }
      }
      .availability { grid-column: 2; grid-row: 3; color: var(--color-gray); font-size: 1.3rem; text-align: center; }
      .count { grid-column: 2; grid-row: 1; display: flex; justify-content: center; align-items: baseline; gap: 0.4rem; font-size: 2rem; line-height: 1.2; font-weight: 500; white-space: nowrap; }
      .availability, .count > span { text-box: trim-both cap alphabetic; }
      @supports (text-box: trim-both cap alphabetic) {
        .count { padding-block-end: 0.2rem; }
      }
      .current { color: var(--progress-color); }
      .limit { color: var(--color-gray); font-size: 1.6rem; }
      .caption { color: var(--color-gray); font-size: 1.3rem; font-weight: 400; }
      progress {
        appearance: none;
        grid-column: 1 / -1; grid-row: 2;
        width: 100%; height: 0.4rem;
        margin-block: 0.8rem 1.1rem;
        border: none; border-radius: 100vmax; overflow: hidden;
        background: var(--button-background-color);
        color: var(--progress-color);
        &::-webkit-progress-bar { background: var(--button-background-color); }
        &::-webkit-progress-value { background: var(--progress-color); border-radius: 100vmax; }
        &::-moz-progress-bar { background: var(--progress-color); border-radius: 100vmax; }
        &[hidden] { display: none; }
      }
    }

    .intro-heading > h2 {
      display: block;
      text-wrap: balance;
      font-size: 2.1rem;
      line-height: 1.5;
      font-weight: 600;
      text-align: center;
    }


    > p {
      font-size: 1.8rem;
      line-height: 1.5;
      text-align: center;
    }


    > ul {
      display: flex;
      flex-direction: column;
      gap: 1.6rem;


      > li {
        display: flex;
        align-items: center;
        gap: 1.6rem;


        > svg {

        }


        > p {
          flex: 1 1;
          max-width: 37.5rem;
          word-break: normal;
          overflow-wrap: break-word;
          hyphens: auto;
        }
      }
    }


    > hr {
      border: none;
      border-radius: 100vmax;
      width: 12.8rem;
      height: 0.4rem;
      background: var(--toolbar-background-color);
    }


    > .goto {
      display: grid;
      justify-items: center;
      gap: 0.8rem;

      &[hidden] {
        display: none;
      }


      button {
        &:is(.goto.registration *) {
          color: var(--color-blue);
        }

        &:is(.goto.games *) {
          color: var(--color-blue);
        }
      }
    }


    > .go-to-homepage {
      max-width: 40rem;
      font-size: 1.8rem;
      text-wrap: balance;
    }
  }
}


#game-market-view:has(> [purpose="tablist"][hidden]) #game-market-homepage-view > main {
  padding-bottom: calc(6.4rem + var(--app-safe-bottom));
  scroll-padding-bottom: var(--app-safe-bottom);
}
