/* Product pages share the catalog palette, with a dedicated purchase panel. */
.owned-product-page { padding-top: 32px; padding-bottom: 64px; }
.owned-product-page .breadcrumbs { margin-bottom: 38px; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr);
  grid-template-areas: "heading heading" "gallery purchase" "caption purchase" "requirements requirements";
  gap: 0 34px;
  align-items: start;
}
.product-heading { grid-area: heading; min-width: 0; margin-bottom: 30px; }
.product-meta { display: flex; align-items: center; gap: 17px; color: #8b9eb9; font-size: 11px; line-height: 1.6; }
.product-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; color: #a9c8f6; }
.product-brand img { width: 19px; height: 19px; }
.product-heading h1 { margin: 16px 0 12px; font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.17; overflow-wrap: anywhere; }
.product-description { max-width: 620px; color: #92a5bf; font-size: 13px; line-height: 1.85; }
.product-gallery { grid-area: gallery; min-width: 0; }
.product-main-image { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 10; border: 1px solid #6885ad36; border-radius: 8px; background: #202b3b; }
.product-main-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-main-image::after { content: ''; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #101925dc); pointer-events: none; }
.product-image-footer { position: absolute; z-index: 1; left: 23px; right: 23px; bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.product-image-caption { color: #e1eafb; font-size: 11px; font-weight: 600; }
.product-image-footer .product-series { position: static; color: #afc1d9; font-size: 10px; font-variant-numeric: tabular-nums; }
.product-purchase { grid-area: purchase; min-width: 0; padding: 27px; background: #202a3a; border: 1px solid #7192bf36; border-radius: 8px; }
.purchase-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #7792b72b; color: #bfcee3; font-size: 12px; font-weight: 600; }
.purchase-heading .icon { width: 20px; height: 20px; color: #81aaf0; }
.purchase-period { border: 0; padding: 0; margin: 21px 0 0; min-width: 0; }
.purchase-period legend { padding: 0; color: #a1b1c8; font-size: 11px; }
.product-plans { display: grid; grid-template-columns: repeat(var(--plan-count, 5), minmax(0, 1fr)); gap: 6px; margin-top: 11px; }
.product-plan { position: relative; min-width: 0; cursor: pointer; }
.product-plan input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.product-plan > span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 3px; color: #a7b9d2; background: #192332; border: 1px solid #6885af42; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 1.3; white-space: nowrap; transition: background .18s, border-color .18s, color .18s; }
.product-plan:hover > span { border-color: #7ba6e8; color: #e5efff; }
.product-plan input:checked + span { color: #e6f0ff; background: #3f80e32d; border-color: #619bfa; }
.product-plan input:focus-visible + span { outline: 2px solid #a0c8ff; outline-offset: 3px; }
.purchase-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.purchase-duration { font-size: 11px; color: #9bb0d0; line-height: 1.5; }
.purchase-label { margin-top: 26px; font-size: 11px; color: #8ca0bd; }
.purchase-price { margin-top: 7px; color: #eef4ff; font-size: 32px; line-height: 1.3; font-weight: 800; letter-spacing: -.8px; }
.purchase-description { color: #9fb0c8; font-size: 12px; line-height: 1.85; margin: 13px 0 23px; max-width: 280px; }
.product-buy-button { width: 100%; min-height: 54px; padding: 14px 19px; gap: 12px; font-size: 13px; line-height: 1.5; }
.product-buy-button > .icon { width: 19px; height: 19px; flex: none; }
.product-buy-button > .icon:last-child { width: 16px; height: 16px; margin-left: auto; }
.purchase-contact { display: block; width: fit-content; margin: 11px auto 0; padding: 3px 7px; font-size: 11px; color: #91a7c6; }
.purchase-contact:hover { color: #d6e6ff; }
.product-purchase-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #7792b72b; margin-top: 22px; padding-top: 20px; color: #7e94b2; font-size: 11px; }
.product-purchase-footer a { display: inline-flex; align-items: center; gap: 8px; color: #a9c8f7; }
.product-purchase-footer .icon { width: 13px; height: 13px; }
.product-caption-row { grid-area: caption; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: #7f94b1; font-size: 10px; min-width: 0; padding-top: 14px; }
.product-caption-row .copy-product { margin: 0; padding: 0; min-height: 30px; font-size: 10px; }
.product-caption-row .copy-error { flex-basis: 100%; }
.product-requirements { grid-area: requirements; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: 24px 34px; min-width: 0; margin-top: 34px; padding-top: 28px; border-top: 1px solid #6c85a626; }
.product-requirements h2 { margin: 0; color: #e1eafb; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -.3px; }
.product-operating-systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
.product-operating-systems > div { min-width: 0; padding-left: 22px; border-left: 1px solid #6885ad42; }
.product-operating-systems dt { color: #c8d9f1; font-size: 14px; font-weight: 600; line-height: 1.5; }
.product-operating-systems dd { margin: 5px 0 0; color: #92a5bf; font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.product-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 3px; }
.product-thumbnails button { flex: 0 0 94px; aspect-ratio: 16 / 10; padding: 3px; border: 1px solid #617b9a4a; border-radius: 5px; background: #1e2838; cursor: pointer; }
.product-thumbnails button[aria-pressed="true"] { border-color: #70a5ff; }
.product-thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.product-thumbnails button:focus-visible, .product-buy-button:focus-visible, .purchase-contact:focus-visible { outline: 2px solid #92bdff; outline-offset: 3px; }
.product-image-actions { display: flex; align-items: center; gap: 20px; }
.product-image-actions > a { display: inline-flex; align-items: center; gap: 7px; color: #adc9f1; font-size: 11px; }
.product-image-actions > a:hover { color: #e8f1ff; }
.product-image-actions .icon { width: 13px; height: 13px; }
.product-image-actions > a:focus-visible { outline: 2px solid #92bdff; outline-offset: 4px; }
.product-image-navigation { display: flex; align-items: center; gap: 7px; }
.product-image-navigation button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 1px solid #6885ad42; border-radius: 4px; background: #202a3a; color: #adc9f1; cursor: pointer; }
.product-image-navigation button:hover { border-color: #80a9e7; color: #e8f1ff; }
.product-image-navigation button:focus-visible { outline: 2px solid #92bdff; outline-offset: 2px; }
.product-image-navigation .product-series { min-width: 38px; text-align: center; }
.product-main-image[data-media-kind="screenshot"] { aspect-ratio: auto; padding: 16px; background: #131820; }
.product-main-image[data-media-kind="screenshot"] > img { width: 100%; height: auto; aspect-ratio: var(--product-screenshot-ratio, 1); object-fit: scale-down; }
.product-main-image[data-media-kind="screenshot"]::after { display: none; }
.product-main-image[data-media-kind="screenshot"] .product-image-footer { position: static; margin-top: 16px; gap: 12px; }
.product-main-image[data-media-kind="screenshot"] .product-image-caption { min-width: 0; overflow-wrap: anywhere; }
.product-main-image[data-media-kind="screenshot"] .product-image-actions { flex: none; }
.product-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 430px; }
.product-thumbnails button { display: flex; flex-direction: column; align-items: stretch; min-width: 0; aspect-ratio: auto; padding: 5px; }
.product-thumbnails img { display: block; height: auto; aspect-ratio: 1; object-fit: contain; background: #131820; }
.product-thumbnails button > span { display: grid; align-items: center; flex: 1; min-height: 40px; padding: 7px 2px 3px; color: #a2b6d2; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.product-thumbnails button[aria-pressed="true"] > span { color: #dceaff; }
.related-products { margin-top: 48px; padding-top: 34px; border-top: 1px solid #6c85a626; }
.related-products h2 { font-size: 23px; }
.lineup-related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.related-game { padding: 11px; gap: 12px; }
.related-game > img { width: 64px; height: 58px; }
.related-game strong { font-size: 11px; }
.related-game > .icon { width: 14px; flex: none; }
@media (max-width: 1100px) {
  .product-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: minmax(0, 1.3fr) minmax(310px, 1fr); column-gap: 24px; }
  .product-main-image { aspect-ratio: 1.2; }
  .product-purchase { padding: 23px; }
  .lineup-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-game > .icon { display: block; }
}
@media (max-width: 760px) {
  .owned-product-page { padding-top: 24px; padding-bottom: 40px; }
  .owned-product-page .breadcrumbs { margin-bottom: 28px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "gallery" "caption" "purchase" "requirements"; }
  .product-heading { margin-bottom: 22px; }
  .product-heading h1 { font-size: 36px; letter-spacing: -1px; }
  .product-description { font-size: 12px; }
  .product-main-image { aspect-ratio: 16 / 10; }
  .product-caption-row { padding-top: 9px; font-size: 9px; gap: 8px; }
  .product-caption-row .copy-product { font-size: 9px; }
  .product-purchase { margin-top: 24px; padding: 25px; }
  .product-image-actions { gap: 9px; }
  .product-image-actions > a { font-size: 10px; gap: 4px; }
  .product-image-navigation { gap: 5px; }
  .product-image-navigation button { width: 26px; height: 28px; }
  .product-main-image[data-media-kind="screenshot"] .product-image-caption { font-size: 10px; }
  .purchase-description { max-width: 100%; }
  .purchase-price { font-size: 31px; }
  .product-requirements { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; padding-top: 26px; }
  .product-requirements h2 { font-size: 19px; }
  .product-operating-systems { gap: 16px; }
  .product-operating-systems > div { padding-left: 14px; }
  .related-products { margin-top: 38px; padding-top: 28px; }
  .lineup-related-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .related-game > img { width: 76px; height: 56px; }
  .related-game strong { font-size: 12px; }
  .related-game > .icon { margin-right: 8px; }
}
@media (max-width: 380px) {
  .product-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-heading h1 { font-size: 30px; }
  .product-description { font-size: 11px; }
  .product-purchase { padding: 21px; }
  .product-buy-button { padding-inline: 13px; font-size: 12px; }
  .product-image-footer { left: 17px; right: 17px; bottom: 17px; }
  .product-caption-row > span { font-size: 8px; }
}
