:root {
            --sand: #fff8ec;
            --ink: #3e3441;
            --muted: #756b72;
            --purple: #4d285d;
            --aqua: #8edee4;
            --aqua-deep: #277b9a;
            --coral: #e98683;
            --pink: #f5b4b8;
            --gold: #c79a58;
            --line: rgba(116, 84, 103, .16);
            --white-glass: rgba(255, 255, 255, .84);
            --shadow: 0 14px 36px rgba(73, 48, 73, .12);
        }
* {
            box-sizing: border-box;
        }
html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }
body {
            margin: 0;
            min-width: 320px;
            min-height: 100vh;
            overflow-x: hidden;
            color: var(--ink);
            font-family: "Nunito", "Segoe UI", Arial, sans-serif;
            background:
                radial-gradient(circle at 8% 3%, rgba(142, 222, 228, .23), transparent 26rem),
                radial-gradient(circle at 93% 9%, rgba(245, 180, 184, .19), transparent 27rem),
                linear-gradient(180deg, #fffdf8 0%, var(--sand) 58%, #fdf0dc 100%);
        }
body.menu-open {
            overflow: hidden;
        }
a {
            color: inherit;
            text-decoration: none;
        }
button {
            font: inherit;
        }
img {
            max-width: 100%;
        }
.site-header {
            padding: 20px clamp(18px, 4vw, 72px);
        }
.nav-shell {
            position: relative;
            width: min(1320px, 100%);
            min-height: 54px;
            margin: 0 auto;
            padding: 10px 14px 10px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            border: 1px solid rgba(111, 82, 121, .16);
            border-radius: 999px;
            background: rgba(255, 255, 255, .69);
            box-shadow: 0 8px 28px rgba(47, 25, 57, .10);
        }
.nav-links {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 4px;
            list-style: none;
            padding: 0;
            margin: 0;
        }
.nav-links a {
            display: block;
            padding: 9px 13px;
            border-radius: 999px;
            color: var(--muted);
            font-size: .88rem;
            font-weight: 800;
            transition: .2s ease;
        }
.menu-toggle {
            display: none;
            width: 42px;
            height: 42px;
            padding: 0;
            border: 1px solid rgba(77, 40, 93, .22);
            border-radius: 13px;
            cursor: pointer;
            color: var(--purple);
            background: rgba(255, 255, 255, .72);
        }
.menu-toggle span {
            display: block;
            width: 19px;
            height: 2px;
            margin: 4px auto;
            border-radius: 999px;
            background: currentColor;
            transition: transform .2s ease, opacity .2s ease;
        }
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
            transform: translateY(6px) rotate(45deg);
        }
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
            opacity: 0;
        }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
            transform: translateY(-6px) rotate(-45deg);
        }
.page-shell {
            width: min(1180px, calc(100% - 36px));
            margin: 0 auto;
            padding: 38px 0 82px;
        }
.breadcrumb {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 42px;
            margin-bottom: 24px;
            color: var(--aqua-deep);
            font-size: .86rem;
            font-weight: 900;
        }
.breadcrumb:hover {
            color: var(--purple);
        }
.breadcrumb-arrow {
            color: var(--gold);
            font-size: 1.1rem;
        }
.class-hero {
            position: relative;
            overflow: hidden;
            padding: clamp(26px, 5vw, 48px);
            border: 1px solid rgba(199, 154, 88, .30);
            border-radius: 32px;
            background: rgba(255, 255, 255, .70);
            box-shadow: var(--shadow);
        }
.class-hero-inner {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            gap: 25px;
        }
.class-symbol {
            display: grid;
            flex: 0 0 auto;
            place-items: center;
            width: 145px;
            height: 145px;
            overflow: hidden;
            border: 1px solid rgba(77, 40, 93, .16);
            border-radius: 31px;
            background: var(--class-light, #e9f8f9);
            box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .42);
        }
.class-symbol img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
.eyebrow {
            margin: 0 0 9px;
            color: var(--aqua-deep);
            font-size: .75rem;
            font-weight: 900;
            letter-spacing: .14em;
            text-transform: uppercase;
        }
h1, h2, h3, h4, p {
            margin-top: 0;
        }
h1, h2, h3, h4 {
            color: var(--purple);
            font-family: Georgia, serif;
        }
h1 {
            margin-bottom: 8px;
            font-size: clamp(2.15rem, 5vw, 3.65rem);
            line-height: 1;
        }
h2 {
            margin-bottom: 14px;
            font-size: 1.65rem;
        }
h3 {
            margin-bottom: 8px;
            font-size: 1.05rem;
        }
.class-subtitle {
            margin-bottom: 15px;
            color: var(--muted);
            font-weight: 800;
        }
.class-summary {
            max-width: 750px;
            margin: 0;
            color: var(--muted);
            line-height: 1.7;
        }
.quick-tag strong {
            color: var(--aqua-deep);
        }
.element-section {
            position: relative;
            z-index: 1;
            margin-top: 21px;
        }
.element-label {
            margin: 0 0 8px;
            color: var(--aqua-deep);
            font-size: .70rem;
            font-weight: 900;
            letter-spacing: .12em;
            text-transform: uppercase;
        }
.element-list {
            display: flex;
            flex-wrap: wrap;
            gap: 9px;
        }
.element-card {
            display: flex;
            align-items: center;
            gap: 9px;
            min-height: 48px;
            padding: 8px 13px 8px 9px;
            border: 1px solid rgba(77, 40, 93, .13);
            border-radius: 15px;
            color: var(--purple);
            background: rgba(255, 255, 255, .78);
            box-shadow: 0 6px 14px rgba(77, 40, 93, .06);
        }
.element-card.primary {
            border-color: rgba(199, 154, 88, .55);
            background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 241, 211, .66));
        }
.content-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.5fr) minmax(290px, .78fr);
            gap: 24px;
            margin-top: 25px;
        }
.panel {
            min-width: 0;
            padding: 27px;
            border: 1px solid var(--line);
            border-radius: 25px;
            background: var(--white-glass);
            box-shadow: 0 12px 31px rgba(73, 48, 73, .07);
        }
.panel > p {
            color: var(--muted);
            line-height: 1.7;
        }
.rating-list {
            display: grid;
            gap: 16px;
        }
.rating-row {
            display: grid;
            grid-template-columns: 140px minmax(0, 1fr) 85px;
            gap: 13px;
            align-items: center;
        }
.rating-name {
            color: var(--ink);
            font-size: .88rem;
            font-weight: 900;
        }
.rating-track {
            height: 11px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(117, 107, 114, .13);
        }
.rating-fill {
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, var(--accent-color, var(--aqua)), var(--gold));
        }
.rating-value {
            color: var(--purple);
            font-size: .9rem;
            font-weight: 900;
            text-align: right;
            white-space: nowrap;
        }
.rating-stars {
            color: var(--gold);
            letter-spacing: .05em;
        }
.tier-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 11px;
        }
.tier-box {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-height: 58px;
            padding: 13px;
            border: 1px solid rgba(116, 84, 103, .11);
            border-radius: 16px;
            background: rgba(255, 255, 255, .61);
        }
.tier-box span:first-child {
            color: var(--muted);
            font-size: .81rem;
            font-weight: 900;
        }
.tier-badge {
            display: grid;
            flex: 0 0 auto;
            place-items: center;
            width: 32px;
            height: 32px;
            border-radius: 11px;
            color: #fff;
            font-family: Georgia, serif;
            font-size: 1.1rem;
            font-weight: 700;
        }
.tier-s { background: linear-gradient(140deg, #e56e79, #df9a84); }
.tier-a { background: linear-gradient(140deg, #c8944e, #dfbe77); }
.tier-b { background: linear-gradient(140deg, #55b7c8, #93dfe2); }
.tier-c { background: linear-gradient(140deg, #9c8da8, #c0b3c4); }
.tier-none { background: #b6aeb4; }
.guide-content {
            margin-top: 24px;
        }
.list-panel {
            display: grid;
            gap: 12px;
        }
.guide-list li {
            position: relative;
            padding-left: 22px;
            color: var(--muted);
            font-size: .91rem;
            line-height: 1.5;
        }
.section-copy {
            margin-bottom: 0;
            color: var(--muted);
            line-height: 1.75;
        }
.placeholder-note {
            margin-top: 18px;
            padding: 16px 18px;
            border-left: 4px solid var(--gold);
            border-radius: 0 14px 14px 0;
            color: var(--muted);
            font-size: .91rem;
            line-height: 1.65;
            background: rgba(255, 241, 211, .57);
        }
.eidolon-section {
            margin-top: 18px;
        }
.eidolon-groups {
            display: grid;
            gap: 16px;
        }
.eidolon-group {
            overflow: hidden;
            border: 1px solid rgba(116, 84, 103, .14);
            border-radius: 19px;
            background: rgba(255, 255, 255, .53);
        }
.eidolon-group-head {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 15px;
            color: var(--purple);
            background: var(--eidolon-bg, #f4e8e8);
        }
.eidolon-group-title {
            font-size: .95rem;
            font-weight: 1000;
        }
.eidolon-group-desc {
            margin-left: auto;
            color: var(--muted);
            font-size: .74rem;
            font-weight: 800;
            text-align: right;
        }
.eidolon-group-body {
            padding: 15px;
        }
.eidolon-note {
            margin: 14px 0 0;
            color: var(--muted);
            font-size: .82rem;
            line-height: 1.6;
        }
.eidolon-utility {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px dashed rgba(116, 84, 103, .23);
        }
.utility-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 11px;
        }
.utility-box {
            padding: 13px;
            border: 1px solid rgba(116, 84, 103, .12);
            border-radius: 15px;
            background: rgba(255, 255, 255, .61);
        }
.element-fire { --eidolon-bg: #f3a0a4; }
.element-ice { --eidolon-bg: #9ebbea; }
.element-storm { --eidolon-bg: #b6dca9; }
.element-lightning { --eidolon-bg: #ffd29e; }
.element-light { --eidolon-bg: #ffe596; }
.element-dark { --eidolon-bg: #b9add8; }
.element-physical { --eidolon-bg: #c6c6c6; }
.envoy-panel {
            position: relative;
            overflow: hidden;
        }
.envoy-image-wrap {
            position: relative;
            z-index: 1;
            margin-top: 22px;
            overflow: auto;
            -webkit-overflow-scrolling: touch;
            border: 1px solid rgba(77, 40, 93, .16);
            border-radius: 20px;
            background: #f8f2ea;
            box-shadow: 0 13px 26px rgba(77, 40, 93, .09);
        }
.envoy-image-wrap img {
            display: block;
            width: 100%;
            height: auto;
            min-width: 520px;
            max-height: 780px;
            object-fit: contain;
            background: #f8f2ea;
        }
.envoy-placeholder {
            position: relative;
            z-index: 1;
            display: grid;
            place-items: center;
            min-height: 300px;
            margin-top: 22px;
            overflow: hidden;
            border: 2px dashed rgba(119, 83, 138, .32);
            border-radius: 20px;
            text-align: center;
            background: linear-gradient(135deg, rgba(255, 255, 255, .72), var(--class-light, #e9f8f9));
        }
.envoy-placeholder p {
            max-width: 500px;
            margin: 0;
            padding: 0 18px;
            color: var(--muted);
            line-height: 1.7;
        }
.envoy-path {
            display: block;
            margin-top: 9px;
            overflow-wrap: anywhere;
            color: var(--purple);
            font-family: monospace;
            font-size: .82rem;
        }
.not-found {
            max-width: 720px;
            margin: 65px auto;
            padding: 38px;
            border: 1px solid rgba(199, 154, 88, .35);
            border-radius: 28px;
            text-align: center;
            background: rgba(255, 255, 255, .75);
            box-shadow: var(--shadow);
        }
.button {
            display: inline-block;
            min-height: 44px;
            margin-top: 13px;
            padding: 12px 17px;
            border-radius: 13px;
            color: #fff;
            font-size: .88rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--purple), #795687);
            box-shadow: 0 8px 16px rgba(77, 40, 93, .16);
        }
.site-footer {
            padding: 25px 18px calc(35px + env(safe-area-inset-bottom));
            border-top: 1px solid rgba(116, 84, 103, .1);
            color: var(--muted);
            font-size: .84rem;
            text-align: center;
        }
.accent-coral { --class-light: #ffe4df; --accent-color: var(--coral); }
.accent-gold { --class-light: #fff1d3; --accent-color: var(--gold); }
.accent-violet { --class-light: #eee2f4; --accent-color: #a076b7; }
.accent-aqua { --class-light: #def7f6; --accent-color: var(--aqua); }
.accent-blue { --class-light: #e0edfb; --accent-color: #7aaad8; }
.accent-pink { --class-light: #fde4ed; --accent-color: var(--pink); }
.accent-green { --class-light: #e0f3e6; --accent-color: #91c89c; }
