#notice-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#blocker-notice {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 36px;
    max-width: 90vw;
    width: 540px;
    box-shadow: 0 24px 48px var(--shadow-color);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease, border-color 0.5s ease;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-button {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    line-height: 1;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notice-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    flex-shrink: 0;
    font-size: 1.5rem;
}

.notice-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
}

.notice-body p {
    color: var(--text-color);
    margin: 1.5rem 0 2rem 0;
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    transition: color 0.5s ease;
}

.notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.notice-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-checkbox-wrapper label {
    color: var(--text-color);
    opacity: 0.75;
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.dark-mode .notice-checkbox-wrapper label {
    opacity: 0.5;
}

.notice-checkbox-wrapper input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--text-color);
    filter: invert(75%);
}

.dark-mode .notice-checkbox-wrapper input[type="checkbox"] {
    filter: invert(0%);
}

.notice-checkbox-wrapper input[type="checkbox"]:checked {
    filter: invert(0%);
}

.notice-footer button {
    color: var(--text-color);
    border: 1px solid var(--card-border);
    background: var(--theme-toggle-background);
    transition: opacity 0.3s ease, background 0.4s ease, color 0.3s ease;
    padding: 14px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 140px;
}

@media (pointer: fine) {
    .close-button:hover {
        background-color: rgba(0, 0, 0, 0.05);
        opacity: 1;
    }

    body.dark-mode .close-button:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .notice-footer button:hover {
        background: rgba(230, 230, 230, 0.15);
    }

    .notice-footer button:hover {
        background: rgba(25, 25, 25, 0.15);
    }
}

@media (max-width: 483px) {
    #blocker-notice {
        padding: 22px 26px;
    }
    .close-button {
        top: 12px;
        inset-inline-end: 12px;
        font-size: 1.2rem;
        padding: 8px;
    }

    .notice-header {
        gap: 10px;
    }

    .notice-icon-wrapper {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .notice-header h3 {
        font-size: 1.2rem;
    }

    .notice-body p {
        font-size: 0.9rem;
            margin: 1rem 0 1.5rem 0;
    }

    .notice-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .notice-checkbox-wrapper label {
        font-size: 0.8rem;
    }

    .notice-footer button {
        font-size: 0.9rem;
    }
}

