/* AI相性診断 page */
.qz-wrap { padding: 40px 0 96px; display: grid; justify-items: center; }
.qz-card { width: min(680px, 100%); background: var(--card); border-radius: 36px; box-shadow: var(--shadow); padding: 40px 40px 36px; }
.qz-card h2 { margin: 0 0 6px; font-size: clamp(22px, 2.8vw, 28px); line-height: 1.45; font-weight: 900; }
.qz-sub { margin: 0; color: var(--muted); font-size: 14px; }
.qz-icon { width: 64px; height: 64px; border-radius: 22px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 30px; margin-bottom: 16px; }
html:is([data-stage="3"], [data-stage="4"]) .qz-icon { color: #1a1205; }
.qz-card form .btn { margin-top: 6px; }
.qz-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); font-weight: 700; }
.qz-points li { display: flex; gap: 6px; align-items: center; }
.qz-points .hx { color: var(--accent); }
.qz-prog { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qz-prog span { font-weight: 800; color: var(--accent); font-size: 15px; white-space: nowrap; }
.qz-prog .bar { flex: 1; height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.qz-prog .bar i { display: block; height: 100%; background: var(--grad); border-radius: 10px; transition: width .35s; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.opt { min-height: 72px; border-radius: 22px; border: 2px solid var(--line); background: var(--bg); padding: 12px 18px; text-align: left; font-weight: 800; font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: border-color .15s, transform .15s, background .15s; line-height: 1.45; }
.opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.opt .k { flex: none; width: 32px; height: 32px; border-radius: 11px; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-family: var(--f-en); font-size: 15px; }
.opt.picked { background: var(--soft); border-color: var(--accent); }
.back { margin-top: 18px; border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; padding: 6px 0; font-size: 14px; }
.back:disabled { visibility: hidden; }
.analyzing { text-align: center; padding: 64px 40px; }
.pulse { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 44px; animation: beat 1s ease-in-out infinite; }
html:is([data-stage="3"], [data-stage="4"]) .pulse { color: #1a1205; }
@keyframes beat { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

.result { padding: 24px 0 96px; scroll-margin-top: 80px; }
.res-top { text-align: center; margin-bottom: 36px; }
.res-hello { margin: 0; font-weight: 700; color: var(--muted); }
.res-hello b { color: var(--ink); }
.res-lead { margin: 4px 0 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; }
.score { font-weight: 800; line-height: 1; margin: 12px 0 8px; }
.score span { font-size: clamp(88px, 13vw, 140px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.score small { font-family: var(--f-en); font-size: 40px; color: var(--accent); }
.res-type { margin: 0; display: inline-block; background: var(--soft); color: var(--accent); padding: 6px 18px; border-radius: 999px; font-weight: 800; font-size: 15px; }
.res-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.res-card { background: var(--card); border-radius: 32px; box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line); padding: 28px; }
.res-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 900; }

.radar { position: relative; width: min(440px, 100%); margin: 0 auto; aspect-ratio: 1; }
.radar svg { position: absolute; inset: 14%; width: 72%; height: 72%; overflow: visible; }
.radar .grid { fill: none; stroke: var(--ink); stroke-opacity: .12; }
.radar .shape { fill: var(--g1); fill-opacity: .28; stroke: var(--g1); stroke-width: 3; stroke-linejoin: round; transition: all .6s; }
html:is([data-stage="3"], [data-stage="4"]) .radar .shape { fill: var(--g1); fill-opacity: .2; }
.radar .pt { fill: var(--card); stroke: var(--g1); stroke-width: 3; }
.ax { position: absolute; transform: translate(-50%, -50%); border: 0; background: var(--bg2); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 14px; cursor: help; white-space: nowrap; transition: background .2s, color .2s; }
.ax:hover, .ax:focus-visible, .ax.on { background: var(--soft); color: var(--accent); outline: none; }
.ax.real { background: #2a0b16; color: #ff8fa8; }
html:is([data-stage="3"], [data-stage="4"]) .ax.real { background: #2a1d0c; color: #ffc35a; }
.ax.flip { animation: flip .5s steps(4); }
@keyframes flip { 0% { filter: blur(2px); transform: translate(-50%, -50%) skewX(20deg); } 50% { color: transparent; text-shadow: 2px 0 #ff2a6a, -2px 0 #4cf; } }
.ax .v { font-family: var(--f-en); font-size: 12px; opacity: .7; margin-left: 4px; }
.radar-tip { margin: 8px 0 0; min-height: 5.4em; background: var(--bg2); border-radius: 18px; padding: 12px 16px; font-size: 14px; color: var(--ink2); }
.radar-tip b { color: var(--accent); }

.match-card { width: 100%; border: 0; padding: 0; background: var(--bg2); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 150px 1fr; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mc-photo { position: relative; overflow: hidden; min-height: 200px; }
.mc-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; filter: blur(14px) saturate(1.1); transform: scale(1.15); transition: filter .8s; }
html:is([data-stage="3"], [data-stage="4"]) .mc-photo img { filter: none; transform: none; }
.mc-photo .lock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; font-size: 12px; font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,.5); padding: 8px; }
.mc-body { padding: 18px 18px 18px 20px; display: grid; gap: 4px; align-content: start; }
.mc-fit { color: var(--accent); font-weight: 800; font-size: 14px; }
.mc-fit b { font-family: var(--f-en); font-size: 22px; }
.mc-name { font-size: 22px; font-weight: 900; line-height: 1.3; }
.mc-name .en { font-weight: 600; font-size: 19px; }
.mc-dist { font-weight: 700; font-size: 14px; }
.mc-dist b { color: var(--danger); font-family: var(--f-en); font-size: 16px; }
.mc-meta { color: var(--muted); font-size: 13px; }
.mc-btn { margin-top: 10px; justify-self: start; pointer-events: none; }
.mc-note { margin: 12px 4px 0; font-size: 13px; color: var(--muted); }
.res-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* pick-up modal */
.pk { position: fixed; inset: 0; z-index: 95; background: #07060b; display: grid; place-items: center; overflow: auto; }
.pk-in { display: grid; justify-items: center; gap: 10px; padding: 10px 12px; }
.pk-cap { margin: 0; color: #d9cdb8; font-weight: 700; font-size: 14px; text-align: center; min-height: 1.6em; }
.pk-stage { position: relative; overflow: hidden; border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(255, 150, 40, .35); }
.pk .app { border-radius: 30px; }
.pk .scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pk .scr[hidden] { display: none; }
.pk .ttl { padding: 4px 18px 8px; font-weight: 900; font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.pk .ttl small { font-size: 11px; color: #a3998b; font-weight: 700; }
.pk .deck { top: 98px; bottom: 150px; }
.its { align-items: center; justify-content: center; text-align: center; gap: 14px; background: radial-gradient(circle at 50% 40%, rgba(255, 173, 59, .3), transparent 60%), #121019; }
.its h4 { margin: 0; font-family: var(--f-en); font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.its .pair { display: flex; }
.its .pair span { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #121019; display: grid; place-items: center; font-size: 36px; font-weight: 900; background: #2a2433; color: #ffc35a; overflow: hidden; }
.its .pair span + span { margin-left: -18px; }
.its .pair img { width: 100%; height: 100%; object-fit: cover; }
.its p { margin: 0; padding: 0 26px; font-size: 14px; color: #dcd1c1; }
.map-wrap { position: absolute; inset: 40px 0 0; }
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-top { position: absolute; left: 12px; right: 12px; top: 50px; z-index: 2; background: rgba(18, 16, 25, .88); border-radius: 16px; padding: 10px 14px; font-weight: 900; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.map-top .hx { color: #ffad3b; }
.map-sheet { position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 2; background: #1b1724; border-radius: 22px; padding: 14px; display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.7); }
.map-sheet img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.map-sheet b { display: block; font-size: 15px; }
.map-sheet .eta { font-family: var(--f-en); font-weight: 800; color: #ffad3b; font-size: 22px; line-height: 1.2; }
.map-sheet small { color: #a3998b; font-size: 11px; }
.notif { position: absolute; left: 10px; right: 10px; top: 44px; z-index: 4; background: rgba(40, 34, 50, .96); border-radius: 18px; padding: 10px 12px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; font-size: 12px; transform: translateY(-140%); transition: transform .45s cubic-bezier(.2, 1.2, .4, 1); box-shadow: 0 10px 30px -10px #000; }
.notif.on { transform: none; }
.notif img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.notif b { display: block; font-size: 12px; }
.arrived .map-sheet { background: #ffad3b; color: #1a1205; }
.arrived .map-sheet .eta, .arrived .map-sheet small { color: #1a1205; }
.door-btn { margin-top: 8px; grid-column: 1 / -1; border: 0; border-radius: 14px; height: 44px; background: #1a1205; color: #ffc35a; font-weight: 900; font-size: 15px; cursor: pointer; }
.peep { position: fixed; inset: 0; z-index: 99; background: #000; display: grid; place-items: center; cursor: pointer; }
.peep img { width: min(92vmin, 900px); height: auto; animation: peep 6s ease-out both; }
@keyframes peep { from { transform: scale(.9); filter: brightness(.3); } 30% { filter: brightness(1); } to { transform: scale(1.04); } }
.peep-cap { position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center; color: #e9e0d0; font-weight: 800; font-size: clamp(16px, 2.4vw, 22px); text-shadow: 0 2px 10px #000; padding: 0 16px; }
.peep-cap small { display: block; font-size: 12px; letter-spacing: .2em; color: #a99; margin-top: 8px; font-weight: 700; }

@media (max-width: 860px) {
  .res-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .qz-card { padding: 28px 20px 24px; border-radius: 28px; }
  .opts { grid-template-columns: 1fr; }
  .opt { min-height: 60px; }
  .res-card { padding: 20px 16px; }
  .ax { font-size: 12px; padding: 4px 9px; }
  .match-card { grid-template-columns: 112px 1fr; }
  .mc-name { font-size: 19px; }
}
