@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: 'Cormorant Garamond', serif;
    /* Fondo de arena de playa, suave y luminoso */
    background:
        radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
        linear-gradient(135deg, #f3e7cf 0%, #e7d3ae 45%, #d9bf95 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* Use dynamic viewport height (dvh) for mobile browsers with UI bars */
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    color: #3d3a33;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.book-wrapper {
    position: relative;
    width: 95vw;
    /* Almost full width */
    max-width: 450px;
    height: 100%;
    /* Take full available height of the padded app container */
    max-height: 800px;
    /* Don't grow endlessly on massive monitors */
    margin: 0;
}

.book {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1500px;
    /* Strong 3D perspective */
}

/* ============ TARJETA QUE SE ABRE ============ */

/* Cada panel de la tarjeta: bisagra en el borde izquierdo */
.page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: left center;
    /* Hinge on the left */
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-style: preserve-3d;
    z-index: 1;
    /* Managed dynamically by JS */
}

/* Panel abierto (gira hacia la izquierda) */
.page.turned {
    transform: rotateY(-180deg);
}

/* Cada cara de la tarjeta: cartulina marfil */
.face {
    position: absolute;
    inset: 0;
    background-color: #fdf8ec;
    background-image: radial-gradient(#f2e8d2 10%, transparent 10%);
    background-size: 10px 10px;
    border-radius: 10px;
    box-shadow:
        inset 0 0 30px rgba(120, 100, 60, 0.10),
        0 12px 30px rgba(90, 70, 40, 0.30);
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* El dorso se ve cuando el panel se abre: forro interior con tinte aqua */
.face.back {
    transform: rotateY(180deg);
    background-color: #f3faf9;
    background-image: radial-gradient(#d9eeec 10%, transparent 10%);
}

/* Pliegue de la tarjeta (sombra suave junto a la bisagra) */
.face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 100%;
    background: linear-gradient(to right, rgba(90, 70, 40, 0.22), rgba(255, 255, 255, 0) 75%);
    z-index: 5;
    pointer-events: none;
}

/* En el dorso, el pliegue queda a la derecha (donde está la bisagra) */
.face.back::before {
    left: auto;
    right: 0;
    background: linear-gradient(to left, rgba(90, 70, 40, 0.22), rgba(255, 255, 255, 0) 75%);
}

.page-content {
    padding: 24px 22px 70px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Allow scrolling if text is too large */
    scrollbar-width: none;
    /* Firefox */
    position: relative;
    z-index: 1;
}

.page-content::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

/* ============ PORTADA (estética de la foto) ============ */
.face.cover {
    background-color: #fbf6e9;
    color: #727983;
    /* Marco doble tipo tarjeta: marfil + líneas plateadas.
       Relieve suave de cartulina: luz cenital, sombras en bordes y canto inferior */
    box-shadow:
        inset 0 0 0 6px #fbf6e9,
        inset 0 0 0 8px #b8bcc2,
        inset 0 0 0 11px #fbf6e9,
        inset 0 0 0 13px #d8d2c4,
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -3px 6px rgba(120, 100, 60, 0.12),
        inset 0 0 40px rgba(120, 100, 60, 0.08),
        0 1px 2px rgba(90, 70, 40, 0.18),
        0 4px 10px rgba(90, 70, 40, 0.12),
        0 12px 30px rgba(90, 70, 40, 0.30);
}

/* Textura de papel en TODAS las caras: fibras largas, pliegues suaves
   que cruzan la hoja y moteado irregular de uso */
.face::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        /* Fibras largas del papel (vetas diagonales suaves) */
        repeating-linear-gradient(63deg, rgba(150, 130, 90, 0.05) 0 1px, transparent 1px 9px),
        repeating-linear-gradient(-27deg, rgba(150, 130, 90, 0.04) 0 1px, transparent 1px 13px),
        /* Pliegues / arrugas suaves que cruzan la hoja */
        linear-gradient(29deg, transparent 41%, rgba(120, 100, 60, 0.07) 46%, rgba(255, 255, 255, 0.16) 50%, rgba(120, 100, 60, 0.06) 54%, transparent 59%),
        linear-gradient(-37deg, transparent 56%, rgba(120, 100, 60, 0.06) 61%, rgba(255, 255, 255, 0.14) 65%, rgba(120, 100, 60, 0.05) 69%, transparent 74%),
        /* Moteado irregular de papel usado */
        radial-gradient(circle at 22% 30%, rgba(150, 125, 80, 0.05), transparent 40%),
        radial-gradient(circle at 78% 62%, rgba(150, 125, 80, 0.04), transparent 45%),
        radial-gradient(circle at 55% 88%, rgba(255, 255, 255, 0.18), transparent 35%);
    pointer-events: none;
    z-index: 3;
}

/* En los dorsos (forro aqua) el envejecido se tiñe de verde azulado */
.face.back::after {
    background:
        repeating-linear-gradient(63deg, rgba(70, 120, 118, 0.05) 0 1px, transparent 1px 9px),
        repeating-linear-gradient(-27deg, rgba(70, 120, 118, 0.04) 0 1px, transparent 1px 13px),
        linear-gradient(29deg, transparent 41%, rgba(45, 95, 92, 0.07) 46%, rgba(255, 255, 255, 0.16) 50%, rgba(45, 95, 92, 0.06) 54%, transparent 59%),
        linear-gradient(-37deg, transparent 56%, rgba(45, 95, 92, 0.06) 61%, rgba(255, 255, 255, 0.14) 65%, rgba(45, 95, 92, 0.05) 69%, transparent 74%),
        radial-gradient(circle at 22% 30%, rgba(70, 120, 118, 0.05), transparent 40%),
        radial-gradient(circle at 78% 62%, rgba(70, 120, 118, 0.04), transparent 45%),
        radial-gradient(circle at 55% 88%, rgba(255, 255, 255, 0.20), transparent 35%);
}

/* La portada suma la luz cenital y la sombra en la base (relieve físico) */
.face.cover::after {
    background:
        radial-gradient(ellipse 120% 55% at 50% -10%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
        radial-gradient(ellipse 140% 45% at 50% 112%, rgba(120, 100, 60, 0.10), rgba(120, 100, 60, 0) 55%),
        repeating-linear-gradient(63deg, rgba(150, 130, 90, 0.05) 0 1px, transparent 1px 9px),
        repeating-linear-gradient(-27deg, rgba(150, 130, 90, 0.04) 0 1px, transparent 1px 13px),
        linear-gradient(29deg, transparent 41%, rgba(120, 100, 60, 0.07) 46%, rgba(255, 255, 255, 0.16) 50%, rgba(120, 100, 60, 0.06) 54%, transparent 59%),
        linear-gradient(-37deg, transparent 56%, rgba(120, 100, 60, 0.06) 61%, rgba(255, 255, 255, 0.14) 65%, rgba(120, 100, 60, 0.05) 69%, transparent 74%),
        radial-gradient(circle at 22% 30%, rgba(150, 125, 80, 0.05), transparent 40%),
        radial-gradient(circle at 78% 62%, rgba(150, 125, 80, 0.04), transparent 45%),
        radial-gradient(circle at 55% 88%, rgba(255, 255, 255, 0.18), transparent 35%);
}

/* Grano fino de papel (ruido SVG) en todas las caras, por encima
   de la textura y de las bandas glitter de las páginas internas */
.paper-grain {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240"><filter id="p"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="7" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="240" height="240" filter="url(%23p)"/></svg>');
    background-size: 240px 240px;
    opacity: 0.09;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 4;
}

.face.cover .page-content {
    align-items: center;
    text-align: center;
}

/* Cinta glitter vertical que envuelve la portada (como en la foto) */
.ribbon-v {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 14px);
    width: 28px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.85) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1.4px),
        linear-gradient(to right, #777e88, #e0e3e7 30%, #a8aeb7 55%, #e0e3e7 75%, #777e88);
    background-size: 7px 7px, 11px 11px, 100% 100%;
    background-position: 0 0, 3px 4px, 0 0;
    /* Sombra que proyecta la cinta sobre la cartulina (efecto cinta pegada encima) */
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.25),
        3px 0 6px rgba(90, 70, 40, 0.22),
        -3px 0 6px rgba(90, 70, 40, 0.22),
        0 0 8px rgba(119, 126, 136, 0.3);
    z-index: 0;
    animation: ribbonGlitter 4s linear infinite;
}

@keyframes ribbonGlitter {
    0% {
        background-position: 0 0, 3px 4px, 0 0;
    }

    50% {
        background-position: 0 7px, 3px 15px, 0 0;
    }

    100% {
        background-position: 0 14px, 3px 26px, 0 0;
    }
}

/* Banda glitter lateral de las páginas internas (solo visible en la versión móvil) */
.banda-glitter {
    display: none;
}

.encabezado-mis15 {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35em;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.palabra-mis,
.palabra-anios {
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    color: #4d4a42;
}

/* El gran "15" con glitter bordó */
.numero-quince {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 4.6rem;
    line-height: 1;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1.4px),
        linear-gradient(160deg, #681c33 0%, #96364f 50%, #470f23 100%);
    background-size: 8px 8px, 13px 13px, 100% 100%;
    background-position: 0 0, 4px 5px, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 3px 4px rgba(104, 28, 51, 0.25));
    animation: glitterShift 3.5s linear infinite;
}

/* Medallón marfil detrás del 15 para separarlo de la cinta */
.medallon-15 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.05em 0.3em;
    border-radius: 50%;
}

@keyframes glitterShift {
    0% {
        background-position: 0 0, 4px 5px, 0 0;
    }

    50% {
        background-position: 8px 8px, -9px 7px, 0 0;
    }

    100% {
        background-position: 16px 16px, -18px 14px, 0 0;
    }
}

/* Moño de satín plateado */
.bow {
    position: relative;
    width: 180px;
    height: 110px;
    margin: 14px auto 6px;
    /* Sombra que proyecta todo el moño sobre la portada (efecto pegado encima) */
    filter: drop-shadow(0 6px 5px rgba(60, 45, 20, 0.30));
}

.bow .loop {
    position: absolute;
    top: 10px;
    width: 82px;
    height: 60px;
    background: linear-gradient(150deg, #e1e4e8 0%, #a6adb6 55%, #666e79 100%);
    box-shadow:
        inset 0 -8px 14px rgba(0, 35, 40, 0.35),
        inset 0 6px 10px rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.bow .loop.left {
    left: 0;
    border-radius: 65% 35% 30% 70% / 60% 55% 45% 40%;
    transform: rotate(-12deg) skewX(-8deg);
}

.bow .loop.right {
    right: 0;
    border-radius: 35% 65% 70% 30% / 55% 60% 40% 45%;
    transform: rotate(12deg) skewX(8deg);
}

.bow .tail {
    position: absolute;
    top: 52px;
    width: 34px;
    height: 52px;
    background: linear-gradient(180deg, #a6adb6, #666e79);
    box-shadow: inset 0 -8px 12px rgba(0, 35, 40, 0.35);
    clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
    z-index: 0;
}

.bow .tail.left {
    left: 46px;
    transform: rotate(16deg);
}

.bow .tail.right {
    right: 46px;
    transform: rotate(-16deg);
}

.bow .knot {
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 40%;
    background: radial-gradient(circle at 35% 30%, #e1e4e8, #949ca7 72%);
    box-shadow: 0 2px 6px rgba(0, 35, 40, 0.4);
    z-index: 3;
}

.bow .starfish {
    position: absolute;
    left: 50%;
    top: 33px;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    z-index: 4;
    filter: drop-shadow(0 2px 3px rgba(80, 55, 5, 0.45));
    animation: starTwinkle 2.6s ease-in-out infinite;
}

@keyframes starTwinkle {

    0%,
    100% {
        filter: drop-shadow(0 2px 3px rgba(80, 55, 5, 0.45)) brightness(1);
    }

    50% {
        filter: drop-shadow(0 2px 6px rgba(233, 185, 73, 0.8)) brightness(1.18);
    }
}

.nombre-portada {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #781f3a;
    margin: 4px auto 0;
    padding: 0 0.5em;
    width: fit-content;
    border-radius: 999px;
}

.medallon-15,
.nombre-portada {
    /* Mismo grano de papel sobre el fondo marfil para que la placa no quede plana */
    background:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240"><filter id="p"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="7" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="240" height="240" filter="url(%23p)" opacity="0.35"/></svg>'),
        #fbf6e9;
    background-size: 240px 240px, auto;
    background-blend-mode: multiply;
    border: 2px solid #b8bcc2;
    /* Placa con relieve: brillo interior superior y sombra proyectada suave */
    box-shadow:
        0 0 0 3px #fbf6e9,
        0 0 0 4px #d8d2c4,
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(120, 100, 60, 0.10),
        0 3px 6px rgba(90, 70, 40, 0.18);
    position: relative;
}

.sub-portada {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-style: italic;
    letter-spacing: 1px;
    color: #7a7466;
    margin-top: 10px;
}

.hint-abrir {
    margin-top: 16px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9b9177;
    animation: hintFloat 2.4s ease-in-out infinite;
}

@keyframes hintFloat {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

/* Mariposa calada inspirada en la referencia, con tinta plateada tenue. */
.mariposa-sutil {
    width: 66px;
    height: 72px;
    margin: 0 auto 10px;
    display: block;
    color: #818995;
    opacity: 0.75;
    flex-shrink: 0;
}

.quote-firma {
    font-family: 'Great Vibes', cursive;
    font-size: 1.7em;
    color: #781f3a;
    line-height: 1.25;
}

/* ============ PANELES INTERIORES ============ */
.invitacion-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    text-align: center;
    gap: 0.55em;
}

.invitacion-titulo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5em;
    color: #781f3a;
    margin-bottom: 0.35em;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.texto-intro,
.texto-familia,
.texto-nota {
    font-size: 1.2em;
    line-height: 1.45;
    color: #55503f;
}

.texto-intro {
    font-style: italic;
}

.texto-familia strong {
    color: #781f3a;
}

.nombre-quinceanera {
    font-family: 'Great Vibes', cursive;
    font-size: 3em;
    color: #781f3a;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
    line-height: 1.1;
}

.detalle-etiqueta {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #777e88;
    margin-top: 0.5em;
}

.detalle-valor {
    font-family: 'Playfair Display', serif;
    font-size: 1.35em;
    font-weight: 700;
    color: #414149;
}

.divider {
    font-size: 1.1em;
    color: #969ca5;
    letter-spacing: 6px;
    margin: 0.4em 0;
    text-shadow: 0 0 6px rgba(150, 156, 165, 0.25);
}

.salon-video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 45dvh;
    align-self: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: #171d32;
    margin: 12px auto;
}

/* ============ NAVEGACIÓN ============ */
.nav-zone {
    position: absolute;
    bottom: 8px;
    /* Keep inside the book-wrapper for mobile compatibility */
    width: 60px;
    height: 60px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.nav-zone.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nav-left {
    left: 20px;
}

.nav-right {
    right: 5px;
}

/* Pulse animation to draw attention */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(155, 163, 174, 0.3);
    /* Turquesa */
    z-index: 1;
    animation: animatePulse 2s infinite ease-in-out;
}

.nav-arrow {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    color: #781f3a;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    user-select: none;
}

body:not(.card-open) .pulse-ring {
    background: rgba(155, 163, 174, 0.3);
}

body:not(.card-open) .nav-arrow {
    color: #727983;
}

.nav-right:hover .nav-arrow {
    animation: slideRight 0.8s infinite;
}

.nav-left:hover .nav-arrow {
    animation: slideLeft 0.8s infinite;
}

@keyframes animatePulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

@keyframes slideRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@keyframes slideLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }
}

/* Font controls */
.font-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 15px;
    z-index: 1000;
}

.font-btn {
    background: rgba(251, 246, 233, 0.85);
    backdrop-filter: blur(5px);
    color: #781f3a;
    border: 1px solid rgba(150, 156, 165, 0.55);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(90, 70, 40, 0.25);
    transition: all 0.2s ease;
    font-family: 'Cormorant Garamond', serif;
}

.font-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #969ca5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(150, 156, 165, 0.4);
}

.font-btn:active {
    transform: translateY(1px);
}

/* ============ COMPORTAMIENTO \"TARJETA QUE SE ABRE\" ============ */

/* Pantallas angostas (móvil): cada cara es una hoja suelta a ancho completo.
   Al avanzar, la cara actual gira sobre su bisagra y se desvanece,
   revelando la siguiente cara (los reversos también se recorren) */
@media (max-width: 959px) {
    /* En móvil las caras NO son frente/dorso de un mismo panel:
       cada una es un panel propio, sin rotación 3D ni ocultamiento */
    .mobile-face .face {
        position: absolute;
        inset: 0;
        transform: none;
        backface-visibility: visible;
    }

    /* Caras ya recorridas o aún no alcanzadas */
    .mobile-face.mobile-hidden {
        visibility: hidden;
        pointer-events: none;
    }

    /* Toda cara (frente o reverso) gira sobre la bisagra izquierda,
       de derecha a izquierda, y se desvanece al pasar los 90°,
       exactamente como la portada original */
    .mobile-face.mobile-turned {
        transform: rotateY(-180deg);
        visibility: hidden;
        transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1),
            visibility 0s linear 0.4s;
    }

    /* En pantallas chicas solo se ve una cara a la vez: banda glitter,
       pliegue sombreado y padding acompañan a la bisagra izquierda
       también en los reversos (en PC quedan a la derecha, en el pliegue
       central de la plancha) */
    .mobile-face .face.back .banda-glitter {
        left: 0;
        right: auto;
        box-shadow:
            inset -3px 0 6px rgba(65, 70, 80, 0.25),
            2px 0 6px rgba(119, 126, 136, 0.2);
    }

    .mobile-face .face.back::before {
        left: 0;
        right: auto;
        background: linear-gradient(to right, rgba(90, 70, 40, 0.22), rgba(255, 255, 255, 0) 75%);
    }

    .mobile-face .face.back .page-content {
        padding-left: 64px;
        padding-right: 22px;
    }
}

/* Pantallas anchas: al abrirse, la tarjeta se muestra como una plancha de dos
   paneles; todo el conjunto se desliza para mantener la plancha centrada */
@media (min-width: 960px) {
    .book-wrapper {
        transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    }

    body.card-open .book-wrapper {
        transform: translateX(calc(min(95vw, 450px) / 2));
    }
}
