#character-profile-image-overlay {
    outline: 1px solid rgba(234, 214, 119, 0.9);

    .level-bar {
        outline: 1px solid rgba(234, 214, 119, 0.9);
        color: rgba(234, 214, 119, 0.9);
    }

    .level-desc-bar {
        color: rgba(234, 214, 119, 0.9);
    }

    .exp-bar {
        .label {
            border: 1px solid rgba(234, 214, 119, 0.9);
            color: rgba(234, 214, 119, 0.9);
        }

        .progress {
            background: rgba(22, 22, 22, .7);
            height: 2.1em;
            border-radius: 0;
            outline: 1px solid rgba(234, 214, 119, 0.9);

            .progress-label{
                width: 100%;
                position: absolute;
                top: 28px;
                color: whitesmoke;
            }

            .progress-bar {
                background: rgba(175, 159, 88, 0.9);
                height: 2.1em;
                color: #1d1b31;
                border-radius: 0;
            }
        }
    }
}

#classes-wrapper {
    .add-new-class {
        height: 100%;
    }

    .class-level-wrap {
        display: flex;

        .class-level {
            outline: 1px solid rgba(0, 0, 0, .2);
            margin: auto;
            font-weight: bold;
            padding: 2px 10px 2px 10px;
            color: rgba(22, 22, 22, .9);
            width: 30px;
        }
    }

    .selected {
        .class-level-wrap {
            .class-level {
                outline: none;
                background: rgba(234, 214, 119, 0.9);
                color: rgba(22, 22, 22, .9);
            }
        }
    }

    .rel-button {
        height: 100%;
        max-height: max-content;
    }

    .rel-button:active,
    .rel-button:focus,
    .rel-button:hover {
        .class-level {
            outline: 1px solid rgba(0, 0, 0, .6);
            color: black;
        }
    }


}



.character-image {
    .overlay {
        .level-bar {
            background: rgba(22, 22, 22, .7);
            color: whitesmoke;
            padding: 5px 18px 15px;
            font-size: 2em;
            font-weight: bold;
            right: 0;
            position: absolute;
        }

        .level-desc-bar {
            color: whitesmoke;
            right: 0;
            padding-right: 5px;
            font-size: .8em;
            top: calc(3.4em);
            position: absolute;
        }
    }

    video {
        position: absolute;
        width: 100%;
        height: auto;
        left: 0;
    }

    img {
        width: 100%;
        height: auto;
    }
}

.special-counters-info-show {
    cursor: pointer;
}

.special-counter-info {
    font-size: small;
    font-style: italic;
    padding-top: 5px;
    display: block !important;
}

.special-counter-info p {
    margin: 0;
}

.character-image .run-animation {
    position: absolute;
    color: rgba(234, 214, 119, 0.9);
    left: 10px;
    top: 10px;
    font-size: 1.6em;
    cursor: pointer;
    z-index: 10;
}

.character-image .run-animation:hover {
    color: rgb(255, 232, 128);
}

.character-image {
    width: 100%;
}

.info-wrap {
    text-align: left;
}

.info-wrap form label {
    width: 100%;
}

.info-wrap span{
    display: inline-block;
    min-width: 20px;
    text-align: left;
}

.info-wrap label {
    font-weight: bold;
}

.login-form div {
    display: inline-block;
}

.description {
    text-align: left;
}

.description p {
    text-indent: 10px;
    padding: 15px 15px 10px 25px;
}

.character-content.editor-container {
    padding: 15px;
}

.character-title p {
    margin-top: 10px;
    font-size: .9em;
    padding: 0;
    margin-bottom: 0;
}

.tab-space {
    display: block;
    text-align: center;
}

.tab-space .character-content {
    text-align: left;
}

.tab-space .character-content .ck-content {
    border: 2px solid #1d1b31;
    padding: 10px;
}

.tab-space .character-content .ck-content .ck-placeholder {
    padding-left: 0;
}

.tab-space .character-content p {
    margin: 0;
    padding-bottom: 0;
}

.tab-space .character-content p:last-of-type {
    padding-bottom: 15px;
}

.tab-space .character-content ol,
.tab-space .character-content ul {
    padding-left: 5rem;
}

#behaviour-container .icon-active,
#behaviour-container .icon-static,
#standardStats .icon-active,
#standardStats .icon-static {
    width: 17px !important;
    position: relative !important;
    top: -2px !important;
    left: 0;

}

#behaviour-container .icon-static,
#standardStats .icon-static {
    display: inline-block;
}

#behaviour-container .icon-active,
#standardStats .icon-active {
    left: -22px;
}

#behaviour-container .label-with-info,
#standardStats .label-with-info {
    position: relative;
    left: -20px;

}

#hero-background-inner {
    padding: 0;
}

.btn {
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 0px;
    width: 100%;
    margin-bottom: 25px;
}

.login-wrap .btn {
    margin-bottom: 15px;
}

.btn:hover, .btn:active, .btn:focus {
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 0px;
    width: 100%;
    background: rgba(0, 0, 0, 0.04);
}

.inp {
    position: relative;
    margin: auto;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
}
.inp .label {
    position: absolute;
    top: 20px;
    left: 12px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
    transform-origin: 0 0;
    transform: translate3d(0, 0, 0);
    transition: all 0.2s ease;
    pointer-events: none;
}
.inp .focus-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
}
.inp input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    border: 0;
    font-family: inherit;
    padding: 16px 12px 0 12px;
    height: 56px;
    font-size: 16px;
    font-weight: 400;
    background: none;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    color: #000;
    transition: all 0.15s ease;
}
.inp input:hover {
    background: rgba(0, 0, 0, 0.02);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.inp input:not(:-moz-placeholder-shown) + .label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}
.inp input:not(:-ms-input-placeholder) + .label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}
/* Předvyplněné pole (uložené heslo) Chrome stránce předá až po prvním
   klepnutí - do té doby :placeholder-shown platí a popisek by ležel
   přes text. Poznat ho jde jen přes :-webkit-autofill. */
.inp input:not(:placeholder-shown) + .label,
.inp input:-webkit-autofill + .label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}
.inp input:focus {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.5);
}
.inp input:focus + .label {
    color: rgba(0, 0, 0, 0.5);
    transform: translate3d(0, -12px, 0) scale(0.75);
}
.inp input:focus + .label + .focus-bg {
    transform: scaleX(1);
    transition: all 0.1s ease;
}

.character-image {
    /*width: 50%;*/
    height: auto;
    position: relative;
    text-align: center;
    display: inline-block;
    margin-bottom: 0.3em;
}

.character-image .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left:0;
    top:0;
    transition-duration: 500ms;
}

.character-image .overlay .exp-bar {
    width: 100%;
    display: inline-block;
    position: relative;
    left:0;
    bottom: calc(3.8em - 100%);
    transition-duration: 500ms;
    font-weight: bold;
}





.character-image .overlay .label {
    display: inline-block;
    color: whitesmoke;
    background: rgba(22, 22, 22, .7);
    padding-right: 15px;
    padding-left: 15px;
}


.character-content {
    background: rgba(168, 163, 152, 0.49);
    background: var(--quest-card-bg);
    box-shadow: 3px 9px 24px 0px rgba(153, 153, 153, 1);
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 2px;
}

.character-content.center {
    text-align: center;
}

.character-title {
    box-shadow: 3px 9px 24px 0px rgba(153, 153, 153, 1);
    border: 1px solid rgba(0,0,0,.2);
    margin-bottom: 2em;
    margin-top: 2.5em;
    padding: 15px;
    border-radius: 2px;
    background: #1d1b31;
    color: whitesmoke;
    text-align: center;
}

.character-title h3{
    margin: 0;
}

.headline-button,
.character-title h3 .rel-button {
    display: inline-block;
    position: absolute;
    right: 35px;
    font-size: large;
    color: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .5);
    background: none;
}

.headline-button:hover,
.character-title h3 .rel-button:hover {
    color: rgba(0, 0, 0, .7);
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, .5);
    font-weight: bold;
}


.small-img {
    margin-bottom: 15px;
}

.small-img img {
    width: 100%;
    max-width: 150px;
}

.character-relationship {
    display: flex;
    align-items: center;
    padding-right: 0;

    .rel-level {
        font-style: italic;
    }

    .rel-button.good {
        margin-right: 0;
    }

    .character-content-wrap {
        padding-right: 0;
        margin-top: 10px;
        min-width: 250px;

        padding-top: 5px;
        padding-bottom: 15px;
    }

    .small-img {
        margin-bottom: 0;

        img {
            outline: 2px solid rgba(0, 0, 0, .2);
        }
    }

    .hearts {
        span {
            width: 32px;
            display: inline-block;
            text-align: center;

            img{
                width: 32px;
                height: auto;
            }
            img.not-filled{
                width: 25px;
                height: auto;
            }
        }

    }



    .icon-static {
        width: 17px;
        margin: 0 auto;
        text-align: center;
        padding-top: 3px;
    }

    .icon-active {
        width: 17px;
        margin: 0 auto;
        position: relative;
        left: 0;
        top: -2px;
        text-align: center;
    }

    .relationship-controls {
        margin-top: 10px;
        padding-left: 10px;
        padding-right: 7px;

        .control-button {
            padding: 2px;
        }
    }
    .relation-description-wrapper {
        padding: 10px 10px 0;

        .relation-description {
            padding: 10px;
            font-style: italic;
            outline: 1px solid rgba(0, 0, 0, .2);
            background: rgba(33, 33, 33, .1);
        }
    }
}


#changeRelation {
    .modal-body {
        margin: auto;
        width: 100%;

        #change-relation-wrapper {
            text-align: center;
        }

        label {
            padding: 0;
        }

        .rel-button {
            margin: auto;
        }

        img {
            width: 55px;
            height: auto;
        }

        #rel-desc-value {
            margin-bottom: 10px;
            display: block;
            font-style: italic;
        }
    }
}

.fa-solid.fa-heart,
.fa-solid.fa-heart-crack,
.fa-regular.fa-heart,
.fa-regular.fa-square-minus,
.fa-regular.fa-square-plus{
    font-size: 1.5em;
}

.fa-regular.fa-square-minus:hover,
.fa-regular.fa-square-plus:hover{
    cursor: pointer;
    color: #e3da45;
}

.fa-solid.fa-heart {
    color: darkred;
}

.fa-solid.fa-heart-crack {
    color: darkgreen;
}




.small-content-wrap {
    padding: 10px;
}

.small-content {
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 2px;
    margin-bottom: 10px;
    padding: 10px;
    height: 100%;
    box-shadow: 3px 9px 24px 0px rgba(153, 153, 153, 1);
}
.small-content.no-height {
    height: auto;
}

.small-content.common {
    background: rgba(168, 163, 152, 0.49);
    background: var(--quest-card-bg);
}

.common h3 {
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}

.small-content.good {
    background: rgba(122, 201, 105, 0.49);
}
.small-content.good .small-content-reward {
    color: rgb(27, 114, 9, .9);
}

.small-content.info {
    background: rgba(198, 222, 58,  .39);
}



.small-content .small-content-name {
    font-size: 1.3em;
    text-align: left;
}

.small-content .small-content-reward {
    font-size: 1.1em;
    text-align: left;
}

.small-content .small-content-description {
    padding: 10px;
    font-style: italic;
    margin-bottom: 30px;
}

.small-content .small-content-description > * {
    padding: 0;
}

.small-content .small-content-description > ol,
.small-content .small-content-description > ul {
    padding-left: 35px;
}

.center {
    text-align: center;
}

.step-content-reward {
    text-align: right;
}

.step-content-reward.good {
    color: rgb(27, 114, 9, .9);
}

.step-content-description.good {
    color: rgb(27, 114, 9, .9);
}

#usingSpell .modal-footer button,
#playerResting .modal-footer button {
    margin: auto;
}

.prepare-death-image {
    width: 150px;
}

.prepare-death-image {
    margin: auto;
}

.safe-throws-title {
    position: relative;
    top: 20px
}

/* =====================================================================
   Okno odpočinku - Noc u ohně (docs/stranka-postavy/odpocinek-navrhy.html,
   obrazovka 1, rozhodnuto 20. 10. 2026). Délka --r-dur nastaví
   resting-admin.js (krátký 5 s, dlouhý 8 s). .is-resting běží noc,
   .is-done stav po probuzení, .is-ambush přepadení, .is-paused zastavený čas.
   ===================================================================== */
#playerResting { --r-dur: 5s; }
#playerResting .modal-footer { gap: var(--btn-gap); }
#playerResting .modal-footer button { margin: 0; }
#playerResting .modal-footer { justify-content: center; }
#playerResting.is-resting .dlg-x { opacity: .3; pointer-events: none; }
/* po přepadení jde okno zavřít i křížkem */
#playerResting.is-ambush .dlg-x { opacity: 1; pointer-events: auto; }

/* Vstávat: během odpočinku zamčené, plní se jako ukazatel času */
#playerResting .rest-wake { position: relative; overflow: hidden; }
#playerResting .rest-wake[disabled] { opacity: 1; cursor: default; }
#playerResting .rest-wake > span:not(.rest-wake-fill) { position: relative; }
#playerResting .rest-wake-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(176, 141, 46, .16); pointer-events: none; }
#playerResting.is-resting .rest-wake-fill { animation: r-fill var(--r-dur) linear forwards; }
@keyframes r-fill { to { width: 100%; } }

/* výsledky přibývají po jednom */
#playerResting .rest-done-list li { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
#playerResting .rest-done-list li.is-in { opacity: 1; transform: none; }
#playerResting .rest-done-list li.is-in b { animation: r-pop .5s ease-out; }
@keyframes r-pop { 40% { transform: scale(1.25); color: #b08d2e; } }

/* scéna: soumrak → noc (→ rozbřesk), krajina, srpek měsíce */
#playerResting .r-scene { position: relative; height: 230px; overflow: hidden; border: 1px solid var(--msg-edge, #d3ccbc);
    background: linear-gradient(#e7b98a, #f2dcc0); }
#playerResting .r-sky { position: absolute; inset: 0; background: linear-gradient(#141127, #2c2350 70%, #4a3560); opacity: 0; }
#playerResting .r-stars i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; opacity: 0; }
#playerResting .r-arc { position: absolute; left: 50%; bottom: -120px; width: 300px; height: 300px; margin-left: -150px; transform: rotate(-80deg); }
#playerResting .r-moonc { position: absolute; left: 50%; top: 4px; width: 34px; height: 34px; margin-left: -17px; opacity: 0;
    filter: drop-shadow(0 0 6px rgba(255, 244, 200, .55)); }
#playerResting .r-land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; display: block; }
#playerResting .r-land .r-m1 { fill: #8d7aa0; }
#playerResting .r-land .r-m2 { fill: #5b4a66; }
#playerResting .r-land .r-pines path { fill: #2f2738; }
#playerResting .r-land .r-tent path { fill: #6b4f3a; }
#playerResting .r-land .r-tent .r-tent-door { fill: #2a1f18; }
#playerResting .r-land .r-m3 { fill: #3b2f2a; }
#playerResting .r-land-dark { position: absolute; inset: 0; background: rgba(8, 6, 20, .5); opacity: 0; pointer-events: none; }
#playerResting .r-glow { position: absolute; left: 50%; bottom: -20px; width: 200px; height: 120px; margin-left: -100px; border-radius: 50%;
    background: radial-gradient(rgba(255, 170, 70, .45), transparent 65%); animation: r-glow 1.6s ease-in-out infinite alternate; }
@keyframes r-glow { from { opacity: .6; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
#playerResting.is-resting .r-sky, #playerResting.is-resting .r-land-dark,
#playerResting.is-resting .r-moonc { animation: r-night var(--r-dur) ease-in-out forwards; }
#playerResting.is-resting .r-stars i { animation: r-star var(--r-dur) ease-in-out forwards; }
#playerResting.is-resting .r-arc { animation: r-arc var(--r-dur) linear forwards; }
@keyframes r-night { 0% { opacity: 0; } 18% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: .05; } }
@keyframes r-star { 0%, 15% { opacity: 0; } 30% { opacity: .9; } 50% { opacity: .4; } 65% { opacity: .9; } 85%, 100% { opacity: 0; } }
@keyframes r-arc { to { transform: rotate(80deg); } }

/* spacáky: prvky jsou v <use>, barvy jdou přes proměnné; vak dýchá, po probuzení se spáči posadí */
#playerResting .r-bag { position: absolute; bottom: 6px; width: clamp(92px, 25%, 132px); --bag: #8b4a3a; --fold: #b0624d; --hair: #5b3e2b; --breath-delay: 0s; }
#playerResting .r-bag.is-green { --bag: #4f6b4a; --fold: #6d8c66; --hair: #2c2420; --breath-delay: -1.7s; }
#playerResting .r-bag.l { left: 4%; }
#playerResting .r-bag.r { right: 4%; }
#playerResting .r-bag svg { display: block; width: 100%; height: auto; overflow: visible; }
#playerResting .r-bag.r svg { transform: scaleX(-1); }
#playerResting .r-defs { position: absolute; }
.b-shadow { fill: rgba(0, 0, 0, .28); }
.b-mat { fill: #5a4636; }
.b-bag { fill: var(--bag); }
.b-fold { fill: var(--fold); }
.b-quilt { fill: none; stroke: rgba(0, 0, 0, .22); stroke-width: 1.4; }
.b-pillow { fill: #e6dac2; }
.b-head { fill: #c9a98a; }
.b-hair { fill: var(--hair); }
.b-body { transform-box: fill-box; transform-origin: 50% 100%; animation: r-breath 3.6s ease-in-out var(--breath-delay) infinite; }
@keyframes r-breath { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(1.07); } }
.b-up { transform: translate(var(--wx, 0px), var(--wy, 0px)); transition: transform .8s ease-out; }
#playerResting.is-done .r-bag, #playerResting.is-ambush .r-bag { --wx: 5px; --wy: -9px; }

/* Zzz bílé s tmavým lemem - čitelné na soumraku i v noci */
#playerResting .r-zzz { position: absolute; left: 12%; top: -16px; font: 600 18px Marcellus, serif; color: #fff;
    text-shadow: 0 0 3px rgba(20, 17, 39, .95), 0 0 8px rgba(20, 17, 39, .6); opacity: 0; pointer-events: none; }
#playerResting .r-bag.r .r-zzz { left: auto; right: 12%; }
#playerResting.is-resting .r-zzz { animation: r-z 2.4s ease-out infinite; }
#playerResting.is-resting .r-zzz:nth-of-type(2) { animation-delay: .8s; font-size: 15px; }
#playerResting.is-resting .r-zzz:nth-of-type(3) { animation-delay: 1.6s; font-size: 12px; }
@keyframes r-z { 0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); } 20% { opacity: .95; } 100% { opacity: 0; transform: translate(18px, -46px) rotate(10deg); } }

/* ohniště (SVG): pět jazyků, uhlíky, kameny, kouř, jiskry */
#playerResting .r-fire { position: absolute; left: 50%; bottom: 4px; width: clamp(58px, 15%, 74px); transform: translateX(-50%); }
#playerResting .r-fire2 { display: block; width: 100%; height: auto; overflow: visible; }
#playerResting .r-fire2 .r-stones ellipse { fill: #6f6a72; stroke: #3e3a44; stroke-width: 1.5; }
#playerResting .r-fire2 .r-stones.front ellipse { fill: #807a84; }
#playerResting .r-fire2 .r-end2 circle { fill: #d9a46d; stroke: #7a4f2c; stroke-width: 1.5; }
#playerResting .r-fire2 .r-ring circle { fill: none; stroke: #b07a48; stroke-width: 1.2; }
#playerResting .r-fire2 .r-ember { fill: none; stroke: #ff8a1f; stroke-width: 2.4; stroke-linecap: round; animation: r-ember 1.4s ease-in-out infinite alternate; }
@keyframes r-ember { from { opacity: .45; } to { opacity: 1; } }
#playerResting .r-fire2 .r-fglow { transform-box: fill-box; transform-origin: center; animation: r-glow 1.3s ease-in-out infinite alternate; }
#playerResting .r-tongue { transform-box: fill-box; transform-origin: 50% 100%; animation: r-lick .9s ease-in-out infinite alternate; }
#playerResting .r-tongue.t2 { animation-duration: .7s; animation-delay: -.2s; }
#playerResting .r-tongue.t3 { animation-duration: .8s; animation-delay: -.5s; }
#playerResting .r-tongue.t4 { animation-duration: .6s; animation-delay: -.1s; }
#playerResting .r-tongue.t5 { animation-duration: .5s; }
@keyframes r-lick { 0% { transform: scale(1, 1) skewX(0); } 50% { transform: scale(.92, 1.12) skewX(-4deg); } 100% { transform: scale(1.05, .93) skewX(3deg); } }
#playerResting .r-sparks2 { position: absolute; left: 50%; bottom: 44px; width: 0; height: 0; pointer-events: none; }
#playerResting .r-sparks2 i { position: absolute; left: var(--x); bottom: 0; width: 3px; height: 3px; border-radius: 50%; background: #ffd27a;
    box-shadow: 0 0 6px 2px rgba(255, 150, 40, .8); opacity: 0; animation: r-spark2 var(--t) ease-out var(--dl) infinite; }
@keyframes r-spark2 { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 10% { opacity: 1; } 70% { opacity: .85; }
                      100% { opacity: 0; transform: translate(var(--dx), calc(-1 * var(--h))) scale(.35); } }
#playerResting .r-smoke { position: absolute; left: 50%; bottom: 56px; width: 0; height: 0; pointer-events: none; }
#playerResting .r-smoke i { position: absolute; left: -12px; bottom: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(200, 196, 210, .22);
    filter: blur(5px); opacity: 0; animation: r-smoke 4s ease-out infinite; }
#playerResting .r-smoke i:nth-child(2) { animation-delay: 1.3s; }
#playerResting .r-smoke i:nth-child(3) { animation-delay: 2.6s; }
@keyframes r-smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -80px) scale(2); } }

#playerResting .r-clock { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; font-size: 12.5px; color: var(--dlg-dim); }
#playerResting .r-clock b { font: 400 20px Marcellus, serif; color: var(--msg-ink, #23212f); }

/* přepadení: okno se zatřese, scéna červeně blikne, oheň pohasne, čas stojí */
#playerResting .r-ambush { display: none; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 12px 10px 14px;
    background: color-mix(in srgb, var(--msg-bad, #9b0000) 12%, transparent); box-shadow: inset 3px 0 0 var(--msg-bad, #9b0000); }
#playerResting .r-ambush i { font-size: 22px; color: var(--msg-bad, #9b0000); }
#playerResting .r-ambush b { display: block; font: 400 20px Marcellus, serif; color: var(--msg-ink, #23212f); }
#playerResting .r-ambush small { font-size: 12px; color: var(--dlg-dim); }
#playerResting.is-ambush .r-ambush { display: flex; animation: r-in .35s ease-out; }
@keyframes r-in { from { opacity: 0; transform: translateY(-6px); } }
#playerResting.is-ambush .modal-content { animation: r-shake .5s ease-in-out; }
@keyframes r-shake { 15%, 55% { transform: translateX(-7px); } 35%, 75% { transform: translateX(6px); } 90% { transform: translateX(-2px); } }
#playerResting.is-ambush .r-scene::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(rgba(155, 0, 0, .55), rgba(155, 0, 0, .1) 70%); animation: r-flash 1.2s ease-out forwards; }
@keyframes r-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: .25; } }
#playerResting.is-ambush .r-zzz, #playerResting.is-ambush .r-sparks2, #playerResting.is-ambush .r-smoke { display: none; }
#playerResting.is-ambush .r-tongue { animation: r-out2 .7s ease-in forwards; }
@keyframes r-out2 { to { transform: scale(.6, .3); opacity: .75; } }
#playerResting.is-ambush .r-fire2 .r-fglow { animation: none; opacity: .4; }
#playerResting.is-paused .r-sky, #playerResting.is-paused .r-arc, #playerResting.is-paused .r-moonc, #playerResting.is-paused .r-stars i,
#playerResting.is-paused .r-land-dark, #playerResting.is-paused .rest-wake-fill { animation-play-state: paused !important; }

/* Co odpočinek obnovil (restDone.latte, balík Z fáze Z2) */
#playerResting .rest-done { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--msg-edge); text-align: left; }
#playerResting .rest-done-h { margin-bottom: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dlg-dim); }
#playerResting .rest-done-list { margin: 0; padding: 0; list-style: none; }
#playerResting .rest-done-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 4px 0; }
#playerResting .rest-done-list b { font: 400 18px Marcellus, serif; color: var(--msg-gold); text-align: right; }
/* obnova pozic (balík R) - pole jako v Ověření */
#playerResting .rest-slots-box { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--msg-edge); text-align: left; }
#playerResting .rest-slots { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 6px 0 8px; }
#playerResting .ov-field { display: flex; flex-direction: column; gap: 2px; }
#playerResting .ov-field > span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dlg-dim); white-space: nowrap; }
#playerResting .ov-field input { width: 74px; height: 40px; padding: 0 4px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
    background: transparent; color: inherit; font: 400 26px/1 Marcellus, serif; text-align: center; -moz-appearance: textfield; }
#playerResting .rest-slots-go { display: flex; flex-wrap: wrap; gap: var(--btn-gap); justify-content: flex-end; margin-top: 8px; }
#playerResting .rest-slots-err { margin: 6px 0 0; color: rgb(155, 0, 0); font-size: 12.5px; }
#playerResting .rest-done-list span { color: var(--msg-ink); }
#playerResting .rest-done-list small { display: block; font-size: 11.5px; color: var(--dlg-dim); }
#playerResting .rest-done-none, #playerResting .rest-done-note { margin: 4px 0 0; font-size: 12.5px; color: var(--dlg-dim); }
#playerResting .rest-done-note i { margin-right: 6px; color: var(--msg-gold); }

.small-content-reward .waiting-quest-image {
    width: 24px;
    top: -2px;
    position: relative;
}

.modal.dark {
    background: rgba(0, 0, 0, .95);
    overflow: hidden;
}

.modal.dark .modal-content,
.modal.dark .modal-dialog{
    background: none;
}

.modal.dark .modal-dialog {
    display: flex;
    height: 100%;
    align-items: center;
    overflow: hidden;
}

.modal.dark .modal-footer{
    border: none;
}

.empty-button,
.rel-button {
    border: 1px solid rgba(0,0,0,.2);
    padding: 5px 15px;
    margin-right: 5px;
    color: #333;
    text-align: center;
    display: block;
    background: rgba(0, 0, 0, 0);

}

.icon-static-normal {
    width: 35px;
}

.icon-static-moving {
    width: 44px;
    top: -5px;
    position: relative;
}

.fail-image {
    width: 80px;
    position: relative;
    top: -25px;
}

.rel-button:hover {
    background: rgba(0, 0, 0, .1);
    cursor: pointer;
}

.rel-button:hover i{
    font-weight: 900;
}

.rel-name {
    font-weight: bold;
}

.character-content .card {
    background: none;
    height: auto;
    width: auto;
    border: none;
}


.usable-spells.character-content{
    padding-right: 0;
    align-content: center;
    font-weight: bold;
}

.spell-levels-wrap {
    padding: 5px 0 5px 10px;

    align-content: center;
}

.spell-levels-wrap button {
    height: 100%;
    background: rgba(0,0,0,.02);
}


.spell-levels {
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 2px;
    padding: 15px;
    background: rgba(0,0,0,.02);
    height: 100%;
    align-content: center;
    text-align: center;
}

.spell-levels img {
    width: 40px;
    height: auto;
}

.fa-xmark,
.fa-fire-flame-curved {
    font-size: xx-large;
    color: #d90808;
}

.fa-fire-flame-curved.used {
    color: #333333;
}


.fa-xmark {
    color: black;
}

.bottom-buttons .rel-button {
    margin-bottom: 0;
}

.bottom-buttons div:nth-child(1) {
    margin-bottom: 15px;
}

.rest-title {
    margin-top: 15px;
}

/* Kompletni oprava stoji na opacnem konci paticky nez zbyla dve tlacitka -
   stejnym zpusobem jako pocet kusu v sortimentu obchodu (.shop-pick-count). */
#modal-complete-repair-confirm {
    margin-right: auto;
}

.simulator-input .label {
    text-align: left;
    transform: translate3d(0, -12px, 0) scale(0.75);
}

/* Chrome, Safari, Edge, Opera */
.simulator-input input::-webkit-outer-spin-button,
.simulator-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.simulator-input input[type=number] {
    -moz-appearance: textfield;
}

.stats {
    margin-bottom: 25px;
}

#fightingStats {
    margin-top: 15px;
}

#fightingStats .row{
    padding-right: 0;
}

#fightingStats .row div{
    padding-right: 0;
}

.health-over {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 11px;
    padding-right: 12px;
}

.health-over .shield-over-inner,
.health-over .health-over-inner{
    background: rgba(0,0,0,0);
    width: 100%;
    height: 100%;
}


.health-over .shield-over-inner {
    position: absolute;
    top: 0;
    width: calc(100% - 10px);
}


#fighting {
    margin-bottom: 15px;
}

.simulator-image {
    text-align: center;
}

.armor-image {
    text-align: center;
    width: 35%;
    height: auto;
}

.actualArmor {
    margin-top: 15px;
}

.stats-over {
    width: 100%;
    height: 16em;
    position: absolute;
    bottom: 0;
    padding-left: 24px;
}

.stats-over .stats-over-inner{
    background: rgba(0,0,0,0.6);
    color: whitesmoke;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 100%;
}
.saving-points .fa-hand-holding-heart,
.saving-points .fa-skull {
    font-size: xx-large;
}

.saving-points {
    padding-bottom: 5px;
    padding-top: 5px;
}

.fa-skull.filled {
    color: darkgreen;
}

.fa-hand-holding-heart.filled {
    color: darkred;
}

.evil-green {
    color: darkgreen;
}

.death {
    color: darkgreen;
}

#spellsChooser .modal-header {
    border-bottom: none;
    padding-bottom: 5px;
}

#spellsChooser .spell-level-switches {
    padding-left: 1rem;
    padding-right: 1rem;
}

#spellsChooser .modal-body {
    border-top: var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);
}

#giveItemModal .modal-dialog,
#inventoryDialog .modal-dialog,
#allMessages .modal-dialog {
    width: 90%;
    max-width: 90%;
}

#allMessages .message {
    text-align: left;
    border: 1px solid rgba(0, 0, 0, .1);
    padding: 10px;
    background: rgb(0, 0, 0, .05);
}

#allMessages .message-text {
    border-top: 1px solid rgba(0, 0, 0, .15);
}

#allMessagesContent .row {
    padding: 5px 12px 12px;
}

#allMessagesContent {
    max-height: 1200px;
    overflow-x: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

#allMessages .message.from-other {
    background: rgba(0, 0, 0, .15);
}

.quest-status,
.give-item-players,
.message-players {
    border: 1px solid rgba(0, 0, 0, .1);
    cursor: pointer;
    background: rgb(0, 0, 0, .05);
    margin-top: 15px;
    padding: 5px;
    text-align: left;
}


.give-item-players.active,
.message-players.active {
    background-color: rgba(122, 201, 105, 0.49);
}


.give-item-players:hover,
.message-players:hover {
    background: rgb(0, 0, 0, .1);
}

.give-item-players.active:hover,
.message-players.active:hover {
    background-color: rgba(122, 201, 105, 0.79);
}

.give-item-players img,
.message-players img {
    width: 40px;
}


.quest-status div,
.give-item-players div,
.message-players div {
    padding: 0;
}

.give-item-players-name,
.message-players-name {
    display: flex;
    align-items: center;
    text-align: left;
}

#modal-messages-cont {
    margin-top: 15px;
}

#allMessages .modal-header {
    padding-left: 26px;
}

#inventory-custom-effect-text,
#inventory-custom-description-text,
#add-custom-quest-title,
#modal-custom-quest-text,
#modal-player-messages-text {
    border: 1px solid rgba(0,0,0, .2);
}

#add-custom-quest-title {
    border-radius: 2px;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

#add-custom-quest-title:focus,
#add-custom-quest-title:active {
    border: 1px solid rgba(0,0,0, .4);
}

/* Pole v úpravách předmětu jsou tatáž pole jako všude jinde v novém: bez
   rámečku a bílého podkladu, zvýrazněná jen spodní linkou. Hodnoty sedí
   na .inp input výš v tomhle souboru a na .lore-form input v administraci.
   Vlastní rámeček s bílou výplní z nich dělal jediné zarámované prvky
   v celém pergamenovém okně. */
.inventory-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 40px;
    padding: 6px 10px;
    margin-bottom: 10px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .3);
    color: #000;
    transition: all .15s ease;
}

.inventory-input:hover {
    background: rgba(0, 0, 0, .02);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .5);
}

.inventory-input:focus,
.inventory-input:active {
    background: rgba(0, 0, 0, .05);
    outline: none;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .5);
}

/* Poznámka pod polem, když prohlížeč vypustí zakázaný znak (inventory.js) -
   stejná jako řádek pod názvem sady (.equipment-name-hint). */
.inv-input-hint {
    margin: -4px 0 10px;
    font-size: 12px;
    text-align: left;
    color: #837e93;
}

/* Proč úprava, předání nebo smazání neprošlo (inventory.js, inventoryMessage) -
   řádek nad patičkou okna, stejný jako .shop-message-bad v obchodě. */
.inv-dialog-msg {
    margin: 0;
    padding: 0 var(--bs-modal-padding, 1rem) 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    color: var(--lore-bad);
}

.inv-dialog-msg:empty {
    display: none;
}

#modal-quest-confirm,
#modal-player-messages-send {
    font-size: xx-large;
    display: grid;
    height: 100%;
    align-items: end;
    padding-bottom: 10px;
}

#modal-quest-text-cont {
    padding-right: 20px;
    padding-left: 15px;
}

/* Sipka odeslat je SVG (components/sendIcon.latte), takze uz se nedá
   ztucnit - misto toho se pri najeti ztlumi. */
#modal-quest-confirm .send-icon:hover,
#modal-player-messages-send .send-icon:hover {
    opacity: .7;
    cursor: pointer;
}

.message-date {
    float: right;
}

#section-selection {
    margin-top: 15px;
    padding: 20px 5px;
}

#section-selection div {
    padding-right: 5px;
    padding-left: 5px;
    padding-top: 5px;
}

.section-select {
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    background: none;
    height: 100%;
}
#character-end {
    margin-top: 15px;
}

.subdetails-wrap .rel-button,
.subdetails-wrap .empty-button {
    width: 100%;
    margin-top: 15px;
}


.subdetails-wrap .countdown {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.spell-description {
    margin-bottom: 15px;
}

.adding-health.rel-button {
    width: 80%;
    text-align: center;
    margin: auto;
    margin-top: 5px;
    margin-bottom: 15px;
}

.healthInfo {
    text-align: left;
    margin-bottom: 10px;
}

.healthInfo label{
    font-weight: bold;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#standardStats .info-field div:last-child {
    align-items: center;
    display: flex;
}

#standardStats .info-field  {
    padding-top: 2px;
}

.image-content .info-field div:first-child{
    text-align: right;
    font-weight: bold;
    font-size: 1.1em;
}
.image-content .info-field div:last-child{
    text-align: left;
    font-size: 1.1em;
}

#usingSpell {
    z-index: 1300;
    background: rgba(0,0,0,.98);
}

.spell-levels-title {
    background: #1d1b31;
    color: whitesmoke;
}

#useSpecificSpell .usable-slot {
    padding-right: 10px;
}

#useSpecificSpell .usable-slot .rel-button {
    padding: 0;
}

#hero-usable-slots .usable-slot {
    padding-right: 20px;
}

.characteristic .icon-active {
    width: 20px;
    position: relative;
    opacity: 1;
    cursor: default;
    left: 0px;
    top: 0px;
}

.characteristic .icon-active.charisma {
    width: 26px;
    left: -4px;
}

.characteristic label.charisma {
    position: relative;
    left: -6px;
}

@media screen and (max-width: 980px){
    .fa-solid.fa-heart,
    .fa-solid.fa-heart-crack,
    .fa-regular.fa-heart,
    .fa-regular.fa-square-minus,
    .fa-regular.fa-square-plus{
        font-size: 1.25em;
    }
}

@media screen and (max-width: 576px) {
    .fa-solid.fa-heart,
    .fa-solid.fa-heart-crack,
    .fa-regular.fa-heart,
    .fa-regular.fa-square-minus,
    .fa-regular.fa-square-plus {
        font-size: 1.15em;
    }

    .info-wrap span {
        text-align: center;
    }

    .small-img {
        text-align: center;
    }

    .rel-name {
        text-align: center;
    }

    .hearts {
        text-align: center;
    }

    .common-stats .info-field {
        text-align: center;
    }

    .usable-slot {
        margin-bottom: 25px;
        padding-right: 15px;
    }

    .character-content p {
        padding-left: 2px;
        padding-right: 2px;
    }

    #allMessages .modal-dialog {
        width: 100%;
        max-width: 100%;
    }

    .headline-button,
    .character-title h3 .rel-button {
        display: block;
        position: initial;
        margin: 10px auto 0;
    }

    #hero-quests .quest-options {
        border-left: none;
    }

    #hero-quests .small-content .small-content-description {

        margin-bottom: 0;
    }

    #hero-quests .small-content {
        padding-bottom: 0;
    }

    #hero-quests .quest-options .row div {
         margin-bottom: 0;
    }

    #standardStats .info-field div:last-child {
        display: block;
        text-align: center;
    }

    .image-content .info-field div:last-child,
    .image-content .info-field div:first-child {
        text-align: center;
    }

    .character-relationship {
        .no-padding-left {
            padding-left: 15px;
        }

        .character-content-wrap {
            padding-bottom: 0;
        }

        .rel-name {
            margin-top: 5px;
        }

        .rel-button.good {
             margin-right: 5px;
        }

        .rel-level {
            text-align: center;
        }
    }

}


@media screen and (min-width: 992px) {
    .character-content-wrap {
        height: 100%;
        margin-top: 0;
        .small-content {
            margin-bottom: 0;
            padding-bottom: 0;
        }
    }
}

@media screen and (max-width: 420px){
    #spell-container .spell-property,
    #spell-container .spell-button,
    #spell-container .spell-name,
    #spell-container .spell-label {
        width: 100%;
    }

    #spell-container .spell-name {
        padding-bottom: 10px;
    }

    #spell-container .spell-description {
        text-align: left !important;
    }

    .inventory-wrap {
        width: 100px;
    }


    .give-item-players-wrap,
    .message-players-wrap {
        width: 100%;
    }


    #allMessagesContent .row>*  {
        padding-right: 0;
    }

    #allMessagesContent .message  {
        padding-right: 10px;
    }

    #modal-player-messages-send {
        padding-left: 5px;
    }

    #allMessagesContent .message-text {
        padding-left: 0;
    }
}

@media screen and (max-width: 370px){
    #spell-container .switch-wrap {
        width: 50%;
    }

    #allMessages .message-text {
        margin-top: 30px;
    }
}

@media screen and (max-width: 340px){
    .characteristic .info-field .col-8 {
        width: 100%;
        text-align: center;
        padding-left: 0;
    }

    .characteristic .info-field .col-4 {
        width: 100%;
        text-align: center;
        padding-right: 0;
    }
}


@media screen and (max-width: 500px){
    .dynamic-empty-block {
        margin-top: 50px
    }
}


@media screen and (max-width: 280px){
    .spell-slot-wrap {
        width: 100%;
    }

    .info-field .col-8 {
        padding-right: 0;
    }

    .info-field .col-4 {
        padding-left: 0;
    }

    #spell-container .switch-wrap {
        width: 100%;
    }

}


