.gamep {
  padding: 20px 0 62px;
}

.gamep-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(365px, 1fr);
  align-items: stretch;
  gap: 27px;
}
.gamep-media,
.gamep-purchase { min-width: 0; }
.gamep-purchase { display: flex; flex-direction: column; }
.gamep-image-wrap {
  display: grid;
  place-items: center;
  aspect-ratio: 2.04;
  overflow: hidden;
  border: 1px solid #294475;
  border-radius: 16px;
  background: #0a1b3b;
}
.gamep-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gamep-languages {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #d9dff2;
}
.gamep-languages p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}
.gamep-languages b { color: #aab8d9; font-weight: 500; }
.gamep-language-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 5px;
  background: linear-gradient(135deg, #895cff, #5941e7);
  color: #08112d;
}
.gamep-language-icon svg { width: 18px; height: 18px; }

.gamep-purchase h1 {
  margin: -3px 0 10px;
  color: #fff;
  font-size: clamp(29px, 2.5vw, 37px);
  line-height: 1.11;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.gamep-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.gamep-platforms span {
  min-width: 57px;
  padding: 4px 11px;
  border-radius: 8px;
  background: linear-gradient(120deg, #7856ef, #493cea);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.gamep-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; min-width: 0; }
.gamep-form > * { min-width: 0; }
.gamep-price {
  margin: 0 0 1px;
  font-size: 37px;
  line-height: 1.12;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.gamep-regions { display: grid; gap: 3px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gamep-regions legend { margin: 0 0 4px; padding: 0; font-size: 15px; font-weight: 600; }
.gamep-region-help { position: relative; display: inline-flex; vertical-align: middle; margin-left: 3px; }
.gamep-region-help-button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a88aff;
  cursor: pointer;
}
.gamep-region-help-button:hover,
.gamep-region-help-button:focus-visible { color: #f200c1; }
.gamep-region-help-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gamep-region-help-button svg { width: 20px; height: 20px; }
.gamep-region-tooltip {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 12px;
  box-sizing: border-box;
  width: min(270px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 11px 13px;
  border: 1px solid #604acf;
  border-radius: 10px;
  background: #071631;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  color: #e9edfa;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
}
.gamep-region-help.is-open .gamep-region-tooltip,
.gamep-region-help-button:focus-visible + .gamep-region-tooltip { opacity: 1; visibility: visible; }
@media (hover: hover) {
  .gamep-region-help:hover .gamep-region-tooltip { opacity: 1; visibility: visible; }
}
.gamep-regions label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 37px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}
.gamep-regions label:hover { background: #0a1b3d; }
.gamep-regions label:has(input:checked) { border-color: var(--pink); background: #0b1738; }
.gamep-regions input {
  appearance: none;
  width: 23px;
  height: 23px;
  margin: 0;
  flex: 0 0 23px;
  border: 2px solid var(--pink);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.gamep-regions input:checked {
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 6px var(--pink);
}
.gamep-regions input:focus-visible,
.gamep-subscribe-trigger:focus-visible,
.gamep-form select:focus-visible,
.gamep-add:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gamep-subscribe-label { font-size: 15px; font-weight: 600; }
.gamep-subscribe-label span { color: #b5bbdc; font-weight: 400; }

.gamep-subscribe { position: relative; min-width: 0; margin-top: -5px; }
.gamep-subscribe select,
.gamep-subscribe-trigger {
  width: 100%;
  max-width: 100%;
  min-height: 45px;
  border: 1px solid #5969cf;
  border-radius: 10px;
  background: #0b1b40;
  color: #fff;
  font-size: 14px;
}
.gamep-subscribe select { padding: 0 14px; }
.gamep-subscribe select:disabled,
.gamep-subscribe-trigger:disabled { opacity: .67; cursor: not-allowed; }
.gamep-subscribe-native--enhanced { display: none; }
.gamep-subscribe-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
}
.gamep-subscribe-trigger[hidden],
.gamep-subscribe-options[hidden] { display: none; }
.gamep-subscribe-trigger:hover:not(:disabled),
.gamep-subscribe-trigger[aria-expanded="true"] { border-color: #b354fb; background: #0d214b; }
.gamep-subscribe-trigger [data-game-subscribe-value] {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gamep-subscribe-trigger strong { flex: 0 0 auto; color: #bba7ff; font-size: 13px; white-space: nowrap; }
.gamep-subscribe-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-left: 2px;
  fill: none;
  stroke: #d6dcff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}
.gamep-subscribe-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.gamep-subscribe-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  min-width: 0;
  width: 100%;
  max-height: 292px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #5a5db9;
  border-radius: 11px;
  background: #071631;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .48);
  scrollbar-color: #7758e9 #071631;
}
.gamep-subscribe-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e9edfa;
  text-align: left;
  cursor: pointer;
}
.gamep-subscribe-option:hover,
.gamep-subscribe-option.is-active { background: #162e60; }
.gamep-subscribe-option.is-selected { background: #1d215b; color: #fff; }
.gamep-subscribe-option.is-active.is-selected { background: #332675; }
.gamep-option-title { min-width: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.gamep-option-duration { color: #a8b8d6; font-size: 11px; white-space: nowrap; }
.gamep-option-price { color: #c1adff; font-size: 12px; font-weight: 800; white-space: nowrap; }

.gamep-add {
  width: 100%;
  max-width: 100%;
  min-height: 51px;
  margin-top: 1px;
  padding: 9px 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(90deg, #ec00bc, #f709bb);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.gamep-add:hover:not(:disabled) { filter: brightness(1.1); }
.gamep-add:disabled { opacity: .55; cursor: not-allowed; }
.gamep-error { margin: 0; color: #ffaddf; font-size: 13px; line-height: 1.4; }
.gamep-error[hidden] { display: none; }
.gamep-error a { color: #fff; text-decoration: underline; }
.gamep-assurances { display: grid; gap: 7px; margin: auto 0 0; padding: 13px 0 0; list-style: none; }
.gamep-assurances li { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.gamep-assurances span { width: 27px; height: 27px; flex: 0 0 27px; color: var(--pink); }
.gamep-assurances svg { display: block; width: 27px; height: 27px; }

.gamep-included {
  margin-top: 22px;
  padding: 19px 24px 23px;
  border: 1px solid #244875;
  border-radius: 17px;
  background: #061433;
}
.gamep-included h2 { margin: 0 0 13px; font-size: 26px; line-height: 1.25; }
.gamep-included-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gamep-included article {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid #264873;
  border-radius: 11px;
  background: #071737;
}
.gamep-included-icon { width: 48px; height: 48px; flex: 0 0 48px; color: #7057ff; filter: drop-shadow(0 0 4px rgba(112, 87, 255, .18)); }
.gamep-included-icon svg { display: block; width: 100%; height: 100%; }
.gamep-included article p { margin: 0; color: #e4e8f5; font-size: 14px; line-height: 1.5; }

@media (min-width: 1024px) and (max-height: 950px) {
  .gamep-image-wrap { aspect-ratio: 2.22; }
  .gamep { padding-top: 15px; }
  .gamep-purchase h1 { font-size: clamp(28px, 2.4vw, 35px); }
}
@media (max-width: 1100px) {
  .gamep-layout { grid-template-columns: minmax(0, 1.35fr) minmax(335px, 1fr); gap: 23px; }
  .gamep-included-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gamep { padding: 16px 0 50px; }
  .gamep-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gamep-image-wrap { display: block; aspect-ratio: auto; }
  .gamep-image-wrap img { width: 100%; height: auto; object-fit: contain; }
  .gamep-languages { margin-top: 12px; }
  .gamep-purchase h1 { margin: 0 0 11px; }
  .gamep-assurances { margin-top: 13px; padding-top: 0; }
  .gamep-included { min-width: 0; margin-top: 27px; }
  .gamep-included h2 { font-size: 22px; }
}
@media (max-width: 520px) {
  .gamep-languages p { font-size: 12px; }
  .gamep-purchase h1 { font-size: clamp(25px, 6.9vw, 27px); line-height: 1.17; }
  .gamep-price { font-size: 33px; }
  .gamep-subscribe-options { max-height: min(292px, 50dvh); }
  .gamep-subscribe-option { grid-template-columns: minmax(0, 1fr) auto; }
  .gamep-option-duration { grid-column: 1; grid-row: 2; }
  .gamep-option-price { grid-column: 2; grid-row: 1 / 3; }
  .gamep-included { padding: 17px 13px; }
  .gamep-included-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gamep-included article { min-height: 72px; padding: 12px 15px; }
  .gamep-included-icon { width: 41px; height: 41px; flex-basis: 41px; }
  .gamep-included article p { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
}
