
/* =========================================================
   TRASHOVNA V31 — ZPOVĚDNICE
   Detailní fantasy komnata bez nově generovaných obrazových
   podkladů. Scéna znovu používá stávající pozadí TRASHOVNY
   a doplňuje je CSS architekturou, světly, třpytkami a pírky.
   ========================================================= */
body.confessional-modal-open {
    overflow: hidden !important;
}
body.confessional-modal-open .modal-overlay {
    padding: 7px !important;
    background: rgba(4, 3, 10, .94) !important;
    backdrop-filter: blur(16px) saturate(108%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(108%) !important;
}

.modal-card.modal-confessional {
    width: min(1410px, calc(100vw - 14px)) !important;
    max-width: none !important;
    height: min(790px, calc(100dvh - 14px)) !important;
    min-height: 650px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 27px !important;
    color: #f8eddd;
    background: #100d18 !important;
    border: 1px solid rgba(226, 194, 154, .72) !important;
    box-shadow:
        0 30px 105px rgba(0, 0, 0, .76),
        0 0 46px rgba(188, 135, 90, .14),
        inset 0 0 0 1px rgba(255, 244, 224, .035) !important;
    transform: translateY(0) scale(.985) !important;
    transition: transform .42s cubic-bezier(.2,.75,.2,1), opacity .32s ease !important;
}
.modal-overlay.active .modal-card.modal-confessional {
    transform: translateY(0) scale(1) !important;
}
.modal-confessional .modal-title,
.modal-confessional #modalActions {
    display: none !important;
}
.modal-confessional .modal-body {
    height: 100%;
    min-height: 0;
    margin: 0 !important;
    color: inherit;
    overflow: hidden;
}
.modal-confessional .modal-close {
    z-index: 70;
    top: 20px !important;
    right: 20px !important;
    width: 58px !important;
    height: 58px !important;
    border: 1px solid rgba(232, 204, 176, .58) !important;
    color: #fff0df !important;
    background: linear-gradient(145deg, rgba(34, 19, 35, .90), rgba(16, 10, 22, .94)) !important;
    box-shadow: 0 0 24px rgba(214, 164, 119, .11), inset 0 1px rgba(255,255,255,.06);
    font-size: 34px !important;
    font-family: Georgia, serif;
    line-height: 1;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease !important;
}
.modal-confessional .modal-close:hover,
.modal-confessional .modal-close:focus-visible {
    transform: rotate(7deg) scale(1.04);
    border-color: rgba(255, 229, 198, .94) !important;
    box-shadow: 0 0 30px rgba(235, 188, 140, .25), inset 0 1px rgba(255,255,255,.08);
    outline: none;
}

.confessional-scene-v31 {
    --conf-cream: #f3e4cf;
    --conf-ink: #5d4a50;
    --conf-violet: #754b79;
    --conf-violet-dark: #4a2d51;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 650px;
    isolation: isolate;
    overflow: hidden;
    background-color: #100d18;
    background-size: cover;
    background-position: 56% center;
    background-repeat: no-repeat;
}
.confessional-scene-v31::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(13,8,20,.68), rgba(22,14,31,.18) 34%, rgba(18,12,27,.18) 68%, rgba(8,6,14,.56)),
        radial-gradient(ellipse at 50% 30%, rgba(248, 220, 179, .13), transparent 34%),
        radial-gradient(circle at 18% 36%, rgba(128, 76, 146, .17), transparent 30%),
        radial-gradient(circle at 84% 38%, rgba(215, 148, 87, .14), transparent 28%),
        linear-gradient(180deg, rgba(8,6,14,.08), rgba(10,7,16,.18) 55%, rgba(8,5,13,.66));
}
.confessional-scene-v31::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    box-shadow:
        inset 0 0 145px rgba(4, 2, 10, .78),
        inset 0 -95px 110px rgba(5, 3, 9, .57),
        inset 0 0 0 1px rgba(255, 241, 223, .035);
}

/* Fantazijní architektura vytvořená bez dalších obrázků. */
.confessional-arch-v31 {
    position: absolute;
    z-index: 2;
    left: 13%;
    right: 13%;
    top: -18%;
    height: 68%;
    border: clamp(14px, 2vw, 28px) solid rgba(70, 50, 65, .48);
    border-bottom: 0;
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    box-shadow:
        0 0 0 2px rgba(228, 193, 153, .12),
        0 0 0 10px rgba(31, 20, 34, .22),
        inset 0 -22px 42px rgba(8,5,12,.32),
        0 20px 55px rgba(0,0,0,.36);
    opacity: .86;
    pointer-events: none;
}
.confessional-arch-v31::before,
.confessional-arch-v31::after {
    content: '';
    position: absolute;
    bottom: -260px;
    width: clamp(52px, 6vw, 92px);
    height: 340px;
    border: 1px solid rgba(225, 184, 139, .17);
    background:
        linear-gradient(90deg, rgba(29,19,31,.78), rgba(87,59,71,.42), rgba(24,16,27,.82));
    box-shadow: inset 0 0 26px rgba(0,0,0,.46), 0 0 30px rgba(0,0,0,.25);
}
.confessional-arch-v31::before { left: -29px; }
.confessional-arch-v31::after { right: -29px; }

.confessional-curtain-v31 {
    position: absolute;
    z-index: 3;
    top: -4%;
    width: 18%;
    height: 62%;
    pointer-events: none;
    opacity: .72;
    filter: saturate(.92);
    background:
        repeating-linear-gradient(92deg, rgba(90,53,102,.62) 0 13%, rgba(31,20,47,.82) 16% 28%, rgba(109,67,119,.48) 33% 43%),
        linear-gradient(180deg, rgba(103,61,116,.82), rgba(25,17,40,.90));
    box-shadow: inset 0 0 30px rgba(0,0,0,.48), 0 12px 35px rgba(0,0,0,.25);
}
.confessional-curtain-v31.left {
    left: -3%;
    clip-path: polygon(0 0, 100% 0, 82% 80%, 46% 100%, 0 92%);
    transform: rotate(-2deg);
}
.confessional-curtain-v31.right {
    right: -4%;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 54% 100%, 18% 80%);
    transform: rotate(2deg) scaleX(-1);
}

.confessional-glow-v31 {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(22px);
    opacity: var(--opacity, .36);
    background: radial-gradient(circle, var(--color, rgba(255,212,145,.32)), transparent 68%);
    animation: confessionalGlowBreathe var(--time, 8s) ease-in-out var(--delay, 0s) infinite;
}
.confessional-glow-v31.one { left: 28%; top: 7%; width: 34%; aspect-ratio: 1; --time: 10.8s; --color: rgba(232,197,151,.26); }
.confessional-glow-v31.two { right: 3%; top: 29%; width: 28%; aspect-ratio: 1; --time: 8.7s; --delay: -3.1s; --color: rgba(201,132,87,.23); }
.confessional-glow-v31.three { left: 2%; bottom: 2%; width: 30%; aspect-ratio: 1; --time: 12.4s; --delay: -7s; --color: rgba(130,90,164,.22); }

.confessional-header-v31 {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: clamp(54px, 7vh, 76px) 86px 18px;
    text-shadow: 0 3px 24px rgba(0,0,0,.78);
}
.confessional-heading-v31 {
    margin: 0;
    color: #fff0dc;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(54px, 7vw, 88px);
    font-weight: 500;
    line-height: .92;
    letter-spacing: -.035em;
}
.confessional-subtitle-v31 {
    margin: 12px 0 0;
    color: rgba(255, 238, 219, .78);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(13px, 1.45vw, 19px);
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.confessional-layout-v31 {
    position: relative;
    z-index: 24;
    width: min(880px, calc(100% - 48px));
    height: min(365px, calc(100% - 275px));
    min-height: 330px;
    margin: 14px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .94fr);
    gap: 14px;
}
.confessional-panel-v31 {
    min-height: 0;
    border: 1px solid rgba(110, 86, 82, .42);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(250, 240, 220, .97), rgba(224, 210, 192, .94));
    color: var(--conf-ink);
    box-shadow:
        0 17px 42px rgba(0,0,0,.34),
        inset 0 0 0 1px rgba(255,255,255,.50),
        inset 0 -18px 36px rgba(112,86,72,.06);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
.confessional-compose-v31 {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}
.confessional-prompt-v31 {
    display: block;
    margin: 0 0 10px;
    text-align: center;
    color: #6e5860;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 19px;
}
.confessional-text-wrap-v31 {
    position: relative;
    flex: 1 1 auto;
    min-height: 132px;
}
.confessional-textarea-v31 {
    width: 100%;
    height: 100%;
    min-height: 132px;
    resize: none;
    padding: 16px 17px 34px;
    border: 1px solid rgba(115, 85, 82, .34);
    border-radius: 10px;
    outline: none;
    background: rgba(255, 250, 240, .62);
    color: #59464d;
    box-shadow: inset 0 2px 10px rgba(84,58,48,.07);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.5;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.confessional-textarea-v31::placeholder { color: rgba(103,82,87,.48); }
.confessional-textarea-v31:focus {
    border-color: rgba(116, 70, 123, .58);
    background: rgba(255,252,245,.83);
    box-shadow: inset 0 2px 10px rgba(84,58,48,.07), 0 0 0 3px rgba(116,70,123,.09);
}
.confessional-count-v31 {
    position: absolute;
    left: 10px;
    bottom: 8px;
    color: rgba(89,70,75,.50);
    font-size: 12px;
}
.confessional-lock-v31 {
    position: absolute;
    right: 10px;
    bottom: 7px;
    color: rgba(117,75,83,.55);
    font-size: 16px;
}
.confessional-consent-v31 {
    margin: 9px 0 10px;
    text-align: center;
    color: rgba(82,65,69,.74);
    font-size: 11px;
    line-height: 1.35;
}
.confessional-submit-v31 {
    width: 100%;
    min-height: 51px;
    border: 1px solid rgba(110, 69, 114, .58);
    border-radius: 10px;
    color: #fff7ed;
    background: linear-gradient(135deg, #825489, #5f3867);
    box-shadow: 0 10px 24px rgba(72,39,79,.21), inset 0 1px rgba(255,255,255,.14);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.confessional-submit-v31:hover,
.confessional-submit-v31:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(72,39,79,.29), 0 0 22px rgba(181,124,190,.16), inset 0 1px rgba(255,255,255,.16);
    outline: none;
}
.confessional-submit-v31:active { transform: translateY(1px) scale(.995); }
.confessional-status-v31 {
    min-height: 17px;
    margin-top: 6px;
    color: #704a6d;
    font-size: 11px;
    text-align: center;
}

.confessional-feed-v31 {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: auto;
    padding: 0 4px 0 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(224,190,157,.45) rgba(25,15,28,.22);
}
.confessional-entry-v31 {
    position: relative;
    flex: 0 0 auto;
    min-height: 88px;
    padding: 18px 44px 16px 20px;
    border: 1px solid rgba(116, 91, 84, .37);
    border-radius: 10px;
    color: #5f4c51;
    background: linear-gradient(145deg, rgba(250, 240, 221, .97), rgba(226, 212, 194, .95));
    box-shadow: 0 14px 30px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.43);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.42;
    animation: confessionalEntryIn .48s cubic-bezier(.2,.7,.25,1) both;
}
.confessional-entry-v31:nth-child(2n) { transform: translateX(2px); }
.confessional-like-v31 {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 30px;
    min-height: 38px;
    border: 0;
    color: rgba(151, 77, 103, .66);
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: transform .2s ease, color .2s ease, text-shadow .2s ease;
}
.confessional-like-v31:hover,
.confessional-like-v31:focus-visible {
    transform: translateY(-50%) scale(1.14);
    color: #9b5572;
    text-shadow: 0 0 14px rgba(169,83,118,.28);
    outline: none;
}
.confessional-like-count-v31 {
    display: block;
    margin-top: 2px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-style: normal;
}

.confessional-safety-v31 {
    position: absolute;
    z-index: 25;
    left: 50%;
    bottom: 30px;
    width: min(760px, calc(100% - 44px));
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 239, 220, .90);
    text-shadow: 0 2px 16px rgba(0,0,0,.86);
    font-family: Georgia, 'Times New Roman', serif;
}
.confessional-safety-v31 strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}
.confessional-safety-v31 span {
    display: block;
    margin-top: 10px;
    color: rgba(255,239,220,.56);
    font-family: Arial, sans-serif;
    font-size: 10px;
}

.confessional-static-light-v31,
.confessional-spark-v31 {
    position: absolute;
    z-index: 12;
    left: var(--x);
    top: var(--y);
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 221, 170, .96);
    box-shadow: 0 0 calc(var(--size) * 3) rgba(255,193,105,.76), 0 0 calc(var(--size) * 7) rgba(255,175,77,.26);
    opacity: var(--opacity, .65);
    animation: confessionalLightPulse var(--pulse, 4.8s) ease-in-out var(--delay, 0s) infinite;
}
.confessional-spark-v31 {
    z-index: 45;
    width: var(--spark-size, 1.5px);
    height: var(--spark-size, 1.5px);
    opacity: 0;
    animation: confessionalSparkBlink var(--spark-life, 1.8s) ease-out forwards;
}

.confessional-feather-v31 {
    --feather-color: rgba(246, 235, 225, .76);
    position: absolute;
    z-index: 46;
    left: var(--start-x);
    top: -12%;
    width: var(--fw, 8px);
    height: var(--fh, 28px);
    pointer-events: none;
    opacity: var(--fo, .62);
    filter: drop-shadow(0 0 5px rgba(255,238,219,.16));
    animation: confessionalFeatherFall var(--fall, 14s) cubic-bezier(.28,.05,.72,.95) var(--delay, 0s) forwards;
}
.confessional-feather-v31::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 70% 15% 70% 15%;
    background:
        linear-gradient(100deg, transparent 43%, rgba(116,93,106,.34) 47% 51%, transparent 54%),
        linear-gradient(145deg, rgba(255,251,244,.92), var(--feather-color));
    clip-path: polygon(50% 0, 80% 11%, 100% 35%, 73% 30%, 96% 55%, 65% 48%, 84% 76%, 54% 65%, 51% 100%, 43% 66%, 14% 83%, 34% 52%, 3% 59%, 27% 33%, 0 36%, 24% 12%);
}
.confessional-feather-v31::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6%;
    width: 1px;
    height: 91%;
    transform: translateX(-50%) rotate(-2deg);
    background: rgba(112,87,100,.40);
}

@keyframes confessionalGlowBreathe {
    0%,100% { transform: scale(.92); opacity: .22; }
    50% { transform: scale(1.08); opacity: .52; }
}
@keyframes confessionalLightPulse {
    0%,100% { transform: scale(.65); opacity: .24; }
    46% { transform: scale(1.15); opacity: var(--opacity, .65); }
    58% { transform: scale(.91); opacity: .46; }
}
@keyframes confessionalSparkBlink {
    0% { opacity: 0; transform: scale(.2) rotate(0deg); }
    22% { opacity: .96; transform: scale(1.45) rotate(45deg); }
    48% { opacity: .25; transform: scale(.55) rotate(95deg); }
    70% { opacity: .78; transform: scale(1.05) rotate(150deg); }
    100% { opacity: 0; transform: scale(.1) rotate(230deg); }
}
@keyframes confessionalFeatherFall {
    0% { transform: translate3d(0,-8vh,0) rotate(var(--r0, -18deg)) scale(.82); }
    24% { transform: translate3d(var(--sway1, 34px),25vh,0) rotate(var(--r1, 48deg)) scale(.92); }
    52% { transform: translate3d(var(--sway2, -26px),55vh,0) rotate(var(--r2, 116deg)) scale(1); }
    78% { transform: translate3d(var(--sway3, 45px),82vh,0) rotate(var(--r3, 188deg)) scale(.94); }
    100% { transform: translate3d(var(--end-x, -8px),112vh,0) rotate(var(--r4, 248deg)) scale(.86); opacity: 0; }
}
@keyframes confessionalEntryIn {
    from { opacity: 0; transform: translateY(9px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 920px) {
    .modal-card.modal-confessional { min-height: 620px; }
    .confessional-header-v31 { padding-top: 50px; }
    .confessional-heading-v31 { font-size: clamp(46px, 9vw, 72px); }
    .confessional-layout-v31 {
        width: min(760px, calc(100% - 34px));
        height: min(410px, calc(100% - 245px));
        grid-template-columns: 1fr 1fr;
    }
    .confessional-compose-v31 { padding: 17px; }
    .confessional-entry-v31 { font-size: 14px; }
    .confessional-safety-v31 { bottom: 22px; }
}
@media (max-width: 700px) {
    body.confessional-modal-open .modal-overlay { padding: 0 !important; }
    .modal-card.modal-confessional {
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }
    .modal-confessional .modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 29px !important;
    }
    .confessional-scene-v31 { min-height: 100dvh; overflow-y: auto; }
    .confessional-header-v31 { padding: 62px 60px 10px 18px; }
    .confessional-heading-v31 { font-size: clamp(42px, 13vw, 62px); }
    .confessional-subtitle-v31 { font-size: 11px; letter-spacing: .12em; }
    .confessional-layout-v31 {
        width: calc(100% - 24px);
        height: auto;
        min-height: 0;
        margin-top: 8px;
        grid-template-columns: 1fr;
    }
    .confessional-compose-v31 { min-height: 345px; }
    .confessional-feed-v31 { max-height: 330px; padding-bottom: 3px; }
    .confessional-safety-v31 {
        position: relative;
        left: auto;
        bottom: auto;
        width: calc(100% - 32px);
        transform: none;
        margin: 24px auto 30px;
    }
    .confessional-curtain-v31 { width: 27%; height: 42%; opacity: .48; }
    .confessional-arch-v31 { left: 5%; right: 5%; top: -8%; height: 40%; opacity: .60; }
}
@media (prefers-reduced-motion: reduce) {
    .confessional-glow-v31,
    .confessional-static-light-v31,
    .confessional-spark-v31,
    .confessional-feather-v31,
    .confessional-entry-v31 { animation: none !important; }
    .confessional-feather-v31 { display: none !important; }
}
