/* Eltaris — strona chronologii */

.homepage--chronologia .content {
    min-height: 100vh;
}

.homepage--chronologia .background__overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 28%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.88) 75%,
        #000 92%
    );
}

.chronologia-hero {
    text-align: center;
    padding: clamp(0.75rem, 2vh, 1.5rem) 1.5rem 0;
}

.chronologia-hero__title {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: clamp(1.35rem, 2.8vw, 2.1rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.chronologia-hero__quote {
    margin: 0.55rem auto 0;
    max-width: 560px;
    font-family: "Cinzel", serif;
    font-style: italic;
    font-size: clamp(0.8rem, 1.3vw, 0.95rem);
    color: rgba(255, 255, 255, 0.82);
}

.chronologia {
    flex: 1;
    width: min(760px, 92vw);
    margin: 0 auto;
    padding: clamp(1.25rem, 3vh, 2rem) 0 clamp(1.5rem, 4vh, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chronologia__body {
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.chronologia__body h2 {
    margin: 1.75rem 0 0.65rem;
    font-family: "Cinzel", serif;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.chronologia__body h2:first-child {
    margin-top: 0;
}

.chronologia__body h3 {
    margin: 1.1rem 0 0.45rem;
    font-family: "Cinzel", serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.85);
}

.chronologia__body p {
    margin: 0 0 1rem;
}

.chronologia__body p:last-child {
    margin-bottom: 0;
}

.chronologia__epigraph {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid rgba(212, 175, 55, 0.45);
    font-family: "Cinzel", serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.78);
}

.chronologia__epigraph cite {
    display: block;
    margin-top: 0.45rem;
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.chronologia__divider {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.chronologia__highlight {
    margin: 0.65rem 0 1rem;
    padding: 0.75rem 1rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    font-family: "Cinzel", serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--gold-light);
    text-align: center;
}

.chronologia__list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.chronologia__list li {
    margin-bottom: 0.35rem;
}

.chronologia__examples {
    margin: 0 0 1rem;
    padding-left: 0;
    list-style: none;
}

.chronologia__examples li {
    padding: 0.2rem 0;
    font-family: "Cinzel", serif;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
}

.chronologia__present {
    margin-top: 0.5rem;
    padding: 1rem 1.1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.chronologia__present p {
    margin-bottom: 0.5rem;
}

.chronologia__present p:last-child {
    margin-bottom: 0;
}

.mity__library {
    width: 100%;
    max-width: 720px;
    margin: clamp(1.5rem, 3vh, 2rem) auto 0;
    padding: 0;
}

.mity__library img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 6px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(212, 175, 55, 0.05);
}

/* --- Myths & Legends — tylko grafika biblioteki, bez tła strony --- */

.homepage--mity {
    background: #080604;
}

.homepage--mity .content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.homepage--mity .mity-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(0.5rem, 2vh, 1.25rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 3vh, 2rem);
}

.homepage--mity .mity__library {
    position: relative;
    width: 100%;
    max-width: min(920px, 96vw);
    margin: 0 auto;
}

.homepage--mity .mity__library img {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.mity__hits {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.mity__hit {
    position: absolute;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mity__hit:hover,
.mity__hit.is-active {
    border-color: rgba(232, 201, 106, 0.75);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
}

.scroll-view {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(0, 0, 0, 0.88);
}

.scroll-view[hidden] {
    display: none;
}

body.scroll-view-open {
    overflow: hidden;
}

.scroll-view__close {
    position: absolute;
    top: clamp(0.75rem, 2vh, 1.25rem);
    right: clamp(0.75rem, 2vw, 1.25rem);
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 50%;
    background: rgba(8, 6, 4, 0.85);
    color: var(--gold-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.scroll-view__panel {
    width: min(920px, 96vw);
    text-align: center;
}

.scroll-view__title {
    margin: 0 0 1rem;
    font-family: "Cinzel", serif;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.scroll-view__parchment {
    position: relative;
    width: 100%;
}

.scroll-view__img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.scroll-view--deity .scroll-view__panel {
    width: min(720px, 92vw);
}

.scroll-view--deity .scroll-view__title {
    margin-bottom: 0.75rem;
}

.scroll-view--deity .scroll-view__parchment {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: min(82vh, 860px);
}

.scroll-view__parchment--has-bg {
    width: 100%;
    aspect-ratio: 3 / 2;
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.scroll-view__img--deity {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 58%;
    max-height: min(72vh, 720px);
    height: auto;
    object-fit: contain;
    border: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.scroll-view__teaser[hidden],
.scroll-view__text[hidden] {
    display: none !important;
}

.scroll-view__teaser {
    position: absolute;
    left: 19%;
    right: 19%;
    top: 21%;
    bottom: 21%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.scroll-view__teaser-btn {
    margin: 0;
    padding: 0.35rem 0.5rem;
    border: none;
    background: none;
    font-family: "Cinzel", serif;
    font-size: clamp(0.9rem, 1.8vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d2810;
    line-height: 1.35;
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.scroll-view__teaser-btn:hover,
.scroll-view__teaser-btn:focus-visible {
    color: #5a3d1c;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
    outline: none;
}

.scroll-view__text {
    position: absolute;
    left: 20%;
    right: 20%;
    top: 22%;
    bottom: 22%;
    overflow-y: auto;
    text-align: center;
    padding: 0.35rem 0.65rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 58, 24, 0.45) transparent;
}

.scroll-view__text::-webkit-scrollbar {
    width: 5px;
}

.scroll-view__text::-webkit-scrollbar-thumb {
    background: rgba(92, 58, 24, 0.45);
    border-radius: 4px;
}

.scroll-view__byline {
    margin: 0 0 1rem;
    font-family: "Cinzel", serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(0.72rem, 1.2vw, 0.88rem);
    line-height: 1.5;
    color: #2a1808;
    text-shadow: 0 1px 0 rgba(255, 244, 220, 0.45);
}

.scroll-view__body {
    font-family: "Lato", sans-serif;
    font-size: clamp(0.78rem, 1.25vw, 0.95rem);
    font-weight: 400;
    line-height: 1.7;
    color: #1a0f06;
    text-align: left;
    text-shadow: 0 1px 0 rgba(255, 244, 220, 0.5);
}

.scroll-view__body p {
    margin: 0 0 0.7rem;
}

.scroll-view__body p:last-child {
    margin-bottom: 0;
}

.scroll-view__body blockquote {
    margin: 0.5rem 0 0.85rem;
    padding: 0.35rem 0.75rem;
    border-left: 2px solid rgba(92, 58, 24, 0.45);
    font-style: italic;
}

.scroll-view__body blockquote strong {
    font-weight: 700;
    font-style: italic;
}

.scroll-view__link {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.scroll-view__link:hover,
.scroll-view__link:focus-visible {
    color: #5a3d1c;
    outline: none;
}
