.rules-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1004;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.rules-notice.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.rules-notice-card {
    width: min(460px, calc(100vw - 32px));
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(28, 31, 37, 0.98) 0%, rgba(24, 27, 32, 0.98) 100%);
    border: 1px solid rgba(251, 191, 36, 0.16);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rules-notice-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.rules-notice-icon svg {
    width: 24px;
    height: 24px;
}

.rules-notice-copy {
    flex: 1;
    min-width: 0;
}

.rules-notice-copy strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.rules-notice-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.45;
}

.rules-notice-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.rules-notice-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.rules-notice-btn:hover {
    transform: translateY(-1px);
}

.rules-notice-btn.primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111;
}

.rules-notice-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
    .rules-notice {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .rules-notice-card {
        width: 100%;
        flex-direction: column;
    }

    .rules-notice-actions {
        width: 100%;
        margin-left: 0;
    }

    .rules-notice-btn {
        flex: 1;
    }
}
