@font-face {
    font-family: "Vazirmatn";
    src: url("vazirmatn.woff2") format("woff2-variations");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

html.talako-locked,
html.talako-locked body,
html.talako-decoy,
html.talako-decoy body {
    overflow: hidden !important;
    background: #f4f1eb !important;
}

html.talako-locked #matrixchat,
html.talako-decoy #matrixchat {
    visibility: hidden !important;
}

.talako-calendar {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    padding: 22px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(248, 245, 239, 0.34), rgba(217, 225, 223, 0.48)),
        var(--talako-month-image) center / cover no-repeat;
    color: #292722;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-optical-sizing: auto;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

.talako-calendar::before,
.talako-calendar::after {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.talako-calendar::before {
    top: -120px;
    right: -90px;
}

.talako-calendar::after {
    bottom: -145px;
    left: -70px;
}

.talako-calendar__card {
    position: relative;
    box-sizing: border-box;
    width: min(100%, 450px);
    padding: 34px 30px 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    background: rgba(255, 253, 249, 0.82);
    box-shadow:
        0 28px 80px rgba(53, 47, 38, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: talako-calendar-enter 360ms ease-out both;
}

.talako-calendar__card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #b8924e, #ddc584 48%, #35545b);
    content: "";
}

.talako-calendar__today {
    text-align: center;
    color: #81786b;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.15px;
}

.talako-calendar__month {
    display: block;
    margin: 7px auto 27px;
    padding: 7px 18px 9px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #27251f;
    font: inherit;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.8px;
    cursor: default;
}

.talako-calendar__weekdays,
.talako-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px 6px;
    text-align: center;
}

.talako-calendar__weekdays {
    margin-bottom: 12px;
    padding: 0 0 11px;
    border-bottom: 1px solid rgba(103, 93, 78, 0.11);
    color: #968c7d;
    font-size: 11px;
    font-weight: 700;
}

.talako-calendar__day,
.talako-calendar__empty {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 13px;
    font-size: 14px;
    transition: background 150ms ease, transform 150ms ease;
}

.talako-calendar__day {
    color: #4a463e;
}

.talako-calendar__grid > :nth-child(7n),
.talako-calendar__weekdays > :nth-child(7) {
    color: #b25b55;
}

.talako-calendar__day--today {
    background: linear-gradient(145deg, #3e5e65, #293f44);
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(48, 77, 83, 0.24);
    transform: scale(1.04);
    cursor: default;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

@keyframes talako-calendar-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .talako-calendar {
        padding: 14px;
    }

    .talako-calendar__card {
        padding: 30px 18px 22px;
        border-radius: 24px;
    }

    .talako-calendar__month {
        margin-bottom: 20px;
        font-size: 24px;
    }

    .talako-calendar__weekdays,
    .talako-calendar__grid {
        gap: 6px 4px;
    }
}

.talako-lock {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f4f1eb;
    color: #23211e;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}

.talako-lock__card {
    width: min(100%, 360px);
    padding: 34px 30px 30px;
    border: 1px solid #ddd5c9;
    border-radius: 18px;
    background: #fffdf9;
    box-shadow: 0 18px 55px rgba(55, 45, 32, 0.10);
}

.talako-lock__mark {
    width: 46px;
    height: 46px;
    margin: 0 auto 20px;
    border-radius: 14px;
    background: linear-gradient(145deg, #c7a96b, #8f7546);
    box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.34);
}

.talako-lock h1 {
    margin: 0;
    text-align: center;
    font-size: 25px;
    font-weight: 700;
}

.talako-lock p {
    margin: 10px 0 26px;
    text-align: center;
    color: #746d63;
    font-size: 14px;
    line-height: 1.8;
}

.talako-lock label {
    display: block;
    margin: 14px 0 7px;
    color: #4e4942;
    font-size: 13px;
}

.talako-lock input {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #cfc7bb;
    border-radius: 10px;
    outline: none;
    background: white;
    color: #23211e;
    font: inherit;
    direction: ltr;
}

.talako-lock input:focus {
    border-color: #9f824e;
    box-shadow: 0 0 0 3px rgba(159, 130, 78, 0.16);
}

.talako-lock button {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: #3c3832;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.talako-lock button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.talako-lock__message {
    min-height: 22px;
    padding-top: 8px;
    color: #746d63;
    font-size: 12px;
}

.talako-lock__message--error {
    color: #a1342f;
}

/* Remove the product logo from the signed-out view. */
.mx_AuthHeaderLogo,
.mx_AuthHeader_logo,
a[href="https://element.io"],
a[href^="https://element.io/"],
a[href^="https://matrix.org"],
a[href^="https://github.com/element-hq/element-web"],
a[href^="https://mastodon.matrix.org"],
a[href="#/register"],
.mx_AuthFooter,
.mx_AuthBody_forgot,
.mx_AuthBody_changeFlow {
    display: none !important;
}
