*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #050505;
    color: #f7ead1;
    font-family: Georgia, "Times New Roman", serif;
    overflow: hidden;
}

.page,
.scene {
    width: 100vw;
    height: 100vh;
}

.scene {
    perspective: 1800px;
}

.card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent;
    transform-style: preserve-3d;
    transition: transform 0.9s ease;
    appearance: none;
}

.card.is-flipped {
    transform: rotateY(180deg);
}

.card:focus-visible {
    outline: 4px solid rgba(244, 176, 75, 0.9);
    outline-offset: -8px;
}

.card__face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
}

.card__face--front {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.card__face--back {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 56px);
    transform: rotateY(180deg);
    background:
        radial-gradient(circle at top, rgba(244, 176, 75, 0.18), transparent 28%),
        linear-gradient(135deg, #1a0f0b 0%, #2b1409 42%, #140b07 70%, #090909 100%);
}

.card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
    background: #000;
}

.card__content {
    width: min(980px, 100%);
    max-height: min(92vh, 1100px);
    overflow: auto;
    padding: clamp(26px, 4vw, 56px);
    border: 1px solid rgba(244, 176, 75, 0.28);
    border-radius: 28px;
    background: rgba(18, 8, 4, 0.82);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(244, 176, 75, 0.5) rgba(0, 0, 0, 0.2);
}

.card__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #f4b04b;
    font-size: clamp(14px, 1.7vw, 20px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.card__title {
    display: block;
    margin-bottom: 26px;
    color: #fff4df;
    font-size: clamp(34px, 5vw, 74px);
    line-height: 1.06;
    text-shadow:
        0 2px 0 #9e4d1f,
        0 10px 30px rgba(0, 0, 0, 0.45);
}

.card__text {
    display: block;
    max-width: 820px;
    margin: 0 auto 18px;
    color: #fff4df;
    font-size: clamp(19px, 1.9vw, 29px);
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.card__text--highlight {
    margin-top: 26px;
    color: #f4b04b;
    font-size: clamp(22px, 2.2vw, 32px);
    font-weight: bold;
}

@media (max-width: 900px) {
    .card__content {
        width: min(100%, 100%);
        max-height: 90vh;
        padding: 24px 18px;
        border-radius: 22px;
    }

    .card__text {
        font-size: clamp(18px, 4.7vw, 24px);
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}
