:root {
    --history-panel: rgba(10, 15, 23, 0.88);
    --history-panel-light: rgba(18, 27, 38, 0.82);
    --history-border: rgba(125, 190, 207, 0.20);
    --history-cyan: #74d5e7;
    --history-cyan-light: #b2f0fa;
    --history-gold: #c6a46c;
    --history-muted: #a4b0ba;
}

html {
    scroll-behavior: smooth;
}

body.history-page {
    min-height: 100vh;
    background: #080b10;
}

.history-site {
    min-height: 100vh;
}

.history-header .xiv-header-inner {
    min-height: 70px;
}

.history-header .favicon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.history-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 10vw, 125px) 0 75px;
    border-bottom: 1px solid rgba(116, 213, 231, 0.14);
    background:
        radial-gradient(ellipse at 75% 20%, rgba(64, 151, 174, 0.16), transparent 45%),
        linear-gradient(180deg, rgba(5, 9, 15, 0.55), rgba(5, 9, 15, 0.90));
}

.history-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 100px;
    background: linear-gradient(transparent, #080b10);
    pointer-events: none;
}

.history-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    text-align: center;
}

.history-hero .xiv-eyebrow {
    justify-content: center;
}

.history-hero h1 {
    margin: 0;
    color: #f3f5f6;
    font-family: 'Cinzel', serif;
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 1px;
    text-shadow: 0 5px 35px rgba(0, 0, 0, 0.7);
}

.history-hero h1 span {
    display: block;
    margin-top: 12px;
    color: var(--history-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(13px, 2vw, 19px);
    font-weight: 400;
    letter-spacing: clamp(3px, 0.8vw, 8px);
    text-transform: uppercase;
}

.history-hero-description {
    max-width: 690px;
    margin: 25px auto 0;
    color: #bac7ce;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.9;
}

.history-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.history-meta-chip {
    padding: 9px 13px;
    border: 1px solid var(--history-border);
    border-radius: 4px;
    background: rgba(10, 15, 23, 0.55);
    color: #aebdc5;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.history-meta-chip strong {
    color: var(--history-cyan);
    font-weight: 500;
}

.history-main {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
    padding: 75px 0 90px;
}

.history-intro {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.history-intro h2 {
    margin: 0;
    color: #edf2f4;
    font-family: 'Cinzel', serif;
    font-size: clamp(27px, 4vw, 39px);
    font-weight: 500;
}

.history-intro p {
    margin: 16px 0 0;
    color: var(--history-muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.9;
}

.history-divider {
    width: 100px;
    height: 1px;
    margin: 23px auto 0;
    background: linear-gradient(90deg, transparent, var(--history-cyan), transparent);
}

.history-timeline {
    position: relative;
    display: grid;
    gap: 18px;
}

.history-timeline::before {
    content: "";
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 28px;
    width: 1px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(116, 213, 231, 0.48) 8%,
        rgba(116, 213, 231, 0.20) 90%,
        transparent
    );
}

.history-entry {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
}

.history-marker {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 25px;
}

.history-marker span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(116, 213, 231, 0.55);
    border-radius: 50%;
    background: #0a1119;
    color: var(--history-cyan);
    font-family: 'Cinzel', serif;
    font-size: 13px;
    box-shadow: 0 0 18px rgba(116, 213, 231, 0.08);
}

.history-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 26px 30px 25px;
    border: 1px solid var(--history-border);
    border-radius: 7px;
    background:
        radial-gradient(ellipse at 100% 0, rgba(116, 213, 231, 0.045), transparent 48%),
        linear-gradient(135deg, rgba(16, 25, 36, 0.94), rgba(7, 12, 20, 0.96));
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.history-card:hover {
    border-color: rgba(116, 213, 231, 0.48);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.history-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--history-cyan);
    opacity: 0.65;
}

.history-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.history-year {
    color: var(--history-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.history-category {
    padding: 6px 9px;
    border: 1px solid rgba(198, 164, 108, 0.25);
    border-radius: 3px;
    color: #c6b18c;
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: right;
    text-transform: uppercase;
}

.history-card h3 {
    margin: 14px 0 7px;
    color: #f0f4f6;
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 500;
    line-height: 1.3;
}

.history-game {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--history-cyan);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
}

.history-game::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 1px;
    background: rgba(116, 213, 231, 0.65);
}

.history-card p {
    max-width: 850px;
    margin: 18px 0 0;
    color: #b1bec6;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.9;
}

.history-closing {
    position: relative;
    overflow: hidden;
    margin-top: 55px;
    padding: 34px 30px;
    border: 1px solid rgba(116, 213, 231, 0.20);
    border-radius: 7px;
    background:
        radial-gradient(ellipse at 100% 0, rgba(116, 213, 231, 0.09), transparent 55%),
        rgba(10, 15, 23, 0.82);
    text-align: center;
}

.history-closing-symbol {
    margin-bottom: 13px;
    color: var(--history-cyan);
    font-family: 'Cinzel', serif;
    font-size: 25px;
}

.history-closing h2 {
    margin: 0;
    color: #edf2f4;
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 500;
}

.history-closing p {
    max-width: 650px;
    margin: 13px auto 0;
    color: var(--history-muted);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.9;
}

.history-footer {
    position: relative;
    z-index: 2;
    padding: 23px 20px;
    border-top: 1px solid rgba(116, 213, 231, 0.12);
    background: rgba(5, 9, 15, 0.85);
    color: #82929c;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

.history-footer a {
    color: var(--history-cyan);
    transition: color .2s ease;
}

.history-footer a:hover {
    color: var(--history-cyan-light);
}

@media (max-width: 600px) {
    .history-hero-inner,
    .history-main {
        width: calc(100% - 30px);
    }

    .history-hero {
        padding: 65px 0 55px;
    }

    .history-hero-description {
        font-size: 13px;
    }

    .history-main {
        padding: 55px 0 65px;
    }

    .history-intro {
        margin-bottom: 35px;
    }

    .history-timeline {
        gap: 13px;
    }

    .history-timeline::before {
        left: 17px;
    }

    .history-entry {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .history-marker {
        padding-top: 21px;
    }

    .history-marker span {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .history-card {
        padding: 21px 19px 22px;
    }

    .history-card-top {
        flex-direction: column;
        gap: 10px;
    }

    .history-category {
        align-self: flex-start;
        text-align: left;
    }

    .history-card h3 {
        margin-top: 15px;
    }

    .history-closing {
        margin-top: 35px;
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .history-card {
        transition: none;
    }
}
