@font-face {
    font-family: 'SourceSans3';
    src: url('../assets/fonts/SourceSans3-Semibold.woff2') format('woff2'),
         url('../assets/fonts/SourceSans3-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'SourceSans3';
    src: url('../assets/fonts/SourceSans3-Bold.woff2') format('woff2'),
         url('../assets/fonts/SourceSans3-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
.tasks-page {
    font-family: 'SourceSans3', sans-serif;
    font-weight: 600;
    background-color: #241c3a;
    margin: 0;
    padding: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.vertical-wrapper-tasks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - var(--menu-height));
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
    padding-top: 40px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: calc(var(--menu-height) + 20px);
}
#tasks-page {
    width: 92%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-top: 20px;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.centered-text-tasks {
    font-family: 'SourceSans3', sans-serif;
    font-weight: 700;
    font-size: 28px;
    background: linear-gradient(to right, #ffc74e 0%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(1px 1px 3px rgba(0, 20, 0, 0.5));
    text-align: center;
    margin: 0 auto 10px auto;
    line-height: 1.2;
    flex-shrink: 0;
}
.main-separator {
    height: 2px;
    width: 100%;
    background: linear-gradient( /* Делаем светлее */
        to right,
        rgba(107, 107, 107, 0) 0%,  /* Более светлый и прозрачный зеленый */
        #424242 20%,            /* Более светлый зеленый */
        #7a7a7a 50%,            /* Более светлый зеленый */
        #5f5f5f 80%,            /* Более светлый зеленый */
        rgba(44, 94, 70, 0) 100%  /* Более светлый и прозрачный зеленый */
    );
    margin: 0 auto;
    margin-bottom: 15px;
    flex-shrink: 0;
}
.tasks-container {
    position: relative;
    width: 100%;
    padding: 15px 10px 30px 10px;
    box-sizing: border-box;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 100%;
}
.tasks-title {
    font-family: 'SourceSans3', sans-serif;
    font-weight: 600;
    color: rgb(252, 211, 101);
    font-size: 18px;
    margin: 0 0 20px 0;
    text-align: left;
    z-index: 3;
    position: relative;
    filter: drop-shadow(1px 1px 3px rgba(0, 20, 0, 0.3));
    flex-shrink: 0;
}
.tasks-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 1;
    border-radius: 20px;
    background: linear-gradient(to bottom, rgba(100, 100, 100, 0.2) 0%, rgba(102, 102, 102, 0) 100%);
    filter: drop-shadow(10px 1px 20px rgba(0, 0, 0, 0.3));
}
.decorative-line {
    height: 1px;
    width: 100%;
    margin: 20px 0;
    background: linear-gradient( /* Градиентная заливка с прозрачными краями */
        to right,
        rgba(44, 94, 70, 0) 0%,        /* Полностью прозрачный */
        rgba(85, 85, 85, 0.5) 20%,       /* Полупрозрачный */
        rgba(44, 94, 70, 0.5) 80%,       /* Полупрозрачный */
        rgba(44, 94, 70, 0) 100%       /* Полностью прозрачный */
    );
    z-index: 3;
    position: relative;
}
.task-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.task-icon {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 12, 1, 0.3);
    z-index: 1000;
}
.task-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.task-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: auto;
    line-height: 1.1;
}
.task-text {
    font-family: 'SourceSans3', sans-serif;
    font-weight: 600;
    color: rgb(220, 220, 220);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.task-reward {
    font-family: 'SourceSans3', sans-serif;
    font-weight: 600;
    color: rgb(133, 133, 133);
    font-size: 12px;
    white-space: nowrap;
    position: relative;
    top: 5px;
}
.task-button {
    font-family: 'SourceSans3', sans-serif;
    font-weight: 400;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.3s ease;
    outline: none;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    letter-spacing: 0.5px;
    box-shadow: 0px 2px 4px rgba(0, 26, 2, 0.3);
}
.task-button.go {
    background-color: #f8a100;
    height: 30px;
}
.task-button.go span {
    position: relative;
    display: inline-block;
}
.task-button.go:hover {
    background-color: #ca8402;
}
.task-button.go:active {
    transform: scale(0.84);
}
.task-button.claim {
    background-color: #f88d00;
    width: 55px;
    height: 30px;
}
.task-button.claim span {
    position: relative;
    display: inline-block;
}
.task-button.claim:hover {
     background-color: #f88d00;
}
.task-button.claim:active {
    transform: scale(0.84);
}
.task-button.claimed {
    background-color: rgba(128, 128, 128, 0.6);
    cursor: default;
    width: 55px;
    height: 30px;
}
.task-button.claimed span {
    position: relative;
    display: inline-block;
}
.task-button.claimed:hover,
.task-button.claimed:active {
    background-color: rgba(128, 128, 128, 0.6) !important;
    transform: none !important;
}