:root {
    --bg-base: #0a0a14;
    --surface: #121220;
    --surface-sidebar: #1a1a2e;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --text-main: #f8fafc;
    --text-muted: #555e6c;
    --primary: #4f46e5;
    --primary-hover: #635cf0;
    --primary-active: #4338ca;

    --fire: #f97316;
    --water: #3b82f6;
    --wind: #10b981;
    --earth: #b45309;
    --thunder: #facc15;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", "Inter", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 18% 10%, rgba(79, 70, 229, 0.12), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.08), transparent 28%),
        var(--bg-base);
    overflow-x: hidden;
}

::selection {
    background: rgba(79, 70, 229, 0.3);
}

a {
    color: inherit;
}

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout > main {
    flex: 1;
}

.shell-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.section-v2 {
    padding: 112px 0;
}

.page-fade-in {
    animation: pageIn 400ms ease-out;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-fade-in {
        animation: none;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 20, 0.9);
}

.site-logo img {
    display: block;
    width: 250px;
    height: auto;
}

.header-badge-rpg {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.nav-list-v2 {
    gap: 8px;
}

.nav-link-v2 {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-link-v2:hover,
.nav-link-v2:active {
    color: var(--text-main);
}

.nav-link-v2.active {
    color: #f8fafc !important;
    text-shadow: 0 0 10px rgba(248, 250, 252, 0.32);
    text-decoration: underline;
    text-decoration-color: rgba(165, 180, 252, 0.95);
    text-underline-offset: 0.35em;
}

.nav-cta-wrap {
    margin-left: 12px;
}

.btn-cta-v2 {
    border-radius: 999px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-cta-v2:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-toggle-v2 {
    border-color: var(--border);
}

.navbar-toggler-icon {
    filter: invert(0.95);
}

.hero-home {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-home-top {
    position: relative;
    overflow: hidden;
    background-image: url('/static/front/img/element-diagram-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-home-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 20, 0.3);
    pointer-events: none;
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a4afc4;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 22px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.icon-chip {
    width: 14px;
    height: 14px;
    stroke-width: 2px;
    flex-shrink: 0;
}

.hero-main-title {
    margin: 36px 0 0;
    font-size: clamp(3rem, 11vw, 4.5rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-main-title span {
    display: block;
    background: linear-gradient(90deg, var(--fire) 0%, #d981a1 25%, #6366f1 52%, #3b82f6 72%, var(--wind) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy {
    margin: 28px auto 0;
    color: #e5e5e5;
    max-width: 760px;
    line-height: 1.75;
    font-size: clamp(1rem, 2.8vw, 1.1rem);
}

.hero-actions {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary-v2,
.btn-ghost-v2 {
    border-radius: 16px;
    min-height: 64px;
    padding: 0 48px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn-primary-v2 {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.38);
}

.btn-primary-v2:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary-v2:active {
    background: var(--primary-active);
}

.btn-ghost-v2 {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text-main);
}

.btn-ghost-v2:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.element-ribbon {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.elements-wrap {
    padding-top: 64px;
}

.elements-content {
    max-width: 920px;
}

.elements-hero-thumb {
    margin: 0 0 26px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.elements-hero-thumb img {
    display: block;
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.elements-content h1 {
    margin: 0 0 28px;
    font-size: clamp(1.9rem, 5.4vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.elements-prose {
    max-width: 72ch;
}

.elements-section-title {
    margin: 52px 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.35rem, 3.3vw, 1.65rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.elements-section-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
    color: #a6b3ca;
    flex-shrink: 0;
}

.elements-subtitle {
    margin: 34px 0 10px;
    font-size: 1.16rem;
    line-height: 1.4;
    font-weight: 700;
    color: #e2e8f0;
}

.element-block {
    margin-top: 24px;
    padding: 18px 18px 18px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    position: relative;
}

.element-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 6px;
    border-radius: 999px;
    background: var(--accent-color);
}

.element-block-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.element-icon-chip {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--accent-border);
    background: var(--accent-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.element-icon-chip .section-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.1;
    color: var(--accent-color);
}

.element-block-heading .elements-subtitle {
    margin: 0;
    color: var(--accent-color);
}

.element-block p {
    color: color-mix(in srgb, var(--accent-color) 14%, #cbd5e1);
}

.element-block p strong {
    color: color-mix(in srgb, var(--accent-color) 40%, #f8fafc);
}

@media (max-width: 767px) {
    .element-block {
        padding: 16px 14px 16px 14px;
        border-radius: 18px;
    }

    .element-block::before {
        top: 14px;
        bottom: 14px;
    }

    .element-icon-chip {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .element-icon-chip .section-icon {
        width: 18px;
        height: 18px;
    }
}

.elements-prose p,
.elements-prose li {
    color: #cbd5e1;
    line-height: 1.86;
    font-size: 0.99rem;
}

.elements-prose p + p {
    margin-top: 12px;
}

.elements-prose ul,
.elements-prose ol {
    margin: 14px 0 0;
    padding-left: 1.25em;
}

.elements-prose li + li {
    margin-top: 8px;
}

.elements-prose ul + p,
.elements-prose ol + p {
    margin-top: 14px;
}

.elements-content hr {
    margin: 34px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.elements-cta {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.element-chip {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1px solid var(--accent-border, color-mix(in srgb, var(--chip), transparent 50%));
    color: var(--accent-color, var(--chip));
    background: var(--accent-bg, color-mix(in srgb, var(--chip), transparent 88%));
}

.messages {
    width: min(1200px, calc(100% - 48px));
    margin: 16px auto 0;
}

.message {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.message-success { border-color: rgba(16, 185, 129, 0.4); }
.message-error { border-color: rgba(249, 115, 22, 0.4); }
.message-warning { border-color: rgba(250, 204, 21, 0.4); }

.types-wrap {
    padding-top: 64px;
}

.types-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4.2vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.types-head p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.types-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.type-row-card {
    display: grid;
    grid-template-columns: 78px 1fr auto;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #121220;
    padding: 16px;
    transition: transform .25s ease, border-color .25s ease;
}

.type-row-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
}

.type-row-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #0f1d36;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.type-logo-inline {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-element {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.attr-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.3px;
}

.type-row-main h2 {
    margin: 5px 0 5px;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 800;
}

.type-summary {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-row-arrow {
    color: #5f6c86;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.type-row-arrow-icon {
    width: 20px;
    height: 20px;
    line-height: 1;
}

.detail-page {
    padding-top: 48px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--text-main);
}

.back-icon {
    width: 14px;
    height: 14px;
}

.detail-hero-banner {
    position: relative;
    margin-top: 20px;
    margin-bottom: 80px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: #0f172a;
}

.result-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.8;
}

.detail-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0a14, transparent, transparent);
}

.detail-profile {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-profile-logo {
    width: 128px;
    height: 128px;
    margin-top: -64px;
    padding: 8px;
    border-radius: 24px;
    background: #22324b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.detail-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.element-badge {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 12px;
    border: 1px solid var(--accent-border);
    color: var(--accent-color);
    background: var(--accent-bg);
    margin-bottom: 16px;
}

.detail-title {
    margin: 0 0 24px;
    font-size: clamp(2.75rem, 8vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 600;
}

.summary-text {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.18rem, 2.8vw, 1.2rem);
    font-weight: 700;
    line-height: 1.4;
    color: rgb(203 213 225 / var(--tw-text-opacity, 1));
}

.detail-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
}

.detail-main {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-sidebar {
    grid-column: span 4;
    display: grid;
    gap: 18px;
    align-content: start;
}

.type-section {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #121220;
    padding: 22px;
}

.type-section h2 {
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 700;
}

.section-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
    color: var(--accent-color, #8b91a8);
}

.type-section p,
.type-section pre,
.type-section summary {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 500;
    white-space: pre-wrap;
}

.plain-section {
    border: 0;
    background: transparent;
    padding: 0;
}

.detail-page .section-strengths h2 {
    margin-bottom: 18px;
}

.detail-page .strength-heading {
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.detail-page .strength-icon-chip {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--accent-border);
    background: var(--accent-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.detail-page .section-strengths .strength-heading .strength-icon-chip .section-icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.1;
    color: var(--accent-color);
}

.detail-page .strength-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.detail-page .strength-item {
    position: relative;
    padding-left: 20px;
    color: #e5eaf4;
}

.detail-page .strength-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 2px;
    height: 24px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.detail-page .strength-title {
    margin: 0;
    line-height: 1.4;
    font-size: 1.12rem;
    font-weight: 700;
    color: #f1f5f9;
}

.detail-page .strength-desc {
    margin-top: 8px;
    color: rgb(203 213 225 / var(--tw-text-opacity, 1));
    line-height: 1.65;
    font-size: 0.94rem;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-page .section-caution {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background-color: rgb(30 41 59 / 0.2);
    padding: 30px 24px 30px 28px;
    margin: 16px 0 20px;
    position: relative;
}

.detail-page .section-caution::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 6px;
    border-radius: 999px;
    background: var(--accent-color);
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    background: transparent;
    border: 0;
    padding: 0;
}

.detail-page .split-article {
    padding: 0;
}

.detail-page .split-article h2 {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--accent-color), #d7deea 35%);
}

.detail-page .split-article h2 .section-icon {
    width: 15px;
    height: 15px;
    opacity: 1;
    color: var(--accent-color);
}

.detail-page .split-article p {
    margin: 0;
    padding-left: 14px;
    border-left: 1px solid color-mix(in srgb, var(--accent-color), transparent 55%);
    line-height: 1.72;
    font-size: 1rem;
    color: rgb(203 213 225 / var(--tw-text-opacity, 1));
}

.quote-section {
    border: 0;
    background: transparent;
    padding: 28px 0 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-section p {
    margin: 0;
    font-size: 48px;
    line-height: 1.05;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #e8edf6 8%, #97a5ba 52%, #58647a 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sidebar-card {
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #121220;
    padding: 40px;
}

.sidebar-label {
    margin: 0 0 18px;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #9ca7be;
    font-weight: 800;
}

.detail-page .share-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 32, 0.84);
}

.detail-page .share-card .sidebar-label {
    color: #7f8aa5;
}

.btn-share-x,
.btn-share-line {
    width: 100%;
    min-height: 56px;
    border-radius: 1rem;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-decoration: none;
}

.btn-share-x {
    background: rgba(255, 255, 255, 0.92);
    color: #121212;
}

.btn-share-line {
    margin-top: 14px;
    background: #06c755;
    color: #fff;
}

.analysis-note-card {
    border-radius: 2rem;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(18, 18, 32, 0.55);
    padding: 30px 26px;
}

.analysis-note-card .sidebar-label {
    justify-content: flex-start;
    color: #8492ad;
    margin-bottom: 14px;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
}

.analysis-note-card p {
    margin: 0;
    color: #8f9db4;
    font-size: 0.88rem;
    line-height: 1.75;
}

.note-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.score-box details summary {
    cursor: pointer;
    color: #d8e1f3;
    font-weight: 700;
}

.score-box pre {
    margin-top: 12px;
    font-size: 0.9rem;
}

.quiz-start-wrap {
    padding-top: 72px;
}

.start-panel {
    max-width: 820px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 32px;
}

.start-panel h1 {
    margin: 16px 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.start-panel p {
    color: var(--text-muted);
    line-height: 1.7;
}

.start-panel ul {
    margin: 18px 0 24px;
    padding-left: 0;
    list-style: none;
    line-height: 1.8;
}

.start-panel ul li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-icon {
    width: 14px;
    height: 14px;
    color: #a7b6d3;
    flex-shrink: 0;
}

.quiz-wrap {
    padding-top: 72px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.quiz-header h1 {
    margin: 16px 0 0;
    font-size: clamp(2rem, 5.5vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.quiz-progress-label {
    margin: 0;
    color: var(--text-muted);
    font-weight: 700;
}

.progress-v2 {
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    margin: 20px 0 28px;
    overflow: hidden;
}

.progress-v2-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.quiz-form {
    display: grid;
    gap: 14px;
}

.quiz-question {
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 18px;
}

.quiz-question h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.65;
    font-weight: 700;
}

.quiz-scale {
    margin-top: 16px;
    display: grid;
    grid-template-columns: auto repeat(4, 58px) auto;
    gap: 10px;
    align-items: center;
    justify-content: start;
}

.scale-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.scale-label.agree {
    color: #98ffda;
}

.scale-label.disagree {
    color: #b9bfff;
}

.dot-option {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.dot-option input {
    position: absolute;
    opacity: 0;
}

.dot {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #1c1f34;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dot-1,
.dot-4 {
    width: 40px;
    height: 40px;
}

.dot-2,
.dot-3 {
    width: 32px;
    height: 32px;
}

.agree-dot input:checked + .dot {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.24);
    transform: scale(1.06);
}

.disagree-dot input:checked + .dot {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.24);
    transform: scale(1.06);
}

.dot-option:active .dot {
    transform: scale(0.9);
}

.quiz-next-btn {
    width: min(360px, 100%);
    margin-top: 10px;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(6, 8, 18, 0.75);
    padding: 64px 0;
}

.footer-inner {
    text-align: center;
}

.footer-copy {
    margin: 0;
    color: #7582a1;
    letter-spacing: 0.45em;
    font-size: 0.7rem;
    font-weight: 800;
}

.footer-links {
    margin-top: 24px;
    display: inline-flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-link {
    color: #8e9ab5;
    text-decoration: none;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.footer-link:hover {
    color: var(--text-main);
}

.element-fire {
    --accent-color: var(--fire);
    --accent-bg: rgba(249, 115, 22, 0.1);
    --accent-border: rgba(249, 115, 22, 0.5);
}

.element-water {
    --accent-color: var(--water);
    --accent-bg: rgba(59, 130, 246, 0.1);
    --accent-border: rgba(59, 130, 246, 0.5);
}

.element-wind {
    --accent-color: var(--wind);
    --accent-bg: rgba(16, 185, 129, 0.1);
    --accent-border: rgba(16, 185, 129, 0.5);
}

.element-earth {
    --accent-color: var(--earth);
    --accent-bg: rgba(180, 83, 9, 0.1);
    --accent-border: rgba(180, 83, 9, 0.5);
}

.element-lightning {
    --accent-color: var(--thunder);
    --accent-bg: rgba(250, 204, 21, 0.1);
    --accent-border: rgba(250, 204, 21, 0.5);
}

.element-fire .type-element,
.element-fire .type-row-arrow { color: var(--fire); }
.element-water .type-element,
.element-water .type-row-arrow { color: var(--water); }
.element-wind .type-element,
.element-wind .type-row-arrow { color: var(--wind); }
.element-earth .type-element,
.element-earth .type-row-arrow { color: var(--earth); }
.element-lightning .type-element,
.element-lightning .type-row-arrow { color: var(--thunder); }

.btn-primary-v2:focus-visible,
.btn-ghost-v2:focus-visible,
.btn-cta-v2:focus-visible,
.nav-link-v2:focus-visible,
.footer-link:focus-visible,
.dot-option input:focus-visible + .dot,
.type-row-card:focus-visible,
.btn-share-x:focus-visible,
.btn-share-line:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .types-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .detail-main,
    .detail-sidebar {
        grid-column: span 1;
    }

    .detail-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .shell-container,
    .messages {
        width: min(1200px, calc(100% - 24px));
    }

    .section-v2 {
        padding: 64px 0;
    }

    .site-logo img {
        width: 148px;
    }

    .nav-cta-wrap {
        margin-left: 0;
        margin-top: 6px;
    }

    .btn-cta-v2 {
        width: 100%;
    }

    .hero-home {
        min-height: auto;
        padding-top: 40px;
    }

    .hero-home-top {
        background-position: center top;
    }

    .hero-actions {
        gap: 12px;
    }

    .btn-primary-v2,
    .btn-ghost-v2 {
        min-height: 56px;
        padding: 0 28px;
        width: min(360px, 100%);
    }

    .types-grid {
        grid-template-columns: 1fr;
    }

    .type-row-card {
        grid-template-columns: 60px 1fr auto;
        border-radius: 18px;
    }

    .type-row-main h2 {
        font-size: 1.3rem;
    }

    .detail-profile {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding-bottom: 40px;
    }

    .detail-profile-logo {
        width: 100px;
        height: 100px;
        border-radius: 20px;
        margin-top: 0;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .quote-section p {
        font-size: clamp(1.9rem, 12vw, 2.6rem);
    }

    .detail-sidebar {
        grid-template-columns: 1fr;
    }

    .quiz-header {
        display: block;
    }

    .quiz-progress-label {
        margin-top: 10px;
    }

    .quiz-scale {
        grid-template-columns: 1fr repeat(4, 44px) 1fr;
        gap: 6px;
    }

    .dot-1,
    .dot-4 {
        width: 32px;
        height: 32px;
    }

    .dot-2,
    .dot-3 {
        width: 26px;
        height: 26px;
    }

    .footer-links {
        gap: 16px;
    }
}
