/* abstract-personality-test (RT-FUN-095) — tool styles. Card system in share-card.css. */

.ap-tool { display: flex; flex-direction: column; gap: 16px; }

.ap-intro { text-align: center; padding: 26px 10px; }
.ap-intro-text { color: var(--t2, #6b6760); font-size: 1.05rem; max-width: 520px; margin: 0 auto 18px; }
.ap-start { font: inherit; font-weight: 700; font-size: 1.05rem; padding: 13px 30px; border: none; border-radius: 999px; background: #8b5cf6; color: #fff; cursor: pointer; }
.ap-start:disabled { opacity: .5; cursor: default; }
.ap-start:focus-visible { outline: 3px solid #1a1814; outline-offset: 2px; }

.ap-progress-track { height: 8px; background: var(--bg, #f7f6f3); border-radius: 999px; overflow: hidden; }
.ap-progress { height: 100%; width: 0; background: linear-gradient(90deg, #8b5cf6, #c084fc); border-radius: 999px; transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .ap-progress { transition: none; } }
.ap-qnum { font-size: .82rem; color: var(--t2, #6b6760); font-weight: 600; }
.ap-q { font-family: var(--rt-font-serif, serif); font-size: 1.5rem; line-height: 1.3; margin: 4px 0 8px; }
.ap-options { display: flex; flex-direction: column; gap: 10px; }
.ap-opt {
    font: inherit; text-align: left; padding: 14px 16px; border: 1.5px solid var(--border, #ebebeb);
    border-radius: 12px; background: var(--card-bg, #fff); color: var(--t1, #1a1814); cursor: pointer;
    transition: border-color .12s ease, transform .12s ease;
}
.ap-opt:hover { border-color: #8b5cf6; transform: translateY(-1px); }
.ap-opt:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ap-opt:hover { transform: none; } }

/* Result */
.ap-detail { text-align: center; }
.ap-r-emoji { font-size: 4rem; line-height: 1; }
.ap-r-name { font-family: var(--rt-font-serif, serif); font-size: 1.9rem; font-weight: 700; margin: 6px 0 2px; }
.ap-r-tag { color: #8b5cf6; font-weight: 600; margin-bottom: 12px; }
.ap-r-desc { color: var(--t1, #1a1814); max-width: 560px; margin: 0 auto 16px; line-height: 1.6; }
.ap-r-gb { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.ap-r-gb > div { flex: 1 1 240px; max-width: 320px; text-align: left; background: var(--bg, #f7f6f3); border: 1px solid var(--border, #ebebeb); border-radius: 12px; padding: 12px 14px; }
.ap-r-gb b { display: block; font-size: .8rem; color: var(--t2, #6b6760); margin-bottom: 4px; }

.ap-stage { background: #0c1827; border-radius: 16px; }

/* Card (1080×1350 coords) */
.ap-card {
    align-items: center; text-align: center; justify-content: center;
    background: radial-gradient(120% 90% at 50% 5%, #3a2470 0%, #1c1340 55%, #0e0a22 100%);
    color: #f1ecff;
}
.ap-card .sc-eyebrow { font-size: 28px; letter-spacing: 8px; color: #c084fc; }
.ap-card-emoji { font-size: 230px; line-height: 1; margin: 10px 0 24px; }
.ap-card-code { font-family: 'IBM Plex Mono', monospace; font-size: 44px; letter-spacing: 8px; color: #c084fc; opacity: .9; }
.ap-card-name { font-family: var(--sc-font-serif, serif); font-size: 96px; font-weight: 700; line-height: 1.08; margin: 12px 40px; }
.ap-card-tag { font-size: 42px; line-height: 1.4; max-width: 880px; margin: 0 auto; opacity: .9; }
