:root {
    --bg-gradient: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    --card-bg: rgba(255, 255, 255, 0.88);
    --border-color: #0f172a;
    --shadow-color: rgba(15, 23, 42, 0.9);
    --primary-color: #ff7675;
    --secondary-color: #55efc4;
    --accent-yellow: #ffeaa7;
    --accent-purple: #a29bfe;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --radius-lg: 24px;
    --radius-sm: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg-gradient); min-height: 100vh; color: var(--text-dark); display: flex; justify-content: center; align-items: center; overflow-x: hidden; position: relative; padding: 1.2rem 0.6rem; }
.bg-orb { position: fixed; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none; opacity: 0.6; }
.orb-1 { width: 280px; height: 280px; background: #ff7675; top: -50px; left: -50px; }
.orb-2 { width: 320px; height: 320px; background: #74b9ff; bottom: -80px; right: -50px; }
.orb-3 { width: 220px; height: 220px; background: #55efc4; top: 40%; left: 50%; transform: translate(-50%, -50%); }
.app-container { width: 100%; max-width: 460px; z-index: 10; position: relative; }
.page { display: none; opacity: 0; transform: translateY(15px); transition: opacity 0.35s ease, transform 0.35s ease; }
.page.active { display: block; opacity: 1; transform: translateY(0); }
.glass-card { background: var(--card-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 2.5px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: 6px 6px 0px var(--shadow-color); padding: 1.8rem 1.4rem; position: relative; overflow: hidden; }
.test-portal-grid { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1rem; }
.portal-card { background: #ffffff; border: 2.5px solid var(--border-color); border-radius: var(--radius-sm); padding: 1.1rem; box-shadow: 4px 4px 0px var(--border-color); cursor: pointer; transition: all 0.2s ease; }
.portal-card:hover, .portal-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px var(--border-color); background: #fffbeb; }
.portal-card-badge { display: inline-block; background: var(--accent-yellow); border: 1.5px solid var(--border-color); padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.72rem; font-weight: 800; margin-bottom: 0.5rem; }
.portal-card-icon { font-size: 2.2rem; float: right; margin-left: 0.5rem; }
.portal-card-info h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 0.3rem; }
.portal-card-info p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.35; margin-bottom: 0.8rem; }
.portal-btn { background: var(--primary-color); color: white; border: 2px solid var(--border-color); padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.8rem; font-weight: 800; cursor: pointer; }
.badge-tag { display: inline-block; background: var(--accent-yellow); border: 2px solid var(--border-color); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 800; box-shadow: 2px 2px 0px #000; margin-bottom: 0.8rem; }
.back-link-btn { background: transparent; border: none; color: var(--text-muted); font-size: 0.82rem; font-weight: 800; cursor: pointer; margin-bottom: 0.8rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.main-title { font-size: 1.85rem; font-weight: 900; line-height: 1.25; margin-bottom: 0.6rem; }
.highlight-text { background: linear-gradient(120deg, #ff7675, #a29bfe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.subtitle { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; line-height: 1.4; margin-bottom: 1.5rem; }
.hero-illustration { height: 110px; position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 1.5rem; }
.core-avatar { font-size: 4rem; background: #fff; border: 2.5px solid var(--border-color); width: 90px; height: 90px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 4px 4px 0px var(--border-color); animation: bounce 2s infinite ease-in-out; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.neo-btn { width: 100%; padding: 0.95rem 1.2rem; border: 2.5px solid var(--border-color); border-radius: var(--radius-sm); font-size: 1.05rem; font-weight: 800; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 0.6rem; transition: all 0.15s ease; box-shadow: 4px 4px 0px var(--border-color); }
.primary-btn { background: var(--primary-color); color: #fff; }
.secondary-btn { background: var(--secondary-color); color: var(--text-dark); }
.outline-btn { background: #fff; color: var(--text-dark); }
.home-btn { background: #a29bfe; color: #fff; }
.neo-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px var(--border-color); }
.adsense-placeholder { margin-top: 1.2rem; background: rgba(255, 255, 255, 0.45); padding: 0.5rem; border-radius: 12px; text-align: center; overflow: hidden; }
.adsense-inline { margin: 1rem 0; }
.quiz-header { margin-bottom: 1.4rem; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 800; margin-bottom: 0.4rem; }
.progress-bar-bg { height: 10px; background: #e2e8f0; border: 2px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 5%; background: linear-gradient(90deg, #ff7675, #55efc4); border-radius: 10px; transition: width 0.3s ease; }
.question-title { font-size: 1.08rem; font-weight: 800; line-height: 1.45; margin-bottom: 1.2rem; }
.options-group { display: flex; flex-direction: column; gap: 0.8rem; }
.option-btn { background: #ffffff; border: 2px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.85rem 1rem; text-align: left; font-size: 0.92rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; cursor: pointer; box-shadow: 3px 3px 0px var(--border-color); transition: all 0.15s ease; display: flex; align-items: flex-start; gap: 0.6rem; }
.option-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px var(--border-color); background: var(--accent-yellow); }
.option-key { background: var(--border-color); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; margin-top: 1px; }
.loading-card { text-align: center; padding: 3rem 1.5rem; }
.dna-spinner { font-size: 3.5rem; color: var(--primary-color); margin-bottom: 1.2rem; }
.loading-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.loading-desc { font-size: 0.85rem; color: var(--text-muted); }
.result-card { background: #fff; border-width: 3px; padding: 1.5rem 1.2rem; }
.report-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px dashed var(--border-color); padding-bottom: 0.6rem; margin-bottom: 1rem; }
.lab-title { font-size: 0.75rem; font-weight: 900; color: var(--text-muted); }
.report-stamp { background: #ef4444; color: #fff; font-size: 0.68rem; font-weight: 900; padding: 0.15rem 0.5rem; border-radius: 4px; transform: rotate(-3deg); }
.result-title-section { text-align: center; margin: 0.8rem 0; }
.result-big-emoji { font-size: 3.8rem; margin-bottom: 0.3rem; }
.result-main-title { font-size: 1.45rem; font-weight: 900; color: #1e1b4b; background: var(--accent-yellow); display: inline-block; padding: 0.2rem 0.6rem; border: 2px solid var(--border-color); box-shadow: 3px 3px 0px var(--border-color); border-radius: 8px; }
.tag-capsules { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 1rem; }
.tag-capsule { font-size: 0.75rem; font-weight: 800; padding: 0.25rem 0.6rem; border-radius: 12px; border: 1.5px solid var(--border-color); box-shadow: 2px 2px 0px #000; }
.tag-c1 { background: #ffeaa7; } .tag-c2 { background: #fab1a0; } .tag-c3 { background: #81ecec; } .tag-c4 { background: #a29bfe; }
.quote-box { background: #f8fafc; border: 2px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin-bottom: 1rem; }
.quote-icon { font-size: 0.9rem; color: var(--primary-color); margin-bottom: 0.2rem; }
.quote-box p { font-size: 0.88rem; font-weight: 800; color: #1e293b; line-height: 1.4; }
.analysis-box { background: #f1f5f9; border-radius: var(--radius-sm); padding: 0.9rem; margin-bottom: 1rem; border: 1.5px solid #cbd5e1; }
.analysis-box h3 { font-size: 0.88rem; font-weight: 800; margin-bottom: 0.4rem; }
.analysis-box p { font-size: 0.82rem; line-height: 1.5; color: #334155; }
.radar-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1rem; }
.guide-item { border: 2px solid var(--border-color); padding: 0.6rem; border-radius: var(--radius-sm); box-shadow: 2.5px 2.5px 0px var(--border-color); }
.best-match { background: #e0f2fe; } .enemy-match { background: #ffe4e6; }
.guide-label { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); margin-bottom: 0.2rem; }
.guide-val { font-size: 0.85rem; font-weight: 900; }
.report-footer-seal { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-muted); border-top: 1.5px solid #e2e8f0; padding-top: 0.6rem; font-weight: 700; }
.action-btn-group { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.65rem; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 0.75rem 1.2rem; border-radius: 30px; font-size: 0.82rem; font-weight: 700; box-shadow: 0 10px 25px rgba(0,0,0,0.3); z-index: 1000; display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s ease; }
.toast.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }