/* ===== ОБЩИЕ ОБЪЯВЛЕНИЯ ===== */

.announcement-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.68);
}

.announcement-modal-content {
    width: min(100%, 380px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 14px 16px 18px;
    border: 1px solid rgba(0, 170, 255, 0.28);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 95, 180, 0.35), transparent 46%),
        radial-gradient(circle at 82% 10%, rgba(0, 35, 90, 0.26), transparent 42%),
        linear-gradient(160deg, #18263d 0%, #0b1019 58%, #06090e 100%);
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(0, 170, 255, 0.1);
}

.announcement-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.announcement-image {
    display: block;
    width: 100%;
    max-width: 350px;
    max-height: 45dvh;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 12px;
}

.announcement-title-deco {
    flex: 1 1 0;
    max-width: 52px;
    height: 1px;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.95));
}

.announcement-title-deco:last-child {
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.95), transparent);
}

.announcement-title {
    flex: 0 0 auto;
    color: #f1c40f;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.18);
}

.announcement-text {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    margin: 0 auto 18px;
}

.announcement-reward-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: -4px auto 18px;
}

.announcement-reward-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    min-height: 28px;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
}

.announcement-reward-item img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.16));
}

.announcement-hide-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 16px;
    color: #a9b0ba;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
    user-select: none;
}

.announcement-hide-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.announcement-checkbox {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid rgba(190, 200, 215, 0.45);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.18);
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.announcement-hide-label.checked .announcement-checkbox {
    border-color: #00aaff;
    background: #00aaff;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.28);
}

.announcement-hide-label.checked .announcement-checkbox::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.announcement-hide-text {
    text-align: center;
}

.announcement-close-btn {
    min-width: 120px;
    display: flex;
    margin: 0 auto;
}

@media (max-width: 420px) {
    .announcement-modal {
        padding: 8px;
    }

    .announcement-modal-content {
        max-height: calc(100dvh - 16px);
        padding: 10px 12px 14px;
        border-radius: 18px;
    }

    .announcement-title {
        font-size: 19px;
    }

    .announcement-text {
        font-size: 15px;
    }
}
