/* ふたりの相性診断（2026-09-29）。卓のページに #pgBox を差し込む。記録の表示（マイページ・シェアのページ）も同じ部品。 */
body.pg-on #ctArt, body.pg-on #ctSeats, body.pg-on #ctWord, body.pg-on #ctAct, body.pg-on #ctRes { display: none !important; }
.pg { --pc: #d65c9a; --pc2: #8b6cc1; --ink: #3a2a45; --sub: #8b7f95; --line: #f2dcea; --bg: #fff; position: relative; margin: 6px 0 14px; color: var(--ink); font-feature-settings: "palt"; }
.pg.is-love { --pc: #e0578f; --pc2: #f08aa8; } .pg.is-friend { --pc: #ef9a1f; --pc2: #f5c451; } .pg.is-work { --pc: #3f8fd8; --pc2: #7b6fe0; }
.pg * { box-sizing: border-box; }
.pg button { font-family: inherit; }
.pg-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 900; font-size: 14px; cursor: pointer; text-decoration: none; line-height: 1.3; }
.pg-b.is-pri { background: linear-gradient(135deg, var(--pc), var(--pc2)); color: #fff; border: none; box-shadow: 0 6px 16px -8px var(--pc); }
.pg-b.is-big { width: 100%; min-height: 54px; font-size: 16px; }
.pg-b.is-ghost { background: transparent; }
.pg-b[disabled] { opacity: .5; cursor: default; }
.pg-b.is-line { background: #06c755; color: #fff; border: none; }
.pg-b.is-x { background: #111; color: #fff; border: none; }
.pg__toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: rgba(40, 28, 52, .92); color: #fff; font-size: 13px; font-weight: 800; padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; z-index: 9990; max-width: 90vw; text-align: center; }
.pg__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- 上の帯 ---- */
.pg__top { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.pg__chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--pc), var(--pc2)); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.pg__prog { flex: 1; min-width: 0; }
.pg__progt { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 900; color: var(--sub); margin: 0 0 3px; }
.pg__bar { height: 7px; border-radius: 99px; background: #f3e8f0; overflow: hidden; }
.pg__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pc), var(--pc2)); transition: width .4s; }
.pg__clock { position: relative; width: 42px; height: 42px; flex: 0 0 auto; }
.pg__clock svg { width: 42px; height: 42px; transform: rotate(-90deg); }
.pg__clock circle { fill: none; stroke-width: 4; }
.pg__clock .cb { stroke: #f1e4ee; } .pg__clock .cf { stroke: var(--pc); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.pg__clock b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; }
.pg__clock.is-low .cf { stroke: #e5484d; } .pg__clock.is-low b { color: #e5484d; animation: pgPulse .5s infinite alternate; }

/* ---- ふたり（進み具合） ---- */
.pg__duo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 8px 10px; margin: 0 0 10px; }
.pg-p { display: flex; align-items: center; gap: 8px; min-width: 0; background: none; border: none; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.pg-p.is-r { flex-direction: row-reverse; text-align: right; }
.pg-p__av { position: relative; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; background: #f6eef4; border: 2.5px solid #fff; box-shadow: 0 0 0 2px var(--line); overflow: visible; }
.pg-p__av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pg-p.is-done .pg-p__av { box-shadow: 0 0 0 2.5px #35b27d; }
.pg-p__ok { position: absolute; right: -4px; bottom: -3px; width: 19px; height: 19px; border-radius: 50%; background: #35b27d; color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; transform: scale(0); transition: transform .3s cubic-bezier(.2, 1.6, .5, 1); }
.pg-p.is-done .pg-p__ok { transform: scale(1); }
.pg-p__b { min-width: 0; }
.pg-p__n { display: block; font-size: 12.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-p__me { display: inline-block; font-size: 9.5px; font-weight: 900; color: #fff; background: var(--pc); border-radius: 99px; padding: 0 6px; margin: 0 4px 0 0; vertical-align: 1px; }
.pg-p.is-r .pg-p__me { margin: 0 0 0 4px; }
.pg-p__s { display: inline; font-size: 11px; font-weight: 800; color: var(--sub); white-space: nowrap; }
.pg-p__s.is-think::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: pgDots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
.pg-p__s.is-ok { color: #2a9d6c; } .pg-p__s.is-type { color: var(--pc); }
.pg__heart { font-size: 20px; animation: pgBeat 1.4s infinite; }

/* ---- 問い ---- */
.pg-q { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 16px 14px 14px; box-shadow: 0 10px 26px -18px rgba(90, 40, 110, .45); animation: pgIn .35s ease-out; }
.pg-q__k { display: inline-block; font-size: 11px; font-weight: 900; color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, #fff); padding: 3px 10px; border-radius: 999px; margin: 0 0 7px; }
.pg-q__k.is-guess { color: #fff; background: linear-gradient(135deg, var(--pc), var(--pc2)); }
.pg-q__t { font-size: 18px; font-weight: 900; line-height: 1.5; margin: 0 0 12px; }
.pg-q__t small { display: block; font-size: 12px; font-weight: 700; color: var(--sub); margin-top: 3px; }
.pg-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg-ch.is-3 { grid-template-columns: 1fr 1fr 1fr; }
.pg-ch.is-4 { grid-template-columns: repeat(4, 1fr); }
.pg-ch button { position: relative; min-height: 52px; padding: 9px 8px; border-radius: 15px; border: 2px solid var(--line); background: #fffafd; color: var(--ink); font-weight: 900; font-size: 14px; line-height: 1.35; cursor: pointer; transition: transform .12s, border-color .15s, background .15s; }
.pg-ch button:active { transform: scale(.96); }
.pg-ch button.is-on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 13%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 22%, transparent); }
.pg-ch button.is-mine::after { content: 'あなた'; position: absolute; top: -8px; right: 6px; font-size: 10px; font-weight: 900; color: #fff; background: var(--pc); padding: 1px 7px; border-radius: 99px; }
.pg-ch button[disabled] { cursor: default; opacity: .55; }
.pg-ch button[disabled].is-on { opacity: 1; }
.pg-an { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pg-an button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 11px; font-weight: 900; color: var(--ink); }
.pg-an button img { width: 100%; max-width: 52px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.pg-an button.is-on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, #fff); transform: scale(1.04); }
.pg-col { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pg-col button { aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #e6d8e2; cursor: pointer; position: relative; }
.pg-col button span { position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); font-size: 10px; font-weight: 900; color: var(--sub); white-space: nowrap; }
.pg-col { padding-bottom: 16px; row-gap: 22px; }
.pg-col button.is-on { box-shadow: 0 0 0 3px var(--pc); transform: scale(1.08); }
.pg-sea { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg-sea button { min-height: 76px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 900; font-size: 15px; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pg-sea button i { font-style: normal; font-size: 26px; }
.pg-sea button small { font-size: 10.5px; color: var(--sub); }
.pg-sea button[data-v="spring"] { background: #fff1f6; } .pg-sea button[data-v="summer"] { background: #fffbe6; } .pg-sea button[data-v="autumn"] { background: #fff3e8; } .pg-sea button[data-v="winter"] { background: #eef6ff; }
.pg-sea button.is-on { border-color: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 22%, transparent); }
.pg-in { margin: 12px 0 0; }
.pg-in label { display: block; font-size: 12px; font-weight: 900; color: var(--sub); margin: 0 0 5px; }
.pg-in textarea, .pg-in input { width: 100%; font-size: 16px; font-family: inherit; padding: 11px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fffafd; color: var(--ink); resize: none; }
.pg-in textarea:focus, .pg-in input:focus { outline: none; border-color: var(--pc); background: #fff; }
.pg-in__c { display: flex; justify-content: space-between; font-size: 11px; color: var(--sub); margin: 4px 2px 0; }
.pg-q__go { margin: 12px 0 0; }
.pg-q__go.is-stick { position: sticky; bottom: var(--pg-dock, 70px); z-index: 4; margin: 10px -14px -14px; padding: 10px 14px 12px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%); border-radius: 0 0 22px 22px; }
.pg-q__wait { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--pc) 8%, #fff); border-radius: 16px; padding: 12px 13px; margin: 12px 0 0; font-size: 13px; font-weight: 800; line-height: 1.6; }
.pg-q__wait .sp { width: 22px; height: 22px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--pc) 25%, #fff); border-top-color: var(--pc); animation: pgSpin .8s linear infinite; flex: 0 0 auto; }
.pg-q__mine { font-size: 12px; color: var(--sub); margin: 8px 0 0; }
.pg-q__mine b { color: var(--ink); }
.pg-q__cd { position: absolute; inset: 0; border-radius: 22px; background: rgba(255, 255, 255, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 3; }
.pg-q__cd b { font-size: 44px; font-weight: 900; color: var(--pc); animation: pgPop .5s; }
.pg-q__cd span { font-size: 13px; font-weight: 900; color: var(--sub); }

/* ---- 一致の演出 ---- */
.pg-ov { position: fixed; inset: 0; z-index: 9980; display: flex; align-items: center; justify-content: center; background: rgba(40, 20, 50, .45); backdrop-filter: blur(3px); animation: pgFade .25s; padding: 20px; }
.pg-ov[hidden] { display: none; }
.pg-ov__in { width: min(360px, 100%); background: #fff; border-radius: 26px; padding: 20px 16px 18px; text-align: center; animation: pgPop .45s cubic-bezier(.2, 1.5, .5, 1); }
.pg-ov__h { font-size: 26px; font-weight: 900; margin: 4px 0 2px; background: linear-gradient(135deg, var(--pc), var(--pc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-ov__s { font-size: 12.5px; color: var(--sub); font-weight: 800; margin: 0 0 12px; }
.pg-ov__two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-ov__two div { background: #fff7fb; border: 2px solid var(--line); border-radius: 16px; padding: 10px 6px; }
.pg-ov__two small { display: block; font-size: 11px; color: var(--sub); font-weight: 800; }
.pg-ov__two b { display: block; font-size: 15px; margin-top: 3px; }
.pg-ov.is-hit .pg-ov__two div { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, #fff); }

/* ---- 募集中 ---- */
.pg-w__hero { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #ffe3ef, #fff6d6 55%, #e6f0ff); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 12px 12px; margin: 0 0 12px; }
.pg-w__hero.has-img { background-size: cover; background-position: center; min-height: 0; aspect-ratio: 16/9; }
.pg-w__hero .h { display: flex; align-items: center; gap: 4px; }
.pg-w__hero .h img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; background: #fff; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); animation: pgFloat 3s ease-in-out infinite; }
.pg-w__hero .h img + i + img { animation-delay: -1.5s; }
.pg-w__hero .h i { font-style: normal; font-size: 30px; animation: pgBeat 1.4s infinite; }
.pg-w__ttl { text-align: center; }
.pg-w__hero.has-img .pg-w__ttl { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; background: linear-gradient(transparent, rgba(255, 255, 255, .92)); }
.pg-w__ttl b { display: block; font-size: 20px; font-weight: 900; letter-spacing: .02em; }
.pg-w__ttl small { font-size: 11.5px; font-weight: 800; color: var(--sub); }
.pg-w__seats { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; margin: 0 0 12px; }
.pg-w__seat { display: flex; flex-direction: column; align-items: center; gap: 5px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 6px; min-height: 128px; justify-content: center; text-align: center; }
.pg-w__seat .av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #f6eef4; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.pg-w__seat .av img { width: 100%; height: 100%; object-fit: cover; }
.pg-w__seat b { font-size: 13.5px; font-weight: 900; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-w__seat small { font-size: 11px; font-weight: 800; color: var(--sub); }
.pg-w__seat.is-empty { border-style: dashed; background: #fffafd; }
.pg-w__seat.is-empty .av { display: flex; align-items: center; justify-content: center; font-size: 26px; color: #c9b3c4; animation: pgPulse 1.1s infinite alternate; }
.pg-w__vs { text-align: center; font-size: 22px; animation: pgBeat 1.4s infinite; }
.pg-w__lab { font-size: 13px; font-weight: 900; margin: 14px 0 7px; }
.pg-w__cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pg-w__cat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 5px 10px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); text-align: center; }
.pg-w__cat i { font-style: normal; font-size: 26px; line-height: 1.1; }
.pg-w__cat b { font-size: 14.5px; font-weight: 900; }
.pg-w__cat small { font-size: 10.5px; font-weight: 800; color: var(--sub); line-height: 1.4; }
.pg-w__cat.is-on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 10%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 20%, transparent); }
.pg-w__cat[disabled] { cursor: default; }
.pg-w__lead { font-size: 12px; line-height: 1.8; color: #5c4a68; background: #fff; border-radius: 14px; padding: 9px 12px; margin: 8px 0 0; border: 1px solid var(--line); }
.pg-w__inv { background: linear-gradient(135deg, #fff, #fff4f9); border: 1.5px solid var(--line); border-radius: 18px; padding: 12px; margin: 12px 0 0; }
.pg-w__inv p { font-size: 12.5px; font-weight: 800; line-height: 1.7; margin: 0 0 9px; }
.pg-w__row { display: flex; flex-wrap: wrap; gap: 7px; }
.pg-w__row .pg-b { flex: 1 1 130px; }
.pg-w__go { margin: 14px 0 0; }
.pg-w__how { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; }
.pg-w__how li { position: relative; padding: 0 0 0 30px; margin: 0 0 8px; font-size: 12.5px; line-height: 1.75; color: #5c4a68; counter-increment: s; }
.pg-w__how li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: linear-gradient(135deg, var(--pc), var(--pc2)); color: #fff; font-size: 11.5px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.pg-w__note { font-size: 11.5px; color: var(--sub); line-height: 1.7; margin: 10px 0 0; }

/* ---- 結果（めくるカード） ---- */
.pg-r__dots { display: flex; justify-content: center; gap: 6px; margin: 0 0 10px; }
.pg-r__dots i { width: 8px; height: 8px; border-radius: 50%; background: #eadbe5; transition: .3s; }
.pg-r__dots i.on { background: var(--pc); } .pg-r__dots i.now { width: 22px; border-radius: 99px; }
.pg-flip { perspective: 1400px; }
.pg-card { position: relative; background: #fff; border-radius: 24px; border: 1.5px solid var(--line); padding: 18px 15px 16px; box-shadow: 0 16px 34px -22px rgba(90, 40, 110, .55); overflow: hidden; }
.pg-flip .pg-card.is-new { animation: pgFlipIn .75s cubic-bezier(.2, .9, .3, 1.1) both; transform-origin: 50% 50%; backface-visibility: hidden; }
.pg-card__n { position: absolute; top: 12px; right: 14px; font-size: 11px; font-weight: 900; color: #cbb8c7; }
.pg-card__k { font-size: 11.5px; font-weight: 900; color: var(--pc); letter-spacing: .06em; margin: 0 0 4px; }
.pg-card__h { font-size: 18px; font-weight: 900; line-height: 1.45; margin: 0 0 12px; }
.pg-card.is-back { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(145deg, var(--pc), var(--pc2)); color: #fff; border: none; }
.pg-card.is-back.has-img { background-size: cover; background-position: center; }
.pg-card.is-back .big { font-size: 22px; font-weight: 900; margin: 10px 0 4px; text-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.pg-card.is-back p { font-size: 13px; font-weight: 800; opacity: .95; margin: 0; }
.pg-card.is-back .ic { font-size: 54px; animation: pgBeat 1.4s infinite; }
.pg-r__next { position: sticky; bottom: var(--pg-dock, 70px); z-index: 5; margin: 12px -4px 0; padding: 10px 4px 8px; background: linear-gradient(rgba(251, 243, 248, 0), rgba(251, 243, 248, .96) 28%); }
.pg-r__next .pg-b { width: 100%; min-height: 56px; font-size: 16.5px; }
.pg-r__by { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--sub); margin: 6px 0 0; }
/* 1 数字 */
.pg-sc { text-align: center; }
.pg-sc__ring { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.pg-sc__ring svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.pg-sc__ring circle { fill: none; stroke-width: 14; }
.pg-sc__ring .cb { stroke: #f6ebf2; } .pg-sc__ring .cf { stroke: url(#pgGrad); stroke-linecap: round; transition: stroke-dashoffset 1.8s cubic-bezier(.2, .8, .2, 1); }
.pg-sc__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pg-sc__num b { font-size: 64px; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--pc), var(--pc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-sc__num b small { font-size: 26px; }
.pg-sc__num b i { font-style: normal; }
.pg-sc__num .lab { font-size: 12.5px; font-weight: 900; color: var(--sub); margin-top: 4px; }
.pg-sc__band { display: inline-block; margin: 10px 0 0; font-size: 15px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--pc), var(--pc2)); padding: 6px 18px; border-radius: 99px; }
.pg-sc__parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 0; }
.pg-sc__parts div { background: #fffafd; border: 1px solid var(--line); border-radius: 12px; padding: 7px 4px; }
.pg-sc__parts small { display: block; font-size: 10.5px; font-weight: 800; color: var(--sub); }
.pg-sc__parts b { font-size: 16px; font-weight: 900; }
/* 2 タイプ */
.pg-ty { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pg-ty__one { text-align: center; background: #fffafd; border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 6px 11px; }
.pg-ty__one img.ch { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); }
.pg-ty__one .who { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12.5px; font-weight: 900; }
.pg-ty__one .who img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.pg-ty__one .code { font-size: 17px; font-weight: 900; color: var(--pc); letter-spacing: .03em; margin: 2px 0 0; }
.pg-ty__one .nm { font-size: 11.5px; font-weight: 800; color: #5c4a68; line-height: 1.5; }
.pg-ty__one .est { display: inline-block; font-size: 10px; font-weight: 900; color: #fff; background: #b3a1c0; border-radius: 99px; padding: 1px 7px; margin-top: 4px; }
.pg-ty__one .est.is-reg { background: #35b27d; }
.pg-ty__pair { text-align: center; font-size: 13px; font-weight: 900; margin: 11px 0 0; line-height: 1.6; }
/* 3 動物 */
.pg-am { text-align: center; }
.pg-am__lab { font-size: 13px; font-weight: 900; color: var(--sub); margin: 0 0 4px; }
.pg-am__big { position: relative; width: 170px; height: 170px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #fff 55%, color-mix(in srgb, var(--pc) 16%, #fff)); display: flex; align-items: center; justify-content: center; }
.pg-am__big img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; animation: pgPop .6s .2s both; }
.pg-am__n { font-size: 24px; font-weight: 900; margin: 6px 0 2px; }
.pg-am__w { font-size: 12px; font-weight: 800; color: var(--sub); }
.pg-am__why { display: inline-block; max-width: 100%; margin: 9px 0 0; background: #fff7fb; border: 1.5px solid var(--line); border-radius: 16px; padding: 9px 13px; font-size: 14px; font-weight: 800; line-height: 1.6; position: relative; }
.pg-am__why::before { content: ''; position: absolute; top: -8px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--line); }
.pg-am__row { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin: 12px 0 0; }
.pg-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 900; padding: 5px 11px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); }
.pg-tag i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.pg-am__rev { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border-radius: 16px; background: #fbf6fa; text-align: left; }
.pg-am__rev img { width: 54px; height: 54px; object-fit: cover; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.pg-am__rev p { margin: 0; font-size: 12.5px; line-height: 1.6; font-weight: 700; }
.pg-am__rev b { font-weight: 900; }
/* 4 予想 */
.pg-pr__two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 12px; }
.pg-pr__g { text-align: center; background: #fffafd; border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 6px; }
.pg-pr__g small { display: block; font-size: 11px; font-weight: 800; color: var(--sub); line-height: 1.5; }
.pg-pr__g b { display: block; font-size: 30px; font-weight: 900; color: var(--pc); line-height: 1.2; }
.pg-pr__g b span { font-size: 15px; color: var(--sub); }
.pg-pr__g .meter { height: 8px; border-radius: 99px; background: #f3e8f0; overflow: hidden; margin: 6px 4px 0; }
.pg-pr__g .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--pc), var(--pc2)); border-radius: 99px; }
.pg-pr__g .lv { font-size: 11px; font-weight: 900; margin-top: 4px; }
.pg-pr__list { margin: 0; padding: 0; list-style: none; }
.pg-pr__list li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 0; border-top: 1px dashed #efe1ea; font-size: 12.5px; line-height: 1.6; }
.pg-pr__list li i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #fff; background: #d8c9d3; font-size: 13px; }
.pg-pr__list li.hit i { background: #35b27d; }
.pg-pr__list li b { font-weight: 900; }
.pg-pr__list li small { color: var(--sub); font-weight: 700; }
.pg-seg { display: flex; background: #f6eef4; border-radius: 99px; padding: 3px; margin: 0 0 8px; }
.pg-seg button { flex: 1; border: none; background: none; font-weight: 900; font-size: 12px; padding: 7px 4px; border-radius: 99px; color: var(--sub); cursor: pointer; }
.pg-seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
/* 5 印象 */
.pg-im__box { background: #fffafd; border: 1.5px solid var(--line); border-radius: 18px; padding: 11px 12px; margin: 0 0 9px; }
.pg-im__box h4 { font-size: 12px; font-weight: 900; color: var(--sub); margin: 0 0 5px; display: flex; align-items: center; gap: 6px; }
.pg-im__box .c { display: inline-block; font-size: 14px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--pc), var(--pc2)); padding: 4px 12px; border-radius: 99px; }
.pg-im__box .t { font-size: 14.5px; font-weight: 800; line-height: 1.7; margin: 7px 0 0; }
.pg-im__box.is-msg { background: linear-gradient(135deg, #fff, #fff4f9); border-color: color-mix(in srgb, var(--pc) 35%, #fff); }
.pg-im__box.is-msg .t { font-size: 15.5px; }
.pg-im__mine { font-size: 12px; color: var(--sub); line-height: 1.7; margin: 4px 0 0; }
.pg-rep { margin-left: auto; border: none; background: none; color: #c3b0bf; font-size: 11px; font-weight: 800; cursor: pointer; padding: 2px 4px; }
/* 6 ふたりで */
.pg-du { margin: 0; padding: 0; list-style: none; }
.pg-du li { background: #fffafd; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px; margin: 0 0 8px; }
.pg-du li.ok { border-color: color-mix(in srgb, var(--pc) 50%, #fff); background: color-mix(in srgb, var(--pc) 8%, #fff); }
.pg-du li p { margin: 0 0 6px; font-size: 12px; font-weight: 900; color: var(--sub); }
.pg-du li .two { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; font-size: 13.5px; font-weight: 900; }
.pg-du li .two em { font-style: normal; font-size: 11px; color: #fff; background: var(--pc); border-radius: 99px; padding: 2px 8px; }
.pg-du li:not(.ok) .two em { background: #cdbcc8; }
.pg-du__sum { text-align: center; font-size: 14px; font-weight: 900; margin: 0 0 10px; }
/* 7 強み */
.pg-ln h4 { font-size: 13px; font-weight: 900; margin: 12px 0 6px; display: flex; align-items: center; gap: 6px; }
.pg-ln h4:first-child { margin-top: 0; }
.pg-ln ul { margin: 0; padding: 0; list-style: none; }
.pg-ln li { position: relative; padding: 8px 10px 8px 30px; border-radius: 13px; background: #fffafd; margin: 0 0 6px; font-size: 13px; line-height: 1.7; }
.pg-ln li::before { position: absolute; left: 9px; top: 8px; }
.pg-ln .is-str li::before { content: '◎'; color: #35b27d; } .pg-ln .is-care li::before { content: '△'; color: #e59a2f; } .pg-ln .is-tip li::before { content: '♪'; color: var(--pc); }
/* 8 称号 */
.pg-ti { text-align: center; padding: 6px 0 2px; }
.pg-ti__frame { position: relative; margin: 6px auto 12px; padding: 24px 14px 20px; border-radius: 24px; background: linear-gradient(145deg, var(--pc), var(--pc2)); color: #fff; box-shadow: 0 16px 30px -16px var(--pc); overflow: hidden; }
.pg-ti__frame.has-img { background-size: cover; background-position: center; }
.pg-ti__frame::before { content: ''; position: absolute; inset: 7px; border: 2px dashed rgba(255, 255, 255, .55); border-radius: 18px; pointer-events: none; }
.pg-ti__frame small { font-size: 12px; font-weight: 900; opacity: .9; letter-spacing: .1em; }
.pg-ti__frame b { display: block; font-size: 26px; font-weight: 900; line-height: 1.35; margin: 6px 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .18); animation: pgPop .6s .15s both; }
.pg-ti__frame p { font-size: 12.5px; font-weight: 800; margin: 0; opacity: .95; line-height: 1.6; }
.pg-ti__who { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; }
.pg-ti__who img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #fff; }
.pg-ti__who span { font-size: 18px; }
.pg-sh { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 12px 0 0; }
.pg-sh .pg-b { min-height: 46px; font-size: 13px; }
.pg-pin { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fffafd; border: 1.5px solid var(--line); border-radius: 16px; padding: 10px 12px; margin: 12px 0 0; font-size: 12.5px; font-weight: 800; text-align: left; }
.pg-pin input { width: 44px; height: 26px; appearance: none; -webkit-appearance: none; background: #e2d3de; border-radius: 99px; position: relative; cursor: pointer; flex: 0 0 auto; transition: .2s; }
.pg-pin input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.pg-pin input:checked { background: var(--pc); } .pg-pin input:checked::after { left: 21px; }
.pg-more { display: block; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #fff, #fbf3ff); border: 1.5px solid #e6d7f2; text-decoration: none; color: var(--ink); text-align: left; }
.pg-more b { display: block; font-size: 13.5px; font-weight: 900; color: #6b4a9a; }
.pg-more small { display: block; font-size: 11.5px; color: var(--sub); line-height: 1.6; margin-top: 2px; }
.pg-end { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 12px 0 0; }
.pg-all { margin: 18px 0 0; }
.pg-all > .pg-card { margin: 0 0 12px; }
.pg-all__h { font-size: 13px; font-weight: 900; color: var(--sub); text-align: center; margin: 0 0 10px; }

/* ---- 記録（マイページ・プロフィール） ---- */
.pgm { margin: 12px 0 0; background: #fff; border: 1.5px solid #f2dcea; border-radius: 18px; padding: 12px; }
.pgm__h { font-size: 13.5px; font-weight: 900; color: #3a2a45; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.pgm__row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 4px; border: none; border-top: 1px dashed #f0e2ec; background: none; text-align: left; cursor: pointer; font-family: inherit; color: #3a2a45; }
.pgm__row:first-of-type { border-top: none; }
.pgm__row img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #f6eef4; flex: 0 0 auto; }
.pgm__row .b { flex: 1; min-width: 0; }
.pgm__row .t { display: block; font-size: 13px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgm__row .s { display: block; font-size: 11px; color: #8b7f95; font-weight: 700; }
.pgm__row .sc { font-size: 18px; font-weight: 900; color: #d65c9a; }
.pgm__row .pin { font-size: 10px; font-weight: 900; color: #fff; background: #d65c9a; border-radius: 99px; padding: 1px 6px; margin-left: 4px; }
.pgm__none { font-size: 12px; color: #8b7f95; line-height: 1.8; margin: 0; }
.pgm__none a { color: #c0418a; font-weight: 900; }
.pgm__pins { display: flex; flex-wrap: wrap; gap: 6px; }
.pgm__pin { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #e0578f, #8b6cc1); border-radius: 99px; padding: 5px 11px; text-decoration: none; }
.pgm__pin small { font-weight: 800; opacity: .9; }
.pg-card-line { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.pg-sheet { position: fixed; inset: 0; z-index: 9970; background: rgba(40, 20, 50, .5); display: flex; align-items: flex-end; justify-content: center; }
.pg-sheet[hidden] { display: none; }
.pg-sheet__in { width: min(560px, 100%); max-height: 92vh; overflow: auto; background: #fbf6fa; border-radius: 24px 24px 0 0; padding: 14px 14px calc(20px + env(safe-area-inset-bottom, 0px)); animation: pgUp .3s ease-out; position: relative; }
.pg-sheet__x { position: sticky; top: 0; float: right; width: 36px; height: 36px; border-radius: 50%; border: none; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); font-size: 18px; cursor: pointer; z-index: 3; }

/* ---- シェアのページ ---- */
.pgs { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.pgs__load { text-align: center; color: #8b7f95; padding: 60px 0; }
.pgs__cta { margin: 16px 0 0; text-align: center; }
.pgs__cta p { font-size: 13px; line-height: 1.8; color: #5c4a68; margin: 0 0 10px; }

/* 紙吹雪 */
.pg-cf { position: fixed; inset: 0; pointer-events: none; z-index: 9995; overflow: hidden; }
.pg-cf i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: pgFall linear forwards; }

@keyframes pgPulse { from { opacity: .55; } to { opacity: 1; } }
@keyframes pgBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes pgDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes pgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pgPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes pgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pgSpin { to { transform: rotate(360deg); } }
@keyframes pgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pgFlipIn { 0% { transform: rotateY(-100deg) scale(.9); opacity: 0; } 60% { transform: rotateY(12deg) scale(1.01); opacity: 1; } 100% { transform: none; } }
@keyframes pgUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pgFall { to { transform: translateY(110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .pg *, .pg-ov *, .pg-cf { animation: none !important; transition: none !important; } }
@media (max-width: 370px) {
	.pg-q__t { font-size: 16.5px; }
	.pg-ch button { min-height: 48px; font-size: 13.5px; }
	.pg-sc__ring, .pg-sc__ring svg { width: 170px; height: 170px; }
	.pg-sc__num b { font-size: 54px; }
	.pg-w__cat small { display: none; }
	.pg-w__hero .h img { width: 70px; height: 70px; }
}

/* 卓の共通の帯（table-rejoin の「もう一戦・CPU を入れて」等）は、席の人には出さない（この遊びは自前の画面で進める）。フレンドを誘う浮きボタンも待機画面のボタンに寄せる */
body.pg-on.pg-seated #trjBox, body.pg-on #plusInvite { display: none !important; }

/* ---- 9/29 16:00 届いた絵 ---- */
.pg-w__cat.has-img { padding: 5px 5px 9px; overflow: hidden; }
.pg-w__cati { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 13px; margin: 0 0 4px; }
.pg-w__cat.has-img i { display: none; }
.pg-card.is-back { background: linear-gradient(145deg, #3b2a5c, var(--pc) 140%); }
.pg-back__img { width: min(62%, 230px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35)); animation: pgFloat 3s ease-in-out infinite; }
.pg.has-bg { background-color: #2c2240; background-size: cover; background-position: center top; border-radius: 24px; padding: 14px 10px 10px; }
.pg.has-bg .pg-r__dots i { background: rgba(255, 255, 255, .45); } .pg.has-bg .pg-r__dots i.on { background: #fff; }
.pg.has-bg .pg-r__next { background: none; }
.pg.has-bg .pg-r__by, .pg.has-bg .pg-all__h { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.pg.has-bg .pg-card { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.pg-sheet__in.has-bg { background-size: cover; background-position: center top; }
.pg-ti__frame.has-badge { padding-top: 16px; }
.pg-ti__badge { position: relative; width: min(100%, 360px); margin: 0 auto; container-type: inline-size; }
.pg-ti__badge img { display: block; width: 100%; height: auto; }
.pg-ti__badge b { position: absolute; left: 20%; right: 20%; top: 51.5%; transform: translateY(-50%); margin: 0; color: #8a3a5c; text-shadow: none; line-height: 1.2; font-size: min(22px, calc(66cqw / var(--n, 8))); font-weight: 900; white-space: nowrap; animation: none; }
.pg-ov__in { position: relative; overflow: visible; }
.pg-ov__burst { position: absolute; left: 50%; top: -215px; width: 280px; height: 280px; margin-left: -140px; pointer-events: none; animation: pgBurst 1.4s ease-out both; z-index: 0; }
.pg-ov__in > *:not(.pg-ov__burst) { position: relative; z-index: 1; }
.pg-ov__ic { font-size: 40px; }
@keyframes pgBurst { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.15) rotate(10deg); opacity: .85; } }
.pg-w__hero.has-img .pg-w__ttl { left: 12px; right: 12px; bottom: 10px; padding: 6px 10px 7px; border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(60, 20, 60, .18); }
.pg-w__hero.has-img .pg-w__ttl b { font-size: 17px; }
.pg-ti__badge { margin: -8% auto -6%; }

/* ---- 9/29 17:10 相性診断中の贈り合い ---- */
.pg__gift { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 3px 8px -4px rgba(90, 40, 110, .4); }
.pg__gift:active { transform: scale(.92); }
.pg-r__dots { align-items: center; position: relative; }
.pg__gift.is-res { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; font-size: 16px; }
.pg-gxbar { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 64px); transform: translate(-50%, -140%); z-index: 9985; display: flex; align-items: center; gap: 8px; max-width: min(92vw, 420px); padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 22px -8px rgba(90, 40, 110, .5); border: 1.5px solid #f2dcea; font-size: 12.5px; font-weight: 800; color: #3a2a45; pointer-events: none; transition: transform .35s cubic-bezier(.2, 1.3, .5, 1), opacity .3s; opacity: 0; }
.pg-gxbar.is-on { transform: translate(-50%, 0); opacity: 1; }
.pg-gxbar .i { font-size: 20px; }
.pg-gxbar b { font-weight: 900; }
.pg-gx { margin: 12px 0 0; padding: 10px 12px; border-radius: 16px; background: #fffafd; border: 1.5px solid var(--line); text-align: left; }
.pg-gx__h { font-size: 12px; font-weight: 900; color: var(--sub); margin: 0 0 6px; }
.pg-gx__row { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-gx__it { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 3px 9px 3px 5px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }
.pg-gx__it i { font-style: normal; font-size: 16px; }
.pg-gx__it small { font-size: 10px; color: var(--sub); font-weight: 700; }
.pg-gx__it.is-mine { background: color-mix(in srgb, var(--pc) 8%, #fff); }
