:root {
    --ga-accent: #d4af37;
    --ga-accent-rgb: 212, 175, 55;
    --ga-surface: #121212;
    --ga-surface-dense: #0d0d0d;
    --ga-border: rgba(212, 175, 55, 0.14);
    --ga-border-strong: rgba(212, 175, 55, 0.35);
    --ga-reward: #d4af37;
    --ga-reward-rgb: 212, 175, 55;
    --ga-radius: 4px;
    --ga-radius-sm: 2px;
    --ga-muted: #a3a3a3;
    --ga-glow: 0 8px 30px rgba(212, 175, 55, 0.045);
}

/* Handbook pages: olive/green accent instead of gold */
body.guide-theme--handbook {
    --ga-accent: var(--c-green);
    --ga-accent-rgb: var(--c-green-rgb);
    --ga-border: rgba(var(--c-green-rgb), 0.14);
    --ga-border-strong: rgba(var(--c-green-rgb), 0.35);
    --ga-reward: var(--c-green);
    --ga-reward-rgb: var(--c-green-rgb);
    --ga-glow: 0 8px 30px rgba(var(--c-green-rgb), 0.05);
}

body[data-i18n-page="guides"] {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(
            ellipse 110% 74% at 50% 16%,
            rgba(40, 30, 15, 0.15) 0%,
            rgba(20, 15, 10, 0.08) 38%,
            rgba(8, 8, 8, 0.58) 70%,
            #080808 100%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(212, 175, 55, 0.022) 0,
            rgba(212, 175, 55, 0.022) 1px,
            transparent 1px,
            transparent 20px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.016) 0,
            rgba(255, 255, 255, 0.016) 1px,
            transparent 1px,
            transparent 20px
        ),
        #080808;
    background-attachment: fixed;
}

body.guide-theme--handbook[data-i18n-page="guides"] {
    background:
        radial-gradient(
            ellipse 110% 74% at 50% 16%,
            rgba(28, 36, 16, 0.16) 0%,
            rgba(16, 20, 10, 0.08) 38%,
            rgba(8, 8, 8, 0.58) 70%,
            #080808 100%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(var(--c-green-rgb), 0.022) 0,
            rgba(var(--c-green-rgb), 0.022) 1px,
            transparent 1px,
            transparent 20px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.016) 0,
            rgba(255, 255, 255, 0.016) 1px,
            transparent 1px,
            transparent 20px
        ),
        #080808;
    background-attachment: fixed;
}

body[data-i18n-page="guides"]::before {
    display: none;
}

body[data-i18n-page="guides"]::after {
    display: none;
}

body[data-i18n-page="guides"] .guide-article {
    position: relative;
    padding-bottom: var(--space-3xl);
}

.guide-article::before,
.guide-article::after {
    content: none;
}

/* ── Breadcrumb ── */

.guide-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--header-h);
    padding: var(--space-lg) 0 var(--space-md);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.3px;
    color: #6b6b6b;
}

.guide-breadcrumb a {
    color: var(--ga-muted);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-in-out);
}

.guide-breadcrumb a:hover {
    color: var(--ga-accent);
}

.guide-breadcrumb__sep {
    opacity: 0.45;
}

.guide-breadcrumb__current {
    color: #e8e8e8;
}

/* ── Hero (handbook default) ── */

.guide-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(28px, 4vw, 40px);
    border-radius: var(--ga-radius);
    border: 1px solid var(--ga-border-strong);
    background: var(--ga-surface);
    box-shadow: var(--ga-glow), 0 18px 48px rgba(0, 0, 0, 0.55);
}

.guide-hero__sweep {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 50%;
    height: 200%;
    background: linear-gradient(105deg, transparent 42%, rgba(var(--ga-accent-rgb), 0.07) 50%, transparent 58%);
    transform: rotate(-6deg);
    pointer-events: none;
}

.guide-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-xl);
    align-items: end;
    padding: clamp(24px, 4vw, 40px);
}

/* ── Quest hero: 65% / 35% PDA layout ── */

.guide-hero--quest {
    display: grid;
    grid-template-columns: minmax(0, 66%) minmax(300px, 34%);
    align-items: stretch;
    min-height: 270px;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, transparent 42%),
        #121212;
    box-shadow:
        var(--ga-glow),
        0 24px 60px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.guide-hero--quest .guide-hero__sweep {
    grid-column: 1 / -1;
    grid-row: 1;
}

.guide-hero__main {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: stretch;
    gap: 22px;
    min-width: 0;
    padding: 18px 22px;
    border-right: 1px solid rgba(var(--ga-accent-rgb), 0.22);
}

.guide-hero--quest .guide-hero__visual {
    position: relative;
    flex: 0 0 auto;
    width: clamp(170px, 16vw, 205px);
    min-width: 170px;
    min-height: 234px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d4af37;
    border-radius: var(--ga-radius-sm);
    background: #0d0d0d;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        inset 0 0 24px rgba(212, 175, 55, 0.12),
        0 0 28px rgba(212, 175, 55, 0.12);
}

.guide-hero--quest .guide-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.9) contrast(1.12) brightness(0.78);
}

.guide-hero--quest .guide-hero__visual-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%),
        repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(255, 255, 255, 0.035) 7px, rgba(255, 255, 255, 0.035) 8px),
        linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.guide-hero--quest .guide-hero__visual-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.18));
}

.guide-hero--stuck-in-space .guide-hero__visual {
    box-shadow: none;
}

.guide-hero--stuck-in-space .guide-hero__visual img {
    filter: none;
}

@media (min-width: 861px) {
    .guide-hero--stuck-in-space {
        height: 300px;
        min-height: 300px;
    }

    .guide-hero--stuck-in-space .guide-hero__copy {
        justify-content: flex-start;
    }

    .guide-hero--stuck-in-space .guide-hero__title {
        height: 2.1em;
    }

    .guide-hero--stuck-in-space .guide-hero__subtitle {
        height: 5.25em;
    }
}

/* ── Handbook hero: same PDA shell, facts instead of rewards ── */

.guide-hero--handbook {
    display: grid;
    grid-template-columns: minmax(0, 66%) minmax(280px, 34%);
    align-items: stretch;
    min-height: 270px;
    border-color: rgba(var(--c-green-rgb), 0.4);
    background:
        linear-gradient(135deg, rgba(var(--c-green-rgb), 0.05) 0%, transparent 42%),
        #121212;
    box-shadow:
        0 8px 30px rgba(var(--c-green-rgb), 0.06),
        0 24px 60px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.guide-hero--handbook .guide-hero__sweep {
    grid-column: 1 / -1;
    grid-row: 1;
    background: linear-gradient(105deg, transparent 42%, rgba(var(--c-green-rgb), 0.07) 50%, transparent 58%);
}

.guide-hero--handbook .guide-hero__visual {
    position: relative;
    flex: 0 0 auto;
    width: clamp(170px, 16vw, 205px);
    min-width: 170px;
    min-height: 234px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--c-green-rgb), 0.55);
    border-radius: var(--ga-radius-sm);
    background: #0d0d0d;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        inset 0 0 24px rgba(var(--c-green-rgb), 0.1),
        0 0 28px rgba(var(--c-green-rgb), 0.1);
}

.guide-hero--handbook .guide-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 18px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

.guide-hero--handbook .guide-hero__visual-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%),
        repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(255, 255, 255, 0.025) 7px, rgba(255, 255, 255, 0.025) 8px),
        linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

.guide-hero--handbook .guide-hero__visual-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(var(--c-green-rgb), 0.16));
}

.guide-hero--handbook .guide-hero__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 4px 0;
}

.guide-hero--handbook .guide-hero__title {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff8e7;
    text-shadow:
        0 0 24px rgba(var(--c-green-rgb), 0.18),
        0 2px 12px rgba(0, 0, 0, 0.7);
}

.guide-hero--handbook .guide-hero__subtitle {
    margin: 0;
    max-width: 42ch;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ga-muted);
}

.guide-hero--handbook .guide-hero__tags {
    margin: 4px 0 0;
    gap: 8px;
}

.guide-hero--handbook .guide-hero__main {
    border-right-color: rgba(var(--c-green-rgb), 0.28);
}

.guide-hero--handbook .guide-hero__tags .guide-hero__type,
.guide-hero--handbook .guide-hero__tags .guide-hero__location {
    box-sizing: border-box;
    height: 26px;
    padding: 0 9px;
    line-height: 1;
    justify-content: center;
}

.guide-hero--handbook .guide-hero__tags .guide-hero__location {
    border-color: rgba(var(--c-green-rgb), 0.4);
}

.guide-hero--handbook .guide-hero__tags .guide-hero__location::before {
    background: var(--c-green);
    box-shadow: 0 0 8px rgba(var(--c-green-rgb), 0.65);
}

.guide-hero--handbook .guide-hero__fact dt {
    color: #7a8a52;
}

.guide-hero__facts {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 18px 18px 18px 20px;
    background:
        linear-gradient(180deg, rgba(var(--c-green-rgb), 0.04) 0%, transparent 28%),
        #0f0f0f;
    box-shadow: inset 1px 0 0 rgba(var(--c-green-rgb), 0.22);
}

.guide-hero__facts::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(var(--c-green-rgb), 0.7) 18%,
        rgba(var(--c-green-rgb), 0.7) 82%,
        transparent
    );
    pointer-events: none;
}

.guide-hero__facts-head {
    flex-shrink: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(var(--c-green-rgb), 0.22);
}

.guide-hero__facts-label {
    display: block;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dba7a;
}

.guide-hero__facts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.guide-hero__fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-hero__fact dt {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.guide-hero__fact dd {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #e5e5e5;
}

.guide-hero__facts-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 12px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--c-green);
    border: 1px solid rgba(var(--c-green-rgb), 0.35);
    border-radius: var(--ga-radius-sm);
    background: rgba(var(--c-green-rgb), 0.08);
    transition:
        color var(--t-fast) var(--ease-in-out),
        border-color var(--t-fast) var(--ease-in-out),
        background var(--t-fast) var(--ease-in-out);
}

.guide-hero__facts-link:hover {
    color: #d8f5d6;
    border-color: rgba(var(--c-green-rgb), 0.55);
    background: rgba(var(--c-green-rgb), 0.16);
}

.guide-hero__facts-link svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.guide-hero--quest .guide-hero__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 4px 0;
}

.guide-hero--quest .guide-hero__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff8e7;
    text-shadow:
        0 0 24px rgba(212, 175, 55, 0.25),
        0 2px 12px rgba(0, 0, 0, 0.7);
}

.guide-hero--quest .guide-hero__subtitle {
    margin: 0;
    max-width: 42ch;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ga-muted);
}

.guide-hero__start {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.035em;
    color: #92876f;
}

.guide-hero__start-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: rgba(var(--ga-accent-rgb), 0.78);
}

.guide-hero__start code {
    padding: 3px 7px;
    font-family: inherit;
    font-size: 11px;
    color: #c9ad61;
    border: 1px solid rgba(var(--ga-accent-rgb), 0.18);
    border-radius: var(--ga-radius-sm);
    background: #0d0d0d;
}

.guide-hero__map-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    height: 26px;
    padding: 0 9px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--ga-accent);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--ga-radius-sm);
    background: rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        color var(--t-fast) var(--ease-in-out),
        border-color var(--t-fast) var(--ease-in-out),
        background var(--t-fast) var(--ease-in-out);
}

.guide-hero__map-btn:hover {
    color: #fff4d0;
    border-color: rgba(212, 175, 55, 0.65);
    background: rgba(212, 175, 55, 0.22);
}

.guide-hero__map-btn svg {
    display: block;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    opacity: 0.9;
}

.guide-hero--quest .guide-hero__tags {
    margin: 4px 0 0;
    gap: 8px;
}

.guide-hero--quest .guide-hero__tags .guide-hero__type,
.guide-hero--quest .guide-hero__tags .guide-hero__location {
    box-sizing: border-box;
    height: 26px;
    padding: 0 9px;
    line-height: 1;
    justify-content: center;
}

.guide-hero--quest .guide-hero__tags .guide-hero__type--quest {
    min-width: 132px;
}

.guide-hero--quest .guide-hero__tags .guide-hero__location {
    min-width: 96px;
}

.guide-hero--quest .guide-hero__tags .guide-hero__map-btn {
    min-width: 148px;
    justify-content: center;
}

.guide-hero__location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #d4d4d4;
    border: 1px solid rgba(var(--ga-accent-rgb), 0.35);
    border-radius: var(--ga-radius-sm);
    background: rgba(13, 13, 13, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.guide-hero__location::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ga-accent);
    box-shadow: 0 0 8px rgba(var(--ga-accent-rgb), 0.7);
}

/* ── Quest reward panel (PDA loot list) ── */

.guide-hero__rewards {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    margin: 0;
    padding: 18px 18px 18px 20px;
    background:
        linear-gradient(180deg, rgba(var(--ga-accent-rgb), 0.035) 0%, transparent 28%),
        #0f0f0f;
    box-shadow: inset 1px 0 0 rgba(var(--ga-accent-rgb), 0.18);
}

.guide-hero__rewards::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(var(--ga-accent-rgb), 0.75) 18%,
        rgba(var(--ga-accent-rgb), 0.75) 82%,
        transparent
    );
    pointer-events: none;
}

.guide-hero__rewards-overlay,
.guide-hero__rewards-glow {
    display: none;
}

.guide-hero__rewards-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(var(--ga-accent-rgb), 0.22);
}

.guide-hero__rewards-label {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a84a;
    text-align: left;
    border: none;
    text-shadow: none;
}

.guide-hero__reward-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
}

.guide-hero__reward-stat {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #b7ad95;
    text-align: right;
    white-space: nowrap;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.guide-hero__reward-stat--money {
    color: #d4c48a;
}

.guide-hero__reward-stat--xp {
    color: #8fbf7a;
}

.guide-hero__reward-stat + .guide-hero__reward-stat::before {
    content: '·';
    margin: 0 8px;
    color: rgba(var(--ga-accent-rgb), 0.45);
}

.guide-hero__rewards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 56px);
    justify-content: start;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-hero__reward {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    min-width: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(var(--ga-accent-rgb), 0.28);
    background: rgba(8, 8, 8, 0.72);
    transition:
        border-color var(--t-fast) var(--ease-in-out),
        background var(--t-fast) var(--ease-in-out);
}

.guide-hero__reward:hover,
.guide-hero__reward:focus-within {
    border-color: rgba(var(--ga-accent-rgb), 0.28);
    border-left-color: rgba(var(--ga-accent-rgb), 0.55);
    background: rgba(18, 16, 10, 0.88);
}

.guide-hero__reward-slot,
.guide-hero__reward-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background:
        linear-gradient(160deg, rgba(var(--ga-accent-rgb), 0.08), transparent 55%),
        transparent;
    box-shadow: none;
    transition: none;
}

.guide-hero__reward:hover .guide-hero__reward-slot,
.guide-hero__reward:hover .guide-hero__reward-icon {
    border-color: transparent;
}

.guide-hero__reward-slot img,
.guide-hero__reward-icon img {
    width: 68%;
    height: 68%;
    max-width: 68%;
    max-height: 68%;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
}

.guide-hero__reward-name {
    display: none;
}

.guide-hero__reward-qty {
    position: absolute;
    right: 4px;
    bottom: 3px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #e8d79e;
    text-shadow:
        0 0 2px #000,
        0 1px 2px #000,
        1px 1px 0 #000;
    pointer-events: none;
}

.guide-hero__reward-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    z-index: 8;
    display: block;
    width: max-content;
    max-width: 160px;
    padding: 5px 8px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    color: #ded7c5;
    text-align: center;
    white-space: normal;
    border: 1px solid rgba(var(--ga-accent-rgb), 0.28);
    border-radius: var(--ga-radius-sm);
    background: #090909;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition:
        opacity var(--t-fast) var(--ease-in-out),
        transform var(--t-fast) var(--ease-in-out),
        visibility var(--t-fast) var(--ease-in-out);
}

.guide-hero__reward:hover .guide-hero__reward-tooltip,
.guide-hero__reward:focus-within .guide-hero__reward-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.guide-hero__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.guide-hero__type {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--ga-radius-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.guide-hero__type--quest {
    color: var(--ga-accent);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.guide-hero__type--handbook {
    color: var(--c-green);
    background: rgba(var(--c-green-rgb), 0.12);
    border: 1px solid rgba(var(--c-green-rgb), 0.25);
}

.guide-hero__template {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ga-muted);
    border: 1px dashed var(--ga-border-strong);
    border-radius: var(--ga-radius-sm);
    background: rgba(0, 0, 0, 0.35);
}

.guide-hero__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.08;
    text-transform: uppercase;
    color: #fff8e7;
}

.guide-hero__subtitle {
    margin-top: 12px;
    max-width: 62ch;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ga-muted);
}

.guide-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    padding: 16px 18px;
    border-radius: var(--ga-radius);
    border: 1px solid var(--ga-border);
    background: #0d0d0d;
}

.guide-hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.guide-hero__meta-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6b6b6b;
}

.guide-hero__meta-value {
    font-size: 13px;
    font-weight: 500;
    color: #e5e5e5;
}

.guide-hero__meta-value--mono {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.3px;
}

/* ── Layout shell ── */

.guide-shell {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: clamp(24px, 3.5vw, 36px);
    align-items: start;
}

.guide-aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-md));
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.guide-panel {
    border-radius: var(--ga-radius);
    border: 1px solid var(--ga-border-strong);
    background: var(--ga-surface);
    box-shadow: var(--ga-glow), 0 12px 32px rgba(0, 0, 0, 0.45);
}

.guide-panel__head {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(var(--ga-accent-rgb), 0.16);
}

.guide-panel__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ga-accent);
}

.guide-panel__label::before {
    content: '';
    width: 16px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.guide-panel__body {
    padding: 14px 16px 16px;
}

/* ── Quest route nav (anomaly chain) ── */

.guide-route {
    --route-rail-x: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--ga-accent-rgb), 0.28);
    border-radius: var(--ga-radius);
    background:
        linear-gradient(180deg, rgba(var(--ga-accent-rgb), 0.07) 0%, transparent 28%),
        linear-gradient(145deg, #141210 0%, #0c0c0b 55%, #0a0a09 100%);
    box-shadow:
        inset 0 1px 0 rgba(var(--ga-accent-rgb), 0.08),
        0 16px 40px rgba(0, 0, 0, 0.5);
}

body.guide-theme--handbook .guide-route {
    background:
        linear-gradient(180deg, rgba(var(--ga-accent-rgb), 0.07) 0%, transparent 28%),
        linear-gradient(145deg, #121410 0%, #0b0c0a 55%, #090a08 100%);
}

.guide-route::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 40% at 100% 0%, rgba(var(--ga-accent-rgb), 0.08), transparent 55%),
        repeating-linear-gradient(
            -18deg,
            transparent 0,
            transparent 11px,
            rgba(255, 255, 255, 0.012) 11px,
            rgba(255, 255, 255, 0.012) 12px
        );
    pointer-events: none;
}

.guide-route__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(var(--ga-accent-rgb), 0.16);
}

.guide-route__radar {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.guide-route__radar-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(var(--ga-accent-rgb), 0.35);
    border-radius: 50%;
    animation: guide-route-pulse 2.8s var(--ease-out-expo) infinite;
}

.guide-route__radar-ring:nth-child(2) {
    inset: 6px;
    border-color: rgba(var(--ga-accent-rgb), 0.55);
    animation-delay: 0.45s;
}

.guide-route__radar-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ga-accent);
    box-shadow: 0 0 12px rgba(var(--ga-accent-rgb), 0.65);
    transform: translate(-50%, -50%);
}

.guide-route__head-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.guide-route__kicker {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #f2e6c4;
    line-height: 1.2;
}

.guide-route__track {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 10px 10px 12px;
    max-height: min(68vh, 640px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--ga-accent-rgb), 0.35) transparent;
}

.guide-route__track::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 22px;
    left: calc(10px + var(--route-rail-x));
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(var(--ga-accent-rgb), 0.05),
        rgba(var(--ga-accent-rgb), 0.38) 12%,
        rgba(var(--ga-accent-rgb), 0.22) 88%,
        rgba(var(--ga-accent-rgb), 0.05)
    );
    pointer-events: none;
}

.guide-route__track li {
    position: relative;
}

.guide-route__node {
    position: relative;
    display: grid;
    grid-template-columns: 36px 26px minmax(0, 1fr);
    align-items: center;
    gap: 2px;
    min-height: 38px;
    padding: 6px 8px 6px 0;
    color: #8a8a86;
    text-decoration: none;
    transition:
        color 0.25s var(--ease-out-expo),
        background-color 0.25s var(--ease-out-expo),
        transform 0.25s var(--ease-out-expo);
}

.guide-route__node:hover {
    color: #e8e4d8;
}

.guide-route__node:hover .guide-route__marker {
    border-color: rgba(var(--ga-accent-rgb), 0.7);
    background: rgba(var(--ga-accent-rgb), 0.18);
    transform: translate(-50%, -50%) scale(1.08);
}

.guide-route__marker {
    position: absolute;
    top: 50%;
    left: var(--route-rail-x);
    width: 11px;
    height: 11px;
    border: 1.5px solid rgba(160, 155, 140, 0.45);
    border-radius: 50%;
    background: #12110f;
    box-shadow: 0 0 0 3px #0e0d0b;
    transform: translate(-50%, -50%);
    transition:
        border-color 0.25s var(--ease-out-expo),
        background-color 0.25s var(--ease-out-expo),
        box-shadow 0.25s var(--ease-out-expo),
        transform 0.25s var(--ease-out-expo);
    z-index: 1;
}

.guide-route__index {
    grid-column: 2;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.4px;
    color: #5f5c55;
    transition: color 0.25s var(--ease-out-expo);
}

.guide-route__title {
    grid-column: 3;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.15px;
}

.guide-route__node.is-done {
    color: #c4b89a;
}

.guide-route__node.is-done .guide-route__marker {
    border-color: rgba(var(--ga-accent-rgb), 0.65);
    background: rgba(var(--ga-accent-rgb), 0.55);
    box-shadow:
        0 0 0 3px #0e0d0b,
        0 0 10px rgba(var(--ga-accent-rgb), 0.25);
}

.guide-route__node.is-done .guide-route__index {
    color: rgba(var(--ga-accent-rgb), 0.7);
}

.guide-route__node.active {
    color: #fff6df;
}

.guide-route__node.active .guide-route__marker {
    width: 13px;
    height: 13px;
    border-color: #f0d878;
    background: var(--ga-accent);
    box-shadow:
        0 0 0 3px #0e0d0b,
        0 0 14px rgba(var(--ga-accent-rgb), 0.55);
    animation: guide-route-node 1.8s ease-in-out infinite;
}

.guide-route__node.active .guide-route__index {
    color: var(--ga-accent);
}

.guide-route__node.active .guide-route__title {
    font-weight: 600;
}

.guide-route__node--reward .guide-route__marker {
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.guide-route__node--reward:hover .guide-route__marker,
.guide-route__node--reward.active .guide-route__marker {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.08);
}

.guide-route__node--reward.is-done .guide-route__marker,
.guide-route__node--reward.active .guide-route__marker {
    background: var(--ga-accent);
}

@keyframes guide-route-pulse {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.92);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes guide-route-node {
    0%,
    100% {
        box-shadow:
            0 0 0 3px #0e0d0b,
            0 0 10px rgba(var(--ga-accent-rgb), 0.4);
    }
    50% {
        box-shadow:
            0 0 0 3px #0e0d0b,
            0 0 18px rgba(var(--ga-accent-rgb), 0.75);
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-route__radar-ring,
    .guide-route__node.active .guide-route__marker {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .guide-route__track {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: 4px 8px;
        padding: 12px;
    }

    .guide-route__track::before {
        display: none;
    }

    .guide-route__node {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: var(--ga-radius-sm);
        background: rgba(255, 255, 255, 0.02);
    }

    .guide-route__marker {
        position: static;
        width: 8px;
        height: 8px;
        transform: none;
        box-shadow: none;
    }

    .guide-route__node:hover .guide-route__marker,
    .guide-route__node.active .guide-route__marker {
        transform: none;
    }

    .guide-route__node--reward .guide-route__marker,
    .guide-route__node--reward:hover .guide-route__marker,
    .guide-route__node--reward.active .guide-route__marker {
        transform: rotate(45deg);
    }

    .guide-route__index {
        display: none;
    }

    .guide-route__title {
        grid-column: 2;
    }

    .guide-route__node.active {
        background: rgba(var(--ga-accent-rgb), 0.1);
        border-color: rgba(var(--ga-accent-rgb), 0.35);
    }

    .guide-route__node.is-done {
        border-color: rgba(var(--ga-accent-rgb), 0.18);
        background: rgba(var(--ga-accent-rgb), 0.04);
    }
}

/* ── Aside nav (quest steps / handbook TOC) ── */

.guide-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.guide-nav-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ga-muted);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--ga-radius-sm);
    transition: var(--t-normal) var(--ease-out-expo);
}

.guide-nav-list a:hover {
    color: #e5e5e5;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--ga-border);
}

.guide-nav-list a.active {
    color: #fff8e7;
    background: rgba(var(--ga-accent-rgb), 0.1);
    border-color: rgba(var(--ga-accent-rgb), 0.35);
    box-shadow: inset 3px 0 0 var(--ga-accent);
}

.guide-nav-list__num {
    flex-shrink: 0;
    min-width: 22px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3px;
    color: #6b6b6b;
}

.guide-nav-list a.active .guide-nav-list__num {
    color: var(--ga-accent);
}

.guide-prereq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-prereq-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ga-muted);
    list-style: none;
}

.guide-prereq-list li::before {
    content: '›';
    flex-shrink: 0;
    color: var(--ga-accent);
    font-weight: 700;
}

.guide-prereq-list__mono {
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
}

/* ── Main content ── */

.guide-main {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
}

.guide-section {
    scroll-margin-top: calc(var(--header-h) + var(--space-md));
    padding: clamp(22px, 3vw, 30px);
    border-radius: var(--ga-radius);
    border: 1px solid var(--ga-border-strong);
    background: var(--ga-surface);
    box-shadow: var(--ga-glow), 0 14px 36px rgba(0, 0, 0, 0.45);
}

.guide-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(var(--ga-accent-rgb), 0.16);
}

.guide-section__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff8e7;
}

.guide-section__badge {
    flex-shrink: 0;
    padding: 4px 9px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #6b6b6b;
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius-sm);
    background: #0d0d0d;
}

.guide-prose {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ga-muted);
}

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

.guide-prose h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--c-text);
}

.guide-prose ul,
.guide-prose ol {
    margin-top: 10px;
    padding-left: 1.25em;
}

.guide-prose li + li {
    margin-top: 6px;
}

.guide-requirements {
    margin-top: var(--space-md);
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid rgba(var(--ga-accent-rgb), 0.28);
    border-radius: var(--ga-radius-sm);
    background:
        linear-gradient(135deg, rgba(var(--ga-accent-rgb), 0.09), transparent 55%),
        var(--ga-surface-dense);
    box-shadow: inset 3px 0 0 var(--ga-accent);
}

.guide-requirements__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.guide-prose .guide-requirements__head h3 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1.4px;
    color: var(--ga-accent);
}

.guide-requirements__icon {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    color: var(--ga-accent);
}

.guide-prose .guide-requirements__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.guide-requirements__list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    list-style: none;
    color: var(--c-text-2);
}

.guide-requirements__list li::before {
    content: '✓';
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--ga-accent);
}

/* ── Quest steps (handbook / short quests) ── */

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.guide-step {
    scroll-margin-top: calc(var(--header-h) + var(--space-md));
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--ga-radius);
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: var(--ga-surface-dense);
    box-shadow: var(--ga-glow);
}

.guide-step__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.guide-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--ga-accent);
    border: 1px solid rgba(var(--ga-accent-rgb), 0.35);
    border-radius: var(--ga-radius-sm);
    background: rgba(var(--ga-accent-rgb), 0.1);
}

.guide-step__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--c-text);
}

.guide-step__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ga-muted);
}

.guide-step__media {
    overflow: hidden;
    border-radius: var(--ga-radius-sm);
    border: 1px solid rgba(var(--ga-accent-rgb), 0.2);
    background: rgba(0, 0, 0, 0.45);
    aspect-ratio: 16 / 10;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.guide-step__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.04) brightness(0.78);
}

.guide-step__media.is-empty,
.guide-chain__shot.is-empty,
.guide-hero__visual.is-empty {
    display: none;
}

.guide-step__note {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-text-2);
    border-left: 3px solid rgba(var(--ga-accent-rgb), 0.55);
    border-radius: 0 var(--ga-radius-sm) var(--ga-radius-sm) 0;
    background: rgba(var(--ga-accent-rgb), 0.06);
}

.guide-step__text > .guide-step__note:first-child {
    margin-top: 0;
}

/* ── Anomaly chain (long quest routes) ── */

.guide-chain {
    --chain-pad: 14px;
    --chain-node: 28px;
    --chain-rail-x: calc(var(--chain-pad) + var(--chain-node) / 2);
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
    position: relative;
}

.guide-chain::before {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: var(--chain-rail-x);
    z-index: 0;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(var(--ga-accent-rgb), 0.08),
        rgba(var(--ga-accent-rgb), 0.42) 10%,
        rgba(var(--ga-accent-rgb), 0.22) 90%,
        rgba(var(--ga-accent-rgb), 0.06)
    );
    pointer-events: none;
}

.guide-chain > li {
    position: relative;
    z-index: 1;
}

.guide-chain > li + li {
    margin-top: 8px;
}

.guide-chain__step {
    scroll-margin-top: calc(var(--header-h) + var(--space-md));
    border: 1px solid transparent;
    border-radius: var(--ga-radius);
    background: transparent;
    transition:
        border-color 0.25s var(--ease-out-expo),
        background-color 0.25s var(--ease-out-expo),
        box-shadow 0.25s var(--ease-out-expo);
}

.guide-chain__step[open] {
    --chain-gap: #0a0a09;
    border-color: rgba(160, 155, 140, 0.12);
    background: #0a0a09;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
}

.guide-chain__step--rift[open] {
    border-color: rgba(160, 155, 140, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

.guide-chain__summary {
    display: grid;
    grid-template-columns: var(--chain-node) minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px var(--chain-pad);
    list-style: none;
    cursor: pointer;
    user-select: none;
    border-radius: var(--ga-radius);
    transition: background-color 0.2s var(--ease-out-expo);
}

.guide-chain__summary::-webkit-details-marker {
    display: none;
}

.guide-chain__summary::marker {
    content: '';
}

.guide-chain__step--signal > .guide-chain__summary:hover {
    background: rgba(255, 255, 255, 0.025);
}

.guide-chain__step--rift > .guide-chain__summary:hover {
    background: rgba(var(--ga-accent-rgb), 0.04);
}

.guide-chain__summary:focus-visible {
    outline: 2px solid rgba(var(--ga-accent-rgb), 0.55);
    outline-offset: 2px;
}

.guide-chain__step[open] > .guide-chain__summary {
    border-bottom: 1px solid rgba(160, 155, 140, 0.1);
    border-radius: var(--ga-radius) var(--ga-radius) 0 0;
}

.guide-chain__step--rift[open] > .guide-chain__summary {
    border-bottom-color: rgba(var(--ga-accent-rgb), 0.14);
}

.guide-chain__orbit {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: var(--chain-node);
    height: var(--chain-node);
    border-radius: 50%;
    border: 1px solid rgba(160, 155, 140, 0.42);
    background-color: #0e0d0b;
    background-image: radial-gradient(circle at 50% 40%, #1a1915 0%, #0e0d0b 72%);
    box-shadow:
        0 0 0 4px var(--chain-gap, #0a0a09),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition:
        border-color 0.25s var(--ease-out-expo),
        background-color 0.25s var(--ease-out-expo),
        box-shadow 0.25s var(--ease-out-expo);
}

.guide-chain__orbit::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.guide-chain__index {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #8a867c;
    transition: color 0.25s var(--ease-out-expo);
}

.guide-chain__step--signal .guide-chain__orbit {
    border-color: rgba(160, 155, 140, 0.28);
    background-color: #0c0b0a;
    background-image: radial-gradient(circle at 50% 40%, #15140f 0%, #0c0b0a 72%);
    box-shadow:
        0 0 0 4px var(--chain-gap, #0a0a09),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.guide-chain__step--signal .guide-chain__index {
    color: #6a675f;
}

.guide-chain__step--rift .guide-chain__orbit {
    border-color: rgba(var(--ga-accent-rgb), 0.55);
    background-color: #12100c;
    background-image: radial-gradient(circle at 50% 38%, rgba(var(--ga-accent-rgb), 0.16) 0%, #12100c 68%);
    box-shadow:
        0 0 0 4px var(--chain-gap, #0a0a09),
        inset 0 1px 0 rgba(255, 236, 180, 0.08);
}

.guide-chain__step--rift .guide-chain__index {
    color: #e6d18a;
}

.guide-chain__step--signal > .guide-chain__summary:hover .guide-chain__orbit {
    border-color: rgba(160, 155, 140, 0.42);
}

.guide-chain__step--signal > .guide-chain__summary:hover .guide-chain__index {
    color: #8a867c;
}

.guide-chain__step--rift > .guide-chain__summary:hover .guide-chain__orbit {
    border-color: rgba(var(--ga-accent-rgb), 0.7);
}

.guide-chain__step--rift > .guide-chain__summary:hover .guide-chain__index {
    color: #f0e2b0;
}

.guide-chain__step[open] > .guide-chain__summary .guide-chain__orbit {
    border-color: rgba(160, 155, 140, 0.38);
    background-color: #100f0d;
    background-image: radial-gradient(circle at 50% 40%, #1a1914 0%, #100f0d 72%);
    box-shadow:
        0 0 0 4px var(--chain-gap, #0a0a09),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.guide-chain__step[open] > .guide-chain__summary .guide-chain__index {
    color: #9a968c;
}

.guide-chain__step--rift[open] > .guide-chain__summary .guide-chain__orbit {
    border-color: #e8c96a;
    background-color: #15120c;
    background-image: radial-gradient(circle at 50% 35%, rgba(var(--ga-accent-rgb), 0.28) 0%, #15120c 70%);
    box-shadow:
        0 0 0 4px var(--chain-gap, #0a0a09),
        inset 0 1px 0 rgba(255, 236, 180, 0.14),
        0 0 12px rgba(var(--ga-accent-rgb), 0.22);
    animation: guide-chain-pulse 2.4s ease-in-out infinite;
}

.guide-chain__step--rift[open] > .guide-chain__summary .guide-chain__index {
    color: #fff1c2;
}

.guide-chain__heading {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.guide-chain__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.5vw, 17px);
    font-weight: 700;
    letter-spacing: 0.35px;
    line-height: 1.25;
    color: #e8e4d8;
}

.guide-chain__step[open] .guide-chain__title {
    color: #ddd9cd;
}

.guide-chain__step--rift[open] .guide-chain__title {
    color: #fff8e7;
}

.guide-chain__goal {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.35;
    color: #7d7a72;
}

.guide-chain__step--rift .guide-chain__goal {
    color: #9a9178;
}

.guide-chain__chevron {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #6b6860;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ga-radius-sm);
    background: rgba(255, 255, 255, 0.025);
    transition:
        color 0.2s var(--ease-out-expo),
        border-color 0.2s var(--ease-out-expo),
        background-color 0.2s var(--ease-out-expo);
}

.guide-chain__chevron svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s var(--ease-out-expo);
}

.guide-chain__step--signal > .guide-chain__summary:hover .guide-chain__chevron {
    color: #9a968c;
    border-color: rgba(160, 155, 140, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.guide-chain__step--rift > .guide-chain__summary:hover .guide-chain__chevron {
    color: var(--ga-accent);
    border-color: rgba(var(--ga-accent-rgb), 0.35);
    background: rgba(var(--ga-accent-rgb), 0.08);
}

.guide-chain__step[open] > .guide-chain__summary .guide-chain__chevron svg {
    transform: rotate(180deg);
}

.guide-chain__panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px var(--chain-pad) 16px;
}

.guide-chain__copy {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ga-muted);
}

.guide-chain__copy p {
    margin: 0;
}

.guide-chain__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.guide-chain__media:not(:has(.guide-chain__shot:not(.is-empty))) {
    display: none;
}

.guide-chain__shot {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: var(--ga-radius-sm);
    border: 1px solid rgba(var(--ga-accent-rgb), 0.28);
    background: #0a0908;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.35);
}

.guide-chain__frame {
    background: #080807;
}

.guide-chain__frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: saturate(0.94) contrast(1.04) brightness(0.88);
}

.guide-chain__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 9px 12px 10px;
    border-top: 1px solid rgba(var(--ga-accent-rgb), 0.16);
    background: rgba(0, 0, 0, 0.28);
    text-align: center;
}

.guide-chain__caption p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #b8b4a8;
}

.guide-chain__caption code {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.55px;
    color: #c9b87a;
}

@keyframes guide-chain-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 4px var(--chain-gap, #0a0a09),
            inset 0 1px 0 rgba(255, 236, 180, 0.12),
            0 0 8px rgba(var(--ga-accent-rgb), 0.16);
    }
    50% {
        box-shadow:
            0 0 0 4px var(--chain-gap, #0a0a09),
            inset 0 1px 0 rgba(255, 236, 180, 0.18),
            0 0 14px rgba(var(--ga-accent-rgb), 0.32);
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-chain__step--rift[open] > .guide-chain__summary .guide-chain__orbit {
        animation: none;
    }
}

@media (max-width: 720px) {
    .guide-chain {
        --chain-pad: 12px;
        --chain-node: 26px;
    }

    .guide-chain__summary {
        gap: 10px;
        padding: 10px var(--chain-pad);
    }

    .guide-chain__panel {
        padding: 12px var(--chain-pad) 14px;
    }
}

/* ── Reward panel ── */

.guide-reward {
    border-color: rgba(212, 175, 55, 0.35);
    background: var(--ga-surface);
    box-shadow: var(--ga-glow), 0 14px 36px rgba(0, 0, 0, 0.45);
}

.guide-reward .guide-section__title {
    color: var(--ga-accent);
}

/* Quest reward manifesto */

.guide-reward-manifest {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--ga-accent-rgb), 0.22);
    border-radius: var(--ga-radius);
    background: #0f0f0f;
}

.guide-reward-manifest__totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid rgba(var(--ga-accent-rgb), 0.22);
    background:
        linear-gradient(180deg, rgba(var(--ga-accent-rgb), 0.04) 0%, transparent 70%),
        #0f0f0f;
}

.guide-reward-manifest__total {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    min-width: 0;
}

.guide-reward-manifest__total + .guide-reward-manifest__total {
    border-left: 1px solid rgba(var(--ga-accent-rgb), 0.18);
}

.guide-reward-manifest__total-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a8070;
}

.guide-reward-manifest__total-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: #d4c48a;
}

.guide-reward-manifest__total--xp .guide-reward-manifest__total-value {
    color: #8fbf7a;
}

.guide-reward-manifest__total--money .guide-reward-manifest__total-value {
    color: #d4c48a;
}

.guide-reward-manifest__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-reward-manifest__row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    transition:
        background var(--t-fast) var(--ease-in-out),
        border-color var(--t-fast) var(--ease-in-out);
}

.guide-reward-manifest__row:first-child {
    border-top: none;
}

.guide-reward-manifest__row:hover {
    background: rgba(18, 16, 10, 0.88);
    border-color: rgba(var(--ga-accent-rgb), 0.12);
}

.guide-reward-manifest__slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(var(--ga-accent-rgb), 0.28);
    background:
        linear-gradient(160deg, rgba(var(--ga-accent-rgb), 0.08), transparent 55%),
        rgba(8, 8, 8, 0.72);
}

.guide-reward-manifest__slot img {
    width: 68%;
    height: 68%;
    max-width: 68%;
    max-height: 68%;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
}

.guide-reward-manifest__name {
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #ded7c5;
}

.guide-reward-manifest__qty {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #e8d79e;
    text-align: right;
}

@media (max-width: 560px) {
    .guide-reward-manifest__totals {
        grid-template-columns: 1fr;
    }

    .guide-reward-manifest__total + .guide-reward-manifest__total {
        border-left: none;
        border-top: 1px solid rgba(var(--ga-accent-rgb), 0.18);
    }

    .guide-reward-manifest__row {
        gap: 12px;
        padding: 10px 12px;
    }
}

/* Legacy reward grid (mastak-detector and older quest pages) */

.guide-reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

.guide-reward-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    text-align: center;
    border-radius: var(--ga-radius);
    border: 1px solid rgba(var(--ga-accent-rgb), 0.18);
    background: #0d0d0d;
}

.guide-reward-item__icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ga-radius-sm);
    border: 1px solid var(--ga-accent);
    background: #0d0d0d;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.5),
        inset 0 0 16px rgba(var(--ga-accent-rgb), 0.06);
    overflow: hidden;
}

.guide-reward-item__icon img {
    width: 78%;
    height: 78%;
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
}

.guide-reward-item__name {
    font-size: 11px;
    font-weight: 500;
    color: var(--ga-muted);
}

.guide-reward-item__qty {
    position: absolute;
    right: 4px;
    bottom: 3px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow:
        0 0 2px #000,
        0 1px 2px #000;
}

.guide-reward-summary {
    margin-top: var(--space-md);
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-text-2);
    border-radius: var(--ga-radius);
    border: 1px dashed rgba(var(--ga-accent-rgb), 0.3);
    background: rgba(var(--ga-accent-rgb), 0.05);
}

/* ── Handbook blocks ── */

.guide-media-wide {
    margin: var(--space-md) 0;
    overflow: hidden;
    border-radius: var(--ga-radius);
    border: 1px solid var(--ga-border);
    background: rgba(0, 0, 0, 0.35);
}

.guide-media-wide img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.92) contrast(1.04) brightness(0.8);
}

.guide-shot {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: var(--space-md) 0 0;
    overflow: hidden;
    border-radius: var(--ga-radius-sm);
    border: 1px solid rgba(var(--ga-accent-rgb), 0.28);
    background: #0a0908;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.45),
        0 8px 20px rgba(0, 0, 0, 0.35);
}

.guide-shot__frame {
    background: #080807;
}

.guide-shot__frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: saturate(0.94) contrast(1.04) brightness(0.88);
}

.guide-shot__frame--device {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background:
        radial-gradient(ellipse 50% 45% at 50% 55%, rgba(var(--c-green-rgb), 0.12), transparent 70%),
        #080807;
}

.guide-shot__frame--device img {
    width: min(220px, 48%);
    padding: 28px 0;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}

.guide-shot__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 9px 12px 10px;
    border-top: 1px solid rgba(var(--ga-accent-rgb), 0.16);
    background: rgba(0, 0, 0, 0.28);
    text-align: center;
}

.guide-shot__caption p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: #b8b4a8;
}

.guide-tip {
    display: flex;
    gap: 12px;
    margin-top: var(--space-md);
    padding: 14px 16px;
    border-radius: var(--ga-radius-sm);
    border: 1px solid rgba(var(--ga-accent-rgb), 0.28);
    background:
        linear-gradient(135deg, rgba(var(--ga-accent-rgb), 0.08), transparent 55%),
        var(--ga-surface-dense);
    box-shadow: inset 3px 0 0 var(--ga-accent);
}

.guide-tip__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--ga-accent);
}

.guide-tip__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.guide-tip__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ga-accent);
}

.guide-tip__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--c-text-2);
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.guide-card {
    padding: 16px 18px;
    border-radius: var(--ga-radius-sm);
    border: 1px solid rgba(var(--ga-accent-rgb), 0.22);
    border-left: 2px solid rgba(var(--ga-accent-rgb), 0.55);
    background:
        linear-gradient(145deg, rgba(var(--ga-accent-rgb), 0.06), transparent 55%),
        var(--ga-surface-dense);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

.guide-card__title {
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff8e7;
}

.guide-card__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--c-text-2);
}

/* ── Footer nav ── */

.guide-footer-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--ga-border);
}

.guide-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--c-text-2);
    text-decoration: none;
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius-sm);
    background: rgba(0, 0, 0, 0.32);
    transition: var(--t-normal) var(--ease-out-expo);
}

.guide-back-link:hover {
    color: var(--ga-accent);
    border-color: rgba(var(--ga-accent-rgb), 0.35);
    background: rgba(var(--ga-accent-rgb), 0.08);
}

.guide-back-link svg {
    width: 16px;
    height: 16px;
}

/* ── Responsive ── */

@media (max-width: 1100px) {
    .guide-hero--quest,
    .guide-hero--handbook {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .guide-hero__main {
        gap: 20px;
        padding: 16px 18px;
    }

    .guide-hero--quest .guide-hero__visual,
    .guide-hero--handbook .guide-hero__visual {
        width: 180px;
        min-width: 180px;
        min-height: 220px;
    }

    .guide-hero__rewards,
    .guide-hero__facts {
        padding: 16px 14px 16px 16px;
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .guide-shell {
        grid-template-columns: 1fr;
    }

    .guide-aside {
        position: static;
    }

    .guide-hero__inner {
        grid-template-columns: 1fr;
    }

    .guide-hero__meta {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }

    .guide-hero__meta-item {
        flex: 1 1 140px;
    }
}

@media (max-width: 860px) {
    .guide-hero--quest,
    .guide-hero--handbook {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .guide-hero__main {
        grid-column: 1;
        grid-row: 1;
        border-right: none;
        border-bottom: 1px solid rgba(var(--ga-accent-rgb), 0.22);
    }

    .guide-hero--handbook .guide-hero__main {
        border-bottom-color: rgba(var(--c-green-rgb), 0.28);
    }

    .guide-hero__rewards,
    .guide-hero__facts {
        grid-column: 1;
        grid-row: 2;
        padding: 16px 16px 18px;
        box-shadow: inset 0 1px 0 rgba(var(--ga-accent-rgb), 0.18);
    }

    .guide-hero__facts {
        box-shadow: inset 0 1px 0 rgba(var(--c-green-rgb), 0.18);
    }

    .guide-hero__rewards::before,
    .guide-hero__facts::before {
        top: 0;
        bottom: auto;
        left: 16px;
        right: 16px;
        width: auto;
        height: 2px;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(var(--ga-accent-rgb), 0.7) 18%,
            rgba(var(--ga-accent-rgb), 0.7) 82%,
            transparent
        );
    }

    .guide-hero__facts::before {
        background: linear-gradient(
            90deg,
            transparent,
            rgba(var(--c-green-rgb), 0.7) 18%,
            rgba(var(--c-green-rgb), 0.7) 82%,
            transparent
        );
    }
}

@media (max-width: 640px) {
    .guide-hero__main {
        flex-direction: column;
        gap: 16px;
        padding: 14px;
    }

    .guide-hero--quest .guide-hero__visual,
    .guide-hero--handbook .guide-hero__visual {
        width: 100%;
        min-width: 0;
        min-height: 180px;
        max-height: 200px;
    }

    .guide-hero--quest .guide-hero__visual img,
    .guide-hero--handbook .guide-hero__visual img {
        max-height: 200px;
    }

    .guide-hero--quest .guide-hero__title,
    .guide-hero--handbook .guide-hero__title {
        font-size: clamp(24px, 7vw, 32px);
    }

    .guide-hero__rewards-head {
        flex-wrap: wrap;
        align-items: center;
    }

    .guide-hero__reward-stats {
        justify-content: flex-start;
    }
}

