/* Stage 4: the game details and discussion are one continuous vertical page. */
.game-modal .modal-comments-toggle {
  display: none !important;
}

.game-modal .modal-panel,
.game-modal.is-open .modal-panel,
.game-modal.is-closing .modal-panel,
.game-modal.comments-open .modal-panel {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  transition: opacity .16s ease !important;
}

.game-modal .modal-game-column {
  width: 100%;
  display: flex !important;
  flex-direction: column;
}

.game-modal .modal-comments-column,
.game-modal.comments-open .modal-comments-column {
  position: relative;
  width: 100%;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  padding: 34px 40px 40px !important;
  border: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  background: transparent !important;
  transition: none !important;
}

.game-modal .modal-comments-column::before,
.game-modal.comments-open .modal-comments-column::before {
  position: absolute !important;
  top: 0 !important;
  right: 40px !important;
  left: 40px !important;
  width: auto !important;
  height: 1px !important;
  display: block !important;
  content: "" !important;
  background: #2a2a2a !important;
}

.game-modal .modal-comments-column::after {
  display: none !important;
  content: none !important;
}

.game-modal .modal-comments-header {
  display: none !important;
}

.game-modal .modal-comments,
.game-modal .modal-comments-list {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.game-modal .modal-comment-item {
  grid-template-columns: 66px minmax(0, 1fr) !important;
  gap: 20px !important;
  padding: 18px 0 22px !important;
  border: 0 !important;
}

.game-modal .modal-comment-avatar,
.game-modal .modal-comment-composer-avatar {
  width: 66px !important;
  height: 66px !important;
  font-size: 27px !important;
}

.game-modal .modal-comment-item strong {
  font-size: 27px !important;
  line-height: 1 !important;
}

.game-modal .modal-comment-item p {
  margin: 7px 0 7px !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
}

.game-modal .modal-comment-meta {
  justify-content: flex-start !important;
  gap: 12px !important;
}

.game-modal .modal-comment-item time,
.game-modal .modal-comment-edited {
  font-size: 14px !important;
}

.game-modal .modal-comment-reactions {
  margin-left: auto;
}

.game-modal .modal-comments-column .modal-comment-form {
  grid-template-columns: 66px minmax(0, 1fr) 90px !important;
  gap: 14px !important;
  margin-top: 22px !important;
  padding-top: 22px !important;
  border: 0 !important;
}

.game-modal .modal-comments-column .modal-comment-form textarea {
  height: 66px !important;
  min-height: 66px !important;
  padding: 20px !important;
  font-size: 18px !important;
}

.game-modal .modal-comments-column .modal-comment-form button {
  width: 90px !important;
  height: 66px !important;
  min-height: 66px !important;
}

.game-modal .modal-comments-column .modal-comment-form button img {
  width: 42px !important;
  height: 42px !important;
}

@media (min-width: 768px) {
  .game-modal {
    display: block !important;
    overflow: hidden !important;
    padding: 20px !important;
  }

  .game-modal .modal-panel,
  .game-modal.is-open .modal-panel,
  .game-modal.is-closing .modal-panel,
  .game-modal.comments-open .modal-panel {
    position: absolute !important;
    top: 20px !important;
    left: 50% !important;
    width: min(850px, calc(100vw - 40px)) !important;
    height: calc(100dvh - 40px) !important;
    min-height: 0 !important;
    max-width: calc(100vw - 40px) !important;
    max-height: calc(100dvh - 40px) !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #393939 rgba(255, 255, 255, .025);
    transform: translateX(-50%) !important;
    transform-origin: top center !important;
  }

  .game-modal .modal-game-column {
    min-height: calc(100dvh - 40px) !important;
    overflow: visible !important;
  }

  .game-modal .modal-media {
    width: calc(100% - 80px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 770 / 283 !important;
    flex: 0 0 auto;
    margin: 40px auto 0 !important;
  }

  .game-modal .modal-content {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto;
    padding: 0 40px 40px !important;
  }

  .game-modal .modal-footer {
    margin-top: auto !important;
    padding-top: 24px !important;
  }

  .game-modal .modal-panel::-webkit-scrollbar {
    width: 6px;
  }

  .game-modal .modal-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .025);
  }

  .game-modal .modal-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #393939;
  }
}

@media (max-width: 767px) {
  .game-modal {
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0 !important;
    overscroll-behavior: contain;
  }

  .game-modal .modal-panel,
  .game-modal.is-open .modal-panel,
  .game-modal.is-closing .modal-panel,
  .game-modal.comments-open .modal-panel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  .game-modal .modal-game-column {
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  .game-modal .modal-media {
    width: calc(100% - 32px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 770 / 283 !important;
    margin: 50px auto 0 !important;
  }

  .game-modal .modal-content {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto;
    padding: 0 16px 24px !important;
  }

  .game-modal .modal-footer {
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 20px !important;
  }

  .game-modal .modal-comments-column,
  .game-modal.comments-open .modal-comments-column {
    padding: 24px 16px 30px !important;
  }

  .game-modal .modal-comments-column::before,
  .game-modal.comments-open .modal-comments-column::before {
    right: 16px !important;
    left: 16px !important;
  }

  .game-modal .modal-comment-item {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 14px 0 18px !important;
  }

  .game-modal .modal-comment-avatar,
  .game-modal .modal-comment-composer-avatar {
    width: 50px !important;
    height: 50px !important;
    font-size: 21px !important;
  }

  .game-modal .modal-comment-item strong {
    font-size: 21px !important;
  }

  .game-modal .modal-comment-item p {
    margin: 5px 0 7px !important;
    font-size: 16px !important;
  }

  .game-modal .modal-comment-meta {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  .game-modal .modal-comment-reactions {
    margin-left: 0;
  }

  .game-modal .modal-comments-column .modal-comment-form {
    grid-template-columns: 50px minmax(0, 1fr) 58px !important;
    gap: 8px !important;
    margin-top: 18px !important;
    padding-top: 18px !important;
  }

  .game-modal .modal-comments-column .modal-comment-form textarea {
    height: 58px !important;
    min-height: 58px !important;
    padding: 17px 12px !important;
    font-size: 16px !important;
  }

  .game-modal .modal-comments-column .modal-comment-form button {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
  }

  .game-modal .modal-comments-column .modal-comment-form button img {
    width: 34px !important;
    height: 34px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-modal .modal-panel {
    transition-duration: 1ms !important;
  }
}
