/* Homepage multimedia and service presentation. */
.hp-main .mm-lounge {
  padding-block: 68px 80px;
  background: #0c1322;
}
.hp-main .mm-tour {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: center;
  padding-block: 100px;
}
.hp-main .mm-tour h2,
.hp-main .mm-gallery h3 {
  color: var(--hp-ink);
  font-size: clamp(27px, 3vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hp-main .mm-tour p {
  max-width: 420px;
}
.mm-film {
  position: relative;
  background: #070b15;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16/9;
}
.mm-film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mm-film-toggle {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #b1c5dd80;
  border-radius: 6px;
  color: #f4f6ff;
  background: #080d1bef;
  font: 600 15px var(--font-body, sans-serif);
  cursor: pointer;
}
.mm-film-toggle svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.hp-main .mm-film-error {
  position: absolute;
  inset: 0;
  padding: 32px;
  background: #0c1322e8;
  color: white;
  display: grid;
  align-content: center;
  font-size: 16px;
}
.mm-film-error[hidden] {
  display: none;
}
.hp-main .mm-gallery .hp-section-heading {
  align-items: center;
}
.hp-main .mm-gallery h3 {
  margin-bottom: 14px;
}
.hp-main .mm-open-gallery {
  border: 0;
  padding: 10px 0;
  background: transparent;
  cursor: pointer;
}
.hp-main .mm-editorial {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
}

.hp-main .mm-editorial figure {
  min-width: 0;
}
.hp-main .mm-photo {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #080d1b;
}
.hp-main .mm-photo picture,
.hp-main .mm-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.hp-main .mm-photo img {
  transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
}
.hp-main .mm-editorial figcaption {
  margin-top: 14px;
  color: var(--hp-ink);
  font-size: 18px;
  line-height: 1.4;
}
.hp-main .mm-enlarge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 25px;
  background: #080d1be6;
  color: white;
  border-radius: 4px;
}
.mm-lightbox {
  width: min(1360px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 1px solid #7da4cc66;
  border-radius: 14px;
  color: #f4f6ff;
  background: #080d1b;
  overflow: auto;
}
.mm-lightbox::backdrop {
  background: #02050dee;
}
.mm-lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mm-lightbox-toolbar p {
  margin: 0;
  color: #afbdd3;
  font: 500 15px var(--font-body, sans-serif);
}
.mm-lightbox figure {
  margin: 12px 0 0;
}
.mm-lightbox figure img {
  display: block;
  width: 100%;
  height: min(67dvh, 800px);
  object-fit: contain;
  opacity: 1;
  transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1);
  touch-action: pan-y;
}
.mm-lightbox figcaption {
  text-align: center;
  margin-top: 14px;
  font: 400 16px/1.5 var(--font-body, sans-serif);
}
.mm-lightbox button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #f4f6ff;
  background: #142039;
  cursor: pointer;
  font: 400 28px/1 var(--font-body, sans-serif);
}
.mm-close svg {
  display: block;
}
.mm-lightbox-controls {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.mm-lightbox :focus-visible,
.mm-film-toggle:focus-visible {
  outline: 3px solid #59ddf6;
  outline-offset: 3px;
}
body.mm-gallery-open {
  overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
  .hp-main .mm-photo:hover img {
    transform: scale(1.015);
  }
  .mm-film-toggle:hover,
  .mm-lightbox button:hover {
    background: #22334d;
  }
}

@media (max-width: 1023px) {
  .hp-main .mm-tour {
    gap: 32px;
  }
  .hp-main .mm-tour {
    grid-template-columns: 1fr;
    padding-block: 68px;
  }
  .hp-main .mm-tour-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 32px;
  }
  .hp-main .mm-tour h2 {
    margin: 0;
  }
}
@media (max-width: 767px) {
  .hp-main .mm-lounge {
    padding-block: 48px 56px;
  }
  .hp-main .mm-tour {
    padding-block: 42px 56px;
    gap: 24px;
  }
  .hp-main .mm-tour-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hp-main .mm-gallery .hp-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .hp-main .mm-gallery h3 {
    margin-bottom: 12px;
  }
  .hp-main .mm-editorial {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hp-main .mm-editorial figcaption {
    font-size: 16px;
  }
  .hp-main .mm-enlarge {
    width: 36px;
    height: 36px;
    right: 8px;
    bottom: 8px;
    font-size: 21px;
  }
  .mm-film-toggle {
    bottom: 10px;
    right: 10px;
    min-height: 44px;
    font-size: 14px;
    padding: 10px 12px;
  }
  .mm-lightbox {
    padding: 14px;
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
  .mm-lightbox figure img {
    height: 60dvh;
  }
  .hp-main .hp-hero-picture img {
    object-position: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-main .mm-photo img,
  .mm-lightbox figure img {
    transition: none;
    transform: none;
  }
}
@media (forced-colors: active) {
  .mm-film-toggle,
  .mm-lightbox button,
  .mm-enlarge {
    border: 1px solid ButtonText;
  }
}
/* Official trailer artwork shares the room's editorial rhythm. */
.hp-main .mm-games {
  padding-bottom: 88px;
}
.hp-main .mm-games h3 {
  margin: 0 0 20px;
  color: var(--hp-ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.hp-main .mm-games p {
  max-width: 680px;
}
.hp-main .mm-games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 24px;
}
.hp-main .mm-game {
  grid-column: span 2;
  display: block;
  min-width: 0;
}
.hp-main .mm-game:nth-child(-n + 2),
.hp-main .mm-game:nth-last-child(-n + 2) {
  grid-column: span 3;
}
.hp-main .mm-game-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  border-radius: 6px;
  background: #080d1b;
}
.hp-main .mm-game img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1);
}
.hp-main .mm-game-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  background: #080d1be8;
}
.hp-main .mm-game-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 15px;
}
.hp-main .mm-game-label strong {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.25;
}
.hp-main .mm-game-label > span {
  flex: none;
  color: var(--hp-cyan);
  font-size: 14px;
}
.hp-main .mm-publisher-note {
  font-size: 14px;
  margin-top: 30px;
}
.mm-trailer-dialog {
  padding: 20px;
}
.mm-trailer-dialog h2 {
  font: 600 clamp(18px, 2.2vw, 28px)/1.25 var(--font-body, sans-serif);
  margin: 0;
}
#game-video-player {
  aspect-ratio: 16/9;
  width: 100%;
  margin-top: 20px;
  background: #02050b;
}
#game-video-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.mm-trailer-dialog > p {
  font: 400 15px/1.5 var(--font-body, sans-serif);
  color: #afbdd3;
}
.mm-trailer-dialog a {
  color: #59ddf6;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
@media (hover: hover) and (pointer: fine) {
  .hp-main .mm-game:hover img {
    transform: scale(1.015);
  }
}
@media (max-width: 767px) {
  .hp-main .mm-games {
    padding-bottom: 56px;
  }
  .hp-main .mm-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .hp-main .mm-game,
  .hp-main .mm-game:nth-child(-n + 2),
  .hp-main .mm-game:nth-last-child(-n + 2) {
    grid-column: span 1;
  }
  .hp-main .mm-game:first-child {
    grid-column: span 2;
  }
  .hp-main .mm-game-label {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }
  .hp-main .mm-game-label strong {
    font-size: 16px;
  }
  .hp-main .mm-game:first-child .mm-game-label {
    flex-direction: row;
  }
  .hp-main .mm-game-play {
    width: 36px;
    height: 36px;
    left: 8px;
    bottom: 8px;
  }
  .hp-main .mm-game-play svg {
    width: 19px;
    height: 19px;
  }

  .mm-trailer-dialog {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-main .mm-game img {
    transition: none;
    transform: none;
  }
}

/* Editorial game catalog: images keep their original proportions. */
.hp-main .mm-game-catalog figure {
  margin: 0;
}
.hp-main .mm-game-catalog .mm-photo {
  border-radius: 14px;
  border: 1px solid #52698a50;
}
.hp-main .mm-game-catalog .mm-photo img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hp-main .mm-game-catalog figcaption {
  display: grid;
  gap: 5px;
  font-size: 17px;
}
.hp-main .mm-game-catalog figcaption span {
  color: var(--hp-muted);
  font-size: 14px;
}
.mm-lightbox figcaption a {
  color: #76dfff;
  text-underline-offset: 4px;
}
.hp-main .hp-hero-copy h1 {
  font-size: clamp(42px, 4.5vw, 72px);
  max-width: 1000px;
  text-wrap: balance;
}
.hp-main .hp-hero-copy > p {
  max-width: 540px;
}
@media (max-width: 1199px) {
  .hp-main .mm-game-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .hp-main .mm-game-catalog {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .hp-main .hp-hero-copy h1 {
    font-size: clamp(38px, 9vw, 52px);
  }
}

/* Service features use the existing homepage type, color and button tokens. */
.hp-main .mm-offerings-heading {
  max-width: 780px;
  margin-bottom: 56px;
}
.hp-main .mm-offerings-heading h2 {
  margin-block: 16px 20px;
}
.hp-main .mm-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-block: 48px;
  border-top: 1px solid var(--hp-line);
}
.hp-main .mm-feature-copy {
  min-width: 0;
}
.hp-main .mm-feature-copy h3 {
  margin: 14px 0 24px;
  color: var(--hp-ink);
  font: 700 clamp(32px, 3.4vw, 52px)/1.08 var(--font-body, sans-serif);
  letter-spacing: -0.04em;
}
.hp-main .mm-feature-copy > p:not(.hp-context) {
  font-size: 17px;
  line-height: 1.7;
  margin-block: 0 16px;
}
.hp-main .mm-feature-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}
.hp-main .mm-feature-specs li {
  color: var(--hp-ink);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-main .mm-feature-specs li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hp-cyan);
  flex: none;
}
.hp-main .mm-feature-picture {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  background: #080d1b;
}
.hp-main .mm-feature-picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hp-main .mm-tour {
  border-top: 1px solid var(--hp-line);
}
@media (max-width: 1023px) {
  .hp-main .mm-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 36px;
  }
  .hp-main .mm-offerings-heading {
    margin-bottom: 32px;
  }
  .hp-main .mm-feature-copy > p:not(.hp-context) {
    max-width: 680px;
  }
}
@media (max-width: 599px) {
  .hp-main .mm-feature-copy > p:not(.hp-context) {
    font-size: 16px;
  }
  .hp-main .mm-feature-copy .hp-button {
    width: 100%;
    justify-content: center;
  }
  .hp-main .mm-feature-picture {
    border-radius: 10px;
  }
  .hp-main .mm-feature-specs {
    gap: 12px 16px;
  }
}
