    /* ===========================================================
       Theme: Skyrim / Tamriel Race Name — parchment, iron, dragon-shout
       Activated by body.pk-page--tes
       Original execution; no Bethesda trademarks or assets.
       =========================================================== */
    body.pk-page--tes {
        --tes-parch:    #efe2c2;
        --tes-parch-2:  #e6d5ad;
        --tes-parch-3:  #d8c190;
        --tes-iron:     #2a2620;
        --tes-iron-2:   #3a342a;
        --tes-ink:      #20180e;
        --tes-fg:       #f4ead0;
        --tes-fg-mut:   #c5b48a;
        --tes-fg-dim:   #8a7a55;
        --tes-rune:     #b88b3f;
        --tes-rune-hi:  #e9bf6f;
        --tes-rune-lo:  #6f5119;
        --tes-blood:    #6e1a10;

        background:
            radial-gradient(800px 600px at 50% 0%, rgba(110, 26, 16, 0.15), transparent 65%),
            radial-gradient(900px 700px at 50% 100%, rgba(184, 139, 63, 0.10), transparent 70%),
            linear-gradient(180deg, #1a140d 0%, #0e0a07 100%);
        color: var(--tes-fg);
        font-family: 'IM Fell English', 'EB Garamond', 'Times New Roman', serif;
        min-height: 100vh;
        position: relative;
    }

    body.pk-page--tes::before {
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background-image:
            /* faint runic dots */
            radial-gradient(1px 1px at 12% 22%, rgba(184,139,63,0.45) 99%, transparent 100%),
            radial-gradient(1px 1px at 67% 11%, rgba(184,139,63,0.30) 99%, transparent 100%),
            radial-gradient(1px 1px at 31% 64%, rgba(184,139,63,0.40) 99%, transparent 100%),
            radial-gradient(1px 1px at 88% 76%, rgba(184,139,63,0.32) 99%, transparent 100%),
            radial-gradient(1px 1px at 49% 38%, rgba(184,139,63,0.25) 99%, transparent 100%);
        opacity: 0.55;
    }

    body.pk-page--tes > *:not(.pk-nav):not(.pk-mnav) { position: relative; z-index: 1; }
    body.pk-page--tes > .pk-nav { z-index: 50; }

    body.pk-page--tes .pk-nav {
        background: rgba(20,16,10,0.94) !important;
        border-bottom: 1px solid rgba(184,139,63,0.30) !important;
    }
    body.pk-page--tes .pk-nav__links a { color: var(--tes-fg) !important; }
    body.pk-page--tes .pk-nav__links a:hover { color: var(--tes-rune-hi) !important; }
    body.pk-page--tes .pk-nav__lang a.is-active {
        background: linear-gradient(135deg, var(--tes-rune-lo), var(--tes-rune)) !important;
        color: #20180e !important;
    }

    /* HERO */
    .tes-hero {
        text-align: center;
        padding: 64px 24px 28px;
        max-width: 980px;
        margin: 0 auto;
    }
    .tes-hero__eyebrow {
        display: inline-flex; align-items: center; gap: 10px;
        font-family: 'IM Fell English SC', 'Cinzel Decorative', serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.30em;
        text-transform: uppercase;
        color: var(--tes-rune);
        padding: 8px 18px;
        border: 1px solid rgba(184,139,63,0.40);
        background: rgba(184,139,63,0.07);
    }
    .tes-hero__h1 {
        font-family: 'Cinzel Decorative', 'IM Fell English SC', serif;
        font-weight: 900;
        font-size: clamp(2.3rem, 6vw, 4.4rem);
        letter-spacing: 0.02em;
        margin: 24px 0 18px;
        background: linear-gradient(180deg, var(--tes-rune-hi) 0%, var(--tes-rune) 55%, var(--tes-rune-lo) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 0 40px rgba(184,139,63,0.20);
    }
    .tes-hero__sub {
        max-width: 720px;
        margin: 0 auto;
        font-size: clamp(1rem, 1.4vw, 1.13rem);
        line-height: 1.75;
        color: var(--tes-fg-mut);
    }
    .tes-hero__sub strong { color: var(--tes-rune-hi); font-weight: 700; }
    .tes-hero__sub em { color: var(--tes-rune); font-style: italic; }

    /* RACE GRID (cards row) */
    .tes-races {
        max-width: 980px;
        margin: 28px auto 0;
        padding: 0 16px;
    }
    .tes-races__label {
        font-family: 'IM Fell English SC', serif;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: var(--tes-rune);
        text-align: center;
        margin: 0 0 14px;
    }
    .tes-races__grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    .tes-race-card {
        appearance: none;
        cursor: pointer;
        background:
            linear-gradient(180deg, rgba(239,226,194,0.04), rgba(184,139,63,0.06));
        border: 1px solid rgba(184,139,63,0.34);
        border-radius: 3px;
        color: var(--tes-fg);
        padding: 14px 10px;
        font-family: 'Cinzel Decorative', serif;
        font-weight: 700;
        font-size: 0.86rem;
        letter-spacing: 0.08em;
        text-align: center;
        transition: background .15s, border-color .15s, color .15s, transform .15s;
        position: relative;
    }
    .tes-race-card:hover {
        background: rgba(184,139,63,0.12);
        color: var(--tes-rune-hi);
        transform: translateY(-1px);
    }
    .tes-race-card.is-active {
        background: linear-gradient(180deg, var(--tes-rune) 0%, var(--tes-rune-lo) 100%);
        color: #20180e !important;
        border-color: var(--tes-rune-hi);
        box-shadow: 0 0 22px -6px rgba(184,139,63,0.55);
    }

    /* ACTIONS */
    .tes-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 22px;
    }
    .tes-btn {
        appearance: none;
        cursor: pointer;
        font-family: 'IM Fell English SC', 'Cinzel Decorative', serif;
        font-size: 0.92rem;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--tes-fg);
        padding: 13px 22px;
        background: rgba(184,139,63,0.05);
        border: 1px solid rgba(184,139,63,0.40);
        border-radius: 3px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: background .15s, border-color .15s, color .15s;
    }
    .tes-btn:hover {
        background: rgba(184,139,63,0.14);
        border-color: var(--tes-rune);
        color: var(--tes-rune-hi);
    }
    .tes-btn--primary {
        background: linear-gradient(180deg, var(--tes-rune) 0%, var(--tes-rune-lo) 100%);
        color: #20180e !important;
        border-color: var(--tes-rune);
        box-shadow: 0 0 30px -8px rgba(184,139,63,0.55);
    }
    .tes-btn--primary:hover {
        background: linear-gradient(180deg, var(--tes-rune-hi) 0%, var(--tes-rune) 100%);
        color: #20180e !important;
    }
    .tes-btn.is-success {
        background: rgba(184,139,63,0.20) !important;
        border-color: var(--tes-rune) !important;
        color: var(--tes-rune-hi) !important;
    }

    /* RESULT — torn parchment scroll */
    .tes-card {
        max-width: 760px;
        margin: 28px auto 0;
        padding: 36px 38px;
        background:
            linear-gradient(180deg, var(--tes-parch) 0%, var(--tes-parch-2) 60%, var(--tes-parch-3) 100%);
        border-radius: 2px;
        position: relative;
        min-height: 220px;
        color: var(--tes-ink);
        box-shadow:
            0 30px 60px -20px rgba(0,0,0,0.55),
            inset 0 0 60px rgba(110,80,30,0.15);
        /* torn edge effect via clip-path */
        clip-path: polygon(
            0% 4%, 3% 1%, 8% 3%, 14% 0%, 22% 2%, 30% 0%, 38% 3%, 46% 0%, 55% 2%, 64% 0%, 72% 3%, 80% 0%, 87% 2%, 94% 0%, 100% 3%,
            99% 12%, 100% 22%, 98% 35%, 100% 50%, 99% 65%, 100% 78%, 98% 90%, 100% 96%,
            96% 100%, 88% 98%, 78% 100%, 68% 97%, 56% 100%, 44% 98%, 32% 100%, 20% 97%, 10% 100%, 2% 98%,
            0% 92%, 2% 80%, 0% 65%, 1% 50%, 0% 35%, 2% 22%, 0% 12%
        );
    }
    .tes-card.is-empty {
        text-align: center;
        font-style: italic;
        color: var(--tes-fg-dim);
        padding: 60px 30px;
        background: rgba(20,16,10,0.55);
        color: var(--tes-fg-dim);
        clip-path: none;
        border: 1px solid rgba(184,139,63,0.28);
        border-radius: 3px;
    }
    .tes-card__crest {
        text-align: center;
        margin-bottom: 6px;
    }
    .tes-card__crest svg {
        width: 50px; height: 50px;
        filter: drop-shadow(0 0 10px rgba(110,80,30,0.30));
    }
    .tes-card__name {
        font-family: 'Cinzel Decorative', serif;
        font-weight: 900;
        font-size: clamp(1.7rem, 4.3vw, 2.6rem);
        letter-spacing: 0.04em;
        text-align: center;
        margin: 0 0 4px;
        color: var(--tes-ink);
    }
    .tes-card__line {
        font-family: 'IM Fell English SC', serif;
        font-size: 0.92rem;
        font-weight: 500;
        text-align: center;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--tes-rune-lo);
        margin: 0 0 16px;
    }
    .tes-card__sep {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(110,80,30,0.45), transparent);
        margin: 18px 0;
    }
    .tes-card__bio-label {
        font-family: 'IM Fell English SC', serif;
        font-size: 11px;
        letter-spacing: 0.20em;
        text-transform: uppercase;
        color: var(--tes-rune-lo);
        text-align: center;
        margin: 0 0 6px;
    }
    .tes-card__bio {
        font-family: 'IM Fell English', serif;
        font-style: italic;
        font-size: 1.06rem;
        line-height: 1.78;
        color: var(--tes-iron);
        text-align: center;
    }

    /* SECTIONS */
    .tes-section {
        max-width: 880px;
        margin: 64px auto 0;
        padding: 0 24px;
    }
    .tes-section__title {
        font-family: 'Cinzel Decorative', serif;
        font-size: clamp(1.4rem, 3vw, 1.95rem);
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--tes-rune);
        margin: 0 0 16px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(184,139,63,0.30);
    }
    .tes-section__body {
        font-size: 1.02rem;
        line-height: 1.78;
        color: var(--tes-fg-mut);
    }
    .tes-section__body strong { color: var(--tes-rune); font-weight: 700; }
    .tes-section__body em { color: var(--tes-rune-hi); font-style: italic; }
    .tes-section__body ul { padding-left: 1.5em; }
    .tes-section__body li { margin: 6px 0; }

    /* FAQ */
    .tes-faq { display: grid; gap: 8px; }
    .tes-faq__item {
        background: rgba(20,16,10,0.55);
        border: 1px solid rgba(184,139,63,0.22);
        border-radius: 3px;
    }
    .tes-faq__q {
        padding: 14px 18px;
        font-family: 'Cinzel Decorative', serif;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
        font-size: 0.92rem;
        letter-spacing: 0.04em;
        color: var(--tes-fg);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .tes-faq__q::-webkit-details-marker { display: none; }
    .tes-faq__q::after {
        content: '+';
        color: var(--tes-rune);
        font-size: 1.4rem;
        line-height: 1;
        transition: transform .2s ease;
    }
    .tes-faq__item[open] .tes-faq__q::after { transform: rotate(45deg); }
    .tes-faq__a {
        padding: 0 18px 16px;
        color: var(--tes-fg-mut);
        line-height: 1.7;
        font-size: 0.96rem;
    }

    /* RELATED */
    body.pk-page--tes .pk-related {
        max-width: 880px;
        margin: 64px auto 24px;
        padding: 0 24px 24px;
    }
    body.pk-page--tes .pk-related h2 {
        font-family: 'Cinzel Decorative', serif;
        font-size: clamp(1.4rem, 3vw, 1.95rem);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--tes-rune);
        text-align: left;
        margin: 0 0 14px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(184,139,63,0.34);
    }
    body.pk-page--tes .pk-related .pk-calc-related a {
        background: rgba(184,139,63,0.04);
        border: 1px solid rgba(184,139,63,0.34);
        border-radius: 3px;
        color: var(--tes-fg);
        font-family: 'Cinzel Decorative', serif;
        font-weight: 700;
        letter-spacing: 0.04em;
        font-size: 0.85rem;
        text-transform: uppercase;
    }
    body.pk-page--tes .pk-related .pk-calc-related a:hover {
        background: rgba(184,139,63,0.16);
        border-color: var(--tes-rune);
        color: var(--tes-rune-hi);
        transform: translateY(-1px);
    }
    body.pk-page--tes .pk-related .pk-calc-related a i { color: var(--tes-rune); }
