/* Probe Turn.js reader for Stripoteka. Enabled only with ?engine=turnjs. */
.stripoteka-turnjs-stage {
    min-height: 66vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 22px 8px 34px;
    perspective: 2200px;
}

.stripoteka-turnjs-book {
    margin-left: auto !important;
    margin-right: auto !important;
    filter: drop-shadow(0 30px 46px rgba(0,0,0,.62));
}

.stripoteka-turnjs-book .page,
.stripoteka-turnjs-book .hard {
    background: #fff;
    overflow: hidden;
}

.stripoteka-turnjs-book .page img,
.stripoteka-turnjs-book .hard img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    user-select: none;
    -webkit-user-drag: none;
}

.stripoteka-turnjs-cover,
.stripoteka-turnjs-back {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 18%, #334155, #111827 58%, #020617) !important;
    color: #f8fafc;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
    font-weight: 900;
    letter-spacing: .03em;
}

.stripoteka-turnjs-cover small,
.stripoteka-turnjs-back small {
    display: block;
    margin-top: 12px;
    color: #fbbf24;
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.stripoteka-turnjs-progress {
    width: min(520px, 92vw);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    height: 12px;
    margin: 16px auto 0;
}

.stripoteka-turnjs-progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg,#f59e0b,#facc15);
    transition: width .18s ease;
}

.stripoteka-turnjs-error {
    max-width: 760px;
    margin: 24px auto;
    border: 1px solid rgba(248,113,113,.45);
    background: rgba(127,29,29,.45);
    color: #fee2e2;
    border-radius: 18px;
    padding: 18px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .stripoteka-turnjs-stage { padding-inline: 0; }
    .stripoteka-turnjs-book { filter: drop-shadow(0 18px 28px rgba(0,0,0,.5)); }
}
