/*
 * Prime Game Marketing landing page.
 * Every rule is scoped under .pgm-landing so it cannot leak into the WordPress theme, and the
 * theme's own element rules (h1–h5, a, img, form controls) are overridden inside the wrapper.
 * Order: tokens · base · buttons and labels · stage and HUD · hero · how · play · uses · library ·
 * light sheet · retain · control · contact form · FAQ · reveal animations · reduced motion.
 */
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo2-var.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

/* ---------- Tokens ---------- */
.pgm-landing {
  --pgm-header: 76px; /* height of the theme's fixed header */
  --navy: #222e72; --navy-deep: #1b255e; --night: #10163f;
  --cream: #faf7ef; --ink: #202b4d; --muted: #5e6573; --line: #e4dfd3;
  --sun: #ffc83d; --sun-deep: #f0b21f; --butter: #fff5d8; --blush: #fff0ec; --good: #216348; --bad: #a42b27;
  --head: "Baloo 2", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
.pgm-landing { position: relative; isolation: isolate; overflow-x: clip; background: var(--night); color: #fff; font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-align: left; }
.pgm-landing *, .pgm-landing *::before, .pgm-landing *::after { box-sizing: border-box; }
.pgm-landing :where(h1, h2, h3, p, ul, ol, li, dl, dt, dd, figure) { margin: 0; padding: 0; }
.pgm-landing :where(ul, ol) { list-style: none; }
.pgm-landing img { display: block; max-width: 100%; height: auto; }
/* :where() keeps this reset weaker than the button and link colours below. */
.pgm-landing :where(a) { color: inherit; text-decoration: none; }
.pgm-landing :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
.pgm-landing h1, .pgm-landing h2, .pgm-landing h3 { font-family: var(--head); font-weight: 800; text-wrap: balance; }
.pgm-landing h2 { font-size: clamp(30px, 4.1vw, 56px); line-height: 1.04; letter-spacing: -.012em; }
.pgm-landing h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; font-weight: 700; }
.pgm-landing :focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.pgm-wrap { width: min(100% - 40px, 1200px); margin-inline: auto; }
.pgm-head { max-width: 760px; }
.pgm-lede { margin-top: 16px; font-size: clamp(16px, 1.35vw, 19px); font-weight: 600; color: rgb(255 255 255 / .8); max-width: 620px; }

/* ---------- Buttons, labels, tags ---------- */
.pgm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: 999px; font-weight: 800; font-size: 16px; line-height: 1.2; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background .2s; }
.pgm-btn svg { width: 18px; height: 18px; flex: none; }
.pgm-btn--sun { background: var(--sun); color: var(--navy); box-shadow: 0 10px 40px rgb(255 200 61 / .32); }
.pgm-btn--sun:hover { box-shadow: 0 14px 54px rgb(255 200 61 / .55); }
.pgm-btn--ghost { border: 1.5px solid rgb(255 255 255 / .42); color: #fff; background: rgb(255 255 255 / .04); }
.pgm-btn--ghost:hover { background: rgb(255 255 255 / .12); }
.pgm-btn--navy { background: var(--navy); color: #fff; }
.pgm-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.pgm-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pgm-tags li { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .24); color: rgb(255 255 255 / .82); }
.pgm-tags--lg li { font-size: 13px; padding: 8px 14px; }
.pgm-tags--lg b { font-family: var(--head); font-size: 17px; color: var(--sun); margin-right: 4px; letter-spacing: 0; }
.pgm-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--sun); border-bottom: 2px solid rgb(255 200 61 / .4); padding-bottom: 2px; }
.pgm-link svg { width: 16px; height: 16px; }
.pgm-link:hover { border-color: var(--sun); }

/* ---------- Stage: the 3D scene stays in view while the dark sections scroll over it ---------- */
.pgm-stage { position: relative; }
.pgm-stage > section { position: relative; z-index: 1; }
.pgm-stage__bg { position: sticky; top: 0; z-index: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% 108%, rgb(74 96 214 / .5), transparent 62%),
    radial-gradient(900px 480px at 50% -12%, rgb(45 60 130 / .9), transparent 70%),
    var(--night); }
/* Star field shown until (or instead of) WebGL. */
.pgm-stage__bg::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, rgb(255 255 255 / .5) 50%, transparent 51%), radial-gradient(1px 1px at 120px 90px, rgb(255 200 61 / .65) 50%, transparent 51%), radial-gradient(1px 1px at 70px 150px, rgb(255 255 255 / .3) 50%, transparent 51%);
  background-size: 190px 190px; transition: opacity 1s; }
.pgm-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.pgm-webgl .pgm-stage__canvas { opacity: 1; }
.pgm-webgl .pgm-stage__bg::before { opacity: 0; }

/* Heads-up display: small technical read-outs in the corners. Decorative only. */
.pgm-hud { position: absolute; inset: 0; font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .5); pointer-events: none; }
.pgm-hud > span { position: absolute; }
.pgm-hud b { color: var(--sun); font-weight: 600; }
.pgm-hud i { font-style: normal; }
.pgm-hud__section { right: 24px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); }
.pgm-hud__bl { left: 24px; bottom: 20px; display: flex; align-items: center; gap: 10px; }
.pgm-hud__br { right: 24px; bottom: 20px; }
.pgm-hud__arrow { width: 1px; height: 28px; background: linear-gradient(var(--sun), transparent); animation: pgm-drop 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes pgm-drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Hero ---------- */
.pgm-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--pgm-header) + clamp(18px, 4.5vh, 64px)) 20px 36vh; }
.pgm-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); font-size: 13px; font-weight: 800; letter-spacing: .03em; backdrop-filter: blur(8px); }
.pgm-eyebrow img { width: 26px; height: 26px; }
.pgm-landing .pgm-hero__title { font-size: clamp(44px, min(8.6vw, 12vh), 132px); line-height: .92; letter-spacing: -.02em; margin-top: 18px; }
.pgm-hero__title em { font-style: normal; color: var(--sun); }
/* Words rise from behind a mask. Pure CSS, so the headline paints at once and needs no script. */
.pgm-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.pgm-w > * { display: inline-block; animation: pgm-word 1s var(--ease) both; animation-delay: calc(var(--i) * 110ms); }
@keyframes pgm-word { from { transform: translateY(105%) rotate(5deg); } }
.pgm-rise { animation: pgm-rise .9s var(--ease) both; animation-delay: var(--d, .4s); }
@keyframes pgm-rise { from { opacity: 0; transform: translateY(18px); } }
.pgm-hero__sub { max-width: 640px; margin-top: 18px; font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; color: rgb(255 255 255 / .84); }
.pgm-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.pgm-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 26px; font-size: 14px; font-weight: 700; color: rgb(255 255 255 / .72); }
/* Each figure sits on its own dark pill, so it stays readable where the card ring passes behind. */
.pgm-stats li { padding: 5px 14px; border-radius: 999px; background: rgb(16 22 63 / .72); border: 1px solid rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pgm-stats b { font-family: var(--head); font-size: 22px; color: #fff; margin-right: 4px; }
/* Static covers for visitors without WebGL or JavaScript. */
.pgm-hero__strip { position: absolute; left: 0; right: 0; bottom: 5vh; display: flex; justify-content: center; gap: 16px; padding: 0 16px; }
.pgm-hero__strip img { width: min(30vw, 300px); border-radius: 18px; border: 2px solid rgb(255 255 255 / .22); box-shadow: 0 24px 50px rgb(5 8 30 / .5); }
.pgm-hero__strip img:nth-child(1) { transform: rotate(-5deg) translateY(12px); }
.pgm-hero__strip img:nth-child(3) { transform: rotate(5deg) translateY(12px); }

/* ---------- How it works: pinned, three steps driven by scroll ---------- */
.pgm-how { height: 340vh; }
.pgm-how__pin { position: sticky; top: 0; height: 100vh; height: 100svh; width: min(100% - 40px, 1200px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 72px); padding-top: var(--pgm-header); }
.pgm-how__copy h2 { font-size: clamp(28px, 3.3vw, 46px); }
.pgm-steps { margin-top: 26px; display: grid; gap: 6px; }
.pgm-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid transparent; transition: background .5s, border-color .5s, opacity .5s; }
.pgm-step__no { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: rgb(255 255 255 / .55); padding-top: 5px; transition: color .4s; }
.pgm-step p { margin-top: 6px; color: rgb(255 255 255 / .8); font-weight: 600; font-size: 15.5px; }
.pgm-js .pgm-step { opacity: .45; }
.pgm-js .pgm-step > div { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .5s var(--ease); }
.pgm-js .pgm-step p { overflow: hidden; min-height: 0; margin-top: 0; }
.pgm-js .pgm-how[data-step="0"] .pgm-step:nth-child(1), .pgm-js .pgm-how[data-step="1"] .pgm-step:nth-child(2), .pgm-js .pgm-how[data-step="2"] .pgm-step:nth-child(3) { opacity: 1; background: rgb(16 22 63 / .62); border-color: rgb(255 255 255 / .16); backdrop-filter: blur(10px); }
.pgm-js .pgm-how[data-step="0"] .pgm-step:nth-child(1) > div, .pgm-js .pgm-how[data-step="1"] .pgm-step:nth-child(2) > div, .pgm-js .pgm-how[data-step="2"] .pgm-step:nth-child(3) > div { grid-template-rows: auto 1fr; }
.pgm-js .pgm-how[data-step="0"] .pgm-step:nth-child(1) p, .pgm-js .pgm-how[data-step="1"] .pgm-step:nth-child(2) p, .pgm-js .pgm-how[data-step="2"] .pgm-step:nth-child(3) p { margin-top: 6px; }
.pgm-how[data-step="0"] .pgm-step:nth-child(1) .pgm-step__no, .pgm-how[data-step="1"] .pgm-step:nth-child(2) .pgm-step__no, .pgm-how[data-step="2"] .pgm-step:nth-child(3) .pgm-step__no { color: var(--sun); }
.pgm-how__note { margin-top: 18px; padding-left: 16px; font-size: 14px; font-weight: 700; color: rgb(255 255 255 / .6); border-left: 2px solid var(--sun); }

.pgm-how__visual { position: relative; justify-self: center; height: min(74vh, 640px); aspect-ratio: 46 / 62; }
.pgm-phone { --c1: #6b7183; --c2: #d6d9e4; --c3: #f1f2f6; position: absolute; left: 50%; top: 50%; height: 92%; aspect-ratio: 9 / 18.6; transform: translate(-50%, -50%) rotate(-4deg); background: #080c2a; border-radius: 13% / 6.2%; padding: 2.4%; box-shadow: 0 40px 90px rgb(3 6 30 / .65), 0 0 0 1px rgb(255 255 255 / .14), 0 0 90px rgb(255 200 61 / .12); transition: transform .9s var(--ease); }
.pgm-how[data-step="1"] .pgm-phone { --c1: #0f6b4f; --c2: #ffd27a; --c3: #eef7ef; transform: translate(-50%, -50%) rotate(0deg) scale(1.03); }
.pgm-how[data-step="2"] .pgm-phone { --c1: #0f6b4f; --c2: #ffd27a; --c3: #eef7ef; transform: translate(-50%, -50%) rotate(4deg); }
.pgm-phone__screen { height: 100%; border-radius: 11% / 5.2%; overflow: hidden; background: var(--c3); color: var(--ink); display: flex; flex-direction: column; transition: background .8s; }
.pgm-phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 9% 7% 4%; }
.pgm-phone__logo { background: var(--c1); color: #fff; font-weight: 900; font-size: 11px; border-radius: 8px; padding: 4px 9px; transition: background .8s; }
.pgm-phone__score { font-weight: 900; font-size: 11px; color: var(--c1); transition: color .8s; }
.pgm-landing .pgm-phone__art { margin: 0 6%; width: 88%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 3px solid var(--c1); transition: border-color .8s, filter .8s; }
.pgm-how[data-step="0"] .pgm-phone__art { filter: grayscale(.85); }
.pgm-phone__screen strong { font-family: var(--head); font-size: clamp(15px, 1.5vw, 21px); line-height: 1.1; color: var(--c1); padding: 6% 7% 0; transition: color .8s; }
.pgm-phone__screen small { font-size: 11px; font-weight: 700; color: var(--muted); padding: 2% 7% 0; }
.pgm-phone__rounds { display: flex; gap: 5px; padding: 5% 7% 0; }
.pgm-phone__rounds i { flex: 1; height: 6px; border-radius: 3px; background: var(--c1); opacity: .18; transition: background .8s; }
.pgm-phone__rounds i:first-child { opacity: 1; }
.pgm-phone__play { margin: auto 7% 9%; text-align: center; background: var(--c2); color: var(--c1); font-weight: 900; font-size: 13px; border-radius: 999px; padding: 9px; transition: background .8s, color .8s; }
.pgm-phone__play i { font-style: normal; display: none; }
.pgm-how[data-step="0"] .pgm-phone__play i:nth-child(1), .pgm-how[data-step="1"] .pgm-phone__play i:nth-child(2), .pgm-how[data-step="2"] .pgm-phone__play i:nth-child(3) { display: inline; }

.pgm-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 18px 40px rgb(3 6 30 / .45); font-size: 13px; font-weight: 800; line-height: 1.3; color: var(--navy); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pgm-chip small { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pgm-chip svg { width: 32px; height: 32px; flex: none; }
.pgm-chip__thumbs { display: flex; }
.pgm-landing .pgm-chip__thumbs img { width: 34px; height: 34px; object-fit: cover; border-radius: 9px; border: 2px solid #fff; margin-left: -10px; }
.pgm-landing .pgm-chip__thumbs img:first-child { margin-left: 0; outline: 2px solid var(--sun); }
.pgm-chip__dots { display: flex; gap: 4px; }
.pgm-chip__dots i { width: 14px; height: 14px; border-radius: 50%; background: #0f6b4f; }
.pgm-chip__dots i:nth-child(2) { background: #ffd27a; }
.pgm-chip__dots i:nth-child(3) { background: #eef7ef; box-shadow: inset 0 0 0 1px var(--line); }
.pgm-chip--pick { left: -8%; top: 9%; }
.pgm-chip--guide { right: -12%; top: 30%; }
.pgm-chip--qr { left: -10%; bottom: 26%; }
.pgm-chip--lead { right: -10%; bottom: 10%; }
.pgm-how[data-step="0"] .pgm-chip:not([data-show="0"]), .pgm-how[data-step="1"] .pgm-chip[data-show="2"] { opacity: 0; transform: translateY(16px) scale(.94); }

/* ---------- Play on the page ---------- */
.pgm-play, .pgm-uses, .pgm-library { padding: clamp(80px, 13vh, 150px) 0; }
.pgm-play__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pgm-list { margin-top: 26px; display: grid; gap: 14px; }
.pgm-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; font-weight: 600; color: rgb(255 255 255 / .82); }
.pgm-list li > b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--navy); font-family: var(--head); font-size: 17px; }
.pgm-list strong { color: #fff; font-weight: 800; }
.pgm-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 26px; }
.pgm-meta div { padding: 10px 16px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .16); background: rgb(16 22 63 / .55); backdrop-filter: blur(8px); }
.pgm-meta dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .55); }
.pgm-meta dd { font-weight: 800; }
.pgm-device { justify-self: center; perspective: 1200px; }
.pgm-device__frame { width: min(78vw, 340px); aspect-ratio: 9 / 18.4; background: #080c2a; border-radius: 46px; padding: 11px; box-shadow: 0 50px 100px rgb(3 6 30 / .7), 0 0 0 1px rgb(255 255 255 / .16), 0 0 120px rgb(255 200 61 / .16); transition: transform .3s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.pgm-device__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--navy-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; }
.pgm-landing .pgm-device__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(1.1); }
.pgm-device__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(16 22 63 / .2), rgb(16 22 63 / .88)); }
.pgm-device__play { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; background: none; border: 0; color: #fff; font-weight: 900; font-size: 17px; cursor: pointer; }
.pgm-device__play svg { width: 84px; height: 84px; padding: 22px; border-radius: 50%; background: var(--sun); color: var(--navy); box-shadow: 0 0 0 0 rgb(255 200 61 / .6); animation: pgm-pulse 2.2s infinite; }
@keyframes pgm-pulse { to { box-shadow: 0 0 0 26px rgb(255 200 61 / 0); } }
.pgm-device__screen > p { position: relative; z-index: 1; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.pgm-device__screen iframe { position: absolute; left: 0; top: 0; z-index: 2; width: 390px; height: 100%; border: 0; background: #fff; transform-origin: 0 0; }

/* ---------- Three ways to use it ---------- */
.pgm-uses__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; perspective: 1400px; }
.pgm-use { position: relative; padding: 16px 16px 24px; border-radius: 26px; background: rgb(18 25 72 / .74); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(14px); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s var(--ease), border-color .3s; }
.pgm-use:hover { border-color: rgb(255 200 61 / .55); }
.pgm-landing .pgm-use img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.pgm-use__no { position: absolute; z-index: 1; left: 28px; top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: rgb(16 22 63 / .85); color: var(--sun); }
.pgm-use h3 { margin: 18px 8px 8px; }
.pgm-use p { margin: 0 8px 16px; color: rgb(255 255 255 / .8); font-weight: 600; font-size: 15.5px; }
.pgm-use .pgm-tags { margin: 0 8px; }

/* ---------- Game library ---------- */
.pgm-count { color: var(--sun); font-variant-numeric: tabular-nums; }
.pgm-shelf { margin: 44px 0 40px; display: grid; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.pgm-js .pgm-shelf { overflow: hidden; }
.pgm-shelf__row { display: flex; gap: 18px; width: max-content; will-change: transform; }
.pgm-shelf__row li { position: relative; flex: none; width: clamp(210px, 23vw, 330px); border-radius: 20px; overflow: hidden; border: 2px solid rgb(255 255 255 / .18); box-shadow: 0 24px 50px rgb(3 6 30 / .5); transition: transform .4s var(--ease), border-color .3s; }
.pgm-shelf__row li:hover { transform: translateY(-8px) scale(1.03); border-color: var(--sun); }
.pgm-landing .pgm-shelf__row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pgm-shelf__row span { position: absolute; left: 10px; bottom: 10px; padding: 4px 12px; border-radius: 999px; background: rgb(16 22 63 / .84); font-family: var(--head); font-weight: 700; font-size: 14px; backdrop-filter: blur(6px); }
.pgm-library__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.pgm-library { padding-bottom: clamp(110px, 18vh, 190px); }

/* ---------- Light sheet ---------- */
.pgm-sheet { position: relative; z-index: 2; margin-top: -44px; border-radius: 44px 44px 0 0; background: var(--cream); color: var(--ink); padding-bottom: clamp(48px, 7vh, 80px); }
.pgm-sheet section { padding-top: clamp(48px, 7vh, 84px); }
.pgm-sheet h2, .pgm-sheet h3 { color: var(--navy); }
.pgm-sheet .pgm-label { color: #8a5a00; }
.pgm-sheet .pgm-lede { color: var(--muted); }

/* ---------- Retention ---------- */
.pgm-retain__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.pgm-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 24px; box-shadow: 0 6px 22px rgb(32 43 77 / .07); }
.pgm-card h3 { margin: 18px 6px 6px; }
.pgm-card p { margin: 0 6px; color: var(--muted); font-weight: 600; }
.pgm-card__art { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--butter); }
.pgm-landing .pgm-card__art > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pgm-card:hover .pgm-card__art > img { transform: scale(1.05); }
/* The small diagram of the mechanic sits on the picture as a white badge. */
.pgm-card__badge { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 64px; border-radius: 14px; background: rgb(255 255 255 / .94); box-shadow: 0 10px 26px rgb(32 43 77 / .2); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; }
.pgm-art-checkin i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); position: relative; }
.pgm-art-checkin i::after { content: ""; position: absolute; left: 8px; top: 6px; width: 7px; height: 11px; border: solid var(--navy); border-width: 0 3px 3px 0; transform: rotate(42deg); }
.pgm-art-checkin i:nth-child(n+6) { background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.pgm-art-checkin i:nth-child(n+6)::after { display: none; }
.pgm-art-checkin i:nth-child(5) { box-shadow: 0 0 0 5px rgb(255 200 61 / .35); }
.pgm-art-set i { width: 34px; height: 34px; }
.pgm-art-set i { border-radius: 12px; background: var(--navy); }
.pgm-art-set i:nth-child(2) { background: #e2577a; }
.pgm-art-set i:nth-child(3) { background: var(--sun); }
.pgm-art-set i:nth-child(4) { background: none; border: 2px dashed #c9bfae; }
.pgm-art-set b { margin-left: 10px; font-family: var(--head); font-size: 30px; line-height: 1; color: var(--navy); }

.pgm-art-letters i { width: 30px; height: 22px; border-radius: 5px; background: var(--navy); position: relative; }
.pgm-art-letters i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(35deg, transparent 49%, rgb(255 255 255 / .5) 50%, transparent 52%), linear-gradient(-35deg, transparent 49%, rgb(255 255 255 / .5) 50%, transparent 52%); }
.pgm-art-letters i:nth-child(n+5) { background: none; border: 2px dashed #b6bcd6; }
.pgm-art-letters i:nth-child(n+5)::after { display: none; }

/* ---------- Campaign control ---------- */

/* ---------- Consultation form ---------- */
.pgm-contact__panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); background: radial-gradient(700px 400px at 0% 0%, #34449d, transparent 70%), var(--navy); border-radius: 36px; padding: clamp(22px, 4vw, 56px); color: #fff; box-shadow: 0 30px 70px rgb(34 46 114 / .28); }
.pgm-contact__panel h2 { color: #fff; }
.pgm-contact__panel .pgm-label { color: var(--sun); }
.pgm-contact__panel .pgm-lede { color: rgb(255 255 255 / .82); }
.pgm-contact__direct { margin-top: 26px; font-weight: 700; color: rgb(255 255 255 / .75); }
.pgm-contact__direct a { color: var(--sun); border-bottom: 2px solid rgb(255 200 61 / .4); }
.pgm-form { background: #fff; color: var(--ink); border-radius: 26px; padding: clamp(18px, 2.4vw, 30px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-content: start; }
.pgm-field { display: grid; gap: 6px; align-content: start; }
.pgm-field--wide { grid-column: 1 / -1; }
.pgm-field label { font-size: 13.5px; font-weight: 800; color: var(--navy); }
.pgm-form i { font-style: normal; color: var(--bad); }
.pgm-landing .pgm-field :where(input, select, textarea) { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #d9d4c6; border-radius: 12px; background: #fffdf8; font-size: 16px; font-weight: 600; color: var(--ink); appearance: auto; transition: border-color .2s, box-shadow .2s; }
.pgm-landing .pgm-field textarea { resize: vertical; min-height: 84px; }
.pgm-landing .pgm-field :where(input, select, textarea):focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgb(34 46 114 / .14); }
.pgm-landing .pgm-field [aria-invalid="true"] { border-color: var(--bad); background: var(--blush); }
.pgm-field__error { font-size: 13px; font-weight: 700; color: var(--bad); }
.pgm-consent .pgm-field__error { grid-column: 2; }
.pgm-consent a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.pgm-field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pgm-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pgm-landing .pgm-consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy); appearance: auto; }
.pgm-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pgm-form__status { font-size: 14px; font-weight: 700; color: var(--good); }
.pgm-form__status[data-state="error"] { color: var(--bad); }
.pgm-list--light li { color: rgb(255 255 255 / .85); }

/* ---------- FAQ ---------- */
.pgm-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.pgm-faq__card { margin-top: 28px; background: var(--butter); border-radius: 22px; padding: 24px; }
.pgm-faq__card p { margin: 6px 0 16px; color: var(--muted); font-weight: 600; }
.pgm-faq__list { display: grid; gap: 12px; }
.pgm-faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; transition: box-shadow .3s; }
.pgm-faq details[open] { box-shadow: 0 10px 30px rgb(32 43 77 / .09); }
.pgm-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--head); font-weight: 700; font-size: 18.5px; line-height: 1.25; color: var(--navy); cursor: pointer; }
.pgm-faq summary::-webkit-details-marker { display: none; }
.pgm-faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--butter) linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat; box-shadow: inset 0 0 0 0 var(--navy); transition: transform .3s var(--ease); }
.pgm-faq details:not([open]) summary::after { background: var(--butter) linear-gradient(var(--navy), var(--navy)) center / 12px 2px no-repeat, var(--butter) linear-gradient(var(--navy), var(--navy)) center / 2px 12px no-repeat; background-blend-mode: multiply; transform: rotate(90deg); }
.pgm-faq details p { padding: 0 44px 20px 0; color: var(--muted); font-weight: 600; }

/* ---------- Reveal on scroll (only when the script is running) ---------- */
.pgm-js [data-pgm-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--n, 0) * 90ms); }
.pgm-js [data-pgm-reveal].is-in { opacity: 1; transform: none; }
.pgm-js [data-pgm-tilt].is-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- Smaller screens ---------- */
/* ---------- Calls to action between sections ---------- */
.pgm-btn--red { background: #c8281e; color: #fff; box-shadow: 0 10px 34px rgb(200 40 30 / .3); }
.pgm-btn--red:hover { box-shadow: 0 14px 44px rgb(200 40 30 / .45); }
.pgm-cta-row { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; text-align: center; }
.pgm-cta-row p { font-family: var(--head); font-weight: 700; font-size: clamp(19px, 2vw, 24px); line-height: 1.25; }
.pgm-float { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--sun); color: var(--navy); font-weight: 900; font-size: 15.5px; box-shadow: 0 14px 40px rgb(3 6 30 / .35); transition: opacity .35s, transform .35s var(--ease); }
.pgm-float svg { width: 18px; height: 18px; }
.pgm-float[hidden] { display: inline-flex; opacity: 0; transform: translateY(24px); pointer-events: none; visibility: hidden; }

/* ---------- AI studio ---------- */
.pgm-ai__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.pgm-ai .pgm-label { color: #5a3fd6; }
.pgm-ai__points { list-style: none; display: grid; gap: 10px; margin: 24px 0 28px; }
.pgm-ai__points li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--muted); }
.pgm-ai__points b { font-family: var(--head); font-size: 18px; color: var(--navy); }
.pgm-ai__art { position: relative; min-height: clamp(260px, 30vw, 400px); display: grid; grid-template-columns: minmax(0, .8fr) 44px minmax(0, 1.2fr); align-items: center; padding: clamp(18px, 3vw, 36px); border-radius: 32px; background: radial-gradient(100% 120% at 100% 0%, #4a3bc0 0%, var(--navy) 50%, var(--night) 100%); box-shadow: 0 30px 70px rgb(16 22 63 / .25); }
.pgm-ai__doc { position: relative; overflow: hidden; background: #fff; border-radius: 18px; padding: 16px; display: grid; gap: 12px; color: var(--navy); box-shadow: 0 18px 40px rgb(3 6 30 / .4); transform: rotate(-3deg); }
.pgm-ai__file { font: 700 11px/1.2 var(--mono); color: var(--muted); word-break: break-all; }
.pgm-ai__swatches { display: flex; gap: 6px; }
.pgm-ai__swatches i { flex: 1; aspect-ratio: 1; border-radius: 9px; background: #0f6b4f; }
.pgm-ai__swatches i:nth-child(2) { background: #ffd27a; } .pgm-ai__swatches i:nth-child(3) { background: #e2577a; } .pgm-ai__swatches i:nth-child(4) { background: #f3ecdd; }
.pgm-ai__doc p { font-family: var(--head); font-size: 30px; font-weight: 800; line-height: 1; }
.pgm-ai__doc small { font: 700 11px/1 var(--body); color: var(--muted); margin-left: 6px; }
.pgm-ai__doc .pgm-ai__tone { font: italic 700 12.5px/1.35 var(--body); color: var(--muted); }
/* A light bar sweeps the document, as if it were being read. */
.pgm-ai__scan { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(transparent, rgb(122 92 255 / .28)); border-bottom: 2px solid #7a5cff; animation: pgm-scan 3.2s var(--ease) infinite; }
@keyframes pgm-scan { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(300%); } }
.pgm-ai__beam { display: grid; gap: 7px; justify-items: center; }
.pgm-ai__beam i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); animation: pgm-beam 1.4s infinite; }
.pgm-ai__beam i:nth-child(2) { animation-delay: .2s; } .pgm-ai__beam i:nth-child(3) { animation-delay: .4s; }
@keyframes pgm-beam { 0%, 100% { opacity: .2; transform: translateX(-6px); } 50% { opacity: 1; transform: translateX(6px); } }
.pgm-ai__out { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 22px 50px rgb(3 6 30 / .5), 0 0 0 3px rgb(255 255 255 / .9); }
.pgm-landing .pgm-ai__out img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: pgm-palette 9s infinite; }
/* The same cover in three palettes, shown in turn. */
.pgm-landing .pgm-ai__out img:nth-of-type(2) { filter: hue-rotate(150deg) saturate(1.1); animation-delay: 3s; opacity: 0; }
.pgm-landing .pgm-ai__out img:nth-of-type(3) { filter: hue-rotate(265deg) saturate(1.15); animation-delay: 6s; opacity: 0; }
@keyframes pgm-palette { 0%, 30% { opacity: 1; } 36%, 94% { opacity: 0; } 100% { opacity: 1; } }
.pgm-landing .pgm-ai__out img:first-of-type { animation-name: pgm-palette-first; }
@keyframes pgm-palette-first { 0%, 30% { opacity: 1; } 36%, 94% { opacity: 1; } }
.pgm-ai__tag { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / .95); font-size: 12.5px; font-weight: 800; color: var(--navy); }
.pgm-ai__tag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #2fbf71; }

/* ---------- Lunar New Year games ---------- */

.pgm-season__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.pgm-season__head h2 { max-width: 16em; }
.pgm-season .pgm-label { color: #c8281e; }
.pgm-season__grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.pgm-season__grid li { position: relative; border-radius: 22px; overflow: hidden; background: var(--navy-deep); box-shadow: 0 8px 26px rgb(32 43 77 / .12); }
.pgm-landing .pgm-season__grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.pgm-season__grid li:hover img { transform: scale(1.06); }
.pgm-season__grid div { position: absolute; inset: auto 0 0; padding: 44px 18px 14px; color: #fff; background: linear-gradient(transparent, rgb(120 18 12 / .9)); }
.pgm-landing .pgm-season__grid h3 { font-size: 20px; color: #fff; }
.pgm-landing .pgm-season__grid p { color: #fff; }
.pgm-season__grid p { font-size: 14px; font-weight: 700; opacity: .9; }

/* ---------- Campaign control: copy, a drawn settings panel, six features ---------- */
.pgm-control__panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px) clamp(28px, 5vw, 70px); align-items: center; padding: clamp(24px, 4.5vw, 60px); border-radius: 36px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, #3a47a8 0%, var(--navy) 42%, var(--night) 100%); box-shadow: 0 30px 70px rgb(16 22 63 / .25); }
.pgm-landing .pgm-control__panel h2 { color: #fff; }
.pgm-landing .pgm-control__panel .pgm-label { color: var(--sun); }
.pgm-landing .pgm-control__panel .pgm-lede { color: rgb(255 255 255 / .82); margin-bottom: 26px; }
.pgm-desk { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(16px, 2vw, 26px); box-shadow: 0 30px 60px rgb(3 6 30 / .45); transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); }
.pgm-desk__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--navy); }
.pgm-desk__top em { font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; background: var(--butter); padding: 6px 9px; border-radius: 999px; }
.pgm-desk ul { list-style: none; }
.pgm-desk__head, .pgm-desk__rows li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto 52px; gap: 12px; align-items: center; }
.pgm-desk__head { font: 700 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px; }
.pgm-desk__head li:last-child, .pgm-desk__odds { text-align: right; }
.pgm-desk__rows { display: grid; gap: 8px; }
.pgm-desk__rows li { padding: 12px; border-radius: 14px; background: var(--cream); font-size: 14.5px; font-weight: 800; color: var(--navy); }
.pgm-desk__bar { height: 9px; border-radius: 9px; background: #e7e2d5; overflow: hidden; }
.pgm-desk__bar i { display: block; height: 100%; width: var(--w); border-radius: 9px; background: linear-gradient(90deg, var(--sun), #ff9d2e); transform-origin: 0 50%; }
.pgm-js .pgm-desk:not(.is-in) .pgm-desk__bar i { transform: scaleX(0); }
.pgm-desk__bar i { transition: transform 1.2s var(--ease) .3s; }
.pgm-desk__stock { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pgm-desk__stock b { color: var(--navy); font-size: 14.5px; }
.pgm-desk__odds { font-family: var(--head); font-size: 19px; }
.pgm-desk__none { background: none !important; border: 1.5px dashed var(--line); color: var(--muted) !important; }
.pgm-desk__none .pgm-desk__bar { background: none; }
.pgm-desk__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pgm-desk__chips li { padding: 7px 12px; border-radius: 999px; background: #eef1fb; font-size: 12.5px; font-weight: 800; color: var(--navy); }
.pgm-desk__chips b { font-family: var(--head); font-size: 15px; }
.pgm-controls { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: clamp(20px, 3vw, 34px); border-top: 1px solid rgb(255 255 255 / .14); }
.pgm-controls li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.pgm-controls svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 13px; background: var(--sun); color: var(--navy); }
.pgm-landing .pgm-controls h3 { font-size: 17.5px; color: #fff; }
.pgm-controls p { font-size: 14px; font-weight: 600; color: rgb(255 255 255 / .72); }

/* ---------- Sample picture and certifications beside the form ---------- */
.pgm-contact__sample { position: relative; margin-top: 26px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 44px rgb(3 6 30 / .4); }
.pgm-landing .pgm-contact__sample img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pgm-contact__sample figcaption { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgb(255 255 255 / .95); font-size: 12.5px; font-weight: 800; color: var(--navy); }
.pgm-contact__sample figcaption span { display: flex; gap: 4px; }
.pgm-contact__sample i { width: 16px; height: 16px; border-radius: 5px; background: #2f55e8; }
.pgm-contact__sample i:nth-child(2) { background: #e2577a; } .pgm-contact__sample i:nth-child(3) { background: var(--sun); } .pgm-contact__sample i:nth-child(4) { background: #2fbf71; }
.pgm-certs { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; font-weight: 800; color: var(--navy); }
.pgm-certs li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.pgm-certs li:first-child { border: 0; background: none; padding-left: 0; font-weight: 700; color: var(--muted); }
.pgm-use .pgm-link, .pgm-landing .pgm-uses__grid .pgm-link { margin-top: 14px; font-size: 14.5px; }

/* ---------- Closing call to action and social links (contacts live in the site footer) ---------- */
.pgm-connect__panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(26px, 4vw, 48px) clamp(24px, 4.5vw, 60px); border-radius: 32px; color: #fff; background: radial-gradient(120% 160% at 0% 0%, #34409a 0%, var(--navy) 45%, var(--night) 100%); box-shadow: 0 24px 60px rgb(16 22 63 / .25); }
.pgm-landing .pgm-connect h2 { color: #fff; max-width: 13em; }
.pgm-landing .pgm-connect .pgm-label { color: var(--sun); }
.pgm-connect__side { display: grid; gap: 18px; }
.pgm-connect__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pgm-connect__follow { display: flex; align-items: center; gap: 14px; }
.pgm-connect__follow span { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.pgm-social { list-style: none; display: flex; gap: 10px; }
.pgm-social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .3); transition: background .2s, color .2s, transform .3s var(--ease); }
.pgm-social a:hover { background: var(--sun); border-color: var(--sun); color: var(--navy); transform: translateY(-3px); }
.pgm-social svg { width: 21px; height: 21px; }

@media (max-width: 900px) {
  .pgm-hud__section { display: none; }
  .pgm-hud__bl { left: 16px; bottom: 14px; }
  .pgm-hud__br { right: 16px; bottom: 14px; }
  .pgm-how__pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: calc(var(--pgm-header) + 14px) 0 34px; }
  .pgm-how__copy h2 { font-size: clamp(22px, 5.6vw, 30px); }
  .pgm-how__copy .pgm-label { margin-bottom: 8px; }
  .pgm-steps { margin-top: 12px; gap: 2px; }
  .pgm-step { padding: 8px 12px; grid-template-columns: 30px 1fr; gap: 8px; border-radius: 14px; }
  .pgm-landing .pgm-step h3 { font-size: 17px; }
  .pgm-step p { font-size: 14px; line-height: 1.45; }
  .pgm-how__note { display: none; }
  .pgm-how__visual { height: 100%; max-height: 46vh; aspect-ratio: 46 / 62; }
  .pgm-chip { font-size: 11px; padding: 6px 9px; gap: 7px; border-radius: 12px; }
  .pgm-chip small { font-size: 10px; }
  .pgm-chip svg { width: 22px; height: 22px; }
  .pgm-landing .pgm-chip__thumbs img { width: 24px; height: 24px; }
  .pgm-chip--pick { left: -15%; } .pgm-chip--guide { right: -8%; } .pgm-chip--qr { left: -15%; } .pgm-chip--lead { right: -8%; }
  .pgm-play__grid, .pgm-control__grid, .pgm-contact__panel, .pgm-faq__grid { grid-template-columns: 1fr; }
  .pgm-uses__grid, .pgm-retain__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pgm-control .pgm-head { position: static; }
  .pgm-connect__panel { border-radius: 26px; }
  .pgm-control__panel { grid-template-columns: 1fr; border-radius: 26px; }
  .pgm-ai__grid { grid-template-columns: 1fr; }
  .pgm-desk { transform: none; }
  .pgm-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgm-season__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgm-sheet { border-radius: 30px 30px 0 0; margin-top: -30px; }
  .pgm-contact__panel { border-radius: 26px; }
}
@media (max-width: 560px) {
  .pgm-hero { padding-bottom: 40vh; }
  .pgm-stats { gap: 6px; font-size: 13px; }
  .pgm-stats b { font-size: 18px; }
  .pgm-btn { padding: 13px 20px; font-size: 15px; }
  .pgm-controls, .pgm-form { grid-template-columns: 1fr; }
  .pgm-desk__head { display: none; }
  .pgm-ai__points li { grid-template-columns: 1fr; gap: 2px; }
  .pgm-ai__art { grid-template-columns: minmax(0, .9fr) 26px minmax(0, 1.1fr); border-radius: 24px; }
  .pgm-ai__doc p { font-size: 22px; }
  .pgm-desk__rows li { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .pgm-desk__bar { grid-column: 1 / -1; order: 3; }
  .pgm-desk__stock { order: 4; grid-column: 1 / -1; }
  .pgm-desk__odds { order: 2; }
  .pgm-faq summary { font-size: 17px; }
  .pgm-faq details p { padding-right: 0; }
  .pgm-library__foot { justify-content: flex-start; }
  .pgm-season__grid { gap: 10px; }
  .pgm-season__grid h3 { font-size: 15.5px; line-height: 1.15; }
  .pgm-season__grid p { display: none; }
  .pgm-season__grid div { padding: 30px 12px 10px; }
  .pgm-float { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 14.5px; }
  .pgm-connect__actions .pgm-btn { width: 100%; justify-content: center; }
}

/* Very small phones: the figures row gives way so the ring keeps its place under the buttons. */
@media (max-width: 560px) and (max-height: 700px) {
  .pgm-stats { display: none; }
}

/* ---------- Reduced motion: no pinning, no movement, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .pgm-landing *, .pgm-landing *::before, .pgm-landing *::after { animation: none !important; transition: none !important; }
  .pgm-js [data-pgm-reveal] { opacity: 1; transform: none; }
  .pgm-how { height: auto; padding: 80px 0; }
  .pgm-how__pin { position: static; height: auto; }
  .pgm-js .pgm-step { opacity: 1; }
  .pgm-js .pgm-step > div { grid-template-rows: auto 1fr; }
  .pgm-js .pgm-step p { margin-top: 6px; }
  .pgm-hud__arrow { display: none; }
}

/* ---------- Quick contact (WhatsApp, Zalo, hotline): printed only for channels set in src/settings.json ---------- */
.pgm-quick { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pgm-quick a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .35); font-weight: 800; color: #fff; transition: border-color .2s, color .2s; }
.pgm-quick a:hover, .pgm-quick a:focus-visible { border-color: var(--sun); color: var(--sun); }

/* ---------- Japanese: the brand fonts have no kana or kanji, so the system Japanese fonts follow them ---------- */
.pgm-landing:lang(ja) { --head: "Baloo 2", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; --body: "Nunito", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif; line-break: strict; word-break: normal; overflow-wrap: anywhere; }
.pgm-landing:lang(ja) h1, .pgm-landing:lang(ja) h2, .pgm-landing:lang(ja) h3 { line-height: 1.3; letter-spacing: 0; word-break: auto-phrase; }
.pgm-landing:lang(ja) .pgm-hero__title { font-size: clamp(34px, min(6.4vw, 10vh), 96px); }
.pgm-form__note { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Inside the WordPress theme (the plugin adds body.pgm-wp) ----------
   The theme sets body { overflow-x: hidden } next to html { overflow-x: clip }, which turns <body> into its own
   scroll container: position: sticky then never sticks, so the pinned 3D backdrop and the "how it works" pin
   scroll away and leave empty screens. clip hides sideways overflow the same way without making a scroller.
   The theme's back-to-top button sits fixed at 40px from the bottom-right corner (48px square) at every width,
   so the floating call to action moves to its left, centred on the same line. */
body.pgm-wp { overflow-x: clip; }
body.pgm-wp .pgm-float { right: 100px; bottom: 38px; }
