:root {
    --night-blue: #06131d;
    --deep-blue: #0a2230;
    --ocean-blue: #123d50;
    --gold: #c9a45d;
    --light-gold: #e0c27f;
    --leather: #3b1f13;
    --dark-leather: #211008;
    --paper: #d8c18f;
    --paper-light: #ead8ad;
    --ink: #372718;
    --cream: #f1e6ca;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--night-blue);
    color: var(--cream);
    font-family: "Cormorant Garamond", serif;
}

button,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

.ocean-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            rgba(3, 17, 27, 0.72),
            rgba(3, 17, 27, 0.93)
        ),
        radial-gradient(
            circle at 50% 18%,
            rgba(83, 132, 143, 0.45),
            transparent 34%
        ),
        repeating-linear-gradient(
            170deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 2px,
            transparent 2px,
            transparent 14px
        ),
        linear-gradient(
            180deg,
            #132e3a 0%,
            #071722 48%,
            #02080d 100%
        );
}

.ocean-background::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background:
        repeating-radial-gradient(
            ellipse at 50% 100%,
            rgba(117, 178, 186, 0.08) 0,
            rgba(117, 178, 186, 0.08) 3px,
            transparent 4px,
            transparent 25px
        );
    opacity: 0.8;
}

.fog {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at 10% 40%,
            rgba(255, 255, 255, 0.07),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 90% 55%,
            rgba(255, 255, 255, 0.05),
            transparent 35%
        );
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 76px;
    padding: 14px clamp(20px, 5vw, 80px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: rgba(4, 17, 26, 0.9);
    border-bottom: 1px solid rgba(201, 164, 93, 0.32);
    backdrop-filter: blur(14px);
}

.brand {
    color: var(--light-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-family: "IM Fell English", serif;
    font-size: 1.6rem;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-navigation a,
.navigation-button {
    border: 0;
    background: transparent;
    color: var(--cream);
    text-decoration: none;
    font-size: 1rem;
}

.main-navigation a:hover,
.navigation-button:hover {
    color: var(--light-gold);
}

.hero-section {
    width: min(1240px, 92%);
    min-height: 620px;
    margin: 0 auto;
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 70px;
}

.hero-label,
.section-label {
    margin-bottom: 14px;
    color: var(--light-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
}

.hero-text h1 {
    max-width: 700px;
    font-family: "IM Fell English", serif;
    font-size: clamp(3.2rem, 7vw, 6.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 0.95;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

.hero-description {
    max-width: 650px;
    margin-top: 30px;
    color: #d8d1bd;
    font-size: 1.4rem;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 35px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.payment-button,
.publish-button,
.open-book-button,
.small-control-button {
    border-radius: 4px;
    padding: 13px 24px;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button,
.publish-button,
.open-book-button {
    border: 1px solid var(--light-gold);
    background: var(--gold);
    color: #1d1109;
    font-weight: 700;
}

.secondary-button,
.small-control-button {
    border: 1px solid rgba(224, 194, 127, 0.6);
    background: rgba(7, 28, 39, 0.7);
    color: var(--cream);
}

.payment-button {
    border: 1px solid var(--light-gold);
    background: transparent;
    color: var(--light-gold);
}

.primary-button:hover,
.secondary-button:hover,
.payment-button:hover,
.publish-button:hover,
.open-book-button:hover,
.small-control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.28);
}

.captain-frame {
    position: relative;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 14px;
    background: linear-gradient(
        145deg,
        #b99553,
        #5d3c1a 42%,
        #d2b36e 70%,
        #4b2c14
    );
    border-radius: 48% 48% 12px 12px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55),
        inset 0 0 0 4px rgba(255, 234, 179, 0.25);
}

.captain-frame::before {
    content: "";
    position: absolute;
    inset: -22px;
    z-index: -1;
    border: 1px solid rgba(224, 194, 127, 0.22);
    border-radius: 48% 48% 18px 18px;
}

.captain-frame img {
    display: block;
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    object-position: top center;
    border-radius: 48% 48% 6px 6px;
    filter: sepia(0.24) contrast(1.06);
}

.diary-section {
    padding: 90px 20px 110px;
    background:
        linear-gradient(
            rgba(3, 12, 18, 0.28),
            rgba(3, 12, 18, 0.82)
        );
}

.section-heading {
    margin-bottom: 45px;
    text-align: center;
}

.section-heading p {
    color: var(--light-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.section-heading h2 {
    margin: 8px 0;
    font-family: "IM Fell English", serif;
    font-size: clamp(2.7rem, 5vw, 4.7rem);
    font-style: italic;
    font-weight: 400;
}

.section-heading span {
    color: #bcb6a5;
    font-size: 1.1rem;
}

.diary-area {
    width: min(1300px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    align-items: center;
    gap: 18px;
}

.book {
    position: relative;
    min-height: 670px;
    perspective: 1800px;
}

.book-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    margin: auto;
    width: min(620px, 94%);
    min-height: 670px;
    padding: 28px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(255, 255, 255, 0.08),
            transparent 20%
        ),
        repeating-linear-gradient(
            95deg,
            rgba(255, 255, 255, 0.018) 0,
            rgba(255, 255, 255, 0.018) 2px,
            transparent 2px,
            transparent 7px
        ),
        linear-gradient(
            135deg,
            #50301e,
            #251108 58%,
            #140905
        );
    border: 6px solid #170b06;
    border-radius: 12px 22px 22px 12px;
    box-shadow:
        22px 30px 60px rgba(0, 0, 0, 0.65),
        inset 0 0 0 4px #654326,
        inset 0 0 45px rgba(0, 0, 0, 0.75);
    transition:
        transform 1s ease,
        opacity 0.7s ease;
    transform-origin: left center;
}

.book-cover.opening {
    transform: rotateY(-115deg);
    opacity: 0;
    pointer-events: none;
}

.cover-border {
    width: 100%;
    min-height: 590px;
    padding: 65px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(212, 177, 102, 0.72);
    outline: 1px solid rgba(212, 177, 102, 0.35);
    outline-offset: -12px;
    text-align: center;
}

.cover-ornament {
    margin-bottom: 18px;
    color: var(--light-gold);
    font-size: 4rem;
    filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.5));
}

.cover-small-title {
    color: var(--light-gold);
    text-transform: uppercase;
    letter-spacing: 7px;
}

.cover-border h2 {
    margin-top: 30px;
    color: #e3c98b;
    font-family: "IM Fell English", serif;
    font-size: clamp(3rem, 7vw, 5.7rem);
    font-style: italic;
    font-weight: 400;
    line-height: 0.95;
    text-shadow: 0 5px 6px rgba(0, 0, 0, 0.65);
}

.cover-line {
    width: 120px;
    height: 1px;
    margin: 34px 0;
    background: var(--gold);
}

.cover-subtitle {
    max-width: 350px;
    color: #d5c399;
    font-size: 1.2rem;
    line-height: 1.5;
}

.open-book-button {
    margin-top: 38px;
}

.open-pages {
    position: relative;
    min-height: 670px;
    display: grid;
    grid-template-columns: 1fr 24px 1fr;
    overflow: visible;
    filter: drop-shadow(0 28px 35px rgba(0, 0, 0, 0.62));
}

.paper-page {
    position: relative;
    min-width: 0;
    min-height: 670px;
    overflow: hidden;
    padding: 62px 58px 52px;
    color: var(--ink);
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(89, 49, 19, 0.16),
            transparent 14%
        ),
        radial-gradient(
            circle at 91% 84%,
            rgba(92, 51, 15, 0.13),
            transparent 18%
        ),
        repeating-linear-gradient(
            0deg,
            rgba(98, 62, 27, 0.02) 0,
            rgba(98, 62, 27, 0.02) 1px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(
            100deg,
            #cdb582,
            #ead8ad 15%,
            #e5d0a1 80%,
            #b99b63
        );
    border: 1px solid rgba(61, 36, 16, 0.6);
    box-shadow:
        inset 0 0 42px rgba(70, 39, 15, 0.23);
}

.left-page {
    border-radius: 14px 3px 3px 14px;
}

.right-page {
    border-radius: 3px 14px 14px 3px;
}

.left-page::before,
.right-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
}

.left-page::before {
    background:
        linear-gradient(
            90deg,
            rgba(74, 41, 16, 0.2),
            transparent 10%
        );
}

.right-page::before {
    background:
        linear-gradient(
            -90deg,
            rgba(74, 41, 16, 0.2),
            transparent 10%
        );
}

.paper-stains {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 15% 75%,
            rgba(98, 56, 20, 0.1),
            transparent 5%
        ),
        radial-gradient(
            circle at 80% 14%,
            rgba(98, 56, 20, 0.09),
            transparent 7%
        ),
        radial-gradient(
            circle at 65% 92%,
            rgba(98, 56, 20, 0.06),
            transparent 8%
        );
}

.page-binding {
    position: relative;
    z-index: 3;
    background:
        linear-gradient(
            90deg,
            rgba(37, 18, 8, 0.9),
            #76502b 35%,
            #2d1609 55%,
            #805d35 80%,
            rgba(32, 15, 7, 0.95)
        );
    box-shadow:
        inset 7px 0 10px rgba(0, 0, 0, 0.5),
        inset -7px 0 10px rgba(0, 0, 0, 0.5);
}

.page-content {
    position: relative;
    z-index: 2;
    height: 100%;
    overflow: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: "IM Fell English", serif;
    font-size: clamp(1.05rem, 1.4vw, 1.32rem);
    line-height: 1.68;
    letter-spacing: 0.015em;
}

.page-entry-date {
    margin-bottom: 28px;
    color: #69492e;
    text-align: right;
    font-style: italic;
    font-size: 0.94em;
}

.page-entry-title {
    margin-bottom: 22px;
    font-size: 1.55em;
    font-weight: 400;
    font-style: italic;
}

.page-number {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    color: #735435;
    font-style: italic;
}

.book-spine {
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 50%;
    z-index: 8;
    width: 10px;
    pointer-events: none;
    transform: translateX(-50%);
    background: rgba(38, 20, 10, 0.25);
    filter: blur(6px);
}







.page-arrow {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(224, 194, 127, 0.55);
    border-radius: 50%;
    background: rgba(4, 21, 31, 0.82);
    color: var(--light-gold);
    font-size: 2.7rem;
    line-height: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.diary-controls {
    width: min(1000px, 94%);
    margin: 28px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

#pageIndicator {
    min-width: 130px;
    text-align: center;
    color: #d6ceb8;
}

.locked-page {
    position: absolute;
    inset: 0;
    z-index: 12;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 17px;
    color: var(--cream);
    text-align: center;
    background:
        linear-gradient(
            rgba(18, 11, 7, 0.87),
            rgba(18, 11, 7, 0.95)
        );
    backdrop-filter: blur(5px);
}

.lock-symbol {
    font-size: 3rem;
}

.locked-page h3 {
    color: var(--light-gold);
    font-size: 2rem;
}

.locked-page p {
    max-width: 320px;
    font-size: 1.15rem;
    line-height: 1.5;
}

.author-studio {
    width: min(1150px, 92%);
    margin: 0 auto;
    padding: 100px 0;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 65px;
    align-items: start;
}

.author-introduction h2 {
    margin-bottom: 22px;
    font-family: "IM Fell English", serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-style: italic;
    font-weight: 400;
}

.author-introduction p:last-child {
    color: #c8c2b1;
    font-size: 1.22rem;
    line-height: 1.65;
}

.writing-desk {
    padding: 30px;
    background:
        linear-gradient(
            135deg,
            rgba(68, 39, 20, 0.97),
            rgba(25, 13, 7, 0.98)
        );
    border: 1px solid rgba(203, 163, 89, 0.42);
    border-radius: 8px;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.48),
        inset 0 0 30px rgba(0, 0, 0, 0.42);
}

.writing-desk label {
    display: block;
    margin-bottom: 14px;
    color: var(--light-gold);
    font-size: 1.28rem;
}

#testoUtente {
    width: 100%;
    min-height: 340px;
    padding: 32px;
    resize: vertical;
    outline: none;
    color: var(--ink);
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(103, 70, 34, 0.13) 31px
        ),
        linear-gradient(
            100deg,
            #dfcca0,
            #f0e0b8,
            #d4ba84
        );
    border: 1px solid #6c4c2d;
    border-radius: 3px;
    font-family: "IM Fell English", serif;
    font-size: 1.25rem;
    line-height: 1.55;
    box-shadow: inset 0 0 27px rgba(69, 38, 13, 0.18);
}

#testoUtente:focus {
    border-color: var(--light-gold);
    box-shadow:
        inset 0 0 27px rgba(69, 38, 13, 0.18),
        0 0 0 3px rgba(203, 163, 89, 0.12);
}

.writing-toolbar {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

#saveStatus {
    color: #c8c0ae;
}

.pandora-world {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 20px 0 110px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.world-card {
    min-height: 260px;
    padding: 32px 26px;
    background:
        linear-gradient(
            rgba(11, 37, 49, 0.94),
            rgba(5, 20, 29, 0.96)
        );
    border: 1px solid rgba(201, 164, 93, 0.25);
    border-radius: 7px;
    text-align: center;
}

.world-card span {
    display: block;
    margin-bottom: 22px;
    font-size: 2.7rem;
}

.world-card h3 {
    margin-bottom: 14px;
    color: var(--light-gold);
    font-size: 1.45rem;
}

.world-card p {
    color: #c3beaf;
    font-size: 1.05rem;
    line-height: 1.55;
}

.site-footer {
    padding: 60px clamp(24px, 6vw, 90px) 24px;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 45px;
    background: #02080d;
    border-top: 1px solid rgba(201, 164, 93, 0.3);
}

.footer-column h3 {
    margin-bottom: 18px;
    color: var(--light-gold);
    font-family: "IM Fell English", serif;
    font-size: 1.45rem;
}

.footer-column p {
    max-width: 360px;
    color: #a9a596;
    line-height: 1.6;
}

.footer-column a,
.footer-link {
    display: block;
    margin-bottom: 11px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #bcb7a8;
    text-decoration: none;
    text-align: left;
}

.footer-column a:hover,
.footer-link:hover {
    color: var(--light-gold);
}

.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(201, 164, 93, 0.18);
    color: #77766f;
    text-align: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 20px;
    display: grid;
    place-items: center;
    background: rgba(0, 5, 9, 0.82);
    backdrop-filter: blur(7px);
}

.modal-window {
    position: relative;
    width: min(500px, 100%);
    padding: 42px;
    color: var(--ink);
    background:
        linear-gradient(
            110deg,
            #e4d1a7,
            #f0dfb9,
            #ceb17c
        );
    border: 7px solid #3a2112;
    border-radius: 7px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    border: 0;
    background: transparent;
    color: #4a2f1a;
    font-size: 2rem;
}

.modal-window h2 {
    margin-bottom: 18px;
    font-family: "IM Fell English", serif;
    font-size: 2.3rem;
    font-style: italic;
}

.modal-window p {
    margin-bottom: 20px;
    line-height: 1.55;
}

.modal-window input {
    width: 100%;
    margin-bottom: 14px;
    padding: 13px;
    border: 1px solid #755434;
    background: rgba(255, 250, 231, 0.72);
}

.modal-window button:not(.close-modal) {
    margin-top: 8px;
    padding: 12px 20px;
    border: 1px solid #65421f;
    background: #6e461f;
    color: white;
}

.hidden {
    display: none !important;
}

@media (max-width: 1050px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .captain-frame {
        max-width: 350px;
    }

    .paper-page {
        padding: 50px 38px;
    }

    .author-studio {
        grid-template-columns: 1fr;
    }

    .pandora-world {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .top-header {
        position: relative;
        flex-direction: column;
    }

    .main-navigation {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-section {
        padding-top: 50px;
    }

    .diary-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .diary-area {
        position: relative;
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
        padding: 0 8px;

        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: center;
        align-items: center;
    }

    .book {
        width: 100%;
        max-width: 700px;
        min-width: 0;
        min-height: 650px;
        margin: 0 auto;
    }

    .open-pages {
        width: 100%;
        display: block;
        margin: 0 auto;
    }

    .left-page {
        display: none;
    }

    .page-binding {
        display: none;
    }

    .right-page {
        width: 100%;
        min-width: 0;
        min-height: 650px;
        margin: 0 auto;
        padding: 50px 42px;
        border-radius: 12px;
    }

    .page-content {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .page-arrow {
        position: absolute;
        top: 50%;
        z-index: 30;
        width: 48px;
        height: 48px;
        transform: translateY(-50%);
        font-size: 2.2rem;
    }

    .page-arrow-left {
        left: 14px;
    }

    .page-arrow-right {
        right: 14px;
    }

    .book-cover {
        width: 100%;
        min-height: 650px;
        margin: 0 auto;
    }

    .new-book-cover-image {
        width: 100%;
        height: auto;
        max-height: 650px;
        object-fit: contain;
    }


    .writing-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pandora-world {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) and (max-width: 1250px) {

    .diary-area {
        width: min(1100px, 100%);
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 12px;

        margin: 0 auto;
        padding: 0 16px;
    }

    .book {
        width: 100%;
        max-width: 900px;
        min-width: 0;

        margin: 0 auto;
    }

    .open-pages,
    .book-cover {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .paper-page {
        min-height: 610px;
        padding: 46px 28px;
    }

    .book,
    .book-cover {
        min-height: 610px;
    }

    .cover-border {
        min-height: 525px;
        padding: 45px 25px;
    }

    .author-studio {
        width: 94%;
    }

    .writing-desk {
        padding: 18px;
    }

    #testoUtente {
        padding: 22px;
    }
}
.language-selector {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(224, 194, 127, 0.45);
    border-radius: 5px;
    background: rgba(3, 17, 27, 0.72);
}

.language-icon {
    font-size: 1rem;
}

.language-selector select {
    border: none;
    outline: none;
    cursor: pointer;
    background: transparent;
    color: var(--cream);
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
}

.language-selector select option {
    background: #06131d;
    color: white;
}
.world-card-button {
    width: 100%;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
}

.world-card-button strong {
    display: block;
    margin-top: 22px;
    color: var(--light-gold);
    font-weight: 600;
}

.world-card-button:hover {
    transform: translateY(-5px);
    border-color: rgba(224, 194, 127, 0.65);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.author-session-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    border: 1px solid rgba(224, 194, 127, 0.35);
    background: rgba(6, 19, 29, 0.82);
}

#loggedAuthorEmail {
    color: var(--light-gold);
}

.modal-text-button {
    display: block;
    margin-top: 16px !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #67431f !important;
    text-decoration: underline;
}

.modal-message {
    min-height: 24px;
    margin-top: 16px;
    color: #5b281e;
    font-weight: 600;
}







/* =========================================
   NUOVA COPERTINA FOTOGRAFICA DEL DIARIO
========================================= */

.book {
    position: relative;
    min-width: 0;
}

/*
 * La copertina resta sovrapposta alle pagine.
 * Non occupa spazio separato e conserva
 * l'animazione gestita dalla classe .opening.
 */
.book-cover {
    position: absolute;
    inset: 0;
    z-index: 15;

    width: 100%;
    min-width: 0;
    min-height: 670px;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    background-image: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;

    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg);
    transform-origin: left center;

    transition:
        transform 1s ease,
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.book-cover.opening {
    transform: rotateY(-115deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.book-cover::before,
.book-cover::after {
    display: none;
    content: none;
}

.new-book-cover-image {
    display: block;

    width: 100%;
    max-width: 100%;
    height: 670px;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center;

    border: 0;
    border-radius: 12px;
    background: transparent;

    cursor: pointer;
    user-select: none;

    filter:
        drop-shadow(0 25px 32px rgba(0, 0, 0, 0.58))
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34));

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.new-book-cover-image:hover {
    transform: translateY(-3px) scale(1.008);

    filter:
        drop-shadow(0 30px 38px rgba(0, 0, 0, 0.64))
        drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
}

.new-book-cover-image:focus-visible {
    outline: 2px solid #d5b360;
    outline-offset: 6px;
}

.open-pages {
    position: relative;
    z-index: 1;

    width: 100%;
    min-width: 0;
    min-height: 670px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        24px
        minmax(0, 1fr);

    overflow: visible;

    filter:
        drop-shadow(0 28px 35px rgba(0, 0, 0, 0.62));
}

.diary-controls {
    justify-content: center;
    gap: 28px;
}

/* Elementi della vecchia copertina e vecchi segnalibri */

.book-spine,
.cover-border,
.cover-ornament,
.cover-small-title,
.cover-line,
.cover-subtitle,
.open-book-button {
    display: none !important;
}


/* =========================================
   RESPONSIVE GENERALE
========================================= */

@media screen and (max-width: 1050px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .captain-frame {
        max-width: 350px;
    }

    .author-studio {
        grid-template-columns: 1fr;
    }

    .pandora-world {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================
   NOTEBOOK E TABLET: DUE PAGINE
   Da 901 px a 1250 px
========================================= */

@media screen and (min-width: 901px) and (max-width: 1250px) {
    .diary-section {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        overflow: hidden;
    }

    .diary-area {
        width: 100%;
        max-width: 1120px;
        margin: 0 auto;
        padding: 0;

        display: grid;
        grid-template-columns:
            42px
            minmax(0, 1fr)
            42px;

        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .book {
        width: 100%;
        max-width: 1000px;
        min-width: 0;
        min-height: 620px;
        margin: 0 auto;
    }

    .open-pages {
        width: 100%;
        min-width: 0;
        min-height: 620px;

        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            18px
            minmax(0, 1fr);
    }

    .left-page,
    .right-page {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 620px;
        margin: 0;
        padding: 44px 30px 48px;
    }

    .page-binding {
        display: block;
        width: 18px;
    }

    .page-content {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        font-size: clamp(0.92rem, 1.35vw, 1.12rem);
        line-height: 1.56;

        overflow-wrap: break-word;
        word-break: normal;
    }

    .book-cover {
        position: absolute;
        inset: 0;
        width: 100%;
        min-height: 620px;
    }

    .new-book-cover-image {
        width: 100%;
        height: 620px;
        max-height: 620px;
    }

    .page-arrow {
        position: static;
        width: 42px;
        height: 42px;
        transform: none;
        font-size: 2rem;
    }
}


/* =========================================
   SCHERMI STRETTI: UNA PAGINA CENTRATA
   Fino a 900 px
========================================= */

@media screen and (max-width: 900px) {
    .top-header {
        position: relative;
        flex-direction: column;
    }

    .main-navigation {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-section {
        padding-top: 50px;
    }

    .diary-section {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        overflow: hidden;
    }

    .diary-area {
        position: relative;

        width: 100%;
        max-width: 680px;

        margin: 0 auto;
        padding: 0 46px;

        display: block;
    }

    .book {
        width: 100%;
        max-width: 590px;
        min-width: 0;
        min-height: 650px;
        margin: 0 auto;
    }

    .open-pages {
        width: 100%;
        min-width: 0;
        min-height: 650px;
        margin: 0 auto;

        display: block;
    }

    .left-page,
    .page-binding {
        display: none !important;
    }

    .right-page {
        display: block;

        width: 100%;
        max-width: 590px;
        min-width: 0;
        min-height: 650px;

        margin: 0 auto;
        padding: 50px 42px;

        border-radius: 12px;
    }

    .page-content {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        overflow-wrap: break-word;
        word-break: normal;
    }

    .book-cover {
        position: absolute;
        inset: 0;

        width: 100%;
        max-width: 590px;
        min-height: 650px;

        margin: 0 auto;
    }

    .new-book-cover-image {
        width: 100%;
        max-width: 590px;
        height: 650px;
        max-height: 650px;
        margin: 0 auto;
    }

    .page-arrow {
        position: absolute;
        top: 50%;
        z-index: 30;

        width: 42px;
        height: 42px;

        transform: translateY(-50%);
        font-size: 2rem;
    }

    .page-arrow-left {
        left: 0;
    }

    .page-arrow-right {
        right: 0;
    }

    .writing-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pandora-world {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
}


@media screen and (max-width: 600px) {
    .diary-section {
        padding-left: 8px;
        padding-right: 8px;
    }

    .diary-area {
        max-width: 100%;
        padding-left: 34px;
        padding-right: 34px;
    }

    .book,
    .right-page,
    .book-cover,
    .new-book-cover-image {
        max-width: 100%;
    }

    .right-page {
        padding: 46px 28px;
    }

    .new-book-cover-image {
        border-radius: 8px;
    }

    .page-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.7rem;
    }

    .diary-controls {
        gap: 14px;
    }
}


@media screen and (max-width: 480px) {
    .paper-page {
        min-height: 610px;
        padding: 46px 24px;
    }

    .book,
    .book-cover,
    .open-pages,
    .right-page {
        min-height: 610px;
    }

    .new-book-cover-image {
        height: 610px;
        max-height: 610px;
    }

    .author-studio {
        width: 94%;
    }

    .writing-desk {
        padding: 18px;
    }

    #testoUtente {
        padding: 22px;
    }
}

/* =========================================
   ACCESSO AREA AMMINISTRATORE
========================================= */

#openAdministratorArea {
    border: 1px solid rgba(201, 164, 93, 0.25);
}

#openAdministratorArea:focus-visible {
    outline: 2px solid var(--light-gold);
    outline-offset: 4px;
}


/* =========================================
   AREA LETTORE - CABINA OTTOCENTESCA
========================================= */
.reader-area { width: min(1200px, 94%); margin: 0 auto; padding: 90px 0; }
.reader-cabin { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); border: 2px solid #8b6838; border-radius: 14px; background: linear-gradient(135deg, rgba(65,38,20,.98), rgba(24,13,8,.99)); box-shadow: 0 30px 80px rgba(0,0,0,.58), inset 0 0 55px rgba(0,0,0,.48); }
.reader-cabin::before { content:""; position:absolute; inset:14px; pointer-events:none; border:1px solid rgba(224,194,127,.28); }
.reader-cabin-header { max-width: 670px; position: relative; z-index: 2; }
.reader-cabin-header h2 { margin-bottom: 18px; color: var(--light-gold); font-family:"IM Fell English",serif; font-size:clamp(2.7rem,5vw,5rem); font-weight:400; font-style:italic; }
.reader-cabin-header p:last-child { color:#d7cbb3; font-size:1.22rem; line-height:1.7; }
.reader-window { position:absolute; top:35px; right:55px; width:230px; height:230px; overflow:hidden; border:16px solid #49301c; border-radius:50%; background:linear-gradient(#102b3c 0 55%, #0b3445 56%); box-shadow:inset 0 0 20px #000, 0 12px 30px rgba(0,0,0,.45); }
.reader-moon { position:absolute; width:48px; height:48px; right:42px; top:35px; border-radius:50%; background:#eadca9; box-shadow:0 0 25px #eadca9; }
.reader-sea { position:absolute; left:-20%; right:-20%; bottom:-15px; height:95px; background:repeating-radial-gradient(ellipse at 50% 100%, rgba(176,210,216,.24) 0 3px, transparent 4px 22px); }
.reader-library { position:relative; z-index:2; margin-top:55px; }
.reader-library h3 { margin-bottom:20px; color:var(--light-gold); font-size:1.7rem; }
.reader-story-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.reader-story-card { padding:22px; border:1px solid rgba(224,194,127,.3); border-radius:8px; background:rgba(7,24,32,.68); }
.reader-story-card span { color:var(--light-gold); text-transform:uppercase; letter-spacing:2px; font-size:.8rem; }
.reader-story-card h4 { margin:8px 0 12px; font-size:1.35rem; }
.reader-story-card p { color:#d1c9b8; line-height:1.55; }
.reader-actions { position:relative; z-index:2; display:flex; gap:15px; flex-wrap:wrap; margin-top:30px; }
.reader-session-label { position:relative; z-index:2; margin-top:18px; color:var(--light-gold); }
@media (max-width:900px) { .reader-window { position:relative; top:auto; right:auto; margin:30px auto 0; } .reader-story-list { grid-template-columns:1fr; } }


/* =========================================
   CABINA LETTORE - ACCESSO AI MANOSCRITTI
========================================= */
.reader-guest-notice {
    max-width: 680px;
    margin: 28px auto 0;
    padding: 34px 30px;
    text-align: center;
    border: 1px solid rgba(224, 194, 127, 0.48);
    border-radius: 8px;
    background: linear-gradient(rgba(28, 16, 9, 0.92), rgba(10, 25, 31, 0.94));
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.45), 0 18px 38px rgba(0, 0, 0, 0.32);
}
.reader-guest-notice > span { display:block; margin-bottom:12px; font-size:2.8rem; }
.reader-guest-notice h4 { margin-bottom:12px; color:var(--light-gold); font-family:"IM Fell English", serif; font-size:1.8rem; font-weight:400; }
.reader-guest-notice p { max-width:540px; margin:0 auto 20px; color:#d0c8b5; font-size:1.12rem; line-height:1.6; }


/* =========================================
   UFFICIO DEL PORTO DI PANDORA
========================================= */
.reader-payment-gate.port-office {
    position: relative;
    margin-top: 30px;
    padding: clamp(24px, 4vw, 46px);
    overflow: hidden;
    border: 2px solid #98713e;
    background:
        radial-gradient(circle at 82% 12%, rgba(224, 194, 127, .14), transparent 20%),
        repeating-linear-gradient(92deg, rgba(255,255,255,.018) 0 2px, transparent 2px 11px),
        linear-gradient(145deg, #382014 0%, #1d0e08 52%, #120905 100%);
    box-shadow:
        inset 0 0 0 8px rgba(45, 22, 10, .85),
        inset 0 0 70px rgba(0, 0, 0, .62),
        0 26px 55px rgba(0, 0, 0, .38);
}
.reader-payment-gate.port-office::before,
.reader-payment-gate.port-office::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.reader-payment-gate.port-office::before {
    inset: 12px;
    border: 1px solid rgba(224, 194, 127, .38);
}
.reader-payment-gate.port-office::after {
    width: 210px;
    height: 210px;
    right: -75px;
    bottom: -85px;
    border: 2px solid rgba(201, 164, 93, .18);
    border-radius: 50%;
    box-shadow: inset 0 0 0 14px rgba(201, 164, 93, .04);
}
.port-office-sign { position:relative; z-index:2; display:flex; align-items:center; gap:22px; margin-bottom:28px; }
.port-emblem { width:70px; height:70px; flex:0 0 70px; display:grid; place-items:center; border:1px solid #b58b4c; border-radius:50%; background:radial-gradient(circle,#72502b,#27150c 70%); color:#efd28d; font-size:2.1rem; box-shadow:0 0 24px rgba(214,174,91,.16), inset 0 0 16px rgba(0,0,0,.65); }
.port-kicker { margin:0 0 4px; color:#b89a68; text-transform:uppercase; letter-spacing:.18em; font-size:.76rem; }
.port-office-sign h4 { margin:0 0 8px; color:#ead08e; font-family:"IM Fell English",serif; font-size:clamp(2rem,4vw,3rem); font-weight:400; font-style:italic; }
.port-office-sign p:last-child { max-width:760px; margin:0; color:#d7cdbb; line-height:1.55; }
.port-desk { position:absolute; top:22px; right:30px; z-index:1; display:flex; gap:10px; opacity:.22; color:#e4c477; font-size:2.2rem; transform:rotate(-4deg); }
.brass-compass,.quill,.wax-seal { display:grid; place-items:center; }
.wax-seal { width:42px; height:42px; border-radius:50%; background:#661923; color:#e8c981; font-family:"IM Fell English",serif; font-size:1.2rem; box-shadow:inset 0 0 0 4px rgba(65,5,12,.55); }
.reader-plan-grid { position:relative; z-index:2; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.reader-plan-card { position:relative; min-height:265px; padding:28px 24px 24px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; overflow:hidden; border:1px solid #8e693a; color:#3d2819; text-align:left; background:
    radial-gradient(circle at 14% 18%, rgba(111,65,25,.12), transparent 16%),
    repeating-linear-gradient(0deg, rgba(103,70,34,.035) 0 1px, transparent 1px 4px),
    linear-gradient(105deg,#c9a96d,#ead6a3 20%,#ddc38d 82%,#b89055);
    box-shadow:inset 0 0 35px rgba(79,42,15,.25), 0 15px 28px rgba(0,0,0,.25);
    transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.reader-plan-card::after { content:""; position:absolute; inset:9px; border:1px solid rgba(91,52,23,.28); pointer-events:none; }
.reader-plan-card:hover { transform:translateY(-4px) rotate(-.15deg); box-shadow:inset 0 0 35px rgba(79,42,15,.25),0 20px 35px rgba(0,0,0,.34); }
.reader-plan-card.selected { border-color:#f0d58f; box-shadow:0 0 0 3px rgba(224,194,127,.2), inset 0 0 42px rgba(103,60,22,.28),0 22px 40px rgba(0,0,0,.38); transform:translateY(-5px); }
.plan-scroll-mark { font-size:1.65rem; }
.reader-plan-card .plan-title { color:#5a361d; font-family:"IM Fell English",serif; font-size:1.42rem; font-weight:600; }
.reader-plan-card em { min-height:58px; color:#68492f; font-size:1rem; line-height:1.45; }
.reader-plan-card strong { margin-top:auto; color:#382011; font-size:2rem; }
.reader-plan-card small { color:#735438; }
.captain-register { position:relative; z-index:2; margin-top:28px; padding:25px 27px; border:1px solid #9b7542; background:
    linear-gradient(rgba(239,218,172,.96),rgba(208,174,111,.96)),
    repeating-linear-gradient(0deg,transparent 0 31px,rgba(96,61,29,.12) 31px 32px);
    color:#402819; box-shadow:0 16px 34px rgba(0,0,0,.32),inset 0 0 28px rgba(95,51,17,.2);
}
.captain-register::before { content:""; position:absolute; inset:9px; border:1px double rgba(90,52,24,.38); pointer-events:none; }
.register-heading { position:relative; display:flex; align-items:center; justify-content:center; gap:13px; text-align:center; }
.register-heading > span { font-size:2rem; }
.register-heading p { margin:0; color:#7b5a34; text-transform:uppercase; letter-spacing:.16em; font-size:.72rem; }
.register-heading h5 { margin:3px 0 0; color:#3b2214; font-family:"IM Fell English",serif; font-size:1.8rem; font-weight:400; }
.reader-payment-methods { position:relative; display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-top:22px; }
.payment-provider-button { min-width:245px; padding:14px 20px; display:flex; align-items:center; justify-content:center; gap:12px; border:1px solid #775029; background:linear-gradient(#f0dfb1,#d7b878); color:#321e12; font-weight:700; box-shadow:0 7px 14px rgba(71,38,15,.18); }
.payment-provider-button:hover { transform:translateY(-2px); box-shadow:0 10px 18px rgba(71,38,15,.25); }
.payment-provider-button:disabled { opacity:.55; cursor:wait; }
.payment-brand { display:inline-flex; align-items:center; justify-content:center; min-width:64px; min-height:28px; padding:4px 9px; border-radius:5px; font-family:Arial,sans-serif; font-size:.84rem; font-weight:800; letter-spacing:.02em; }
.visa-brand { background:#fff; color:#17357a; font-style:italic; }
.paypal-brand { background:#fff; color:#073b78; }
.register-note { position:relative; margin:18px 0 0; color:#5f4027; text-align:center; font-family:"IM Fell English",serif; font-size:1.05rem; }
.reader-payment-status { position:relative; min-height:24px; margin:14px 0 0; color:#7b241f; text-align:center; font-weight:700; }
.payment-fine-print { position:relative; margin:7px 0 0; color:#755a3a; text-align:center; font-size:.88rem; }
.reader-access-active.port-clearance { position:relative; margin:28px 0; padding:28px 30px; display:flex; align-items:flex-start; gap:22px; border:1px solid #b8904f; color:#3b2618; background:linear-gradient(105deg,#d0af72,#eedbad 26%,#d9bc82 82%,#b98f52); box-shadow:inset 0 0 34px rgba(84,45,15,.22),0 18px 34px rgba(0,0,0,.28); }
.reader-access-active.port-clearance::after { content:""; position:absolute; inset:10px; border:1px solid rgba(91,53,25,.35); pointer-events:none; }
.clearance-seal { position:relative; z-index:1; width:70px; height:70px; flex:0 0 70px; display:grid; place-items:center; border-radius:50%; background:#70202a; color:#e8cc86; font-size:2rem; box-shadow:inset 0 0 0 7px rgba(60,6,14,.5),0 5px 12px rgba(0,0,0,.22); }
.clearance-copy { position:relative; z-index:1; }
.clearance-kicker { margin:0 0 4px!important; color:#755032!important; text-transform:uppercase; letter-spacing:.18em; font-size:.76rem; }
.reader-access-active strong { color:#3b2112; font-family:"IM Fell English",serif; font-size:1.8rem; font-weight:400; }
.reader-access-active p { margin-top:6px; color:#5d4029; }
.reader-access-active em { display:block; margin-top:12px; color:#65472f; line-height:1.5; }
.reader-access-plan { font-weight:700; }
.reader-story-card time { display:block; margin-bottom:12px; color:#bca978; font-size:.88rem; font-style:italic; }
.footer-payment-brands { display:flex; gap:8px; margin-top:18px; }
@media (max-width:900px) { .reader-plan-grid { grid-template-columns:1fr; } .reader-plan-card { min-height:220px; } .port-desk { display:none; } }
@media (max-width:760px) { .port-office-sign { align-items:flex-start; } .port-emblem { width:52px; height:52px; flex-basis:52px; } .reader-payment-methods { flex-direction:column; } .payment-provider-button { width:100%; min-width:0; } .reader-access-active.port-clearance { flex-direction:column; } }


/* =========================================
   NAVIGAZIONE AUTENTICATA E CERTIFICATO
========================================= */

.navigation-button[data-auth-state="logout"] {
    color: var(--light-gold);
    border-bottom: 1px solid rgba(224, 194, 127, 0.55);
}

.certificate-open-button {
    margin-top: 14px;
    padding: 10px 18px;
    border: 1px solid rgba(111, 72, 31, 0.7);
    background: rgba(246, 224, 171, 0.72);
    color: #4a2e18;
    font-weight: 700;
}

.boarding-certificate {
    position: relative;
    padding: 30px 26px;
    text-align: center;
    background:
        radial-gradient(circle at 14% 20%, rgba(98, 57, 20, 0.12), transparent 18%),
        radial-gradient(circle at 82% 78%, rgba(98, 57, 20, 0.10), transparent 22%),
        linear-gradient(105deg, #d2b77e, #f0dfb6 18%, #ead3a1 78%, #bd995f);
    border: 2px solid #6f4727;
    box-shadow: inset 0 0 30px rgba(77, 42, 15, 0.24);
    font-family: "IM Fell English", serif;
}

.boarding-certificate::before {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    border: 1px solid rgba(98, 57, 24, 0.5);
}

.boarding-certificate h2,
.boarding-certificate h3 {
    color: #432819;
}

.certificate-port,
.certificate-register {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.certificate-name {
    display: block;
    margin: 10px 0;
    color: #4b2418;
    font-size: 2rem;
}

.certificate-details {
    margin: 22px 0;
    display: grid;
    gap: 9px;
}

.certificate-details div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(91, 54, 24, 0.25);
}

.certificate-details dt {
    font-weight: 700;
}

.certificate-details dd {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.boarding-certificate blockquote {
    margin: 22px 0;
    font-style: italic;
    line-height: 1.6;
}

.certificate-footer {
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.wax-seal {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #b33a3a, #74151d 70%);
    color: #f1d89e;
    border: 4px double #511018;
    box-shadow: 0 6px 12px rgba(65, 19, 18, 0.35);
    font-size: 1.8rem;
}

/* =========================================
   AVVISO DEL CAPITANO - SITO IN ALLESTIMENTO
========================================= */

.construction-notice {
    position: relative;
    z-index: 80;
    width: 100%;
    padding: 8px clamp(18px, 4vw, 64px);
    color: #2f1b0f;
    background:
        linear-gradient(
            90deg,
            rgba(92, 58, 25, 0.22),
            transparent 12%,
            transparent 88%,
            rgba(92, 58, 25, 0.22)
        ),
        repeating-linear-gradient(
            0deg,
            rgba(91, 55, 21, 0.035) 0,
            rgba(91, 55, 21, 0.035) 1px,
            transparent 1px,
            transparent 4px
        ),
        linear-gradient(100deg, #c9aa70, #f0dfb5 24%, #e4ca94 76%, #b88e50);
    border-top: 1px solid rgba(255, 232, 174, 0.55);
    border-bottom: 2px solid #745026;
    box-shadow:
        inset 0 -1px 0 rgba(255, 239, 190, 0.42),
        0 5px 18px rgba(0, 0, 0, 0.28);
}

.construction-notice-content {
    position: relative;
    width: min(1180px, 100%);
    min-height: 50px;
    margin: 0 auto;
    padding: 4px 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.construction-notice-icon {
    flex: 0 0 auto;
    color: #68451f;
    font-size: 1.45rem;
    filter: drop-shadow(0 1px 0 rgba(255, 244, 205, 0.55));
}

.construction-notice-copy {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    font-family: "IM Fell English", serif;
    line-height: 1.25;
}

.construction-notice-copy strong {
    color: #4b2b14;
    font-size: 1.05rem;
    letter-spacing: 0.035em;
}

.construction-notice-copy span {
    color: #4c3520;
    font-size: 0.98rem;
}

.construction-notice-close {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(92, 58, 25, 0.45);
    border-radius: 50%;
    background: rgba(255, 247, 218, 0.28);
    color: #513019;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    line-height: 1;
    transform: translateY(-50%);
}

.construction-notice-close:hover {
    background: rgba(255, 247, 218, 0.62);
    border-color: #6b451f;
}

@media screen and (max-width: 700px) {
    .construction-notice {
        padding: 8px 10px;
    }

    .construction-notice-content {
        min-height: 64px;
        padding: 4px 38px 4px 4px;
        gap: 9px;
    }

    .construction-notice-copy {
        display: block;
        font-size: 0.9rem;
    }

    .construction-notice-copy strong,
    .construction-notice-copy span {
        display: block;
    }

    .construction-notice-copy strong {
        margin-bottom: 3px;
    }
}


/* =========================================
   REGISTRO PUBBLICAZIONI AREA AUTORE
========================================= */
.author-publications {
    grid-column: 1 / -1;
    margin-top: 24px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(224, 194, 127, 0.38);
    border-radius: 10px;
    background:
        linear-gradient(rgba(18, 10, 5, 0.88), rgba(7, 18, 24, 0.94)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 18px);
    box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 0 35px rgba(0,0,0,.36);
}
.author-publications-heading h3 {
    margin: 4px 0 10px;
    color: var(--light-gold);
    font-family: "IM Fell English", serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 400;
    font-style: italic;
}
.author-publications-heading p:last-child,
.author-stories-status { color: #c9c0aa; line-height: 1.55; }
.author-stories-status { margin: 24px 0 14px; }
.author-registry-tools {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(300px, auto);
    gap: 18px;
    align-items: end;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(224, 194, 127, 0.3);
    border-radius: 8px;
    background: rgba(5, 12, 17, 0.58);
}
.author-registry-field {
    display: grid;
    gap: 8px;
    color: var(--light-gold);
    font-family: "IM Fell English", serif;
    font-size: 1.05rem;
}
.author-registry-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid rgba(224, 194, 127, 0.55);
    border-radius: 5px;
    background: rgba(255, 248, 226, 0.96);
    color: var(--ink);
    font: inherit;
}
.author-registry-field input:focus {
    outline: 2px solid rgba(224, 194, 127, 0.65);
    outline-offset: 2px;
}
.author-page-jump-form {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto;
    gap: 10px;
    align-items: end;
}
.author-page-jump-form .small-control-button { min-height: 46px; }
.author-stories-scrollbox {
    height: min(68vh, 760px);
    min-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 12px;
    border: 1px solid rgba(224, 194, 127, 0.28);
    border-radius: 7px;
    background: rgba(2, 10, 15, 0.52);
}
.author-stories-list { display: grid; gap: 16px; }
.author-stories-empty {
    padding: 28px;
    text-align: center;
    color: #c9c0aa;
    border: 1px dashed rgba(224, 194, 127, 0.35);
    border-radius: 7px;
}
.author-story-card-highlight {
    animation: authorStoryHighlight 2.4s ease;
}
@keyframes authorStoryHighlight {
    0%, 100% { box-shadow: inset 0 0 25px rgba(75,42,16,.18), 0 9px 24px rgba(0,0,0,.24); }
    20%, 70% { box-shadow: inset 0 0 34px rgba(255,235,166,.72), 0 0 0 4px rgba(224,194,127,.85), 0 12px 32px rgba(0,0,0,.36); }
}
.author-story-card {
    padding: 22px;
    color: var(--ink);
    border: 1px solid #8a673b;
    border-radius: 5px;
    background:
        radial-gradient(circle at 90% 15%, rgba(104,57,20,.13), transparent 18%),
        linear-gradient(105deg, #d7bd86, #f0dfb8 48%, #c7a86e);
    box-shadow: inset 0 0 25px rgba(75,42,16,.18), 0 9px 24px rgba(0,0,0,.24);
}
.author-story-card h4 { margin-bottom: 7px; font-family: "IM Fell English", serif; font-size: 1.42rem; font-weight: 400; }
.author-story-meta { margin-bottom: 14px; color: #6b482a; font-style: italic; }
.author-story-preview { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.author-story-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.author-delete-button {
    padding: 11px 20px;
    border: 1px solid #6f231b;
    border-radius: 4px;
    background: #7c2b20;
    color: #fff4dd;
}
.author-delete-button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
#cancelStoryEditButton { margin-left: 8px; }
@media (max-width: 700px) {
    .author-registry-tools { grid-template-columns: 1fr; padding: 14px; }
    .author-page-jump-form { grid-template-columns: 1fr; }
    .author-page-jump-form .small-control-button { width: 100%; }
    .author-stories-scrollbox { max-height: 62vh; min-height: 280px; padding-right: 6px; }
    .author-story-actions { flex-direction: column; }
    .author-story-actions button { width: 100%; }
    #cancelStoryEditButton { margin-left: 0; }
}


/* =========================================
   V8 - CABINA OTTOCENTESCA DEL LETTORE
========================================= */
.reader-cabin {
    background:
        radial-gradient(circle at 18% 13%, rgba(242,191,100,.14), transparent 21%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, rgba(40,17,7,.08) 2px 5px),
        linear-gradient(135deg, #58331d 0%, #2b160c 48%, #140b07 100%);
    border: 9px ridge #7d5930;
}
.reader-cabin::after {
    content:""; position:absolute; inset:0; pointer-events:none; opacity:.33;
    background:repeating-linear-gradient(0deg, transparent 0 68px, rgba(7,3,1,.35) 69px 72px);
}
.reader-library { padding:28px; border:1px solid rgba(216,174,96,.35); background:rgba(19,10,6,.45); box-shadow:inset 0 0 42px rgba(0,0,0,.42); }
.reader-cabin-header::after { content:"⚓  CARTA DELLE ROTTE  •  1850"; display:inline-block; margin-top:22px; padding:8px 16px; border:1px solid #a57c42; color:#d8bd7c; letter-spacing:2px; background:rgba(28,14,7,.72); }
.reader-story-card { position:relative; color:#3d2819; background:linear-gradient(105deg,#caa96d,#eed9a8 30%,#d2b279); border-color:#8d6838; box-shadow:inset 0 0 28px rgba(72,38,12,.21),0 12px 26px rgba(0,0,0,.28); transform:rotate(-.12deg); }
.reader-story-card:nth-child(even){ transform:rotate(.16deg); }
.reader-story-card p { color:#513923; }
.reader-story-card time { color:#745132; }
.reader-story-card h4 { color:#402615; font-family:"IM Fell English",serif; }


.registration-email-notice {
    margin: 12px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(103, 67, 31, 0.28);
    border-radius: 10px;
    background: rgba(255, 248, 226, 0.72);
    color: #5b3a1f;
    line-height: 1.5;
}

.modal-message {
    white-space: pre-line;
}


/* ==========================================================
   SELEZIONE LASCIAPASSARE E METODO DI PAGAMENTO
   ========================================================== */

.selected-reader-plan {
    position: relative;
    max-width: 520px;
    margin: 24px auto 8px;
    padding: 15px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid rgba(119, 80, 41, .75);
    border-radius: 8px;
    background:
        linear-gradient(rgba(248, 232, 187, .96), rgba(218, 188, 125, .94));
    color: #3b2415;
    text-align: left;
    box-shadow:
        inset 0 0 22px rgba(102, 58, 21, .15),
        0 8px 18px rgba(48, 27, 13, .18);
}

.selected-reader-plan::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(101, 61, 29, .25);
    border-radius: 5px;
    pointer-events: none;
}

.selected-plan-seal {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #75411f;
    color: #f1dca0;
    font-size: 1.35rem;
    box-shadow:
        inset 0 0 0 3px rgba(239, 207, 135, .25),
        0 4px 9px rgba(50, 27, 13, .25);
}

.selected-reader-plan > div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
}

.selected-reader-plan small {
    color: #725134;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.selected-reader-plan strong {
    color: #412516;
    font-family: "IM Fell English", serif;
    font-size: 1.35rem;
}

.selected-reader-plan #selectedReaderPlanPrice {
    color: #6a391c;
    font-size: 1.12rem;
    font-weight: 800;
}

.payment-method-title {
    position: relative;
    margin: 25px 0 4px;
    color: #4b2b18;
    font-family: "IM Fell English", serif;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
}

.reader-plan-card.selected::before {
    content: "⚓";
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #71401f;
    color: #f1dca0;
    font-size: 1rem;
    box-shadow: 0 4px 9px rgba(48, 25, 11, .3);
}

@media (max-width: 600px) {
    .selected-reader-plan {
        padding: 14px 16px;
        justify-content: flex-start;
    }

    .payment-method-title {
        font-size: 1.15rem;
        line-height: 1.4;
    }
}

/* =========================================
   CONTROLLO TRADUZIONI AREA AUTORE
========================================= */
.author-translation-check {
    grid-column: 1 / -1;
    margin-top: 24px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(224, 194, 127, 0.38);
    border-radius: 10px;
    background: linear-gradient(rgba(18, 10, 5, 0.9), rgba(7, 18, 24, 0.96));
    box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 0 35px rgba(0,0,0,.36);
}
.author-translation-status {
    margin: 22px 0 14px;
    color: #f0d69a;
    line-height: 1.55;
}
.author-missing-translations-list {
    display: grid;
    gap: 10px;
    max-height: 300px;
    overflow: auto;
}
.author-missing-translation-item {
    display: grid;
    gap: 5px;
    padding: 13px 15px;
    border: 1px solid rgba(224, 194, 127, 0.25);
    border-radius: 5px;
    background: rgba(255,255,255,.045);
    color: #d8cfba;
}
.author-missing-translation-item strong { color: var(--light-gold); }
.author-translation-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.author-translation-actions button:disabled {
    cursor: not-allowed;
    opacity: .5;
    transform: none;
}
@media (max-width: 700px) {
    .author-translation-actions { flex-direction: column; }
    .author-translation-actions button { width: 100%; }
}



/* Registrazione: esito sicuro e azioni successive */
.registration-result-message {
    white-space: pre-line;
    line-height: 1.55;
}

.registration-spam-notice {
    margin: -4px 0 18px;
    font-size: 0.94rem;
    font-style: italic;
    opacity: 0.86;
}

.registration-result-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.registration-result-actions button:disabled {
    cursor: wait;
    opacity: .65;
}


/* Marchi delle carte accettate tramite Stripe Checkout */
.payment-card-brands {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
}

.mastercard-brand {
    background: #ffffff;
    color: #222222;
    font-weight: 700;
    letter-spacing: -0.03em;
}


/* =====================================================
   CARTA DI IMBARCO ORIZZONTALE — VERSIONE LETTORE
   Modifica esclusivamente grafica.
===================================================== */

.reader-horizontal-boarding-pass {
    position: relative;
    width: min(1220px, 94%);
    margin: 54px auto 24px;
    min-height: 190px;
    padding: 26px 34px;
    display: grid;
    grid-template-columns: 125px minmax(330px, 1.4fr) 140px minmax(310px, 1fr);
    align-items: center;
    gap: 26px;
    color: #3d2615;
    background:
        linear-gradient(100deg, rgba(250,230,176,.98), rgba(218,179,105,.97)),
        repeating-linear-gradient(0deg, transparent 0 3px, rgba(82,48,17,.035) 3px 4px);
    border: 3px solid #9a6c2b;
    outline: 1px solid rgba(113,73,29,.55);
    outline-offset: -12px;
    box-shadow:
        0 22px 46px rgba(0,0,0,.34),
        inset 0 0 46px rgba(88,48,14,.22);
    overflow: hidden;
}

.reader-horizontal-boarding-pass::before,
.reader-horizontal-boarding-pass::after {
    content: "";
    position: absolute;
    top: -10px;
    bottom: -10px;
    width: 34px;
    background:
        radial-gradient(ellipse at center, #e6bd70 0 42%, #aa7332 72%, #6d431d 100%);
    box-shadow: inset 0 0 8px rgba(49,24,6,.45);
}

.reader-horizontal-boarding-pass::before {
    left: -14px;
}

.reader-horizontal-boarding-pass::after {
    right: -14px;
}

.horizontal-pass-compass {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border: 2px solid #8a5c26;
    border-radius: 50%;
    font-size: 3.2rem;
    color: #68431d;
    background: rgba(255,247,216,.3);
}

.horizontal-pass-main {
    text-align: center;
}

.horizontal-pass-kicker,
.horizontal-pass-details dt {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: .68rem;
    color: #775027;
}

.horizontal-pass-main h2 {
    margin: 0;
    font-family: "IM Fell English", serif;
    font-size: clamp(2rem, 3vw, 3.15rem);
    line-height: 1;
    color: #2d1a0d;
}

.horizontal-pass-main strong {
    display: block;
    margin: 6px 0 12px;
    font-family: "IM Fell English", serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.horizontal-pass-main p {
    margin: 0;
    line-height: 1.45;
}

.horizontal-pass-stamp {
    width: 112px;
    height: 112px;
    display: grid;
    place-content: center;
    text-align: center;
    border: 4px double #783921;
    border-radius: 50%;
    color: #783921;
    transform: rotate(-7deg);
    font-family: "IM Fell English", serif;
    box-shadow: inset 0 0 0 3px rgba(120,57,33,.16);
}

.horizontal-pass-stamp span {
    font-weight: 700;
    letter-spacing: .12em;
}

.horizontal-pass-stamp b {
    font-size: 2.1rem;
}

.horizontal-pass-details {
    margin: 0;
    padding-left: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 20px;
    border-left: 1px solid rgba(104,65,25,.42);
}

.horizontal-pass-details div:last-child {
    grid-column: 1 / -1;
}

.horizontal-pass-details dd {
    margin: 0;
    font-family: "IM Fell English", serif;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

/* La griglia delle annotazioni non viene più mostrata.
   Il codice del Diario e il caricamento delle storie restano invariati. */
.reader-story-list {
    display: none !important;
}

/* Il vecchio riquadro verticale viene sostituito dalla pergamena superiore. */
.reader-access-active.port-clearance {
    display: none !important;
}

/* Il titolo è stato rimosso dall'HTML; resta soltanto l'aiuto discreto. */
.diary-section .section-heading {
    margin-top: 6px;
    margin-bottom: 22px;
}

.diary-section .section-heading p {
    display: none;
}

@media (max-width: 980px) {
    .reader-horizontal-boarding-pass {
        grid-template-columns: 90px 1fr 110px;
    }

    .horizontal-pass-details {
        grid-column: 1 / -1;
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(104,65,25,.42);
    }
}

@media (max-width: 680px) {
    .reader-horizontal-boarding-pass {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 24px;
    }

    .horizontal-pass-compass,
    .horizontal-pass-stamp {
        margin: 0 auto;
    }

    .horizontal-pass-details {
        grid-template-columns: 1fr;
    }

    .horizontal-pass-details div:last-child {
        grid-column: auto;
    }
}


/* =====================================================
   RICERCA NEL DIARIO — LETTORE PAGANTE
===================================================== */

.reader-diary-tools {
    width: min(1120px, 92%);
    margin: 16px auto 28px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: minmax(320px, 1.4fr) minmax(280px, 1fr);
    gap: 14px 18px;
    align-items: end;
    color: #f3dfae;
    background:
        linear-gradient(
            180deg,
            rgba(7, 34, 48, .97),
            rgba(3, 19, 29, .98)
        );
    border: 1px solid rgba(201, 151, 65, .72);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, .28),
        inset 0 0 18px rgba(205, 154, 66, .06);
}

.reader-diary-search-form,
.reader-diary-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.reader-diary-tool-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.reader-diary-tool-field span {
    color: #dfbd72;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.reader-diary-tool-field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(205, 164, 91, .72);
    color: #f8efd8;
    background: rgba(255, 255, 255, .055);
    font: inherit;
    outline: none;
}

.reader-diary-tool-field input:focus {
    border-color: #edc369;
    box-shadow: 0 0 0 3px rgba(230, 181, 79, .14);
}

.reader-diary-search-form .small-control-button,
.reader-diary-page-form .small-control-button {
    min-height: 44px;
    min-width: 82px;
}

.reader-diary-search-status {
    grid-column: 1 / -1;
    min-height: 1.25em;
    margin: 0;
    color: #d7c49c;
    font-size: .92rem;
    text-align: center;
}

@media (max-width: 820px) {
    .reader-diary-tools {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .reader-diary-search-form,
    .reader-diary-page-form {
        grid-template-columns: 1fr;
    }

    .reader-diary-search-form .small-control-button,
    .reader-diary-page-form .small-control-button {
        width: 100%;
    }
}


/* Pulsante Aggiorna nell'header, subito a destra di Pandora */
.header-refresh-button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-left: .8rem;
    padding: .5rem .8rem;
    min-height: 38px;
    border: 1px solid rgba(209, 169, 88, .72);
    border-radius: 8px;
    color: #f0d89e;
    background: linear-gradient(
        180deg,
        rgba(14, 48, 64, .96),
        rgba(5, 27, 39, .98)
    );
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, .22),
        inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.header-refresh-button:hover,
.header-refresh-button:focus-visible {
    color: #fff3cf;
    border-color: #e0b760;
    transform: translateY(-1px);
    outline: none;
}

.header-refresh-button:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .header-refresh-button {
        padding: .5rem .65rem;
    }

    .header-refresh-button span {
        display: none;
    }
}


/* OCCHIO MOSTRA/NASCONDI PASSWORD */
.password-visibility-field {
    position: relative;
    width: 100%;
}

.password-visibility-field > input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 3.15rem !important;
}

.password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: .55rem;
    transform: translateY(-50%);
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    z-index: 3;
    opacity: .72;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible,
.password-visibility-toggle.password-visible {
    opacity: 1;
    background: rgba(181, 137, 58, .13);
    outline: 1px solid rgba(181, 137, 58, .42);
}

.password-visibility-toggle:active {
    transform: translateY(-50%) scale(.94);
}

@media (max-width: 640px) {
    .password-visibility-toggle {
        width: 2.55rem;
        height: 2.55rem;
        right: .4rem;
    }

    .password-visibility-field > input {
        padding-right: 3.35rem !important;
    }
}


/* =====================================================
   MACCHINA DEL TEMPO - SOLO HOME
===================================================== */
.time-machine-home {
    width: min(1120px, 92%);
    margin: 8px auto 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.time-machine-home.hidden {
    display: none !important;
}

.time-machine-home-image {
    display: block;
    width: min(100%, 900px);
    height: auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .time-machine-home {
        width: 94%;
        margin: 4px auto 34px;
    }

    .time-machine-home-image {
        width: 100%;
    }
}
