/* Reversible card tooltip presentation. No selectors affect the classic layout. */
.game-tooltip.game-tooltip--organized {
  width: min(520px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid #465e78;
  border-radius: 12px;
  background: linear-gradient(155deg, #202f46 0%, #182234 38%, #161e2e 100%);
  color: #dce4ef;
  box-shadow: 0 14px 40px #05091270;
  font-size: 14px;
  line-height: 1.45;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #536b81 transparent;
  pointer-events: auto;
}

.game-tooltip--organized .game-tooltip-titlebar {
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.game-tooltip--organized .game-tooltip-head {
  margin: 0;
  color: #f3f6fa;
  font-family: "Roboto", "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}

.game-tooltip--organized .game-tooltip-score {
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  gap: 7px;
  min-width: 54px;
  padding: 6px 9px;
  background: #80d1ce12;
  border: 1px solid #80d1ce35;
  border-radius: 8px;
  color: #a3e2d6;
}

.game-tooltip--organized .game-tooltip-score > span { font-size: 10px; letter-spacing: 0.06em; }
.game-tooltip--organized .game-tooltip-score > strong { font-size: 24px; line-height: 1; font-weight: 700; }
.game-tooltip--organized .game-tooltip-preview { border-color: #ffffff14; border-radius: 8px; margin-bottom: 16px; }
.game-tooltip--organized .game-tooltip-preview-warning { font-size: 13px; }
.game-tooltip--organized .game-tooltip-preview-save-status { font-size: 12px; }

.game-tooltip--organized .game-tooltip-meta-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.game-tooltip--organized .game-tooltip-meta-primary > .game-tooltip-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  align-content: start;
}

.game-tooltip--organized .game-tooltip-key {
  color: #a8b8ca;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.game-tooltip--organized .game-tooltip-value {
  color: #e0e8f2;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.game-tooltip--organized .game-tooltip-price-value { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.game-tooltip--organized .game-tooltip-price-value > span:first-child { font-size: 20px; font-weight: 700; color: #f3f6fa; }
.game-tooltip--organized .tooltip-sale-discount { color: #9be3b4; font-size: 12px; font-weight: 600; }
.game-tooltip--organized .tooltip-original-price { color: #a8b8ca; font-size: 12px; }
.game-tooltip--organized .game-tooltip-hours-per-dollar { background: none; border: 0; padding: 0; font-size: 12px; color: #b6cddd; }
.game-tooltip--organized .game-tooltip-row-review-ratio { margin-top: 2px; }
.game-tooltip--organized .game-tooltip-meta-primary > .game-tooltip-row-review-ratio { grid-column: 1 / -1; }
.game-tooltip--organized .game-tooltip-review-ratio { gap: 5px; }
.game-tooltip--organized .game-tooltip-review-ratio-bar { height: 5px; border-radius: 3px; }
.game-tooltip--organized .game-tooltip-review-ratio-labels { font-size: 12px; font-weight: 500; }
.game-tooltip--organized .game-tooltip-review-ratio-labels > span:first-child { color: #97dfb2; }
.game-tooltip--organized .game-tooltip-review-ratio-labels > span:last-child { color: #d0a2ad; }
.game-tooltip--organized .game-tooltip-review-ratio small { color: #a8b8ca; font-size: 12px; }
.game-tooltip--organized .game-tooltip-review-ratio-positive-start { stop-color: #409d76; }
.game-tooltip--organized .game-tooltip-review-ratio-positive-end { stop-color: #92d9ab; }
.game-tooltip--organized .game-tooltip-review-ratio-negative-start,
.game-tooltip--organized .game-tooltip-review-ratio-negative-end { stop-color: #b77282; }

.game-tooltip--organized .game-tooltip-scorecard,
.game-tooltip--organized .game-tooltip-details,
.game-tooltip--organized .game-tooltip-backlog,
.game-tooltip--organized .game-tooltip-review-insights,
.game-tooltip--organized .tooltip-about {
  margin: 10px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #ffffff14;
  border-radius: 0 !important;
  background: none;
  box-shadow: none;
}

.game-tooltip--organized .tooltip-section-title,
.game-tooltip--organized .game-tooltip-scorecard h5,
.game-tooltip--organized .game-tooltip-review-insights h5 {
  margin: 0 0 8px;
  color: #f0f4fa;
  font: 600 13px/1.4 "Roboto", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.game-tooltip--organized > .tooltip-about-section {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-top: 0;
  border-bottom: 1px solid #ffffff14;
}

.game-tooltip--organized .game-tooltip-scorecard-metrics { gap: 10px; margin-bottom: 8px; }
.game-tooltip--organized .game-tooltip-scorecard-metric { padding: 9px 10px; border: 0; border-radius: 7px; background: #ffffff05; }
.game-tooltip--organized .game-tooltip-scorecard-metric > span { font-size: 12px; color: #c0cedd; }
.game-tooltip--organized .game-tooltip-scorecard-metric > span small { font-size: 11px; color: #9ab6c5; }
.game-tooltip--organized .game-tooltip-scorecard-metric strong { font-size: 20px; font-weight: 600; color: #e9f1fa; }
.game-tooltip--organized .game-tooltip-scorecard-metric strong small { font-size: 10px; color: #a8b8ca; }
.game-tooltip--organized .game-tooltip-scorecard-reasons { gap: 5px; }
.game-tooltip--organized .game-tooltip-scorecard-reason { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; }
.game-tooltip--organized .game-tooltip-scorecard-reason dt { font-size: 12px; line-height: 1.45; color: #a8b8ca; }
.game-tooltip--organized .game-tooltip-scorecard-reason dt > span { display: none; }
.game-tooltip--organized .game-tooltip-scorecard-reason dd { font-size: 13px; line-height: 1.45; color: #dce4ef; }
.game-tooltip--organized .game-tooltip-scorecard > p { margin-top: 10px; font-size: 11px; line-height: 1.5; color: #a8b8ca; }

.game-tooltip--organized .game-tooltip-details { gap: 8px; }
.game-tooltip--organized .game-tooltip-details > h5 { margin-bottom: 2px; }
.game-tooltip--organized .game-tooltip-details .game-tooltip-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.game-tooltip--organized .game-tooltip-backlog .game-tooltip-row { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; }
.game-tooltip--organized .game-tooltip-details .tooltip-tags-section { display: block; margin-top: 5px; }
.game-tooltip--organized .tooltip-tags-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 7px; }
.game-tooltip--organized .tooltip-tag-legend { color: #9cd8c3; font-size: 11px; }
.game-tooltip--organized .tooltip-tag-legend::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; border-radius: 50%; background: #9cd8c3; }
.game-tooltip--organized .tooltip-tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.game-tooltip--organized .tooltip-tag {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid #ffffff10;
  border-radius: 5px;
  background: #ffffff05;
  color: #b9c9d8;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.game-tooltip--organized .tooltip-tag.game-tooltip-tag-positive { border-color: #8bceaf35; background: #8bceaf09; color: #b4e5cd; }
.game-tooltip--organized .tooltip-tag-plus { display: none; }
.game-tooltip--organized .tooltip-more-tags { margin-top: 6px; }
.game-tooltip--organized .tooltip-more-tags summary,
.game-tooltip--organized .tooltip-read-more {
  width: fit-content;
  padding: 4px 0;
  border: 0;
  border-radius: 2px;
  background: none;
  box-shadow: none;
  color: #a5d9e0;
  font: 500 12px/1.5 "Roboto", "Segoe UI", sans-serif;
  cursor: pointer;
}
.game-tooltip--organized .tooltip-more-tags[open] .tooltip-tag-list { margin-top: 6px; }
.game-tooltip--organized summary:focus-visible,
.game-tooltip--organized .tooltip-read-more:focus-visible { outline: 2px solid #a5d9e0; outline-offset: 3px; }
.game-tooltip--organized .game-tooltip-copy { margin: 0; color: #c5d2e1; font-size: 14px; line-height: 1.55; -webkit-line-clamp: 2; }
.game-tooltip--organized .tooltip-about.is-expanded .game-tooltip-copy { display: block; overflow: visible; -webkit-line-clamp: unset; }
.game-tooltip--organized .tooltip-read-more { margin-top: 4px; }
.game-tooltip--organized .game-tooltip-review-insights-head h5 { margin-bottom: 0; }
.game-tooltip--organized .game-tooltip-review-duration { padding: 9px 10px; border: 0; border-radius: 7px; background: #ffffff05; gap: 3px 10px; }
.game-tooltip--organized .game-tooltip-review-duration > span { color: #b7c7d8; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.game-tooltip--organized .game-tooltip-review-duration > strong { color: #e6eef8; font-size: 16px; }
.game-tooltip--organized .game-tooltip-review-duration > small { color: #a8b8ca; font-size: 11px; line-height: 1.5; }
.game-tooltip--organized .game-tooltip-review-theme { padding: 5px 8px; border-radius: 4px; background: #ffffff05; }
.game-tooltip--organized .game-tooltip-review-theme > span { font-size: 12px; font-weight: 400; }
.game-tooltip--organized .game-tooltip-review-theme > strong { font-size: 12px; }

@media (max-width: 980px) {
  .game-tooltip.game-tooltip--organized { padding: 15px; }
  /* A mouse-generated hover must not cover the info button before its click. */
  .game-tooltip.game-tooltip--organized:not(.game-tooltip--mobile-pinned) { pointer-events: none; }
  .game-tooltip.game-tooltip--organized.game-tooltip--mobile-pinned { width: calc(100vw - 24px); left: 12px !important; right: auto; }
  .game-tooltip--organized.game-tooltip--mobile-pinned .game-tooltip-titlebar { padding-right: 0; }
  .game-tooltip--organized .game-tooltip-mobile-close { margin-bottom: 10px; min-height: 36px; border-radius: 6px; box-shadow: none; background: #ffffff07; }
  .game-tooltip--organized .game-tooltip-scorecard-reason { grid-template-columns: 106px minmax(0, 1fr); gap: 8px; }
  .game-tooltip--organized .game-tooltip-meta-primary { gap: 12px; }
  .game-tooltip--organized .game-tooltip-scorecard-metric { padding: 8px; }
  .game-tooltip--organized .game-tooltip-scorecard-metric strong { font-size: 18px; }
  .game-tooltip--organized .tooltip-more-tags summary,
  .game-tooltip--organized .tooltip-read-more { min-height: 36px; padding: 8px 0; }
}
