/* GENEMU home media: item rarity video, PC captures and Main Mobile. */

/* Three FPS profiles and three graphics APIs, in matching rows. */
.v7-hero-actions { flex-wrap: wrap; }
.gm-mobile-shortcut { gap: 8px; }
.v7-proof-row.gm-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 570px;
}
.gm-hero-proof > div {
  min-width: 0;
  padding: 12px 13px;
  gap: 6px;
}
.gm-hero-proof > .gm-proof-api { border-color: rgba(216, 181, 107, .2); }
.gm-hero-proof .gm-proof-api strong { color: #e4c77f; }
.gm-hero-proof span { white-space: nowrap; }
.gm-render-card { min-width: 0; }
.gm-render-card .v7-tech-card-top { min-height: 18px; }
.gm-render-card .v7-tech-card-top b { font-size: 14px; letter-spacing: .06em; }
.gm-render-card h3 { margin: 22px 0 10px; font-size: clamp(26px, 2.4vw, 31px); line-height: 1.16; }
.gm-render-api-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 19px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.gm-render-api-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(216, 181, 107, .2);
  border-radius: 4px;
  background: rgba(216, 181, 107, .035);
}
.gm-render-api-chip b { color: #e4c77f; font-size: 14px; line-height: 1.3; letter-spacing: .02em; }
.gm-render-api-chip span { color: #b9c7d9; font-size: 11px; line-height: 1.4; white-space: nowrap; }

/* Rarity card: override the legacy decorative card's large empty heading gap. */
.v7-system-card.gm-rarity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 430px;
  padding: 23px;
  background: linear-gradient(150deg, #0d1b2e, #081321 78%);
}
.gm-rarity .gm-eyebrow {
  display: block;
  color: #c5a768;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: .15em;
}
.gm-rarity .gm-rarity-copy h3 {
  margin: 15px 0 10px;
  color: #edf2f9;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.gm-rarity .gm-rarity-copy p {
  margin: 0;
  color: #a3b2c7;
  font-size: 13px;
  line-height: 1.7;
}
.gm-rarity .gm-tier-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}
.gm-tier-list > li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(181, 199, 223, .18);
  border-radius: 4px;
  background: rgba(6, 12, 21, .3);
  color: #c4cedb;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.gm-tier-list > li::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.gm-tier-list > li[data-tier="common"] { color: #8ed1a8; border-color: rgba(142, 209, 168, .27); }
.gm-tier-list > li[data-tier="rare"] { color: #91b8e9; border-color: rgba(145, 184, 233, .27); }
.gm-tier-list > li[data-tier="epic"] { color: #c8a7ed; border-color: rgba(200, 167, 237, .27); }
.gm-tier-list > li[data-tier="legendary"] { color: #efaba8; border-color: rgba(239, 171, 168, .28); }
.gm-tier-list > li[data-tier="mythic"] { color: #e9c77e; border-color: rgba(233, 199, 126, .3); }
.gm-rarity .gm-rarity-media {
  margin: auto -23px -23px;
  border-top: 1px solid rgba(181, 199, 223, .13);
  background: #02070d;
}
.gm-rarity-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #02070d;
}
.gm-video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-height: 47px;
  padding: 7px 16px;
  border-top: 1px solid rgba(181, 199, 223, .1);
  background: #081321;
}
.gm-video-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-2);
  font-size: 11px;
  line-height: 1.5;
}
.gm-video-link:hover { color: #fff; }
.gm-video-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 5px 11px;
  border: 1px solid rgba(216, 181, 107, .28);
  border-radius: 4px;
  background: rgba(216, 181, 107, .045);
  color: #e6cb92;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
}
.gm-video-toggle[hidden] { display: none; }
.gm-video-toggle:hover { background: rgba(216, 181, 107, .1); }

/* GL uses the same overlay cards as the rest of the PC gallery. */
.gm-media-link { display: block; min-width: 0; }
.gm-pc-gallery .gm-grow-shot img { object-fit: contain; }
.gm-pc-gallery .gm-grow-shot:hover img { transform: none; }

/* Dedicated mobile section with real landscape captures and visible controls. */
.gm-mobile {
  position: relative;
  border-top: 1px solid rgba(216, 181, 107, .1);
  border-bottom: 1px solid rgba(216, 181, 107, .1);
  background: radial-gradient(ellipse at 86% 22%, rgba(35, 63, 106, .17), transparent 55%), #050e1b;
  scroll-margin-top: 96px;
}
.gm-mobile-layout {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: center;
  gap: 44px;
}
.gm-mobile-copy { min-width: 0; }
.gm-mobile-copy .eyebrow { color: #d6bc83; font-size: 10px; letter-spacing: .15em; }
.gm-mobile-copy h2 {
  margin: 15px 0 20px;
  color: #f0f4fa;
  font-size: clamp(35px, 4.1vw, 56px);
  line-height: 1.06;
  letter-spacing: -.045em;
  overflow-wrap: break-word;
}
.gm-mobile-copy > p {
  margin: 0;
  max-width: 430px;
  color: #a4b3c7;
  font-size: 14px;
  line-height: 1.85;
}
.gm-mobile-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0 28px;
  padding: 0;
  list-style: none;
}
.gm-mobile-features > li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(157, 179, 209, .17);
  border-radius: 5px;
  background: rgba(16, 31, 52, .6);
  color: #bdcbdc;
  font-size: 11px;
  line-height: 1.5;
}
.gm-mobile-features > li::before {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: #d7bd87;
  content: "";
}
.gm-mobile-copy .btn { min-height: 46px; font-size: 13px; }
.gm-mobile-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  min-width: 0;
}
.gm-mobile-shot {
  display: block;
  min-width: 0;
  border: 1px solid rgba(141, 166, 198, .22);
  border-radius: 10px;
  background: #02070d;
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0, 0, 0, .16);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.gm-mobile-shot:first-child { grid-column: 1 / -1; border-color: rgba(216, 181, 107, .31); }
.gm-mobile-shot > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2048 / 921;
  object-fit: contain;
  background: #02070d;
}
.gm-shot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
  min-height: 47px;
  padding: 12px 14px;
  border-top: 1px solid rgba(141, 166, 198, .13);
  background: #0a1727;
}
.gm-shot-caption strong { color: #cfdae8; font-size: 11px; font-weight: 650; line-height: 1.55; }
.gm-shot-caption small { color: #c4ab76; font-size: 9px; line-height: 1.6; }
.gm-mobile-shot:hover { border-color: rgba(216, 181, 107, .58); box-shadow: 0 19px 40px rgba(0, 0, 0, .25); }

/* Native image dialog: keyboard focus stays inside while it is open. */
.gm-viewer {
  width: min(1500px, 96vw);
  max-width: 96vw;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(162, 184, 212, .22);
  border-radius: 12px;
  color: var(--text);
  background: #07111e;
  box-shadow: 0 25px 100px rgba(0, 0, 0, .65);
  overflow: auto;
}
.gm-viewer:not([open]) { display: none; }
.gm-viewer[open] { display: block; }
.gm-viewer::backdrop { background: rgba(1, 5, 10, .91); }
.gm-viewer-shell { min-width: 0; }
.gm-viewer-top,
.gm-viewer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #0a1727;
}
.gm-viewer-top { border-bottom: 1px solid var(--line); }
.gm-viewer-top h2 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; color: #d4dfed; }
.gm-viewer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid rgba(171, 190, 216, .2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
  color: #d4dfed;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}
.gm-viewer button:hover { border-color: rgba(216, 181, 107, .5); color: #f0d59b; }
.gm-viewer .gm-viewer-close { flex: 0 0 auto; }
.gm-viewer figure { margin: 0; background: #030911; }
.gm-viewer [data-gm-viewer-image] {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  max-height: min(75dvh, calc(100dvh - 205px));
  margin: 0 auto;
  object-fit: contain;
}
.gm-viewer [data-gm-viewer-caption] {
  padding: 11px 16px;
  color: #b8c7db;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}
.gm-viewer-bottom { border-top: 1px solid var(--line); }
.gm-viewer-counter { margin: 0; color: #a7b6cb; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.gm-viewer-open { overflow: hidden; }
.gm-rarity :is(a, button, video):focus-visible,
.gm-pc-gallery a:focus-visible,
.gm-mobile :is(a, button):focus-visible,
.gm-viewer button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .gm-mobile-layout { gap: 30px; grid-template-columns: .75fr 1.25fr; }
  .gm-mobile-copy h2 { font-size: 42px; }
  .gm-rarity .gm-tier-list { gap: 5px; }
  .gm-tier-list > li { padding: 5px 7px; font-size: 9px; }
}
@media (max-width: 980px) {
  .v7-system-card.gm-rarity { grid-column: span 12; min-height: 0; }
  .gm-rarity .gm-rarity-media { margin-top: 0; }
  .gm-rarity .gm-tier-list { gap: 7px; }
  .gm-tier-list > li { padding: 6px 10px; font-size: 11px; }
}
@media (max-width: 900px) {
  .gm-mobile-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gm-mobile-copy h2 { max-width: 680px; font-size: clamp(36px, 6vw, 48px); }
  .gm-mobile-copy > p { max-width: 660px; }
  .gm-mobile-features { margin: 20px 0 22px; }
}
@media (max-width: 680px) {
  .gm-pc-gallery .gm-grow-shot { min-height: 0; }
  .gm-viewer-top,
  .gm-viewer-bottom { padding: 9px 10px; gap: 8px; }
  .gm-viewer button { padding: 9px 10px; font-size: 11px; }
  .gm-viewer-top h2 { font-size: 12px; }
}
@media (max-width: 580px) {
  .gm-hero-proof > div { flex-direction: column; align-items: center; justify-content: center; min-height: 70px; padding: 11px 5px; gap: 7px; }
  .gm-hero-proof strong { font-size: 22px; line-height: 1; }
  .gm-hero-proof span { font-size: 8px; letter-spacing: .09em; }
  .v7-system-card.gm-rarity { padding: 19px; }
  .gm-rarity .gm-rarity-media { margin-left: -19px; margin-right: -19px; margin-bottom: -19px; }
  .gm-rarity .gm-rarity-copy h3 { margin-top: 13px; font-size: 26px; }
  .gm-rarity .gm-tier-list { margin-top: 16px; margin-bottom: 17px; gap: 5px; }
  .gm-tier-list > li { padding: 5px 7px; font-size: 10px; }
  .gm-video-caption { padding-left: 12px; padding-right: 12px; }
  .gm-mobile { padding: 60px 0; scroll-margin-top: 80px; }
  .gm-mobile-gallery { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gm-mobile-shot:first-child { grid-column: auto; }
  .gm-mobile-copy h2 { font-size: 38px; }
  .gm-mobile-copy > p { font-size: 13px; }
  .gm-shot-caption strong { font-size: 12px; }
  .gm-shot-caption small { font-size: 10px; }
  .gm-viewer { width: calc(100vw - 16px); max-width: calc(100vw - 16px); border-radius: 8px; }
  .gm-viewer [data-gm-viewer-caption] { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-rarity *,
  .gm-mobile *,
  .gm-pc-gallery .gm-media-link,
  .gm-pc-gallery .gm-media-link img,
  .gm-viewer * { animation: none !important; transition: none !important; }
}
