#game-market-game-view {
  width: 100%;
  max-width: 44rem;
  max-height: var(--app-sheet-height);

  .add-heading:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding-top: 0.2rem;
    line-height: 1.2;
  }

  .game-count {
    font-size: 1.2rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: var(--color-gray);
  }

  &[shown] {
    transition: none;
  }

  @media (width >= 680px) and (height >= 620px) {
    &:not([hidden]) {
      border-radius: var(--sheet-border-radius);
      --viewkit-sheet-offset-y: var(--viewkit-sheet-centered-offset-y);
    }
  }


  > header[purpose="toolbar"] {
    button[action="delete"] {
      &:not(:disabled) {
        color: var(--color-red);
      }
    }


    button[action="submit"] {
      &:not(:disabled) {
        color: var(--color-blue);
      }
    }
  }


  > main {
    position: relative;
    padding: 1.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.2rem;
    align-content: start;

    > .field {
      grid-column: 1 / -1;
      min-width: 0;

      &:is(.complete, .small, .price, .price-sunday) {
        grid-column: auto;
      }

      &.price {
        grid-column: 1;
      }

      &.price-sunday {
        grid-column: 2;
      }

      &.complete:has(~ .small[hidden]) {
        grid-column: 1 / -1;
      }

      &[hidden] {
        display: none;
      }

      &:is(main[inert] *) {
        opacity: 0.5;
      }

      .segments > label > input[name="type"][value="package"] + span {
        font-size: 1.2rem;
      }

    }

    > .help {
      grid-column: 1 / -1;
      margin-top: -0.8rem;
      padding-inline: 0.2rem;
      font-size: 1.2rem;
      line-height: 1.4;
      color: var(--color-gray);

      &[hidden] {
        display: none;
      }
    }


    .done {
      position: absolute;
      place-self: center;
      rotate: -3deg;
      box-shadow: 0 0 1.2rem black;
      border: 0.2rem solid rgba(0, 0, 0, 0.333);
      border-radius: 1.2rem;
      padding-block: 1.2rem;
      padding-inline: 1.8rem;
      background: oklch(from rgb(0 139 65) l c h / 0.333);
      backdrop-filter: blur(0.666rem);
      text-align: center;

      &[hidden] {
        display: none;
      }


      h4 {
        font-size: 2.2rem;
      }


      span {

      }
    }
  }


  > .\@error {
    padding-top: 3.2rem;
    padding-bottom: 1.6rem;
  }
}
