/* 5LB personal material game, visual system 2026 */

.pmg-root {
  --pmg-accent: #ff5b00;
  --pmg-accent-hover: #e84f00;
  --pmg-ink: #151515;
  --pmg-soft-ink: #3f423f;
  --pmg-muted: #70746f;
  --pmg-bg: #f3f5f2;
  --pmg-surface: #ffffff;
  --pmg-soft: #e9ece8;
  --pmg-line: #d9ddd8;
  --pmg-line-strong: #bfc5be;
  --pmg-green: #168b58;
  --pmg-lime: #cdf15a;
  --pmg-teal: #5dc8bc;
  --pmg-blue: #8098ff;
  --pmg-radius: 8px;
  --pmg-shadow: 0 18px 50px rgba(24, 29, 24, 0.11);

  box-sizing: border-box;
  width: 100%;
  min-height: 100svh;
  padding: 16px;
  background: var(--pmg-bg);
  color: var(--pmg-ink);
  font-family: Onest, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pmg-root *,
.pmg-root *::before,
.pmg-root *::after {
  box-sizing: border-box;
}

.pmg-root button,
.pmg-root a {
  -webkit-tap-highlight-color: transparent;
}

.pmg-shell {
  width: min(1240px, 100%);
  min-height: calc(100svh - 32px);
  margin: 0 auto;
  display: grid;
  align-items: stretch;
}

.pmg-shell > main {
  min-width: 0;
  display: grid;
}

.pmg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pmg-primary,
.pmg-back,
.pmg-text-button,
.pmg-jtbd-card,
.pmg-answer,
.pmg-delivery-link,
.pmg-modal-close,
.pmg-store-link {
  font: inherit;
  letter-spacing: 0;
}

.pmg-primary {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--pmg-accent);
  border-radius: 6px;
  padding: 0 8px 0 20px;
  background: var(--pmg-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255, 91, 0, 0.2);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.pmg-primary i {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: #ffffff;
  color: var(--pmg-accent);
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

.pmg-primary:hover {
  background: var(--pmg-accent-hover);
  box-shadow: 0 15px 32px rgba(255, 91, 0, 0.26);
  transform: translateY(-1px);
}

.pmg-primary:active {
  transform: translateY(0);
}

.pmg-primary:focus-visible,
.pmg-text-button:focus-visible,
.pmg-back:focus-visible,
.pmg-jtbd-card:focus-visible,
.pmg-answer:focus-visible,
.pmg-delivery-link:focus-visible,
.pmg-modal-close:focus-visible,
.pmg-store-link:focus-visible {
  outline: 3px solid rgba(255, 91, 0, 0.25);
  outline-offset: 3px;
}

.pmg-root [data-pmg-autofocus]:focus {
  outline: none;
}

.pmg-text-button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 0 8px;
  background: transparent;
  color: var(--pmg-soft-ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.pmg-brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--pmg-ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.pmg-brand b {
  color: var(--pmg-accent);
  font: inherit;
}

.pmg-eyebrow,
.pmg-section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pmg-soft-ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.pmg-eyebrow i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--pmg-accent);
}

.pmg-entry {
  min-height: calc(100svh - 32px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 26px 34px 22px;
  border: 1px solid var(--pmg-line);
  border-radius: var(--pmg-radius);
  background: var(--pmg-surface);
  overflow: hidden;
}

.pmg-brandbar,
.pmg-result-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--pmg-line);
  padding-bottom: 18px;
}

.pmg-brandbar-note {
  color: var(--pmg-muted);
  font-size: 13px;
  font-weight: 650;
}

.pmg-entry-main {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.pmg-entry-main > .pmg-entry-copy,
.pmg-entry-main > .pmg-entry-media {
  grid-area: 1 / 1;
}

.pmg-entry-copy {
  position: relative;
  z-index: 2;
  width: min(54%, 620px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 48px 38px;
}

.pmg-entry h1,
.pmg-heading h2,
.pmg-clarification h2,
.pmg-matching h2,
.pmg-result h2,
.pmg-modal h2,
.pmg-redirect h2 {
  margin: 0;
  color: var(--pmg-ink);
  letter-spacing: 0;
}

.pmg-entry h1 {
  max-width: 650px;
  font-size: 58px;
  line-height: 1.01;
  font-weight: 820;
}

.pmg-entry p,
.pmg-heading p,
.pmg-result p,
.pmg-modal p,
.pmg-redirect p,
.pmg-matching p {
  margin: 0;
  color: var(--pmg-muted);
  line-height: 1.55;
}

.pmg-entry-copy > p {
  max-width: 560px;
  font-size: 18px;
}

.pmg-entry-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.pmg-time-note {
  color: var(--pmg-muted);
  font-size: 13px;
  font-weight: 600;
}

.pmg-entry-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 8px;
}

.pmg-entry-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--pmg-muted);
  font-size: 12px;
  font-weight: 620;
}

.pmg-entry-facts b {
  color: var(--pmg-ink);
  font-size: 15px;
}

.pmg-entry-media {
  position: relative;
  z-index: 1;
  min-height: 540px;
  border-radius: 7px;
  overflow: hidden;
}

.pmg-entry-media .pmg-photo-label {
  right: 16px;
  left: auto;
}

.pmg-entry-media .pmg-photo-scene::after {
  bottom: -24%;
  height: 52%;
}

.pmg-entry-media .pmg-photo-scene > span {
  left: 62%;
  bottom: 13%;
  width: 17%;
  height: 50%;
}

.pmg-entry-media .pmg-photo-scene > i {
  right: 17%;
  width: 11%;
  height: 38%;
}

.pmg-entry-media .pmg-photo-scene > b {
  right: 5%;
  width: 10%;
  height: 29%;
}

.pmg-entry-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pmg-photo-placeholder {
  border: 1px solid #c7cec6;
  background: #dce2dc;
  color: var(--pmg-ink);
}

.pmg-photo-label {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pmg-soft-ink);
  font-size: 10px;
  font-weight: 850;
}

.pmg-photo-caption {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  max-width: 210px;
  border-radius: 4px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pmg-soft-ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.pmg-photo-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pmg-photo-scene::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 54%;
  background: #cbd7d1;
}

.pmg-photo-scene::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -16%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  background: #8cab92;
  transform: rotate(-4deg);
}

.pmg-photo-scene > span {
  position: absolute;
  z-index: 1;
  left: 15%;
  bottom: 15%;
  width: 24%;
  height: 54%;
  border-radius: 48% 48% 10% 10%;
  background: #f4f1e9;
  transform: rotate(6deg);
}

.pmg-photo-scene > span::before {
  content: "";
  position: absolute;
  top: -14%;
  left: 29%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #343834;
}

.pmg-photo-scene > i,
.pmg-photo-scene > b {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  width: 15%;
  border-radius: 5px 5px 2px 2px;
  box-shadow: 0 18px 34px rgba(39, 50, 40, 0.16);
}

.pmg-photo-scene > i {
  right: 24%;
  height: 43%;
  background: var(--pmg-accent);
  transform: rotate(-7deg);
}

.pmg-photo-scene > b {
  right: 10%;
  height: 34%;
  background: var(--pmg-lime);
  transform: rotate(5deg);
}

.pmg-entry-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--pmg-line);
}

.pmg-entry-route span {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 1px solid var(--pmg-line);
  padding: 14px 18px 0 0;
  color: var(--pmg-soft-ink);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.35;
}

.pmg-entry-route span + span {
  padding-left: 18px;
}

.pmg-entry-route span:last-child {
  border-right: 0;
}

.pmg-entry-route b {
  color: var(--pmg-accent);
  font-size: 11px;
}

.pmg-game-screen {
  min-height: calc(100svh - 32px);
  align-self: stretch;
  padding: 28px 32px 34px;
  border: 1px solid var(--pmg-line);
  border-radius: var(--pmg-radius);
  background: var(--pmg-surface);
}

.pmg-topbar {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(140px, 0.7fr) minmax(90px, 1fr);
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--pmg-line);
  padding-bottom: 18px;
  margin-bottom: 34px;
}

.pmg-topbar-left {
  display: flex;
  align-items: center;
}

.pmg-steps {
  justify-self: end;
  color: var(--pmg-muted);
  font-size: 12px;
  font-weight: 700;
}

.pmg-step-progress {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.pmg-step-progress span {
  height: 4px;
  border-radius: 2px;
  background: var(--pmg-soft);
}

.pmg-step-progress .pmg-step-active {
  background: var(--pmg-accent);
}

.pmg-back {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 4px;
  padding: 0 8px 0 0;
  background: transparent;
  color: var(--pmg-ink);
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
}

.pmg-back i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pmg-line);
  border-radius: 4px;
  font-size: 18px;
  font-style: normal;
}

.pmg-back:hover i {
  border-color: var(--pmg-accent);
}

.pmg-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.pmg-section-label {
  margin-bottom: 10px;
  color: var(--pmg-accent);
  font-size: 11px;
  text-transform: uppercase;
}

.pmg-heading h2,
.pmg-clarification h2 {
  font-size: 40px;
  line-height: 1.08;
  font-weight: 810;
}

.pmg-heading p {
  max-width: 680px;
  margin-top: 10px;
  font-size: 15px;
}

.pmg-jtbd-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.pmg-jtbd-card {
  --card-accent: var(--pmg-accent);
  position: relative;
  min-height: 184px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--pmg-line);
  border-radius: 7px;
  padding: 15px;
  background: #fbfcfa;
  color: var(--pmg-ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.pmg-jtbd-card::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--card-accent);
  transform: scaleX(0.24);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.pmg-jtbd-card:hover,
.pmg-jtbd-card:focus-visible,
.pmg-answer:hover,
.pmg-answer:focus-visible {
  border-color: #aeb5ad;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(21, 28, 22, 0.08);
  transform: translateY(-2px);
}

.pmg-jtbd-card:hover::after,
.pmg-jtbd-card:focus-visible::after,
.pmg-jtbd-card.pmg-selected::after {
  transform: scaleX(1);
}

.pmg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pmg-card-index {
  min-width: 28px;
  color: var(--pmg-muted);
  font-size: 11px;
  font-weight: 800;
}

.pmg-card-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pmg-line);
  border-radius: 4px;
  color: var(--pmg-soft-ink);
  font-size: 15px;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.pmg-jtbd-card:hover .pmg-card-arrow,
.pmg-jtbd-card:focus-visible .pmg-card-arrow {
  border-color: var(--pmg-accent);
  background: var(--pmg-accent);
  color: #ffffff;
}

.pmg-card-title {
  min-height: 80px;
  display: flex;
  align-items: flex-end;
  font-size: 15px;
  line-height: 1.32;
  font-weight: 730;
}

.pmg-accent-energy { --card-accent: var(--pmg-accent); }
.pmg-accent-signals { --card-accent: var(--pmg-teal); }
.pmg-accent-check { --card-accent: var(--pmg-blue); }
.pmg-accent-nutrition { --card-accent: var(--pmg-green); }
.pmg-accent-magnesium { --card-accent: var(--pmg-lime); }

.pmg-selected {
  border-color: var(--pmg-accent);
}

.pmg-clarification-layout {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(440px, 1.28fr);
  gap: 64px;
  align-items: center;
  padding: 20px 4% 44px;
}

.pmg-clarification-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pmg-selected-task {
  margin-top: 28px;
  border-left: 3px solid var(--pmg-accent);
  padding: 2px 0 2px 16px;
}

.pmg-selected-task span,
.pmg-selected-task strong {
  display: block;
}

.pmg-selected-task span {
  margin-bottom: 5px;
  color: var(--pmg-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.pmg-selected-task strong {
  max-width: 360px;
  color: var(--pmg-soft-ink);
  font-size: 14px;
  line-height: 1.4;
}

.pmg-answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pmg-answer {
  min-height: 124px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--pmg-line);
  border-radius: 7px;
  padding: 18px;
  background: #fbfcfa;
  color: var(--pmg-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.pmg-answer > span {
  font-size: 16px;
  line-height: 1.32;
  font-weight: 720;
}

.pmg-answer > i {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--pmg-line);
  border-radius: 4px;
  color: var(--pmg-soft-ink);
  font-size: 16px;
  font-style: normal;
}

.pmg-answer:hover > i,
.pmg-answer:focus-visible > i {
  border-color: var(--pmg-accent);
  background: var(--pmg-accent);
  color: #ffffff;
}

.pmg-matching {
  min-height: calc(100svh - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: var(--pmg-radius);
  padding: 36px;
  background: #181a18;
  color: #ffffff;
  overflow: hidden;
}

.pmg-match-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c8ccc8;
  font-size: 12px;
  font-weight: 700;
}

.pmg-match-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pmg-accent);
  animation: pmg-pulse 900ms ease-in-out infinite;
}

.pmg-match-stage {
  position: relative;
  width: min(450px, 90%);
  height: 210px;
  margin: 10px 0 6px;
}

.pmg-match-tile {
  position: absolute;
  top: 25px;
  width: 132px;
  height: 166px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: #2f342f;
}

.pmg-match-tile::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: 88px;
  border-radius: 4px;
  background: #687267;
}

.pmg-match-tile::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 38px;
  bottom: 18px;
  height: 22px;
  border-top: 5px solid rgba(255, 255, 255, 0.68);
  border-bottom: 5px solid rgba(255, 255, 255, 0.28);
}

.pmg-match-tile-one { left: 0; transform: rotate(-5deg); }
.pmg-match-tile-two { left: 50%; transform: translateX(-50%); }
.pmg-match-tile-three { right: 0; transform: rotate(5deg); }

.pmg-match-tile-two::before { background: #8f9d8e; }
.pmg-match-tile-three::before { background: #786b61; }

.pmg-match-scan {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 0;
  width: 2px;
  height: 184px;
  background: var(--pmg-accent);
  box-shadow: 0 0 18px rgba(255, 91, 0, 0.8);
  animation: pmg-scan 2100ms ease-in-out infinite;
}

.pmg-matching h2 {
  max-width: 610px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 790;
  text-align: center;
}

.pmg-matching p {
  color: #aeb4ae;
  font-size: 14px;
  text-align: center;
}

.pmg-match-progress {
  width: min(320px, 78%);
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.pmg-match-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--pmg-accent);
  transform-origin: left center;
  animation: pmg-progress 5000ms ease forwards;
}

@keyframes pmg-scan {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(448px); opacity: 1; }
}

@keyframes pmg-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes pmg-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.pmg-result {
  min-height: calc(100svh - 32px);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 26px 34px 34px;
  border: 1px solid var(--pmg-line);
  border-radius: var(--pmg-radius);
  background: var(--pmg-surface);
}

.pmg-result-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(430px, 1.18fr);
  gap: 54px;
  align-items: start;
  padding: 64px 3% 0;
}

.pmg-result-cover {
  min-height: 560px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  padding: 26px;
  background: #e5e9e4;
  overflow: hidden;
}

.pmg-cover-image {
  width: min(100%, 380px);
  max-height: 540px;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: var(--pmg-shadow);
}

.pmg-cover-placeholder {
  width: min(100%, 380px);
  aspect-ratio: 0.74;
  display: grid;
  grid-template-rows: 58% 42%;
  border: 1px solid #cfd5ce;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(28, 35, 29, 0.16);
  overflow: hidden;
}

.pmg-cover-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #dce2dc;
}

.pmg-cover-photo .pmg-photo-scene > span {
  left: 12%;
}

.pmg-cover-copy {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 9px 16px;
  padding: 17px 18px 18px;
}

.pmg-cover-tag {
  align-self: start;
  color: var(--pmg-accent);
  font-size: 10px;
  font-weight: 850;
}

.pmg-cover-copy > strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  color: #bfc5bf;
  font-size: 46px;
  line-height: 0.9;
  font-weight: 900;
}

.pmg-cover-copy > small {
  align-self: end;
  color: var(--pmg-ink);
  font-size: 18px;
  line-height: 1.16;
  font-weight: 800;
}

.pmg-result-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.pmg-result h2 {
  max-width: 690px;
  font-size: 46px;
  line-height: 1.04;
  font-weight: 820;
}

.pmg-result-copy > p {
  max-width: 610px;
  font-size: 17px;
}

.pmg-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  padding: 0 10px;
  background: #e9f7ef;
  color: #116c43;
  font-size: 12px;
  font-weight: 760;
}

.pmg-status span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pmg-green);
  color: #ffffff;
  font-size: 11px;
}

.pmg-result-contents {
  width: 100%;
  max-width: 640px;
  border-top: 1px solid var(--pmg-line);
  border-bottom: 1px solid var(--pmg-line);
  padding: 16px 0;
}

.pmg-result-contents > span {
  display: block;
  margin-bottom: 10px;
  color: var(--pmg-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pmg-result-contents ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pmg-result-contents li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  color: var(--pmg-soft-ink);
  font-size: 14px;
  line-height: 1.38;
}

.pmg-result-contents li i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf0ec;
  color: var(--pmg-green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.pmg-result-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.pmg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pmg-modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 17, 15, 0.64);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.pmg-modal-box {
  position: relative;
  width: min(540px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--pmg-line);
  border-radius: var(--pmg-radius);
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.pmg-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pmg-line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--pmg-ink);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.pmg-modal-mark,
.pmg-redirect-check {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pmg-accent);
  color: #ffffff;
  font-size: 23px;
  font-weight: 850;
}

.pmg-claim-free {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0 9px;
  background: var(--pmg-lime);
  color: var(--pmg-ink);
  font-size: 11px;
  font-weight: 820;
}

.pmg-modal h2 {
  max-width: 430px;
  padding-right: 38px;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 820;
}

.pmg-modal p {
  font-size: 15px;
}

.pmg-claim-material {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--pmg-line);
  border-bottom: 1px solid var(--pmg-line);
  padding: 12px 0;
}

.pmg-claim-material span {
  color: var(--pmg-ink);
  font-size: 15px;
  font-weight: 760;
}

.pmg-claim-material small {
  display: block;
  margin-bottom: 3px;
  color: var(--pmg-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.pmg-claim-material strong {
  flex: none;
  color: var(--pmg-accent);
  font-size: 22px;
}

.pmg-modal-box > .pmg-primary {
  width: 100%;
}

.pmg-redirect {
  min-height: calc(100svh - 32px);
  display: grid;
  place-items: center;
  border: 1px solid var(--pmg-line);
  border-radius: var(--pmg-radius);
  background: #ffffff;
}

.pmg-redirect-main {
  position: relative;
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 42px 28px;
  text-align: center;
}

.pmg-redirect-main > .pmg-brand {
  position: absolute;
  top: 44px;
}

.pmg-redirect-check {
  width: 68px;
  height: 68px;
  margin-top: 38px;
  font-size: 28px;
}

.pmg-redirect h2 {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 820;
}

.pmg-redirect-main > p {
  max-width: 580px;
  font-size: 16px;
}

.pmg-redirect-material {
  width: 100%;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--pmg-line);
  border-bottom: 1px solid var(--pmg-line);
  padding: 14px 0;
  text-align: left;
}

.pmg-redirect-material .pmg-cover-placeholder {
  width: 76px;
  box-shadow: none;
}

.pmg-redirect-material .pmg-cover-image {
  width: 76px;
  height: 102px;
  border-radius: 4px;
  box-shadow: none;
  object-fit: cover;
}

.pmg-redirect-material .pmg-cover-photo .pmg-photo-label,
.pmg-redirect-material .pmg-photo-scene,
.pmg-redirect-material .pmg-cover-tag,
.pmg-redirect-material .pmg-cover-copy > strong {
  display: none;
}

.pmg-redirect-material .pmg-cover-photo {
  background: #cbd6cd;
}

.pmg-redirect-material .pmg-cover-copy {
  display: block;
  padding: 6px;
}

.pmg-redirect-material .pmg-cover-copy > small {
  display: block;
  font-size: 7px;
}

.pmg-redirect-material > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--pmg-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.pmg-redirect-material > div > strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}

.pmg-store-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pmg-store-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pmg-line-strong);
  border-radius: 5px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--pmg-ink);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
}

.pmg-store-primary {
  grid-column: 1 / -1;
  min-height: 54px;
  border-color: var(--pmg-accent);
  background: var(--pmg-accent);
  color: #ffffff;
}

.pmg-store-link:not(.pmg-disabled):hover {
  border-color: var(--pmg-accent);
}

.pmg-disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 1080px) {
  .pmg-entry h1 {
    font-size: 48px;
  }

  .pmg-entry-copy {
    width: min(60%, 570px);
    padding-inline: 30px;
  }

  .pmg-jtbd-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pmg-jtbd-card {
    min-height: 160px;
  }

  .pmg-card-title {
    min-height: 58px;
  }

  .pmg-clarification-layout {
    gap: 34px;
    padding-inline: 1%;
  }

  .pmg-result-layout {
    gap: 34px;
    padding-inline: 1%;
  }

  .pmg-result-cover {
    min-height: 500px;
  }

  .pmg-result h2 {
    font-size: 40px;
  }
}

@media (max-width: 820px) {
  .pmg-entry-copy {
    width: 68%;
    padding-inline: 24px;
  }

  .pmg-entry-media {
    min-height: 560px;
  }

  .pmg-entry-route span {
    align-items: flex-start;
  }

  .pmg-clarification-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    padding: 12px 0 32px;
  }

  .pmg-result-layout {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .pmg-result-cover {
    min-height: 470px;
  }
}

@media (max-width: 700px) {
  .pmg-root {
    padding: 0;
    background: #ffffff;
  }

  .pmg-shell {
    min-height: 100svh;
  }

  .pmg-entry,
  .pmg-game-screen,
  .pmg-result,
  .pmg-redirect,
  .pmg-matching {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }

  .pmg-entry {
    gap: 22px;
    padding: 18px 16px 20px;
  }

  .pmg-brandbar,
  .pmg-result-header {
    padding-bottom: 14px;
  }

  .pmg-brandbar-note {
    font-size: 11px;
  }

  .pmg-entry-main {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .pmg-entry-copy {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    padding: 10px 0 0;
  }

  .pmg-entry h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .pmg-entry-copy > p {
    font-size: 16px;
  }

  .pmg-entry-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pmg-primary {
    width: 100%;
  }

  .pmg-time-note {
    text-align: center;
  }

  .pmg-entry-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }

  .pmg-entry-facts span {
    min-width: 0;
    display: block;
    padding-right: 4px;
    font-size: 10px;
    line-height: 1.25;
  }

  .pmg-entry-facts b {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
  }

  .pmg-entry-media {
    min-height: 260px;
  }

  .pmg-entry-media .pmg-photo-scene > span {
    left: 24%;
    bottom: 4%;
    width: 25%;
    height: 28%;
  }

  .pmg-entry-media .pmg-photo-scene > i {
    right: 28%;
    bottom: 5%;
    width: 17%;
    height: 24%;
  }

  .pmg-entry-media .pmg-photo-scene > b {
    right: 8%;
    bottom: 5%;
    width: 15%;
    height: 18%;
  }

  .pmg-photo-caption {
    max-width: 170px;
    font-size: 10px;
  }

  .pmg-entry-route {
    grid-template-columns: 1fr;
  }

  .pmg-entry-route span,
  .pmg-entry-route span + span {
    min-height: 38px;
    border-right: 0;
    border-bottom: 1px solid var(--pmg-line);
    padding: 9px 0;
  }

  .pmg-entry-route span:last-child {
    border-bottom: 0;
  }

  .pmg-game-screen,
  .pmg-result {
    padding: 18px 16px 24px;
  }

  .pmg-topbar {
    grid-template-columns: 84px minmax(90px, 1fr) 72px;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 14px;
  }

  .pmg-steps {
    font-size: 10px;
  }

  .pmg-heading {
    margin-bottom: 18px;
  }

  .pmg-heading h2,
  .pmg-clarification h2 {
    font-size: 29px;
  }

  .pmg-heading p {
    font-size: 14px;
  }

  .pmg-jtbd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .pmg-jtbd-card {
    min-height: 148px;
    gap: 14px;
    padding: 12px;
  }

  .pmg-jtbd-card::after {
    left: 12px;
    right: 12px;
  }

  .pmg-card-arrow {
    width: 28px;
    height: 28px;
  }

  .pmg-card-title {
    min-height: 64px;
    font-size: 13px;
    line-height: 1.28;
  }

  .pmg-clarification-layout {
    gap: 24px;
  }

  .pmg-selected-task {
    margin-top: 20px;
  }

  .pmg-answer-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .pmg-answer {
    min-height: 76px;
    align-items: center;
    padding: 14px;
  }

  .pmg-answer > span {
    font-size: 14px;
  }

  .pmg-matching {
    padding: 22px 16px;
  }

  .pmg-match-stage {
    width: 300px;
    height: 166px;
  }

  .pmg-match-tile {
    width: 94px;
    height: 132px;
  }

  .pmg-match-tile::before {
    height: 66px;
  }

  .pmg-match-scan {
    height: 148px;
  }

  .pmg-matching h2 {
    font-size: 27px;
  }

  @keyframes pmg-scan {
    0%, 100% { transform: translateX(0); opacity: 0.3; }
    50% { transform: translateX(298px); opacity: 1; }
  }

  .pmg-result-layout {
    gap: 24px;
    padding: 22px 0 0;
  }

  .pmg-result-cover {
    min-height: 390px;
    padding: 18px;
  }

  .pmg-cover-placeholder {
    width: min(100%, 270px);
  }

  .pmg-cover-copy {
    padding: 12px 13px 13px;
  }

  .pmg-cover-copy > strong {
    font-size: 36px;
  }

  .pmg-cover-copy > small {
    font-size: 14px;
  }

  .pmg-result-copy {
    gap: 14px;
  }

  .pmg-result h2 {
    font-size: 32px;
    line-height: 1.06;
  }

  .pmg-result-copy > p {
    font-size: 15px;
  }

  .pmg-result-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .pmg-modal {
    align-items: end;
    padding: 8px;
  }

  .pmg-modal-box {
    gap: 12px;
    padding: 22px 18px max(20px, env(safe-area-inset-bottom));
  }

  .pmg-modal h2 {
    font-size: 27px;
  }

  .pmg-modal-mark {
    width: 48px;
    height: 48px;
  }

  .pmg-redirect-main {
    padding: 34px 16px max(26px, env(safe-area-inset-bottom));
  }

  .pmg-redirect-main > .pmg-brand {
    top: 24px;
  }

  .pmg-redirect h2 {
    font-size: 34px;
  }

  .pmg-store-row {
    grid-template-columns: 1fr;
  }

  .pmg-store-primary {
    grid-column: auto;
  }
}

@media (max-width: 370px) {
  .pmg-entry h1 {
    font-size: 34px;
  }

  .pmg-entry-media {
    min-height: 230px;
  }

  .pmg-jtbd-card {
    min-height: 140px;
    padding: 10px;
  }

  .pmg-card-title {
    font-size: 12.5px;
  }

  .pmg-heading h2,
  .pmg-clarification h2 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pmg-root *,
  .pmg-root *::before,
  .pmg-root *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact embedded layout for the Bitrix page shell. */
.pmg-root {
  min-height: 0;
  padding: 10px 0 38px;
  background: transparent;
  scroll-margin-top: 112px;
}

.pmg-shell {
  width: min(1180px, 100%);
  min-height: 0;
}

.pmg-entry,
.pmg-game-screen,
.pmg-result,
.pmg-redirect {
  min-height: 0;
  border-color: #dfe4dd;
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(31, 37, 31, 0.07);
}

.pmg-entry {
  grid-template-rows: auto auto auto;
  gap: 20px;
  padding: 22px;
}

.pmg-brandbar,
.pmg-result-header {
  min-height: 34px;
  padding-bottom: 14px;
}

.pmg-brand {
  font-size: 22px;
}

.pmg-entry-main {
  min-height: 438px;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 22px;
}

.pmg-entry-main > .pmg-entry-copy,
.pmg-entry-main > .pmg-entry-media {
  grid-area: auto;
}

.pmg-entry-copy {
  width: 100%;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--pmg-line);
  border-radius: 7px;
  padding: 30px;
  background: #f7f8f5;
}

.pmg-entry h1 {
  max-width: 560px;
  font-size: 44px;
  line-height: 1.04;
  font-weight: 830;
}

.pmg-entry-copy > p {
  max-width: 540px;
  font-size: 16px;
  line-height: 1.52;
}

.pmg-entry-actions {
  margin-top: 2px;
}

.pmg-primary {
  min-height: 50px;
  gap: 16px;
  padding-left: 18px;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(255, 91, 0, 0.18);
}

.pmg-primary i {
  width: 36px;
  height: 36px;
}

.pmg-entry-facts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.pmg-entry-facts span {
  min-height: 58px;
  display: block;
  border: 1px solid var(--pmg-line);
  border-radius: 6px;
  padding: 10px;
  background: #ffffff;
  font-size: 11px;
  line-height: 1.25;
}

.pmg-entry-facts b {
  display: block;
  margin-bottom: 5px;
}

.pmg-entry-media {
  min-height: 438px;
  border-radius: 7px;
  background: #dfe7e0;
}

.pmg-photo-placeholder {
  border-color: #cbd4cb;
}

.pmg-photo-scene::before {
  height: 52%;
  background: #c6d4cf;
}

.pmg-photo-scene::after {
  background: #839b87;
}

.pmg-photo-label {
  min-height: 26px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.pmg-photo-caption {
  max-width: 230px;
  font-size: 11px;
}

.pmg-entry-route span {
  min-height: 46px;
  padding-top: 12px;
  font-size: 12px;
}

.pmg-game-screen {
  padding: 22px;
}

.pmg-topbar {
  min-height: 42px;
  margin-bottom: 22px;
  padding-bottom: 14px;
}

.pmg-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.pmg-heading h2,
.pmg-clarification h2 {
  font-size: 34px;
  line-height: 1.08;
}

.pmg-heading p {
  max-width: 610px;
  margin-top: 8px;
  font-size: 14px;
}

.pmg-jtbd-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.pmg-jtbd-card {
  min-height: 138px;
  gap: 14px;
  padding: 13px;
}

.pmg-card-title {
  min-height: 56px;
  font-size: 14px;
  line-height: 1.28;
}

.pmg-card-arrow {
  width: 28px;
  height: 28px;
}

.pmg-clarification-layout {
  min-height: 420px;
  grid-template-columns: minmax(270px, 0.75fr) minmax(380px, 1.25fr);
  gap: 34px;
  padding: 8px 2% 18px;
}

.pmg-selected-task {
  margin-top: 22px;
}

.pmg-answer-list {
  gap: 9px;
}

.pmg-answer {
  min-height: 96px;
  align-items: center;
  padding: 16px;
}

.pmg-answer > span {
  font-size: 15px;
}

.pmg-matching {
  min-height: 520px;
  padding: 34px 22px;
}

.pmg-match-stage {
  height: 184px;
}

.pmg-match-tile {
  height: 148px;
}

.pmg-match-tile::before {
  height: 74px;
}

.pmg-match-scan {
  height: 164px;
}

.pmg-matching h2 {
  font-size: 30px;
}

.pmg-result {
  grid-template-rows: auto auto;
  padding: 22px;
}

.pmg-result-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 34px;
  padding: 28px 1% 4px;
  align-items: center;
}

.pmg-result-cover {
  min-height: 390px;
  padding: 20px;
}

.pmg-cover-placeholder {
  width: min(100%, 300px);
}

.pmg-result-copy {
  gap: 13px;
}

.pmg-result h2 {
  max-width: 590px;
  font-size: 38px;
  line-height: 1.06;
}

.pmg-result-copy > p {
  max-width: 560px;
  font-size: 16px;
}

.pmg-result-contents {
  padding: 13px 0;
}

.pmg-result-actions {
  margin-top: 2px;
}

.pmg-redirect {
  min-height: 520px;
}

.pmg-redirect h2 {
  font-size: 36px;
}

.pmg-load-error {
  min-height: 320px;
  display: grid;
  align-content: center;
  gap: 12px;
  border: 1px solid var(--pmg-line);
  border-radius: var(--pmg-radius);
  padding: 28px;
  background: #ffffff;
  color: var(--pmg-ink);
}

.pmg-load-error h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.pmg-load-error p {
  max-width: 560px;
  margin: 0;
  color: var(--pmg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.pmg-modal-close:focus-visible {
  outline: 0;
  border-color: var(--pmg-accent);
  box-shadow: 0 0 0 3px rgba(255, 91, 0, 0.18);
}

.pmg-root .pmg-result-layout {
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  align-items: start;
}

.pmg-root .pmg-result-cover {
  min-height: 360px;
  align-self: start;
}

.pmg-root .pmg-cover-placeholder {
  width: min(100%, 320px);
}

.pmg-root .pmg-result-copy {
  width: 100%;
  min-width: 0;
  max-width: 760px;
}

.pmg-root .pmg-result-contents {
  width: 100%;
  max-width: none;
}

.pmg-root .pmg-result-contents ul {
  width: 100%;
  display: grid !important;
  gap: 9px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pmg-root .pmg-result-contents li {
  min-width: 0;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.pmg-root .pmg-result-contents li::before,
.pmg-root .pmg-result-contents li::after {
  content: none !important;
  display: none !important;
}

.pmg-root .pmg-result-contents li::marker {
  content: "" !important;
  font-size: 0 !important;
}

.pmg-root .pmg-result-contents li i {
  grid-column: 1;
  grid-row: 1;
}

.pmg-root .pmg-result-contents li span {
  grid-column: 2;
  grid-row: 1;
  display: block !important;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  white-space: normal;
}

@media (max-width: 1080px) {
  .pmg-entry-main {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
    min-height: 410px;
  }

  .pmg-entry h1 {
    font-size: 38px;
  }

  .pmg-entry-media {
    min-height: 410px;
  }

  .pmg-jtbd-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pmg-result-layout {
    grid-template-columns: minmax(250px, 0.66fr) minmax(360px, 1fr);
  }
}

@media (max-width: 860px) {
  .pmg-entry-main {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pmg-entry-copy {
    padding: 24px;
  }

  .pmg-entry-media {
    min-height: 310px;
  }

  .pmg-clarification-layout,
  .pmg-result-layout {
    grid-template-columns: 1fr;
  }

  .pmg-result-cover {
    min-height: 330px;
  }
}

@media (max-width: 700px) {
  .pmg-root {
    padding: 0 0 26px;
    background: transparent;
    scroll-margin-top: 82px;
  }

  .pmg-shell {
    min-height: 0;
  }

  .pmg-entry,
  .pmg-game-screen,
  .pmg-result,
  .pmg-redirect,
  .pmg-matching {
    min-height: 0;
    border: 1px solid var(--pmg-line);
    border-radius: var(--pmg-radius);
  }

  .pmg-entry,
  .pmg-game-screen,
  .pmg-result {
    padding: 14px;
  }

  .pmg-entry {
    gap: 14px;
  }

  .pmg-brandbar,
  .pmg-result-header {
    padding-bottom: 10px;
  }

  .pmg-entry-copy {
    gap: 13px;
    padding: 18px;
  }

  .pmg-entry h1 {
    font-size: 31px;
    line-height: 1.08;
  }

  .pmg-entry-copy > p {
    font-size: 14px;
  }

  .pmg-entry-media {
    min-height: 220px;
  }

  .pmg-entry-facts {
    gap: 6px;
  }

  .pmg-entry-facts span {
    min-height: 54px;
    padding: 8px;
    font-size: 10px;
  }

  .pmg-entry-route {
    grid-template-columns: 1fr;
  }

  .pmg-entry-route span,
  .pmg-entry-route span + span {
    min-height: 34px;
    border-right: 0;
    border-bottom: 1px solid var(--pmg-line);
    padding: 8px 0;
  }

  .pmg-topbar {
    grid-template-columns: 82px minmax(70px, 1fr) 66px;
    margin-bottom: 16px;
  }

  .pmg-heading {
    margin-bottom: 14px;
  }

  .pmg-heading h2,
  .pmg-clarification h2 {
    font-size: 26px;
    line-height: 1.1;
  }

  .pmg-jtbd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .pmg-jtbd-card {
    min-height: 122px;
    padding: 11px;
  }

  .pmg-card-title {
    min-height: 50px;
    font-size: 12.5px;
  }

  .pmg-clarification-layout {
    gap: 18px;
    padding: 2px 0 10px;
  }

  .pmg-answer {
    min-height: 68px;
    padding: 13px;
  }

  .pmg-answer > span {
    font-size: 14px;
  }

  .pmg-matching {
    min-height: 430px;
    padding: 20px 14px;
  }

  .pmg-result-layout {
    gap: 18px;
    padding-top: 18px;
  }

  .pmg-result-cover {
    min-height: 260px;
  }

  .pmg-cover-placeholder {
    width: min(100%, 210px);
  }

  .pmg-result h2 {
    font-size: 29px;
  }

  .pmg-result-copy > p {
    font-size: 14px;
  }

  .pmg-modal-box {
    border-radius: 8px 8px 0 0;
  }

  .pmg-redirect {
    min-height: 430px;
  }

  .pmg-redirect h2 {
    font-size: 30px;
  }
}

@media (max-width: 370px) {
  .pmg-entry h1 {
    font-size: 28px;
  }

  .pmg-entry-copy {
    padding: 14px;
  }

  .pmg-entry-media {
    min-height: 196px;
  }

  .pmg-entry-facts {
    grid-template-columns: 1fr;
  }

  .pmg-jtbd-card {
    min-height: 118px;
    padding: 10px;
  }

  .pmg-card-title {
    min-height: 48px;
    font-size: 12px;
  }
}

@media (max-width: 860px) {
  .pmg-root .pmg-result-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pmg-root .pmg-result-cover {
    width: 100%;
    min-height: 330px;
  }

  .pmg-root .pmg-result-copy {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .pmg-root .pmg-result-layout {
    gap: 18px;
    padding-top: 18px;
  }

  .pmg-root .pmg-result-cover {
    min-height: 260px;
  }

  .pmg-root .pmg-cover-placeholder {
    width: min(100%, 210px);
  }
}

/* Minimal content mode: keep focus on headings, copy and actions. */
.pmg-root .pmg-entry {
  grid-template-rows: auto;
  gap: 0;
  padding: 22px;
}

.pmg-root .pmg-entry-main {
  min-height: 380px;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  align-items: stretch;
}

.pmg-root .pmg-entry-copy {
  border: 0;
  padding: 28px 26px 28px 10px;
  background: transparent;
}

.pmg-root .pmg-entry h1 {
  font-size: 42px;
}

.pmg-root .pmg-entry-media {
  min-height: 380px;
}

.pmg-root .pmg-entry-actions {
  margin-top: 8px;
}

.pmg-root .pmg-game-screen {
  padding: 28px 30px 32px;
}

.pmg-root .pmg-heading {
  margin-bottom: 22px;
}

.pmg-root .pmg-jtbd-card {
  min-height: 120px;
  justify-content: flex-end;
  padding: 16px;
}

.pmg-root .pmg-jtbd-card::after {
  content: none;
  display: none;
}

.pmg-root .pmg-card-title {
  min-height: 0;
  align-items: flex-start;
  font-size: 15px;
}

.pmg-root .pmg-clarification > .pmg-back {
  margin-bottom: 22px;
}

.pmg-root .pmg-clarification-layout {
  min-height: 340px;
  padding-top: 0;
}

.pmg-root .pmg-answer {
  min-height: 86px;
}

.pmg-root .pmg-matching {
  min-height: 420px;
}

.pmg-root .pmg-result {
  display: block;
  padding: 24px;
}

.pmg-root .pmg-result-layout {
  padding: 0;
}

.pmg-root .pmg-result-cover {
  min-height: 320px;
  background: #eef1ee;
}

.pmg-root .pmg-cover-placeholder {
  aspect-ratio: 1.08;
  display: block;
  width: min(100%, 340px);
}

.pmg-root .pmg-cover-photo {
  height: 100%;
}

.pmg-root .pmg-result h2 {
  font-size: 40px;
}

.pmg-root .pmg-modal-box {
  gap: 18px;
}

.pmg-root .pmg-modal h2 {
  padding-right: 44px;
}

.pmg-root .pmg-redirect {
  min-height: 360px;
}

.pmg-root .pmg-redirect-main {
  gap: 18px;
  padding: 36px 28px;
}

.pmg-root .pmg-store-row {
  grid-template-columns: 1fr;
  max-width: 440px;
}

.pmg-root .pmg-store-primary.pmg-disabled {
  opacity: 1;
}

@media (max-width: 1080px) {
  .pmg-root .pmg-entry-main {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.74fr);
  }
}

@media (max-width: 860px) {
  .pmg-root .pmg-entry-main {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pmg-root .pmg-entry-copy {
    padding: 12px 4px 18px;
  }

  .pmg-root .pmg-entry-media {
    min-height: 280px;
  }
}

@media (max-width: 700px) {
  .pmg-root .pmg-entry,
  .pmg-root .pmg-game-screen,
  .pmg-root .pmg-result {
    padding: 14px;
  }

  .pmg-root .pmg-entry h1 {
    font-size: 31px;
  }

  .pmg-root .pmg-entry-media {
    min-height: 210px;
  }

  .pmg-root .pmg-jtbd-card {
    min-height: 112px;
    padding: 12px;
  }

  .pmg-root .pmg-card-title {
    font-size: 13px;
  }

  .pmg-root .pmg-clarification > .pmg-back {
    margin-bottom: 18px;
  }

  .pmg-root .pmg-clarification-layout {
    min-height: 0;
  }

  .pmg-root .pmg-result-cover {
    min-height: 230px;
  }

  .pmg-root .pmg-cover-placeholder {
    width: min(100%, 260px);
  }
}

@media (max-width: 370px) {
  .pmg-root .pmg-entry h1 {
    font-size: 28px;
  }

  .pmg-root .pmg-jtbd-card {
    min-height: 108px;
  }
}

/* Realistic photo layer for 2026 cards and material covers. */
.pmg-root .pmg-shell {
  width: min(1360px, 100%);
}

.pmg-root .pmg-entry-media {
  background: #101310;
}

.pmg-root .pmg-entry-media > img {
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.pmg-root .pmg-jtbd-grid {
  gap: 12px;
}

.pmg-root .pmg-jtbd-card {
  min-height: 198px;
  isolation: isolate;
  justify-content: flex-end;
  border: 1px solid rgba(20, 24, 20, 0.1);
  padding: 18px;
  background: #1b1f1b;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(22, 27, 22, 0.08);
}

.pmg-root .pmg-jtbd-card.pmg-has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

.pmg-root .pmg-jtbd-card.pmg-has-image::after {
  content: none;
  display: none;
}

.pmg-root .pmg-card-media,
.pmg-root .pmg-card-shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.pmg-root .pmg-card-media {
  z-index: 0;
  overflow: hidden;
}

.pmg-root .pmg-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease;
}

.pmg-root .pmg-card-shade {
  z-index: 1;
  background: rgba(12, 14, 12, 0.34);
  box-shadow:
    inset 0 -138px 112px rgba(0, 0, 0, 0.62),
    inset 0 82px 90px rgba(0, 0, 0, 0.12);
}

.pmg-root .pmg-card-title {
  position: relative;
  z-index: 3;
  display: block;
  min-height: 0;
  max-width: 100%;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.22;
  font-weight: 780;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.pmg-root .pmg-jtbd-card.pmg-has-image:hover,
.pmg-root .pmg-jtbd-card.pmg-has-image:focus-visible {
  border-color: rgba(255, 91, 0, 0.72);
  background: #171a17;
  box-shadow: 0 18px 34px rgba(22, 27, 22, 0.14);
}

.pmg-root .pmg-jtbd-card.pmg-has-image:hover .pmg-card-media img,
.pmg-root .pmg-jtbd-card.pmg-has-image:focus-visible .pmg-card-media img {
  transform: scale(1.045);
}

.pmg-root .pmg-jtbd-card.pmg-selected {
  border-color: var(--pmg-accent);
  box-shadow:
    0 0 0 3px rgba(255, 91, 0, 0.22),
    0 18px 34px rgba(22, 27, 22, 0.14);
}

.pmg-root .pmg-jtbd-card:not(.pmg-has-image) {
  background: #fbfcfa;
  color: var(--pmg-ink);
}

.pmg-root .pmg-jtbd-card:not(.pmg-has-image) .pmg-card-title {
  color: var(--pmg-ink);
  text-shadow: none;
}

.pmg-root .pmg-result-cover {
  min-height: clamp(320px, 34vw, 460px);
  padding: 0;
  background: #101310;
}

.pmg-root .pmg-cover-image {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

@media (max-width: 1080px) {
  .pmg-root .pmg-jtbd-card {
    min-height: 188px;
  }
}

@media (max-width: 700px) {
  .pmg-root .pmg-jtbd-grid {
    gap: 8px;
  }

  .pmg-root .pmg-jtbd-card {
    min-height: 156px;
    padding: 13px;
  }

  .pmg-root .pmg-card-title {
    font-size: 13px;
    line-height: 1.2;
  }

  .pmg-root .pmg-card-shade {
    background: rgba(12, 14, 12, 0.36);
    box-shadow:
      inset 0 -112px 88px rgba(0, 0, 0, 0.64),
      inset 0 58px 68px rgba(0, 0, 0, 0.14);
  }

  .pmg-root .pmg-result-cover {
    min-height: 260px;
  }

  .pmg-root .pmg-result h2 {
    font-size: 29px;
    line-height: 1.2;
  }
}

@media (max-width: 370px) {
  .pmg-root .pmg-jtbd-card {
    min-height: 148px;
    padding: 11px;
  }

  .pmg-root .pmg-card-title {
    font-size: 12.5px;
  }

  .pmg-root .pmg-result h2 {
    font-size: 27px;
  }
}

/* Longer material search state. */
.pmg-root .pmg-matching {
  position: relative;
  min-height: 500px;
  isolation: isolate;
  gap: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 91, 0, 0.2), transparent 27%),
    #151815;
}

.pmg-root .pmg-matching::before,
.pmg-root .pmg-matching::after {
  content: "";
  position: absolute;
  inset: 28px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  pointer-events: none;
}

.pmg-root .pmg-matching::after {
  inset: 52px;
  border-color: rgba(255, 91, 0, 0.1);
  animation: pmg-search-frame 2400ms ease-in-out infinite;
}

.pmg-root .pmg-match-stage {
  width: min(500px, 92%);
  height: 230px;
  margin: 2px 0 0;
}

.pmg-root .pmg-match-tile {
  top: 24px;
  height: 170px;
  overflow: hidden;
  animation: pmg-card-breathe 5000ms ease-in-out infinite;
}

.pmg-root .pmg-match-tile::before {
  background: #5f6d63;
}

.pmg-root .pmg-match-tile::after {
  right: 26px;
  height: 28px;
  border-top-width: 6px;
  border-bottom-width: 6px;
  opacity: 0.82;
}

.pmg-root .pmg-match-tile-one {
  left: 10px;
  transform: rotate(-7deg);
  animation-delay: 0ms;
}

.pmg-root .pmg-match-tile-two {
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 260ms;
}

.pmg-root .pmg-match-tile-three {
  right: 10px;
  transform: rotate(7deg);
  animation-delay: 520ms;
}

.pmg-root .pmg-match-tile-one::before {
  background: #46544b;
}

.pmg-root .pmg-match-tile-two::before {
  background: var(--pmg-accent);
}

.pmg-root .pmg-match-tile-three::before {
  background: #7c8f84;
}

.pmg-root .pmg-match-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 218px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pmg-root .pmg-match-orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pmg-accent);
  box-shadow: 0 0 22px rgba(255, 91, 0, 0.85);
}

.pmg-root .pmg-match-orbit-one {
  animation: pmg-orbit-spin 2600ms linear infinite;
}

.pmg-root .pmg-match-orbit-two {
  width: 156px;
  opacity: 0.72;
  animation: pmg-orbit-spin 1900ms linear infinite reverse;
}

.pmg-root .pmg-match-scan {
  top: 8px;
  width: 3px;
  height: 204px;
  border-radius: 3px;
  animation: pmg-scan-long 2100ms ease-in-out infinite;
}

.pmg-root .pmg-matching h2 {
  max-width: 720px;
  font-size: 34px;
}

.pmg-root .pmg-match-steps {
  position: relative;
  min-height: 22px;
  width: min(520px, 88%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 720;
  text-align: center;
}

.pmg-root .pmg-match-steps span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: pmg-step-cycle 5000ms ease infinite;
}

.pmg-root .pmg-match-steps span:nth-child(2) {
  animation-delay: 1600ms;
}

.pmg-root .pmg-match-steps span:nth-child(3) {
  animation-delay: 3200ms;
}

.pmg-root .pmg-match-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 12px;
}

.pmg-root .pmg-match-dots i {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pmg-accent);
  box-shadow: 0 0 14px rgba(255, 91, 0, 0.45);
  animation: pmg-dot-search 900ms ease-in-out infinite;
}

.pmg-root .pmg-match-dots i:nth-child(2) {
  animation-delay: 140ms;
}

.pmg-root .pmg-match-dots i:nth-child(3) {
  animation-delay: 280ms;
}

.pmg-root .pmg-match-progress {
  width: min(380px, 78%);
}

.pmg-root .pmg-match-progress span {
  animation: pmg-progress 5000ms ease forwards;
}

@keyframes pmg-scan-long {
  0%, 100% { transform: translateX(0); opacity: 0.28; }
  45%, 55% { opacity: 1; }
  50% { transform: translateX(497px); }
}

@keyframes pmg-card-breathe {
  0%, 100% { filter: brightness(0.78); }
  35% { filter: brightness(1.08); }
  65% { filter: brightness(0.9); }
}

@keyframes pmg-orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pmg-step-cycle {
  0%, 10% { opacity: 0; transform: translateY(6px); }
  18%, 34% { opacity: 1; transform: translateY(0); }
  44%, 100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes pmg-dot-search {
  0%, 100% { opacity: 0.35; transform: translateY(0) scale(0.9); }
  50% { opacity: 1; transform: translateY(-3px) scale(1.08); }
}

@keyframes pmg-search-frame {
  0%, 100% { opacity: 0.45; transform: scale(0.985); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 700px) {
  .pmg-root .pmg-matching {
    min-height: 470px;
    padding: 22px 14px;
  }

  .pmg-root .pmg-matching::before {
    inset: 14px;
  }

  .pmg-root .pmg-matching::after {
    inset: 34px;
  }

  .pmg-root .pmg-match-stage {
    width: 300px;
    height: 170px;
  }

  .pmg-root .pmg-match-tile {
    top: 18px;
    width: 92px;
    height: 128px;
  }

  .pmg-root .pmg-match-tile::before {
    height: 64px;
  }

  .pmg-root .pmg-match-tile-one {
    left: 0;
  }

  .pmg-root .pmg-match-tile-three {
    right: 0;
  }

  .pmg-root .pmg-match-orbit-one {
    width: 158px;
  }

  .pmg-root .pmg-match-orbit-two {
    width: 112px;
  }

  .pmg-root .pmg-match-scan {
    height: 148px;
    animation-name: pmg-scan-long-mobile;
  }

  .pmg-root .pmg-matching h2 {
    font-size: 26px;
    line-height: 1.14;
  }

  .pmg-root .pmg-match-steps {
    font-size: 12px;
  }
}

@keyframes pmg-scan-long-mobile {
  0%, 100% { transform: translateX(0); opacity: 0.28; }
  45%, 55% { opacity: 1; }
  50% { transform: translateX(297px); }
}

/* Messenger delivery buttons. */
.pmg-root .pmg-delivery-row {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pmg-root .pmg-delivery-link {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pmg-line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--pmg-ink);
  font-size: 15px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(22, 27, 22, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pmg-root .pmg-delivery-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(22, 27, 22, 0.1);
}

.pmg-root .pmg-delivery-link > span:not(.pmg-delivery-icon) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmg-root .pmg-delivery-icon {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f6f4;
}

.pmg-root .pmg-delivery-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pmg-root .pmg-delivery-link > i {
  width: 28px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--pmg-line);
  border-radius: 5px;
  color: var(--pmg-soft-ink);
  font-size: 15px;
  font-style: normal;
  line-height: 1;
}

.pmg-root .pmg-delivery-max:hover,
.pmg-root .pmg-delivery-max:focus-visible {
  border-color: #6f5cff;
}

.pmg-root .pmg-delivery-telegram:hover,
.pmg-root .pmg-delivery-telegram:focus-visible {
  border-color: #2aa7df;
}

.pmg-root .pmg-delivery-max:hover > i,
.pmg-root .pmg-delivery-max:focus-visible > i {
  border-color: #6f5cff;
  background: #6f5cff;
  color: #ffffff;
}

.pmg-root .pmg-delivery-telegram:hover > i,
.pmg-root .pmg-delivery-telegram:focus-visible > i {
  border-color: #2aa7df;
  background: #2aa7df;
  color: #ffffff;
}

.pmg-root .pmg-modal-box .pmg-delivery-row {
  max-width: none;
}

@media (max-width: 700px) {
  .pmg-root .pmg-delivery-row {
    max-width: none;
    grid-template-columns: 1fr;
  }

  .pmg-root .pmg-delivery-link {
    min-height: 56px;
  }
}
