/* Planet Merge - full-window canvas + glass HUD cards + menus. Everything scales with rem / clamp from phones to 4K.
   Layout switches on .is-land (landscape: side panels) / portrait (top row + bottom bar); JS reads the HUD rects to fit the container. */
:root { --pm-acc: #9B7BFF; --pm-cy: #2FD6FF; --pm-gold: #FFD23F; --pm-ink: #0F0C22; }
html { font-size: clamp(14px, calc(9px + .45vw), 26px); height: 100%; }
html, body { height: 100%; overflow: hidden; }
body { margin: 0; background: #0F0C22; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
button, a { -webkit-tap-highlight-color: transparent; }

.pm { position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #0F0C22; --safe-t: env(safe-area-inset-top, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); }
.pm-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.pm.is-menu .pm-cv, .pm.is-over .pm-cv, .pm.is-pause .pm-cv { cursor: default; }

/* ---------- top bar ---------- */
.pm-top { position: absolute; z-index: 45; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(12px, var(--safe-t)) max(14px, var(--safe-r)) 0 max(14px, var(--safe-l)); pointer-events: none; }
.pm-top > * { pointer-events: auto; }
.pm-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; transition: background .15s, transform .12s; }
.pm-brand:hover { background: rgba(15, 12, 34, .8); transform: translateY(-1px); }
.pm-brand img { width: 34px; height: 34px; }
.pm-brand b { font-family: var(--font-d); font-size: .95rem; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.pm-brand b i { font-style: normal; color: var(--lime); }
.pm.is-play .pm-brand, .pm.is-pause .pm-brand, .pm.is-dying .pm-brand { display: none; }
.pm-tools { display: flex; gap: 8px; margin-left: auto; }
.pm-tool { width: 46px; height: 46px; border: 0; padding: 0; display: grid; place-items: center; border-radius: 13px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; transition: background .15s, transform .12s; text-decoration: none; color: #fff; }
.pm-tool:hover { background: rgba(15, 12, 34, .85); transform: translateY(-1px); }
.pm-tool svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pm.is-menu #bPause, .pm.is-over #bPause, .pm.is-menu .pm-tool--home, .pm.is-over .pm-tool--home { display: none; }
@media (pointer: coarse) { .pm-tool { width: 50px; height: 50px; } .pm-tool--full { display: none; } }
@media (max-width: 560px) { .pm.is-play .pm-tool--home, .pm.is-pause .pm-tool--home, .pm.is-dying .pm-tool--home { display: none; } .pm-tool { width: 46px; height: 46px; } }

/* ---------- HUD ---------- */
.pm-hud { position: absolute; inset: 0; z-index: 10; pointer-events: none; color: #fff; font-size: 1rem; }
.pm-hud[hidden] { display: none; }
.pm-hud__l { display: contents; }
.pm-card { background: rgba(15, 12, 34, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 6px 18px rgba(0, 0, 0, .25); padding: .5rem .85rem .55rem; line-height: 1; position: absolute; }
.pm-card small { display: block; font-weight: 800; font-size: .58rem; letter-spacing: .17em; text-transform: uppercase; color: var(--mute); margin-bottom: .32rem; }
.pm-card b { display: inline-block; font-family: var(--font-d); font-weight: 400; font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pm-score b { font-size: 1.95rem; color: #fff; text-shadow: 0 0 .5em rgba(155, 123, 255, .5); }
.pm-score b.pop, .pm-card img.pop { animation: pmpop .3s var(--ease); }
.pm-score em { font-style: normal; font-family: var(--font-d); font-size: .62rem; letter-spacing: .06em; color: #0F0C22; background: var(--pm-gold); padding: .2em .55em; border-radius: 99px; margin-left: .55em; vertical-align: middle; display: none; }
.pm-score em.show { display: inline-block; }
.pm-score em.pop { animation: pmpop .3s var(--ease); }
.pm-next img { display: block; width: 3.1rem; height: 3.1rem; margin: -.1rem auto -.1rem; filter: drop-shadow(0 .15em .25em rgba(0, 0, 0, .4)); }
@keyframes pmpop { 0% { transform: scale(1.3); } 100% { transform: none; } }
.pm-shake { position: absolute; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .5rem 1rem; border: 0; border-radius: 16px; pointer-events: auto; font-family: var(--font-d); font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; color: #0F0C22; background: linear-gradient(180deg, #FFE36B, #FFB82E); box-shadow: 0 5px 0 #A86A00, 0 0 0 2px rgba(255, 255, 255, .25) inset, 0 8px 16px rgba(0, 0, 0, .2); transition: transform .12s var(--ease), box-shadow .12s, filter .15s; touch-action: manipulation; }
.pm-shake svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pm-shake b { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .3em; border-radius: 99px; background: #0F0C22; color: #FFE36B; font-weight: 400; font-size: .85em; }
.pm-shake b.pop { animation: pmpop .3s var(--ease); }
.pm-shake:hover { transform: translateY(-2px); filter: brightness(1.06); }
.pm-shake:active { transform: translateY(4px); box-shadow: 0 1px 0 #A86A00, 0 0 0 2px rgba(255, 255, 255, .25) inset; }
.pm-shake.empty { filter: grayscale(.85) brightness(.7); }
.pm-shake.ping { animation: pmping .9s var(--ease) 2; }
@keyframes pmping { 0%, 100% { box-shadow: 0 5px 0 #A86A00, 0 0 0 2px rgba(255, 255, 255, .25) inset, 0 0 0 0 rgba(255, 226, 107, .8); } 50% { box-shadow: 0 5px 0 #A86A00, 0 0 0 2px rgba(255, 255, 255, .25) inset, 0 0 0 14px rgba(255, 226, 107, 0); } }

.pm-chain { position: absolute; background: rgba(15, 12, 34, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; padding: .5rem; }
.pm-chain h4 { margin: .1rem .35rem .45rem; font: 800 .6rem/1 var(--font-b); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.pm-ch { display: flex; align-items: center; gap: .55rem; opacity: .34; filter: saturate(.5) brightness(.8); transition: opacity .3s, filter .3s; }
.pm-ch img { width: 2.3rem; height: 2.3rem; flex: none; }
.pm-ch span { font-weight: 800; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #E2DEFF; white-space: nowrap; }
.pm-ch.got { opacity: 1; filter: none; }
.pm-ch.new img { animation: pmpop .5s var(--ease); }

/* portrait: top row of cards, bottom bar with the evolution strip + shake */
.pm:not(.is-land) .pm-card { top: calc(max(8px, var(--safe-t)) + 58px); }
.pm:not(.is-land) .pm-score { left: max(12px, var(--safe-l)); min-width: 34%; }
.pm:not(.is-land) .pm-next { left: 50%; transform: translateX(-50%); text-align: center; min-width: 5.2rem; }
.pm:not(.is-land) .pm-best { right: max(12px, var(--safe-r)); min-width: 28%; text-align: right; }
.pm:not(.is-land) .pm-shake { right: max(12px, var(--safe-r)); bottom: calc(max(10px, var(--safe-b)) + 4px); }
.pm:not(.is-land) .pm-chain { left: max(12px, var(--safe-l)); right: calc(max(12px, var(--safe-r)) + 7.3rem); bottom: calc(max(10px, var(--safe-b)) + 4px); min-height: 48px; padding: .35rem .5rem; display: flex; align-items: center; }
.pm:not(.is-land) .pm-chain h4, .pm:not(.is-land) .pm-ch span { display: none; }
.pm:not(.is-land) .pm-chain__g { display: flex; justify-content: space-between; width: 100%; gap: 2px; }
.pm:not(.is-land) .pm-ch img { width: min(2.1rem, calc((100vw - 24px - 4.6rem - 10px - 1.2rem) / 11 - 2px)); height: min(2.1rem, calc((100vw - 24px - 4.6rem - 10px - 1.2rem) / 11 - 2px)); }
@media (max-width: 400px) { .pm:not(.is-land) .pm-chain { right: calc(max(12px, var(--safe-r)) + 6.3rem); } .pm:not(.is-land) .pm-shake { padding: .5rem .7rem; font-size: .85rem; } .pm:not(.is-land) .pm-shake span { display: none; } .pm:not(.is-land) .pm-chain { right: calc(max(12px, var(--safe-r)) + 4.6rem); } }

/* landscape: left column (score / best / next / shake), right column (evolution) */
.pm.is-land .pm-hud__l { display: flex; flex-direction: column; gap: .65rem; position: absolute; left: max(14px, var(--safe-l)); top: calc(max(12px, var(--safe-t)) + 56px); width: 11.5rem; }
.pm.is-land .pm-card { position: relative; }
.pm.is-land .pm-next { display: flex; align-items: center; justify-content: space-between; padding: .45rem .85rem; }
.pm.is-land .pm-next small { margin: 0; }
.pm.is-land .pm-next img { margin: 0; width: 3.4rem; height: 3.4rem; }
.pm.is-land .pm-shake { position: relative; width: 100%; }
.pm.is-land .pm-chain { right: max(14px, var(--safe-r)); top: calc(max(12px, var(--safe-t)) + 56px); width: 11.6rem; }
.pm.is-land .pm-chain__g { display: grid; gap: .3rem; }
.pm.is-short .pm-hud__l { gap: .4rem; width: 9.6rem; top: calc(max(8px, var(--safe-t)) + 52px); }
.pm.is-short .pm-card { padding: .35rem .65rem .4rem; border-radius: 12px; }
.pm.is-short .pm-score b { font-size: 1.5rem; } .pm.is-short .pm-card b { font-size: 1.15rem; } .pm.is-short .pm-card small { margin-bottom: .2rem; }
.pm.is-short .pm-next img { width: 2.5rem; height: 2.5rem; } .pm.is-short .pm-next { padding: .3rem .65rem; }
.pm.is-short .pm-shake { min-height: 40px; padding: .3rem .8rem; font-size: .85rem; }
.pm.is-short .pm-chain { width: auto; top: calc(max(8px, var(--safe-t)) + 52px); padding: .4rem; }
.pm.is-short .pm-chain h4, .pm.is-short .pm-ch span { display: none; }
.pm.is-short .pm-chain__g { grid-template-columns: 1fr 1fr; gap: .15rem .3rem; }
.pm.is-short .pm-ch img { width: 1.85rem; height: 1.85rem; }

/* ---------- banner / toast ---------- */
.pm-banner { --bc: #FFC23D; position: absolute; z-index: 20; left: 50%; top: 26%; width: min(92vw, 40em); transform: translateX(-50%); text-align: center; pointer-events: none; opacity: 0; }
.pm-banner small { display: block; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; font-size: clamp(.7rem, .6rem + .5vw, 1rem); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .75); }
.pm-banner h2 { margin: .1em 0 .12em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .95; font-size: clamp(2rem, 1rem + 4.2vw, 4.6rem); color: var(--bc); text-shadow: 0 .05em 0 rgba(20, 10, 50, .7), 0 0 .5em color-mix(in srgb, var(--bc) 55%, transparent), 0 .1em .4em rgba(0, 0, 0, .5); -webkit-text-stroke: .03em rgba(20, 10, 50, .6); paint-order: stroke fill; }
.pm-banner p { display: inline-block; margin: .2em 0 0; padding: .35em 1.1em; border-radius: 99px; background: rgba(15, 12, 34, .62); font-weight: 800; font-size: clamp(.8rem, .6rem + .5vw, 1.1rem); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset; max-width: 90%; }
.pm-banner.show { animation: pmbanner 2.6s var(--ease) forwards; }
@keyframes pmbanner { 0% { opacity: 0; transform: translate(-50%, 24px) scale(.82); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20% { transform: translate(-50%, 0) scale(1); } 76% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -26px) scale(1); } }
.pm-toast { position: absolute; z-index: 22; left: 50%; bottom: max(14%, calc(var(--safe-b) + 110px)); transform: translate(-50%, 12px); max-width: min(92vw, 34em); padding: .6em 1.3em; border-radius: 99px; text-align: center; font-weight: 800; font-size: clamp(.85rem, .6rem + .5vw, 1.15rem); background: rgba(15, 12, 34, .88); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16) inset; pointer-events: none; opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.pm-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pm-toast.new { box-shadow: 0 0 0 2px var(--pm-gold) inset, 0 0 1.4em rgba(255, 210, 63, .35); }
.pm-toast.tip { box-shadow: 0 0 0 2px var(--pm-cy) inset, 0 0 1.4em rgba(47, 214, 255, .3); }
.pm-toast.warn { box-shadow: 0 0 0 2px #FF5070 inset, 0 0 1.4em rgba(255, 80, 112, .35); }
.pm.is-land .pm-toast { bottom: max(9%, calc(var(--safe-b) + 40px)); }

/* ---------- overlays ---------- */
.pm-ov { position: absolute; inset: 0; z-index: 40; display: none; overflow: auto; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; }
.pm-ov::-webkit-scrollbar { display: none; }
.pm-ov.show { display: block; animation: pmfade .3s ease; }
.pm-ov--screen.show { background: rgba(10, 8, 28, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pm-ov--center.show { background: rgba(15, 12, 34, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pm-ov--menu.show { background: linear-gradient(90deg, rgba(15, 12, 34, .9) 0%, rgba(15, 12, 34, .62) 34%, rgba(15, 12, 34, .05) 54%, rgba(15, 12, 34, 0) 70%), linear-gradient(0deg, rgba(15, 12, 34, .5), rgba(15, 12, 34, 0) 26%); overflow: hidden; }
@keyframes pmfade { from { opacity: 0; } }
@keyframes pmpop2 { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.pm-fade { position: absolute; inset: 0; z-index: 60; background: #0F0C22; opacity: 0; pointer-events: none; transition: opacity .35s; }
.pm-fade.on { opacity: 1; }

/* ---------- menu ---------- */
.pm-menu { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(64px, 9vh, 120px) clamp(20px, 5vw, 110px) clamp(16px, 3vh, 40px) max(clamp(20px, 5vw, 110px), var(--safe-l)); }
.pm-menu__l { animation: pmpop2 .5s var(--ease); max-width: min(38em, 100%, 46vw); min-width: 0; }
.pm-kicker { display: inline-flex; align-items: center; gap: .6em; flex-wrap: wrap; font-weight: 800; font-size: clamp(.7rem, .55vw + .45rem, 1rem); letter-spacing: .16em; text-transform: uppercase; color: var(--pm-cy); }
.pm-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.pm-kicker span { color: #CFC9F5; letter-spacing: .1em; padding: .15em .7em; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.pm-title { margin: .08em 0 .14em; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .86; font-size: clamp(3.2rem, min(8vw, 15vh), 10rem); letter-spacing: .005em; display: grid; justify-items: start; }
.pm-title b { font-weight: 400; display: block; background: linear-gradient(100deg, #9FF1FF 0%, #2FD6FF 26%, #9B7BFF 52%, #FF6FD0 76%, #9FF1FF 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: pmslide 8s linear infinite; filter: drop-shadow(0 .05em 0 rgba(20, 10, 60, .6)) drop-shadow(0 0 .45em rgba(130, 110, 255, .38)); }
.pm-title b.b2 { margin-left: .35em; animation-delay: -1.4s; }
@keyframes pmslide { to { background-position: -220% 0; } }
.pm-tag { margin: 0 0 clamp(14px, 2.4vh, 28px); font-size: clamp(.95rem, .5vw + .75rem, 1.35rem); font-weight: 600; color: #DCD7FF; max-width: 28em; line-height: 1.45; }
.pm-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(6px, 1.6vh, 20px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.f { fill: currentColor; stroke: none; }
.pm-cta .btn, .pm-sub .btn, .pm-acts .btn { gap: .55em; }
.pm-cta .btn--big { font-size: clamp(1.05rem, .5vw + .9rem, 1.6rem); }
.btn--cosmic { --bg: #2FD6FF; --fg: #0F0C22; --sh: #0A7FA0; }
.btn--daily { --bg: #7A5CF0; --fg: #fff; --sh: #3A22A0; }
.pm-sub { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.pm-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(14px, 2.4vh, 28px); }
.pm-chip { padding: .5em 1em; border-radius: 14px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1.05; text-align: left; }
.pm-chip small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.pm-chip b { font-family: var(--font-d); font-weight: 400; font-size: 1.25rem; }
.pm-dailytag { font-size: .62em; font-weight: 800; letter-spacing: .1em; padding: .15em .6em; border-radius: 99px; background: rgba(255, 255, 255, .18); margin-left: .3em; }

/* ---------- screens ---------- */
.pm-screen { position: relative; min-height: 100%; padding: max(72px, calc(var(--safe-t) + 64px)) max(16px, var(--safe-r)) max(30px, var(--safe-b)) max(16px, var(--safe-l)); }
.pm-screen--center { display: grid; place-items: center; padding-top: max(24px, var(--safe-t)); }
.pm-head { position: sticky; top: 0; z-index: 5; padding: .5rem 0 .6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(64em, 100%); margin: 0 auto .2rem; }
.pm-head h2 { margin: 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1.8vw, 3rem); text-shadow: 0 4px 0 rgba(0, 0, 0, .4); }
.pm-sub2 { margin: 0 0 1rem; color: #CFC9F5; font-weight: 600; }
.pm-screen > .pm-sub2 { width: min(64em, 100%); margin: 0 auto 1rem; }
.pm-sub2 b { color: var(--pm-gold); }
.pm-tgrid { width: min(64em, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5em, 1fr)); gap: 1rem; }
.pm-tc { --ac: #9B7BFF; position: relative; border: 0; padding: .55rem .55rem .8rem; border-radius: 20px; color: #fff; text-align: left; background: linear-gradient(180deg, #2A2260, #1B1540); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 .3em 0 rgba(0, 0, 0, .35); transition: transform .14s var(--ease), box-shadow .2s; display: grid; gap: .3em; }
.pm-tc:hover { transform: translateY(-3px); }
.pm-tc.sel { box-shadow: 0 0 0 3px var(--ac) inset, 0 .3em 0 rgba(0, 0, 0, .35), 0 0 1.6em color-mix(in srgb, var(--ac) 45%, transparent); }
.pm-tc canvas { width: 100%; aspect-ratio: 300/380; display: block; border-radius: 14px; background: #111; }
.pm-tc b { font-family: var(--font-d); font-weight: 400; font-size: 1rem; text-transform: uppercase; margin-top: .3rem; padding: 0 .3rem; }
.pm-tc small { font-size: .74rem; font-weight: 600; color: #CFC9F5; line-height: 1.3; padding: 0 .3rem; }
.pm-tstat { display: inline-flex; align-items: center; gap: .4em; margin: .2rem .3rem 0; font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ac); }
.pm-tstat svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pm-tc.lock canvas { filter: brightness(.45) saturate(.5); } .pm-tc.lock .pm-tstat { color: var(--mute); }
.pm-cgrid { width: min(64em, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5em, 1fr)); gap: .8rem; }
.pm-cc { padding: .8rem .9rem 1rem; border-radius: 18px; background: linear-gradient(180deg, #2A2260, #1B1540); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; display: grid; justify-items: center; text-align: center; gap: .2rem; }
.pm-cc__i { height: 5.6rem; display: grid; place-items: center; } .pm-cc__i img { width: 5.2rem; height: 5.2rem; }
.pm-cc b { font-family: var(--font-d); font-weight: 400; font-size: 1.05rem; text-transform: uppercase; }
.pm-cc small { font-weight: 800; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pm-cc p { margin: .3rem 0 0; font-size: .8rem; font-weight: 600; color: #DCD7FF; line-height: 1.35; }
.pm-cc.lock .pm-cc__i img { filter: brightness(0) opacity(.35); } .pm-cc.lock b { color: var(--mute); }
.pm-stat { width: min(64em, 100%); margin: 1rem auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); gap: .6rem; }
.pm-note { width: min(64em, 100%); margin: .8rem auto 0; font-size: .82rem; color: var(--mute); font-weight: 600; text-align: center; }

/* ---------- cards ---------- */
.pm-card2 { width: min(34em, 100%); text-align: center; padding: 1.7rem 1.8rem 1.5rem; border-radius: 28px; background: linear-gradient(180deg, #2A2260, #1B1540); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12) inset, 0 30px 80px rgba(0, 0, 0, .55); animation: pmpop2 .4s var(--ease); margin: auto; }
.pm-card2 h2 { font-family: var(--font-d); font-weight: 400; font-size: clamp(1.7rem, 1.1rem + 1.7vw, 3rem); line-height: 1; margin: .1em 0 .3em; text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.pm-card2 h3 { font-family: var(--font-d); font-weight: 400; text-transform: uppercase; font-size: 1rem; color: var(--pm-cy); margin: 1.1em 0 .5em; text-align: left; }
.pm-k { display: block; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; color: var(--pm-cy); }
.pm-acts { display: grid; gap: .65rem; margin-top: 1.1rem; }
.pm-acts .row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.pm-acts .btn { width: 100%; }
.pm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4em, 1fr)); gap: .6rem; margin: 1rem 0 .4rem; }
.pm-stats .pm-chip { text-align: center; padding: .6em .4em; }
.pm-stats.c3 { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.pm-big { font-family: var(--font-d); font-size: clamp(3.4rem, 2rem + 5vw, 5.6rem); line-height: 1; color: #fff; text-shadow: 0 5px 0 rgba(0, 0, 0, .4), 0 0 .4em rgba(155, 123, 255, .55); -webkit-text-stroke: .04em rgba(20, 10, 50, .5); paint-order: stroke fill; }
.pm-biglab { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-top: 2px; }
.pm-rec { display: inline-block; margin: .6rem 0 0; padding: .35em 1em; border-radius: 99px; background: var(--pm-gold); color: var(--pm-ink); font-family: var(--font-d); font-size: .9rem; transform: rotate(-3deg); box-shadow: 0 3px 0 #B68A00; animation: pmpop2 .5s .3s both var(--ease); }
.pm-over__p { display: inline-flex; align-items: center; gap: .8rem; text-align: left; margin: .2rem 0 .3rem; padding: .3rem 1.1rem .3rem .4rem; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.pm-over__p small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pm-over__p b { font-family: var(--font-d); font-weight: 400; font-size: 1.2rem; text-transform: uppercase; }
.pm-over__p img { width: 4.2rem; height: 4.2rem; animation: pmspin .9s .1s both cubic-bezier(.3, 1.5, .5, 1); }
@keyframes pmspin { 0% { transform: scale(0) rotate(-120deg); } 100% { transform: none; } }
.pm-unlock { display: flex; align-items: center; justify-content: center; gap: .5em; margin: .8rem 0 0; font-weight: 800; color: var(--pm-gold); font-size: .95rem; }
.pm-unlock svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pm-card2--how { text-align: left; width: min(42em, 100%); } .pm-card2--how h2 { text-align: center; }
.pm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.pm-steps li { display: grid; grid-template-columns: 2.2em 1fr; gap: .8rem; align-items: center; } .pm-steps li b { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--pm-cy); color: var(--pm-ink); font-family: var(--font-d); font-weight: 400; }
.pm-steps p { margin: 0; font-weight: 600; color: #E2DEFF; font-size: .95rem; line-height: 1.38; } .pm-steps strong { color: #fff; }
.pm-opt { text-align: left; margin: .7rem 0; display: grid; gap: .35rem; } .pm-opt small { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.pm-seg { display: flex; gap: 6px; flex-wrap: wrap; } .pm-seg button { flex: 1; min-width: 4.4em; min-height: 44px; padding: .55em .9em; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .08); font-weight: 800; font-size: .9rem; color: #D6D1FA; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; transition: background .15s, transform .1s; }
.pm-seg button:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); } .pm-seg button.on { background: var(--pm-cy); color: var(--pm-ink); box-shadow: none; }
.pm-seg button.danger.on, .pm-seg button.danger:hover { background: #FF5B4A; color: #fff; }

/* ---------- responsive ---------- */
.pm:not(.is-land) .pm-ov--menu.show { background: linear-gradient(0deg, rgba(15, 12, 34, .94) 0%, rgba(15, 12, 34, .78) 38%, rgba(15, 12, 34, 0) 56%), linear-gradient(180deg, rgba(15, 12, 34, .8), rgba(15, 12, 34, .55) 26%, rgba(15, 12, 34, 0) 42%); }
.pm:not(.is-land) .pm-menu { padding: max(66px, calc(var(--safe-t) + 58px)) max(18px, var(--safe-r)) max(18px, var(--safe-b)) max(18px, var(--safe-l)); text-align: center; align-items: stretch; }
.pm:not(.is-land) .pm-menu__l { display: flex; flex-direction: column; align-items: center; height: 100%; width: 100%; max-width: 30em; margin: 0 auto; }
.pm:not(.is-land) .pm-title { justify-items: center; font-size: clamp(3rem, 16vw, 6.4rem); } .pm:not(.is-land) .pm-title b.b2 { margin-left: 0; }
.pm:not(.is-land) .pm-kicker { justify-content: center; } .pm:not(.is-land) .pm-kicker span { display: none; }
.pm:not(.is-land) .pm-tag { font-size: .9rem; margin-bottom: 0; max-width: 24em; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.pm:not(.is-land) .pm-cta { margin-top: auto; flex-direction: column; width: 100%; flex-wrap: nowrap; gap: .6rem; } .pm:not(.is-land) .pm-cta .btn { width: 100%; }
.pm:not(.is-land) .pm-sub { justify-content: center; margin-top: .8rem; gap: .5rem; } .pm:not(.is-land) .pm-chips { justify-content: center; margin-top: .8rem; }
.pm:not(.is-land) .pm-brand b { display: none; } .pm:not(.is-land) .pm-brand { padding: 6px; }
@media (max-height: 700px) { .pm:not(.is-land) .pm-tag { display: none; } .pm:not(.is-land) .pm-chips { display: none; } .pm:not(.is-land) .pm-card2 { padding: 1.1rem 1.2rem 1rem; border-radius: 24px; } .pm:not(.is-land) .pm-screen--center { align-items: start; padding-top: 64px; } }
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .pm-menu { padding-top: 56px; align-items: center; } .pm-tag, .pm-chips, .pm-kicker span { display: none; } .pm-title { font-size: clamp(2.4rem, 17vh, 4.6rem); } .pm-sub { margin-top: .6rem; }
  .pm-cta .btn--big { font-size: 1rem; padding: .6em 1.2em; } .pm-menu__l { max-width: 46vw; }
  .pm-card2 { padding: 1rem 1.2rem; border-radius: 22px; } .pm-acts { margin-top: .6rem; } .pm-stats { margin: .5rem 0 .2rem; } .pm-big { font-size: 2.8rem; } .pm-card2 h2 { margin-bottom: .1em; } .pm-sub2 { margin-bottom: .4rem; font-size: .85rem; }
  .pm-over__p img { width: 3rem; height: 3rem; } .pm-over__p { margin: 0; } .pm-banner { top: 22%; } .pm-screen { padding-top: 60px; }
  .pm-card2--over { width: min(40em, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.2rem; text-align: center; align-items: center; } .pm-card2--over > * { grid-column: 1; } .pm-card2--over .pm-acts, .pm-card2--over .pm-stats, .pm-card2--over .pm-unlock { grid-column: 2; } .pm-card2--over .pm-acts { grid-row: 2 / span 6; } .pm-card2--over .pm-stats { grid-row: 1; }
  .pm-card2--over h2 { font-size: 1.5rem; } .pm-card2--over .pm-k { display: none; } .pm-card2--over > * { justify-self: center; } .pm-card2--over .pm-acts, .pm-card2--over .pm-stats { justify-self: stretch; } .pm-rec { margin-top: .2rem; }
}
.pm-card2--over .pm-stats { }
@media (prefers-reduced-motion: reduce) { .pm-title b, .pm-shake.ping { animation: none; } }
